vue-safe-force-graph 2.0.63 → 2.0.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/style.css +4297 -1
- package/lib/vue-safe-force-graph.js +44484 -28012
- package/lib/vue-safe-force-graph.umd.cjs +57719 -125
- package/package.json +1 -1
- package/lib/web-component/style.css +0 -1
- package/lib/web-component/vue-safe-force-graph.js +0 -46278
- package/lib/web-component/vue-safe-force-graph.umd.cjs +0 -155
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
(function(Jt,Wt){typeof exports=="object"&&typeof module!="undefined"?module.exports=Wt():typeof define=="function"&&define.amd?define(Wt):(Jt=typeof globalThis!="undefined"?globalThis:Jt||self,Jt.safeGraphWebComponent=Wt())})(this,function(){"use strict";var _he=Object.defineProperty,whe=Object.defineProperties;var Che=Object.getOwnPropertyDescriptors;var qp=Object.getOwnPropertySymbols;var H9=Object.prototype.hasOwnProperty,G9=Object.prototype.propertyIsEnumerable;var Hp=Math.pow,q9=(Jt,Wt,lt)=>Wt in Jt?_he(Jt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:lt}):Jt[Wt]=lt,we=(Jt,Wt)=>{for(var lt in Wt||(Wt={}))H9.call(Wt,lt)&&q9(Jt,lt,Wt[lt]);if(qp)for(var lt of qp(Wt))G9.call(Wt,lt)&&q9(Jt,lt,Wt[lt]);return Jt},Be=(Jt,Wt)=>whe(Jt,Che(Wt));var Es=(Jt,Wt)=>{var lt={};for(var bn in Jt)H9.call(Jt,bn)&&Wt.indexOf(bn)<0&&(lt[bn]=Jt[bn]);if(Jt!=null&&qp)for(var bn of qp(Jt))Wt.indexOf(bn)<0&&G9.call(Jt,bn)&&(lt[bn]=Jt[bn]);return lt};var at=(Jt,Wt,lt)=>new Promise((bn,_t)=>{var Gp=Rt=>{try{co(lt.next(Rt))}catch(uo){_t(uo)}},ga=Rt=>{try{co(lt.throw(Rt))}catch(uo){_t(uo)}},co=Rt=>Rt.done?bn(Rt.value):Promise.resolve(Rt.value).then(Gp,ga);co((lt=lt.apply(Jt,Wt)).next())});const Jt="";/**
|
|
2
|
-
* @vue/shared v3.5.6
|
|
3
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
-
* @license MIT
|
|
5
|
-
**//*! #__NO_SIDE_EFFECTS__ */function Wt(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const lt={},bn=[],_t=()=>{},Gp=()=>!1,ga=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),co=e=>e.startsWith("onUpdate:"),Rt=Object.assign,uo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},K9=Object.prototype.hasOwnProperty,yt=(e,t)=>K9.call(e,t),je=Array.isArray,ma=e=>zl(e)==="[object Map]",qu=e=>zl(e)==="[object Set]",qy=e=>zl(e)==="[object Date]",Ve=e=>typeof e=="function",st=e=>typeof e=="string",hr=e=>typeof e=="symbol",ct=e=>e!==null&&typeof e=="object",Hy=e=>(ct(e)||Ve(e))&&Ve(e.then)&&Ve(e.catch),Gy=Object.prototype.toString,zl=e=>Gy.call(e),Hu=e=>zl(e).slice(8,-1),va=e=>zl(e)==="[object Object]",Wp=e=>st(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ql=Wt(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Gu=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},J9=/-(\w)/g,$n=Gu(e=>e.replace(J9,(t,n)=>n?n.toUpperCase():"")),Y9=/\B([A-Z])/g,Zn=Gu(e=>e.replace(Y9,"-$1").toLowerCase()),Wu=Gu(e=>e.charAt(0).toUpperCase()+e.slice(1)),Hl=Gu(e=>e?`on${Wu(e)}`:""),xs=(e,t)=>!Object.is(e,t),Ku=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Wy=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Kp=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Jp=e=>{const t=st(e)?Number(e):NaN;return isNaN(t)?e:t};let Ky;const Jy=()=>Ky||(Ky=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function Ze(e){if(je(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=st(r)?eP(r):Ze(r);if(s)for(const o in s)t[o]=s[o]}return t}else if(st(e)||ct(e))return e}const X9=/;(?![^(]*\))/g,Z9=/:([^]+)/,Q9=/\/\*[^]*?\*\//g;function eP(e){const t={};return e.replace(Q9,"").split(X9).forEach(n=>{if(n){const r=n.split(Z9);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Y(e){let t="";if(st(e))t=e;else if(je(e))for(let n=0;n<e.length;n++){const r=Y(e[n]);r&&(t+=r+" ")}else if(ct(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function tP(e){if(!e)return null;let{class:t,style:n}=e;return t&&!st(t)&&(e.class=Y(t)),n&&(e.style=Ze(n)),e}const nP=Wt("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Yy(e){return!!e||e===""}function iP(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=ba(e[r],t[r]);return n}function ba(e,t){if(e===t)return!0;let n=qy(e),r=qy(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=hr(e),r=hr(t),n||r)return e===t;if(n=je(e),r=je(t),n||r)return n&&r?iP(e,t):!1;if(n=ct(e),r=ct(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,o=Object.keys(t).length;if(s!==o)return!1;for(const a in e){const l=e.hasOwnProperty(a),c=t.hasOwnProperty(a);if(l&&!c||!l&&c||!ba(e[a],t[a]))return!1}}return String(e)===String(t)}function Xy(e,t){return e.findIndex(n=>ba(n,t))}const Zy=e=>!!(e&&e.__v_isRef===!0),Ie=e=>st(e)?e:e==null?"":je(e)||ct(e)&&(e.toString===Gy||!Ve(e.toString))?Zy(e)?Ie(e.value):JSON.stringify(e,Qy,2):String(e),Qy=(e,t)=>Zy(t)?Qy(e,t.value):ma(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[Yp(r,o)+" =>"]=s,n),{})}:qu(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Yp(n))}:hr(t)?Yp(t):ct(t)&&!je(t)&&!va(t)?String(t):t,Yp=(e,t="")=>{var n;return hr(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
6
|
-
* @vue/reactivity v3.5.6
|
|
7
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
-
* @license MIT
|
|
9
|
-
**/let Vn;class rP{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Vn,!t&&Vn&&(this.index=(Vn.scopes||(Vn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Vn;try{return Vn=this,t()}finally{Vn=n}}}on(){Vn=this}off(){Vn=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function e_(){return Vn}function t_(e,t=!1){Vn&&Vn.cleanups.push(e)}let Vt;const Xp=new WeakSet;class n_{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Vn&&Vn.active&&Vn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Xp.has(this)&&(Xp.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||r_(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,c_(this),s_(this);const t=Vt,n=Gi;Vt=this,Gi=!0;try{return this.fn()}finally{o_(this),Vt=t,Gi=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)tg(t);this.deps=this.depsTail=void 0,c_(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Xp.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){eg(this)&&this.run()}get dirty(){return eg(this)}}let i_=0,Gl;function r_(e){e.flags|=8,e.next=Gl,Gl=e}function Zp(){i_++}function Qp(){if(--i_>0)return;let e;for(;Gl;){let t=Gl;for(Gl=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function s_(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function o_(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),tg(r),sP(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function eg(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(a_(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function a_(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Wl))return;e.globalVersion=Wl;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!eg(e)){e.flags&=-3;return}const n=Vt,r=Gi;Vt=e,Gi=!0;try{s_(e);const s=e.fn(e._value);(t.version===0||xs(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Vt=n,Gi=r,o_(e),e.flags&=-3}}function tg(e){const{dep:t,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),t.subs===e&&(t.subs=n),!t.subs&&t.computed){t.computed.flags&=-5;for(let s=t.computed.deps;s;s=s.nextDep)tg(s)}}function sP(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Gi=!0;const l_=[];function Vr(){l_.push(Gi),Gi=!1}function zr(){const e=l_.pop();Gi=e===void 0?!0:e}function c_(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Vt;Vt=void 0;try{t()}finally{Vt=n}}}let Wl=0;class oP{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ng{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0}track(t){if(!Vt||!Gi||Vt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Vt)n=this.activeLink=new oP(Vt,this),Vt.deps?(n.prevDep=Vt.depsTail,Vt.depsTail.nextDep=n,Vt.depsTail=n):Vt.deps=Vt.depsTail=n,Vt.flags&4&&u_(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Vt.depsTail,n.nextDep=void 0,Vt.depsTail.nextDep=n,Vt.depsTail=n,Vt.deps===n&&(Vt.deps=r)}return n}trigger(t){this.version++,Wl++,this.notify(t)}notify(t){Zp();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Qp()}}}function u_(e){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)u_(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}const Ju=new WeakMap,fo=Symbol(""),ig=Symbol(""),Kl=Symbol("");function Rn(e,t,n){if(Gi&&Vt){let r=Ju.get(e);r||Ju.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=new ng),s.track()}}function qr(e,t,n,r,s,o){const a=Ju.get(e);if(!a){Wl++;return}const l=c=>{c&&c.trigger()};if(Zp(),t==="clear")a.forEach(l);else{const c=je(e),u=c&&Wp(n);if(c&&n==="length"){const d=Number(r);a.forEach((f,h)=>{(h==="length"||h===Kl||!hr(h)&&h>=d)&&l(f)})}else switch(n!==void 0&&l(a.get(n)),u&&l(a.get(Kl)),t){case"add":c?u&&l(a.get("length")):(l(a.get(fo)),ma(e)&&l(a.get(ig)));break;case"delete":c||(l(a.get(fo)),ma(e)&&l(a.get(ig)));break;case"set":ma(e)&&l(a.get(fo));break}}Qp()}function aP(e,t){var n;return(n=Ju.get(e))==null?void 0:n.get(t)}function ya(e){const t=it(e);return t===e?t:(Rn(t,"iterate",Kl),_i(e)?t:t.map(Ln))}function Yu(e){return Rn(e=it(e),"iterate",Kl),e}const lP={__proto__:null,[Symbol.iterator](){return rg(this,Symbol.iterator,Ln)},concat(...e){return ya(this).concat(...e.map(t=>je(t)?ya(t):t))},entries(){return rg(this,"entries",e=>(e[1]=Ln(e[1]),e))},every(e,t){return Hr(this,"every",e,t,void 0,arguments)},filter(e,t){return Hr(this,"filter",e,t,n=>n.map(Ln),arguments)},find(e,t){return Hr(this,"find",e,t,Ln,arguments)},findIndex(e,t){return Hr(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Hr(this,"findLast",e,t,Ln,arguments)},findLastIndex(e,t){return Hr(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Hr(this,"forEach",e,t,void 0,arguments)},includes(...e){return sg(this,"includes",e)},indexOf(...e){return sg(this,"indexOf",e)},join(e){return ya(this).join(e)},lastIndexOf(...e){return sg(this,"lastIndexOf",e)},map(e,t){return Hr(this,"map",e,t,void 0,arguments)},pop(){return Jl(this,"pop")},push(...e){return Jl(this,"push",e)},reduce(e,...t){return d_(this,"reduce",e,t)},reduceRight(e,...t){return d_(this,"reduceRight",e,t)},shift(){return Jl(this,"shift")},some(e,t){return Hr(this,"some",e,t,void 0,arguments)},splice(...e){return Jl(this,"splice",e)},toReversed(){return ya(this).toReversed()},toSorted(e){return ya(this).toSorted(e)},toSpliced(...e){return ya(this).toSpliced(...e)},unshift(...e){return Jl(this,"unshift",e)},values(){return rg(this,"values",Ln)}};function rg(e,t,n){const r=Yu(e),s=r[t]();return r!==e&&!_i(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.value&&(o.value=n(o.value)),o}),s}const cP=Array.prototype;function Hr(e,t,n,r,s,o){const a=Yu(e),l=a!==e&&!_i(e),c=a[t];if(c!==cP[t]){const f=c.apply(e,o);return l?Ln(f):f}let u=n;a!==e&&(l?u=function(f,h){return n.call(this,Ln(f),h,e)}:n.length>2&&(u=function(f,h){return n.call(this,f,h,e)}));const d=c.call(a,u,r);return l&&s?s(d):d}function d_(e,t,n,r){const s=Yu(e);let o=n;return s!==e&&(_i(e)?n.length>3&&(o=function(a,l,c){return n.call(this,a,l,c,e)}):o=function(a,l,c){return n.call(this,a,Ln(l),c,e)}),s[t](o,...r)}function sg(e,t,n){const r=it(e);Rn(r,"iterate",Kl);const s=r[t](...n);return(s===-1||s===!1)&&lg(n[0])?(n[0]=it(n[0]),r[t](...n)):s}function Jl(e,t,n=[]){Vr(),Zp();const r=it(e)[t].apply(e,n);return Qp(),zr(),r}const uP=Wt("__proto__,__v_isRef,__isVue"),f_=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(hr));function dP(e){hr(e)||(e=String(e));const t=it(this);return Rn(t,"has",e),t.hasOwnProperty(e)}class h_{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?S_:C_:o?w_:__).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=je(t);if(!s){let c;if(a&&(c=lP[n]))return c;if(n==="hasOwnProperty")return dP}const l=Reflect.get(t,n,Mt(t)?t:r);return(hr(n)?f_.has(n):uP(n))||(s||Rn(t,"get",n),o)?l:Mt(l)?a&&Wp(n)?l:l.value:ct(l)?s?rd(l):Dn(l):l}}class p_ extends h_{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];if(!this._isShallow){const c=ho(o);if(!_i(r)&&!ho(r)&&(o=it(o),r=it(r)),!je(t)&&Mt(o)&&!Mt(r))return c?!1:(o.value=r,!0)}const a=je(t)&&Wp(n)?Number(n)<t.length:yt(t,n),l=Reflect.set(t,n,r,Mt(t)?t:s);return t===it(s)&&(a?xs(r,o)&&qr(t,"set",n,r):qr(t,"add",n,r)),l}deleteProperty(t,n){const r=yt(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&qr(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!hr(n)||!f_.has(n))&&Rn(t,"has",n),r}ownKeys(t){return Rn(t,"iterate",je(t)?"length":fo),Reflect.ownKeys(t)}}class g_ extends h_{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const fP=new p_,hP=new g_,pP=new p_(!0),gP=new g_(!0),og=e=>e,Xu=e=>Reflect.getPrototypeOf(e);function Zu(e,t,n=!1,r=!1){e=e.__v_raw;const s=it(e),o=it(t);n||(xs(t,o)&&Rn(s,"get",t),Rn(s,"get",o));const{has:a}=Xu(s),l=r?og:n?cg:Ln;if(a.call(s,t))return l(e.get(t));if(a.call(s,o))return l(e.get(o));e!==s&&e.get(t)}function Qu(e,t=!1){const n=this.__v_raw,r=it(n),s=it(e);return t||(xs(e,s)&&Rn(r,"has",e),Rn(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function ed(e,t=!1){return e=e.__v_raw,!t&&Rn(it(e),"iterate",fo),Reflect.get(e,"size",e)}function m_(e,t=!1){!t&&!_i(e)&&!ho(e)&&(e=it(e));const n=it(this);return Xu(n).has.call(n,e)||(n.add(e),qr(n,"add",e,e)),this}function v_(e,t,n=!1){!n&&!_i(t)&&!ho(t)&&(t=it(t));const r=it(this),{has:s,get:o}=Xu(r);let a=s.call(r,e);a||(e=it(e),a=s.call(r,e));const l=o.call(r,e);return r.set(e,t),a?xs(t,l)&&qr(r,"set",e,t):qr(r,"add",e,t),this}function b_(e){const t=it(this),{has:n,get:r}=Xu(t);let s=n.call(t,e);s||(e=it(e),s=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return s&&qr(t,"delete",e,void 0),o}function y_(){const e=it(this),t=e.size!==0,n=e.clear();return t&&qr(e,"clear",void 0,void 0),n}function td(e,t){return function(r,s){const o=this,a=o.__v_raw,l=it(a),c=t?og:e?cg:Ln;return!e&&Rn(l,"iterate",fo),a.forEach((u,d)=>r.call(s,c(u),c(d),o))}}function nd(e,t,n){return function(...r){const s=this.__v_raw,o=it(s),a=ma(o),l=e==="entries"||e===Symbol.iterator&&a,c=e==="keys"&&a,u=s[e](...r),d=n?og:t?cg:Ln;return!t&&Rn(o,"iterate",c?ig:fo),{next(){const{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:l?[d(f[0]),d(f[1])]:d(f),done:h}},[Symbol.iterator](){return this}}}}function As(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function mP(){const e={get(o){return Zu(this,o)},get size(){return ed(this)},has:Qu,add:m_,set:v_,delete:b_,clear:y_,forEach:td(!1,!1)},t={get(o){return Zu(this,o,!1,!0)},get size(){return ed(this)},has:Qu,add(o){return m_.call(this,o,!0)},set(o,a){return v_.call(this,o,a,!0)},delete:b_,clear:y_,forEach:td(!1,!0)},n={get(o){return Zu(this,o,!0)},get size(){return ed(this,!0)},has(o){return Qu.call(this,o,!0)},add:As("add"),set:As("set"),delete:As("delete"),clear:As("clear"),forEach:td(!0,!1)},r={get(o){return Zu(this,o,!0,!0)},get size(){return ed(this,!0)},has(o){return Qu.call(this,o,!0)},add:As("add"),set:As("set"),delete:As("delete"),clear:As("clear"),forEach:td(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=nd(o,!1,!1),n[o]=nd(o,!0,!1),t[o]=nd(o,!1,!0),r[o]=nd(o,!0,!0)}),[e,n,t,r]}const[vP,bP,yP,_P]=mP();function id(e,t){const n=t?e?_P:yP:e?bP:vP;return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(yt(n,s)&&s in r?n:r,s,o)}const wP={get:id(!1,!1)},CP={get:id(!1,!0)},SP={get:id(!0,!1)},EP={get:id(!0,!0)},__=new WeakMap,w_=new WeakMap,C_=new WeakMap,S_=new WeakMap;function xP(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function AP(e){return e.__v_skip||!Object.isExtensible(e)?0:xP(Hu(e))}function Dn(e){return ho(e)?e:sd(e,!1,fP,wP,__)}function ag(e){return sd(e,!1,pP,CP,w_)}function rd(e){return sd(e,!0,hP,SP,C_)}function Ehe(e){return sd(e,!0,gP,EP,S_)}function sd(e,t,n,r,s){if(!ct(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const a=AP(e);if(a===0)return e;const l=new Proxy(e,a===2?r:n);return s.set(e,l),l}function _a(e){return ho(e)?_a(e.__v_raw):!!(e&&e.__v_isReactive)}function ho(e){return!!(e&&e.__v_isReadonly)}function _i(e){return!!(e&&e.__v_isShallow)}function lg(e){return e?!!e.__v_raw:!1}function it(e){const t=e&&e.__v_raw;return t?it(t):e}function od(e){return!yt(e,"__v_skip")&&Object.isExtensible(e)&&Wy(e,"__v_skip",!0),e}const Ln=e=>ct(e)?Dn(e):e,cg=e=>ct(e)?rd(e):e;function Mt(e){return e?e.__v_isRef===!0:!1}function ne(e){return E_(e,!1)}function yn(e){return E_(e,!0)}function E_(e,t){return Mt(e)?e:new PP(e,t)}class PP{constructor(t,n){this.dep=new ng,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:it(t),this._value=n?t:Ln(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||_i(t)||ho(t);t=r?t:it(t),xs(t,n)&&(this._rawValue=t,this._value=r?t:Ln(t),this.dep.trigger())}}function P(e){return Mt(e)?e.value:e}const TP={get:(e,t,n)=>t==="__v_raw"?e:P(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Mt(s)&&!Mt(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function x_(e){return _a(e)?e:new Proxy(e,TP)}function pr(e){const t=je(e)?new Array(e.length):{};for(const n in e)t[n]=A_(e,n);return t}class OP{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return aP(it(this._object),this._key)}}class NP{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function wi(e,t,n){return Mt(e)?e:Ve(e)?new NP(e):ct(e)&&arguments.length>1?A_(e,t,n):ne(e)}function A_(e,t,n){const r=e[t];return Mt(r)?r:new OP(e,t,n)}class IP{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ng(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Wl-1,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Vt!==this)return r_(this),!0}get value(){const t=this.dep.track();return a_(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function RP(e,t,n=!1){let r,s;return Ve(e)?r=e:(r=e.get,s=e.set),new IP(r,s,n)}const ad={},ld=new WeakMap;let po;function DP(e,t=!1,n=po){if(n){let r=ld.get(n);r||ld.set(n,r=[]),r.push(e)}}function LP(e,t,n=lt){const{immediate:r,deep:s,once:o,scheduler:a,augmentJob:l,call:c}=n,u=S=>s?S:_i(S)||s===!1||s===0?Gr(S,1):Gr(S);let d,f,h,g,b=!1,y=!1;if(Mt(e)?(f=()=>e.value,b=_i(e)):_a(e)?(f=()=>u(e),b=!0):je(e)?(y=!0,b=e.some(S=>_a(S)||_i(S)),f=()=>e.map(S=>{if(Mt(S))return S.value;if(_a(S))return u(S);if(Ve(S))return c?c(S,2):S()})):Ve(e)?t?f=c?()=>c(e,2):e:f=()=>{if(h){Vr();try{h()}finally{zr()}}const S=po;po=d;try{return c?c(e,3,[g]):e(g)}finally{po=S}}:f=_t,t&&s){const S=f,A=s===!0?1/0:s;f=()=>Gr(S(),A)}const _=e_(),w=()=>{d.stop(),_&&uo(_.effects,d)};if(o&&t){const S=t;t=(...A)=>{S(...A),w()}}let x=y?new Array(e.length).fill(ad):ad;const C=S=>{if(!(!(d.flags&1)||!d.dirty&&!S))if(t){const A=d.run();if(s||b||(y?A.some((O,R)=>xs(O,x[R])):xs(A,x))){h&&h();const O=po;po=d;try{const R=[A,x===ad?void 0:y&&x[0]===ad?[]:x,g];c?c(t,3,R):t(...R),x=A}finally{po=O}}}else d.run()};return l&&l(C),d=new n_(f),d.scheduler=a?()=>a(C,!1):C,g=S=>DP(S,!1,d),h=d.onStop=()=>{const S=ld.get(d);if(S){if(c)c(S,4);else for(const A of S)A();ld.delete(d)}},t?r?C(!0):x=d.run():a?a(C.bind(null,!0),!0):d.run(),w.pause=d.pause.bind(d),w.resume=d.resume.bind(d),w.stop=w,w}function Gr(e,t=1/0,n){if(t<=0||!ct(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Mt(e))Gr(e.value,t,n);else if(je(e))for(let r=0;r<e.length;r++)Gr(e[r],t,n);else if(qu(e)||ma(e))e.forEach(r=>{Gr(r,t,n)});else if(va(e)){for(const r in e)Gr(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Gr(e[r],t,n)}return e}/**
|
|
10
|
-
* @vue/runtime-core v3.5.6
|
|
11
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
-
* @license MIT
|
|
13
|
-
**/const Yl=[];let ug=!1;function xhe(e,...t){if(ug)return;ug=!0,Vr();const n=Yl.length?Yl[Yl.length-1].component:null,r=n&&n.appContext.config.warnHandler,s=kP();if(r)wa(r,n,11,[e+t.map(o=>{var a,l;return(l=(a=o.toString)==null?void 0:a.call(o))!=null?l:JSON.stringify(o)}).join(""),n&&n.proxy,s.map(({vnode:o})=>`at <${I2(n,o.type)}>`).join(`
|
|
14
|
-
`),s]);else{const o=[`[Vue warn]: ${e}`,...t];s.length&&o.push(`
|
|
15
|
-
`,...MP(s)),console.warn(...o)}zr(),ug=!1}function kP(){let e=Yl[Yl.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function MP(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
|
|
16
|
-
`],...FP(n))}),t}function FP({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,s=` at <${I2(e.component,e.type,r)}`,o=">"+n;return e.props?[s,...BP(e.props),o]:[s+o]}function BP(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...P_(r,e[r]))}),n.length>3&&t.push(" ..."),t}function P_(e,t,n){return st(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Mt(t)?(t=P_(e,it(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Ve(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=it(t),n?t:[`${e}=`,t])}function wa(e,t,n,r){try{return r?e(...r):e()}catch(s){cd(s,t,n)}}function Wi(e,t,n,r){if(Ve(e)){const s=wa(e,t,n,r);return s&&Hy(s)&&s.catch(o=>{cd(o,t,n)}),s}if(je(e)){const s=[];for(let o=0;o<e.length;o++)s.push(Wi(e[o],t,n,r));return s}}function cd(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||lt;if(t){let l=t.parent;const c=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const d=l.ec;if(d){for(let f=0;f<d.length;f++)if(d[f](e,c,u)===!1)return}l=l.parent}if(o){Vr(),wa(o,null,10,[e,c,u]),zr();return}}jP(e,n,s,r,a)}function jP(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}let Xl=!1,dg=!1;const zn=[];let gr=0;const Ca=[];let Ps=null,Sa=0;const T_=Promise.resolve();let fg=null;function pt(e){const t=fg||T_;return e?t.then(this?e.bind(this):e):t}function UP(e){let t=Xl?gr+1:0,n=zn.length;for(;t<n;){const r=t+n>>>1,s=zn[r],o=Zl(s);o<e||o===e&&s.flags&2?t=r+1:n=r}return t}function hg(e){if(!(e.flags&1)){const t=Zl(e),n=zn[zn.length-1];!n||!(e.flags&2)&&t>=Zl(n)?zn.push(e):zn.splice(UP(t),0,e),e.flags|=1,O_()}}function O_(){!Xl&&!dg&&(dg=!0,fg=T_.then(R_))}function $P(e){je(e)?Ca.push(...e):Ps&&e.id===-1?Ps.splice(Sa+1,0,e):e.flags&1||(Ca.push(e),e.flags|=1),O_()}function N_(e,t,n=Xl?gr+1:0){for(;n<zn.length;n++){const r=zn[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;zn.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&=-2}}}function I_(e){if(Ca.length){const t=[...new Set(Ca)].sort((n,r)=>Zl(n)-Zl(r));if(Ca.length=0,Ps){Ps.push(...t);return}for(Ps=t,Sa=0;Sa<Ps.length;Sa++){const n=Ps[Sa];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Ps=null,Sa=0}}const Zl=e=>e.id==null?e.flags&2?-1:1/0:e.id;function R_(e){dg=!1,Xl=!0;const t=_t;try{for(gr=0;gr<zn.length;gr++){const n=zn[gr];n&&!(n.flags&8)&&(n.flags&4&&(n.flags&=-2),wa(n,n.i,n.i?15:14),n.flags&=-2)}}finally{for(;gr<zn.length;gr++){const n=zn[gr];n&&(n.flags&=-2)}gr=0,zn.length=0,I_(),Xl=!1,fg=null,(zn.length||Ca.length)&&R_()}}let _n=null,ud=null;function dd(e){const t=_n;return _n=e,ud=e&&e.type.__scopeId||null,t}function VP(e){ud=e}function zP(){ud=null}const qP=e=>ee;function ee(e,t=_n,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&_2(-1);const o=dd(t);let a;try{a=e(...s)}finally{dd(o),r._d&&_2(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function It(e,t){if(_n===null)return e;const n=Ed(_n),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[o,a,l,c=lt]=t[s];o&&(Ve(o)&&(o={mounted:o,updated:o}),o.deep&&Gr(a),r.push({dir:o,instance:n,value:a,oldValue:void 0,arg:l,modifiers:c}))}return e}function go(e,t,n,r){const s=e.dirs,o=t&&t.dirs;for(let a=0;a<s.length;a++){const l=s[a];o&&(l.oldValue=o[a].value);let c=l.dir[r];c&&(Vr(),Wi(c,n,8,[e.el,l,e,t]),zr())}}const D_=Symbol("_vte"),L_=e=>e.__isTeleport,Ql=e=>e&&(e.disabled||e.disabled===""),HP=e=>e&&(e.defer||e.defer===""),k_=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,M_=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,pg=(e,t)=>{const n=e&&e.to;return st(n)?t?t(n):null:n},GP={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,o,a,l,c,u){const{mc:d,pc:f,pbc:h,o:{insert:g,querySelector:b,createText:y,createComment:_}}=u,w=Ql(t.props);let{shapeFlag:x,children:C,dynamicChildren:S}=t;if(e==null){const A=t.el=y(""),O=t.anchor=y("");g(A,n,r),g(O,n,r);const R=(k,L)=>{x&16&&(s&&s.isCE&&(s.ce._teleportTarget=k),d(C,k,L,s,o,a,l,c))},N=()=>{const k=t.target=pg(t.props,b),L=F_(k,t,y,g);k&&(a!=="svg"&&k_(k)?a="svg":a!=="mathml"&&M_(k)&&(a="mathml"),w||(R(k,L),hd(t)))};w&&(R(n,O),hd(t)),HP(t.props)?Qn(N,o):N()}else{t.el=e.el,t.targetStart=e.targetStart;const A=t.anchor=e.anchor,O=t.target=e.target,R=t.targetAnchor=e.targetAnchor,N=Ql(e.props),k=N?n:O,L=N?A:R;if(a==="svg"||k_(O)?a="svg":(a==="mathml"||M_(O))&&(a="mathml"),S?(h(e.dynamicChildren,S,k,s,o,a,l),Og(e,t,!0)):c||f(e,t,k,L,s,o,a,l,!1),w)N?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):fd(t,n,A,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const F=t.target=pg(t.props,b);F&&fd(t,F,null,u,0)}else N&&fd(t,O,R,u,1);hd(t)}},remove(e,t,n,{um:r,o:{remove:s}},o){const{shapeFlag:a,children:l,anchor:c,targetStart:u,targetAnchor:d,target:f,props:h}=e;if(f&&(s(u),s(d)),o&&s(c),a&16){const g=o||!Ql(h);for(let b=0;b<l.length;b++){const y=l[b];r(y,t,n,g,!!y.dynamicChildren)}}},move:fd,hydrate:WP};function fd(e,t,n,{o:{insert:r},m:s},o=2){o===0&&r(e.targetAnchor,t,n);const{el:a,anchor:l,shapeFlag:c,children:u,props:d}=e,f=o===2;if(f&&r(a,t,n),(!f||Ql(d))&&c&16)for(let h=0;h<u.length;h++)s(u[h],t,n,2);f&&r(l,t,n)}function WP(e,t,n,r,s,o,{o:{nextSibling:a,parentNode:l,querySelector:c,insert:u,createText:d}},f){const h=t.target=pg(t.props,c);if(h){const g=h._lpa||h.firstChild;if(t.shapeFlag&16)if(Ql(t.props))t.anchor=f(a(e),t,l(e),n,r,s,o),t.targetStart=g,t.targetAnchor=g&&a(g);else{t.anchor=a(e);let b=g;for(;b;){if(b&&b.nodeType===8){if(b.data==="teleport start anchor")t.targetStart=b;else if(b.data==="teleport anchor"){t.targetAnchor=b,h._lpa=t.targetAnchor&&a(t.targetAnchor);break}}b=a(b)}t.targetAnchor||F_(h,t,d,u),f(g&&a(g),t,h,n,r,s,o)}hd(t)}return t.anchor&&a(t.anchor)}const KP=GP;function hd(e){const t=e.ctx;if(t&&t.ut){let n=e.targetStart;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}function F_(e,t,n,r){const s=t.targetStart=n(""),o=t.targetAnchor=n("");return s[D_]=o,e&&(r(s,e),r(o,e)),o}const Ts=Symbol("_leaveCb"),pd=Symbol("_enterCb");function B_(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Lt(()=>{e.isMounted=!0}),fn(()=>{e.isUnmounting=!0}),e}const Ci=[Function,Array],j_={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ci,onEnter:Ci,onAfterEnter:Ci,onEnterCancelled:Ci,onBeforeLeave:Ci,onLeave:Ci,onAfterLeave:Ci,onLeaveCancelled:Ci,onBeforeAppear:Ci,onAppear:Ci,onAfterAppear:Ci,onAppearCancelled:Ci},U_=e=>{const t=e.subTree;return t.component?U_(t.component):t},JP={name:"BaseTransition",props:j_,setup(e,{slots:t}){const n=xt(),r=B_();return()=>{const s=t.default&&mg(t.default(),!0);if(!s||!s.length)return;const o=$_(s),a=it(e),{mode:l}=a;if(r.isLeaving)return gg(o);const c=z_(o);if(!c)return gg(o);let u=ec(c,a,r,n,h=>u=h);c.type!==xn&&mo(c,u);const d=n.subTree,f=d&&z_(d);if(f&&f.type!==xn&&!_o(c,f)&&U_(n).type!==xn){const h=ec(f,a,r,n);if(mo(f,h),l==="out-in"&&c.type!==xn)return r.isLeaving=!0,h.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete h.afterLeave},gg(o);l==="in-out"&&c.type!==xn&&(h.delayLeave=(g,b,y)=>{const _=V_(r,f);_[String(f.key)]=f,g[Ts]=()=>{b(),g[Ts]=void 0,delete u.delayedLeave},u.delayedLeave=y})}return o}}};function $_(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==xn){t=n;break}}return t}const YP=JP;function V_(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ec(e,t,n,r,s){const{appear:o,mode:a,persisted:l=!1,onBeforeEnter:c,onEnter:u,onAfterEnter:d,onEnterCancelled:f,onBeforeLeave:h,onLeave:g,onAfterLeave:b,onLeaveCancelled:y,onBeforeAppear:_,onAppear:w,onAfterAppear:x,onAppearCancelled:C}=t,S=String(e.key),A=V_(n,e),O=(k,L)=>{k&&Wi(k,r,9,L)},R=(k,L)=>{const F=L[1];O(k,L),je(k)?k.every(G=>G.length<=1)&&F():k.length<=1&&F()},N={mode:a,persisted:l,beforeEnter(k){let L=c;if(!n.isMounted)if(o)L=_||c;else return;k[Ts]&&k[Ts](!0);const F=A[S];F&&_o(e,F)&&F.el[Ts]&&F.el[Ts](),O(L,[k])},enter(k){let L=u,F=d,G=f;if(!n.isMounted)if(o)L=w||u,F=x||d,G=C||f;else return;let V=!1;const ae=k[pd]=ce=>{V||(V=!0,ce?O(G,[k]):O(F,[k]),N.delayedLeave&&N.delayedLeave(),k[pd]=void 0)};L?R(L,[k,ae]):ae()},leave(k,L){const F=String(e.key);if(k[pd]&&k[pd](!0),n.isUnmounting)return L();O(h,[k]);let G=!1;const V=k[Ts]=ae=>{G||(G=!0,L(),ae?O(y,[k]):O(b,[k]),k[Ts]=void 0,A[F]===e&&delete A[F])};A[F]=e,g?R(g,[k,V]):V()},clone(k){const L=ec(k,t,n,r,s);return s&&s(L),L}};return N}function gg(e){if(gd(e))return e=Kr(e),e.children=null,e}function z_(e){if(!gd(e))return L_(e.type)&&e.children?$_(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Ve(n.default))return n.default()}}function mo(e,t){e.shapeFlag&6&&e.component?(e.transition=t,mo(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 mg(e,t=!1,n){let r=[],s=0;for(let o=0;o<e.length;o++){let a=e[o];const l=n==null?a.key:String(n)+String(a.key!=null?a.key:o);a.type===qe?(a.patchFlag&128&&s++,r=r.concat(mg(a.children,t,l))):(t||a.type!==xn)&&r.push(l!=null?Kr(a,{key:l}):a)}if(s>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function Te(e,t){return Ve(e)?(()=>Rt({name:e.name},t,{setup:e}))():e}function q_(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function vg(e,t,n,r,s=!1){if(je(e)){e.forEach((b,y)=>vg(b,t&&(je(t)?t[y]:t),n,r,s));return}if(Ea(r)&&!s)return;const o=r.shapeFlag&4?Ed(r.component):r.el,a=s?null:o,{i:l,r:c}=e,u=t&&t.r,d=l.refs===lt?l.refs={}:l.refs,f=l.setupState,h=it(f),g=f===lt?()=>!1:b=>yt(h,b);if(u!=null&&u!==c&&(st(u)?(d[u]=null,g(u)&&(f[u]=null)):Mt(u)&&(u.value=null)),Ve(c))wa(c,l,12,[a,d]);else{const b=st(c),y=Mt(c);if(b||y){const _=()=>{if(e.f){const w=b?g(c)?f[c]:d[c]:c.value;s?je(w)&&uo(w,o):je(w)?w.includes(o)||w.push(o):b?(d[c]=[o],g(c)&&(f[c]=d[c])):(c.value=[o],e.k&&(d[e.k]=c.value))}else b?(d[c]=a,g(c)&&(f[c]=a)):y&&(c.value=a,e.k&&(d[e.k]=a))};a?(_.id=-1,Qn(_,n)):_()}}}const Ea=e=>!!e.type.__asyncLoader,gd=e=>e.type.__isKeepAlive;function H_(e,t){W_(e,"a",t)}function G_(e,t){W_(e,"da",t)}function W_(e,t,n=Pn){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(md(t,r,n),n){let s=n.parent;for(;s&&s.parent;)gd(s.parent.vnode)&&XP(r,t,n,s),s=s.parent}}function XP(e,t,n,r){const s=md(t,e,r,!0);vo(()=>{uo(r[t],s)},n)}function md(e,t,n=Pn,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...a)=>{Vr();const l=lc(n),c=Wi(t,n,e,a);return l(),zr(),c});return r?s.unshift(o):s.push(o),o}}const Wr=e=>(t,n=Pn)=>{(!Sd||e==="sp")&&md(e,(...r)=>t(...r),n)},tc=Wr("bm"),Lt=Wr("m"),ZP=Wr("bu"),nc=Wr("u"),fn=Wr("bum"),vo=Wr("um"),QP=Wr("sp"),eT=Wr("rtg"),tT=Wr("rtc");function nT(e,t=Pn){md("ec",e,t)}const bg="components",iT="directives";function We(e,t){return yg(bg,e,!0,t)||e}const K_=Symbol.for("v-ndc");function Zt(e){return st(e)?yg(bg,e,!1)||e:e||K_}function vd(e){return yg(iT,e)}function yg(e,t,n=!0,r=!1){const s=_n||Pn;if(s){const o=s.type;if(e===bg){const l=N2(o,!1);if(l&&(l===t||l===$n(t)||l===Wu($n(t))))return o}const a=J_(s[e]||o[e],t)||J_(s.appContext[e],t);return!a&&r?o:a}}function J_(e,t){return e&&(e[t]||e[$n(t)]||e[Wu($n(t))])}function Tt(e,t,n,r){let s;const o=n&&n[r],a=je(e);if(a||st(e)){const l=a&&_a(e);let c=!1;l&&(c=!_i(e),e=Yu(e)),s=new Array(e.length);for(let u=0,d=e.length;u<d;u++)s[u]=t(c?Ln(e[u]):e[u],u,void 0,o&&o[u])}else if(typeof e=="number"){s=new Array(e);for(let l=0;l<e;l++)s[l]=t(l+1,l,void 0,o&&o[l])}else if(ct(e))if(e[Symbol.iterator])s=Array.from(e,(l,c)=>t(l,c,void 0,o&&o[c]));else{const l=Object.keys(e);s=new Array(l.length);for(let c=0,u=l.length;c<u;c++){const d=l[c];s[c]=t(e[d],d,c,o&&o[c])}}else s=[];return n&&(n[r]=s),s}function _g(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(je(r))for(let s=0;s<r.length;s++)e[r[s].name]=r[s].fn;else r&&(e[r.name]=r.key?(...s)=>{const o=r.fn(...s);return o&&(o.key=r.key),o}:r.fn)}return e}function Re(e,t,n={},r,s){if(_n.ce||_n.parent&&Ea(_n.parent)&&_n.parent.ce)return t!=="default"&&(n.name=t),I(),Ee(qe,null,[te("slot",n,r&&r())],64);let o=e[t];o&&o._c&&(o._d=!1),I();const a=o&&Y_(o(n)),l=Ee(qe,{key:(n.key||a&&a.key||`_${t}`)+(!a&&r?"_fb":"")},a||(r?r():[]),a&&e._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function Y_(e){return e.some(t=>Os(t)?!(t.type===xn||t.type===qe&&!Y_(t.children)):!0)?e:null}function rT(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Hl(r)]=e[r];return n}const wg=e=>e?x2(e)?Ed(e):wg(e.parent):null,ic=Rt(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=>wg(e.parent),$root:e=>wg(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Eg(e),$forceUpdate:e=>e.f||(e.f=()=>{hg(e.update)}),$nextTick:e=>e.n||(e.n=pt.bind(e.proxy)),$watch:e=>PT.bind(e)}),Cg=(e,t)=>e!==lt&&!e.__isScriptSetup&&yt(e,t),sT={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:o,accessCache:a,type:l,appContext:c}=e;let u;if(t[0]!=="$"){const g=a[t];if(g!==void 0)switch(g){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(Cg(r,t))return a[t]=1,r[t];if(s!==lt&&yt(s,t))return a[t]=2,s[t];if((u=e.propsOptions[0])&&yt(u,t))return a[t]=3,o[t];if(n!==lt&&yt(n,t))return a[t]=4,n[t];Sg&&(a[t]=0)}}const d=ic[t];let f,h;if(d)return t==="$attrs"&&Rn(e.attrs,"get",""),d(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==lt&&yt(n,t))return a[t]=4,n[t];if(h=c.config.globalProperties,yt(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return Cg(s,t)?(s[t]=n,!0):r!==lt&&yt(r,t)?(r[t]=n,!0):yt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:o}},a){let l;return!!n[a]||e!==lt&&yt(e,a)||Cg(t,a)||(l=o[0])&&yt(l,a)||yt(r,a)||yt(ic,a)||yt(s.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:yt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function xa(){return X_().slots}function oT(){return X_().attrs}function X_(){const e=xt();return e.setupContext||(e.setupContext=O2(e))}function Z_(e){return je(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Sg=!0;function aT(e){const t=Eg(e),n=e.proxy,r=e.ctx;Sg=!1,t.beforeCreate&&Q_(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:a,watch:l,provide:c,inject:u,created:d,beforeMount:f,mounted:h,beforeUpdate:g,updated:b,activated:y,deactivated:_,beforeDestroy:w,beforeUnmount:x,destroyed:C,unmounted:S,render:A,renderTracked:O,renderTriggered:R,errorCaptured:N,serverPrefetch:k,expose:L,inheritAttrs:F,components:G,directives:V,filters:ae}=t;if(u&&lT(u,r,null),a)for(const J in a){const Q=a[J];Ve(Q)&&(r[J]=Q.bind(n))}if(s){const J=s.call(n,n);ct(J)&&(e.data=Dn(J))}if(Sg=!0,o)for(const J in o){const Q=o[J],X=Ve(Q)?Q.bind(n,n):Ve(Q.get)?Q.get.bind(n,n):_t,B=!Ve(Q)&&Ve(Q.set)?Q.set.bind(n):_t,_e=W({get:X,set:B});Object.defineProperty(r,J,{enumerable:!0,configurable:!0,get:()=>_e.value,set:he=>_e.value=he})}if(l)for(const J in l)e2(l[J],r,n,J);if(c){const J=Ve(c)?c.call(n):c;Reflect.ownKeys(J).forEach(Q=>{an(Q,J[Q])})}d&&Q_(d,e,"c");function U(J,Q){je(Q)?Q.forEach(X=>J(X.bind(n))):Q&&J(Q.bind(n))}if(U(tc,f),U(Lt,h),U(ZP,g),U(nc,b),U(H_,y),U(G_,_),U(nT,N),U(tT,O),U(eT,R),U(fn,x),U(vo,S),U(QP,k),je(L))if(L.length){const J=e.exposed||(e.exposed={});L.forEach(Q=>{Object.defineProperty(J,Q,{get:()=>n[Q],set:X=>n[Q]=X})})}else e.exposed||(e.exposed={});A&&e.render===_t&&(e.render=A),F!=null&&(e.inheritAttrs=F),G&&(e.components=G),V&&(e.directives=V),k&&q_(e)}function lT(e,t,n=_t){je(e)&&(e=xg(e));for(const r in e){const s=e[r];let o;ct(s)?"default"in s?o=Qe(s.from||r,s.default,!0):o=Qe(s.from||r):o=Qe(s),Mt(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[r]=o}}function Q_(e,t,n){Wi(je(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function e2(e,t,n,r){let s=r.includes(".")?m2(n,r):()=>n[r];if(st(e)){const o=t[e];Ve(o)&&ze(s,o)}else if(Ve(e))ze(s,e.bind(n));else if(ct(e))if(je(e))e.forEach(o=>e2(o,t,n,r));else{const o=Ve(e.handler)?e.handler.bind(n):t[e.handler];Ve(o)&&ze(s,o,e)}}function Eg(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,l=o.get(t);let c;return l?c=l:!s.length&&!n&&!r?c=t:(c={},s.length&&s.forEach(u=>bd(c,u,a,!0)),bd(c,t,a)),ct(t)&&o.set(t,c),c}function bd(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&bd(e,o,n,!0),s&&s.forEach(a=>bd(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const l=cT[a]||n&&n[a];e[a]=l?l(e[a],t[a]):t[a]}return e}const cT={data:t2,props:n2,emits:n2,methods:rc,computed:rc,beforeCreate:qn,created:qn,beforeMount:qn,mounted:qn,beforeUpdate:qn,updated:qn,beforeDestroy:qn,beforeUnmount:qn,destroyed:qn,unmounted:qn,activated:qn,deactivated:qn,errorCaptured:qn,serverPrefetch:qn,components:rc,directives:rc,watch:dT,provide:t2,inject:uT};function t2(e,t){return t?e?function(){return Rt(Ve(e)?e.call(this,this):e,Ve(t)?t.call(this,this):t)}:t:e}function uT(e,t){return rc(xg(e),xg(t))}function xg(e){if(je(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function qn(e,t){return e?[...new Set([].concat(e,t))]:t}function rc(e,t){return e?Rt(Object.create(null),e,t):t}function n2(e,t){return e?je(e)&&je(t)?[...new Set([...e,...t])]:Rt(Object.create(null),Z_(e),Z_(t!=null?t:{})):t}function dT(e,t){if(!e)return t;if(!t)return e;const n=Rt(Object.create(null),e);for(const r in t)n[r]=qn(e[r],t[r]);return n}function i2(){return{app:null,config:{isNativeTag:Gp,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 fT=0;function hT(e,t){return function(r,s=null){Ve(r)||(r=Rt({},r)),s!=null&&!ct(s)&&(s=null);const o=i2(),a=new WeakSet,l=[];let c=!1;const u=o.app={_uid:fT++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:WT,get config(){return o.config},set config(d){},use(d,...f){return a.has(d)||(d&&Ve(d.install)?(a.add(d),d.install(u,...f)):Ve(d)&&(a.add(d),d(u,...f))),u},mixin(d){return o.mixins.includes(d)||o.mixins.push(d),u},component(d,f){return f?(o.components[d]=f,u):o.components[d]},directive(d,f){return f?(o.directives[d]=f,u):o.directives[d]},mount(d,f,h){if(!c){const g=u._ceVNode||te(r,s);return g.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),f&&t?t(g,d):e(g,d,h),c=!0,u._container=d,d.__vue_app__=u,Ed(g.component)}},onUnmount(d){l.push(d)},unmount(){c&&(Wi(l,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(d,f){return o.provides[d]=f,u},runWithContext(d){const f=Aa;Aa=u;try{return d()}finally{Aa=f}}};return u}}let Aa=null;function an(e,t){if(Pn){let n=Pn.provides;const r=Pn.parent&&Pn.parent.provides;r===n&&(n=Pn.provides=Object.create(r)),n[e]=t}}function Qe(e,t,n=!1){const r=Pn||_n;if(r||Aa){const s=Aa?Aa._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&Ve(t)?t.call(r&&r.proxy):t}}const r2={},s2=()=>Object.create(r2),o2=e=>Object.getPrototypeOf(e)===r2;function pT(e,t,n,r=!1){const s={},o=s2();e.propsDefaults=Object.create(null),a2(e,t,s,o);for(const a in e.propsOptions[0])a in s||(s[a]=void 0);n?e.props=r?s:ag(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function gT(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:a}}=e,l=it(s),[c]=e.propsOptions;let u=!1;if((r||a>0)&&!(a&16)){if(a&8){const d=e.vnode.dynamicProps;for(let f=0;f<d.length;f++){let h=d[f];if(_d(e.emitsOptions,h))continue;const g=t[h];if(c)if(yt(o,h))g!==o[h]&&(o[h]=g,u=!0);else{const b=$n(h);s[b]=Ag(c,l,b,g,e,!1)}else g!==o[h]&&(o[h]=g,u=!0)}}}else{a2(e,t,s,o)&&(u=!0);let d;for(const f in l)(!t||!yt(t,f)&&((d=Zn(f))===f||!yt(t,d)))&&(c?n&&(n[f]!==void 0||n[d]!==void 0)&&(s[f]=Ag(c,l,f,void 0,e,!0)):delete s[f]);if(o!==l)for(const f in o)(!t||!yt(t,f))&&(delete o[f],u=!0)}u&&qr(e.attrs,"set","")}function a2(e,t,n,r){const[s,o]=e.propsOptions;let a=!1,l;if(t)for(let c in t){if(ql(c))continue;const u=t[c];let d;s&&yt(s,d=$n(c))?!o||!o.includes(d)?n[d]=u:(l||(l={}))[d]=u:_d(e.emitsOptions,c)||(!(c in r)||u!==r[c])&&(r[c]=u,a=!0)}if(o){const c=it(n),u=l||lt;for(let d=0;d<o.length;d++){const f=o[d];n[f]=Ag(s,c,f,u[f],e,!yt(u,f))}}return a}function Ag(e,t,n,r,s,o){const a=e[n];if(a!=null){const l=yt(a,"default");if(l&&r===void 0){const c=a.default;if(a.type!==Function&&!a.skipFactory&&Ve(c)){const{propsDefaults:u}=s;if(n in u)r=u[n];else{const d=lc(s);r=u[n]=c.call(null,t),d()}}else r=c;s.ce&&s.ce._setProp(n,r)}a[0]&&(o&&!l?r=!1:a[1]&&(r===""||r===Zn(n))&&(r=!0))}return r}const mT=new WeakMap;function l2(e,t,n=!1){const r=n?mT:t.propsCache,s=r.get(e);if(s)return s;const o=e.props,a={},l=[];let c=!1;if(!Ve(e)){const d=f=>{c=!0;const[h,g]=l2(f,t,!0);Rt(a,h),g&&l.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!c)return ct(e)&&r.set(e,bn),bn;if(je(o))for(let d=0;d<o.length;d++){const f=$n(o[d]);c2(f)&&(a[f]=lt)}else if(o)for(const d in o){const f=$n(d);if(c2(f)){const h=o[d],g=a[f]=je(h)||Ve(h)?{type:h}:Rt({},h),b=g.type;let y=!1,_=!0;if(je(b))for(let w=0;w<b.length;++w){const x=b[w],C=Ve(x)&&x.name;if(C==="Boolean"){y=!0;break}else C==="String"&&(_=!1)}else y=Ve(b)&&b.name==="Boolean";g[0]=y,g[1]=_,(y||yt(g,"default"))&&l.push(f)}}const u=[a,l];return ct(e)&&r.set(e,u),u}function c2(e){return e[0]!=="$"&&!ql(e)}const u2=e=>e[0]==="_"||e==="$stable",Pg=e=>je(e)?e.map(mr):[mr(e)],vT=(e,t,n)=>{if(t._n)return t;const r=ee((...s)=>Pg(t(...s)),n);return r._c=!1,r},d2=(e,t,n)=>{const r=e._ctx;for(const s in e){if(u2(s))continue;const o=e[s];if(Ve(o))t[s]=vT(s,o,r);else if(o!=null){const a=Pg(o);t[s]=()=>a}}},f2=(e,t)=>{const n=Pg(t);e.slots.default=()=>n},h2=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},bT=(e,t,n)=>{const r=e.slots=s2();if(e.vnode.shapeFlag&32){const s=t._;s?(h2(r,t,n),n&&Wy(r,"_",s,!0)):d2(t,r)}else t&&f2(e,t)},yT=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,a=lt;if(r.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:h2(s,t,n):(o=!t.$stable,d2(t,s)),a=t}else t&&(f2(e,t),a={default:1});if(o)for(const l in s)!u2(l)&&a[l]==null&&delete s[l]},Qn=LT;function _T(e){return wT(e)}function wT(e,t){const n=Jy();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:a,createText:l,createComment:c,setText:u,setElementText:d,parentNode:f,nextSibling:h,setScopeId:g=_t,insertStaticContent:b}=e,y=(j,K,se,Ae=null,de=null,fe=null,Se=void 0,Pe=null,Ne=!!K.dynamicChildren)=>{if(j===K)return;j&&!_o(j,K)&&(Ae=q(j),he(j,de,fe,!0),j=null),K.patchFlag===-2&&(Ne=!1,K.dynamicChildren=null);const{type:be,ref:$e,shapeFlag:pe}=K;switch(be){case Pa:_(j,K,se,Ae);break;case xn:w(j,K,se,Ae);break;case sc:j==null&&x(K,se,Ae,Se);break;case qe:G(j,K,se,Ae,de,fe,Se,Pe,Ne);break;default:pe&1?A(j,K,se,Ae,de,fe,Se,Pe,Ne):pe&6?V(j,K,se,Ae,de,fe,Se,Pe,Ne):(pe&64||pe&128)&&be.process(j,K,se,Ae,de,fe,Se,Pe,Ne,Oe)}$e!=null&&de&&vg($e,j&&j.ref,fe,K||j,!K)},_=(j,K,se,Ae)=>{if(j==null)r(K.el=l(K.children),se,Ae);else{const de=K.el=j.el;K.children!==j.children&&u(de,K.children)}},w=(j,K,se,Ae)=>{j==null?r(K.el=c(K.children||""),se,Ae):K.el=j.el},x=(j,K,se,Ae)=>{[j.el,j.anchor]=b(j.children,K,se,Ae,j.el,j.anchor)},C=({el:j,anchor:K},se,Ae)=>{let de;for(;j&&j!==K;)de=h(j),r(j,se,Ae),j=de;r(K,se,Ae)},S=({el:j,anchor:K})=>{let se;for(;j&&j!==K;)se=h(j),s(j),j=se;s(K)},A=(j,K,se,Ae,de,fe,Se,Pe,Ne)=>{K.type==="svg"?Se="svg":K.type==="math"&&(Se="mathml"),j==null?O(K,se,Ae,de,fe,Se,Pe,Ne):k(j,K,de,fe,Se,Pe,Ne)},O=(j,K,se,Ae,de,fe,Se,Pe)=>{let Ne,be;const{props:$e,shapeFlag:pe,transition:le,dirs:ke}=j;if(Ne=j.el=a(j.type,fe,$e&&$e.is,$e),pe&8?d(Ne,j.children):pe&16&&N(j.children,Ne,null,Ae,de,Tg(j,fe),Se,Pe),ke&&go(j,null,Ae,"created"),R(Ne,j,j.scopeId,Se,Ae),$e){for(const Ct in $e)Ct!=="value"&&!ql(Ct)&&o(Ne,Ct,null,$e[Ct],fe,Ae);"value"in $e&&o(Ne,"value",null,$e.value,fe),(be=$e.onVnodeBeforeMount)&&vr(be,Ae,j)}ke&&go(j,null,Ae,"beforeMount");const Ye=CT(de,le);Ye&&le.beforeEnter(Ne),r(Ne,K,se),((be=$e&&$e.onVnodeMounted)||Ye||ke)&&Qn(()=>{be&&vr(be,Ae,j),Ye&&le.enter(Ne),ke&&go(j,null,Ae,"mounted")},de)},R=(j,K,se,Ae,de)=>{if(se&&g(j,se),Ae)for(let fe=0;fe<Ae.length;fe++)g(j,Ae[fe]);if(de){let fe=de.subTree;if(K===fe||y2(fe.type)&&(fe.ssContent===K||fe.ssFallback===K)){const Se=de.vnode;R(j,Se,Se.scopeId,Se.slotScopeIds,de.parent)}}},N=(j,K,se,Ae,de,fe,Se,Pe,Ne=0)=>{for(let be=Ne;be<j.length;be++){const $e=j[be]=Pe?Ns(j[be]):mr(j[be]);y(null,$e,K,se,Ae,de,fe,Se,Pe)}},k=(j,K,se,Ae,de,fe,Se)=>{const Pe=K.el=j.el;let{patchFlag:Ne,dynamicChildren:be,dirs:$e}=K;Ne|=j.patchFlag&16;const pe=j.props||lt,le=K.props||lt;let ke;if(se&&bo(se,!1),(ke=le.onVnodeBeforeUpdate)&&vr(ke,se,K,j),$e&&go(K,j,se,"beforeUpdate"),se&&bo(se,!0),(pe.innerHTML&&le.innerHTML==null||pe.textContent&&le.textContent==null)&&d(Pe,""),be?L(j.dynamicChildren,be,Pe,se,Ae,Tg(K,de),fe):Se||Q(j,K,Pe,null,se,Ae,Tg(K,de),fe,!1),Ne>0){if(Ne&16)F(Pe,pe,le,se,de);else if(Ne&2&&pe.class!==le.class&&o(Pe,"class",null,le.class,de),Ne&4&&o(Pe,"style",pe.style,le.style,de),Ne&8){const Ye=K.dynamicProps;for(let Ct=0;Ct<Ye.length;Ct++){const mt=Ye[Ct],Nt=pe[mt],De=le[mt];(De!==Nt||mt==="value")&&o(Pe,mt,Nt,De,de,se)}}Ne&1&&j.children!==K.children&&d(Pe,K.children)}else!Se&&be==null&&F(Pe,pe,le,se,de);((ke=le.onVnodeUpdated)||$e)&&Qn(()=>{ke&&vr(ke,se,K,j),$e&&go(K,j,se,"updated")},Ae)},L=(j,K,se,Ae,de,fe,Se)=>{for(let Pe=0;Pe<K.length;Pe++){const Ne=j[Pe],be=K[Pe],$e=Ne.el&&(Ne.type===qe||!_o(Ne,be)||Ne.shapeFlag&70)?f(Ne.el):se;y(Ne,be,$e,null,Ae,de,fe,Se,!0)}},F=(j,K,se,Ae,de)=>{if(K!==se){if(K!==lt)for(const fe in K)!ql(fe)&&!(fe in se)&&o(j,fe,K[fe],null,de,Ae);for(const fe in se){if(ql(fe))continue;const Se=se[fe],Pe=K[fe];Se!==Pe&&fe!=="value"&&o(j,fe,Pe,Se,de,Ae)}"value"in se&&o(j,"value",K.value,se.value,de)}},G=(j,K,se,Ae,de,fe,Se,Pe,Ne)=>{const be=K.el=j?j.el:l(""),$e=K.anchor=j?j.anchor:l("");let{patchFlag:pe,dynamicChildren:le,slotScopeIds:ke}=K;ke&&(Pe=Pe?Pe.concat(ke):ke),j==null?(r(be,se,Ae),r($e,se,Ae),N(K.children||[],se,$e,de,fe,Se,Pe,Ne)):pe>0&&pe&64&&le&&j.dynamicChildren?(L(j.dynamicChildren,le,se,de,fe,Se,Pe),(K.key!=null||de&&K===de.subTree)&&Og(j,K,!0)):Q(j,K,se,$e,de,fe,Se,Pe,Ne)},V=(j,K,se,Ae,de,fe,Se,Pe,Ne)=>{K.slotScopeIds=Pe,j==null?K.shapeFlag&512?de.ctx.activate(K,se,Ae,Se,Ne):ae(K,se,Ae,de,fe,Se,Ne):ce(j,K,Ne)},ae=(j,K,se,Ae,de,fe,Se)=>{const Pe=j.component=UT(j,Ae,de);if(gd(j)&&(Pe.ctx.renderer=Oe),$T(Pe,!1,Se),Pe.asyncDep){if(de&&de.registerDep(Pe,U,Se),!j.el){const Ne=Pe.subTree=te(xn);w(null,Ne,K,se)}}else U(Pe,j,K,se,de,fe,Se)},ce=(j,K,se)=>{const Ae=K.component=j.component;if(RT(j,K,se))if(Ae.asyncDep&&!Ae.asyncResolved){J(Ae,K,se);return}else Ae.next=K,Ae.update();else K.el=j.el,Ae.vnode=K},U=(j,K,se,Ae,de,fe,Se)=>{const Pe=()=>{if(j.isMounted){let{next:pe,bu:le,u:ke,parent:Ye,vnode:Ct}=j;{const et=p2(j);if(et){pe&&(pe.el=Ct.el,J(j,pe,Se)),et.asyncDep.then(()=>{j.isUnmounted||Pe()});return}}let mt=pe,Nt;bo(j,!1),pe?(pe.el=Ct.el,J(j,pe,Se)):pe=Ct,le&&Ku(le),(Nt=pe.props&&pe.props.onVnodeBeforeUpdate)&&vr(Nt,Ye,pe,Ct),bo(j,!0);const De=Ng(j),He=j.subTree;j.subTree=De,y(He,De,f(He.el),q(He),j,de,fe),pe.el=De.el,mt===null&&DT(j,De.el),ke&&Qn(ke,de),(Nt=pe.props&&pe.props.onVnodeUpdated)&&Qn(()=>vr(Nt,Ye,pe,Ct),de)}else{let pe;const{el:le,props:ke}=K,{bm:Ye,m:Ct,parent:mt,root:Nt,type:De}=j,He=Ea(K);if(bo(j,!1),Ye&&Ku(Ye),!He&&(pe=ke&&ke.onVnodeBeforeMount)&&vr(pe,mt,K),bo(j,!0),le&&Ke){const et=()=>{j.subTree=Ng(j),Ke(le,j.subTree,j,de,null)};He&&De.__asyncHydrate?De.__asyncHydrate(le,j,et):et()}else{Nt.ce&&Nt.ce._injectChildStyle(De);const et=j.subTree=Ng(j);y(null,et,se,Ae,j,de,fe),K.el=et.el}if(Ct&&Qn(Ct,de),!He&&(pe=ke&&ke.onVnodeMounted)){const et=K;Qn(()=>vr(pe,mt,et),de)}(K.shapeFlag&256||mt&&Ea(mt.vnode)&&mt.vnode.shapeFlag&256)&&j.a&&Qn(j.a,de),j.isMounted=!0,K=se=Ae=null}};j.scope.on();const Ne=j.effect=new n_(Pe);j.scope.off();const be=j.update=Ne.run.bind(Ne),$e=j.job=Ne.runIfDirty.bind(Ne);$e.i=j,$e.id=j.uid,Ne.scheduler=()=>hg($e),bo(j,!0),be()},J=(j,K,se)=>{K.component=j;const Ae=j.vnode.props;j.vnode=K,j.next=null,gT(j,K.props,Ae,se),yT(j,K.children,se),Vr(),N_(j),zr()},Q=(j,K,se,Ae,de,fe,Se,Pe,Ne=!1)=>{const be=j&&j.children,$e=j?j.shapeFlag:0,pe=K.children,{patchFlag:le,shapeFlag:ke}=K;if(le>0){if(le&128){B(be,pe,se,Ae,de,fe,Se,Pe,Ne);return}else if(le&256){X(be,pe,se,Ae,de,fe,Se,Pe,Ne);return}}ke&8?($e&16&&me(be,de,fe),pe!==be&&d(se,pe)):$e&16?ke&16?B(be,pe,se,Ae,de,fe,Se,Pe,Ne):me(be,de,fe,!0):($e&8&&d(se,""),ke&16&&N(pe,se,Ae,de,fe,Se,Pe,Ne))},X=(j,K,se,Ae,de,fe,Se,Pe,Ne)=>{j=j||bn,K=K||bn;const be=j.length,$e=K.length,pe=Math.min(be,$e);let le;for(le=0;le<pe;le++){const ke=K[le]=Ne?Ns(K[le]):mr(K[le]);y(j[le],ke,se,null,de,fe,Se,Pe,Ne)}be>$e?me(j,de,fe,!0,!1,pe):N(K,se,Ae,de,fe,Se,Pe,Ne,pe)},B=(j,K,se,Ae,de,fe,Se,Pe,Ne)=>{let be=0;const $e=K.length;let pe=j.length-1,le=$e-1;for(;be<=pe&&be<=le;){const ke=j[be],Ye=K[be]=Ne?Ns(K[be]):mr(K[be]);if(_o(ke,Ye))y(ke,Ye,se,null,de,fe,Se,Pe,Ne);else break;be++}for(;be<=pe&&be<=le;){const ke=j[pe],Ye=K[le]=Ne?Ns(K[le]):mr(K[le]);if(_o(ke,Ye))y(ke,Ye,se,null,de,fe,Se,Pe,Ne);else break;pe--,le--}if(be>pe){if(be<=le){const ke=le+1,Ye=ke<$e?K[ke].el:Ae;for(;be<=le;)y(null,K[be]=Ne?Ns(K[be]):mr(K[be]),se,Ye,de,fe,Se,Pe,Ne),be++}}else if(be>le)for(;be<=pe;)he(j[be],de,fe,!0),be++;else{const ke=be,Ye=be,Ct=new Map;for(be=Ye;be<=le;be++){const vt=K[be]=Ne?Ns(K[be]):mr(K[be]);vt.key!=null&&Ct.set(vt.key,be)}let mt,Nt=0;const De=le-Ye+1;let He=!1,et=0;const ot=new Array(De);for(be=0;be<De;be++)ot[be]=0;for(be=ke;be<=pe;be++){const vt=j[be];if(Nt>=De){he(vt,de,fe,!0);continue}let qt;if(vt.key!=null)qt=Ct.get(vt.key);else for(mt=Ye;mt<=le;mt++)if(ot[mt-Ye]===0&&_o(vt,K[mt])){qt=mt;break}qt===void 0?he(vt,de,fe,!0):(ot[qt-Ye]=be+1,qt>=et?et=qt:He=!0,y(vt,K[qt],se,null,de,fe,Se,Pe,Ne),Nt++)}const St=He?ST(ot):bn;for(mt=St.length-1,be=De-1;be>=0;be--){const vt=Ye+be,qt=K[vt],Xn=vt+1<$e?K[vt+1].el:Ae;ot[be]===0?y(null,qt,se,Xn,de,fe,Se,Pe,Ne):He&&(mt<0||be!==St[mt]?_e(qt,se,Xn,2):mt--)}}},_e=(j,K,se,Ae,de=null)=>{const{el:fe,type:Se,transition:Pe,children:Ne,shapeFlag:be}=j;if(be&6){_e(j.component.subTree,K,se,Ae);return}if(be&128){j.suspense.move(K,se,Ae);return}if(be&64){Se.move(j,K,se,Oe);return}if(Se===qe){r(fe,K,se);for(let pe=0;pe<Ne.length;pe++)_e(Ne[pe],K,se,Ae);r(j.anchor,K,se);return}if(Se===sc){C(j,K,se);return}if(Ae!==2&&be&1&&Pe)if(Ae===0)Pe.beforeEnter(fe),r(fe,K,se),Qn(()=>Pe.enter(fe),de);else{const{leave:pe,delayLeave:le,afterLeave:ke}=Pe,Ye=()=>r(fe,K,se),Ct=()=>{pe(fe,()=>{Ye(),ke&&ke()})};le?le(fe,Ye,Ct):Ct()}else r(fe,K,se)},he=(j,K,se,Ae=!1,de=!1)=>{const{type:fe,props:Se,ref:Pe,children:Ne,dynamicChildren:be,shapeFlag:$e,patchFlag:pe,dirs:le,cacheIndex:ke}=j;if(pe===-2&&(de=!1),Pe!=null&&vg(Pe,null,se,j,!0),ke!=null&&(K.renderCache[ke]=void 0),$e&256){K.ctx.deactivate(j);return}const Ye=$e&1&&le,Ct=!Ea(j);let mt;if(Ct&&(mt=Se&&Se.onVnodeBeforeUnmount)&&vr(mt,K,j),$e&6)Ce(j.component,se,Ae);else{if($e&128){j.suspense.unmount(se,Ae);return}Ye&&go(j,null,K,"beforeUnmount"),$e&64?j.type.remove(j,K,se,Oe,Ae):be&&!be.hasOnce&&(fe!==qe||pe>0&&pe&64)?me(be,K,se,!1,!0):(fe===qe&&pe&384||!de&&$e&16)&&me(Ne,K,se),Ae&&ie(j)}(Ct&&(mt=Se&&Se.onVnodeUnmounted)||Ye)&&Qn(()=>{mt&&vr(mt,K,j),Ye&&go(j,null,K,"unmounted")},se)},ie=j=>{const{type:K,el:se,anchor:Ae,transition:de}=j;if(K===qe){oe(se,Ae);return}if(K===sc){S(j);return}const fe=()=>{s(se),de&&!de.persisted&&de.afterLeave&&de.afterLeave()};if(j.shapeFlag&1&&de&&!de.persisted){const{leave:Se,delayLeave:Pe}=de,Ne=()=>Se(se,fe);Pe?Pe(j.el,fe,Ne):Ne()}else fe()},oe=(j,K)=>{let se;for(;j!==K;)se=h(j),s(j),j=se;s(K)},Ce=(j,K,se)=>{const{bum:Ae,scope:de,job:fe,subTree:Se,um:Pe,m:Ne,a:be}=j;g2(Ne),g2(be),Ae&&Ku(Ae),de.stop(),fe&&(fe.flags|=8,he(Se,j,K,se)),Pe&&Qn(Pe,K),Qn(()=>{j.isUnmounted=!0},K),K&&K.pendingBranch&&!K.isUnmounted&&j.asyncDep&&!j.asyncResolved&&j.suspenseId===K.pendingId&&(K.deps--,K.deps===0&&K.resolve())},me=(j,K,se,Ae=!1,de=!1,fe=0)=>{for(let Se=fe;Se<j.length;Se++)he(j[Se],K,se,Ae,de)},q=j=>{if(j.shapeFlag&6)return q(j.component.subTree);if(j.shapeFlag&128)return j.suspense.next();const K=h(j.anchor||j.el),se=K&&K[D_];return se?h(se):K};let Z=!1;const ve=(j,K,se)=>{j==null?K._vnode&&he(K._vnode,null,null,!0):y(K._vnode||null,j,K,null,null,null,se),K._vnode=j,Z||(Z=!0,N_(),I_(),Z=!1)},Oe={p:y,um:he,m:_e,r:ie,mt:ae,mc:N,pc:Q,pbc:L,n:q,o:e};let Le,Ke;return t&&([Le,Ke]=t(Oe)),{render:ve,hydrate:Le,createApp:hT(ve,Le)}}function Tg({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function bo({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function CT(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Og(e,t,n=!1){const r=e.children,s=t.children;if(je(r)&&je(s))for(let o=0;o<r.length;o++){const a=r[o];let l=s[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=s[o]=Ns(s[o]),l.el=a.el),!n&&l.patchFlag!==-2&&Og(a,l)),l.type===Pa&&(l.el=a.el)}}function ST(e){const t=e.slice(),n=[0];let r,s,o,a,l;const c=e.length;for(r=0;r<c;r++){const u=e[r];if(u!==0){if(s=n[n.length-1],e[s]<u){t[r]=s,n.push(r);continue}for(o=0,a=n.length-1;o<a;)l=o+a>>1,e[n[l]]<u?o=l+1:a=l;u<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,a=n[o-1];o-- >0;)n[o]=a,a=t[a];return n}function p2(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:p2(t)}function g2(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const ET=Symbol.for("v-scx"),xT=()=>Qe(ET);function yo(e,t){return yd(e,null,t)}function AT(e,t){return yd(e,null,{flush:"post"})}function ze(e,t,n){return yd(e,t,n)}function yd(e,t,n=lt){const{immediate:r,deep:s,flush:o,once:a}=n,l=Rt({},n);let c;if(Sd)if(o==="sync"){const h=xT();c=h.__watcherHandles||(h.__watcherHandles=[])}else if(!t||r)l.once=!0;else{const h=()=>{};return h.stop=_t,h.resume=_t,h.pause=_t,h}const u=Pn;l.call=(h,g,b)=>Wi(h,u,g,b);let d=!1;o==="post"?l.scheduler=h=>{Qn(h,u&&u.suspense)}:o!=="sync"&&(d=!0,l.scheduler=(h,g)=>{g?h():hg(h)}),l.augmentJob=h=>{t&&(h.flags|=4),d&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const f=LP(e,t,l);return c&&c.push(f),f}function PT(e,t,n){const r=this.proxy,s=st(e)?e.includes(".")?m2(r,e):()=>r[e]:e.bind(r,r);let o;Ve(t)?o=t:(o=t.handler,n=t);const a=lc(this),l=yd(s,o.bind(r),n);return a(),l}function m2(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const TT=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${$n(t)}Modifiers`]||e[`${Zn(t)}Modifiers`];function OT(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||lt;let s=n;const o=t.startsWith("update:"),a=o&&TT(r,t.slice(7));a&&(a.trim&&(s=n.map(d=>st(d)?d.trim():d)),a.number&&(s=n.map(Kp)));let l,c=r[l=Hl(t)]||r[l=Hl($n(t))];!c&&o&&(c=r[l=Hl(Zn(t))]),c&&Wi(c,e,6,s);const u=r[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Wi(u,e,6,s)}}function v2(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let a={},l=!1;if(!Ve(e)){const c=u=>{const d=v2(u,t,!0);d&&(l=!0,Rt(a,d))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(ct(e)&&r.set(e,null),null):(je(o)?o.forEach(c=>a[c]=null):Rt(a,o),ct(e)&&r.set(e,a),a)}function _d(e,t){return!e||!ga(t)?!1:(t=t.slice(2).replace(/Once$/,""),yt(e,t[0].toLowerCase()+t.slice(1))||yt(e,Zn(t))||yt(e,t))}function Ahe(){}function Ng(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:a,attrs:l,emit:c,render:u,renderCache:d,props:f,data:h,setupState:g,ctx:b,inheritAttrs:y}=e,_=dd(e);let w,x;try{if(n.shapeFlag&4){const S=s||r,A=S;w=mr(u.call(A,S,d,f,g,h,b)),x=l}else{const S=t;w=mr(S.length>1?S(f,{attrs:l,slots:a,emit:c}):S(f,null)),x=t.props?l:NT(l)}}catch(S){oc.length=0,cd(S,e,1),w=te(xn)}let C=w;if(x&&y!==!1){const S=Object.keys(x),{shapeFlag:A}=C;S.length&&A&7&&(o&&S.some(co)&&(x=IT(x,o)),C=Kr(C,x,!1,!0))}return n.dirs&&(C=Kr(C,null,!1,!0),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&mo(C,n.transition),w=C,dd(_),w}const NT=e=>{let t;for(const n in e)(n==="class"||n==="style"||ga(n))&&((t||(t={}))[n]=e[n]);return t},IT=(e,t)=>{const n={};for(const r in e)(!co(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function RT(e,t,n){const{props:r,children:s,component:o}=e,{props:a,children:l,patchFlag:c}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?b2(r,a,u):!!a;if(c&8){const d=t.dynamicProps;for(let f=0;f<d.length;f++){const h=d[f];if(a[h]!==r[h]&&!_d(u,h))return!0}}}else return(s||l)&&(!l||!l.$stable)?!0:r===a?!1:r?a?b2(r,a,u):!0:!!a;return!1}function b2(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const o=r[s];if(t[o]!==e[o]&&!_d(n,o))return!0}return!1}function DT({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const y2=e=>e.__isSuspense;function LT(e,t){t&&t.pendingBranch?je(e)?t.effects.push(...e):t.effects.push(e):$P(e)}const qe=Symbol.for("v-fgt"),Pa=Symbol.for("v-txt"),xn=Symbol.for("v-cmt"),sc=Symbol.for("v-stc"),oc=[];let li=null;function I(e=!1){oc.push(li=e?null:[])}function kT(){oc.pop(),li=oc[oc.length-1]||null}let ac=1;function _2(e){ac+=e,e<0&&li&&(li.hasOnce=!0)}function w2(e){return e.dynamicChildren=ac>0?li||bn:null,kT(),ac>0&&li&&li.push(e),e}function z(e,t,n,r,s,o){return w2(H(e,t,n,r,s,o,!0))}function Ee(e,t,n,r,s){return w2(te(e,t,n,r,s,!0))}function Os(e){return e?e.__v_isVNode===!0:!1}function _o(e,t){return e.type===t.type&&e.key===t.key}const C2=({key:e})=>e!=null?e:null,wd=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?st(e)||Mt(e)||Ve(e)?{i:_n,r:e,k:t,f:!!n}:e:null);function H(e,t=null,n=null,r=0,s=null,o=e===qe?0:1,a=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&C2(t),ref:t&&wd(t),scopeId:ud,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:_n};return l?(Ig(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=st(n)?8:16),ac>0&&!a&&li&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&li.push(c),c}const te=MT;function MT(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===K_)&&(e=xn),Os(e)){const l=Kr(e,t,!0);return n&&Ig(l,n),ac>0&&!o&&li&&(l.shapeFlag&6?li[li.indexOf(e)]=l:li.push(l)),l.patchFlag=-2,l}if(GT(e)&&(e=e.__vccOpts),t){t=S2(t);let{class:l,style:c}=t;l&&!st(l)&&(t.class=Y(l)),ct(c)&&(lg(c)&&!je(c)&&(c=Rt({},c)),t.style=Ze(c))}const a=st(e)?1:y2(e)?128:L_(e)?64:ct(e)?4:Ve(e)?2:0;return H(e,t,n,r,s,a,o,!0)}function S2(e){return e?lg(e)||o2(e)?Rt({},e):e:null}function Kr(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:a,children:l,transition:c}=e,u=t?An(s||{},t):s,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&C2(u),ref:t&&t.ref?n&&o?je(o)?o.concat(wd(t)):[o,wd(t)]:wd(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==qe?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Kr(e.ssContent),ssFallback:e.ssFallback&&Kr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&mo(d,c.clone(d)),d}function Je(e=" ",t=0){return te(Pa,null,e,t)}function FT(e,t){const n=te(sc,null,e);return n.staticCount=t,n}function re(e="",t=!1){return t?(I(),Ee(xn,null,e)):te(xn,null,e)}function mr(e){return e==null||typeof e=="boolean"?te(xn):je(e)?te(qe,null,e.slice()):typeof e=="object"?Ns(e):te(Pa,null,String(e))}function Ns(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Kr(e)}function Ig(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(je(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Ig(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!o2(t)?t._ctx=_n:s===3&&_n&&(_n.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ve(t)?(t={default:t,_ctx:_n},n=32):(t=String(t),r&64?(n=16,t=[Je(t)]):n=8);e.children=t,e.shapeFlag|=n}function An(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=Y([t.class,r.class]));else if(s==="style")t.style=Ze([t.style,r.style]);else if(ga(s)){const o=t[s],a=r[s];a&&o!==a&&!(je(o)&&o.includes(a))&&(t[s]=o?[].concat(o,a):a)}else s!==""&&(t[s]=r[s])}return t}function vr(e,t,n,r=null){Wi(e,t,7,[n,r])}const BT=i2();let jT=0;function UT(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||BT,o={uid:jT++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new rP(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:l2(r,s),emitsOptions:v2(r,s),emit:null,emitted:null,propsDefaults:lt,inheritAttrs:r.inheritAttrs,ctx:lt,data:lt,props:lt,attrs:lt,slots:lt,refs:lt,setupState:lt,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=OT.bind(null,o),e.ce&&e.ce(o),o}let Pn=null;const xt=()=>Pn||_n;let Cd,Rg;{const e=Jy(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),o=>{s.length>1?s.forEach(a=>a(o)):s[0](o)}};Cd=t("__VUE_INSTANCE_SETTERS__",n=>Pn=n),Rg=t("__VUE_SSR_SETTERS__",n=>Sd=n)}const lc=e=>{const t=Pn;return Cd(e),e.scope.on(),()=>{e.scope.off(),Cd(t)}},E2=()=>{Pn&&Pn.scope.off(),Cd(null)};function x2(e){return e.vnode.shapeFlag&4}let Sd=!1;function $T(e,t=!1,n=!1){t&&Rg(t);const{props:r,children:s}=e.vnode,o=x2(e);pT(e,r,o,t),bT(e,s,n);const a=o?VT(e,t):void 0;return t&&Rg(!1),a}function VT(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,sT);const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?O2(e):null,o=lc(e);Vr();const a=wa(r,e,0,[e.props,s]);if(zr(),o(),Hy(a)){if(Ea(e)||q_(e),a.then(E2,E2),t)return a.then(l=>{A2(e,l,t)}).catch(l=>{cd(l,e,0)});e.asyncDep=a}else A2(e,a,t)}else T2(e,t)}function A2(e,t,n){Ve(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ct(t)&&(e.setupState=x_(t)),T2(e,n)}let P2;function T2(e,t,n){const r=e.type;if(!e.render){if(!t&&P2&&!r.render){const s=r.template||Eg(e).template;if(s){const{isCustomElement:o,compilerOptions:a}=e.appContext.config,{delimiters:l,compilerOptions:c}=r,u=Rt(Rt({isCustomElement:o,delimiters:l},a),c);r.render=P2(s,u)}}e.render=r.render||_t}{const s=lc(e);Vr();try{aT(e)}finally{zr(),s()}}}const zT={get(e,t){return Rn(e,"get",""),e[t]}};function O2(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,zT),slots:e.slots,emit:e.emit,expose:t}}function Ed(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(x_(od(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ic)return ic[n](e)},has(t,n){return n in t||n in ic}})):e.proxy}const qT=/(?:^|[-_])(\w)/g,HT=e=>e.replace(qT,t=>t.toUpperCase()).replace(/[-_]/g,"");function N2(e,t=!0){return Ve(e)?e.displayName||e.name:e.name||t&&e.__name}function I2(e,t,n=!1){let r=N2(t);if(!r&&t.__file){const s=t.__file.match(/([^/\\]+)\.\w+$/);s&&(r=s[1])}if(!r&&e&&e.parent){const s=o=>{for(const a in o)if(o[a]===t)return a};r=s(e.components||e.parent.type.components)||s(e.appContext.components)}return r?HT(r):n?"App":"Anonymous"}function GT(e){return Ve(e)&&"__vccOpts"in e}const W=(e,t)=>RP(e,t,Sd);function dt(e,t,n){const r=arguments.length;return r===2?ct(t)&&!je(t)?Os(t)?te(e,null,[t]):te(e,t):te(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Os(n)&&(n=[n]),te(e,t,n))}const WT="3.5.6",KT=_t;/**
|
|
17
|
-
* @vue/runtime-dom v3.5.6
|
|
18
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
19
|
-
* @license MIT
|
|
20
|
-
**/let Dg;const R2=typeof window!="undefined"&&window.trustedTypes;if(R2)try{Dg=R2.createPolicy("vue",{createHTML:e=>e})}catch(e){}const D2=Dg?e=>Dg.createHTML(e):e=>e,JT="http://www.w3.org/2000/svg",YT="http://www.w3.org/1998/Math/MathML",Jr=typeof document!="undefined"?document:null,L2=Jr&&Jr.createElement("template"),XT={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?Jr.createElementNS(JT,e):t==="mathml"?Jr.createElementNS(YT,e):n?Jr.createElement(e,{is:n}):Jr.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Jr.createTextNode(e),createComment:e=>Jr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Jr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const a=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{L2.innerHTML=D2(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const l=L2.content;if(r==="svg"||r==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Is="transition",cc="animation",Ta=Symbol("_vtc"),k2={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},M2=Rt({},j_,k2),Rs=(e=>(e.displayName="Transition",e.props=M2,e))((e,{slots:t})=>dt(YP,B2(e),t)),wo=(e,t=[])=>{je(e)?e.forEach(n=>n(...t)):e&&e(...t)},F2=e=>e?je(e)?e.some(t=>t.length>1):e.length>1:!1;function B2(e){const t={};for(const G in e)G in k2||(t[G]=e[G]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=o,appearActiveClass:u=a,appearToClass:d=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,b=ZT(s),y=b&&b[0],_=b&&b[1],{onBeforeEnter:w,onEnter:x,onEnterCancelled:C,onLeave:S,onLeaveCancelled:A,onBeforeAppear:O=w,onAppear:R=x,onAppearCancelled:N=C}=t,k=(G,V,ae)=>{Ds(G,V?d:l),Ds(G,V?u:a),ae&&ae()},L=(G,V)=>{G._isLeaving=!1,Ds(G,f),Ds(G,g),Ds(G,h),V&&V()},F=G=>(V,ae)=>{const ce=G?R:x,U=()=>k(V,G,ae);wo(ce,[V,U]),j2(()=>{Ds(V,G?c:o),Yr(V,G?d:l),F2(ce)||U2(V,r,y,U)})};return Rt(t,{onBeforeEnter(G){wo(w,[G]),Yr(G,o),Yr(G,a)},onBeforeAppear(G){wo(O,[G]),Yr(G,c),Yr(G,u)},onEnter:F(!1),onAppear:F(!0),onLeave(G,V){G._isLeaving=!0;const ae=()=>L(G,V);Yr(G,f),Yr(G,h),q2(),j2(()=>{G._isLeaving&&(Ds(G,f),Yr(G,g),F2(S)||U2(G,r,_,ae))}),wo(S,[G,ae])},onEnterCancelled(G){k(G,!1),wo(C,[G])},onAppearCancelled(G){k(G,!0),wo(N,[G])},onLeaveCancelled(G){L(G),wo(A,[G])}})}function ZT(e){if(e==null)return null;if(ct(e))return[Lg(e.enter),Lg(e.leave)];{const t=Lg(e);return[t,t]}}function Lg(e){return Jp(e)}function Yr(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ta]||(e[Ta]=new Set)).add(t)}function Ds(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Ta];n&&(n.delete(t),n.size||(e[Ta]=void 0))}function j2(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let QT=0;function U2(e,t,n,r){const s=e._endId=++QT,o=()=>{s===e._endId&&r()};if(n)return setTimeout(o,n);const{type:a,timeout:l,propCount:c}=$2(e,t);if(!a)return r();const u=a+"end";let d=0;const f=()=>{e.removeEventListener(u,h),o()},h=g=>{g.target===e&&++d>=c&&f()};setTimeout(()=>{d<c&&f()},l+1),e.addEventListener(u,h)}function $2(e,t){const n=window.getComputedStyle(e),r=b=>(n[b]||"").split(", "),s=r(`${Is}Delay`),o=r(`${Is}Duration`),a=V2(s,o),l=r(`${cc}Delay`),c=r(`${cc}Duration`),u=V2(l,c);let d=null,f=0,h=0;t===Is?a>0&&(d=Is,f=a,h=o.length):t===cc?u>0&&(d=cc,f=u,h=c.length):(f=Math.max(a,u),d=f>0?a>u?Is:cc:null,h=d?d===Is?o.length:c.length:0);const g=d===Is&&/\b(transform|all)(,|$)/.test(r(`${Is}Property`).toString());return{type:d,timeout:f,propCount:h,hasTransform:g}}function V2(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>z2(n)+z2(e[r])))}function z2(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function q2(){return document.body.offsetHeight}function eO(e,t,n){const r=e[Ta];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const xd=Symbol("_vod"),H2=Symbol("_vsh"),wn={beforeMount(e,{value:t},{transition:n}){e[xd]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):uc(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),uc(e,!0),r.enter(e)):r.leave(e,()=>{uc(e,!1)}):uc(e,t))},beforeUnmount(e,{value:t}){uc(e,t)}};function uc(e,t){e.style.display=t?e[xd]:"none",e[H2]=!t}const G2=Symbol("");function tO(e){const t=xt();if(!t)return;const n=t.ut=(s=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(o=>Ad(o,s))},r=()=>{const s=e(t.proxy);t.ce?Ad(t.ce,s):kg(t.subTree,s),n(s)};tc(()=>{AT(r)}),Lt(()=>{const s=new MutationObserver(r);s.observe(t.subTree.el.parentNode,{childList:!0}),vo(()=>s.disconnect())})}function kg(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{kg(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Ad(e.el,t);else if(e.type===qe)e.children.forEach(n=>kg(n,t));else if(e.type===sc){let{el:n,anchor:r}=e;for(;n&&(Ad(n,t),n!==r);)n=n.nextSibling}}function Ad(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const s in t)n.setProperty(`--${s}`,t[s]),r+=`--${s}: ${t[s]};`;n[G2]=r}}const nO=/(^|;)\s*display\s*:/;function iO(e,t,n){const r=e.style,s=st(n);let o=!1;if(n&&!s){if(t)if(st(t))for(const a of t.split(";")){const l=a.slice(0,a.indexOf(":")).trim();n[l]==null&&Pd(r,l,"")}else for(const a in t)n[a]==null&&Pd(r,a,"");for(const a in n)a==="display"&&(o=!0),Pd(r,a,n[a])}else if(s){if(t!==n){const a=r[G2];a&&(n+=";"+a),r.cssText=n,o=nO.test(n)}}else t&&e.removeAttribute("style");xd in e&&(e[xd]=o?r.display:"",e[H2]&&(r.display="none"))}const W2=/\s*!important$/;function Pd(e,t,n){if(je(n))n.forEach(r=>Pd(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=rO(e,t);W2.test(n)?e.setProperty(Zn(r),n.replace(W2,""),"important"):e[r]=n}}const K2=["Webkit","Moz","ms"],Mg={};function rO(e,t){const n=Mg[t];if(n)return n;let r=$n(t);if(r!=="filter"&&r in e)return Mg[t]=r;r=Wu(r);for(let s=0;s<K2.length;s++){const o=K2[s]+r;if(o in e)return Mg[t]=o}return t}const J2="http://www.w3.org/1999/xlink";function Y2(e,t,n,r,s,o=nP(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(J2,t.slice(6,t.length)):e.setAttributeNS(J2,t,n):n==null||o&&!Yy(n)?e.removeAttribute(t):e.setAttribute(t,o?"":hr(n)?String(n):n)}function sO(e,t,n,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?D2(n):n);return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const a=s==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=Yy(n):n==null&&a==="string"?(n="",o=!0):a==="number"&&(n=0,o=!0)}try{e[t]=n}catch(a){}o&&e.removeAttribute(t)}function Ls(e,t,n,r){e.addEventListener(t,n,r)}function oO(e,t,n,r){e.removeEventListener(t,n,r)}const X2=Symbol("_vei");function aO(e,t,n,r,s=null){const o=e[X2]||(e[X2]={}),a=o[t];if(r&&a)a.value=r;else{const[l,c]=lO(t);if(r){const u=o[t]=dO(r,s);Ls(e,l,u,c)}else a&&(oO(e,l,a,c),o[t]=void 0)}}const Z2=/(?:Once|Passive|Capture)$/;function lO(e){let t;if(Z2.test(e)){t={};let r;for(;r=e.match(Z2);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Zn(e.slice(2)),t]}let Fg=0;const cO=Promise.resolve(),uO=()=>Fg||(cO.then(()=>Fg=0),Fg=Date.now());function dO(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Wi(fO(r,n.value),t,5,[r])};return n.value=e,n.attached=uO(),n}function fO(e,t){if(je(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Q2=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,hO=(e,t,n,r,s,o)=>{const a=s==="svg";t==="class"?eO(e,r,a):t==="style"?iO(e,n,r):ga(t)?co(t)||aO(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):pO(e,t,r,a))?(sO(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Y2(e,t,r,a,o,t!=="value")):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Y2(e,t,r,a))};function pO(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Q2(t)&&Ve(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Q2(t)&&st(n)?!1:!!(t in e||e._isVueCE&&(/[A-Z]/.test(t)||!st(n)))}const ew={};/*! #__NO_SIDE_EFFECTS__ */function gO(e,t,n){const r=Te(e,t);va(r)&&Rt(r,t);class s extends Bg{constructor(a){super(r,a,n)}}return s.def=r,s}const mO=typeof HTMLElement!="undefined"?HTMLElement:class{};class Bg extends mO{constructor(t,n={},r=jg){super(),this._def=t,this._props=n,this._createApp=r,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&r!==jg?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this,this._def.__asyncLoader||this._resolveProps(this._def)}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof Bg){this._parent=t;break}this._instance||(this._resolved?(this._setParent(),this._update()):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._instance.provides=t._instance.provides)}disconnectedCallback(){this._connected=!1,pt(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}_resolveDef(){if(this._pendingResolve)return;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);this._ob=new MutationObserver(r=>{for(const s of r)this._setAttr(s.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(r,s=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:o,styles:a}=r;let l;if(o&&!je(o))for(const c in o){const u=o[c];(u===Number||u&&u.type===Number)&&(c in this._props&&(this._props[c]=Jp(this._props[c])),(l||(l=Object.create(null)))[$n(c)]=!0)}this._numberProps=l,s&&this._resolveProps(r),this.shadowRoot&&this._applyStyles(a),this._mount(r)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(r=>t(this._def=r,!0)):t(this._def)}_mount(t){this._app=this._createApp(t),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const r in n)yt(this,r)||Object.defineProperty(this,r,{get:()=>P(n[r])})}_resolveProps(t){const{props:n}=t,r=je(n)?n:Object.keys(n||{});for(const s of Object.keys(this))s[0]!=="_"&&r.includes(s)&&this._setProp(s,this[s]);for(const s of r.map($n))Object.defineProperty(this,s,{get(){return this._getProp(s)},set(o){this._setProp(s,o,!0,!0)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let r=n?this.getAttribute(t):ew;const s=$n(t);n&&this._numberProps&&this._numberProps[s]&&(r=Jp(r)),this._setProp(s,r,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,s=!1){n!==this._props[t]&&(n===ew?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),s&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(Zn(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Zn(t),n+""):n||this.removeAttribute(Zn(t))))}_update(){Co(this._createVNode(),this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=te(this._def,Rt(t,this._props));return this._instance||(n.ce=r=>{this._instance=r,r.ce=this,r.isCE=!0;const s=(o,a)=>{this.dispatchEvent(new CustomEvent(o,va(a[0])?Rt({detail:a},a[0]):{detail:a}))};r.emit=(o,...a)=>{s(o,a),Zn(o)!==o&&s(Zn(o),a)},this._setParent()}),n}_applyStyles(t,n){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const r=this._nonce;for(let s=t.length-1;s>=0;s--){const o=document.createElement("style");r&&o.setAttribute("nonce",r),o.textContent=t[s],this.shadowRoot.prepend(o)}}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const r=n.nodeType===1&&n.getAttribute("slot")||"default";(t[r]||(t[r]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=(this._teleportTarget||this).querySelectorAll("slot"),n=this._instance.type.__scopeId;for(let r=0;r<t.length;r++){const s=t[r],o=s.getAttribute("name")||"default",a=this._slots[o],l=s.parentNode;if(a)for(const c of a){if(n&&c.nodeType===1){const u=n+"-s",d=document.createTreeWalker(c,1);c.setAttribute(u,"");let f;for(;f=d.nextNode();)f.setAttribute(u,"")}l.insertBefore(c,s)}else for(;s.firstChild;)l.insertBefore(s.firstChild,s);l.removeChild(s)}}_injectChildStyle(t){this._applyStyles(t.styles,t)}_removeChildStyle(t){}}const tw=new WeakMap,nw=new WeakMap,Td=Symbol("_moveCb"),iw=Symbol("_enterCb"),rw=(e=>(delete e.props.mode,e))({name:"TransitionGroup",props:Rt({},M2,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=xt(),r=B_();let s,o;return nc(()=>{if(!s.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!_O(s[0].el,n.vnode.el,a))return;s.forEach(vO),s.forEach(bO);const l=s.filter(yO);q2(),l.forEach(c=>{const u=c.el,d=u.style;Yr(u,a),d.transform=d.webkitTransform=d.transitionDuration="";const f=u[Td]=h=>{h&&h.target!==u||(!h||/transform$/.test(h.propertyName))&&(u.removeEventListener("transitionend",f),u[Td]=null,Ds(u,a))};u.addEventListener("transitionend",f)})}),()=>{const a=it(e),l=B2(a);let c=a.tag||qe;if(s=[],o)for(let u=0;u<o.length;u++){const d=o[u];d.el&&d.el instanceof Element&&(s.push(d),mo(d,ec(d,l,r,n)),tw.set(d,d.el.getBoundingClientRect()))}o=t.default?mg(t.default()):[];for(let u=0;u<o.length;u++){const d=o[u];d.key!=null&&mo(d,ec(d,l,r,n))}return te(c,null,o)}}});function vO(e){const t=e.el;t[Td]&&t[Td](),t[iw]&&t[iw]()}function bO(e){nw.set(e,e.el.getBoundingClientRect())}function yO(e){const t=tw.get(e),n=nw.get(e),r=t.left-n.left,s=t.top-n.top;if(r||s){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${r}px,${s}px)`,o.transitionDuration="0s",e}}function _O(e,t,n){const r=e.cloneNode(),s=e[Ta];s&&s.forEach(l=>{l.split(/\s+/).forEach(c=>c&&r.classList.remove(c))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:a}=$2(r);return o.removeChild(r),a}const Oa=e=>{const t=e.props["onUpdate:modelValue"]||!1;return je(t)?n=>Ku(t,n):t};function wO(e){e.target.composing=!0}function sw(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Xr=Symbol("_assign"),CO={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[Xr]=Oa(s);const o=r||s.props&&s.props.type==="number";Ls(e,t?"change":"input",a=>{if(a.target.composing)return;let l=e.value;n&&(l=l.trim()),o&&(l=Kp(l)),e[Xr](l)}),n&&Ls(e,"change",()=>{e.value=e.value.trim()}),t||(Ls(e,"compositionstart",wO),Ls(e,"compositionend",sw),Ls(e,"change",sw))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:o}},a){if(e[Xr]=Oa(a),e.composing)return;const l=(o||e.type==="number")&&!/^0\d/.test(e.value)?Kp(e.value):e.value,c=t==null?"":t;l!==c&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===c)||(e.value=c))}},Od={deep:!0,created(e,t,n){e[Xr]=Oa(n),Ls(e,"change",()=>{const r=e._modelValue,s=lw(e),o=e.checked,a=e[Xr];if(je(r)){const l=Xy(r,s),c=l!==-1;if(o&&!c)a(r.concat(s));else if(!o&&c){const u=[...r];u.splice(l,1),a(u)}}else if(qu(r)){const l=new Set(r);o?l.add(s):l.delete(s),a(l)}else a(cw(e,o))})},mounted:ow,beforeUpdate(e,t,n){e[Xr]=Oa(n),ow(e,t,n)}};function ow(e,{value:t,oldValue:n},r){e._modelValue=t;let s;je(t)?s=Xy(t,r.props.value)>-1:qu(t)?s=t.has(r.props.value):s=ba(t,cw(e,!0)),e.checked!==s&&(e.checked=s)}const aw={created(e,{value:t},n){e.checked=ba(t,n.props.value),e[Xr]=Oa(n),Ls(e,"change",()=>{e[Xr](lw(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Xr]=Oa(r),t!==n&&(e.checked=ba(t,r.props.value))}};function lw(e){return"_value"in e?e._value:e.value}function cw(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const SO=["ctrl","shift","alt","meta"],EO={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)=>SO.some(n=>e[`${n}Key`]&&!t.includes(n))},gt=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(s,...o)=>{for(let a=0;a<t.length;a++){const l=EO[t[a]];if(l&&l(s,t))return}return e(s,...o)})},xO={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ki=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=s=>{if(!("key"in s))return;const o=Zn(s.key);if(t.some(a=>a===o||xO[a]===o))return e(s)})},AO=Rt({patchProp:hO},XT);let uw;function dw(){return uw||(uw=_T(AO))}const Co=(...e)=>{dw().render(...e)},jg=(...e)=>{const t=dw().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=TO(r);if(!s)return;const o=t._component;!Ve(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const a=n(s,!1,PO(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),a},t};function PO(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function TO(e){return st(e)?document.querySelector(e):e}const OO='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',NO=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,fw=e=>Array.from(e.querySelectorAll(OO)).filter(t=>IO(t)&&NO(t)),IO=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}},Zr=(e,t,{checkForDefaultPrevented:n=!0}={})=>s=>{const o=e==null?void 0:e(s);if(n===!1||!o)return t==null?void 0:t(s)};var hw;const Dt=typeof window!="undefined",RO=e=>typeof e!="undefined",DO=e=>typeof e=="function",LO=e=>typeof e=="string",Nd=()=>{},Ug=Dt&&((hw=window==null?void 0:window.navigator)==null?void 0:hw.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function dc(e){return typeof e=="function"?e():P(e)}function kO(e,t){function n(...r){return new Promise((s,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(s).catch(o)})}return n}function MO(e,t={}){let n,r,s=Nd;const o=l=>{clearTimeout(l),s(),s=Nd};return l=>{const c=dc(e),u=dc(t.maxWait);return n&&o(n),c<=0||u!==void 0&&u<=0?(r&&(o(r),r=null),Promise.resolve(l())):new Promise((d,f)=>{s=t.rejectOnCancel?f:d,u&&!r&&(r=setTimeout(()=>{n&&o(n),r=null,d(l())},u)),n=setTimeout(()=>{r&&o(r),r=null,d(l())},c)})}}function FO(e){return e}function fc(e){return e_()?(t_(e),!0):!1}function BO(e,t=200,n={}){return kO(MO(t,n),e)}function jO(e,t=200,n={}){const r=ne(e.value),s=BO(()=>{r.value=e.value},t,n);return ze(e,()=>s()),r}function UO(e,t=!0){xt()?Lt(e):t?e():pt(e)}function $g(e,t,n={}){const{immediate:r=!0}=n,s=ne(!1);let o=null;function a(){o&&(clearTimeout(o),o=null)}function l(){s.value=!1,a()}function c(...u){a(),s.value=!0,o=setTimeout(()=>{s.value=!1,o=null,e(...u)},dc(t))}return r&&(s.value=!0,Dt&&c()),fc(l),{isPending:rd(s),start:c,stop:l}}function Qr(e){var t;const n=dc(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Id=Dt?window:void 0;function Si(...e){let t,n,r,s;if(LO(e[0])||Array.isArray(e[0])?([n,r,s]=e,t=Id):[t,n,r,s]=e,!t)return Nd;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],a=()=>{o.forEach(d=>d()),o.length=0},l=(d,f,h,g)=>(d.addEventListener(f,h,g),()=>d.removeEventListener(f,h,g)),c=ze(()=>[Qr(t),dc(s)],([d,f])=>{a(),d&&o.push(...n.flatMap(h=>r.map(g=>l(d,h,g,f))))},{immediate:!0,flush:"post"}),u=()=>{c(),a()};return fc(u),u}let pw=!1;function $O(e,t,n={}){const{window:r=Id,ignore:s=[],capture:o=!0,detectIframe:a=!1}=n;if(!r)return;Ug&&!pw&&(pw=!0,Array.from(r.document.body.children).forEach(h=>h.addEventListener("click",Nd)));let l=!0;const c=h=>s.some(g=>{if(typeof g=="string")return Array.from(r.document.querySelectorAll(g)).some(b=>b===h.target||h.composedPath().includes(b));{const b=Qr(g);return b&&(h.target===b||h.composedPath().includes(b))}}),d=[Si(r,"click",h=>{const g=Qr(e);if(!(!g||g===h.target||h.composedPath().includes(g))){if(h.detail===0&&(l=!c(h)),!l){l=!0;return}t(h)}},{passive:!0,capture:o}),Si(r,"pointerdown",h=>{const g=Qr(e);g&&(l=!h.composedPath().includes(g)&&!c(h))},{passive:!0}),a&&Si(r,"blur",h=>{var g;const b=Qr(e);((g=r.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(b!=null&&b.contains(r.document.activeElement))&&t(h)})].filter(Boolean);return()=>d.forEach(h=>h())}function gw(e,t=!1){const n=ne(),r=()=>n.value=!!e();return r(),UO(r,t),n}function VO(e){return JSON.parse(JSON.stringify(e))}const mw=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},vw="__vueuse_ssr_handlers__";mw[vw]=mw[vw]||{};var bw=Object.getOwnPropertySymbols,zO=Object.prototype.hasOwnProperty,qO=Object.prototype.propertyIsEnumerable,HO=(e,t)=>{var n={};for(var r in e)zO.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&bw)for(var r of bw(e))t.indexOf(r)<0&&qO.call(e,r)&&(n[r]=e[r]);return n};function ci(e,t,n={}){const r=n,{window:s=Id}=r,o=HO(r,["window"]);let a;const l=gw(()=>s&&"ResizeObserver"in s),c=()=>{a&&(a.disconnect(),a=void 0)},u=ze(()=>Qr(e),f=>{c(),l.value&&s&&f&&(a=new ResizeObserver(t),a.observe(f,o))},{immediate:!0,flush:"post"}),d=()=>{c(),u()};return fc(d),{isSupported:l,stop:d}}var yw=Object.getOwnPropertySymbols,GO=Object.prototype.hasOwnProperty,WO=Object.prototype.propertyIsEnumerable,KO=(e,t)=>{var n={};for(var r in e)GO.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&yw)for(var r of yw(e))t.indexOf(r)<0&&WO.call(e,r)&&(n[r]=e[r]);return n};function JO(e,t,n={}){const r=n,{window:s=Id}=r,o=KO(r,["window"]);let a;const l=gw(()=>s&&"MutationObserver"in s),c=()=>{a&&(a.disconnect(),a=void 0)},u=ze(()=>Qr(e),f=>{c(),l.value&&s&&f&&(a=new MutationObserver(t),a.observe(f,o))},{immediate:!0}),d=()=>{c(),u()};return fc(d),{isSupported:l,stop:d}}var _w;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(_w||(_w={}));var YO=Object.defineProperty,ww=Object.getOwnPropertySymbols,XO=Object.prototype.hasOwnProperty,ZO=Object.prototype.propertyIsEnumerable,Cw=(e,t,n)=>t in e?YO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,QO=(e,t)=>{for(var n in t||(t={}))XO.call(t,n)&&Cw(e,n,t[n]);if(ww)for(var n of ww(t))ZO.call(t,n)&&Cw(e,n,t[n]);return e};QO({linear:FO},{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]});function eN(e,t,n,r={}){var s,o,a;const{clone:l=!1,passive:c=!1,eventName:u,deep:d=!1,defaultValue:f}=r,h=xt(),g=n||(h==null?void 0:h.emit)||((s=h==null?void 0:h.$emit)==null?void 0:s.bind(h))||((a=(o=h==null?void 0:h.proxy)==null?void 0:o.$emit)==null?void 0:a.bind(h==null?void 0:h.proxy));let b=u;t||(t="modelValue"),b=u||b||`update:${t.toString()}`;const y=w=>l?DO(l)?l(w):VO(w):w,_=()=>RO(e[t])?y(e[t]):f;if(c){const w=_(),x=ne(w);return ze(()=>e[t],C=>x.value=y(C)),ze(x,C=>{(C!==e[t]||d)&&g(b,C)},{deep:d}),x}else return W({get(){return _()},set(w){g(b,w)}})}const tN=()=>Dt&&/firefox/i.test(window.navigator.userAgent);var nN=typeof global=="object"&&global&&global.Object===Object&&global;const Sw=nN;var iN=typeof self=="object"&&self&&self.Object===Object&&self,rN=Sw||iN||Function("return this")();const Ji=rN;var sN=Ji.Symbol;const Ei=sN;var Ew=Object.prototype,oN=Ew.hasOwnProperty,aN=Ew.toString,hc=Ei?Ei.toStringTag:void 0;function lN(e){var t=oN.call(e,hc),n=e[hc];try{e[hc]=void 0;var r=!0}catch(o){}var s=aN.call(e);return r&&(t?e[hc]=n:delete e[hc]),s}var cN=Object.prototype,uN=cN.toString;function dN(e){return uN.call(e)}var fN="[object Null]",hN="[object Undefined]",xw=Ei?Ei.toStringTag:void 0;function So(e){return e==null?e===void 0?hN:fN:xw&&xw in Object(e)?lN(e):dN(e)}function br(e){return e!=null&&typeof e=="object"}var pN="[object Symbol]";function Rd(e){return typeof e=="symbol"||br(e)&&So(e)==pN}function Aw(e,t){for(var n=-1,r=e==null?0:e.length,s=Array(r);++n<r;)s[n]=t(e[n],n,e);return s}var gN=Array.isArray;const Hn=gN;var mN=1/0,Pw=Ei?Ei.prototype:void 0,Tw=Pw?Pw.toString:void 0;function Ow(e){if(typeof e=="string")return e;if(Hn(e))return Aw(e,Ow)+"";if(Rd(e))return Tw?Tw.call(e):"";var t=e+"";return t=="0"&&1/e==-mN?"-0":t}var vN=/\s/;function bN(e){for(var t=e.length;t--&&vN.test(e.charAt(t)););return t}var yN=/^\s+/;function _N(e){return e&&e.slice(0,bN(e)+1).replace(yN,"")}function ei(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Nw=0/0,wN=/^[-+]0x[0-9a-f]+$/i,CN=/^0b[01]+$/i,SN=/^0o[0-7]+$/i,EN=parseInt;function Vg(e){if(typeof e=="number")return e;if(Rd(e))return Nw;if(ei(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ei(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=_N(e);var n=CN.test(e);return n||SN.test(e)?EN(e.slice(2),n?2:8):wN.test(e)?Nw:+e}var Iw=1/0,xN=17976931348623157e292;function AN(e){if(!e)return e===0?e:0;if(e=Vg(e),e===Iw||e===-Iw){var t=e<0?-1:1;return t*xN}return e===e?e:0}function PN(e){var t=AN(e),n=t%1;return t===t?n?t-n:t:0}function zg(e){return e}var TN="[object AsyncFunction]",ON="[object Function]",NN="[object GeneratorFunction]",IN="[object Proxy]";function Dd(e){if(!ei(e))return!1;var t=So(e);return t==ON||t==NN||t==TN||t==IN}var RN=Ji["__core-js_shared__"];const qg=RN;var Rw=function(){var e=/[^.]+$/.exec(qg&&qg.keys&&qg.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function DN(e){return!!Rw&&Rw in e}var LN=Function.prototype,kN=LN.toString;function Eo(e){if(e!=null){try{return kN.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var MN=/[\\^$.*+?()[\]{}|]/g,FN=/^\[object .+?Constructor\]$/,BN=Function.prototype,jN=Object.prototype,UN=BN.toString,$N=jN.hasOwnProperty,VN=RegExp("^"+UN.call($N).replace(MN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function zN(e){if(!ei(e)||DN(e))return!1;var t=Dd(e)?VN:FN;return t.test(Eo(e))}function qN(e,t){return e==null?void 0:e[t]}function xo(e,t){var n=qN(e,t);return zN(n)?n:void 0}var HN=xo(Ji,"WeakMap");const Hg=HN;var Dw=Object.create,GN=function(){function e(){}return function(t){if(!ei(t))return{};if(Dw)return Dw(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const WN=GN;function KN(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Lw(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var JN=800,YN=16,XN=Date.now;function ZN(e){var t=0,n=0;return function(){var r=XN(),s=YN-(r-n);if(n=r,s>0){if(++t>=JN)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function QN(e){return function(){return e}}var eI=function(){try{var e=xo(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const Ld=eI;var tI=Ld?function(e,t){return Ld(e,"toString",{configurable:!0,enumerable:!1,value:QN(t),writable:!0})}:zg,nI=ZN(tI);const kw=nI;function iI(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function rI(e,t,n,r){for(var s=e.length,o=n+(r?1:-1);r?o--:++o<s;)if(t(e[o],o,e))return o;return-1}var sI=9007199254740991,oI=/^(?:0|[1-9]\d*)$/;function kd(e,t){var n=typeof e;return t=t==null?sI:t,!!t&&(n=="number"||n!="symbol"&&oI.test(e))&&e>-1&&e%1==0&&e<t}function Gg(e,t,n){t=="__proto__"&&Ld?Ld(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function pc(e,t){return e===t||e!==e&&t!==t}var aI=Object.prototype,lI=aI.hasOwnProperty;function Wg(e,t,n){var r=e[t];(!(lI.call(e,t)&&pc(r,n))||n===void 0&&!(t in e))&&Gg(e,t,n)}function gc(e,t,n,r){var s=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var l=t[o],c=r?r(n[l],e[l],l,n,e):void 0;c===void 0&&(c=e[l]),s?Gg(n,l,c):Wg(n,l,c)}return n}var Mw=Math.max;function Fw(e,t,n){return t=Mw(t===void 0?e.length-1:t,0),function(){for(var r=arguments,s=-1,o=Mw(r.length-t,0),a=Array(o);++s<o;)a[s]=r[t+s];s=-1;for(var l=Array(t+1);++s<t;)l[s]=r[s];return l[t]=n(a),KN(e,this,l)}}function cI(e,t){return kw(Fw(e,t,zg),e+"")}var uI=9007199254740991;function Kg(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=uI}function Na(e){return e!=null&&Kg(e.length)&&!Dd(e)}function dI(e,t,n){if(!ei(n))return!1;var r=typeof t;return(r=="number"?Na(n)&&kd(t,n.length):r=="string"&&t in n)?pc(n[t],e):!1}function fI(e){return cI(function(t,n){var r=-1,s=n.length,o=s>1?n[s-1]:void 0,a=s>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(s--,o):void 0,a&&dI(n[0],n[1],a)&&(o=s<3?void 0:o,s=1),t=Object(t);++r<s;){var l=n[r];l&&e(t,l,r,o)}return t})}var hI=Object.prototype;function Jg(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||hI;return e===n}function pI(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var gI="[object Arguments]";function Bw(e){return br(e)&&So(e)==gI}var jw=Object.prototype,mI=jw.hasOwnProperty,vI=jw.propertyIsEnumerable,bI=Bw(function(){return arguments}())?Bw:function(e){return br(e)&&mI.call(e,"callee")&&!vI.call(e,"callee")};const mc=bI;function yI(){return!1}var Uw=typeof exports=="object"&&exports&&!exports.nodeType&&exports,$w=Uw&&typeof module=="object"&&module&&!module.nodeType&&module,_I=$w&&$w.exports===Uw,Vw=_I?Ji.Buffer:void 0,wI=Vw?Vw.isBuffer:void 0,CI=wI||yI;const vc=CI;var SI="[object Arguments]",EI="[object Array]",xI="[object Boolean]",AI="[object Date]",PI="[object Error]",TI="[object Function]",OI="[object Map]",NI="[object Number]",II="[object Object]",RI="[object RegExp]",DI="[object Set]",LI="[object String]",kI="[object WeakMap]",MI="[object ArrayBuffer]",FI="[object DataView]",BI="[object Float32Array]",jI="[object Float64Array]",UI="[object Int8Array]",$I="[object Int16Array]",VI="[object Int32Array]",zI="[object Uint8Array]",qI="[object Uint8ClampedArray]",HI="[object Uint16Array]",GI="[object Uint32Array]",Kt={};Kt[BI]=Kt[jI]=Kt[UI]=Kt[$I]=Kt[VI]=Kt[zI]=Kt[qI]=Kt[HI]=Kt[GI]=!0,Kt[SI]=Kt[EI]=Kt[MI]=Kt[xI]=Kt[FI]=Kt[AI]=Kt[PI]=Kt[TI]=Kt[OI]=Kt[NI]=Kt[II]=Kt[RI]=Kt[DI]=Kt[LI]=Kt[kI]=!1;function WI(e){return br(e)&&Kg(e.length)&&!!Kt[So(e)]}function Yg(e){return function(t){return e(t)}}var zw=typeof exports=="object"&&exports&&!exports.nodeType&&exports,bc=zw&&typeof module=="object"&&module&&!module.nodeType&&module,KI=bc&&bc.exports===zw,Xg=KI&&Sw.process,JI=function(){try{var e=bc&&bc.require&&bc.require("util").types;return e||Xg&&Xg.binding&&Xg.binding("util")}catch(t){}}();const Ia=JI;var qw=Ia&&Ia.isTypedArray,YI=qw?Yg(qw):WI;const Zg=YI;var XI=Object.prototype,ZI=XI.hasOwnProperty;function Hw(e,t){var n=Hn(e),r=!n&&mc(e),s=!n&&!r&&vc(e),o=!n&&!r&&!s&&Zg(e),a=n||r||s||o,l=a?pI(e.length,String):[],c=l.length;for(var u in e)(t||ZI.call(e,u))&&!(a&&(u=="length"||s&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||kd(u,c)))&&l.push(u);return l}function Gw(e,t){return function(n){return e(t(n))}}var QI=Gw(Object.keys,Object);const eR=QI;var tR=Object.prototype,nR=tR.hasOwnProperty;function iR(e){if(!Jg(e))return eR(e);var t=[];for(var n in Object(e))nR.call(e,n)&&n!="constructor"&&t.push(n);return t}function yc(e){return Na(e)?Hw(e):iR(e)}function rR(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var sR=Object.prototype,oR=sR.hasOwnProperty;function aR(e){if(!ei(e))return rR(e);var t=Jg(e),n=[];for(var r in e)r=="constructor"&&(t||!oR.call(e,r))||n.push(r);return n}function _c(e){return Na(e)?Hw(e,!0):aR(e)}var lR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cR=/^\w*$/;function Qg(e,t){if(Hn(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Rd(e)?!0:cR.test(e)||!lR.test(e)||t!=null&&e in Object(t)}var uR=xo(Object,"create");const wc=uR;function dR(){this.__data__=wc?wc(null):{},this.size=0}function fR(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var hR="__lodash_hash_undefined__",pR=Object.prototype,gR=pR.hasOwnProperty;function mR(e){var t=this.__data__;if(wc){var n=t[e];return n===hR?void 0:n}return gR.call(t,e)?t[e]:void 0}var vR=Object.prototype,bR=vR.hasOwnProperty;function yR(e){var t=this.__data__;return wc?t[e]!==void 0:bR.call(t,e)}var _R="__lodash_hash_undefined__";function wR(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=wc&&t===void 0?_R:t,this}function Ao(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ao.prototype.clear=dR,Ao.prototype.delete=fR,Ao.prototype.get=mR,Ao.prototype.has=yR,Ao.prototype.set=wR;function CR(){this.__data__=[],this.size=0}function Md(e,t){for(var n=e.length;n--;)if(pc(e[n][0],t))return n;return-1}var SR=Array.prototype,ER=SR.splice;function xR(e){var t=this.__data__,n=Md(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():ER.call(t,n,1),--this.size,!0}function AR(e){var t=this.__data__,n=Md(t,e);return n<0?void 0:t[n][1]}function PR(e){return Md(this.__data__,e)>-1}function TR(e,t){var n=this.__data__,r=Md(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function es(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}es.prototype.clear=CR,es.prototype.delete=xR,es.prototype.get=AR,es.prototype.has=PR,es.prototype.set=TR;var OR=xo(Ji,"Map");const Cc=OR;function NR(){this.size=0,this.__data__={hash:new Ao,map:new(Cc||es),string:new Ao}}function IR(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Fd(e,t){var n=e.__data__;return IR(t)?n[typeof t=="string"?"string":"hash"]:n.map}function RR(e){var t=Fd(this,e).delete(e);return this.size-=t?1:0,t}function DR(e){return Fd(this,e).get(e)}function LR(e){return Fd(this,e).has(e)}function kR(e,t){var n=Fd(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function ts(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ts.prototype.clear=NR,ts.prototype.delete=RR,ts.prototype.get=DR,ts.prototype.has=LR,ts.prototype.set=kR;var MR="Expected a function";function em(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(MR);var n=function(){var r=arguments,s=t?t.apply(this,r):r[0],o=n.cache;if(o.has(s))return o.get(s);var a=e.apply(this,r);return n.cache=o.set(s,a)||o,a};return n.cache=new(em.Cache||ts),n}em.Cache=ts;var FR=500;function BR(e){var t=em(e,function(r){return n.size===FR&&n.clear(),r}),n=t.cache;return t}var jR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,UR=/\\(\\)?/g,$R=BR(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(jR,function(n,r,s,o){t.push(s?o.replace(UR,"$1"):r||n)}),t});const VR=$R;function zR(e){return e==null?"":Ow(e)}function Bd(e,t){return Hn(e)?e:Qg(e,t)?[e]:VR(zR(e))}var qR=1/0;function Sc(e){if(typeof e=="string"||Rd(e))return e;var t=e+"";return t=="0"&&1/e==-qR?"-0":t}function tm(e,t){t=Bd(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Sc(t[n++])];return n&&n==r?e:void 0}function xi(e,t,n){var r=e==null?void 0:tm(e,t);return r===void 0?n:r}function nm(e,t){for(var n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}var Ww=Ei?Ei.isConcatSpreadable:void 0;function HR(e){return Hn(e)||mc(e)||!!(Ww&&e&&e[Ww])}function im(e,t,n,r,s){var o=-1,a=e.length;for(n||(n=HR),s||(s=[]);++o<a;){var l=e[o];t>0&&n(l)?t>1?im(l,t-1,n,r,s):nm(s,l):r||(s[s.length]=l)}return s}function GR(e){var t=e==null?0:e.length;return t?im(e,1):[]}function WR(e){return kw(Fw(e,void 0,GR),e+"")}var KR=Gw(Object.getPrototypeOf,Object);const rm=KR;var JR="[object Object]",YR=Function.prototype,XR=Object.prototype,Kw=YR.toString,ZR=XR.hasOwnProperty,QR=Kw.call(Object);function eD(e){if(!br(e)||So(e)!=JR)return!1;var t=rm(e);if(t===null)return!0;var n=ZR.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Kw.call(n)==QR}function Yi(){if(!arguments.length)return[];var e=arguments[0];return Hn(e)?e:[e]}function tD(){this.__data__=new es,this.size=0}function nD(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function iD(e){return this.__data__.get(e)}function rD(e){return this.__data__.has(e)}var sD=200;function oD(e,t){var n=this.__data__;if(n instanceof es){var r=n.__data__;if(!Cc||r.length<sD-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ts(r)}return n.set(e,t),this.size=n.size,this}function Xi(e){var t=this.__data__=new es(e);this.size=t.size}Xi.prototype.clear=tD,Xi.prototype.delete=nD,Xi.prototype.get=iD,Xi.prototype.has=rD,Xi.prototype.set=oD;function aD(e,t){return e&&gc(t,yc(t),e)}function lD(e,t){return e&&gc(t,_c(t),e)}var Jw=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Yw=Jw&&typeof module=="object"&&module&&!module.nodeType&&module,cD=Yw&&Yw.exports===Jw,Xw=cD?Ji.Buffer:void 0,Zw=Xw?Xw.allocUnsafe:void 0;function Qw(e,t){if(t)return e.slice();var n=e.length,r=Zw?Zw(n):new e.constructor(n);return e.copy(r),r}function uD(e,t){for(var n=-1,r=e==null?0:e.length,s=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[s++]=a)}return o}function e3(){return[]}var dD=Object.prototype,fD=dD.propertyIsEnumerable,t3=Object.getOwnPropertySymbols,hD=t3?function(e){return e==null?[]:(e=Object(e),uD(t3(e),function(t){return fD.call(e,t)}))}:e3;const sm=hD;function pD(e,t){return gc(e,sm(e),t)}var gD=Object.getOwnPropertySymbols,mD=gD?function(e){for(var t=[];e;)nm(t,sm(e)),e=rm(e);return t}:e3;const n3=mD;function vD(e,t){return gc(e,n3(e),t)}function i3(e,t,n){var r=t(e);return Hn(e)?r:nm(r,n(e))}function om(e){return i3(e,yc,sm)}function bD(e){return i3(e,_c,n3)}var yD=xo(Ji,"DataView");const am=yD;var _D=xo(Ji,"Promise");const lm=_D;var wD=xo(Ji,"Set");const cm=wD;var r3="[object Map]",CD="[object Object]",s3="[object Promise]",o3="[object Set]",a3="[object WeakMap]",l3="[object DataView]",SD=Eo(am),ED=Eo(Cc),xD=Eo(lm),AD=Eo(cm),PD=Eo(Hg),Po=So;(am&&Po(new am(new ArrayBuffer(1)))!=l3||Cc&&Po(new Cc)!=r3||lm&&Po(lm.resolve())!=s3||cm&&Po(new cm)!=o3||Hg&&Po(new Hg)!=a3)&&(Po=function(e){var t=So(e),n=t==CD?e.constructor:void 0,r=n?Eo(n):"";if(r)switch(r){case SD:return l3;case ED:return r3;case xD:return s3;case AD:return o3;case PD:return a3}return t});const Ec=Po;var TD=Object.prototype,OD=TD.hasOwnProperty;function ND(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&OD.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var ID=Ji.Uint8Array;const jd=ID;function um(e){var t=new e.constructor(e.byteLength);return new jd(t).set(new jd(e)),t}function RD(e,t){var n=t?um(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var DD=/\w*$/;function LD(e){var t=new e.constructor(e.source,DD.exec(e));return t.lastIndex=e.lastIndex,t}var c3=Ei?Ei.prototype:void 0,u3=c3?c3.valueOf:void 0;function kD(e){return u3?Object(u3.call(e)):{}}function d3(e,t){var n=t?um(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var MD="[object Boolean]",FD="[object Date]",BD="[object Map]",jD="[object Number]",UD="[object RegExp]",$D="[object Set]",VD="[object String]",zD="[object Symbol]",qD="[object ArrayBuffer]",HD="[object DataView]",GD="[object Float32Array]",WD="[object Float64Array]",KD="[object Int8Array]",JD="[object Int16Array]",YD="[object Int32Array]",XD="[object Uint8Array]",ZD="[object Uint8ClampedArray]",QD="[object Uint16Array]",eL="[object Uint32Array]";function tL(e,t,n){var r=e.constructor;switch(t){case qD:return um(e);case MD:case FD:return new r(+e);case HD:return RD(e,n);case GD:case WD:case KD:case JD:case YD:case XD:case ZD:case QD:case eL:return d3(e,n);case BD:return new r;case jD:case VD:return new r(e);case UD:return LD(e);case $D:return new r;case zD:return kD(e)}}function f3(e){return typeof e.constructor=="function"&&!Jg(e)?WN(rm(e)):{}}var nL="[object Map]";function iL(e){return br(e)&&Ec(e)==nL}var h3=Ia&&Ia.isMap,rL=h3?Yg(h3):iL;const sL=rL;var oL="[object Set]";function aL(e){return br(e)&&Ec(e)==oL}var p3=Ia&&Ia.isSet,lL=p3?Yg(p3):aL;const cL=lL;var uL=1,dL=2,fL=4,g3="[object Arguments]",hL="[object Array]",pL="[object Boolean]",gL="[object Date]",mL="[object Error]",m3="[object Function]",vL="[object GeneratorFunction]",bL="[object Map]",yL="[object Number]",v3="[object Object]",_L="[object RegExp]",wL="[object Set]",CL="[object String]",SL="[object Symbol]",EL="[object WeakMap]",xL="[object ArrayBuffer]",AL="[object DataView]",PL="[object Float32Array]",TL="[object Float64Array]",OL="[object Int8Array]",NL="[object Int16Array]",IL="[object Int32Array]",RL="[object Uint8Array]",DL="[object Uint8ClampedArray]",LL="[object Uint16Array]",kL="[object Uint32Array]",Ht={};Ht[g3]=Ht[hL]=Ht[xL]=Ht[AL]=Ht[pL]=Ht[gL]=Ht[PL]=Ht[TL]=Ht[OL]=Ht[NL]=Ht[IL]=Ht[bL]=Ht[yL]=Ht[v3]=Ht[_L]=Ht[wL]=Ht[CL]=Ht[SL]=Ht[RL]=Ht[DL]=Ht[LL]=Ht[kL]=!0,Ht[mL]=Ht[m3]=Ht[EL]=!1;function xc(e,t,n,r,s,o){var a,l=t&uL,c=t&dL,u=t&fL;if(n&&(a=s?n(e,r,s,o):n(e)),a!==void 0)return a;if(!ei(e))return e;var d=Hn(e);if(d){if(a=ND(e),!l)return Lw(e,a)}else{var f=Ec(e),h=f==m3||f==vL;if(vc(e))return Qw(e,l);if(f==v3||f==g3||h&&!s){if(a=c||h?{}:f3(e),!l)return c?vD(e,lD(a,e)):pD(e,aD(a,e))}else{if(!Ht[f])return s?e:{};a=tL(e,f,l)}}o||(o=new Xi);var g=o.get(e);if(g)return g;o.set(e,a),cL(e)?e.forEach(function(_){a.add(xc(_,t,n,_,e,o))}):sL(e)&&e.forEach(function(_,w){a.set(w,xc(_,t,n,w,e,o))});var b=u?c?bD:om:c?_c:yc,y=d?void 0:b(e);return iI(y||e,function(_,w){y&&(w=_,_=e[w]),Wg(a,w,xc(_,t,n,w,e,o))}),a}var ML=4;function b3(e){return xc(e,ML)}var FL=1,BL=4;function To(e){return xc(e,FL|BL)}var jL="__lodash_hash_undefined__";function UL(e){return this.__data__.set(e,jL),this}function $L(e){return this.__data__.has(e)}function Ud(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new ts;++t<n;)this.add(e[t])}Ud.prototype.add=Ud.prototype.push=UL,Ud.prototype.has=$L;function VL(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function zL(e,t){return e.has(t)}var qL=1,HL=2;function y3(e,t,n,r,s,o){var a=n&qL,l=e.length,c=t.length;if(l!=c&&!(a&&c>l))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,h=!0,g=n&HL?new Ud:void 0;for(o.set(e,t),o.set(t,e);++f<l;){var b=e[f],y=t[f];if(r)var _=a?r(y,b,f,t,e,o):r(b,y,f,e,t,o);if(_!==void 0){if(_)continue;h=!1;break}if(g){if(!VL(t,function(w,x){if(!zL(g,x)&&(b===w||s(b,w,n,r,o)))return g.push(x)})){h=!1;break}}else if(!(b===y||s(b,y,n,r,o))){h=!1;break}}return o.delete(e),o.delete(t),h}function GL(e){var t=-1,n=Array(e.size);return e.forEach(function(r,s){n[++t]=[s,r]}),n}function WL(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var KL=1,JL=2,YL="[object Boolean]",XL="[object Date]",ZL="[object Error]",QL="[object Map]",ek="[object Number]",tk="[object RegExp]",nk="[object Set]",ik="[object String]",rk="[object Symbol]",sk="[object ArrayBuffer]",ok="[object DataView]",_3=Ei?Ei.prototype:void 0,dm=_3?_3.valueOf:void 0;function ak(e,t,n,r,s,o,a){switch(n){case ok:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case sk:return!(e.byteLength!=t.byteLength||!o(new jd(e),new jd(t)));case YL:case XL:case ek:return pc(+e,+t);case ZL:return e.name==t.name&&e.message==t.message;case tk:case ik:return e==t+"";case QL:var l=GL;case nk:var c=r&KL;if(l||(l=WL),e.size!=t.size&&!c)return!1;var u=a.get(e);if(u)return u==t;r|=JL,a.set(e,t);var d=y3(l(e),l(t),r,s,o,a);return a.delete(e),d;case rk:if(dm)return dm.call(e)==dm.call(t)}return!1}var lk=1,ck=Object.prototype,uk=ck.hasOwnProperty;function dk(e,t,n,r,s,o){var a=n&lk,l=om(e),c=l.length,u=om(t),d=u.length;if(c!=d&&!a)return!1;for(var f=c;f--;){var h=l[f];if(!(a?h in t:uk.call(t,h)))return!1}var g=o.get(e),b=o.get(t);if(g&&b)return g==t&&b==e;var y=!0;o.set(e,t),o.set(t,e);for(var _=a;++f<c;){h=l[f];var w=e[h],x=t[h];if(r)var C=a?r(x,w,h,t,e,o):r(w,x,h,e,t,o);if(!(C===void 0?w===x||s(w,x,n,r,o):C)){y=!1;break}_||(_=h=="constructor")}if(y&&!_){var S=e.constructor,A=t.constructor;S!=A&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof A=="function"&&A instanceof A)&&(y=!1)}return o.delete(e),o.delete(t),y}var fk=1,w3="[object Arguments]",C3="[object Array]",$d="[object Object]",hk=Object.prototype,S3=hk.hasOwnProperty;function pk(e,t,n,r,s,o){var a=Hn(e),l=Hn(t),c=a?C3:Ec(e),u=l?C3:Ec(t);c=c==w3?$d:c,u=u==w3?$d:u;var d=c==$d,f=u==$d,h=c==u;if(h&&vc(e)){if(!vc(t))return!1;a=!0,d=!1}if(h&&!d)return o||(o=new Xi),a||Zg(e)?y3(e,t,n,r,s,o):ak(e,t,c,n,r,s,o);if(!(n&fk)){var g=d&&S3.call(e,"__wrapped__"),b=f&&S3.call(t,"__wrapped__");if(g||b){var y=g?e.value():e,_=b?t.value():t;return o||(o=new Xi),s(y,_,n,r,o)}}return h?(o||(o=new Xi),dk(e,t,n,r,s,o)):!1}function Vd(e,t,n,r,s){return e===t?!0:e==null||t==null||!br(e)&&!br(t)?e!==e&&t!==t:pk(e,t,n,r,Vd,s)}var gk=1,mk=2;function vk(e,t,n,r){var s=n.length,o=s,a=!r;if(e==null)return!o;for(e=Object(e);s--;){var l=n[s];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++s<o;){l=n[s];var c=l[0],u=e[c],d=l[1];if(a&&l[2]){if(u===void 0&&!(c in e))return!1}else{var f=new Xi;if(r)var h=r(u,d,c,e,t,f);if(!(h===void 0?Vd(d,u,gk|mk,r,f):h))return!1}}return!0}function E3(e){return e===e&&!ei(e)}function bk(e){for(var t=yc(e),n=t.length;n--;){var r=t[n],s=e[r];t[n]=[r,s,E3(s)]}return t}function x3(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function yk(e){var t=bk(e);return t.length==1&&t[0][2]?x3(t[0][0],t[0][1]):function(n){return n===e||vk(n,e,t)}}function _k(e,t){return e!=null&&t in Object(e)}function wk(e,t,n){t=Bd(t,e);for(var r=-1,s=t.length,o=!1;++r<s;){var a=Sc(t[r]);if(!(o=e!=null&&n(e,a)))break;e=e[a]}return o||++r!=s?o:(s=e==null?0:e.length,!!s&&Kg(s)&&kd(a,s)&&(Hn(e)||mc(e)))}function A3(e,t){return e!=null&&wk(e,t,_k)}var Ck=1,Sk=2;function Ek(e,t){return Qg(e)&&E3(t)?x3(Sc(e),t):function(n){var r=xi(n,e);return r===void 0&&r===t?A3(n,e):Vd(t,r,Ck|Sk)}}function xk(e){return function(t){return t==null?void 0:t[e]}}function Ak(e){return function(t){return tm(t,e)}}function Pk(e){return Qg(e)?xk(Sc(e)):Ak(e)}function P3(e){return typeof e=="function"?e:e==null?zg:typeof e=="object"?Hn(e)?Ek(e[0],e[1]):yk(e):Pk(e)}function Tk(e){return function(t,n,r){for(var s=-1,o=Object(t),a=r(t),l=a.length;l--;){var c=a[e?l:++s];if(n(o[c],c,o)===!1)break}return t}}var Ok=Tk();const T3=Ok;function Nk(e,t){return e&&T3(e,t,yc)}function Ik(e,t){return function(n,r){if(n==null)return n;if(!Na(n))return e(n,r);for(var s=n.length,o=t?s:-1,a=Object(n);(t?o--:++o<s)&&r(a[o],o,a)!==!1;);return n}}var Rk=Ik(Nk);const Dk=Rk;var Lk=function(){return Ji.Date.now()};const fm=Lk;var kk="Expected a function",Mk=Math.max,Fk=Math.min;function Ra(e,t,n){var r,s,o,a,l,c,u=0,d=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(kk);t=Vg(t)||0,ei(n)&&(d=!!n.leading,f="maxWait"in n,o=f?Mk(Vg(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h);function g(O){var R=r,N=s;return r=s=void 0,u=O,a=e.apply(N,R),a}function b(O){return u=O,l=setTimeout(w,t),d?g(O):a}function y(O){var R=O-c,N=O-u,k=t-R;return f?Fk(k,o-N):k}function _(O){var R=O-c,N=O-u;return c===void 0||R>=t||R<0||f&&N>=o}function w(){var O=fm();if(_(O))return x(O);l=setTimeout(w,y(O))}function x(O){return l=void 0,h&&r?g(O):(r=s=void 0,a)}function C(){l!==void 0&&clearTimeout(l),u=0,r=c=s=l=void 0}function S(){return l===void 0?a:x(fm())}function A(){var O=fm(),R=_(O);if(r=arguments,s=this,c=O,R){if(l===void 0)return b(c);if(f)return clearTimeout(l),l=setTimeout(w,t),g(c)}return l===void 0&&(l=setTimeout(w,t)),a}return A.cancel=C,A.flush=S,A}function hm(e,t,n){(n!==void 0&&!pc(e[t],n)||n===void 0&&!(t in e))&&Gg(e,t,n)}function Bk(e){return br(e)&&Na(e)}function pm(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function jk(e){return gc(e,_c(e))}function Uk(e,t,n,r,s,o,a){var l=pm(e,n),c=pm(t,n),u=a.get(c);if(u){hm(e,n,u);return}var d=o?o(l,c,n+"",e,t,a):void 0,f=d===void 0;if(f){var h=Hn(c),g=!h&&vc(c),b=!h&&!g&&Zg(c);d=c,h||g||b?Hn(l)?d=l:Bk(l)?d=Lw(l):g?(f=!1,d=Qw(c,!0)):b?(f=!1,d=d3(c,!0)):d=[]:eD(c)||mc(c)?(d=l,mc(l)?d=jk(l):(!ei(l)||Dd(l))&&(d=f3(c))):f=!1}f&&(a.set(c,d),s(d,c,r,o,a),a.delete(c)),hm(e,n,d)}function O3(e,t,n,r,s){e!==t&&T3(t,function(o,a){if(s||(s=new Xi),ei(o))Uk(e,t,a,n,O3,r,s);else{var l=r?r(pm(e,a),o,a+"",e,t,s):void 0;l===void 0&&(l=o),hm(e,a,l)}},_c)}var $k=Math.max,Vk=Math.min;function zk(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var s=r-1;return n!==void 0&&(s=PN(n),s=n<0?$k(r+s,0):Vk(s,r-1)),rI(e,P3(t),s,!0)}function qk(e,t){var n=-1,r=Na(e)?Array(e.length):[];return Dk(e,function(s,o,a){r[++n]=t(s,o,a)}),r}function Hk(e,t){var n=Hn(e)?Aw:qk;return n(e,P3(t))}function Gk(e,t){return im(Hk(e,t),1)}function zd(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var s=e[t];r[s[0]]=s[1]}return r}function Da(e,t){return Vd(e,t)}function Oo(e){return e==null}function N3(e){return e===void 0}var Wk=fI(function(e,t,n){O3(e,t,n)});const Kk=Wk;function I3(e,t,n,r){if(!ei(e))return e;t=Bd(t,e);for(var s=-1,o=t.length,a=o-1,l=e;l!=null&&++s<o;){var c=Sc(t[s]),u=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(s!=a){var d=l[c];u=r?r(d,c,l):void 0,u===void 0&&(u=ei(d)?d:kd(t[s+1])?[]:{})}Wg(l,c,u),l=l[c]}return e}function Jk(e,t,n){for(var r=-1,s=t.length,o={};++r<s;){var a=t[r],l=tm(e,a);n(l,a)&&I3(o,Bd(a,e),l)}return o}function Yk(e,t){return Jk(e,t,function(n,r){return A3(e,r)})}var Xk=WR(function(e,t){return e==null?{}:Yk(e,t)});const R3=Xk;function Zk(e,t,n){return e==null?e:I3(e,t,n)}const Zi=e=>e===void 0,ti=e=>typeof e=="boolean",Qt=e=>typeof e=="number",yr=e=>typeof Element=="undefined"?!1:e instanceof Element,Ac=e=>Oo(e),Qk=e=>st(e)?!Number.isNaN(Number(e)):!1,eM=e=>Dt?window.requestAnimationFrame(e):setTimeout(e,16),tM=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),D3=e=>Object.keys(e),nM=e=>Object.entries(e),qd=(e,t,n)=>({get value(){return xi(e,t,n)},set value(r){Zk(e,t,r)}});class iM extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function No(e,t){throw new iM(`[${e}] ${t}`)}function Rhe(e,t){}const L3=(e="")=>e.split(" ").filter(t=>!!t.trim()),Io=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Ro=(e,t)=>{!e||!t.trim()||e.classList.add(...L3(t))},_r=(e,t)=>{!e||!t.trim()||e.classList.remove(...L3(t))},La=(e,t)=>{var n;if(!Dt||!e||!t)return"";let r=$n(t);r==="float"&&(r="cssFloat");try{const s=e.style[r];if(s)return s;const o=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return o?o[r]:""}catch(s){return e.style[r]}};function Qi(e,t="px"){if(!e)return"";if(Qt(e)||Qk(e))return`${e}${t}`;if(st(e))return e}let Hd;const rM=e=>{var t;if(!Dt)return 0;if(Hd!==void 0)return Hd;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const s=document.createElement("div");s.style.width="100%",n.appendChild(s);const o=s.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),Hd=r-o,Hd};function sM(e,t){if(!Dt)return;if(!t){e.scrollTop=0;return}const n=[];let r=t.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;const s=t.offsetTop+n.reduce((c,u)=>c+u.offsetTop,0),o=s+t.offsetHeight,a=e.scrollTop,l=a+e.clientHeight;s<a?e.scrollTop=s:o>l&&(e.scrollTop=o-e.clientHeight)}/*! Element Plus Icons Vue v2.3.1 */var oM=Te({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(I(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("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"})]))}}),k3=oM,aM=Te({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(I(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("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"})]))}}),gm=aM,lM=Te({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(I(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("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 0"})]))}}),cM=lM,uM=Te({name:"Check",__name:"check",setup(e){return(t,n)=>(I(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("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"})]))}}),M3=uM,dM=Te({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(I(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),H("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"})]))}}),mm=dM,fM=Te({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(I(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 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.336z"})]))}}),F3=fM,hM=Te({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(I(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("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.248z"}),H("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),Gd=hM,pM=Te({name:"Close",__name:"close",setup(e){return(t,n)=>(I(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("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"})]))}}),ka=pM,gM=Te({name:"Delete",__name:"delete",setup(e){return(t,n)=>(I(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("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-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),mM=gM,vM=Te({name:"Document",__name:"document",setup(e){return(t,n)=>(I(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),bM=vM,yM=Te({name:"Hide",__name:"hide",setup(e){return(t,n)=>(I(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("path",{fill:"currentColor",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.2zM889.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"}),H("path",{fill:"currentColor",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"})]))}}),_M=yM,wM=Te({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(I(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.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.344M590.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"})]))}}),vm=wM,CM=Te({name:"Loading",__name:"loading",setup(e){return(t,n)=>(I(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.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 0m-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"})]))}}),Ma=CM,SM=Te({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(I(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.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"})]))}}),B3=SM,EM=Te({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(I(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-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.336z"})]))}}),j3=EM,xM=Te({name:"UploadFilled",__name:"upload-filled",setup(e){return(t,n)=>(I(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("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.6z"})]))}}),AM=xM,PM=Te({name:"View",__name:"view",setup(e){return(t,n)=>(I(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 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-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),TM=PM,OM=Te({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(I(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 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 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),bm=OM,NM=Te({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(I(),z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[H("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 704m-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-64z"})]))}}),IM=NM;const U3="__epPropKey",Fe=e=>e,RM=e=>ct(e)&&!!e[U3],Wd=(e,t)=>{if(!ct(e)||RM(e))return e;const{values:n,required:r,default:s,type:o,validator:a}=e,c={type:o,required:!!r,validator:n||a?u=>{let d=!1,f=[];if(n&&(f=Array.from(n),yt(e,"default")&&f.push(s),d||(d=f.includes(u))),a&&(d||(d=a(u))),!d&&f.length>0){const h=[...new Set(f)].map(g=>JSON.stringify(g)).join(", ");KT(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(u)}.`)}return d}:void 0,[U3]:!0};return yt(e,"default")&&(c.default=s),c},ht=e=>zd(Object.entries(e).map(([t,n])=>[t,Wd(n,t)])),ns=Fe([String,Object,Function]),DM={Close:ka},$3={Close:ka,SuccessFilled:j3,InfoFilled:vm,WarningFilled:bm,CircleCloseFilled:F3},Kd={success:j3,warning:bm,error:F3,info:vm},V3={validating:Ma,success:mm,error:Gd},hn=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t!=null?t:{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},LM=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),kM=(e,t)=>(e.install=n=>{n.directive(t,e)},e),is=e=>(e.install=_t,e),MM=(...e)=>t=>{e.forEach(n=>{Ve(n)?n(t):n.value=t})},Do={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"},Cn="update:modelValue",ym="change",Pc=["","default","small","large"],FM=e=>["",...Pc].includes(e);var Jd=(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))(Jd||{});const BM=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),Tc=e=>e,jM=["class","style"],UM=/^on[A-Z]/,$M=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=W(()=>((n==null?void 0:n.value)||[]).concat(jM)),s=xt();return W(s?()=>{var o;return zd(Object.entries((o=s.proxy)==null?void 0:o.$attrs).filter(([a])=>!r.value.includes(a)&&!(t&&UM.test(a))))}:()=>({}))},Fa=({from:e,replacement:t,scope:n,version:r,ref:s,type:o="API"},a)=>{ze(()=>P(a),l=>{},{immediate:!0})},z3=(e,t,n,r)=>{let s={offsetX:0,offsetY:0};const o=u=>{const d=u.clientX,f=u.clientY,{offsetX:h,offsetY:g}=s,b=e.value.getBoundingClientRect(),y=b.left,_=b.top,w=b.width,x=b.height,C=document.documentElement.clientWidth,S=document.documentElement.clientHeight,A=-y+h,O=-_+g,R=C-y-w+h,N=S-_-x+g,k=F=>{let G=h+F.clientX-d,V=g+F.clientY-f;r!=null&&r.value||(G=Math.min(Math.max(G,A),R),V=Math.min(Math.max(V,O),N)),s={offsetX:G,offsetY:V},e.value&&(e.value.style.transform=`translate(${Qi(G)}, ${Qi(V)})`)},L=()=>{document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",L)};document.addEventListener("mousemove",k),document.addEventListener("mouseup",L)},a=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",o)},l=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",o)},c=()=>{s={offsetX:0,offsetY:0},e.value&&(e.value.style.transform="none")};return Lt(()=>{yo(()=>{n.value?a():l()})}),fn(()=>{l()}),{resetPosition:c}};var VM={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},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"},mention:{loading:"Loading"},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:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",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"},tour:{next:"Next",previous:"Previous",finish:"Finish"},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"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const zM=e=>(t,n)=>qM(t,n,P(e)),qM=(e,t,n)=>xi(n,e,e).replace(/\{(\w+)\}/g,(r,s)=>{var o;return`${(o=t==null?void 0:t[s])!=null?o:`{${s}}`}`}),HM=e=>{const t=W(()=>P(e).name),n=Mt(e)?e:ne(e);return{lang:t,locale:n,t:zM(e)}},q3=Symbol("localeContextKey"),Ba=e=>{const t=e||Qe(q3,ne());return HM(W(()=>t.value||VM))},Oc="el",GM="is-",Lo=(e,t,n,r,s)=>{let o=`${e}-${t}`;return n&&(o+=`-${n}`),r&&(o+=`__${r}`),s&&(o+=`--${s}`),o},H3=Symbol("namespaceContextKey"),_m=e=>{const t=e||(xt()?Qe(H3,ne(Oc)):ne(Oc));return W(()=>P(t)||Oc)},nt=(e,t)=>{const n=_m(t);return{namespace:n,b:(y="")=>Lo(n.value,e,y,"",""),e:y=>y?Lo(n.value,e,"",y,""):"",m:y=>y?Lo(n.value,e,"","",y):"",be:(y,_)=>y&&_?Lo(n.value,e,y,_,""):"",em:(y,_)=>y&&_?Lo(n.value,e,"",y,_):"",bm:(y,_)=>y&&_?Lo(n.value,e,y,"",_):"",bem:(y,_,w)=>y&&_&&w?Lo(n.value,e,y,_,w):"",is:(y,..._)=>{const w=_.length>=1?_[0]:!0;return y&&w?`${GM}${y}`:""},cssVar:y=>{const _={};for(const w in y)y[w]&&(_[`--${n.value}-${w}`]=y[w]);return _},cssVarName:y=>`--${n.value}-${y}`,cssVarBlock:y=>{const _={};for(const w in y)y[w]&&(_[`--${n.value}-${e}-${w}`]=y[w]);return _},cssVarBlockName:y=>`--${n.value}-${e}-${y}`}},G3=(e,t={})=>{Mt(e)||No("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||nt("popup"),r=W(()=>n.bm("parent","hidden"));if(!Dt||Io(document.body,r.value))return;let s=0,o=!1,a="0";const l=()=>{setTimeout(()=>{_r(document==null?void 0:document.body,r.value),o&&document&&(document.body.style.width=a)},200)};ze(e,c=>{if(!c){l();return}o=!Io(document.body,r.value),o&&(a=document.body.style.width),s=rM(n.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,d=La(document.body,"overflowY");s>0&&(u||d==="scroll")&&o&&(document.body.style.width=`calc(100% - ${s}px)`),Ro(document.body,r.value)}),t_(()=>l())},WM=Wd({type:Fe(Boolean),default:null}),KM=Wd({type:Fe(Function)}),W3=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],s={[e]:WM,[n]:KM};return{useModelToggle:({indicator:a,toggleReason:l,shouldHideWhenRouteChanges:c,shouldProceed:u,onShow:d,onHide:f})=>{const h=xt(),{emit:g}=h,b=h.props,y=W(()=>Ve(b[n])),_=W(()=>b[e]===null),w=R=>{a.value!==!0&&(a.value=!0,l&&(l.value=R),Ve(d)&&d(R))},x=R=>{a.value!==!1&&(a.value=!1,l&&(l.value=R),Ve(f)&&f(R))},C=R=>{if(b.disabled===!0||Ve(u)&&!u())return;const N=y.value&&Dt;N&&g(t,!0),(_.value||!N)&&w(R)},S=R=>{if(b.disabled===!0||!Dt)return;const N=y.value&&Dt;N&&g(t,!1),(_.value||!N)&&x(R)},A=R=>{ti(R)&&(b.disabled&&R?y.value&&g(t,!1):a.value!==R&&(R?w():x()))},O=()=>{a.value?S():C()};return ze(()=>b[e],A),c&&h.appContext.config.globalProperties.$route!==void 0&&ze(()=>we({},h.proxy.$route),()=>{c.value&&a.value&&S()}),Lt(()=>{A(b[e])}),{hide:S,show:C,toggle:O,hasUpdateHandler:y}},useModelToggleProps:s,useModelToggleEmits:r}};W3("modelValue");const K3=e=>{const t=xt();return W(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})};var ni="top",Ai="bottom",Pi="right",ii="left",wm="auto",Nc=[ni,Ai,Pi,ii],ja="start",Ic="end",JM="clippingParents",J3="viewport",Rc="popper",YM="reference",Y3=Nc.reduce(function(e,t){return e.concat([t+"-"+ja,t+"-"+Ic])},[]),Yd=[].concat(Nc,[wm]).reduce(function(e,t){return e.concat([t,t+"-"+ja,t+"-"+Ic])},[]),XM="beforeRead",ZM="read",QM="afterRead",eF="beforeMain",tF="main",nF="afterMain",iF="beforeWrite",rF="write",sF="afterWrite",oF=[XM,ZM,QM,eF,tF,nF,iF,rF,sF];function wr(e){return e?(e.nodeName||"").toLowerCase():null}function er(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ua(e){var t=er(e).Element;return e instanceof t||e instanceof Element}function Ti(e){var t=er(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Cm(e){if(typeof ShadowRoot=="undefined")return!1;var t=er(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function aF(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},s=t.attributes[n]||{},o=t.elements[n];!Ti(o)||!wr(o)||(Object.assign(o.style,r),Object.keys(s).forEach(function(a){var l=s[a];l===!1?o.removeAttribute(a):o.setAttribute(a,l===!0?"":l)}))})}function lF(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var s=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=a.reduce(function(c,u){return c[u]="",c},{});!Ti(s)||!wr(s)||(Object.assign(s.style,l),Object.keys(o).forEach(function(c){s.removeAttribute(c)}))})}}var X3={name:"applyStyles",enabled:!0,phase:"write",fn:aF,effect:lF,requires:["computeStyles"]};function Cr(e){return e.split("-")[0]}var ko=Math.max,Xd=Math.min,$a=Math.round;function Va(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,s=1;if(Ti(e)&&t){var o=e.offsetHeight,a=e.offsetWidth;a>0&&(r=$a(n.width)/a||1),o>0&&(s=$a(n.height)/o||1)}return{width:n.width/r,height:n.height/s,top:n.top/s,right:n.right/r,bottom:n.bottom/s,left:n.left/r,x:n.left/r,y:n.top/s}}function Sm(e){var t=Va(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Z3(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Cm(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function rs(e){return er(e).getComputedStyle(e)}function cF(e){return["table","td","th"].indexOf(wr(e))>=0}function ks(e){return((Ua(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zd(e){return wr(e)==="html"?e:e.assignedSlot||e.parentNode||(Cm(e)?e.host:null)||ks(e)}function Q3(e){return!Ti(e)||rs(e).position==="fixed"?null:e.offsetParent}function uF(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Ti(e)){var r=rs(e);if(r.position==="fixed")return null}var s=Zd(e);for(Cm(s)&&(s=s.host);Ti(s)&&["html","body"].indexOf(wr(s))<0;){var o=rs(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return s;s=s.parentNode}return null}function Dc(e){for(var t=er(e),n=Q3(e);n&&cF(n)&&rs(n).position==="static";)n=Q3(n);return n&&(wr(n)==="html"||wr(n)==="body"&&rs(n).position==="static")?t:n||uF(e)||t}function Em(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Lc(e,t,n){return ko(e,Xd(t,n))}function dF(e,t,n){var r=Lc(e,t,n);return r>n?n:r}function e6(){return{top:0,right:0,bottom:0,left:0}}function t6(e){return Object.assign({},e6(),e)}function n6(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var fF=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,t6(typeof e!="number"?e:n6(e,Nc))};function hF(e){var t,n=e.state,r=e.name,s=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Cr(n.placement),c=Em(l),u=[ii,Pi].indexOf(l)>=0,d=u?"height":"width";if(!(!o||!a)){var f=fF(s.padding,n),h=Sm(o),g=c==="y"?ni:ii,b=c==="y"?Ai:Pi,y=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],_=a[c]-n.rects.reference[c],w=Dc(o),x=w?c==="y"?w.clientHeight||0:w.clientWidth||0:0,C=y/2-_/2,S=f[g],A=x-h[d]-f[b],O=x/2-h[d]/2+C,R=Lc(S,O,A),N=c;n.modifiersData[r]=(t={},t[N]=R,t.centerOffset=R-O,t)}}function pF(e){var t=e.state,n=e.options,r=n.element,s=r===void 0?"[data-popper-arrow]":r;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||!Z3(t.elements.popper,s)||(t.elements.arrow=s))}var gF={name:"arrow",enabled:!0,phase:"main",fn:hF,effect:pF,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function za(e){return e.split("-")[1]}var mF={top:"auto",right:"auto",bottom:"auto",left:"auto"};function vF(e){var t=e.x,n=e.y,r=window,s=r.devicePixelRatio||1;return{x:$a(t*s)/s||0,y:$a(n*s)/s||0}}function i6(e){var t,n=e.popper,r=e.popperRect,s=e.placement,o=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=a.x,g=h===void 0?0:h,b=a.y,y=b===void 0?0:b,_=typeof d=="function"?d({x:g,y}):{x:g,y};g=_.x,y=_.y;var w=a.hasOwnProperty("x"),x=a.hasOwnProperty("y"),C=ii,S=ni,A=window;if(u){var O=Dc(n),R="clientHeight",N="clientWidth";if(O===er(n)&&(O=ks(n),rs(O).position!=="static"&&l==="absolute"&&(R="scrollHeight",N="scrollWidth")),O=O,s===ni||(s===ii||s===Pi)&&o===Ic){S=Ai;var k=f&&O===A&&A.visualViewport?A.visualViewport.height:O[R];y-=k-r.height,y*=c?1:-1}if(s===ii||(s===ni||s===Ai)&&o===Ic){C=Pi;var L=f&&O===A&&A.visualViewport?A.visualViewport.width:O[N];g-=L-r.width,g*=c?1:-1}}var F=Object.assign({position:l},u&&mF),G=d===!0?vF({x:g,y}):{x:g,y};if(g=G.x,y=G.y,c){var V;return Object.assign({},F,(V={},V[S]=x?"0":"",V[C]=w?"0":"",V.transform=(A.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",V))}return Object.assign({},F,(t={},t[S]=x?y+"px":"",t[C]=w?g+"px":"",t.transform="",t))}function bF(e){var t=e.state,n=e.options,r=n.gpuAcceleration,s=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:Cr(t.placement),variation:za(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,i6(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,i6(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 r6={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:bF,data:{}},Qd={passive:!0};function yF(e){var t=e.state,n=e.instance,r=e.options,s=r.scroll,o=s===void 0?!0:s,a=r.resize,l=a===void 0?!0:a,c=er(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(d){d.addEventListener("scroll",n.update,Qd)}),l&&c.addEventListener("resize",n.update,Qd),function(){o&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Qd)}),l&&c.removeEventListener("resize",n.update,Qd)}}var s6={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:yF,data:{}},_F={left:"right",right:"left",bottom:"top",top:"bottom"};function ef(e){return e.replace(/left|right|bottom|top/g,function(t){return _F[t]})}var wF={start:"end",end:"start"};function o6(e){return e.replace(/start|end/g,function(t){return wF[t]})}function xm(e){var t=er(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Am(e){return Va(ks(e)).left+xm(e).scrollLeft}function CF(e){var t=er(e),n=ks(e),r=t.visualViewport,s=n.clientWidth,o=n.clientHeight,a=0,l=0;return r&&(s=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,l=r.offsetTop)),{width:s,height:o,x:a+Am(e),y:l}}function SF(e){var t,n=ks(e),r=xm(e),s=(t=e.ownerDocument)==null?void 0:t.body,o=ko(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=ko(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),l=-r.scrollLeft+Am(e),c=-r.scrollTop;return rs(s||n).direction==="rtl"&&(l+=ko(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:a,x:l,y:c}}function Pm(e){var t=rs(e),n=t.overflow,r=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function a6(e){return["html","body","#document"].indexOf(wr(e))>=0?e.ownerDocument.body:Ti(e)&&Pm(e)?e:a6(Zd(e))}function kc(e,t){var n;t===void 0&&(t=[]);var r=a6(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),o=er(r),a=s?[o].concat(o.visualViewport||[],Pm(r)?r:[]):r,l=t.concat(a);return s?l:l.concat(kc(Zd(a)))}function Tm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function EF(e){var t=Va(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 l6(e,t){return t===J3?Tm(CF(e)):Ua(t)?EF(t):Tm(SF(ks(e)))}function xF(e){var t=kc(Zd(e)),n=["absolute","fixed"].indexOf(rs(e).position)>=0,r=n&&Ti(e)?Dc(e):e;return Ua(r)?t.filter(function(s){return Ua(s)&&Z3(s,r)&&wr(s)!=="body"}):[]}function AF(e,t,n){var r=t==="clippingParents"?xF(e):[].concat(t),s=[].concat(r,[n]),o=s[0],a=s.reduce(function(l,c){var u=l6(e,c);return l.top=ko(u.top,l.top),l.right=Xd(u.right,l.right),l.bottom=Xd(u.bottom,l.bottom),l.left=ko(u.left,l.left),l},l6(e,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function c6(e){var t=e.reference,n=e.element,r=e.placement,s=r?Cr(r):null,o=r?za(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(s){case ni:c={x:a,y:t.y-n.height};break;case Ai:c={x:a,y:t.y+t.height};break;case Pi:c={x:t.x+t.width,y:l};break;case ii:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var u=s?Em(s):null;if(u!=null){var d=u==="y"?"height":"width";switch(o){case ja:c[u]=c[u]-(t[d]/2-n[d]/2);break;case Ic:c[u]=c[u]+(t[d]/2-n[d]/2);break}}return c}function Mc(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=r===void 0?e.placement:r,o=n.boundary,a=o===void 0?JM:o,l=n.rootBoundary,c=l===void 0?J3:l,u=n.elementContext,d=u===void 0?Rc:u,f=n.altBoundary,h=f===void 0?!1:f,g=n.padding,b=g===void 0?0:g,y=t6(typeof b!="number"?b:n6(b,Nc)),_=d===Rc?YM:Rc,w=e.rects.popper,x=e.elements[h?_:d],C=AF(Ua(x)?x:x.contextElement||ks(e.elements.popper),a,c),S=Va(e.elements.reference),A=c6({reference:S,element:w,strategy:"absolute",placement:s}),O=Tm(Object.assign({},w,A)),R=d===Rc?O:S,N={top:C.top-R.top+y.top,bottom:R.bottom-C.bottom+y.bottom,left:C.left-R.left+y.left,right:R.right-C.right+y.right},k=e.modifiersData.offset;if(d===Rc&&k){var L=k[s];Object.keys(N).forEach(function(F){var G=[Pi,Ai].indexOf(F)>=0?1:-1,V=[ni,Ai].indexOf(F)>=0?"y":"x";N[F]+=L[V]*G})}return N}function PF(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=n.boundary,o=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?Yd:c,d=za(r),f=d?l?Y3:Y3.filter(function(b){return za(b)===d}):Nc,h=f.filter(function(b){return u.indexOf(b)>=0});h.length===0&&(h=f);var g=h.reduce(function(b,y){return b[y]=Mc(e,{placement:y,boundary:s,rootBoundary:o,padding:a})[Cr(y)],b},{});return Object.keys(g).sort(function(b,y){return g[b]-g[y]})}function TF(e){if(Cr(e)===wm)return[];var t=ef(e);return[o6(e),t,o6(t)]}function OF(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var s=n.mainAxis,o=s===void 0?!0:s,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,h=n.altBoundary,g=n.flipVariations,b=g===void 0?!0:g,y=n.allowedAutoPlacements,_=t.options.placement,w=Cr(_),x=w===_,C=c||(x||!b?[ef(_)]:TF(_)),S=[_].concat(C).reduce(function(oe,Ce){return oe.concat(Cr(Ce)===wm?PF(t,{placement:Ce,boundary:d,rootBoundary:f,padding:u,flipVariations:b,allowedAutoPlacements:y}):Ce)},[]),A=t.rects.reference,O=t.rects.popper,R=new Map,N=!0,k=S[0],L=0;L<S.length;L++){var F=S[L],G=Cr(F),V=za(F)===ja,ae=[ni,Ai].indexOf(G)>=0,ce=ae?"width":"height",U=Mc(t,{placement:F,boundary:d,rootBoundary:f,altBoundary:h,padding:u}),J=ae?V?Pi:ii:V?Ai:ni;A[ce]>O[ce]&&(J=ef(J));var Q=ef(J),X=[];if(o&&X.push(U[G]<=0),l&&X.push(U[J]<=0,U[Q]<=0),X.every(function(oe){return oe})){k=F,N=!1;break}R.set(F,X)}if(N)for(var B=b?3:1,_e=function(oe){var Ce=S.find(function(me){var q=R.get(me);if(q)return q.slice(0,oe).every(function(Z){return Z})});if(Ce)return k=Ce,"break"},he=B;he>0;he--){var ie=_e(he);if(ie==="break")break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}}var NF={name:"flip",enabled:!0,phase:"main",fn:OF,requiresIfExists:["offset"],data:{_skip:!1}};function u6(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function d6(e){return[ni,Pi,Ai,ii].some(function(t){return e[t]>=0})}function IF(e){var t=e.state,n=e.name,r=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,a=Mc(t,{elementContext:"reference"}),l=Mc(t,{altBoundary:!0}),c=u6(a,r),u=u6(l,s,o),d=d6(c),f=d6(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}var RF={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:IF};function DF(e,t,n){var r=Cr(e),s=[ii,ni].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],l=o[1];return a=a||0,l=(l||0)*s,[ii,Pi].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function LF(e){var t=e.state,n=e.options,r=e.name,s=n.offset,o=s===void 0?[0,0]:s,a=Yd.reduce(function(d,f){return d[f]=DF(f,t.rects,o),d},{}),l=a[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}var kF={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:LF};function MF(e){var t=e.state,n=e.name;t.modifiersData[n]=c6({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var f6={name:"popperOffsets",enabled:!0,phase:"read",fn:MF,data:{}};function FF(e){return e==="x"?"y":"x"}function BF(e){var t=e.state,n=e.options,r=e.name,s=n.mainAxis,o=s===void 0?!0:s,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,h=n.tether,g=h===void 0?!0:h,b=n.tetherOffset,y=b===void 0?0:b,_=Mc(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:d}),w=Cr(t.placement),x=za(t.placement),C=!x,S=Em(w),A=FF(S),O=t.modifiersData.popperOffsets,R=t.rects.reference,N=t.rects.popper,k=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,L=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,G={x:0,y:0};if(O){if(o){var V,ae=S==="y"?ni:ii,ce=S==="y"?Ai:Pi,U=S==="y"?"height":"width",J=O[S],Q=J+_[ae],X=J-_[ce],B=g?-N[U]/2:0,_e=x===ja?R[U]:N[U],he=x===ja?-N[U]:-R[U],ie=t.elements.arrow,oe=g&&ie?Sm(ie):{width:0,height:0},Ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:e6(),me=Ce[ae],q=Ce[ce],Z=Lc(0,R[U],oe[U]),ve=C?R[U]/2-B-Z-me-L.mainAxis:_e-Z-me-L.mainAxis,Oe=C?-R[U]/2+B+Z+q+L.mainAxis:he+Z+q+L.mainAxis,Le=t.elements.arrow&&Dc(t.elements.arrow),Ke=Le?S==="y"?Le.clientTop||0:Le.clientLeft||0:0,j=(V=F==null?void 0:F[S])!=null?V:0,K=J+ve-j-Ke,se=J+Oe-j,Ae=Lc(g?Xd(Q,K):Q,J,g?ko(X,se):X);O[S]=Ae,G[S]=Ae-J}if(l){var de,fe=S==="x"?ni:ii,Se=S==="x"?Ai:Pi,Pe=O[A],Ne=A==="y"?"height":"width",be=Pe+_[fe],$e=Pe-_[Se],pe=[ni,ii].indexOf(w)!==-1,le=(de=F==null?void 0:F[A])!=null?de:0,ke=pe?be:Pe-R[Ne]-N[Ne]-le+L.altAxis,Ye=pe?Pe+R[Ne]+N[Ne]-le-L.altAxis:$e,Ct=g&&pe?dF(ke,Pe,Ye):Lc(g?ke:be,Pe,g?Ye:$e);O[A]=Ct,G[A]=Ct-Pe}t.modifiersData[r]=G}}var jF={name:"preventOverflow",enabled:!0,phase:"main",fn:BF,requiresIfExists:["offset"]};function UF(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function $F(e){return e===er(e)||!Ti(e)?xm(e):UF(e)}function VF(e){var t=e.getBoundingClientRect(),n=$a(t.width)/e.offsetWidth||1,r=$a(t.height)/e.offsetHeight||1;return n!==1||r!==1}function zF(e,t,n){n===void 0&&(n=!1);var r=Ti(t),s=Ti(t)&&VF(t),o=ks(t),a=Va(e,s),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((wr(t)!=="body"||Pm(o))&&(l=$F(t)),Ti(t)?(c=Va(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=Am(o))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function qF(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function s(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&s(c)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||s(o)}),r}function HF(e){var t=qF(e);return oF.reduce(function(n,r){return n.concat(t.filter(function(s){return s.phase===r}))},[])}function GF(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function WF(e){var t=e.reduce(function(n,r){var s=n[r.name];return n[r.name]=s?Object.assign({},s,r,{options:Object.assign({},s.options,r.options),data:Object.assign({},s.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var h6={placement:"bottom",modifiers:[],strategy:"absolute"};function p6(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Om(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,s=t.defaultOptions,o=s===void 0?h6:s;return function(a,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},h6,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},d=[],f=!1,h={state:u,setOptions:function(y){var _=typeof y=="function"?y(u.options):y;b(),u.options=Object.assign({},o,u.options,_),u.scrollParents={reference:Ua(a)?kc(a):a.contextElement?kc(a.contextElement):[],popper:kc(l)};var w=HF(WF([].concat(r,u.options.modifiers)));return u.orderedModifiers=w.filter(function(x){return x.enabled}),g(),h.update()},forceUpdate:function(){if(!f){var y=u.elements,_=y.reference,w=y.popper;if(p6(_,w)){u.rects={reference:zF(_,Dc(w),u.options.strategy==="fixed"),popper:Sm(w)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(N){return u.modifiersData[N.name]=Object.assign({},N.data)});for(var x=0;x<u.orderedModifiers.length;x++){if(u.reset===!0){u.reset=!1,x=-1;continue}var C=u.orderedModifiers[x],S=C.fn,A=C.options,O=A===void 0?{}:A,R=C.name;typeof S=="function"&&(u=S({state:u,options:O,name:R,instance:h})||u)}}}},update:GF(function(){return new Promise(function(y){h.forceUpdate(),y(u)})}),destroy:function(){b(),f=!0}};if(!p6(a,l))return h;h.setOptions(c).then(function(y){!f&&c.onFirstUpdate&&c.onFirstUpdate(y)});function g(){u.orderedModifiers.forEach(function(y){var _=y.name,w=y.options,x=w===void 0?{}:w,C=y.effect;if(typeof C=="function"){var S=C({state:u,name:_,instance:h,options:x}),A=function(){};d.push(S||A)}})}function b(){d.forEach(function(y){return y()}),d=[]}return h}}Om();var KF=[s6,f6,r6,X3];Om({defaultModifiers:KF});var JF=[s6,f6,r6,X3,kF,NF,jF,gF,RF],YF=Om({defaultModifiers:JF});const XF=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:c})=>{const u=ZF(c);Object.assign(a.value,u)},requires:["computeStyles"]},s=W(()=>{const{onFirstUpdate:c,placement:u,strategy:d,modifiers:f}=P(n);return{onFirstUpdate:c,placement:u||"bottom",strategy:d||"absolute",modifiers:[...f||[],r,{name:"applyStyles",enabled:!1}]}}),o=yn(),a=ne({styles:{popper:{position:P(s).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=()=>{o.value&&(o.value.destroy(),o.value=void 0)};return ze(s,c=>{const u=P(o);u&&u.setOptions(c)},{deep:!0}),ze([e,t],([c,u])=>{l(),!(!c||!u)&&(o.value=YF(c,u,P(s)))}),fn(()=>{l()}),{state:W(()=>{var c;return we({},((c=P(o))==null?void 0:c.state)||{})}),styles:W(()=>P(a).styles),attributes:W(()=>P(a).attributes),update:()=>{var c;return(c=P(o))==null?void 0:c.update()},forceUpdate:()=>{var c;return(c=P(o))==null?void 0:c.forceUpdate()},instanceRef:W(()=>P(o))}};function ZF(e){const t=Object.keys(e.elements),n=zd(t.map(s=>[s,e.styles[s]||{}])),r=zd(t.map(s=>[s,e.attributes[s]]));return{styles:n,attributes:r}}const Nm=e=>{if(!e)return{onClick:_t,onMousedown:_t,onMouseup:_t};let t=!1,n=!1;return{onClick:a=>{t&&n&&e(a),t=n=!1},onMousedown:a=>{t=a.target===a.currentTarget},onMouseup:a=>{n=a.target===a.currentTarget}}};function g6(){let e;const t=(r,s)=>{n(),e=window.setTimeout(r,s)},n=()=>window.clearTimeout(e);return fc(()=>n()),{registerTimeout:t,cancelTimeout:n}}const m6={prefix:Math.floor(Math.random()*1e4),current:0},QF=Symbol("elIdInjection"),v6=()=>xt()?Qe(QF,m6):m6,Sr=e=>{const t=v6(),n=_m();return W(()=>P(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let qa=[];const b6=e=>{const t=e;t.key===Do.esc&&qa.forEach(n=>n(t))},eB=e=>{Lt(()=>{qa.length===0&&document.addEventListener("keydown",b6),Dt&&qa.push(e)}),fn(()=>{qa=qa.filter(t=>t!==e),qa.length===0&&Dt&&document.removeEventListener("keydown",b6)})};let y6;const _6=()=>{const e=_m(),t=v6(),n=W(()=>`${e.value}-popper-container-${t.prefix}`),r=W(()=>`#${n.value}`);return{id:n,selector:r}},tB=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},nB=()=>{const{id:e,selector:t}=_6();return tc(()=>{Dt&&(!y6||!document.body.querySelector(t.value))&&(y6=tB(e.value))}),{id:e,selector:t}},iB=ht({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),rB=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:s})=>{const{registerTimeout:o}=g6(),{registerTimeout:a,cancelTimeout:l}=g6();return{onOpen:d=>{o(()=>{r(d);const f=P(n);Qt(f)&&f>0&&a(()=>{s(d)},f)},P(e))},onClose:d=>{l(),o(()=>{s(d)},P(t))}}},w6=Symbol("elForwardRef"),sB=e=>{an(w6,{setForwardRef:n=>{e.value=n}})},oB=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),C6={current:0},S6=ne(0),E6=2e3,x6=Symbol("elZIndexContextKey"),A6=Symbol("zIndexContextKey"),Im=e=>{const t=xt()?Qe(x6,C6):C6,n=e||(xt()?Qe(A6,void 0):void 0),r=W(()=>{const a=P(n);return Qt(a)?a:E6}),s=W(()=>r.value+S6.value),o=()=>(t.current++,S6.value=t.current,s.value);return!Dt&&Qe(x6),{initialZIndex:r,currentZIndex:s,nextZIndex:o}};function aB(e){let t;function n(){if(e.value==null)return;const{selectionStart:s,selectionEnd:o,value:a}=e.value;if(s==null||o==null)return;const l=a.slice(0,Math.max(0,s)),c=a.slice(Math.max(0,o));t={selectionStart:s,selectionEnd:o,value:a,beforeTxt:l,afterTxt:c}}function r(){if(e.value==null||t==null)return;const{value:s}=e.value,{beforeTxt:o,afterTxt:a,selectionStart:l}=t;if(o==null||a==null||l==null)return;let c=s.length;if(s.endsWith(a))c=s.length-a.length;else if(s.startsWith(o))c=o.length;else{const u=o[l-1],d=s.indexOf(u,l-1);d!==-1&&(c=d+1)}e.value.setSelectionRange(c,c)}return[n,r]}const Ms=Wd({type:String,values:Pc,required:!1}),P6=Symbol("size"),lB=()=>{const e=Qe(P6,{});return W(()=>P(e.size)||"")};function T6(e,{beforeFocus:t,afterFocus:n,beforeBlur:r,afterBlur:s}={}){const o=xt(),{emit:a}=o,l=yn(),c=ne(!1),u=h=>{Ve(t)&&t(h)||c.value||(c.value=!0,a("focus",h),n==null||n())},d=h=>{var g;Ve(r)&&r(h)||h.relatedTarget&&((g=l.value)!=null&&g.contains(h.relatedTarget))||(c.value=!1,a("blur",h),s==null||s())},f=()=>{var h,g;(h=l.value)!=null&&h.contains(document.activeElement)&&l.value!==document.activeElement||(g=e.value)==null||g.focus()};return ze(l,h=>{h&&h.setAttribute("tabindex","-1")}),Si(l,"focus",u,!0),Si(l,"blur",d,!0),Si(l,"click",f,!0),{isFocused:c,wrapperRef:l,handleFocus:u,handleBlur:d}}function O6({afterComposition:e,emit:t}){const n=ne(!1),r=l=>{t==null||t("compositionstart",l),n.value=!0},s=l=>{var c;t==null||t("compositionupdate",l);const u=(c=l.target)==null?void 0:c.value,d=u[u.length-1]||"";n.value=!BM(d)},o=l=>{t==null||t("compositionend",l),n.value&&(n.value=!1,pt(()=>e(l)))};return{isComposing:n,handleComposition:l=>{l.type==="compositionend"?o(l):s(l)},handleCompositionStart:r,handleCompositionUpdate:s,handleCompositionEnd:o}}const N6=Symbol("emptyValuesContextKey"),cB=["",void 0,null],uB=void 0,dB=ht({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>Ve(e)?!e():!e}}),fB=(e,t)=>{const n=xt()?Qe(N6,ne({})):ne({}),r=W(()=>e.emptyValues||n.value.emptyValues||cB),s=W(()=>Ve(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:Ve(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:uB),o=a=>r.value.includes(a);return r.value.includes(s.value),{emptyValues:r,valueOnClear:s,isEmptyValue:o}},hB=ht({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Fs=e=>R3(hB,e),I6=Symbol(),tf=ne();function nf(e,t=void 0){const n=xt()?Qe(I6,tf):tf;return e?W(()=>{var r,s;return(s=(r=n.value)==null?void 0:r[e])!=null?s:t}):n}function Rm(e,t){const n=nf(),r=nt(e,W(()=>{var l;return((l=n.value)==null?void 0:l.namespace)||Oc})),s=Ba(W(()=>{var l;return(l=n.value)==null?void 0:l.locale})),o=Im(W(()=>{var l;return((l=n.value)==null?void 0:l.zIndex)||E6})),a=W(()=>{var l;return P(t)||((l=n.value)==null?void 0:l.size)||""});return pB(W(()=>P(n)||{})),{ns:r,locale:s,zIndex:o,size:a}}const pB=(e,t,n=!1)=>{var r;const s=!!xt(),o=s?nf():void 0,a=(r=t==null?void 0:t.provide)!=null?r:s?an:void 0;if(!a)return;const l=W(()=>{const c=P(e);return o!=null&&o.value?gB(o.value,c):c});return a(I6,l),a(q3,W(()=>l.value.locale)),a(H3,W(()=>l.value.namespace)),a(A6,W(()=>l.value.zIndex)),a(P6,{size:W(()=>l.value.size||"")}),a(N6,W(()=>({emptyValues:l.value.emptyValues,valueOnClear:l.value.valueOnClear}))),(n||!tf.value)&&(tf.value=l.value),l},gB=(e,t)=>{const n=[...new Set([...D3(e),...D3(t)])],r={};for(const s of n)r[s]=t[s]!==void 0?t[s]:e[s];return r},Er={};var ft=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};const mB=ht({size:{type:Fe([Number,String])},color:{type:String}}),vB=Te(Be(we({},Te({name:"ElIcon",inheritAttrs:!1})),{props:mB,setup(e){const t=e,n=nt("icon"),r=W(()=>{const{size:s,color:o}=t;return!s&&!o?{}:{fontSize:Zi(s)?void 0:Qi(s),"--color":o}});return(s,o)=>(I(),z("i",An({class:P(n).b(),style:P(r)},s.$attrs),[Re(s.$slots,"default")],16))}}));var bB=ft(vB,[["__file","icon.vue"]]);const Ft=hn(bB),Ha=Symbol("formContextKey"),Mo=Symbol("formItemContextKey"),xr=(e,t={})=>{const n=ne(void 0),r=t.prop?n:K3("size"),s=t.global?n:lB(),o=t.form?{size:void 0}:Qe(Ha,void 0),a=t.formItem?{size:void 0}:Qe(Mo,void 0);return W(()=>r.value||P(e)||(a==null?void 0:a.size)||(o==null?void 0:o.size)||s.value||"")},ss=e=>{const t=K3("disabled"),n=Qe(Ha,void 0);return W(()=>t.value||P(e)||(n==null?void 0:n.disabled)||!1)},Fo=()=>{const e=Qe(Ha,void 0),t=Qe(Mo,void 0);return{form:e,formItem:t}},Fc=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=ne(!1)),r||(r=ne(!1));const s=ne();let o;const a=W(()=>{var l;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((l=t.inputIds)==null?void 0:l.length)<=1)});return Lt(()=>{o=ze([wi(e,"id"),n],([l,c])=>{const u=l!=null?l:c?void 0:Sr().value;u!==s.value&&(t!=null&&t.removeInputId&&(s.value&&t.removeInputId(s.value),!(r!=null&&r.value)&&!c&&u&&t.addInputId(u)),s.value=u)},{immediate:!0})}),vo(()=>{o&&o(),t!=null&&t.removeInputId&&s.value&&t.removeInputId(s.value)}),{isLabeledByFormItem:a,inputId:s}},yB=ht({size:{type:String,values:Pc},disabled:Boolean}),_B=ht(Be(we({},yB),{model:Object,rules:{type:Fe(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},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}})),wB={validate:(e,t,n)=>(je(e)||st(e))&&ti(t)&&st(n)};function CB(){const e=ne([]),t=W(()=>{if(!e.value.length)return"0";const o=Math.max(...e.value);return o?`${o}px`:""});function n(o){const a=e.value.indexOf(o);return a===-1&&t.value,a}function r(o,a){if(o&&a){const l=n(a);e.value.splice(l,1,o)}else o&&e.value.push(o)}function s(o){const a=n(o);a>-1&&e.value.splice(a,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:s}}const rf=(e,t)=>{const n=Yi(t);return n.length>0?e.filter(r=>r.prop&&n.includes(r.prop)):e},SB=Te(Be(we({},Te({name:"ElForm"})),{props:_B,emits:wB,setup(e,{expose:t,emit:n}){const r=e,s=[],o=xr(),a=nt("form"),l=W(()=>{const{labelPosition:C,inline:S}=r;return[a.b(),a.m(o.value||"default"),{[a.m(`label-${C}`)]:C,[a.m("inline")]:S}]}),c=C=>s.find(S=>S.prop===C),u=C=>{s.push(C)},d=C=>{C.prop&&s.splice(s.indexOf(C),1)},f=(C=[])=>{r.model&&rf(s,C).forEach(S=>S.resetField())},h=(C=[])=>{rf(s,C).forEach(S=>S.clearValidate())},g=W(()=>!!r.model),b=C=>{if(s.length===0)return[];const S=rf(s,C);return S.length?S:[]},y=C=>at(this,null,function*(){return w(void 0,C)}),_=(...S)=>at(this,[...S],function*(C=[]){if(!g.value)return!1;const A=b(C);if(A.length===0)return!0;let O={};for(const R of A)try{yield R.validate("")}catch(N){O=we(we({},O),N)}return Object.keys(O).length===0?!0:Promise.reject(O)}),w=(...A)=>at(this,[...A],function*(C=[],S){const O=!Ve(S);try{const R=yield _(C);return R===!0&&(yield S==null?void 0:S(R)),R}catch(R){if(R instanceof Error)throw R;const N=R;return r.scrollToError&&x(Object.keys(N)[0]),yield S==null?void 0:S(!1,N),O&&Promise.reject(N)}}),x=C=>{var S;const A=rf(s,C)[0];A&&((S=A.$el)==null||S.scrollIntoView(r.scrollIntoViewOptions))};return ze(()=>r.rules,()=>{r.validateOnRuleChange&&y().catch(C=>void 0)},{deep:!0}),an(Ha,Dn(we(Be(we({},pr(r)),{emit:n,resetFields:f,clearValidate:h,validateField:w,getField:c,addField:u,removeField:d}),CB()))),t({validate:y,validateField:w,resetFields:f,clearValidate:h,scrollToField:x,fields:s}),(C,S)=>(I(),z("form",{class:Y(P(l))},[Re(C.$slots,"default")],2))}}));var EB=ft(SB,[["__file","form.vue"]]);function Bo(){return Bo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bo.apply(this,arguments)}function xB(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Bc(e,t)}function Dm(e){return Dm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Dm(e)}function Bc(e,t){return Bc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,s){return r.__proto__=s,r},Bc(e,t)}function AB(){if(typeof Reflect=="undefined"||!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(e){return!1}}function sf(e,t,n){return AB()?sf=Reflect.construct.bind():sf=function(s,o,a){var l=[null];l.push.apply(l,o);var c=Function.bind.apply(s,l),u=new c;return a&&Bc(u,a.prototype),u},sf.apply(null,arguments)}function PB(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Lm(e){var t=typeof Map=="function"?new Map:void 0;return Lm=function(r){if(r===null||!PB(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(r))return t.get(r);t.set(r,s)}function s(){return sf(r,arguments,Dm(this).constructor)}return s.prototype=Object.create(r.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),Bc(s,r)},Lm(e)}var TB=/%[sdj%]/g,OB=function(){};function km(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function ui(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var s=0,o=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(TB,function(l){if(l==="%%")return"%";if(s>=o)return l;switch(l){case"%s":return String(n[s++]);case"%d":return Number(n[s++]);case"%j":try{return JSON.stringify(n[s++])}catch(c){return"[Circular]"}break;default:return l}});return a}return e}function NB(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function pn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||NB(t)&&typeof e=="string"&&!e)}function IB(e,t,n){var r=[],s=0,o=e.length;function a(l){r.push.apply(r,l||[]),s++,s===o&&n(r)}e.forEach(function(l){t(l,a)})}function R6(e,t,n){var r=0,s=e.length;function o(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l<s?t(e[l],o):n([])}o([])}function RB(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var D6=function(e){xB(t,e);function t(n,r){var s;return s=e.call(this,"Async Validation Error")||this,s.errors=n,s.fields=r,s}return t}(Lm(Error));function DB(e,t,n,r,s){if(t.first){var o=new Promise(function(h,g){var b=function(w){return r(w),w.length?g(new D6(w,km(w))):h(s)},y=RB(e);R6(y,n,b)});return o.catch(function(h){return h}),o}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],l=Object.keys(e),c=l.length,u=0,d=[],f=new Promise(function(h,g){var b=function(_){if(d.push.apply(d,_),u++,u===c)return r(d),d.length?g(new D6(d,km(d))):h(s)};l.length||(r(d),h(s)),l.forEach(function(y){var _=e[y];a.indexOf(y)!==-1?R6(_,n,b):IB(_,n,b)})});return f.catch(function(h){return h}),f}function LB(e){return!!(e&&e.message!==void 0)}function kB(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function L6(e,t){return function(n){var r;return e.fullFields?r=kB(t,e.fullFields):r=t[n.field||e.fullField],LB(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function k6(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=Bo({},e[n],r):e[n]=r}}return e}var M6=function(t,n,r,s,o,a){t.required&&(!r.hasOwnProperty(t.field)||pn(n,a||t.type))&&s.push(ui(o.messages.required,t.fullField))},MB=function(t,n,r,s,o){(/^\s+$/.test(n)||n==="")&&s.push(ui(o.messages.whitespace,t.fullField))},of,FB=function(){if(of)return of;var e="[a-fA-F\\d:]",t=function(S){return S&&S.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",s=(`
|
|
21
|
-
(?:
|
|
22
|
-
(?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
|
23
|
-
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
|
24
|
-
(?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
|
|
25
|
-
(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
|
|
26
|
-
(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
|
|
27
|
-
(?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
|
|
28
|
-
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
|
29
|
-
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
|
30
|
-
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
|
31
|
-
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+n+"$)|(?:^"+s+"$)"),a=new RegExp("^"+n+"$"),l=new RegExp("^"+s+"$"),c=function(S){return S&&S.exact?o:new RegExp("(?:"+t(S)+n+t(S)+")|(?:"+t(S)+s+t(S)+")","g")};c.v4=function(C){return C&&C.exact?a:new RegExp(""+t(C)+n+t(C),"g")},c.v6=function(C){return C&&C.exact?l:new RegExp(""+t(C)+s+t(C),"g")};var u="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",f=c.v4().source,h=c.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",b="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",y="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",_="(?::\\d{2,5})?",w='(?:[/?#][^\\s"]*)?',x="(?:"+u+"|www\\.)"+d+"(?:localhost|"+f+"|"+h+"|"+g+b+y+")"+_+w;return of=new RegExp("(?:^"+x+"$)","i"),of},F6={email:/^(([^<>()\[\]\\.,;:\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},jc={integer:function(t){return jc.number(t)&&parseInt(t,10)===t},float:function(t){return jc.number(t)&&!jc.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(n){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"&&!jc.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(F6.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(FB())},hex:function(t){return typeof t=="string"&&!!t.match(F6.hex)}},BB=function(t,n,r,s,o){if(t.required&&n===void 0){M6(t,n,r,s,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?jc[l](n)||s.push(ui(o.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&s.push(ui(o.messages.types[l],t.fullField,t.type))},jB=function(t,n,r,s,o){var a=typeof t.len=="number",l=typeof t.min=="number",c=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,h=typeof n=="number",g=typeof n=="string",b=Array.isArray(n);if(h?f="number":g?f="string":b&&(f="array"),!f)return!1;b&&(d=n.length),g&&(d=n.replace(u,"_").length),a?d!==t.len&&s.push(ui(o.messages[f].len,t.fullField,t.len)):l&&!c&&d<t.min?s.push(ui(o.messages[f].min,t.fullField,t.min)):c&&!l&&d>t.max?s.push(ui(o.messages[f].max,t.fullField,t.max)):l&&c&&(d<t.min||d>t.max)&&s.push(ui(o.messages[f].range,t.fullField,t.min,t.max))},Ga="enum",UB=function(t,n,r,s,o){t[Ga]=Array.isArray(t[Ga])?t[Ga]:[],t[Ga].indexOf(n)===-1&&s.push(ui(o.messages[Ga],t.fullField,t[Ga].join(", ")))},$B=function(t,n,r,s,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||s.push(ui(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||s.push(ui(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},At={required:M6,whitespace:MB,type:BB,range:jB,enum:UB,pattern:$B},VB=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(pn(n,"string")&&!t.required)return r();At.required(t,n,s,a,o,"string"),pn(n,"string")||(At.type(t,n,s,a,o),At.range(t,n,s,a,o),At.pattern(t,n,s,a,o),t.whitespace===!0&&At.whitespace(t,n,s,a,o))}r(a)},zB=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(pn(n)&&!t.required)return r();At.required(t,n,s,a,o),n!==void 0&&At.type(t,n,s,a,o)}r(a)},qB=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),pn(n)&&!t.required)return r();At.required(t,n,s,a,o),n!==void 0&&(At.type(t,n,s,a,o),At.range(t,n,s,a,o))}r(a)},HB=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(pn(n)&&!t.required)return r();At.required(t,n,s,a,o),n!==void 0&&At.type(t,n,s,a,o)}r(a)},GB=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(pn(n)&&!t.required)return r();At.required(t,n,s,a,o),pn(n)||At.type(t,n,s,a,o)}r(a)},WB=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(pn(n)&&!t.required)return r();At.required(t,n,s,a,o),n!==void 0&&(At.type(t,n,s,a,o),At.range(t,n,s,a,o))}r(a)},KB=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(pn(n)&&!t.required)return r();At.required(t,n,s,a,o),n!==void 0&&(At.type(t,n,s,a,o),At.range(t,n,s,a,o))}r(a)},JB=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();At.required(t,n,s,a,o,"array"),n!=null&&(At.type(t,n,s,a,o),At.range(t,n,s,a,o))}r(a)},YB=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(pn(n)&&!t.required)return r();At.required(t,n,s,a,o),n!==void 0&&At.type(t,n,s,a,o)}r(a)},XB="enum",ZB=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(pn(n)&&!t.required)return r();At.required(t,n,s,a,o),n!==void 0&&At[XB](t,n,s,a,o)}r(a)},QB=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(pn(n,"string")&&!t.required)return r();At.required(t,n,s,a,o),pn(n,"string")||At.pattern(t,n,s,a,o)}r(a)},ej=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(pn(n,"date")&&!t.required)return r();if(At.required(t,n,s,a,o),!pn(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),At.type(t,c,s,a,o),c&&At.range(t,c.getTime(),s,a,o)}}r(a)},tj=function(t,n,r,s,o){var a=[],l=Array.isArray(n)?"array":typeof n;At.required(t,n,s,a,o,l),r(a)},Mm=function(t,n,r,s,o){var a=t.type,l=[],c=t.required||!t.required&&s.hasOwnProperty(t.field);if(c){if(pn(n,a)&&!t.required)return r();At.required(t,n,s,l,o,a),pn(n,a)||At.type(t,n,s,l,o)}r(l)},nj=function(t,n,r,s,o){var a=[],l=t.required||!t.required&&s.hasOwnProperty(t.field);if(l){if(pn(n)&&!t.required)return r();At.required(t,n,s,a,o)}r(a)},Uc={string:VB,method:zB,number:qB,boolean:HB,regexp:GB,integer:WB,float:KB,array:JB,object:YB,enum:ZB,pattern:QB,date:ej,url:Mm,hex:Mm,email:Mm,required:tj,any:nj};function Fm(){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 Bm=Fm(),$c=function(){function e(n){this.rules=null,this._messages=Bm,this.define(n)}var t=e.prototype;return t.define=function(r){var s=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var a=r[o];s.rules[o]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=k6(Fm(),r)),this._messages},t.validate=function(r,s,o){var a=this;s===void 0&&(s={}),o===void 0&&(o=function(){});var l=r,c=s,u=o;if(typeof c=="function"&&(u=c,c={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,l),Promise.resolve(l);function d(y){var _=[],w={};function x(S){if(Array.isArray(S)){var A;_=(A=_).concat.apply(A,S)}else _.push(S)}for(var C=0;C<y.length;C++)x(y[C]);_.length?(w=km(_),u(_,w)):u(null,l)}if(c.messages){var f=this.messages();f===Bm&&(f=Fm()),k6(f,c.messages),c.messages=f}else c.messages=this.messages();var h={},g=c.keys||Object.keys(this.rules);g.forEach(function(y){var _=a.rules[y],w=l[y];_.forEach(function(x){var C=x;typeof C.transform=="function"&&(l===r&&(l=Bo({},l)),w=l[y]=C.transform(w)),typeof C=="function"?C={validator:C}:C=Bo({},C),C.validator=a.getValidationMethod(C),C.validator&&(C.field=y,C.fullField=C.fullField||y,C.type=a.getType(C),h[y]=h[y]||[],h[y].push({rule:C,value:w,source:l,field:y}))})});var b={};return DB(h,c,function(y,_){var w=y.rule,x=(w.type==="object"||w.type==="array")&&(typeof w.fields=="object"||typeof w.defaultField=="object");x=x&&(w.required||!w.required&&y.value),w.field=y.field;function C(O,R){return Bo({},R,{fullField:w.fullField+"."+O,fullFields:w.fullFields?[].concat(w.fullFields,[O]):[O]})}function S(O){O===void 0&&(O=[]);var R=Array.isArray(O)?O:[O];!c.suppressWarning&&R.length&&e.warning("async-validator:",R),R.length&&w.message!==void 0&&(R=[].concat(w.message));var N=R.map(L6(w,l));if(c.first&&N.length)return b[w.field]=1,_(N);if(!x)_(N);else{if(w.required&&!y.value)return w.message!==void 0?N=[].concat(w.message).map(L6(w,l)):c.error&&(N=[c.error(w,ui(c.messages.required,w.field))]),_(N);var k={};w.defaultField&&Object.keys(y.value).map(function(G){k[G]=w.defaultField}),k=Bo({},k,y.rule.fields);var L={};Object.keys(k).forEach(function(G){var V=k[G],ae=Array.isArray(V)?V:[V];L[G]=ae.map(C.bind(null,G))});var F=new e(L);F.messages(c.messages),y.rule.options&&(y.rule.options.messages=c.messages,y.rule.options.error=c.error),F.validate(y.value,y.rule.options||c,function(G){var V=[];N&&N.length&&V.push.apply(V,N),G&&G.length&&V.push.apply(V,G),_(V.length?V:null)})}}var A;if(w.asyncValidator)A=w.asyncValidator(w,y.value,S,y.source,c);else if(w.validator){try{A=w.validator(w,y.value,S,y.source,c)}catch(O){console.error==null||console.error(O),c.suppressValidatorError||setTimeout(function(){throw O},0),S(O.message)}A===!0?S():A===!1?S(typeof w.message=="function"?w.message(w.fullField||w.field):w.message||(w.fullField||w.field)+" fails"):A instanceof Array?S(A):A instanceof Error&&S(A.message)}A&&A.then&&A.then(function(){return S()},function(O){return S(O)})},function(y){d(y)},l)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Uc.hasOwnProperty(r.type))throw new Error(ui("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var s=Object.keys(r),o=s.indexOf("message");return o!==-1&&s.splice(o,1),s.length===1&&s[0]==="required"?Uc.required:Uc[this.getType(r)]||void 0},e}();$c.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Uc[t]=n},$c.warning=OB,$c.messages=Bm,$c.validators=Uc;const ij=["","error","validating","success"],rj=ht({label:String,labelWidth:{type:[String,Number],default:""},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:Fe([String,Array])},required:{type:Boolean,default:void 0},rules:{type:Fe([Object,Array])},error:String,validateStatus:{type:String,values:ij},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:Pc}}),B6="ElLabelWrap";var sj=Te({name:B6,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=Qe(Ha,void 0),r=Qe(Mo);r||No(B6,"usage: <el-form-item><label-wrap /></el-form-item>");const s=nt("form"),o=ne(),a=ne(0),l=()=>{var d;if((d=o.value)!=null&&d.firstElementChild){const f=window.getComputedStyle(o.value.firstElementChild).width;return Math.ceil(Number.parseFloat(f))}else return 0},c=(d="update")=>{pt(()=>{t.default&&e.isAutoWidth&&(d==="update"?a.value=l():d==="remove"&&(n==null||n.deregisterLabelWidth(a.value)))})},u=()=>c("update");return Lt(()=>{u()}),fn(()=>{c("remove")}),nc(()=>u()),ze(a,(d,f)=>{e.updateAll&&(n==null||n.registerLabelWidth(d,f))}),ci(W(()=>{var d,f;return(f=(d=o.value)==null?void 0:d.firstElementChild)!=null?f:null}),u),()=>{var d,f;if(!t)return null;const{isAutoWidth:h}=e;if(h){const g=n==null?void 0:n.autoLabelWidth,b=r==null?void 0:r.hasLabel,y={};if(b&&g&&g!=="auto"){const _=Math.max(0,Number.parseInt(g,10)-a.value),x=(r.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";_&&(y[x]=`${_}px`)}return te("div",{ref:o,class:[s.be("item","label-wrap")],style:y},[(d=t.default)==null?void 0:d.call(t)])}else return te(qe,{ref:o},[(f=t.default)==null?void 0:f.call(t)])}}});const oj=Te(Be(we({},Te({name:"ElFormItem"})),{props:rj,setup(e,{expose:t}){const n=e,r=xa(),s=Qe(Ha,void 0),o=Qe(Mo,void 0),a=xr(void 0,{formItem:!1}),l=nt("form-item"),c=Sr().value,u=ne([]),d=ne(""),f=jO(d,100),h=ne(""),g=ne();let b,y=!1;const _=W(()=>n.labelPosition||(s==null?void 0:s.labelPosition)),w=W(()=>{if(_.value==="top")return{};const Z=Qi(n.labelWidth||(s==null?void 0:s.labelWidth)||"");return Z?{width:Z}:{}}),x=W(()=>{if(_.value==="top"||s!=null&&s.inline)return{};if(!n.label&&!n.labelWidth&&L)return{};const Z=Qi(n.labelWidth||(s==null?void 0:s.labelWidth)||"");return!n.label&&!r.label?{marginLeft:Z}:{}}),C=W(()=>[l.b(),l.m(a.value),l.is("error",d.value==="error"),l.is("validating",d.value==="validating"),l.is("success",d.value==="success"),l.is("required",ce.value||n.required),l.is("no-asterisk",s==null?void 0:s.hideRequiredAsterisk),(s==null?void 0:s.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[l.m("feedback")]:s==null?void 0:s.statusIcon,[l.m(`label-${_.value}`)]:_.value}]),S=W(()=>ti(n.inlineMessage)?n.inlineMessage:(s==null?void 0:s.inlineMessage)||!1),A=W(()=>[l.e("error"),{[l.em("error","inline")]:S.value}]),O=W(()=>n.prop?st(n.prop)?n.prop:n.prop.join("."):""),R=W(()=>!!(n.label||r.label)),N=W(()=>n.for||(u.value.length===1?u.value[0]:void 0)),k=W(()=>!N.value&&R.value),L=!!o,F=W(()=>{const Z=s==null?void 0:s.model;if(!(!Z||!n.prop))return qd(Z,n.prop).value}),G=W(()=>{const{required:Z}=n,ve=[];n.rules&&ve.push(...Yi(n.rules));const Oe=s==null?void 0:s.rules;if(Oe&&n.prop){const Le=qd(Oe,n.prop).value;Le&&ve.push(...Yi(Le))}if(Z!==void 0){const Le=ve.map((Ke,j)=>[Ke,j]).filter(([Ke])=>Object.keys(Ke).includes("required"));if(Le.length>0)for(const[Ke,j]of Le)Ke.required!==Z&&(ve[j]=Be(we({},Ke),{required:Z}));else ve.push({required:Z})}return ve}),V=W(()=>G.value.length>0),ae=Z=>G.value.filter(Oe=>!Oe.trigger||!Z?!0:Array.isArray(Oe.trigger)?Oe.trigger.includes(Z):Oe.trigger===Z).map(Ke=>{var j=Ke,{trigger:Oe}=j,Le=Es(j,["trigger"]);return Le}),ce=W(()=>G.value.some(Z=>Z.required)),U=W(()=>{var Z;return f.value==="error"&&n.showMessage&&((Z=s==null?void 0:s.showMessage)!=null?Z:!0)}),J=W(()=>`${n.label||""}${(s==null?void 0:s.labelSuffix)||""}`),Q=Z=>{d.value=Z},X=Z=>{var ve,Oe;const{errors:Le,fields:Ke}=Z;(!Le||!Ke)&&console.error(Z),Q("error"),h.value=Le?(Oe=(ve=Le==null?void 0:Le[0])==null?void 0:ve.message)!=null?Oe:`${n.prop} is required`:"",s==null||s.emit("validate",n.prop,!1,h.value)},B=()=>{Q("success"),s==null||s.emit("validate",n.prop,!0,"")},_e=Z=>at(this,null,function*(){const ve=O.value;return new $c({[ve]:Z}).validate({[ve]:F.value},{firstFields:!0}).then(()=>(B(),!0)).catch(Le=>(X(Le),Promise.reject(Le)))}),he=(Z,ve)=>at(this,null,function*(){if(y||!n.prop)return!1;const Oe=Ve(ve);if(!V.value)return ve==null||ve(!1),!1;const Le=ae(Z);return Le.length===0?(ve==null||ve(!0),!0):(Q("validating"),_e(Le).then(()=>(ve==null||ve(!0),!0)).catch(Ke=>{const{fields:j}=Ke;return ve==null||ve(!1,j),Oe?!1:Promise.reject(j)}))}),ie=()=>{Q(""),h.value="",y=!1},oe=()=>at(this,null,function*(){const Z=s==null?void 0:s.model;if(!Z||!n.prop)return;const ve=qd(Z,n.prop);y=!0,ve.value=b3(b),yield pt(),ie(),y=!1}),Ce=Z=>{u.value.includes(Z)||u.value.push(Z)},me=Z=>{u.value=u.value.filter(ve=>ve!==Z)};ze(()=>n.error,Z=>{h.value=Z||"",Q(Z?"error":"")},{immediate:!0}),ze(()=>n.validateStatus,Z=>Q(Z||""));const q=Dn(Be(we({},pr(n)),{$el:g,size:a,validateState:d,labelId:c,inputIds:u,isGroup:k,hasLabel:R,fieldValue:F,addInputId:Ce,removeInputId:me,resetField:oe,clearValidate:ie,validate:he}));return an(Mo,q),Lt(()=>{n.prop&&(s==null||s.addField(q),b=b3(F.value))}),fn(()=>{s==null||s.removeField(q)}),t({size:a,validateMessage:h,validateState:d,validate:he,clearValidate:ie,resetField:oe}),(Z,ve)=>{var Oe;return I(),z("div",{ref_key:"formItemRef",ref:g,class:Y(P(C)),role:P(k)?"group":void 0,"aria-labelledby":P(k)?P(c):void 0},[te(P(sj),{"is-auto-width":P(w).width==="auto","update-all":((Oe=P(s))==null?void 0:Oe.labelWidth)==="auto"},{default:ee(()=>[P(R)?(I(),Ee(Zt(P(N)?"label":"div"),{key:0,id:P(c),for:P(N),class:Y(P(l).e("label")),style:Ze(P(w))},{default:ee(()=>[Re(Z.$slots,"label",{label:P(J)},()=>[Je(Ie(P(J)),1)])]),_:3},8,["id","for","class","style"])):re("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),H("div",{class:Y(P(l).e("content")),style:Ze(P(x))},[Re(Z.$slots,"default"),te(rw,{name:`${P(l).namespace.value}-zoom-in-top`},{default:ee(()=>[P(U)?Re(Z.$slots,"error",{key:0,error:h.value},()=>[H("div",{class:Y(P(A))},Ie(h.value),3)]):re("v-if",!0)]),_:3},8,["name"])],6)],10,["role","aria-labelledby"])}}}));var j6=ft(oj,[["__file","form-item.vue"]]);const jm=hn(EB,{FormItem:j6}),Um=is(j6);let tr;const aj=`
|
|
32
|
-
height:0 !important;
|
|
33
|
-
visibility:hidden !important;
|
|
34
|
-
${tN()?"":"overflow:hidden !important;"}
|
|
35
|
-
position:absolute !important;
|
|
36
|
-
z-index:-1000 !important;
|
|
37
|
-
top:0 !important;
|
|
38
|
-
right:0 !important;
|
|
39
|
-
`,lj=["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 cj(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),s=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:lj.map(a=>`${a}:${t.getPropertyValue(a)}`).join(";"),paddingSize:r,borderSize:s,boxSizing:n}}function U6(e,t=1,n){var r;tr||(tr=document.createElement("textarea"),document.body.appendChild(tr));const{paddingSize:s,borderSize:o,boxSizing:a,contextStyle:l}=cj(e);tr.setAttribute("style",`${l};${aj}`),tr.value=e.value||e.placeholder||"";let c=tr.scrollHeight;const u={};a==="border-box"?c=c+o:a==="content-box"&&(c=c-s),tr.value="";const d=tr.scrollHeight-s;if(Qt(t)){let f=d*t;a==="border-box"&&(f=f+s+o),c=Math.max(f,c),u.minHeight=`${f}px`}if(Qt(n)){let f=d*n;a==="border-box"&&(f=f+s+o),c=Math.min(f,c)}return u.height=`${c}px`,(r=tr.parentNode)==null||r.removeChild(tr),tr=void 0,u}const uj=ht(we({id:{type:String,default:void 0},size:Ms,disabled:Boolean,modelValue:{type:Fe([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Fe([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:ns},prefixIcon:{type:ns},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Fe([Object,Array,String]),default:()=>Tc({})},autofocus:Boolean,rows:{type:Number,default:2}},Fs(["ariaLabel"]))),dj={[Cn]:e=>st(e),input:e=>st(e),change:e=>st(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},fj=Te(Be(we({},Te({name:"ElInput",inheritAttrs:!1})),{props:uj,emits:dj,setup(e,{expose:t,emit:n}){const r=e,s=oT(),o=xa(),a=W(()=>{const le={};return r.containerRole==="combobox"&&(le["aria-haspopup"]=s["aria-haspopup"],le["aria-owns"]=s["aria-owns"],le["aria-expanded"]=s["aria-expanded"]),le}),l=W(()=>[r.type==="textarea"?_.b():y.b(),y.m(g.value),y.is("disabled",b.value),y.is("exceed",ie.value),{[y.b("group")]:o.prepend||o.append,[y.m("prefix")]:o.prefix||r.prefixIcon,[y.m("suffix")]:o.suffix||r.suffixIcon||r.clearable||r.showPassword,[y.bm("suffix","password-clear")]:X.value&&B.value,[y.b("hidden")]:r.type==="hidden"},s.class]),c=W(()=>[y.e("wrapper"),y.is("focus",k.value)]),u=$M({excludeKeys:W(()=>Object.keys(a.value))}),{form:d,formItem:f}=Fo(),{inputId:h}=Fc(r,{formItemContext:f}),g=xr(),b=ss(),y=nt("input"),_=nt("textarea"),w=yn(),x=yn(),C=ne(!1),S=ne(!1),A=ne(),O=yn(r.inputStyle),R=W(()=>w.value||x.value),{wrapperRef:N,isFocused:k,handleFocus:L,handleBlur:F}=T6(R,{beforeFocus(){return b.value},afterBlur(){var le;r.validateEvent&&((le=f==null?void 0:f.validate)==null||le.call(f,"blur").catch(ke=>void 0))}}),G=W(()=>{var le;return(le=d==null?void 0:d.statusIcon)!=null?le:!1}),V=W(()=>(f==null?void 0:f.validateState)||""),ae=W(()=>V.value&&V3[V.value]),ce=W(()=>S.value?TM:_M),U=W(()=>[s.style]),J=W(()=>[r.inputStyle,O.value,{resize:r.resize}]),Q=W(()=>Oo(r.modelValue)?"":String(r.modelValue)),X=W(()=>r.clearable&&!b.value&&!r.readonly&&!!Q.value&&(k.value||C.value)),B=W(()=>r.showPassword&&!b.value&&!r.readonly&&!!Q.value&&(!!Q.value||k.value)),_e=W(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!b.value&&!r.readonly&&!r.showPassword),he=W(()=>Q.value.length),ie=W(()=>!!_e.value&&he.value>Number(r.maxlength)),oe=W(()=>!!o.suffix||!!r.suffixIcon||X.value||r.showPassword||_e.value||!!V.value&&G.value),[Ce,me]=aB(w);ci(x,le=>{if(ve(),!_e.value||r.resize!=="both")return;const ke=le[0],{width:Ye}=ke.contentRect;A.value={right:`calc(100% - ${Ye+15+6}px)`}});const q=()=>{const{type:le,autosize:ke}=r;if(!(!Dt||le!=="textarea"||!x.value))if(ke){const Ye=ct(ke)?ke.minRows:void 0,Ct=ct(ke)?ke.maxRows:void 0,mt=U6(x.value,Ye,Ct);O.value=we({overflowY:"hidden"},mt),pt(()=>{x.value.offsetHeight,O.value=mt})}else O.value={minHeight:U6(x.value).minHeight}},ve=(le=>{let ke=!1;return()=>{var Ye;if(ke||!r.autosize)return;((Ye=x.value)==null?void 0:Ye.offsetParent)===null||(le(),ke=!0)}})(q),Oe=()=>{const le=R.value,ke=r.formatter?r.formatter(Q.value):Q.value;!le||le.value===ke||(le.value=ke)},Le=le=>at(this,null,function*(){Ce();let{value:ke}=le.target;if(r.formatter&&(ke=r.parser?r.parser(ke):ke),!j.value){if(ke===Q.value){Oe();return}n(Cn,ke),n("input",ke),yield pt(),Oe(),me()}}),Ke=le=>{n("change",le.target.value)},{isComposing:j,handleCompositionStart:K,handleCompositionUpdate:se,handleCompositionEnd:Ae}=O6({emit:n,afterComposition:Le}),de=()=>{S.value=!S.value,fe()},fe=()=>at(this,null,function*(){var le;yield pt(),(le=R.value)==null||le.focus()}),Se=()=>{var le;return(le=R.value)==null?void 0:le.blur()},Pe=le=>{C.value=!1,n("mouseleave",le)},Ne=le=>{C.value=!0,n("mouseenter",le)},be=le=>{n("keydown",le)},$e=()=>{var le;(le=R.value)==null||le.select()},pe=()=>{n(Cn,""),n("change",""),n("clear"),n("input","")};return ze(()=>r.modelValue,()=>{var le;pt(()=>q()),r.validateEvent&&((le=f==null?void 0:f.validate)==null||le.call(f,"change").catch(ke=>void 0))}),ze(Q,()=>Oe()),ze(()=>r.type,()=>at(this,null,function*(){yield pt(),Oe(),q()})),Lt(()=>{!r.formatter&&r.parser,Oe(),pt(q)}),t({input:w,textarea:x,ref:R,textareaStyle:J,autosize:wi(r,"autosize"),isComposing:j,focus:fe,blur:Se,select:$e,clear:pe,resizeTextarea:q}),(le,ke)=>(I(),z("div",An(P(a),{class:[P(l),{[P(y).bm("group","append")]:le.$slots.append,[P(y).bm("group","prepend")]:le.$slots.prepend}],style:P(U),role:le.containerRole,onMouseenter:Ne,onMouseleave:Pe}),[re(" input "),le.type!=="textarea"?(I(),z(qe,{key:0},[re(" prepend slot "),le.$slots.prepend?(I(),z("div",{key:0,class:Y(P(y).be("group","prepend"))},[Re(le.$slots,"prepend")],2)):re("v-if",!0),H("div",{ref_key:"wrapperRef",ref:N,class:Y(P(c))},[re(" prefix slot "),le.$slots.prefix||le.prefixIcon?(I(),z("span",{key:0,class:Y(P(y).e("prefix"))},[H("span",{class:Y(P(y).e("prefix-inner"))},[Re(le.$slots,"prefix"),le.prefixIcon?(I(),Ee(P(Ft),{key:0,class:Y(P(y).e("icon"))},{default:ee(()=>[(I(),Ee(Zt(le.prefixIcon)))]),_:1},8,["class"])):re("v-if",!0)],2)],2)):re("v-if",!0),H("input",An({id:P(h),ref_key:"input",ref:w,class:P(y).e("inner")},P(u),{minlength:le.minlength,maxlength:le.maxlength,type:le.showPassword?S.value?"text":"password":le.type,disabled:P(b),readonly:le.readonly,autocomplete:le.autocomplete,tabindex:le.tabindex,"aria-label":le.ariaLabel,placeholder:le.placeholder,style:le.inputStyle,form:le.form,autofocus:le.autofocus,onCompositionstart:P(K),onCompositionupdate:P(se),onCompositionend:P(Ae),onInput:Le,onChange:Ke,onKeydown:be}),null,16,["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","onCompositionstart","onCompositionupdate","onCompositionend"]),re(" suffix slot "),P(oe)?(I(),z("span",{key:1,class:Y(P(y).e("suffix"))},[H("span",{class:Y(P(y).e("suffix-inner"))},[!P(X)||!P(B)||!P(_e)?(I(),z(qe,{key:0},[Re(le.$slots,"suffix"),le.suffixIcon?(I(),Ee(P(Ft),{key:0,class:Y(P(y).e("icon"))},{default:ee(()=>[(I(),Ee(Zt(le.suffixIcon)))]),_:1},8,["class"])):re("v-if",!0)],64)):re("v-if",!0),P(X)?(I(),Ee(P(Ft),{key:1,class:Y([P(y).e("icon"),P(y).e("clear")]),onMousedown:gt(P(_t),["prevent"]),onClick:pe},{default:ee(()=>[te(P(Gd))]),_:1},8,["class","onMousedown"])):re("v-if",!0),P(B)?(I(),Ee(P(Ft),{key:2,class:Y([P(y).e("icon"),P(y).e("password")]),onClick:de},{default:ee(()=>[(I(),Ee(Zt(P(ce))))]),_:1},8,["class"])):re("v-if",!0),P(_e)?(I(),z("span",{key:3,class:Y(P(y).e("count"))},[H("span",{class:Y(P(y).e("count-inner"))},Ie(P(he))+" / "+Ie(le.maxlength),3)],2)):re("v-if",!0),P(V)&&P(ae)&&P(G)?(I(),Ee(P(Ft),{key:4,class:Y([P(y).e("icon"),P(y).e("validateIcon"),P(y).is("loading",P(V)==="validating")])},{default:ee(()=>[(I(),Ee(Zt(P(ae))))]),_:1},8,["class"])):re("v-if",!0)],2)],2)):re("v-if",!0)],2),re(" append slot "),le.$slots.append?(I(),z("div",{key:1,class:Y(P(y).be("group","append"))},[Re(le.$slots,"append")],2)):re("v-if",!0)],64)):(I(),z(qe,{key:1},[re(" textarea "),H("textarea",An({id:P(h),ref_key:"textarea",ref:x,class:[P(_).e("inner"),P(y).is("focus",P(k))]},P(u),{minlength:le.minlength,maxlength:le.maxlength,tabindex:le.tabindex,disabled:P(b),readonly:le.readonly,autocomplete:le.autocomplete,style:P(J),"aria-label":le.ariaLabel,placeholder:le.placeholder,form:le.form,autofocus:le.autofocus,rows:le.rows,onCompositionstart:P(K),onCompositionupdate:P(se),onCompositionend:P(Ae),onInput:Le,onFocus:P(L),onBlur:P(F),onChange:Ke,onKeydown:be}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),P(_e)?(I(),z("span",{key:0,style:Ze(A.value),class:Y(P(y).e("count"))},Ie(P(he))+" / "+Ie(le.maxlength),7)):re("v-if",!0)],64))],16,["role"]))}}));var hj=ft(fj,[["__file","input.vue"]]);const jo=hn(hj),Wa=4,pj={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"}},gj=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),$m=Symbol("scrollbarContextKey"),mj=ht({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),vj="Thumb";var $6=ft(Te({__name:"thumb",props:mj,setup(e){const t=e,n=Qe($m),r=nt("scrollbar");n||No(vj,"can not inject scrollbar context");const s=ne(),o=ne(),a=ne({}),l=ne(!1);let c=!1,u=!1,d=Dt?document.onselectstart:null;const f=W(()=>pj[t.vertical?"vertical":"horizontal"]),h=W(()=>gj({size:t.size,move:t.move,bar:f.value})),g=W(()=>Hp(s.value[f.value.offset],2)/n.wrapElement[f.value.scrollSize]/t.ratio/o.value[f.value.offset]),b=O=>{var R;if(O.stopPropagation(),O.ctrlKey||[1,2].includes(O.button))return;(R=window.getSelection())==null||R.removeAllRanges(),_(O);const N=O.currentTarget;N&&(a.value[f.value.axis]=N[f.value.offset]-(O[f.value.client]-N.getBoundingClientRect()[f.value.direction]))},y=O=>{if(!o.value||!s.value||!n.wrapElement)return;const R=Math.abs(O.target.getBoundingClientRect()[f.value.direction]-O[f.value.client]),N=o.value[f.value.offset]/2,k=(R-N)*100*g.value/s.value[f.value.offset];n.wrapElement[f.value.scroll]=k*n.wrapElement[f.value.scrollSize]/100},_=O=>{O.stopImmediatePropagation(),c=!0,document.addEventListener("mousemove",w),document.addEventListener("mouseup",x),d=document.onselectstart,document.onselectstart=()=>!1},w=O=>{if(!s.value||!o.value||c===!1)return;const R=a.value[f.value.axis];if(!R)return;const N=(s.value.getBoundingClientRect()[f.value.direction]-O[f.value.client])*-1,k=o.value[f.value.offset]-R,L=(N-k)*100*g.value/s.value[f.value.offset];n.wrapElement[f.value.scroll]=L*n.wrapElement[f.value.scrollSize]/100},x=()=>{c=!1,a.value[f.value.axis]=0,document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",x),A(),u&&(l.value=!1)},C=()=>{u=!1,l.value=!!t.size},S=()=>{u=!0,l.value=c};fn(()=>{A(),document.removeEventListener("mouseup",x)});const A=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return Si(wi(n,"scrollbarElement"),"mousemove",C),Si(wi(n,"scrollbarElement"),"mouseleave",S),(O,R)=>(I(),Ee(Rs,{name:P(r).b("fade"),persisted:""},{default:ee(()=>[It(H("div",{ref_key:"instance",ref:s,class:Y([P(r).e("bar"),P(r).is(P(f).key)]),onMousedown:y},[H("div",{ref_key:"thumb",ref:o,class:Y(P(r).e("thumb")),style:Ze(P(h)),onMousedown:b},null,38)],34),[[wn,O.always||l.value]])]),_:1},8,["name"]))}}),[["__file","thumb.vue"]]);const bj=ht({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}});var yj=ft(Te({__name:"bar",props:bj,setup(e,{expose:t}){const n=e,r=Qe($m),s=ne(0),o=ne(0),a=ne(""),l=ne(""),c=ne(1),u=ne(1);return t({handleScroll:h=>{if(h){const g=h.offsetHeight-Wa,b=h.offsetWidth-Wa;o.value=h.scrollTop*100/g*c.value,s.value=h.scrollLeft*100/b*u.value}},update:()=>{const h=r==null?void 0:r.wrapElement;if(!h)return;const g=h.offsetHeight-Wa,b=h.offsetWidth-Wa,y=Hp(g,2)/h.scrollHeight,_=Hp(b,2)/h.scrollWidth,w=Math.max(y,n.minSize),x=Math.max(_,n.minSize);c.value=y/(g-y)/(w/(g-w)),u.value=_/(b-_)/(x/(b-x)),l.value=w+Wa<g?`${w}px`:"",a.value=x+Wa<b?`${x}px`:""}}),(h,g)=>(I(),z(qe,null,[te($6,{move:s.value,ratio:u.value,size:a.value,always:h.always},null,8,["move","ratio","size","always"]),te($6,{move:o.value,ratio:c.value,size:l.value,vertical:"",always:h.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","bar.vue"]]);const _j=ht(we({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:Fe([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},tabindex:{type:[String,Number],default:void 0},id:String,role:String},Fs(["ariaLabel","ariaOrientation"]))),wj={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Qt)},Cj=Te(Be(we({},Te({name:"ElScrollbar"})),{props:_j,emits:wj,setup(e,{expose:t,emit:n}){const r=e,s=nt("scrollbar");let o,a,l=0,c=0;const u=ne(),d=ne(),f=ne(),h=ne(),g=W(()=>{const A={};return r.height&&(A.height=Qi(r.height)),r.maxHeight&&(A.maxHeight=Qi(r.maxHeight)),[r.wrapStyle,A]}),b=W(()=>[r.wrapClass,s.e("wrap"),{[s.em("wrap","hidden-default")]:!r.native}]),y=W(()=>[s.e("view"),r.viewClass]),_=()=>{var A;d.value&&((A=h.value)==null||A.handleScroll(d.value),l=d.value.scrollTop,c=d.value.scrollLeft,n("scroll",{scrollTop:d.value.scrollTop,scrollLeft:d.value.scrollLeft}))};function w(A,O){ct(A)?d.value.scrollTo(A):Qt(A)&&Qt(O)&&d.value.scrollTo(A,O)}const x=A=>{Qt(A)&&(d.value.scrollTop=A)},C=A=>{Qt(A)&&(d.value.scrollLeft=A)},S=()=>{var A;(A=h.value)==null||A.update()};return ze(()=>r.noresize,A=>{A?(o==null||o(),a==null||a()):({stop:o}=ci(f,S),a=Si("resize",S))},{immediate:!0}),ze(()=>[r.maxHeight,r.height],()=>{r.native||pt(()=>{var A;S(),d.value&&((A=h.value)==null||A.handleScroll(d.value))})}),an($m,Dn({scrollbarElement:u,wrapElement:d})),H_(()=>{d.value.scrollTop=l,d.value.scrollLeft=c}),Lt(()=>{r.native||pt(()=>{S()})}),nc(()=>S()),t({wrapRef:d,update:S,scrollTo:w,setScrollTop:x,setScrollLeft:C,handleScroll:_}),(A,O)=>(I(),z("div",{ref_key:"scrollbarRef",ref:u,class:Y(P(s).b())},[H("div",{ref_key:"wrapRef",ref:d,class:Y(P(b)),style:Ze(P(g)),tabindex:A.tabindex,onScroll:_},[(I(),Ee(Zt(A.tag),{id:A.id,ref_key:"resizeRef",ref:f,class:Y(P(y)),style:Ze(A.viewStyle),role:A.role,"aria-label":A.ariaLabel,"aria-orientation":A.ariaOrientation},{default:ee(()=>[Re(A.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),A.native?re("v-if",!0):(I(),Ee(yj,{key:0,ref_key:"barRef",ref:h,always:A.always,"min-size":A.minSize},null,8,["always","min-size"]))],2))}}));var Sj=ft(Cj,[["__file","scrollbar.vue"]]);const Vm=hn(Sj),zm=Symbol("popper"),V6=Symbol("popperContent"),z6=ht({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),Ej=Te(Be(we({},Te({name:"ElPopper",inheritAttrs:!1})),{props:z6,setup(e,{expose:t}){const n=e,r=ne(),s=ne(),o=ne(),a=ne(),l=W(()=>n.role),c={triggerRef:r,popperInstanceRef:s,contentRef:o,referenceRef:a,role:l};return t(c),an(zm,c),(u,d)=>Re(u.$slots,"default")}}));var xj=ft(Ej,[["__file","popper.vue"]]);const q6=ht({arrowOffset:{type:Number,default:5}}),Aj=Te(Be(we({},Te({name:"ElPopperArrow",inheritAttrs:!1})),{props:q6,setup(e,{expose:t}){const n=e,r=nt("popper"),{arrowOffset:s,arrowRef:o,arrowStyle:a}=Qe(V6,void 0);return ze(()=>n.arrowOffset,l=>{s.value=l}),fn(()=>{o.value=void 0}),t({arrowRef:o}),(l,c)=>(I(),z("span",{ref_key:"arrowRef",ref:o,class:Y(P(r).e("arrow")),style:Ze(P(a)),"data-popper-arrow":""},null,6))}}));var Pj=ft(Aj,[["__file","arrow.vue"]]);const Tj=Te({name:"ElOnlyChild",setup(e,{slots:t,attrs:n}){var r;const s=Qe(w6),o=oB((r=s==null?void 0:s.setForwardRef)!=null?r:_t);return()=>{var a;const l=(a=t.default)==null?void 0:a.call(t,n);if(!l||l.length>1)return null;const c=H6(l);return c?It(Kr(c,n),[[o]]):null}}});function H6(e){if(!e)return null;const t=e;for(const n of t){if(ct(n))switch(n.type){case xn:continue;case Pa:case"svg":return G6(n);case qe:return H6(n.children);default:return n}return G6(n)}return null}function G6(e){const t=nt("only-child");return te("span",{class:t.e("content")},[e])}const W6=ht({virtualRef:{type:Fe(Object)},virtualTriggering:Boolean,onMouseenter:{type:Fe(Function)},onMouseleave:{type:Fe(Function)},onClick:{type:Fe(Function)},onKeydown:{type:Fe(Function)},onFocus:{type:Fe(Function)},onBlur:{type:Fe(Function)},onContextmenu:{type:Fe(Function)},id:String,open:Boolean}),Oj=Te(Be(we({},Te({name:"ElPopperTrigger",inheritAttrs:!1})),{props:W6,setup(e,{expose:t}){const n=e,{role:r,triggerRef:s}=Qe(zm,void 0);sB(s);const o=W(()=>l.value?n.id:void 0),a=W(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),l=W(()=>{if(r&&r.value!=="tooltip")return r.value}),c=W(()=>l.value?`${n.open}`:void 0);let u;const d=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return Lt(()=>{ze(()=>n.virtualRef,f=>{f&&(s.value=Qr(f))},{immediate:!0}),ze(s,(f,h)=>{u==null||u(),u=void 0,yr(f)&&(d.forEach(g=>{var b;const y=n[g];y&&(f.addEventListener(g.slice(2).toLowerCase(),y),(b=h==null?void 0:h.removeEventListener)==null||b.call(h,g.slice(2).toLowerCase(),y))}),u=ze([o,a,l,c],g=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((b,y)=>{Oo(g[y])?f.removeAttribute(b):f.setAttribute(b,g[y])})},{immediate:!0})),yr(h)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(g=>h.removeAttribute(g))},{immediate:!0})}),fn(()=>{if(u==null||u(),u=void 0,s.value&&yr(s.value)){const f=s.value;d.forEach(h=>{const g=n[h];g&&f.removeEventListener(h.slice(2).toLowerCase(),g)}),s.value=void 0}}),t({triggerRef:s}),(f,h)=>f.virtualTriggering?re("v-if",!0):(I(),Ee(P(Tj),An({key:0},f.$attrs,{"aria-controls":P(o),"aria-describedby":P(a),"aria-expanded":P(c),"aria-haspopup":P(l)}),{default:ee(()=>[Re(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}}));var Nj=ft(Oj,[["__file","trigger.vue"]]);const qm="focus-trap.focus-after-trapped",Hm="focus-trap.focus-after-released",Ij="focus-trap.focusout-prevented",K6={cancelable:!0,bubbles:!1},Rj={cancelable:!0,bubbles:!1},J6="focusAfterTrapped",Y6="focusAfterReleased",X6=Symbol("elFocusTrap"),Gm=ne(),af=ne(0),Wm=ne(0);let lf=0;const Z6=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},Q6=(e,t)=>{for(const n of e)if(!Dj(n,t))return n},Dj=(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},Lj=e=>{const t=Z6(e),n=Q6(t,e),r=Q6(t.reverse(),e);return[n,r]},kj=e=>e instanceof HTMLInputElement&&"select"in e,Bs=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),Wm.value=window.performance.now(),e!==n&&kj(e)&&t&&e.select()}};function eC(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const Mj=()=>{let e=[];return{push:r=>{const s=e[0];s&&r!==s&&s.pause(),e=eC(e,r),e.unshift(r)},remove:r=>{var s,o;e=eC(e,r),(o=(s=e[0])==null?void 0:s.resume)==null||o.call(s)}}},Fj=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(Bs(r,t),document.activeElement!==n)return},tC=Mj(),Bj=()=>af.value>Wm.value,cf=()=>{Gm.value="pointer",af.value=window.performance.now()},nC=()=>{Gm.value="keyboard",af.value=window.performance.now()},jj=()=>(Lt(()=>{lf===0&&(document.addEventListener("mousedown",cf),document.addEventListener("touchstart",cf),document.addEventListener("keydown",nC)),lf++}),fn(()=>{lf--,lf<=0&&(document.removeEventListener("mousedown",cf),document.removeEventListener("touchstart",cf),document.removeEventListener("keydown",nC))}),{focusReason:Gm,lastUserFocusTimestamp:af,lastAutomatedFocusTimestamp:Wm}),uf=e=>new CustomEvent(Ij,Be(we({},Rj),{detail:e})),Uj=Te({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[J6,Y6,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=ne();let r,s;const{focusReason:o}=jj();eB(b=>{e.trapped&&!a.paused&&t("release-requested",b)});const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=b=>{if(!e.loop&&!e.trapped||a.paused)return;const{key:y,altKey:_,ctrlKey:w,metaKey:x,currentTarget:C,shiftKey:S}=b,{loop:A}=e,O=y===Do.tab&&!_&&!w&&!x,R=document.activeElement;if(O&&R){const N=C,[k,L]=Lj(N);if(k&&L){if(!S&&R===L){const G=uf({focusReason:o.value});t("focusout-prevented",G),G.defaultPrevented||(b.preventDefault(),A&&Bs(k,!0))}else if(S&&[k,N].includes(R)){const G=uf({focusReason:o.value});t("focusout-prevented",G),G.defaultPrevented||(b.preventDefault(),A&&Bs(L,!0))}}else if(R===N){const G=uf({focusReason:o.value});t("focusout-prevented",G),G.defaultPrevented||b.preventDefault()}}};an(X6,{focusTrapRef:n,onKeydown:l}),ze(()=>e.focusTrapEl,b=>{b&&(n.value=b)},{immediate:!0}),ze([n],([b],[y])=>{b&&(b.addEventListener("keydown",l),b.addEventListener("focusin",d),b.addEventListener("focusout",f)),y&&(y.removeEventListener("keydown",l),y.removeEventListener("focusin",d),y.removeEventListener("focusout",f))});const c=b=>{t(J6,b)},u=b=>t(Y6,b),d=b=>{const y=P(n);if(!y)return;const _=b.target,w=b.relatedTarget,x=_&&y.contains(_);e.trapped||w&&y.contains(w)||(r=w),x&&t("focusin",b),!a.paused&&e.trapped&&(x?s=_:Bs(s,!0))},f=b=>{const y=P(n);if(!(a.paused||!y))if(e.trapped){const _=b.relatedTarget;!Oo(_)&&!y.contains(_)&&setTimeout(()=>{if(!a.paused&&e.trapped){const w=uf({focusReason:o.value});t("focusout-prevented",w),w.defaultPrevented||Bs(s,!0)}},0)}else{const _=b.target;_&&y.contains(_)||t("focusout",b)}};function h(){return at(this,null,function*(){yield pt();const b=P(n);if(b){tC.push(a);const y=b.contains(document.activeElement)?r:document.activeElement;if(r=y,!b.contains(y)){const w=new Event(qm,K6);b.addEventListener(qm,c),b.dispatchEvent(w),w.defaultPrevented||pt(()=>{let x=e.focusStartEl;st(x)||(Bs(x),document.activeElement!==x&&(x="first")),x==="first"&&Fj(Z6(b),!0),(document.activeElement===y||x==="container")&&Bs(b)})}}})}function g(){const b=P(n);if(b){b.removeEventListener(qm,c);const y=new CustomEvent(Hm,Be(we({},K6),{detail:{focusReason:o.value}}));b.addEventListener(Hm,u),b.dispatchEvent(y),!y.defaultPrevented&&(o.value=="keyboard"||!Bj()||b.contains(document.activeElement))&&Bs(r!=null?r:document.body),b.removeEventListener(Hm,u),tC.remove(a)}}return Lt(()=>{e.trapped&&h(),ze(()=>e.trapped,b=>{b?h():g()})}),fn(()=>{e.trapped&&g(),n.value&&(n.value.removeEventListener("keydown",l),n.value.removeEventListener("focusin",d),n.value.removeEventListener("focusout",f),n.value=void 0)}),{onKeydown:l}}});function $j(e,t,n,r,s,o){return Re(e.$slots,"default",{handleKeydown:e.onKeydown})}var Km=ft(Uj,[["render",$j],["__file","focus-trap.vue"]]);const Vj=["fixed","absolute"],zj=ht({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Fe(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Yd,default:"bottom"},popperOptions:{type:Fe(Object),default:()=>({})},strategy:{type:String,values:Vj,default:"absolute"}}),iC=ht(we(Be(we({},zj),{id:String,style:{type:Fe([String,Array,Object])},className:{type:Fe([String,Array,Object])},effect:{type:Fe(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:Fe([String,Array,Object])},popperStyle:{type:Fe([String,Array,Object])},referenceEl:{type:Fe(Object)},triggerTargetEl:{type:Fe(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number}),Fs(["ariaLabel"]))),qj={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Hj=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:s}=e,o=Be(we({placement:n,strategy:r},s),{modifiers:[...Wj(e),...t]});return Kj(o,s==null?void 0:s.modifiers),o},Gj=e=>{if(Dt)return Qr(e)};function Wj(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=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:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function Kj(e,t){t&&(e.modifiers=[...e.modifiers,...t!=null?t:[]])}const Jj=0,Yj=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:s}=Qe(zm,void 0),o=ne(),a=ne(),l=W(()=>({name:"eventListeners",enabled:!!e.visible})),c=W(()=>{var w;const x=P(o),C=(w=P(a))!=null?w:Jj;return{name:"arrow",enabled:!N3(x),options:{element:x,padding:C}}}),u=W(()=>we({onFirstUpdate:()=>{b()}},Hj(e,[P(c),P(l)]))),d=W(()=>Gj(e.referenceEl)||P(r)),{attributes:f,state:h,styles:g,update:b,forceUpdate:y,instanceRef:_}=XF(d,n,u);return ze(_,w=>t.value=w),Lt(()=>{ze(()=>{var w;return(w=P(d))==null?void 0:w.getBoundingClientRect()},()=>{b()})}),{attributes:f,arrowRef:o,contentRef:n,instanceRef:_,state:h,styles:g,role:s,forceUpdate:y,update:b}},Xj=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:s}=Im(),o=nt("popper"),a=W(()=>P(t).popper),l=ne(Qt(e.zIndex)?e.zIndex:s()),c=W(()=>[o.b(),o.is("pure",e.pure),o.is(e.effect),e.popperClass]),u=W(()=>[{zIndex:P(l)},P(n).popper,e.popperStyle||{}]),d=W(()=>r.value==="dialog"?"false":void 0),f=W(()=>P(n).arrow||{});return{ariaModal:d,arrowStyle:f,contentAttrs:a,contentClass:c,contentStyle:u,contentZIndex:l,updateZIndex:()=>{l.value=Qt(e.zIndex)?e.zIndex:s()}}},Zj=(e,t)=>{const n=ne(!1),r=ne();return{focusStartRef:r,trapped:n,onFocusAfterReleased:u=>{var d;((d=u.detail)==null?void 0:d.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:u=>{e.visible&&!n.value&&(u.target&&(r.value=u.target),n.value=!0)},onFocusoutPrevented:u=>{e.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},Qj=Te(Be(we({},Te({name:"ElPopperContent"})),{props:iC,emits:qj,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:s,trapped:o,onFocusAfterReleased:a,onFocusAfterTrapped:l,onFocusInTrap:c,onFocusoutPrevented:u,onReleaseRequested:d}=Zj(r,n),{attributes:f,arrowRef:h,contentRef:g,styles:b,instanceRef:y,role:_,update:w}=Yj(r),{ariaModal:x,arrowStyle:C,contentAttrs:S,contentClass:A,contentStyle:O,updateZIndex:R}=Xj(r,{styles:b,attributes:f,role:_}),N=Qe(Mo,void 0),k=ne();an(V6,{arrowStyle:C,arrowRef:h,arrowOffset:k}),N&&an(Mo,Be(we({},N),{addInputId:_t,removeInputId:_t}));let L;const F=(V=!0)=>{w(),V&&R()},G=()=>{F(!1),r.visible&&r.focusOnShow?o.value=!0:r.visible===!1&&(o.value=!1)};return Lt(()=>{ze(()=>r.triggerTargetEl,(V,ae)=>{L==null||L(),L=void 0;const ce=P(V||g.value),U=P(ae||g.value);yr(ce)&&(L=ze([_,()=>r.ariaLabel,x,()=>r.id],J=>{["role","aria-label","aria-modal","id"].forEach((Q,X)=>{Oo(J[X])?ce.removeAttribute(Q):ce.setAttribute(Q,J[X])})},{immediate:!0})),U!==ce&&yr(U)&&["role","aria-label","aria-modal","id"].forEach(J=>{U.removeAttribute(J)})},{immediate:!0}),ze(()=>r.visible,G,{immediate:!0})}),fn(()=>{L==null||L(),L=void 0}),t({popperContentRef:g,popperInstanceRef:y,updatePopper:F,contentStyle:O}),(V,ae)=>(I(),z("div",An({ref_key:"contentRef",ref:g},P(S),{style:P(O),class:P(A),tabindex:"-1",onMouseenter:ce=>V.$emit("mouseenter",ce),onMouseleave:ce=>V.$emit("mouseleave",ce)}),[te(P(Km),{trapped:P(o),"trap-on-focus-in":!0,"focus-trap-el":P(g),"focus-start-el":P(s),onFocusAfterTrapped:P(l),onFocusAfterReleased:P(a),onFocusin:P(c),onFocusoutPrevented:P(u),onReleaseRequested:P(d)},{default:ee(()=>[Re(V.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}}));var eU=ft(Qj,[["__file","content.vue"]]);const tU=hn(xj),Jm=Symbol("elTooltip"),di=ht(we(Be(we(we({},iB),iC),{appendTo:{type:Fe([String,Object])},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:Fe(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),Fs(["ariaLabel"]))),Vc=ht(Be(we({},W6),{disabled:Boolean,trigger:{type:Fe([String,Array]),default:"hover"},triggerKeys:{type:Fe(Array),default:()=>[Do.enter,Do.space]}})),{useModelToggleProps:nU,useModelToggleEmits:iU,useModelToggle:rU}=W3("visible"),sU=ht(Be(we(we(we(we(we({},z6),nU),di),Vc),q6),{showArrow:{type:Boolean,default:!0}})),oU=[...iU,"before-show","before-hide","show","hide","open","close"],aU=(e,t)=>je(e)?e.includes(t):e===t,Ka=(e,t,n)=>r=>{aU(P(e),t)&&n(r)},lU=Te(Be(we({},Te({name:"ElTooltipTrigger"})),{props:Vc,setup(e,{expose:t}){const n=e,r=nt("tooltip"),{controlled:s,id:o,open:a,onOpen:l,onClose:c,onToggle:u}=Qe(Jm,void 0),d=ne(null),f=()=>{if(P(s)||n.disabled)return!0},h=wi(n,"trigger"),g=Zr(f,Ka(h,"hover",l)),b=Zr(f,Ka(h,"hover",c)),y=Zr(f,Ka(h,"click",S=>{S.button===0&&u(S)})),_=Zr(f,Ka(h,"focus",l)),w=Zr(f,Ka(h,"focus",c)),x=Zr(f,Ka(h,"contextmenu",S=>{S.preventDefault(),u(S)})),C=Zr(f,S=>{const{code:A}=S;n.triggerKeys.includes(A)&&(S.preventDefault(),u(S))});return t({triggerRef:d}),(S,A)=>(I(),Ee(P(Nj),{id:P(o),"virtual-ref":S.virtualRef,open:P(a),"virtual-triggering":S.virtualTriggering,class:Y(P(r).e("trigger")),onBlur:P(w),onClick:P(y),onContextmenu:P(x),onFocus:P(_),onMouseenter:P(g),onMouseleave:P(b),onKeydown:P(C)},{default:ee(()=>[Re(S.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}}));var cU=ft(lU,[["__file","trigger.vue"]]);const uU=ht({to:{type:Fe([String,Object]),required:!0},disabled:Boolean});var dU=ft(Te({__name:"teleport",props:uU,setup(e){return(t,n)=>t.disabled?Re(t.$slots,"default",{key:0}):(I(),Ee(KP,{key:1,to:t.to},[Re(t.$slots,"default")],8,["to"]))}}),[["__file","teleport.vue"]]);const rC=hn(dU),fU=Te(Be(we({},Te({name:"ElTooltipContent",inheritAttrs:!1})),{props:di,setup(e,{expose:t}){const n=e,{selector:r}=_6(),s=nt("tooltip"),o=ne(null);let a;const{controlled:l,id:c,open:u,trigger:d,onClose:f,onOpen:h,onShow:g,onHide:b,onBeforeShow:y,onBeforeHide:_}=Qe(Jm,void 0),w=W(()=>n.transition||`${s.namespace.value}-fade-in-linear`),x=W(()=>n.persistent);fn(()=>{a==null||a()});const C=W(()=>P(x)?!0:P(u)),S=W(()=>n.disabled?!1:P(u)),A=W(()=>n.appendTo||r.value),O=W(()=>{var U;return(U=n.style)!=null?U:{}}),R=ne(!0),N=()=>{b(),R.value=!0},k=()=>{if(P(l))return!0},L=Zr(k,()=>{n.enterable&&P(d)==="hover"&&h()}),F=Zr(k,()=>{P(d)==="hover"&&f()}),G=()=>{var U,J;(J=(U=o.value)==null?void 0:U.updatePopper)==null||J.call(U),y==null||y()},V=()=>{_==null||_()},ae=()=>{g(),a=$O(W(()=>{var U;return(U=o.value)==null?void 0:U.popperContentRef}),()=>{if(P(l))return;P(d)!=="hover"&&f()})},ce=()=>{n.virtualTriggering||f()};return ze(()=>P(u),U=>{U?R.value=!1:a==null||a()},{flush:"post"}),ze(()=>n.content,()=>{var U,J;(J=(U=o.value)==null?void 0:U.updatePopper)==null||J.call(U)}),t({contentRef:o}),(U,J)=>(I(),Ee(P(rC),{disabled:!U.teleported,to:P(A)},{default:ee(()=>[te(Rs,{name:P(w),onAfterLeave:N,onBeforeEnter:G,onAfterEnter:ae,onBeforeLeave:V},{default:ee(()=>[P(C)?It((I(),Ee(P(eU),An({key:0,id:P(c),ref_key:"contentRef",ref:o},U.$attrs,{"aria-label":U.ariaLabel,"aria-hidden":R.value,"boundaries-padding":U.boundariesPadding,"fallback-placements":U.fallbackPlacements,"gpu-acceleration":U.gpuAcceleration,offset:U.offset,placement:U.placement,"popper-options":U.popperOptions,strategy:U.strategy,effect:U.effect,enterable:U.enterable,pure:U.pure,"popper-class":U.popperClass,"popper-style":[U.popperStyle,P(O)],"reference-el":U.referenceEl,"trigger-target-el":U.triggerTargetEl,visible:P(S),"z-index":U.zIndex,onMouseenter:P(L),onMouseleave:P(F),onBlur:ce,onClose:P(f)}),{default:ee(()=>[Re(U.$slots,"default")]),_: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"])),[[wn,P(S)]]):re("v-if",!0)]),_:3},8,["name"])]),_:3},8,["disabled","to"]))}}));var hU=ft(fU,[["__file","content.vue"]]);const pU=Te(Be(we({},Te({name:"ElTooltip"})),{props:sU,emits:oU,setup(e,{expose:t,emit:n}){const r=e;nB();const s=Sr(),o=ne(),a=ne(),l=()=>{var w;const x=P(o);x&&((w=x.popperInstanceRef)==null||w.update())},c=ne(!1),u=ne(),{show:d,hide:f,hasUpdateHandler:h}=rU({indicator:c,toggleReason:u}),{onOpen:g,onClose:b}=rB({showAfter:wi(r,"showAfter"),hideAfter:wi(r,"hideAfter"),autoClose:wi(r,"autoClose"),open:d,close:f}),y=W(()=>ti(r.visible)&&!h.value);an(Jm,{controlled:y,id:s,open:rd(c),trigger:wi(r,"trigger"),onOpen:w=>{g(w)},onClose:w=>{b(w)},onToggle:w=>{P(c)?b(w):g(w)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:l}),ze(()=>r.disabled,w=>{w&&c.value&&(c.value=!1)});const _=w=>{var x,C;const S=(C=(x=a.value)==null?void 0:x.contentRef)==null?void 0:C.popperContentRef,A=(w==null?void 0:w.relatedTarget)||document.activeElement;return S&&S.contains(A)};return G_(()=>c.value&&f()),t({popperRef:o,contentRef:a,isFocusInsideContent:_,updatePopper:l,onOpen:g,onClose:b,hide:f}),(w,x)=>(I(),Ee(P(tU),{ref_key:"popperRef",ref:o,role:w.role},{default:ee(()=>[te(cU,{disabled:w.disabled,trigger:w.trigger,"trigger-keys":w.triggerKeys,"virtual-ref":w.virtualRef,"virtual-triggering":w.virtualTriggering},{default:ee(()=>[w.$slots.default?Re(w.$slots,"default",{key:0}):re("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),te(hU,{ref_key:"contentRef",ref:a,"aria-label":w.ariaLabel,"boundaries-padding":w.boundariesPadding,content:w.content,disabled:w.disabled,effect:w.effect,enterable:w.enterable,"fallback-placements":w.fallbackPlacements,"hide-after":w.hideAfter,"gpu-acceleration":w.gpuAcceleration,offset:w.offset,persistent:w.persistent,"popper-class":w.popperClass,"popper-style":w.popperStyle,placement:w.placement,"popper-options":w.popperOptions,pure:w.pure,"raw-content":w.rawContent,"reference-el":w.referenceEl,"trigger-target-el":w.triggerTargetEl,"show-after":w.showAfter,strategy:w.strategy,teleported:w.teleported,transition:w.transition,"virtual-triggering":w.virtualTriggering,"z-index":w.zIndex,"append-to":w.appendTo},{default:ee(()=>[Re(w.$slots,"content",{},()=>[w.rawContent?(I(),z("span",{key:0,innerHTML:w.content},null,8,["innerHTML"])):(I(),z("span",{key:1},Ie(w.content),1))]),w.showArrow?(I(),Ee(P(Pj),{key:0,"arrow-offset":w.arrowOffset},null,8,["arrow-offset"])):re("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 gU=ft(pU,[["__file","tooltip.vue"]]);const fi=hn(gU),mU=ht({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"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:Fe([String,Object,Array])},offset:{type:Fe(Array),default:[0,0]},badgeClass:{type:String}}),vU=Te(Be(we({},Te({name:"ElBadge"})),{props:mU,setup(e,{expose:t}){const n=e,r=nt("badge"),s=W(()=>n.isDot?"":Qt(n.value)&&Qt(n.max)?n.max<n.value?`${n.max}+`:n.value===0&&!n.showZero?"":`${n.value}`:`${n.value}`),o=W(()=>{var a,l,c,u,d;return[{backgroundColor:n.color,marginRight:Qi(-((l=(a=n.offset)==null?void 0:a[0])!=null?l:0)),marginTop:Qi((u=(c=n.offset)==null?void 0:c[1])!=null?u:0)},(d=n.badgeStyle)!=null?d:{}]});return t({content:s}),(a,l)=>(I(),z("div",{class:Y(P(r).b())},[Re(a.$slots,"default"),te(Rs,{name:`${P(r).namespace.value}-zoom-in-center`,persisted:""},{default:ee(()=>[It(H("sup",{class:Y([P(r).e("content"),P(r).em("content",a.type),P(r).is("fixed",!!a.$slots.default),P(r).is("dot",a.isDot),a.badgeClass]),style:Ze(P(o)),textContent:Ie(P(s))},null,14,["textContent"]),[[wn,!a.hidden&&(P(s)||a.isDot)]])]),_:1},8,["name"])],2))}}));var bU=ft(vU,[["__file","badge.vue"]]);const yU=hn(bU),sC=Symbol("buttonGroupContextKey"),_U=(e,t)=>{Fa({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},W(()=>e.type==="text"));const n=Qe(sC,void 0),r=nf("button"),{form:s}=Fo(),o=xr(W(()=>n==null?void 0:n.size)),a=ss(),l=ne(),c=xa(),u=W(()=>e.type||(n==null?void 0:n.type)||""),d=W(()=>{var b,y,_;return(_=(y=e.autoInsertSpace)!=null?y:(b=r.value)==null?void 0:b.autoInsertSpace)!=null?_:!1}),f=W(()=>e.tag==="button"?{ariaDisabled:a.value||e.loading,disabled:a.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),h=W(()=>{var b;const y=(b=c.default)==null?void 0:b.call(c);if(d.value&&(y==null?void 0:y.length)===1){const _=y[0];if((_==null?void 0:_.type)===Pa){const w=_.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(w.trim())}}return!1});return{_disabled:a,_size:o,_type:u,_ref:l,_props:f,shouldAddSpace:h,handleClick:b=>{if(a.value||e.loading){b.stopPropagation();return}e.nativeType==="reset"&&(s==null||s.resetFields()),t("click",b)}}},Ym=ht({size:Ms,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:ns},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:ns,default:()=>Ma},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:Fe([String,Object]),default:"button"}}),wU={click:e=>e instanceof MouseEvent};function Tn(e,t){CU(e)&&(e="100%");var n=SU(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(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 df(e){return Math.min(1,Math.max(0,e))}function CU(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function SU(e){return typeof e=="string"&&e.indexOf("%")!==-1}function oC(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ff(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Uo(e){return e.length===1?"0"+e:String(e)}function EU(e,t,n){return{r:Tn(e,255)*255,g:Tn(t,255)*255,b:Tn(n,255)*255}}function aC(e,t,n){e=Tn(e,255),t=Tn(t,255),n=Tn(n,255);var r=Math.max(e,t,n),s=Math.min(e,t,n),o=0,a=0,l=(r+s)/2;if(r===s)a=0,o=0;else{var c=r-s;switch(a=l>.5?c/(2-r-s):c/(r+s),r){case e:o=(t-n)/c+(t<n?6:0);break;case t:o=(n-e)/c+2;break;case n:o=(e-t)/c+4;break}o/=6}return{h:o,s:a,l}}function Xm(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function xU(e,t,n){var r,s,o;if(e=Tn(e,360),t=Tn(t,100),n=Tn(n,100),t===0)s=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=Xm(l,a,e+1/3),s=Xm(l,a,e),o=Xm(l,a,e-1/3)}return{r:r*255,g:s*255,b:o*255}}function lC(e,t,n){e=Tn(e,255),t=Tn(t,255),n=Tn(n,255);var r=Math.max(e,t,n),s=Math.min(e,t,n),o=0,a=r,l=r-s,c=r===0?0:l/r;if(r===s)o=0;else{switch(r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break}o/=6}return{h:o,s:c,v:a}}function AU(e,t,n){e=Tn(e,360)*6,t=Tn(t,100),n=Tn(n,100);var r=Math.floor(e),s=e-r,o=n*(1-t),a=n*(1-s*t),l=n*(1-(1-s)*t),c=r%6,u=[n,a,o,o,l,n][c],d=[l,n,n,a,o,o][c],f=[o,o,l,n,n,a][c];return{r:u*255,g:d*255,b:f*255}}function cC(e,t,n,r){var s=[Uo(Math.round(e).toString(16)),Uo(Math.round(t).toString(16)),Uo(Math.round(n).toString(16))];return r&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0):s.join("")}function PU(e,t,n,r,s){var o=[Uo(Math.round(e).toString(16)),Uo(Math.round(t).toString(16)),Uo(Math.round(n).toString(16)),Uo(TU(r))];return s&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function TU(e){return Math.round(parseFloat(e)*255).toString(16)}function uC(e){return hi(e)/255}function hi(e){return parseInt(e,16)}function OU(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Zm={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 NU(e){var t={r:0,g:0,b:0},n=1,r=null,s=null,o=null,a=!1,l=!1;return typeof e=="string"&&(e=DU(e)),typeof e=="object"&&(os(e.r)&&os(e.g)&&os(e.b)?(t=EU(e.r,e.g,e.b),a=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):os(e.h)&&os(e.s)&&os(e.v)?(r=ff(e.s),s=ff(e.v),t=AU(e.h,r,s),a=!0,l="hsv"):os(e.h)&&os(e.s)&&os(e.l)&&(r=ff(e.s),o=ff(e.l),t=xU(e.h,r,o),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=oC(n),{ok:a,format:e.format||l,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:n}}var IU="[-\\+]?\\d+%?",RU="[-\\+]?\\d*\\.\\d+%?",js="(?:".concat(RU,")|(?:").concat(IU,")"),Qm="[\\s|\\(]+(".concat(js,")[,|\\s]+(").concat(js,")[,|\\s]+(").concat(js,")\\s*\\)?"),e0="[\\s|\\(]+(".concat(js,")[,|\\s]+(").concat(js,")[,|\\s]+(").concat(js,")[,|\\s]+(").concat(js,")\\s*\\)?"),nr={CSS_UNIT:new RegExp(js),rgb:new RegExp("rgb"+Qm),rgba:new RegExp("rgba"+e0),hsl:new RegExp("hsl"+Qm),hsla:new RegExp("hsla"+e0),hsv:new RegExp("hsv"+Qm),hsva:new RegExp("hsva"+e0),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 DU(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Zm[e])e=Zm[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=nr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=nr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=nr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=nr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=nr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=nr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=nr.hex8.exec(e),n?{r:hi(n[1]),g:hi(n[2]),b:hi(n[3]),a:uC(n[4]),format:t?"name":"hex8"}:(n=nr.hex6.exec(e),n?{r:hi(n[1]),g:hi(n[2]),b:hi(n[3]),format:t?"name":"hex"}:(n=nr.hex4.exec(e),n?{r:hi(n[1]+n[1]),g:hi(n[2]+n[2]),b:hi(n[3]+n[3]),a:uC(n[4]+n[4]),format:t?"name":"hex8"}:(n=nr.hex3.exec(e),n?{r:hi(n[1]+n[1]),g:hi(n[2]+n[2]),b:hi(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function os(e){return!!nr.CSS_UNIT.exec(String(e))}var LU=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=OU(t)),this.originalInput=t;var s=NU(t);this.originalInput=t,this.r=s.r,this.g=s.g,this.b=s.b,this.a=s.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:s.format,this.gradientType=n.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=s.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(),n,r,s,o=t.r/255,a=t.g/255,l=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),l<=.03928?s=l/12.92:s=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*s},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=oC(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=lC(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=lC(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),s=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(s,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=aC(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=aC(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),s=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(s,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),cC(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),PU(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),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Tn(n,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(n){return Math.round(Tn(n,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="#"+cC(this.r,this.g,this.b,!1),n=0,r=Object.entries(Zm);n<r.length;n++){var s=r[n],o=s[0],a=s[1];if(t===a)return o}return!1},e.prototype.toString=function(t){var n=!!t;t=t!=null?t:this.format;var r=!1,s=this.a<1&&this.a>=0,o=!n&&s&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||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 n=this.toHsl();return n.l+=t/100,n.l=df(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=df(n.l),new e(n)},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 n=this.toHsl();return n.s-=t/100,n.s=df(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=df(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),s=new e(t).toRgb(),o=n/100,a={r:(s.r-r.r)*o+r.r,g:(s.g-r.g)*o+r.g,b:(s.b-r.b)*o+r.b,a:(s.a-r.a)*o+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),s=360/n,o=[this];for(r.h=(r.h-(s*t>>1)+720)%360;--t;)r.h=(r.h+s)%360,o.push(new e(r));return o},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 n=this.toHsv(),r=n.h,s=n.s,o=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s,v:o})),o=(o+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),s=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/s,g:(n.g*n.a+r.g*r.a*(1-n.a))/s,b:(n.b*n.a+r.b*r.a*(1-n.a))/s,a:s})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,s=[this],o=360/t,a=1;a<t;a++)s.push(new e({h:(r+a*o)%360,s:n.s,l:n.l}));return s},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Us(e,t=20){return e.mix("#141414",t).toString()}function kU(e){const t=ss(),n=nt("button");return W(()=>{let r={},s=e.color;if(s){const o=s.match(/var\((.*?)\)/);o&&(s=window.getComputedStyle(window.document.documentElement).getPropertyValue(o[1]));const a=new LU(s),l=e.dark?a.tint(20).toString():Us(a,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?Us(a,90):a.tint(90).toString(),"text-color":s,"border-color":e.dark?Us(a,50):a.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":s,"hover-border-color":s,"active-bg-color":l,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":l}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?Us(a,90):a.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?Us(a,50):a.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?Us(a,80):a.tint(80).toString());else{const c=e.dark?Us(a,30):a.tint(30).toString(),u=a.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":s,"text-color":u,"border-color":s,"hover-bg-color":c,"hover-text-color":u,"hover-border-color":c,"active-bg-color":l,"active-border-color":l}),t.value){const d=e.dark?Us(a,50):a.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=d,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=d}}}return r})}const MU=Te(Be(we({},Te({name:"ElButton"})),{props:Ym,emits:wU,setup(e,{expose:t,emit:n}){const r=e,s=kU(r),o=nt("button"),{_ref:a,_size:l,_type:c,_disabled:u,_props:d,shouldAddSpace:f,handleClick:h}=_U(r,n),g=W(()=>[o.b(),o.m(c.value),o.m(l.value),o.is("disabled",u.value),o.is("loading",r.loading),o.is("plain",r.plain),o.is("round",r.round),o.is("circle",r.circle),o.is("text",r.text),o.is("link",r.link),o.is("has-bg",r.bg)]);return t({ref:a,size:l,type:c,disabled:u,shouldAddSpace:f}),(b,y)=>(I(),Ee(Zt(b.tag),An({ref_key:"_ref",ref:a},P(d),{class:P(g),style:P(s),onClick:P(h)}),{default:ee(()=>[b.loading?(I(),z(qe,{key:0},[b.$slots.loading?Re(b.$slots,"loading",{key:0}):(I(),Ee(P(Ft),{key:1,class:Y(P(o).is("loading"))},{default:ee(()=>[(I(),Ee(Zt(b.loadingIcon)))]),_:1},8,["class"]))],64)):b.icon||b.$slots.icon?(I(),Ee(P(Ft),{key:1},{default:ee(()=>[b.icon?(I(),Ee(Zt(b.icon),{key:0})):Re(b.$slots,"icon",{key:1})]),_:3})):re("v-if",!0),b.$slots.default?(I(),z("span",{key:2,class:Y({[P(o).em("text","expand")]:P(f)})},[Re(b.$slots,"default")],2)):re("v-if",!0)]),_:3},16,["class","style","onClick"]))}}));var FU=ft(MU,[["__file","button.vue"]]);const BU={size:Ym.size,type:Ym.type},jU=Te(Be(we({},Te({name:"ElButtonGroup"})),{props:BU,setup(e){const t=e;an(sC,Dn({size:wi(t,"size"),type:wi(t,"type")}));const n=nt("button");return(r,s)=>(I(),z("div",{class:Y(P(n).b("group"))},[Re(r.$slots,"default")],2))}}));var dC=ft(jU,[["__file","button-group.vue"]]);const $o=hn(FU,{ButtonGroup:dC});is(dC);var $s=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function fC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const Vs=new Map;if(Dt){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of Vs.values())for(const{documentHandler:r}of n)r(t,e);e=void 0}})}function hC(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:yr(t.arg)&&n.push(t.arg),function(r,s){const o=t.instance.popperRef,a=r.target,l=s==null?void 0:s.target,c=!t||!t.instance,u=!a||!l,d=e.contains(a)||e.contains(l),f=e===a,h=n.length&&n.some(b=>b==null?void 0:b.contains(a))||n.length&&n.includes(l),g=o&&(o.contains(a)||o.contains(l));c||u||d||f||h||g||t.value(r,s)}}const pC={beforeMount(e,t){Vs.has(e)||Vs.set(e,[]),Vs.get(e).push({documentHandler:hC(e,t),bindingFn:t.value})},updated(e,t){Vs.has(e)||Vs.set(e,[]);const n=Vs.get(e),r=n.findIndex(o=>o.bindingFn===t.oldValue),s={documentHandler:hC(e,t),bindingFn:t.value};r>=0?n.splice(r,1,s):n.push(s)},unmounted(e){Vs.delete(e)}},t0="_trap-focus-children",Vo=[],gC=e=>{if(Vo.length===0)return;const t=Vo[Vo.length-1][t0];if(t.length>0&&e.code===Do.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,r=e.target===t[0],s=e.target===t[t.length-1];r&&n&&(e.preventDefault(),t[t.length-1].focus()),s&&!n&&(e.preventDefault(),t[0].focus())}},UU={beforeMount(e){e[t0]=fw(e),Vo.push(e),Vo.length<=1&&document.addEventListener("keydown",gC)},updated(e){pt(()=>{e[t0]=fw(e)})},unmounted(){Vo.shift(),Vo.length===0&&document.removeEventListener("keydown",gC)}};var mC=!1,zo,n0,i0,hf,pf,vC,gf,r0,s0,o0,bC,a0,l0,yC,_C;function ri(){if(!mC){mC=!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),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(a0=/\b(iPhone|iP[ao]d)/.exec(e),l0=/\b(iP[ao]d)/.exec(e),o0=/Android/i.exec(e),yC=/FBAN\/\w+;/i.exec(e),_C=/Mobile/i.exec(e),bC=!!/Win64/.exec(e),t){zo=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,zo&&document&&document.documentMode&&(zo=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);vC=r?parseFloat(r[1])+4:zo,n0=t[2]?parseFloat(t[2]):NaN,i0=t[3]?parseFloat(t[3]):NaN,hf=t[4]?parseFloat(t[4]):NaN,hf?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),pf=t&&t[1]?parseFloat(t[1]):NaN):pf=NaN}else zo=n0=i0=pf=hf=NaN;if(n){if(n[1]){var s=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);gf=s?parseFloat(s[1].replace("_",".")):!0}else gf=!1;r0=!!n[2],s0=!!n[3]}else gf=r0=s0=!1}}var c0={ie:function(){return ri()||zo},ieCompatibilityMode:function(){return ri()||vC>zo},ie64:function(){return c0.ie()&&bC},firefox:function(){return ri()||n0},opera:function(){return ri()||i0},webkit:function(){return ri()||hf},safari:function(){return c0.webkit()},chrome:function(){return ri()||pf},windows:function(){return ri()||r0},osx:function(){return ri()||gf},linux:function(){return ri()||s0},iphone:function(){return ri()||a0},mobile:function(){return ri()||a0||l0||o0||_C},nativeApp:function(){return ri()||yC},android:function(){return ri()||o0},ipad:function(){return ri()||l0}},$U=c0,mf=!!(typeof window<"u"&&window.document&&window.document.createElement),VU={canUseDOM:mf,canUseWorkers:typeof Worker<"u",canUseEventListeners:mf&&!!(window.addEventListener||window.attachEvent),canUseViewport:mf&&!!window.screen,isInWorker:!mf},wC=VU,CC;wC.canUseDOM&&(CC=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function zU(e,t){if(!wC.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var s=document.createElement("div");s.setAttribute(n,"return;"),r=typeof s[n]=="function"}return!r&&CC&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var qU=zU,SC=10,EC=40,xC=800;function AC(e){var t=0,n=0,r=0,s=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*SC,s=n*SC,"deltaY"in e&&(s=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||s)&&e.deltaMode&&(e.deltaMode==1?(r*=EC,s*=EC):(r*=xC,s*=xC)),r&&!t&&(t=r<1?-1:1),s&&!n&&(n=s<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:s}}AC.getEventType=function(){return $U.firefox()?"DOMMouseScroll":qU("wheel")?"wheel":"mousewheel"};var HU=AC;/**
|
|
40
|
-
* Checks if an event is supported in the current execution environment.
|
|
41
|
-
*
|
|
42
|
-
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
43
|
-
* `reset`, `load`, `error`, and `select`.
|
|
44
|
-
*
|
|
45
|
-
* Borrows from Modernizr.
|
|
46
|
-
*
|
|
47
|
-
* @param {string} eventNameSuffix Event name, e.g. "click".
|
|
48
|
-
* @param {?boolean} capture Check if the capture phase is supported.
|
|
49
|
-
* @return {boolean} True if the event is supported.
|
|
50
|
-
* @internal
|
|
51
|
-
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
52
|
-
*/const GU=function(e,t){if(e&&e.addEventListener){const n=function(r){const s=HU(r);t&&Reflect.apply(t,this,[r,s])};e.addEventListener("wheel",n,{passive:!0})}},WU={beforeMount(e,t){GU(e,t.value)}},PC=we({modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:Ms,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},Fs(["ariaControls"])),TC={[Cn]:e=>st(e)||Qt(e)||ti(e),change:e=>st(e)||Qt(e)||ti(e)},Ja=Symbol("checkboxGroupContextKey"),KU=({model:e,isChecked:t})=>{const n=Qe(Ja,void 0),r=W(()=>{var o,a;const l=(o=n==null?void 0:n.max)==null?void 0:o.value,c=(a=n==null?void 0:n.min)==null?void 0:a.value;return!Zi(l)&&e.value.length>=l&&!t.value||!Zi(c)&&e.value.length<=c&&t.value});return{isDisabled:ss(W(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},JU=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:s,isLabeledByFormItem:o})=>{const a=Qe(Ja,void 0),{formItem:l}=Fo(),{emit:c}=xt();function u(b){var y,_,w,x;return[!0,e.trueValue,e.trueLabel].includes(b)?(_=(y=e.trueValue)!=null?y:e.trueLabel)!=null?_:!0:(x=(w=e.falseValue)!=null?w:e.falseLabel)!=null?x:!1}function d(b,y){c("change",u(b),y)}function f(b){if(n.value)return;const y=b.target;c("change",u(y.checked),b)}function h(b){return at(this,null,function*(){n.value||!r.value&&!s.value&&o.value&&(b.composedPath().some(w=>w.tagName==="LABEL")||(t.value=u([!1,e.falseValue,e.falseLabel].includes(t.value)),yield pt(),d(t.value,b)))})}const g=W(()=>(a==null?void 0:a.validateEvent)||e.validateEvent);return ze(()=>e.modelValue,()=>{g.value&&(l==null||l.validate("change").catch(b=>void 0))}),{handleChange:f,onClickRoot:h}},YU=e=>{const t=ne(!1),{emit:n}=xt(),r=Qe(Ja,void 0),s=W(()=>Zi(r)===!1),o=ne(!1),a=W({get(){var l,c;return s.value?(l=r==null?void 0:r.modelValue)==null?void 0:l.value:(c=e.modelValue)!=null?c:t.value},set(l){var c,u;s.value&&je(l)?(o.value=((c=r==null?void 0:r.max)==null?void 0:c.value)!==void 0&&l.length>(r==null?void 0:r.max.value)&&l.length>a.value.length,o.value===!1&&((u=r==null?void 0:r.changeEvent)==null||u.call(r,l))):(n(Cn,l),t.value=l)}});return{model:a,isGroup:s,isLimitExceeded:o}},XU=(e,t,{model:n})=>{const r=Qe(Ja,void 0),s=ne(!1),o=W(()=>Ac(e.value)?e.label:e.value),a=W(()=>{const d=n.value;return ti(d)?d:je(d)?ct(o.value)?d.map(it).some(f=>Da(f,o.value)):d.map(it).includes(o.value):d!=null?d===e.trueValue||d===e.trueLabel:!!d}),l=xr(W(()=>{var d;return(d=r==null?void 0:r.size)==null?void 0:d.value}),{prop:!0}),c=xr(W(()=>{var d;return(d=r==null?void 0:r.size)==null?void 0:d.value})),u=W(()=>!!t.default||!Ac(o.value));return{checkboxButtonSize:l,isChecked:a,isFocused:s,checkboxSize:c,hasOwnLabel:u,actualValue:o}},OC=(e,t)=>{const{formItem:n}=Fo(),{model:r,isGroup:s,isLimitExceeded:o}=YU(e),{isFocused:a,isChecked:l,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:d,actualValue:f}=XU(e,t,{model:r}),{isDisabled:h}=KU({model:r,isChecked:l}),{inputId:g,isLabeledByFormItem:b}=Fc(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:s}),{handleChange:y,onClickRoot:_}=JU(e,{model:r,isLimitExceeded:o,hasOwnLabel:d,isDisabled:h,isLabeledByFormItem:b});return(()=>{function x(){var C,S;je(r.value)&&!r.value.includes(f.value)?r.value.push(f.value):r.value=(S=(C=e.trueValue)!=null?C:e.trueLabel)!=null?S:!0}e.checked&&x()})(),Fa({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},W(()=>s.value&&Ac(e.value))),Fa({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},W(()=>!!e.trueLabel)),Fa({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},W(()=>!!e.falseLabel)),{inputId:g,isLabeledByFormItem:b,isChecked:l,isDisabled:h,isFocused:a,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:d,model:r,actualValue:f,handleChange:y,onClickRoot:_}},ZU=Te(Be(we({},Te({name:"ElCheckbox"})),{props:PC,emits:TC,setup(e){const t=e,n=xa(),{inputId:r,isLabeledByFormItem:s,isChecked:o,isDisabled:a,isFocused:l,checkboxSize:c,hasOwnLabel:u,model:d,actualValue:f,handleChange:h,onClickRoot:g}=OC(t,n),b=nt("checkbox"),y=W(()=>[b.b(),b.m(c.value),b.is("disabled",a.value),b.is("bordered",t.border),b.is("checked",o.value)]),_=W(()=>[b.e("input"),b.is("disabled",a.value),b.is("checked",o.value),b.is("indeterminate",t.indeterminate),b.is("focus",l.value)]);return(w,x)=>(I(),Ee(Zt(!P(u)&&P(s)?"span":"label"),{class:Y(P(y)),"aria-controls":w.indeterminate?w.ariaControls:null,onClick:P(g)},{default:ee(()=>{var C,S;return[H("span",{class:Y(P(_))},[w.trueValue||w.falseValue||w.trueLabel||w.falseLabel?It((I(),z("input",{key:0,id:P(r),"onUpdate:modelValue":A=>Mt(d)?d.value=A:null,class:Y(P(b).e("original")),type:"checkbox",indeterminate:w.indeterminate,name:w.name,tabindex:w.tabindex,disabled:P(a),"true-value":(C=w.trueValue)!=null?C:w.trueLabel,"false-value":(S=w.falseValue)!=null?S:w.falseLabel,onChange:P(h),onFocus:A=>l.value=!0,onBlur:A=>l.value=!1,onClick:gt(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[Od,P(d)]]):It((I(),z("input",{key:1,id:P(r),"onUpdate:modelValue":A=>Mt(d)?d.value=A:null,class:Y(P(b).e("original")),type:"checkbox",indeterminate:w.indeterminate,disabled:P(a),value:P(f),name:w.name,tabindex:w.tabindex,onChange:P(h),onFocus:A=>l.value=!0,onBlur:A=>l.value=!1,onClick:gt(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[Od,P(d)]]),H("span",{class:Y(P(b).e("inner"))},null,2)],2),P(u)?(I(),z("span",{key:0,class:Y(P(b).e("label"))},[Re(w.$slots,"default"),w.$slots.default?re("v-if",!0):(I(),z(qe,{key:0},[Je(Ie(w.label),1)],64))],2)):re("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}}));var QU=ft(ZU,[["__file","checkbox.vue"]]);const e$=Te(Be(we({},Te({name:"ElCheckboxButton"})),{props:PC,emits:TC,setup(e){const t=e,n=xa(),{isFocused:r,isChecked:s,isDisabled:o,checkboxButtonSize:a,model:l,actualValue:c,handleChange:u}=OC(t,n),d=Qe(Ja,void 0),f=nt("checkbox"),h=W(()=>{var b,y,_,w;const x=(y=(b=d==null?void 0:d.fill)==null?void 0:b.value)!=null?y:"";return{backgroundColor:x,borderColor:x,color:(w=(_=d==null?void 0:d.textColor)==null?void 0:_.value)!=null?w:"",boxShadow:x?`-1px 0 0 0 ${x}`:void 0}}),g=W(()=>[f.b("button"),f.bm("button",a.value),f.is("disabled",o.value),f.is("checked",s.value),f.is("focus",r.value)]);return(b,y)=>{var _,w;return I(),z("label",{class:Y(P(g))},[b.trueValue||b.falseValue||b.trueLabel||b.falseLabel?It((I(),z("input",{key:0,"onUpdate:modelValue":x=>Mt(l)?l.value=x:null,class:Y(P(f).be("button","original")),type:"checkbox",name:b.name,tabindex:b.tabindex,disabled:P(o),"true-value":(_=b.trueValue)!=null?_:b.trueLabel,"false-value":(w=b.falseValue)!=null?w:b.falseLabel,onChange:P(u),onFocus:x=>r.value=!0,onBlur:x=>r.value=!1,onClick:gt(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[Od,P(l)]]):It((I(),z("input",{key:1,"onUpdate:modelValue":x=>Mt(l)?l.value=x:null,class:Y(P(f).be("button","original")),type:"checkbox",name:b.name,tabindex:b.tabindex,disabled:P(o),value:P(c),onChange:P(u),onFocus:x=>r.value=!0,onBlur:x=>r.value=!1,onClick:gt(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[Od,P(l)]]),b.$slots.default||b.label?(I(),z("span",{key:2,class:Y(P(f).be("button","inner")),style:Ze(P(s)?P(h):void 0)},[Re(b.$slots,"default",{},()=>[Je(Ie(b.label),1)])],6)):re("v-if",!0)],2)}}}));var NC=ft(e$,[["__file","checkbox-button.vue"]]);const t$=ht(we({modelValue:{type:Fe(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Ms,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}},Fs(["ariaLabel"]))),n$={[Cn]:e=>je(e),change:e=>je(e)},i$=Te(Be(we({},Te({name:"ElCheckboxGroup"})),{props:t$,emits:n$,setup(e,{emit:t}){const n=e,r=nt("checkbox"),{formItem:s}=Fo(),{inputId:o,isLabeledByFormItem:a}=Fc(n,{formItemContext:s}),l=u=>at(this,null,function*(){t(Cn,u),yield pt(),t("change",u)}),c=W({get(){return n.modelValue},set(u){l(u)}});return an(Ja,Be(we({},R3(pr(n),["size","min","max","disabled","validateEvent","fill","textColor"])),{modelValue:c,changeEvent:l})),ze(()=>n.modelValue,()=>{n.validateEvent&&(s==null||s.validate("change").catch(u=>void 0))}),(u,d)=>{var f;return I(),Ee(Zt(u.tag),{id:P(o),class:Y(P(r).b("group")),role:"group","aria-label":P(a)?void 0:u.ariaLabel||"checkbox-group","aria-labelledby":P(a)?(f=P(s))==null?void 0:f.labelId:void 0},{default:ee(()=>[Re(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}}));var IC=ft(i$,[["__file","checkbox-group.vue"]]);const Ya=hn(QU,{CheckboxButton:NC,CheckboxGroup:IC});is(NC),is(IC);const RC=ht({modelValue:{type:[String,Number,Boolean],default:void 0},size:Ms,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),r$=ht(Be(we({},RC),{border:Boolean})),DC={[Cn]:e=>st(e)||Qt(e)||ti(e),[ym]:e=>st(e)||Qt(e)||ti(e)},LC=Symbol("radioGroupKey"),kC=(e,t)=>{const n=ne(),r=Qe(LC,void 0),s=W(()=>!!r),o=W(()=>Ac(e.value)?e.label:e.value),a=W({get(){return s.value?r.modelValue:e.modelValue},set(f){s.value?r.changeEvent(f):t&&t(Cn,f),n.value.checked=e.modelValue===o.value}}),l=xr(W(()=>r==null?void 0:r.size)),c=ss(W(()=>r==null?void 0:r.disabled)),u=ne(!1),d=W(()=>c.value||s.value&&a.value!==o.value?-1:0);return Fa({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},W(()=>s.value&&Ac(e.value))),{radioRef:n,isGroup:s,radioGroup:r,focus:u,size:l,disabled:c,tabIndex:d,modelValue:a,actualValue:o}},s$=Te(Be(we({},Te({name:"ElRadio"})),{props:r$,emits:DC,setup(e,{emit:t}){const n=e,r=nt("radio"),{radioRef:s,radioGroup:o,focus:a,size:l,disabled:c,modelValue:u,actualValue:d}=kC(n,t);function f(){pt(()=>t("change",u.value))}return(h,g)=>{var b;return I(),z("label",{class:Y([P(r).b(),P(r).is("disabled",P(c)),P(r).is("focus",P(a)),P(r).is("bordered",h.border),P(r).is("checked",P(u)===P(d)),P(r).m(P(l))])},[H("span",{class:Y([P(r).e("input"),P(r).is("disabled",P(c)),P(r).is("checked",P(u)===P(d))])},[It(H("input",{ref_key:"radioRef",ref:s,"onUpdate:modelValue":y=>Mt(u)?u.value=y:null,class:Y(P(r).e("original")),value:P(d),name:h.name||((b=P(o))==null?void 0:b.name),disabled:P(c),checked:P(u)===P(d),type:"radio",onFocus:y=>a.value=!0,onBlur:y=>a.value=!1,onChange:f,onClick:gt(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[aw,P(u)]]),H("span",{class:Y(P(r).e("inner"))},null,2)],2),H("span",{class:Y(P(r).e("label")),onKeydown:gt(()=>{},["stop"])},[Re(h.$slots,"default",{},()=>[Je(Ie(h.label),1)])],42,["onKeydown"])],2)}}}));var o$=ft(s$,[["__file","radio.vue"]]);const a$=ht(we({},RC)),l$=Te(Be(we({},Te({name:"ElRadioButton"})),{props:a$,setup(e){const t=e,n=nt("radio"),{radioRef:r,focus:s,size:o,disabled:a,modelValue:l,radioGroup:c,actualValue:u}=kC(t),d=W(()=>({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(f,h)=>{var g;return I(),z("label",{class:Y([P(n).b("button"),P(n).is("active",P(l)===P(u)),P(n).is("disabled",P(a)),P(n).is("focus",P(s)),P(n).bm("button",P(o))])},[It(H("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":b=>Mt(l)?l.value=b:null,class:Y(P(n).be("button","original-radio")),value:P(u),type:"radio",name:f.name||((g=P(c))==null?void 0:g.name),disabled:P(a),onFocus:b=>s.value=!0,onBlur:b=>s.value=!1,onClick:gt(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[aw,P(l)]]),H("span",{class:Y(P(n).be("button","inner")),style:Ze(P(l)===P(u)?P(d):{}),onKeydown:gt(()=>{},["stop"])},[Re(f.$slots,"default",{},()=>[Je(Ie(f.label),1)])],46,["onKeydown"])],2)}}}));var MC=ft(l$,[["__file","radio-button.vue"]]);const c$=ht(we({id:{type:String,default:void 0},size:Ms,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}},Fs(["ariaLabel"]))),u$=DC,d$=Te(Be(we({},Te({name:"ElRadioGroup"})),{props:c$,emits:u$,setup(e,{emit:t}){const n=e,r=nt("radio"),s=Sr(),o=ne(),{formItem:a}=Fo(),{inputId:l,isLabeledByFormItem:c}=Fc(n,{formItemContext:a}),u=f=>{t(Cn,f),pt(()=>t("change",f))};Lt(()=>{const f=o.value.querySelectorAll("[type=radio]"),h=f[0];!Array.from(f).some(g=>g.checked)&&h&&(h.tabIndex=0)});const d=W(()=>n.name||s.value);return an(LC,Dn(Be(we({},pr(n)),{changeEvent:u,name:d}))),ze(()=>n.modelValue,()=>{n.validateEvent&&(a==null||a.validate("change").catch(f=>void 0))}),(f,h)=>(I(),z("div",{id:P(l),ref_key:"radioGroupRef",ref:o,class:Y(P(r).b("group")),role:"radiogroup","aria-label":P(c)?void 0:f.ariaLabel||"radio-group","aria-labelledby":P(c)?P(a).labelId:void 0},[Re(f.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}}));var FC=ft(d$,[["__file","radio-group.vue"]]);const f$=hn(o$,{RadioButton:MC,RadioGroup:FC});is(FC),is(MC);const u0=ht({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:Pc},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),h$={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},p$=Te(Be(we({},Te({name:"ElTag"})),{props:u0,emits:h$,setup(e,{emit:t}){const n=e,r=xr(),s=nt("tag"),o=W(()=>{const{type:u,hit:d,effect:f,closable:h,round:g}=n;return[s.b(),s.is("closable",h),s.m(u||"primary"),s.m(r.value),s.m(f),s.is("hit",d),s.is("round",g)]}),a=u=>{t("close",u)},l=u=>{t("click",u)},c=u=>{u.component.subTree.component.bum=null};return(u,d)=>u.disableTransitions?(I(),z("span",{key:0,class:Y(P(o)),style:Ze({backgroundColor:u.color}),onClick:l},[H("span",{class:Y(P(s).e("content"))},[Re(u.$slots,"default")],2),u.closable?(I(),Ee(P(Ft),{key:0,class:Y(P(s).e("close")),onClick:gt(a,["stop"])},{default:ee(()=>[te(P(ka))]),_:1},8,["class","onClick"])):re("v-if",!0)],6)):(I(),Ee(Rs,{key:1,name:`${P(s).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:c},{default:ee(()=>[H("span",{class:Y(P(o)),style:Ze({backgroundColor:u.color}),onClick:l},[H("span",{class:Y(P(s).e("content"))},[Re(u.$slots,"default")],2),u.closable?(I(),Ee(P(Ft),{key:0,class:Y(P(s).e("close")),onClick:gt(a,["stop"])},{default:ee(()=>[te(P(ka))]),_:1},8,["class","onClick"])):re("v-if",!0)],6)]),_:3},8,["name"]))}}));var g$=ft(p$,[["__file","tag.vue"]]);const zc=hn(g$),m$=ht({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:Fe([String,Array,Object])},zIndex:{type:Fe([String,Number])}}),v$={click:e=>e instanceof MouseEvent},b$="overlay";var y$=Te({name:"ElOverlay",props:m$,emits:v$,setup(e,{slots:t,emit:n}){const r=nt(b$),s=c=>{n("click",c)},{onClick:o,onMousedown:a,onMouseup:l}=Nm(e.customMaskEvent?void 0:s);return()=>e.mask?te("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:o,onMousedown:a,onMouseup:l},[Re(t,"default")],Jd.STYLE|Jd.CLASS|Jd.PROPS,["onClick","onMouseup","onMousedown"]):dt("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Re(t,"default")])}});const BC=y$,jC=Symbol("dialogInjectionKey"),UC=ht({center:Boolean,alignCenter:Boolean,closeIcon:{type:ns},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),_$={close:()=>!0},w$=Te(Be(we({},Te({name:"ElDialogContent"})),{props:UC,emits:_$,setup(e,{expose:t}){const n=e,{t:r}=Ba(),{Close:s}=DM,{dialogRef:o,headerRef:a,bodyId:l,ns:c,style:u}=Qe(jC),{focusTrapRef:d}=Qe(X6),f=W(()=>[c.b(),c.is("fullscreen",n.fullscreen),c.is("draggable",n.draggable),c.is("align-center",n.alignCenter),{[c.m("center")]:n.center}]),h=MM(d,o),g=W(()=>n.draggable),b=W(()=>n.overflow),{resetPosition:y}=z3(o,a,g,b);return t({resetPosition:y}),(_,w)=>(I(),z("div",{ref:P(h),class:Y(P(f)),style:Ze(P(u)),tabindex:"-1"},[H("header",{ref_key:"headerRef",ref:a,class:Y([P(c).e("header"),{"show-close":_.showClose}])},[Re(_.$slots,"header",{},()=>[H("span",{role:"heading","aria-level":_.ariaLevel,class:Y(P(c).e("title"))},Ie(_.title),11,["aria-level"])]),_.showClose?(I(),z("button",{key:0,"aria-label":P(r)("el.dialog.close"),class:Y(P(c).e("headerbtn")),type:"button",onClick:x=>_.$emit("close")},[te(P(Ft),{class:Y(P(c).e("close"))},{default:ee(()=>[(I(),Ee(Zt(_.closeIcon||P(s))))]),_:1},8,["class"])],10,["aria-label","onClick"])):re("v-if",!0)],2),H("div",{id:P(l),class:Y(P(c).e("body"))},[Re(_.$slots,"default")],10,["id"]),_.$slots.footer?(I(),z("footer",{key:0,class:Y(P(c).e("footer"))},[Re(_.$slots,"footer")],2)):re("v-if",!0)],6))}}));var C$=ft(w$,[["__file","dialog-content.vue"]]);const S$=ht(Be(we({},UC),{appendToBody:Boolean,appendTo:{type:Fe([String,Object]),default:"body"},beforeClose:{type:Fe(Function)},destroyOnClose:Boolean,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:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"}})),E$={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Cn]:e=>ti(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},x$=(e,t)=>{var n;const s=xt().emit,{nextZIndex:o}=Im();let a="";const l=Sr(),c=Sr(),u=ne(!1),d=ne(!1),f=ne(!1),h=ne((n=e.zIndex)!=null?n:o());let g,b;const y=nf("namespace",Oc),_=W(()=>{const ce={},U=`--${y.value}-dialog`;return e.fullscreen||(e.top&&(ce[`${U}-margin-top`]=e.top),e.width&&(ce[`${U}-width`]=Qi(e.width))),ce}),w=W(()=>e.alignCenter?{display:"flex"}:{});function x(){s("opened")}function C(){s("closed"),s(Cn,!1),e.destroyOnClose&&(f.value=!1)}function S(){s("close")}function A(){b==null||b(),g==null||g(),e.openDelay&&e.openDelay>0?{stop:g}=$g(()=>k(),e.openDelay):k()}function O(){g==null||g(),b==null||b(),e.closeDelay&&e.closeDelay>0?{stop:b}=$g(()=>L(),e.closeDelay):L()}function R(){function ce(U){U||(d.value=!0,u.value=!1)}e.beforeClose?e.beforeClose(ce):O()}function N(){e.closeOnClickModal&&R()}function k(){Dt&&(u.value=!0)}function L(){u.value=!1}function F(){s("openAutoFocus")}function G(){s("closeAutoFocus")}function V(ce){var U;((U=ce.detail)==null?void 0:U.focusReason)==="pointer"&&ce.preventDefault()}e.lockScroll&&G3(u);function ae(){e.closeOnPressEscape&&R()}return ze(()=>e.modelValue,ce=>{ce?(d.value=!1,A(),f.value=!0,h.value=N3(e.zIndex)?o():h.value++,pt(()=>{s("open"),t.value&&(t.value.scrollTop=0)})):u.value&&O()}),ze(()=>e.fullscreen,ce=>{t.value&&(ce?(a=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=a)}),Lt(()=>{e.modelValue&&(u.value=!0,f.value=!0,A())}),{afterEnter:x,afterLeave:C,beforeLeave:S,handleClose:R,onModalClick:N,close:O,doClose:L,onOpenAutoFocus:F,onCloseAutoFocus:G,onCloseRequested:ae,onFocusoutPrevented:V,titleId:l,bodyId:c,closed:d,style:_,overlayDialogStyle:w,rendered:f,visible:u,zIndex:h}},A$=Te(Be(we({},Te({name:"ElDialog",inheritAttrs:!1})),{props:S$,emits:E$,setup(e,{expose:t}){const n=e,r=xa();Fa({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"},W(()=>!!r.title));const s=nt("dialog"),o=ne(),a=ne(),l=ne(),{visible:c,titleId:u,bodyId:d,style:f,overlayDialogStyle:h,rendered:g,zIndex:b,afterEnter:y,afterLeave:_,beforeLeave:w,handleClose:x,onModalClick:C,onOpenAutoFocus:S,onCloseAutoFocus:A,onCloseRequested:O,onFocusoutPrevented:R}=x$(n,o);an(jC,{dialogRef:o,headerRef:a,bodyId:d,ns:s,rendered:g,style:f});const N=Nm(C),k=W(()=>n.draggable&&!n.fullscreen);return t({visible:c,dialogContentRef:l,resetPosition:()=>{var F;(F=l.value)==null||F.resetPosition()}}),(F,G)=>(I(),Ee(P(rC),{to:F.appendTo,disabled:F.appendTo!=="body"?!1:!F.appendToBody},{default:ee(()=>[te(Rs,{name:"dialog-fade",onAfterEnter:P(y),onAfterLeave:P(_),onBeforeLeave:P(w),persisted:""},{default:ee(()=>[It(te(P(BC),{"custom-mask-event":"",mask:F.modal,"overlay-class":F.modalClass,"z-index":P(b)},{default:ee(()=>[H("div",{role:"dialog","aria-modal":"true","aria-label":F.title||void 0,"aria-labelledby":F.title?void 0:P(u),"aria-describedby":P(d),class:Y(`${P(s).namespace.value}-overlay-dialog`),style:Ze(P(h)),onClick:P(N).onClick,onMousedown:P(N).onMousedown,onMouseup:P(N).onMouseup},[te(P(Km),{loop:"",trapped:P(c),"focus-start-el":"container",onFocusAfterTrapped:P(S),onFocusAfterReleased:P(A),onFocusoutPrevented:P(R),onReleaseRequested:P(O)},{default:ee(()=>[P(g)?(I(),Ee(C$,An({key:0,ref_key:"dialogContentRef",ref:l},F.$attrs,{center:F.center,"align-center":F.alignCenter,"close-icon":F.closeIcon,draggable:P(k),overflow:F.overflow,fullscreen:F.fullscreen,"show-close":F.showClose,title:F.title,"aria-level":F.headerAriaLevel,onClose:P(x)}),_g({header:ee(()=>[F.$slots.title?Re(F.$slots,"title",{key:1}):Re(F.$slots,"header",{key:0,close:P(x),titleId:P(u),titleClass:P(s).e("title")})]),default:ee(()=>[Re(F.$slots,"default")]),_:2},[F.$slots.footer?{name:"footer",fn:ee(()=>[Re(F.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","show-close","title","aria-level","onClose"])):re("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,["aria-label","aria-labelledby","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["mask","overlay-class","z-index"]),[[wn,P(c)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}}));var P$=ft(A$,[["__file","dialog.vue"]]);const qc=hn(P$),T$=ht({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:Fe(String),default:"solid"}}),O$=Te(Be(we({},Te({name:"ElDivider"})),{props:T$,setup(e){const t=e,n=nt("divider"),r=W(()=>n.cssVar({"border-style":t.borderStyle}));return(s,o)=>(I(),z("div",{class:Y([P(n).b(),P(n).m(s.direction)]),style:Ze(P(r)),role:"separator"},[s.$slots.default&&s.direction!=="vertical"?(I(),z("div",{key:0,class:Y([P(n).e("text"),P(n).is(s.contentPosition)])},[Re(s.$slots,"default")],2)):re("v-if",!0)],6))}}));var N$=ft(O$,[["__file","divider.vue"]]);const I$=hn(N$),R$=Te({inheritAttrs:!1});function D$(e,t,n,r,s,o){return Re(e.$slots,"default")}var L$=ft(R$,[["render",D$],["__file","collection.vue"]]);const k$=Te({name:"ElCollectionItem",inheritAttrs:!1});function M$(e,t,n,r,s,o){return Re(e.$slots,"default")}var F$=ft(k$,[["render",M$],["__file","collection-item.vue"]]);const B$="data-el-collection-item",j$=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),s=Symbol(n),o=Be(we({},L$),{name:t,setup(){const l=ne(null),c=new Map;an(r,{itemMap:c,getItems:()=>{const d=P(l);if(!d)return[];const f=Array.from(d.querySelectorAll(`[${B$}]`));return[...c.values()].sort((g,b)=>f.indexOf(g.ref)-f.indexOf(b.ref))},collectionRef:l})}}),a=Be(we({},F$),{name:n,setup(l,{attrs:c}){const u=ne(null),d=Qe(r,void 0);an(s,{collectionItemRef:u}),Lt(()=>{const f=P(u);f&&d.itemMap.set(f,we({ref:f},c))}),fn(()=>{const f=P(u);d.itemMap.delete(f)})}});return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:s,ElCollection:o,ElCollectionItem:a}},d0=ht({trigger:Vc.trigger,effect:Be(we({},di.effect),{default:"light"}),type:{type:Fe(String)},placement:{type:Fe(String),default:"bottom"},popperOptions:{type:Fe(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:Fe([Number,String]),default:0},maxHeight:{type:Fe([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,default:"menu"},buttonProps:{type:Fe(Object)},teleported:di.teleported});ht({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:ns}}),ht({onKeydown:{type:Fe(Function)}}),j$("Dropdown");const $C=Symbol("ElSelectGroup"),vf=Symbol("ElSelect");function U$(e,t){const n=Qe(vf),r=Qe($C,{disabled:!1}),s=W(()=>d(Yi(n.props.modelValue),e.value)),o=W(()=>{var g;if(n.props.multiple){const b=Yi((g=n.props.modelValue)!=null?g:[]);return!s.value&&b.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),a=W(()=>e.label||(ct(e.value)?"":e.value)),l=W(()=>e.value||e.label||""),c=W(()=>e.disabled||t.groupDisabled||o.value),u=xt(),d=(g=[],b)=>{if(ct(e.value)){const y=n.props.valueKey;return g&&g.some(_=>it(xi(_,y))===xi(b,y))}else return g&&g.includes(b)},f=()=>{!e.disabled&&!r.disabled&&(n.states.hoveringIndex=n.optionsArray.indexOf(u.proxy))},h=g=>{const b=new RegExp(tM(g),"i");t.visible=b.test(a.value)||e.created};return ze(()=>a.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),ze(()=>e.value,(g,b)=>{const{remote:y,valueKey:_}=n.props;if(g!==b&&(n.onOptionDestroy(b,u.proxy),n.onOptionCreate(u.proxy)),!e.created&&!y){if(_&&ct(g)&&ct(b)&&g[_]===b[_])return;n.setSelected()}}),ze(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0}),{select:n,currentLabel:a,currentValue:l,itemSelected:s,isDisabled:c,hoverItem:f,updateOption:h}}const $$=Te({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=nt("select"),n=Sr(),r=W(()=>[t.be("dropdown","item"),t.is("disabled",P(l)),t.is("selected",P(a)),t.is("hovering",P(h))]),s=Dn({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:o,itemSelected:a,isDisabled:l,select:c,hoverItem:u,updateOption:d}=U$(e,s),{visible:f,hover:h}=pr(s),g=xt().proxy;c.onOptionCreate(g),fn(()=>{const y=g.value,{selected:_}=c.states,x=(c.props.multiple?_:[_]).some(C=>C.value===g.value);pt(()=>{c.states.cachedOptions.get(y)===g&&!x&&c.states.cachedOptions.delete(y)}),c.onOptionDestroy(y,g)});function b(){l.value||c.handleOptionSelect(g)}return{ns:t,id:n,containerKls:r,currentLabel:o,itemSelected:a,isDisabled:l,select:c,hoverItem:u,updateOption:d,visible:f,hover:h,selectOptionClick:b,states:s}}});function V$(e,t,n,r,s,o){return It((I(),z("li",{id:e.id,class:Y(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:e.hoverItem,onClick:gt(e.selectOptionClick,["stop"])},[Re(e.$slots,"default",{},()=>[H("span",null,Ie(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMouseenter","onClick"])),[[wn,e.visible]])}var f0=ft($$,[["render",V$],["__file","option.vue"]]);const z$=Te({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Qe(vf),t=nt("select"),n=W(()=>e.props.popperClass),r=W(()=>e.props.multiple),s=W(()=>e.props.fitInputWidth),o=ne("");function a(){var l;o.value=`${(l=e.selectRef)==null?void 0:l.offsetWidth}px`}return Lt(()=>{a(),ci(e.selectRef,a)}),{ns:t,minWidth:o,popperClass:n,isMultiple:r,isFitInputWidth:s}}});function q$(e,t,n,r,s,o){return I(),z("div",{class:Y([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Ze({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(I(),z("div",{key:0,class:Y(e.ns.be("dropdown","header"))},[Re(e.$slots,"header")],2)):re("v-if",!0),Re(e.$slots,"default"),e.$slots.footer?(I(),z("div",{key:1,class:Y(e.ns.be("dropdown","footer"))},[Re(e.$slots,"footer")],2)):re("v-if",!0)],6)}var H$=ft(z$,[["render",q$],["__file","select-dropdown.vue"]]);const G$=11,W$=(e,t)=>{const{t:n}=Ba(),r=Sr(),s=nt("select"),o=nt("input"),a=Dn({inputValue:"",options:new Map,cachedOptions:new Map,disabledOptions:new Map,optionValues:[],selected:[],selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),l=ne(null),c=ne(null),u=ne(null),d=ne(null),f=ne(null),h=ne(null),g=ne(null),b=ne(null),y=ne(null),_=ne(null),w=ne(null),x=ne(null),{isComposing:C,handleCompositionStart:S,handleCompositionUpdate:A,handleCompositionEnd:O}=O6({afterComposition:ge=>Ye(ge)}),{wrapperRef:R,isFocused:N}=T6(f,{beforeFocus(){return U.value},afterFocus(){e.automaticDropdown&&!k.value&&(k.value=!0,a.menuVisibleOnFocus=!0)},beforeBlur(ge){var Me,bt;return((Me=u.value)==null?void 0:Me.isFocusInsideContent(ge))||((bt=d.value)==null?void 0:bt.isFocusInsideContent(ge))},afterBlur(){k.value=!1,a.menuVisibleOnFocus=!1}}),k=ne(!1),L=ne(),{form:F,formItem:G}=Fo(),{inputId:V}=Fc(e,{formItemContext:G}),{valueOnClear:ae,isEmptyValue:ce}=fB(e),U=W(()=>e.disabled||(F==null?void 0:F.disabled)),J=W(()=>je(e.modelValue)?e.modelValue.length>0:!ce(e.modelValue)),Q=W(()=>e.clearable&&!U.value&&a.inputHovering&&J.value),X=W(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),B=W(()=>s.is("reverse",X.value&&k.value)),_e=W(()=>(G==null?void 0:G.validateState)||""),he=W(()=>V3[_e.value]),ie=W(()=>e.remote?300:0),oe=W(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&!a.inputValue&&a.options.size===0?!1:e.filterable&&a.inputValue&&a.options.size>0&&Ce.value===0?e.noMatchText||n("el.select.noMatch"):a.options.size===0?e.noDataText||n("el.select.noData"):null),Ce=W(()=>me.value.filter(ge=>ge.visible).length),me=W(()=>{const ge=Array.from(a.options.values()),Me=[];return a.optionValues.forEach(bt=>{const $t=ge.findIndex(dr=>dr.value===bt);$t>-1&&Me.push(ge[$t])}),Me.length>=ge.length?Me:ge}),q=W(()=>Array.from(a.cachedOptions.values())),Z=W(()=>{const ge=me.value.filter(Me=>!Me.created).some(Me=>Me.currentLabel===a.inputValue);return e.filterable&&e.allowCreate&&a.inputValue!==""&&!ge}),ve=()=>{e.filterable&&Ve(e.filterMethod)||e.filterable&&e.remote&&Ve(e.remoteMethod)||me.value.forEach(ge=>{var Me;(Me=ge.updateOption)==null||Me.call(ge,a.inputValue)})},Oe=xr(),Le=W(()=>["small"].includes(Oe.value)?"small":"default"),Ke=W({get(){return k.value&&oe.value!==!1},set(ge){k.value=ge}}),j=W(()=>{if(e.multiple&&!Zi(e.modelValue))return Yi(e.modelValue).length===0&&!a.inputValue;const ge=je(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||Zi(ge)?!a.inputValue:!0}),K=W(()=>{var ge;const Me=(ge=e.placeholder)!=null?ge:n("el.select.placeholder");return e.multiple||!J.value?Me:a.selectedLabel}),se=W(()=>Ug?null:"mouseenter");ze(()=>e.modelValue,(ge,Me)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(a.inputValue="",Ae("")),fe(),!Da(ge,Me)&&e.validateEvent&&(G==null||G.validate("change").catch(bt=>void 0))},{flush:"post",deep:!0}),ze(()=>k.value,ge=>{ge?Ae(a.inputValue):(a.inputValue="",a.previousQuery=null,a.isBeforeHide=!0),t("visible-change",ge)}),ze(()=>a.options.entries(),()=>{var ge;if(!Dt)return;const Me=((ge=l.value)==null?void 0:ge.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!Zi(e.modelValue)||!Array.from(Me).includes(document.activeElement))&&fe(),e.defaultFirstOption&&(e.filterable||e.remote)&&Ce.value&&de()},{flush:"post"}),ze(()=>a.hoveringIndex,ge=>{Qt(ge)&&ge>-1?L.value=me.value[ge]||{}:L.value={},me.value.forEach(Me=>{Me.hover=L.value===Me})}),yo(()=>{a.isBeforeHide||ve()});const Ae=ge=>{a.previousQuery===ge||C.value||(a.previousQuery=ge,e.filterable&&Ve(e.filterMethod)?e.filterMethod(ge):e.filterable&&e.remote&&Ve(e.remoteMethod)&&e.remoteMethod(ge),e.defaultFirstOption&&(e.filterable||e.remote)&&Ce.value?pt(de):pt(Pe))},de=()=>{const ge=me.value.filter($t=>$t.visible&&!$t.disabled&&!$t.states.groupDisabled),Me=ge.find($t=>$t.created),bt=ge[0];a.hoveringIndex=St(me.value,Me||bt)},fe=()=>{if(e.multiple)a.selectedLabel="";else{const Me=je(e.modelValue)?e.modelValue[0]:e.modelValue,bt=Se(Me);a.selectedLabel=bt.currentLabel,a.selected=[bt];return}const ge=[];Zi(e.modelValue)||Yi(e.modelValue).forEach(Me=>{ge.push(Se(Me))}),a.selected=ge},Se=ge=>{let Me;const bt=Hu(ge).toLowerCase()==="object",$t=Hu(ge).toLowerCase()==="null",dr=Hu(ge).toLowerCase()==="undefined";for(let yi=a.cachedOptions.size-1;yi>=0;yi--){const ai=q.value[yi];if(bt?xi(ai.value,e.valueKey)===xi(ge,e.valueKey):ai.value===ge){Me={value:ge,currentLabel:ai.currentLabel,get isDisabled(){return ai.isDisabled}};break}}if(Me)return Me;const vn=bt?ge.label:!$t&&!dr?ge:"";return{value:ge,currentLabel:vn}},Pe=()=>{a.hoveringIndex=me.value.findIndex(ge=>a.selected.some(Me=>jl(Me)===jl(ge)))},Ne=()=>{a.selectionWidth=c.value.getBoundingClientRect().width},be=()=>{a.calculatorWidth=h.value.getBoundingClientRect().width},$e=()=>{a.collapseItemWidth=w.value.getBoundingClientRect().width},pe=()=>{var ge,Me;(Me=(ge=u.value)==null?void 0:ge.updatePopper)==null||Me.call(ge)},le=()=>{var ge,Me;(Me=(ge=d.value)==null?void 0:ge.updatePopper)==null||Me.call(ge)},ke=()=>{a.inputValue.length>0&&!k.value&&(k.value=!0),Ae(a.inputValue)},Ye=ge=>{if(a.inputValue=ge.target.value,e.remote)Ct();else return ke()},Ct=Ra(()=>{ke()},ie.value),mt=ge=>{Da(e.modelValue,ge)||t(ym,ge)},Nt=ge=>zk(ge,Me=>!a.disabledOptions.has(Me)),De=ge=>{if(e.multiple&&ge.code!==Do.delete&&ge.target.value.length<=0){const Me=Yi(e.modelValue).slice(),bt=Nt(Me);if(bt<0)return;const $t=Me[bt];Me.splice(bt,1),t(Cn,Me),mt(Me),t("remove-tag",$t)}},He=(ge,Me)=>{const bt=a.selected.indexOf(Me);if(bt>-1&&!U.value){const $t=Yi(e.modelValue).slice();$t.splice(bt,1),t(Cn,$t),mt($t),t("remove-tag",Me.value)}ge.stopPropagation(),mn()},et=ge=>{ge.stopPropagation();const Me=e.multiple?[]:ae.value;if(e.multiple)for(const bt of a.selected)bt.isDisabled&&Me.push(bt.value);t(Cn,Me),mt(Me),a.hoveringIndex=-1,k.value=!1,t("clear"),mn()},ot=ge=>{var Me;if(e.multiple){const bt=Yi((Me=e.modelValue)!=null?Me:[]).slice(),$t=St(bt,ge.value);$t>-1?bt.splice($t,1):(e.multipleLimit<=0||bt.length<e.multipleLimit)&&bt.push(ge.value),t(Cn,bt),mt(bt),ge.created&&Ae(""),e.filterable&&!e.reserveKeyword&&(a.inputValue="")}else t(Cn,ge.value),mt(ge.value),k.value=!1;mn(),!k.value&&pt(()=>{vt(ge)})},St=(ge=[],Me)=>{if(!ct(Me))return ge.indexOf(Me);const bt=e.valueKey;let $t=-1;return ge.some((dr,vn)=>it(xi(dr,bt))===xi(Me,bt)?($t=vn,!0):!1),$t},vt=ge=>{var Me,bt,$t,dr,vn;const ua=je(ge)?ge[0]:ge;let yi=null;if(ua!=null&&ua.value){const ai=me.value.filter(ws=>ws.value===ua.value);ai.length>0&&(yi=ai[0].$el)}if(u.value&&yi){const ai=(dr=($t=(bt=(Me=u.value)==null?void 0:Me.popperRef)==null?void 0:bt.contentRef)==null?void 0:$t.querySelector)==null?void 0:dr.call($t,`.${s.be("dropdown","wrap")}`);ai&&sM(ai,yi)}(vn=x.value)==null||vn.handleScroll()},qt=ge=>{a.options.set(ge.value,ge),a.cachedOptions.set(ge.value,ge),ge.disabled&&a.disabledOptions.set(ge.value,ge)},Xn=(ge,Me)=>{a.options.get(ge)===Me&&a.options.delete(ge)},bi=W(()=>{var ge,Me;return(Me=(ge=u.value)==null?void 0:ge.popperRef)==null?void 0:Me.contentRef}),_s=()=>{a.isBeforeHide=!1,pt(()=>vt(a.selected))},mn=()=>{var ge;(ge=f.value)==null||ge.focus()},Fl=()=>{var ge;(ge=f.value)==null||ge.blur()},hy=ge=>{et(ge)},yp=()=>{k.value=!1,N.value&&Fl()},Bl=()=>{a.inputValue.length>0?a.inputValue="":k.value=!1},_p=()=>{U.value||(Ug&&(a.inputHovering=!0),a.menuVisibleOnFocus?a.menuVisibleOnFocus=!1:k.value=!k.value)},wp=()=>{k.value?me.value[a.hoveringIndex]&&ot(me.value[a.hoveringIndex]):_p()},jl=ge=>ct(ge.value)?xi(ge.value,e.valueKey):ge.value,py=W(()=>me.value.filter(ge=>ge.visible).every(ge=>ge.disabled)),Cp=W(()=>e.multiple?e.collapseTags?a.selected.slice(0,e.maxCollapseTags):a.selected:[]),Sp=W(()=>e.multiple?e.collapseTags?a.selected.slice(e.maxCollapseTags):[]:[]),cr=ge=>{if(!k.value){k.value=!0;return}if(!(a.options.size===0||a.filteredOptionsCount===0||C.value)&&!py.value){ge==="next"?(a.hoveringIndex++,a.hoveringIndex===a.options.size&&(a.hoveringIndex=0)):ge==="prev"&&(a.hoveringIndex--,a.hoveringIndex<0&&(a.hoveringIndex=a.options.size-1));const Me=me.value[a.hoveringIndex];(Me.disabled===!0||Me.states.groupDisabled===!0||!Me.visible)&&cr(ge),pt(()=>vt(L.value))}},jr=()=>{if(!c.value)return 0;const ge=window.getComputedStyle(c.value);return Number.parseFloat(ge.gap||"6px")},Ep=W(()=>{const ge=jr();return{maxWidth:`${w.value&&e.maxCollapseTags===1?a.selectionWidth-a.collapseItemWidth-ge:a.selectionWidth}px`}}),gy=W(()=>({maxWidth:`${a.selectionWidth}px`})),ur=W(()=>({width:`${Math.max(a.calculatorWidth,G$)}px`}));return ci(c,Ne),ci(h,be),ci(y,pe),ci(R,pe),ci(_,le),ci(w,$e),Lt(()=>{fe()}),{inputId:V,contentId:r,nsSelect:s,nsInput:o,states:a,isFocused:N,expanded:k,optionsArray:me,hoverOption:L,selectSize:Oe,filteredOptionsCount:Ce,resetCalculatorWidth:be,updateTooltip:pe,updateTagTooltip:le,debouncedOnInputChange:Ct,onInput:Ye,deletePrevTag:De,deleteTag:He,deleteSelected:et,handleOptionSelect:ot,scrollToOption:vt,hasModelValue:J,shouldShowPlaceholder:j,currentPlaceholder:K,mouseEnterEventName:se,showClose:Q,iconComponent:X,iconReverse:B,validateState:_e,validateIcon:he,showNewOption:Z,updateOptions:ve,collapseTagSize:Le,setSelected:fe,selectDisabled:U,emptyText:oe,handleCompositionStart:S,handleCompositionUpdate:A,handleCompositionEnd:O,onOptionCreate:qt,onOptionDestroy:Xn,handleMenuEnter:_s,focus:mn,blur:Fl,handleClearClick:hy,handleClickOutside:yp,handleEsc:Bl,toggleMenu:_p,selectOption:wp,getValueKey:jl,navigateOptions:cr,dropdownMenuVisible:Ke,showTagList:Cp,collapseTagList:Sp,tagStyle:Ep,collapseTagStyle:gy,inputStyle:ur,popperRef:bi,inputRef:f,tooltipRef:u,tagTooltipRef:d,calculatorRef:h,prefixRef:g,suffixRef:b,selectRef:l,wrapperRef:R,selectionRef:c,scrollbarRef:x,menuRef:y,tagMenuRef:_,collapseItemRef:w}};var K$=Te({name:"ElOptions",setup(e,{slots:t}){const n=Qe(vf);let r=[];return()=>{var s,o;const a=(s=t.default)==null?void 0:s.call(t),l=[];function c(u){je(u)&&u.forEach(d=>{var f,h,g,b;const y=(f=(d==null?void 0:d.type)||{})==null?void 0:f.name;y==="ElOptionGroup"?c(!st(d.children)&&!je(d.children)&&Ve((h=d.children)==null?void 0:h.default)?(g=d.children)==null?void 0:g.default():d.children):y==="ElOption"?l.push((b=d.props)==null?void 0:b.value):je(d.children)&&c(d.children)})}return a.length&&c((o=a[0])==null?void 0:o.children),Da(l,r)||(r=l,n&&(n.states.optionValues=l)),a}}});const J$=ht(we(we({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:Ms,effect:{type:Fe(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Fe(Object),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:Boolean,maxCollapseTags:{type:Number,default:1},teleported:di.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:ns,default:Gd},fitInputWidth:Boolean,suffixIcon:{type:ns,default:k3},tagType:Be(we({},u0.type),{default:"info"}),tagEffect:Be(we({},u0.effect),{default:"light"}),validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,placement:{type:Fe(String),values:Yd,default:"bottom-start"},fallbackPlacements:{type:Fe(Array),default:["bottom-start","top-start","right","left"]}},dB),Fs(["ariaLabel"]))),VC="ElSelect",Y$=Te({name:VC,componentName:VC,components:{ElSelectMenu:H$,ElOption:f0,ElOptions:K$,ElTag:zc,ElScrollbar:Vm,ElTooltip:fi,ElIcon:Ft},directives:{ClickOutside:pC},props:J$,emits:[Cn,ym,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=W(()=>{const{modelValue:o,multiple:a}=e,l=a?[]:void 0;return je(o)?a?o:l:a?l:o}),r=Dn(Be(we({},pr(e)),{modelValue:n})),s=W$(r,t);return an(vf,Dn({props:r,states:s.states,optionsArray:s.optionsArray,handleOptionSelect:s.handleOptionSelect,onOptionCreate:s.onOptionCreate,onOptionDestroy:s.onOptionDestroy,selectRef:s.selectRef,setSelected:s.setSelected})),Be(we({},s),{modelValue:n})}});function X$(e,t,n,r,s,o){const a=We("el-tag"),l=We("el-tooltip"),c=We("el-icon"),u=We("el-option"),d=We("el-options"),f=We("el-scrollbar"),h=We("el-select-menu"),g=vd("click-outside");return It((I(),z("div",{ref:"selectRef",class:Y([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[Hl(e.mouseEnterEventName)]:b=>e.states.inputHovering=!0,onMouseleave:b=>e.states.inputHovering=!1},[te(l,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,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,onBeforeShow:e.handleMenuEnter,onHide:b=>e.states.isBeforeHide=!1},{default:ee(()=>{var b;return[H("div",{ref:"wrapperRef",class:Y([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:gt(e.toggleMenu,["prevent"])},[e.$slots.prefix?(I(),z("div",{key:0,ref:"prefixRef",class:Y(e.nsSelect.e("prefix"))},[Re(e.$slots,"prefix")],2)):re("v-if",!0),H("div",{ref:"selectionRef",class:Y([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?Re(e.$slots,"tag",{key:0},()=>[(I(!0),z(qe,null,Tt(e.showTagList,y=>(I(),z("div",{key:e.getValueKey(y),class:Y(e.nsSelect.e("selected-item"))},[te(a,{closable:!e.selectDisabled&&!y.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Ze(e.tagStyle),onClose:_=>e.deleteTag(_,y)},{default:ee(()=>[H("span",{class:Y(e.nsSelect.e("tags-text"))},[Re(e.$slots,"label",{label:y.currentLabel,value:y.value},()=>[Je(Ie(y.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(I(),Ee(l,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:ee(()=>[H("div",{ref:"collapseItemRef",class:Y(e.nsSelect.e("selected-item"))},[te(a,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:Ze(e.collapseTagStyle)},{default:ee(()=>[H("span",{class:Y(e.nsSelect.e("tags-text"))}," + "+Ie(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:ee(()=>[H("div",{ref:"tagMenuRef",class:Y(e.nsSelect.e("selection"))},[(I(!0),z(qe,null,Tt(e.collapseTagList,y=>(I(),z("div",{key:e.getValueKey(y),class:Y(e.nsSelect.e("selected-item"))},[te(a,{class:"in-tooltip",closable:!e.selectDisabled&&!y.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:_=>e.deleteTag(_,y)},{default:ee(()=>[H("span",{class:Y(e.nsSelect.e("tags-text"))},[Re(e.$slots,"label",{label:y.currentLabel,value:y.value},()=>[Je(Ie(y.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):re("v-if",!0)]):re("v-if",!0),e.selectDisabled?re("v-if",!0):(I(),z("div",{key:1,class:Y([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[It(H("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":y=>e.states.inputValue=y,type:"text",name:e.name,class:Y([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Ze(e.inputStyle),role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((b=e.hoverOption)==null?void 0:b.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[Ki(gt(y=>e.navigateOptions("next"),["stop","prevent"]),["down"]),Ki(gt(y=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),Ki(gt(e.handleEsc,["stop","prevent"]),["esc"]),Ki(gt(e.selectOption,["stop","prevent"]),["enter"]),Ki(gt(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:gt(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[CO,e.states.inputValue]]),e.filterable?(I(),z("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:Y(e.nsSelect.e("input-calculator")),textContent:Ie(e.states.inputValue)},null,10,["textContent"])):re("v-if",!0)],2)),e.shouldShowPlaceholder?(I(),z("div",{key:2,class:Y([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?Re(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[H("span",null,Ie(e.currentPlaceholder),1)]):(I(),z("span",{key:1},Ie(e.currentPlaceholder),1))],2)):re("v-if",!0)],2),H("div",{ref:"suffixRef",class:Y(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(I(),Ee(c,{key:0,class:Y([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:ee(()=>[(I(),Ee(Zt(e.iconComponent)))]),_:1},8,["class"])):re("v-if",!0),e.showClose&&e.clearIcon?(I(),Ee(c,{key:1,class:Y([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:ee(()=>[(I(),Ee(Zt(e.clearIcon)))]),_:1},8,["class","onClick"])):re("v-if",!0),e.validateState&&e.validateIcon?(I(),Ee(c,{key:2,class:Y([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:ee(()=>[(I(),Ee(Zt(e.validateIcon)))]),_:1},8,["class"])):re("v-if",!0)],2)],10,["onClick"])]}),content:ee(()=>[te(h,{ref:"menuRef"},{default:ee(()=>[e.$slots.header?(I(),z("div",{key:0,class:Y(e.nsSelect.be("dropdown","header")),onClick:gt(()=>{},["stop"])},[Re(e.$slots,"header")],10,["onClick"])):re("v-if",!0),It(te(f,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:Y([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:ee(()=>[e.showNewOption?(I(),Ee(u,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):re("v-if",!0),te(d,null,{default:ee(()=>[Re(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[wn,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(I(),z("div",{key:1,class:Y(e.nsSelect.be("dropdown","loading"))},[Re(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(I(),z("div",{key:2,class:Y(e.nsSelect.be("dropdown","empty"))},[Re(e.$slots,"empty",{},()=>[H("span",null,Ie(e.emptyText),1)])],2)):re("v-if",!0),e.$slots.footer?(I(),z("div",{key:3,class:Y(e.nsSelect.be("dropdown","footer")),onClick:gt(()=>{},["stop"])},[Re(e.$slots,"footer")],10,["onClick"])):re("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","onBeforeShow","onHide"])],16,["onMouseleave"])),[[g,e.handleClickOutside,e.popperRef]])}var Z$=ft(Y$,[["render",X$],["__file","select.vue"]]);const Q$=Te({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=nt("select"),n=ne(null),r=xt(),s=ne([]);an($C,Dn(we({},pr(e))));const o=W(()=>s.value.some(u=>u.visible===!0)),a=u=>{var d,f;return((d=u.type)==null?void 0:d.name)==="ElOption"&&!!((f=u.component)!=null&&f.proxy)},l=u=>{const d=Yi(u),f=[];return d.forEach(h=>{var g,b;a(h)?f.push(h.component.proxy):(g=h.children)!=null&&g.length?f.push(...l(h.children)):(b=h.component)!=null&&b.subTree&&f.push(...l(h.component.subTree))}),f},c=()=>{s.value=l(r.subTree)};return Lt(()=>{c()}),JO(n,c,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:o,ns:t}}});function eV(e,t,n,r,s,o){return It((I(),z("ul",{ref:"groupRef",class:Y(e.ns.be("group","wrap"))},[H("li",{class:Y(e.ns.be("group","title"))},Ie(e.label),3),H("li",null,[H("ul",{class:Y(e.ns.b("group"))},[Re(e.$slots,"default")],2)])],2)),[[wn,e.visible]])}var zC=ft(Q$,[["render",eV],["__file","option-group.vue"]]);const bf=hn(Z$,{Option:f0,OptionGroup:zC}),yf=is(f0);is(zC);const tV=ht({trigger:Vc.trigger,placement:d0.placement,disabled:Vc.disabled,visible:di.visible,transition:di.transition,popperOptions:d0.popperOptions,tabindex:d0.tabindex,content:di.content,popperStyle:di.popperStyle,popperClass:di.popperClass,enterable:Be(we({},di.enterable),{default:!0}),effect:Be(we({},di.effect),{default:"light"}),teleported:di.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}}),nV={"update:visible":e=>ti(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},iV="onUpdate:visible",rV=Te(Be(we({},Te({name:"ElPopover"})),{props:tV,emits:nV,setup(e,{expose:t,emit:n}){const r=e,s=W(()=>r[iV]),o=nt("popover"),a=ne(),l=W(()=>{var _;return(_=P(a))==null?void 0:_.popperRef}),c=W(()=>[{width:Qi(r.width)},r.popperStyle]),u=W(()=>[o.b(),r.popperClass,{[o.m("plain")]:!!r.content}]),d=W(()=>r.transition===`${o.namespace.value}-fade-in-linear`),f=()=>{var _;(_=a.value)==null||_.hide()},h=()=>{n("before-enter")},g=()=>{n("before-leave")},b=()=>{n("after-enter")},y=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:l,hide:f}),(_,w)=>(I(),Ee(P(fi),An({ref_key:"tooltipRef",ref:a},_.$attrs,{trigger:_.trigger,placement:_.placement,disabled:_.disabled,visible:_.visible,transition:_.transition,"popper-options":_.popperOptions,tabindex:_.tabindex,content:_.content,offset:_.offset,"show-after":_.showAfter,"hide-after":_.hideAfter,"auto-close":_.autoClose,"show-arrow":_.showArrow,"aria-label":_.title,effect:_.effect,enterable:_.enterable,"popper-class":P(u),"popper-style":P(c),teleported:_.teleported,persistent:_.persistent,"gpu-acceleration":P(d),"onUpdate:visible":P(s),onBeforeShow:h,onBeforeHide:g,onShow:b,onHide:y}),{content:ee(()=>[_.title?(I(),z("div",{key:0,class:Y(P(o).e("title")),role:"title"},Ie(_.title),3)):re("v-if",!0),Re(_.$slots,"default",{},()=>[Je(Ie(_.content),1)])]),default:ee(()=>[_.$slots.reference?Re(_.$slots,"reference",{key:0}):re("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 sV=ft(rV,[["__file","popover.vue"]]);const qC=(e,t)=>{const n=t.arg||t.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=e)};var oV={mounted(e,t){qC(e,t)},updated(e,t){qC(e,t)}};const aV=kM(oV,"popover"),lV=hn(sV,{directive:aV}),cV=ht({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:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:Fe(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:Fe([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:Fe(Function),default:e=>`${e}%`}}),uV=Te(Be(we({},Te({name:"ElProgress"})),{props:cV,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=nt("progress"),s=W(()=>{const C={width:`${t.percentage}%`,animationDuration:`${t.duration}s`},S=x(t.percentage);return S.includes("gradient")?C.background=S:C.backgroundColor=S,C}),o=W(()=>(t.strokeWidth/t.width*100).toFixed(1)),a=W(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(o.value)/2}`,10):0),l=W(()=>{const C=a.value,S=t.type==="dashboard";return`
|
|
53
|
-
M 50 50
|
|
54
|
-
m 0 ${S?"":"-"}${C}
|
|
55
|
-
a ${C} ${C} 0 1 1 0 ${S?"-":""}${C*2}
|
|
56
|
-
a ${C} ${C} 0 1 1 0 ${S?"":"-"}${C*2}
|
|
57
|
-
`}),c=W(()=>2*Math.PI*a.value),u=W(()=>t.type==="dashboard"?.75:1),d=W(()=>`${-1*c.value*(1-u.value)/2}px`),f=W(()=>({strokeDasharray:`${c.value*u.value}px, ${c.value}px`,strokeDashoffset:d.value})),h=W(()=>({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"})),g=W(()=>{let C;return t.color?C=x(t.percentage):C=n[t.status]||n.default,C}),b=W(()=>t.status==="warning"?bm:t.type==="line"?t.status==="success"?mm:Gd:t.status==="success"?M3:ka),y=W(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),_=W(()=>t.format(t.percentage));function w(C){const S=100/C.length;return C.map((O,R)=>st(O)?{color:O,percentage:(R+1)*S}:O).sort((O,R)=>O.percentage-R.percentage)}const x=C=>{var S;const{color:A}=t;if(Ve(A))return A(C);if(st(A))return A;{const O=w(A);for(const R of O)if(R.percentage>C)return R.color;return(S=O[O.length-1])==null?void 0:S.color}};return(C,S)=>(I(),z("div",{class:Y([P(r).b(),P(r).m(C.type),P(r).is(C.status),{[P(r).m("without-text")]:!C.showText,[P(r).m("text-inside")]:C.textInside}]),role:"progressbar","aria-valuenow":C.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[C.type==="line"?(I(),z("div",{key:0,class:Y(P(r).b("bar"))},[H("div",{class:Y(P(r).be("bar","outer")),style:Ze({height:`${C.strokeWidth}px`})},[H("div",{class:Y([P(r).be("bar","inner"),{[P(r).bem("bar","inner","indeterminate")]:C.indeterminate},{[P(r).bem("bar","inner","striped")]:C.striped},{[P(r).bem("bar","inner","striped-flow")]:C.stripedFlow}]),style:Ze(P(s))},[(C.showText||C.$slots.default)&&C.textInside?(I(),z("div",{key:0,class:Y(P(r).be("bar","innerText"))},[Re(C.$slots,"default",{percentage:C.percentage},()=>[H("span",null,Ie(P(_)),1)])],2)):re("v-if",!0)],6)],6)],2)):(I(),z("div",{key:1,class:Y(P(r).b("circle")),style:Ze({height:`${C.width}px`,width:`${C.width}px`})},[(I(),z("svg",{viewBox:"0 0 100 100"},[H("path",{class:Y(P(r).be("circle","track")),d:P(l),stroke:`var(${P(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":C.strokeLinecap,"stroke-width":P(o),fill:"none",style:Ze(P(f))},null,14,["d","stroke","stroke-linecap","stroke-width"]),H("path",{class:Y(P(r).be("circle","path")),d:P(l),stroke:P(g),fill:"none",opacity:C.percentage?1:0,"stroke-linecap":C.strokeLinecap,"stroke-width":P(o),style:Ze(P(h))},null,14,["d","stroke","opacity","stroke-linecap","stroke-width"])]))],6)),(C.showText||C.$slots.default)&&!C.textInside?(I(),z("div",{key:2,class:Y(P(r).e("text")),style:Ze({fontSize:`${P(y)}px`})},[Re(C.$slots,"default",{percentage:C.percentage},()=>[C.status?(I(),Ee(P(Ft),{key:1},{default:ee(()=>[(I(),Ee(Zt(P(b))))]),_:1})):(I(),z("span",{key:0},Ie(P(_)),1))])],6)):re("v-if",!0)],10,["aria-valuenow"]))}}));var dV=ft(uV,[["__file","progress.vue"]]);const fV=hn(dV),h0=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},hV=function(e,t,n,r,s){if(!t&&!r&&(!s||Array.isArray(s)&&!s.length))return e;typeof n=="string"?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const o=r?null:function(l,c){return s?(Array.isArray(s)||(s=[s]),s.map(u=>typeof u=="string"?xi(l,u):u(l,c,e))):(t!=="$key"&&ct(l)&&"$value"in l&&(l=l.$value),[ct(l)?xi(l,t):l])},a=function(l,c){if(r)return r(l.value,c.value);for(let u=0,d=l.key.length;u<d;u++){if(l.key[u]<c.key[u])return-1;if(l.key[u]>c.key[u])return 1}return 0};return e.map((l,c)=>({value:l,index:c,key:o?o(l,c):null})).sort((l,c)=>{let u=a(l,c);return u||(u=l.index-c.index),u*+n}).map(l=>l.value)},HC=function(e,t){let n=null;return e.columns.forEach(r=>{r.id===t&&(n=r)}),n},pV=function(e,t){let n=null;for(let r=0;r<e.columns.length;r++){const s=e.columns[r];if(s.columnKey===t){n=s;break}}return n||No("ElTable",`No column matching with column-key: ${t}`),n},GC=function(e,t,n){const r=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return r?HC(e,r[0]):null},kn=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let r=e;for(const s of n)r=r[s];return`${r}`}else if(typeof t=="function")return t.call(null,e)},qo=function(e,t){const n={};return(e||[]).forEach((r,s)=>{n[kn(r,t)]={row:r,index:s}}),n};function gV(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if(yt(t,r)){const s=t[r];typeof s!="undefined"&&(n[r]=s)}return n}function p0(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function WC(e){return e===""||e!==void 0&&(e=p0(e),Number.isNaN(e)&&(e=80)),e}function mV(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function vV(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function _f(e,t,n,r,s,o){let a=o!=null?o:0,l=!1;const c=e.indexOf(t),u=c!==-1,d=s==null?void 0:s.call(null,t,o),f=g=>{g==="add"?e.push(t):e.splice(c,1),l=!0},h=g=>{let b=0;const y=(r==null?void 0:r.children)&&g[r.children];return y&&je(y)&&(b+=y.length,y.forEach(_=>{b+=h(_)})),b};return(!s||d)&&(ti(n)?n&&!u?f("add"):!n&&u&&f("remove"):f(u?"remove":"add")),!(r!=null&&r.checkStrictly)&&(r!=null&&r.children)&&je(t[r.children])&&t[r.children].forEach(g=>{_f(e,g,n!=null?n:!u,r,s,a+1),a+=h(g)+1}),l}function bV(e,t,n="children",r="hasChildren"){const s=a=>!(Array.isArray(a)&&a.length);function o(a,l,c){t(a,l,c),l.forEach(u=>{if(u[r]){t(u,null,c+1);return}const d=u[n];s(d)||o(u,d,c+1)})}e.forEach(a=>{if(a[r]){t(a,null,0);return}const l=a[n];s(l)||o(a,l,0)})}let Oi=null;function yV(e,t,n,r){if((Oi==null?void 0:Oi.trigger)===n)return;Oi==null||Oi();const s=r==null?void 0:r.refs.tableWrapper,o=s==null?void 0:s.dataset.prefix,a=we({strategy:"fixed"},e.popperOptions),l=te(fi,Be(we({content:t,virtualTriggering:!0,virtualRef:n,appendTo:s,placement:"top",transition:"none",offset:0,hideAfter:0},e),{popperOptions:a,onHide:()=>{Oi==null||Oi()}}));l.appContext=we(we({},r.appContext),r);const c=document.createElement("div");Co(l,c),l.component.exposed.onOpen();const u=s==null?void 0:s.querySelector(`.${o}-scrollbar__wrap`);Oi=()=>{Co(null,c),u==null||u.removeEventListener("scroll",Oi),Oi=null},Oi.trigger=n,u==null||u.addEventListener("scroll",Oi)}function KC(e){return e.children?Gk(e.children,KC):[e]}function JC(e,t){return e+t.colSpan}const YC=(e,t,n,r)=>{let s=0,o=e;const a=n.states.columns.value;if(r){const c=KC(r[e]);s=a.slice(0,a.indexOf(c[0])).reduce(JC,0),o=s+c.reduce(JC,0)-1}else s=e;let l;switch(t){case"left":o<n.states.fixedLeafColumnsLength.value&&(l="left");break;case"right":s>=a.length-n.states.rightFixedLeafColumnsLength.value&&(l="right");break;default:o<n.states.fixedLeafColumnsLength.value?l="left":s>=a.length-n.states.rightFixedLeafColumnsLength.value&&(l="right")}return l?{direction:l,start:s,after:o}:{}},g0=(e,t,n,r,s,o=0)=>{const a=[],{direction:l,start:c,after:u}=YC(t,n,r,s);if(l){const d=l==="left";a.push(`${e}-fixed-column--${l}`),d&&u+o===r.states.fixedLeafColumnsLength.value-1?a.push("is-last-column"):!d&&c-o===r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value&&a.push("is-first-column")}return a};function XC(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const m0=(e,t,n,r)=>{const{direction:s,start:o=0,after:a=0}=YC(e,t,n,r);if(!s)return;const l={},c=s==="left",u=n.states.columns.value;return c?l.left=u.slice(0,o).reduce(XC,0):l.right=u.slice(a+1).reverse().reduce(XC,0),l},Xa=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function _V(e){const t=xt(),n=ne(!1),r=ne([]);return{updateExpandRows:()=>{const c=e.data.value||[],u=e.rowKey.value;if(n.value)r.value=c.slice();else if(u){const d=qo(r.value,u);r.value=c.reduce((f,h)=>{const g=kn(h,u);return d[g]&&f.push(h),f},[])}else r.value=[]},toggleRowExpansion:(c,u)=>{_f(r.value,c,u)&&t.emit("expand-change",c,r.value.slice())},setExpandRowKeys:c=>{t.store.assertRowKey();const u=e.data.value||[],d=e.rowKey.value,f=qo(u,d);r.value=c.reduce((h,g)=>{const b=f[g];return b&&h.push(b.row),h},[])},isRowExpanded:c=>{const u=e.rowKey.value;return u?!!qo(r.value,u)[kn(c,u)]:r.value.includes(c)},states:{expandRows:r,defaultExpandAll:n}}}function wV(e){const t=xt(),n=ne(null),r=ne(null),s=u=>{t.store.assertRowKey(),n.value=u,a(u)},o=()=>{n.value=null},a=u=>{const{data:d,rowKey:f}=e;let h=null;f.value&&(h=(P(d)||[]).find(g=>kn(g,f.value)===u)),r.value=h,t.emit("current-change",r.value,null)};return{setCurrentRowKey:s,restoreCurrentRowKey:o,setCurrentRowByKey:a,updateCurrentRow:u=>{const d=r.value;if(u&&u!==d){r.value=u,t.emit("current-change",r.value,d);return}!u&&d&&(r.value=null,t.emit("current-change",null,d))},updateCurrentRowData:()=>{const u=e.rowKey.value,d=e.data.value||[],f=r.value;if(!d.includes(f)&&f){if(u){const h=kn(f,u);a(h)}else r.value=null;r.value===null&&t.emit("current-change",null,f)}else n.value&&(a(n.value),o())},states:{_currentRowKey:n,currentRow:r}}}function CV(e){const t=ne([]),n=ne({}),r=ne(16),s=ne(!1),o=ne({}),a=ne("hasChildren"),l=ne("children"),c=ne(!1),u=xt(),d=W(()=>{if(!e.rowKey.value)return{};const x=e.data.value||[];return h(x)}),f=W(()=>{const x=e.rowKey.value,C=Object.keys(o.value),S={};return C.length&&C.forEach(A=>{if(o.value[A].length){const O={children:[]};o.value[A].forEach(R=>{const N=kn(R,x);O.children.push(N),R[a.value]&&!S[N]&&(S[N]={children:[]})}),S[A]=O}}),S}),h=x=>{const C=e.rowKey.value,S={};return bV(x,(A,O,R)=>{const N=kn(A,C);Array.isArray(O)?S[N]={children:O.map(k=>kn(k,C)),level:R}:s.value&&(S[N]={children:[],lazy:!0,level:R})},l.value,a.value),S},g=(x=!1,C=(S=>(S=u.store)==null?void 0:S.states.defaultExpandAll.value)())=>{var S;const A=d.value,O=f.value,R=Object.keys(A),N={};if(R.length){const k=P(n),L=[],F=(V,ae)=>{if(x)return t.value?C||t.value.includes(ae):!!(C||V!=null&&V.expanded);{const ce=C||t.value&&t.value.includes(ae);return!!(V!=null&&V.expanded||ce)}};R.forEach(V=>{const ae=k[V],ce=we({},A[V]);if(ce.expanded=F(ae,V),ce.lazy){const{loaded:U=!1,loading:J=!1}=ae||{};ce.loaded=!!U,ce.loading=!!J,L.push(V)}N[V]=ce});const G=Object.keys(O);s.value&&G.length&&L.length&&G.forEach(V=>{const ae=k[V],ce=O[V].children;if(L.includes(V)){if(N[V].children.length!==0)throw new Error("[ElTable]children must be an empty array.");N[V].children=ce}else{const{loaded:U=!1,loading:J=!1}=ae||{};N[V]={lazy:!0,loaded:!!U,loading:!!J,expanded:F(ae,V),children:ce,level:""}}})}n.value=N,(S=u.store)==null||S.updateTableScrollY()};ze(()=>t.value,()=>{g(!0)}),ze(()=>d.value,()=>{g()}),ze(()=>f.value,()=>{g()});const b=x=>{t.value=x,g()},y=(x,C)=>{u.store.assertRowKey();const S=e.rowKey.value,A=kn(x,S),O=A&&n.value[A];if(A&&O&&"expanded"in O){const R=O.expanded;C=typeof C=="undefined"?!O.expanded:C,n.value[A].expanded=C,R!==C&&u.emit("expand-change",x,C),u.store.updateTableScrollY()}},_=x=>{u.store.assertRowKey();const C=e.rowKey.value,S=kn(x,C),A=n.value[S];s.value&&A&&"loaded"in A&&!A.loaded?w(x,S,A):y(x,void 0)},w=(x,C,S)=>{const{load:A}=u.props;A&&!n.value[C].loaded&&(n.value[C].loading=!0,A(x,S,O=>{if(!Array.isArray(O))throw new TypeError("[ElTable] data must be an array");n.value[C].loading=!1,n.value[C].loaded=!0,n.value[C].expanded=!0,O.length&&(o.value[C]=O),u.emit("expand-change",x,!0)}))};return{loadData:w,loadOrToggle:_,toggleTreeExpansion:y,updateTreeExpandKeys:b,updateTreeData:g,normalize:h,states:{expandRowKeys:t,treeData:n,indent:r,lazy:s,lazyTreeNodeMap:o,lazyColumnIdentifier:a,childrenColumnName:l,checkStrictly:c}}}const SV=(e,t)=>{const n=t.sortingColumn;return!n||typeof n.sortable=="string"?e:hV(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},wf=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,wf(n.children)):t.push(n)}),t};function EV(){var e;const t=xt(),{size:n}=pr((e=t.proxy)==null?void 0:e.$props),r=ne(null),s=ne([]),o=ne([]),a=ne(!1),l=ne([]),c=ne([]),u=ne([]),d=ne([]),f=ne([]),h=ne([]),g=ne([]),b=ne([]),y=[],_=ne(0),w=ne(0),x=ne(0),C=ne(!1),S=ne([]),A=ne(!1),O=ne(!1),R=ne(null),N=ne({}),k=ne(null),L=ne(null),F=ne(null),G=ne(null),V=ne(null);ze(s,()=>t.state&&Q(!1),{deep:!0});const ae=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},ce=De=>{var He;(He=De.children)==null||He.forEach(et=>{et.fixed=De.fixed,ce(et)})};let U;const J=()=>{l.value.forEach(St=>{ce(St)}),d.value=l.value.filter(St=>St.fixed===!0||St.fixed==="left"),f.value=l.value.filter(St=>St.fixed==="right"),Zi(U)&&l.value[0]&&l.value[0].type==="selection"&&(U=!!l.value[0].fixed),d.value.length>0&&l.value[0]&&l.value[0].type==="selection"&&(l.value[0].fixed?d.value.some(vt=>vt.type!=="selection")?U=void 0:(l.value[0].fixed=U,U||d.value.shift()):(l.value[0].fixed=!0,d.value.unshift(l.value[0])));const De=l.value.filter(St=>!St.fixed);c.value=[].concat(d.value).concat(De).concat(f.value);const He=wf(De),et=wf(d.value),ot=wf(f.value);_.value=He.length,w.value=et.length,x.value=ot.length,u.value=[].concat(et).concat(He).concat(ot),a.value=d.value.length>0||f.value.length>0},Q=(De,He=!1)=>{De&&J(),He?t.state.doLayout():t.state.debouncedUpdateLayout()},X=De=>S.value.some(He=>Da(He,De)),B=()=>{C.value=!1;const De=S.value;S.value=[],De.length&&t.emit("selection-change",[])},_e=()=>{let De;if(r.value){De=[];const He=qo(S.value,r.value),et=qo(s.value,r.value);for(const ot in He)yt(He,ot)&&!et[ot]&&De.push(He[ot].row)}else De=S.value.filter(He=>!s.value.includes(He));if(De.length){const He=S.value.filter(et=>!De.includes(et));S.value=He,t.emit("selection-change",He.slice())}},he=()=>(S.value||[]).slice(),ie=(De,He,et=!0,ot=!1)=>{var St,vt,qt,Xn;const bi={children:(vt=(St=t==null?void 0:t.store)==null?void 0:St.states)==null?void 0:vt.childrenColumnName.value,checkStrictly:(Xn=(qt=t==null?void 0:t.store)==null?void 0:qt.states)==null?void 0:Xn.checkStrictly.value};if(_f(S.value,De,He,bi,ot?void 0:R.value)){const mn=(S.value||[]).slice();et&&t.emit("select",mn,De),t.emit("selection-change",mn)}},oe=()=>{var De,He;const et=O.value?!C.value:!(C.value||S.value.length);C.value=et;let ot=!1,St=0;const vt=(He=(De=t==null?void 0:t.store)==null?void 0:De.states)==null?void 0:He.rowKey.value,{childrenColumnName:qt}=t.store.states,Xn={children:qt.value,checkStrictly:!1};s.value.forEach((bi,_s)=>{const mn=_s+St;_f(S.value,bi,et,Xn,R.value,mn)&&(ot=!0),St+=q(kn(bi,vt))}),ot&&t.emit("selection-change",S.value?S.value.slice():[]),t.emit("select-all",(S.value||[]).slice())},Ce=()=>{const De=qo(S.value,r.value);s.value.forEach(He=>{const et=kn(He,r.value),ot=De[et];ot&&(S.value[ot.index]=He)})},me=()=>{var De;if(((De=s.value)==null?void 0:De.length)===0){C.value=!1;return}const{childrenColumnName:He}=t.store.states,et=r.value?qo(S.value,r.value):void 0;let ot=0,St=0;const vt=bi=>et?!!et[kn(bi,r.value)]:S.value.includes(bi),qt=bi=>{var _s;for(const mn of bi){const Fl=R.value&&R.value.call(null,mn,ot);if(vt(mn))St++;else if(!R.value||Fl)return!1;if(ot++,(_s=mn[He.value])!=null&&_s.length&&!qt(mn[He.value]))return!1}return!0},Xn=qt(s.value||[]);C.value=St===0?!1:Xn},q=De=>{var He;if(!t||!t.store)return 0;const{treeData:et}=t.store.states;let ot=0;const St=(He=et.value[De])==null?void 0:He.children;return St&&(ot+=St.length,St.forEach(vt=>{ot+=q(vt)})),ot},Z=(De,He)=>{Array.isArray(De)||(De=[De]);const et={};return De.forEach(ot=>{N.value[ot.id]=He,et[ot.columnKey||ot.id]=He}),et},ve=(De,He,et)=>{L.value&&L.value!==De&&(L.value.order=null),L.value=De,F.value=He,G.value=et},Oe=()=>{let De=P(o);Object.keys(N.value).forEach(He=>{const et=N.value[He];if(!et||et.length===0)return;const ot=HC({columns:u.value},He);ot&&ot.filterMethod&&(De=De.filter(St=>et.some(vt=>ot.filterMethod.call(null,vt,St,ot))))}),k.value=De},Le=()=>{s.value=SV(k.value,{sortingColumn:L.value,sortProp:F.value,sortOrder:G.value})},Ke=(De=void 0)=>{De&&De.filter||Oe(),Le()},j=De=>{const{tableHeaderRef:He}=t.refs;if(!He)return;const et=Object.assign({},He.filterPanels),ot=Object.keys(et);if(ot.length)if(typeof De=="string"&&(De=[De]),Array.isArray(De)){const St=De.map(vt=>pV({columns:u.value},vt));ot.forEach(vt=>{const qt=St.find(Xn=>Xn.id===vt);qt&&(qt.filteredValue=[])}),t.store.commit("filterChange",{column:St,values:[],silent:!0,multi:!0})}else ot.forEach(St=>{const vt=u.value.find(qt=>qt.id===St);vt&&(vt.filteredValue=[])}),N.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},K=()=>{L.value&&(ve(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:se,toggleRowExpansion:Ae,updateExpandRows:de,states:fe,isRowExpanded:Se}=_V({data:s,rowKey:r}),{updateTreeExpandKeys:Pe,toggleTreeExpansion:Ne,updateTreeData:be,loadOrToggle:$e,states:pe}=CV({data:s,rowKey:r}),{updateCurrentRowData:le,updateCurrentRow:ke,setCurrentRowKey:Ye,states:Ct}=wV({data:s,rowKey:r});return{assertRowKey:ae,updateColumns:J,scheduleLayout:Q,isSelected:X,clearSelection:B,cleanSelection:_e,getSelectionRows:he,toggleRowSelection:ie,_toggleAllSelection:oe,toggleAllSelection:null,updateSelectionByRowKey:Ce,updateAllSelected:me,updateFilters:Z,updateCurrentRow:ke,updateSort:ve,execFilter:Oe,execSort:Le,execQuery:Ke,clearFilter:j,clearSort:K,toggleRowExpansion:Ae,setExpandRowKeysAdapter:De=>{se(De),Pe(De)},setCurrentRowKey:Ye,toggleRowExpansionAdapter:(De,He)=>{u.value.some(({type:ot})=>ot==="expand")?Ae(De,He):Ne(De,He)},isRowExpanded:Se,updateExpandRows:de,updateCurrentRowData:le,loadOrToggle:$e,updateTreeData:be,states:we(we(we({tableSize:n,rowKey:r,data:s,_data:o,isComplex:a,_columns:l,originColumns:c,columns:u,fixedColumns:d,rightFixedColumns:f,leafColumns:h,fixedLeafColumns:g,rightFixedLeafColumns:b,updateOrderFns:y,leafColumnsLength:_,fixedLeafColumnsLength:w,rightFixedLeafColumnsLength:x,isAllSelected:C,selection:S,reserveSelection:A,selectOnIndeterminate:O,selectable:R,filters:N,filteredData:k,sortingColumn:L,sortProp:F,sortOrder:G,hoverRow:V},fe),pe),Ct)}}function v0(e,t){return e.map(n=>{var r;return n.id===t.id?t:((r=n.children)!=null&&r.length&&(n.children=v0(n.children,t)),n)})}function b0(e){e.forEach(t=>{var n,r;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(r=t.children)!=null&&r.length&&b0(t.children)}),e.sort((t,n)=>t.no-n.no)}function xV(){const e=xt(),t=EV(),n=nt("table"),r={setData(a,l){const c=P(a._data)!==l;a.data.value=l,a._data.value=l,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),P(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,l,c,u){const d=P(a._columns);let f=[];c?(c&&!c.children&&(c.children=[]),c.children.push(l),f=v0(d,c)):(d.push(l),f=d),b0(f),a._columns.value=f,a.updateOrderFns.push(u),l.type==="selection"&&(a.selectable.value=l.selectable,a.reserveSelection.value=l.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(a,l){var c;((c=l.getColumnIndex)==null?void 0:c.call(l))!==l.no&&(b0(a._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(a,l,c,u){const d=P(a._columns)||[];if(c)c.children.splice(c.children.findIndex(h=>h.id===l.id),1),pt(()=>{var h;((h=c.children)==null?void 0:h.length)===0&&delete c.children}),a._columns.value=v0(d,c);else{const h=d.indexOf(l);h>-1&&(d.splice(h,1),a._columns.value=d)}const f=a.updateOrderFns.indexOf(u);f>-1&&a.updateOrderFns.splice(f,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(a,l){const{prop:c,order:u,init:d}=l;if(c){const f=P(a.columns).find(h=>h.property===c);f&&(f.order=u,e.store.updateSort(f,c,u),e.store.commit("changeSortCondition",{init:d}))}},changeSortCondition(a,l){const{sortingColumn:c,sortProp:u,sortOrder:d}=a,f=P(c),h=P(u),g=P(d);g===null&&(a.sortingColumn.value=null,a.sortProp.value=null);const b={filter:!0};e.store.execQuery(b),(!l||!(l.silent||l.init))&&e.emit("sort-change",{column:f,prop:h,order:g}),e.store.updateTableScrollY()},filterChange(a,l){const{column:c,values:u,silent:d}=l,f=e.store.updateFilters(c,u);e.store.execQuery(),d||e.emit("filter-change",f),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(a,l){e.store.toggleRowSelection(l),e.store.updateAllSelected()},setHoverRow(a,l){a.hoverRow.value=l},setCurrentRow(a,l){e.store.updateCurrentRow(l)}},s=function(a,...l){const c=e.store.mutations;if(c[a])c[a].apply(e,[e.store.states].concat(l));else throw new Error(`Action not found: ${a}`)},o=function(){pt(()=>e.layout.updateScrollY.apply(e.layout))};return Be(we({ns:n},t),{mutations:r,commit:s,updateTableScrollY:o})}const Hc={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"},"treeProps.checkStrictly":{key:"checkStrictly",default:!1}};function AV(e,t){if(!e)throw new Error("Table is required.");const n=xV();return n.toggleAllSelection=Ra(n._toggleAllSelection,10),Object.keys(Hc).forEach(r=>{ZC(QC(t,r),r,n)}),PV(n,t),n}function PV(e,t){Object.keys(Hc).forEach(n=>{ze(()=>QC(t,n),r=>{ZC(r,n,e)})})}function ZC(e,t,n){let r=e,s=Hc[t];typeof Hc[t]=="object"&&(s=s.key,r=r||Hc[t].default),n.states[s].value=r}function QC(e,t){if(t.includes(".")){const n=t.split(".");let r=e;return n.forEach(s=>{r=r[s]}),r}else return e[t]}class TV{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=ne(null),this.scrollX=ne(!1),this.scrollY=ne(!1),this.bodyWidth=ne(null),this.fixedWidth=ne(null),this.rightFixedWidth=ne(null),this.gutterWidth=0;for(const n in t)yt(t,n)&&(Mt(this[n])?this[n].value=t[n]:this[n]=t[n]);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 n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n!=null&&n.wrapRef)){let r=!0;const s=this.scrollY.value;return r=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=r,s!==r}return!1}setHeight(t,n="height"){if(!Dt)return;const r=this.table.vnode.el;if(t=mV(t),this.height.value=Number(t),!r&&(t||t===0))return pt(()=>this.setHeight(t,n));typeof t=="number"?(r.style[n]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(r.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(r=>{r.isColumnGroup?t.push.apply(t,r.columns):t.push(r)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){if(!Dt)return;const t=this.fit,n=this.table.vnode.el.clientWidth;let r=0;const s=this.getFlattenColumns(),o=s.filter(c=>typeof c.width!="number");if(s.forEach(c=>{typeof c.width=="number"&&c.realWidth&&(c.realWidth=null)}),o.length>0&&t){if(s.forEach(c=>{r+=Number(c.width||c.minWidth||80)}),r<=n){this.scrollX.value=!1;const c=n-r;if(o.length===1)o[0].realWidth=Number(o[0].minWidth||80)+c;else{const u=o.reduce((h,g)=>h+Number(g.minWidth||80),0),d=c/u;let f=0;o.forEach((h,g)=>{if(g===0)return;const b=Math.floor(Number(h.minWidth||80)*d);f+=b,h.realWidth=Number(h.minWidth||80)+b}),o[0].realWidth=Number(o[0].minWidth||80)+c-f}}else this.scrollX.value=!0,o.forEach(c=>{c.realWidth=Number(c.minWidth)});this.bodyWidth.value=Math.max(r,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else s.forEach(c=>{!c.width&&!c.minWidth?c.realWidth=80:c.realWidth=Number(c.width||c.minWidth),r+=c.realWidth}),this.scrollX.value=r>n,this.bodyWidth.value=r;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 l=this.store.states.rightFixedColumns.value;if(l.length>0){let c=0;l.forEach(u=>{c+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=c}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(r=>{var s,o;switch(t){case"columns":(s=r.state)==null||s.onColumnsChange(this);break;case"scrollable":(o=r.state)==null||o.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:OV}=Ya,NV=Te({name:"ElTableFilterPanel",components:{ElCheckbox:Ya,ElCheckboxGroup:OV,ElScrollbar:Vm,ElTooltip:fi,ElIcon:Ft,ArrowDown:k3,ArrowUp:cM},directives:{ClickOutside:pC},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=xt(),{t:n}=Ba(),r=nt("table-filter"),s=t==null?void 0:t.parent;s.filterPanels.value[e.column.id]||(s.filterPanels.value[e.column.id]=t);const o=ne(!1),a=ne(null),l=W(()=>e.column&&e.column.filters),c=W(()=>e.column.filterClassName?`${r.b()} ${e.column.filterClassName}`:r.b()),u=W({get:()=>{var A;return(((A=e.column)==null?void 0:A.filteredValue)||[])[0]},set:A=>{d.value&&(typeof A!="undefined"&&A!==null?d.value.splice(0,1,A):d.value.splice(0,1))}}),d=W({get(){return e.column?e.column.filteredValue||[]:[]},set(A){e.column&&e.upDataColumn("filteredValue",A)}}),f=W(()=>e.column?e.column.filterMultiple:!0),h=A=>A.value===u.value,g=()=>{o.value=!1},b=A=>{A.stopPropagation(),o.value=!o.value},y=()=>{o.value=!1},_=()=>{C(d.value),g()},w=()=>{d.value=[],C(d.value),g()},x=A=>{u.value=A,C(typeof A!="undefined"&&A!==null?d.value:[]),g()},C=A=>{e.store.commit("filterChange",{column:e.column,values:A}),e.store.updateAllSelected()};ze(o,A=>{e.column&&e.upDataColumn("filterOpened",A)},{immediate:!0});const S=W(()=>{var A,O;return(O=(A=a.value)==null?void 0:A.popperRef)==null?void 0:O.contentRef});return{tooltipVisible:o,multiple:f,filterClassName:c,filteredValue:d,filterValue:u,filters:l,handleConfirm:_,handleReset:w,handleSelect:x,isActive:h,t:n,ns:r,showFilterPanel:b,hideFilterPanel:y,popperPaneRef:S,tooltip:a}}});function IV(e,t,n,r,s,o){const a=We("el-checkbox"),l=We("el-checkbox-group"),c=We("el-scrollbar"),u=We("arrow-up"),d=We("arrow-down"),f=We("el-icon"),h=We("el-tooltip"),g=vd("click-outside");return I(),Ee(h,{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.filterClassName,persistent:""},{content:ee(()=>[e.multiple?(I(),z("div",{key:0},[H("div",{class:Y(e.ns.e("content"))},[te(c,{"wrap-class":e.ns.e("wrap")},{default:ee(()=>[te(l,{modelValue:e.filteredValue,"onUpdate:modelValue":b=>e.filteredValue=b,class:Y(e.ns.e("checkbox-group"))},{default:ee(()=>[(I(!0),z(qe,null,Tt(e.filters,b=>(I(),Ee(a,{key:b.value,value:b.value},{default:ee(()=>[Je(Ie(b.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"])]),_:1},8,["wrap-class"])],2),H("div",{class:Y(e.ns.e("bottom"))},[H("button",{class:Y({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:e.handleConfirm},Ie(e.t("el.table.confirmFilter")),11,["disabled","onClick"]),H("button",{type:"button",onClick:e.handleReset},Ie(e.t("el.table.resetFilter")),9,["onClick"])],2)])):(I(),z("ul",{key:1,class:Y(e.ns.e("list"))},[H("li",{class:Y([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:b=>e.handleSelect(null)},Ie(e.t("el.table.clearFilter")),11,["onClick"]),(I(!0),z(qe,null,Tt(e.filters,b=>(I(),z("li",{key:b.value,class:Y([e.ns.e("list-item"),e.ns.is("active",e.isActive(b))]),label:b.value,onClick:y=>e.handleSelect(b.value)},Ie(b.text),11,["label","onClick"]))),128))],2))]),default:ee(()=>[It((I(),z("span",{class:Y([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:e.showFilterPanel},[te(f,null,{default:ee(()=>[Re(e.$slots,"filter-icon",{},()=>[e.column.filterOpened?(I(),Ee(u,{key:0})):(I(),Ee(d,{key:1}))])]),_:3})],10,["onClick"])),[[g,e.hideFilterPanel,e.popperPaneRef]])]),_:3},8,["visible","placement","popper-class"])}var RV=ft(NV,[["render",IV],["__file","filter-panel.vue"]]);function eS(e){const t=xt();tc(()=>{n.value.addObserver(t)}),Lt(()=>{r(n.value),s(n.value)}),nc(()=>{r(n.value),s(n.value)}),vo(()=>{n.value.removeObserver(t)});const n=W(()=>{const o=e.layout;if(!o)throw new Error("Can not find table layout.");return o}),r=o=>{var a;const l=((a=e.vnode.el)==null?void 0:a.querySelectorAll("colgroup > col"))||[];if(!l.length)return;const c=o.getFlattenColumns(),u={};c.forEach(d=>{u[d.id]=d});for(let d=0,f=l.length;d<f;d++){const h=l[d],g=h.getAttribute("name"),b=u[g];b&&h.setAttribute("width",b.realWidth||b.width)}},s=o=>{var a,l;const c=((a=e.vnode.el)==null?void 0:a.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let d=0,f=c.length;d<f;d++)c[d].setAttribute("width",o.scrollY.value?o.gutterWidth:"0");const u=((l=e.vnode.el)==null?void 0:l.querySelectorAll("th.gutter"))||[];for(let d=0,f=u.length;d<f;d++){const h=u[d];h.style.width=o.scrollY.value?`${o.gutterWidth}px`:"0",h.style.display=o.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:r,onScrollableChange:s}}const Ar=Symbol("ElTable");function DV(e,t){const n=xt(),r=Qe(Ar),s=y=>{y.stopPropagation()},o=(y,_)=>{!_.filters&&_.sortable?b(y,_,!1):_.filterable&&!_.sortable&&s(y),r==null||r.emit("header-click",_,y)},a=(y,_)=>{r==null||r.emit("header-contextmenu",_,y)},l=ne(null),c=ne(!1),u=ne({}),d=(y,_)=>{if(Dt&&!(_.children&&_.children.length>0)&&l.value&&e.border){c.value=!0;const w=r;t("set-drag-visible",!0);const C=(w==null?void 0:w.vnode.el).getBoundingClientRect().left,S=n.vnode.el.querySelector(`th.${_.id}`),A=S.getBoundingClientRect(),O=A.left-C+30;Ro(S,"noclick"),u.value={startMouseLeft:y.clientX,startLeft:A.right-C,startColumnLeft:A.left-C,tableLeft:C};const R=w==null?void 0:w.refs.resizeProxy;R.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const N=L=>{const F=L.clientX-u.value.startMouseLeft,G=u.value.startLeft+F;R.style.left=`${Math.max(O,G)}px`},k=()=>{if(c.value){const{startColumnLeft:L,startLeft:F}=u.value,V=Number.parseInt(R.style.left,10)-L;_.width=_.realWidth=V,w==null||w.emit("header-dragend",_.width,F-L,_,y),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",c.value=!1,l.value=null,u.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",N),document.removeEventListener("mouseup",k),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{_r(S,"noclick")},0)};document.addEventListener("mousemove",N),document.addEventListener("mouseup",k)}},f=(y,_)=>{if(_.children&&_.children.length>0)return;const w=y.target;if(!yr(w))return;const x=w==null?void 0:w.closest("th");if(!(!_||!_.resizable)&&!c.value&&e.border){const C=x.getBoundingClientRect(),S=document.body.style;C.width>12&&C.right-y.pageX<8?(S.cursor="col-resize",Io(x,"is-sortable")&&(x.style.cursor="col-resize"),l.value=_):c.value||(S.cursor="",Io(x,"is-sortable")&&(x.style.cursor="pointer"),l.value=null)}},h=()=>{Dt&&(document.body.style.cursor="")},g=({order:y,sortOrders:_})=>{if(y==="")return _[0];const w=_.indexOf(y||null);return _[w>_.length-2?0:w+1]},b=(y,_,w)=>{var x;y.stopPropagation();const C=_.order===w?null:w||g(_),S=(x=y.target)==null?void 0:x.closest("th");if(S&&Io(S,"noclick")){_r(S,"noclick");return}if(!_.sortable)return;const A=y.currentTarget;if(["ascending","descending"].some(L=>Io(A,L)&&!_.sortOrders.includes(L)))return;const O=e.store.states;let R=O.sortProp.value,N;const k=O.sortingColumn.value;(k!==_||k===_&&k.order===null)&&(k&&(k.order=null),O.sortingColumn.value=_,R=_.property),C?N=_.order=C:N=_.order=null,O.sortProp.value=R,O.sortOrder.value=N,r==null||r.store.commit("changeSortCondition")};return{handleHeaderClick:o,handleHeaderContextMenu:a,handleMouseDown:d,handleMouseMove:f,handleMouseOut:h,handleSortClick:b,handleFilterClick:s}}function LV(e){const t=Qe(Ar),n=nt("table");return{getHeaderRowStyle:l=>{const c=t==null?void 0:t.props.headerRowStyle;return typeof c=="function"?c.call(null,{rowIndex:l}):c},getHeaderRowClass:l=>{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:l})),c.join(" ")},getHeaderCellStyle:(l,c,u,d)=>{var f;let h=(f=t==null?void 0:t.props.headerCellStyle)!=null?f:{};typeof h=="function"&&(h=h.call(null,{rowIndex:l,columnIndex:c,row:u,column:d}));const g=m0(c,d.fixed,e.store,u);return Xa(g,"left"),Xa(g,"right"),Object.assign({},h,g)},getHeaderCellClass:(l,c,u,d)=>{const f=g0(n.b(),c,d.fixed,e.store,u),h=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...f];d.children||h.push("is-leaf"),d.sortable&&h.push("is-sortable");const g=t==null?void 0:t.props.headerCellClassName;return typeof g=="string"?h.push(g):typeof g=="function"&&h.push(g.call(null,{rowIndex:l,columnIndex:c,row:u,column:d})),h.push(n.e("cell")),h.filter(b=>!!b).join(" ")}}}const tS=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,tS(n.children))):t.push(n)}),t},nS=e=>{let t=1;const n=(o,a)=>{if(a&&(o.level=a.level+1,t<o.level&&(t=o.level)),o.children){let l=0;o.children.forEach(c=>{n(c,o),l+=c.colSpan}),o.colSpan=l}else o.colSpan=1};e.forEach(o=>{o.level=1,n(o,void 0)});const r=[];for(let o=0;o<t;o++)r.push([]);return tS(e).forEach(o=>{o.children?(o.rowSpan=1,o.children.forEach(a=>a.isSubColumn=!0)):o.rowSpan=t-o.level+1,r[o.level-1].push(o)}),r};function kV(e){const t=Qe(Ar),n=W(()=>nS(e.store.states.originColumns.value));return{isGroup:W(()=>{const o=n.value.length>1;return o&&t&&(t.state.isGroup.value=!0),o}),toggleAllSelection:o=>{o.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var MV=Te({name:"ElTableHeader",components:{ElCheckbox:Ya},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const n=xt(),r=Qe(Ar),s=nt("table"),o=ne({}),{onColumnsChange:a,onScrollableChange:l}=eS(r);Lt(()=>at(this,null,function*(){yield pt(),yield pt();const{prop:O,order:R}=e.defaultSort;r==null||r.store.commit("sort",{prop:O,order:R,init:!0})}));const{handleHeaderClick:c,handleHeaderContextMenu:u,handleMouseDown:d,handleMouseMove:f,handleMouseOut:h,handleSortClick:g,handleFilterClick:b}=DV(e,t),{getHeaderRowStyle:y,getHeaderRowClass:_,getHeaderCellStyle:w,getHeaderCellClass:x}=LV(e),{isGroup:C,toggleAllSelection:S,columnRows:A}=kV(e);return n.state={onColumnsChange:a,onScrollableChange:l},n.filterPanels=o,{ns:s,filterPanels:o,onColumnsChange:a,onScrollableChange:l,columnRows:A,getHeaderRowClass:_,getHeaderRowStyle:y,getHeaderCellClass:x,getHeaderCellStyle:w,handleHeaderClick:c,handleHeaderContextMenu:u,handleMouseDown:d,handleMouseMove:f,handleMouseOut:h,handleSortClick:g,handleFilterClick:b,isGroup:C,toggleAllSelection:S}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:r,getHeaderCellClass:s,getHeaderRowClass:o,getHeaderRowStyle:a,handleHeaderClick:l,handleHeaderContextMenu:c,handleMouseDown:u,handleMouseMove:d,handleSortClick:f,handleMouseOut:h,store:g,$parent:b}=this;let y=1;return dt("thead",{class:{[e.is("group")]:t}},n.map((_,w)=>dt("tr",{class:o(w),key:w,style:a(w)},_.map((x,C)=>(x.rowSpan>y&&(y=x.rowSpan),dt("th",{class:s(w,C,_,x),colspan:x.colSpan,key:`${x.id}-thead`,rowspan:x.rowSpan,style:r(w,C,_,x),onClick:S=>{S.currentTarget.classList.contains("noclick")||l(S,x)},onContextmenu:S=>c(S,x),onMousedown:S=>u(S,x),onMousemove:S=>d(S,x),onMouseout:h},[dt("div",{class:["cell",x.filteredValue&&x.filteredValue.length>0?"highlight":""]},[x.renderHeader?x.renderHeader({column:x,$index:C,store:g,_self:b}):x.label,x.sortable&&dt("span",{onClick:S=>f(S,x),class:"caret-wrapper"},[dt("i",{onClick:S=>f(S,x,"ascending"),class:"sort-caret ascending"}),dt("i",{onClick:S=>f(S,x,"descending"),class:"sort-caret descending"})]),x.filterable&&dt(RV,{store:g,placement:x.filterPlacement||"bottom-start",column:x,upDataColumn:(S,A)=>{x[S]=A}},{"filter-icon":()=>x.renderFilterIcon?x.renderFilterIcon({filterOpened:x.filterOpened}):null})])]))))))}});function y0(e,t,n=.03){return e-t>n}function FV(e){const t=Qe(Ar),n=ne(""),r=ne(dt("div")),s=(b,y,_)=>{var w;const x=t,C=h0(b);let S;const A=(w=x==null?void 0:x.vnode.el)==null?void 0:w.dataset.prefix;C&&(S=GC({columns:e.store.states.columns.value},C,A),S&&(x==null||x.emit(`cell-${_}`,y,S,C,b))),x==null||x.emit(`row-${_}`,y,S,b)},o=(b,y)=>{s(b,y,"dblclick")},a=(b,y)=>{e.store.commit("setCurrentRow",y),s(b,y,"click")},l=(b,y)=>{s(b,y,"contextmenu")},c=Ra(b=>{e.store.commit("setHoverRow",b)},30),u=Ra(()=>{e.store.commit("setHoverRow",null)},30),d=b=>{const y=window.getComputedStyle(b,null),_=Number.parseInt(y.paddingLeft,10)||0,w=Number.parseInt(y.paddingRight,10)||0,x=Number.parseInt(y.paddingTop,10)||0,C=Number.parseInt(y.paddingBottom,10)||0;return{left:_,right:w,top:x,bottom:C}},f=(b,y,_)=>{let w=y.target.parentNode;for(;b>1&&(w=w==null?void 0:w.nextSibling,!(!w||w.nodeName!=="TR"));)_(w,"hover-row hover-fixed-row"),b--};return{handleDoubleClick:o,handleClick:a,handleContextMenu:l,handleMouseEnter:c,handleMouseLeave:u,handleCellMouseEnter:(b,y,_)=>{var w;const x=t,C=h0(b),S=(w=x==null?void 0:x.vnode.el)==null?void 0:w.dataset.prefix;if(C){const J=GC({columns:e.store.states.columns.value},C,S);C.rowSpan>1&&f(C.rowSpan,b,Ro);const Q=x.hoverState={cell:C,column:J,row:y};x==null||x.emit("cell-mouse-enter",Q.row,Q.column,Q.cell,b)}if(!_)return;const A=b.target.querySelector(".cell");if(!(Io(A,`${S}-tooltip`)&&A.childNodes.length))return;const O=document.createRange();O.setStart(A,0),O.setEnd(A,A.childNodes.length);const{width:R,height:N}=O.getBoundingClientRect(),{width:k,height:L}=A.getBoundingClientRect(),{top:F,left:G,right:V,bottom:ae}=d(A),ce=G+V,U=F+ae;(y0(R+ce,k)||y0(N+U,L)||y0(A.scrollWidth,k))&&yV(_,C.innerText||C.textContent,C,x)},handleCellMouseLeave:b=>{const y=h0(b);if(!y)return;y.rowSpan>1&&f(y.rowSpan,b,_r);const _=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",_==null?void 0:_.row,_==null?void 0:_.column,_==null?void 0:_.cell,b)},tooltipContent:n,tooltipTrigger:r}}function BV(e){const t=Qe(Ar),n=nt("table");return{getRowStyle:(u,d)=>{const f=t==null?void 0:t.props.rowStyle;return typeof f=="function"?f.call(null,{row:u,rowIndex:d}):f||null},getRowClass:(u,d)=>{const f=[n.e("row")];t!=null&&t.props.highlightCurrentRow&&u===e.store.states.currentRow.value&&f.push("current-row"),e.stripe&&d%2===1&&f.push(n.em("row","striped"));const h=t==null?void 0:t.props.rowClassName;return typeof h=="string"?f.push(h):typeof h=="function"&&f.push(h.call(null,{row:u,rowIndex:d})),f},getCellStyle:(u,d,f,h)=>{const g=t==null?void 0:t.props.cellStyle;let b=g!=null?g:{};typeof g=="function"&&(b=g.call(null,{rowIndex:u,columnIndex:d,row:f,column:h}));const y=m0(d,e==null?void 0:e.fixed,e.store);return Xa(y,"left"),Xa(y,"right"),Object.assign({},b,y)},getCellClass:(u,d,f,h,g)=>{const b=g0(n.b(),d,e==null?void 0:e.fixed,e.store,void 0,g),y=[h.id,h.align,h.className,...b],_=t==null?void 0:t.props.cellClassName;return typeof _=="string"?y.push(_):typeof _=="function"&&y.push(_.call(null,{rowIndex:u,columnIndex:d,row:f,column:h})),y.push(n.e("cell")),y.filter(w=>!!w).join(" ")},getSpan:(u,d,f,h)=>{let g=1,b=1;const y=t==null?void 0:t.props.spanMethod;if(typeof y=="function"){const _=y({row:u,column:d,rowIndex:f,columnIndex:h});Array.isArray(_)?(g=_[0],b=_[1]):typeof _=="object"&&(g=_.rowspan,b=_.colspan)}return{rowspan:g,colspan:b}},getColspanRealWidth:(u,d,f)=>{if(d<1)return u[f].realWidth;const h=u.map(({realWidth:g,width:b})=>g||b).slice(f,f+d);return Number(h.reduce((g,b)=>Number(g)+Number(b),-1))}}}function jV(e){const t=Qe(Ar),n=nt("table"),{handleDoubleClick:r,handleClick:s,handleContextMenu:o,handleMouseEnter:a,handleMouseLeave:l,handleCellMouseEnter:c,handleCellMouseLeave:u,tooltipContent:d,tooltipTrigger:f}=FV(e),{getRowStyle:h,getRowClass:g,getCellStyle:b,getCellClass:y,getSpan:_,getColspanRealWidth:w}=BV(e),x=W(()=>e.store.states.columns.value.findIndex(({type:R})=>R==="default")),C=(R,N)=>{const k=t.props.rowKey;return k?kn(R,k):N},S=(R,N,k,L=!1)=>{const{tooltipEffect:F,tooltipOptions:G,store:V}=e,{indent:ae,columns:ce}=V.states,U=g(R,N);let J=!0;return k&&(U.push(n.em("row",`level-${k.level}`)),J=k.display),dt("tr",{style:[J?null:{display:"none"},h(R,N)],class:U,key:C(R,N),onDblclick:X=>r(X,R),onClick:X=>s(X,R),onContextmenu:X=>o(X,R),onMouseenter:()=>a(N),onMouseleave:l},ce.value.map((X,B)=>{const{rowspan:_e,colspan:he}=_(R,X,N,B);if(!_e||!he)return null;const ie=Object.assign({},X);ie.realWidth=w(ce.value,he,B);const oe={store:e.store,_self:e.context||t,column:ie,row:R,$index:N,cellIndex:B,expanded:L};B===x.value&&k&&(oe.treeNode={indent:k.level*ae.value,level:k.level},typeof k.expanded=="boolean"&&(oe.treeNode.expanded=k.expanded,"loading"in k&&(oe.treeNode.loading=k.loading),"noLazyChildren"in k&&(oe.treeNode.noLazyChildren=k.noLazyChildren)));const Ce=`${C(R,N)},${B}`,me=ie.columnKey||ie.rawColumnKey||"",q=A(B,X,oe),Z=X.showOverflowTooltip&&Kk({effect:F},G,X.showOverflowTooltip);return dt("td",{style:b(N,B,R,X),class:y(N,B,R,X,he-1),key:`${me}${Ce}`,rowspan:_e,colspan:he,onMouseenter:ve=>c(ve,R,Z),onMouseleave:u},[q])}))},A=(R,N,k)=>N.renderCell(k);return{wrappedRowRender:(R,N)=>{const k=e.store,{isRowExpanded:L,assertRowKey:F}=k,{treeData:G,lazyTreeNodeMap:V,childrenColumnName:ae,rowKey:ce}=k.states,U=k.states.columns.value;if(U.some(({type:Q})=>Q==="expand")){const Q=L(R),X=S(R,N,void 0,Q),B=t.renderExpanded;return Q?B?[[X,dt("tr",{key:`expanded-row__${X.key}`},[dt("td",{colspan:U.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[B({row:R,$index:N,store:k,expanded:Q})])])]]:(console.error("[Element Error]renderExpanded is required."),X):[[X]]}else if(Object.keys(G.value).length){F();const Q=kn(R,ce.value);let X=G.value[Q],B=null;X&&(B={expanded:X.expanded,level:X.level,display:!0},typeof X.lazy=="boolean"&&(typeof X.loaded=="boolean"&&X.loaded&&(B.noLazyChildren=!(X.children&&X.children.length)),B.loading=X.loading));const _e=[S(R,N,B)];if(X){let he=0;const ie=(Ce,me)=>{Ce&&Ce.length&&me&&Ce.forEach(q=>{const Z={display:me.display&&me.expanded,level:me.level+1,expanded:!1,noLazyChildren:!1,loading:!1},ve=kn(q,ce.value);if(ve==null)throw new Error("For nested data item, row-key is required.");if(X=we({},G.value[ve]),X&&(Z.expanded=X.expanded,X.level=X.level||Z.level,X.display=!!(X.expanded&&Z.display),typeof X.lazy=="boolean"&&(typeof X.loaded=="boolean"&&X.loaded&&(Z.noLazyChildren=!(X.children&&X.children.length)),Z.loading=X.loading)),he++,_e.push(S(q,N+he,Z)),X){const Oe=V.value[ve]||q[ae.value];ie(Oe,X)}})};X.display=!0;const oe=V.value[Q]||R[ae.value];ie(oe,X)}return _e}else return S(R,N,void 0)},tooltipContent:d,tooltipTrigger:f}}var UV=Te({name:"ElTableBody",props:{store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean},setup(e){const t=xt(),n=Qe(Ar),r=nt("table"),{wrappedRowRender:s,tooltipContent:o,tooltipTrigger:a}=jV(e),{onColumnsChange:l,onScrollableChange:c}=eS(n),u=[];return ze(e.store.states.hoverRow,(d,f)=>{var h;const g=t==null?void 0:t.vnode.el,b=Array.from((g==null?void 0:g.children)||[]).filter(w=>w==null?void 0:w.classList.contains(`${r.e("row")}`));let y=d;const _=(h=b[y])==null?void 0:h.childNodes;if(_!=null&&_.length){let w=0;Array.from(_).reduce((C,S,A)=>{var O,R;return((O=_[A])==null?void 0:O.colSpan)>1&&(w=(R=_[A])==null?void 0:R.colSpan),S.nodeName!=="TD"&&w===0&&C.push(A),w>0&&w--,C},[]).forEach(C=>{var S;for(y=d;y>0;){const A=(S=b[y-1])==null?void 0:S.childNodes;if(A[C]&&A[C].nodeName==="TD"&&A[C].rowSpan>1){Ro(A[C],"hover-cell"),u.push(A[C]);break}y--}})}else u.forEach(w=>_r(w,"hover-cell")),u.length=0;!e.store.states.isComplex.value||!Dt||eM(()=>{const w=b[f],x=b[d];w&&!w.classList.contains("hover-fixed-row")&&_r(w,"hover-row"),x&&Ro(x,"hover-row")})}),vo(()=>{var d;(d=Oi)==null||d()}),{ns:r,onColumnsChange:l,onScrollableChange:c,wrappedRowRender:s,tooltipContent:o,tooltipTrigger:a}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return dt("tbody",{tabIndex:-1},[n.reduce((r,s)=>r.concat(e(s,r.length)),[])])}});function $V(){const e=Qe(Ar),t=e==null?void 0:e.store,n=W(()=>t.states.fixedLeafColumnsLength.value),r=W(()=>t.states.rightFixedColumns.value.length),s=W(()=>t.states.columns.value.length),o=W(()=>t.states.fixedColumns.value.length),a=W(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:r,columnsCount:s,leftFixedCount:o,rightFixedCount:a,columns:t.states.columns}}function VV(e){const{columns:t}=$V(),n=nt("table");return{getCellClasses:(o,a)=>{const l=o[a],c=[n.e("cell"),l.id,l.align,l.labelClassName,...g0(n.b(),a,l.fixed,e.store)];return l.className&&c.push(l.className),l.children||c.push(n.is("leaf")),c},getCellStyles:(o,a)=>{const l=m0(a,o.fixed,e.store);return Xa(l,"left"),Xa(l,"right"),l},columns:t}}var zV=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:n,columns:r}=VV(e);return{ns:nt("table"),getCellClasses:t,getCellStyles:n,columns:r}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:r,sumText:s}=this,o=this.store.states.data.value;let a=[];return r?a=r({columns:e,data:o}):e.forEach((l,c)=>{if(c===0){a[c]=s;return}const u=o.map(g=>Number(g[l.property])),d=[];let f=!0;u.forEach(g=>{if(!Number.isNaN(+g)){f=!1;const b=`${g}`.split(".")[1];d.push(b?b.length:0)}});const h=Math.max.apply(null,d);f?a[c]="":a[c]=u.reduce((g,b)=>{const y=Number(b);return Number.isNaN(+y)?g:Number.parseFloat((g+b).toFixed(Math.min(h,20)))},0)}),dt(dt("tfoot",[dt("tr",{},[...e.map((l,c)=>dt("td",{key:c,colspan:l.colSpan,rowspan:l.rowSpan,class:n(e,c),style:t(l,c)},[dt("div",{class:["cell",l.labelClassName]},[a[c]])]))])]))}});function qV(e){return{setCurrentRow:d=>{e.commit("setCurrentRow",d)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(d,f,h=!0)=>{e.toggleRowSelection(d,f,!1,h),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:d=>{e.clearFilter(d)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(d,f)=>{e.toggleRowExpansionAdapter(d,f)},clearSort:()=>{e.clearSort()},sort:(d,f)=>{e.commit("sort",{prop:d,order:f})}}}function HV(e,t,n,r){const s=ne(!1),o=ne(null),a=ne(!1),l=X=>{a.value=X},c=ne({width:null,height:null,headerHeight:null}),u=ne(!1),d={display:"inline-block",verticalAlign:"middle"},f=ne(),h=ne(0),g=ne(0),b=ne(0),y=ne(0),_=ne(0);yo(()=>{t.setHeight(e.height)}),yo(()=>{t.setMaxHeight(e.maxHeight)}),ze(()=>[e.currentRowKey,n.states.rowKey],([X,B])=>{!P(B)||!P(X)||n.setCurrentRowKey(`${X}`)},{immediate:!0}),ze(()=>e.data,X=>{r.store.commit("setData",X)},{immediate:!0,deep:!0}),yo(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const w=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},x=(X,B)=>{const{pixelX:_e,pixelY:he}=B;Math.abs(_e)>=Math.abs(he)&&(r.refs.bodyWrapper.scrollLeft+=B.pixelX/5)},C=W(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),S=W(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),A=()=>{C.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(k)};Lt(()=>at(this,null,function*(){yield pt(),n.updateColumns(),L(),requestAnimationFrame(A);const X=r.vnode.el,B=r.refs.headerWrapper;e.flexible&&X&&X.parentElement&&(X.parentElement.style.minWidth="0"),c.value={width:f.value=X.offsetWidth,height:X.offsetHeight,headerHeight:e.showHeader&&B?B.offsetHeight:null},n.states.columns.value.forEach(_e=>{_e.filteredValue&&_e.filteredValue.length&&r.store.commit("filterChange",{column:_e,values:_e.filteredValue,silent:!0})}),r.$ready=!0}));const O=(X,B)=>{if(!X)return;const _e=Array.from(X.classList).filter(he=>!he.startsWith("is-scrolling-"));_e.push(t.scrollX.value?B:"is-scrolling-none"),X.className=_e.join(" ")},R=X=>{const{tableWrapper:B}=r.refs;O(B,X)},N=X=>{const{tableWrapper:B}=r.refs;return!!(B&&B.classList.contains(X))},k=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const me="is-scrolling-none";N(me)||R(me);return}const X=r.refs.scrollBarRef.wrapRef;if(!X)return;const{scrollLeft:B,offsetWidth:_e,scrollWidth:he}=X,{headerWrapper:ie,footerWrapper:oe}=r.refs;ie&&(ie.scrollLeft=B),oe&&(oe.scrollLeft=B);const Ce=he-_e-1;B>=Ce?R("is-scrolling-right"):R(B===0?"is-scrolling-left":"is-scrolling-middle")},L=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&Si(r.refs.scrollBarRef.wrapRef,"scroll",k,{passive:!0}),e.fit?ci(r.vnode.el,F):Si(window,"resize",F),ci(r.refs.bodyWrapper,()=>{var X,B;F(),(B=(X=r.refs)==null?void 0:X.scrollBarRef)==null||B.update()}))},F=()=>{var X,B,_e,he;const ie=r.vnode.el;if(!r.$ready||!ie)return;let oe=!1;const{width:Ce,height:me,headerHeight:q}=c.value,Z=f.value=ie.offsetWidth;Ce!==Z&&(oe=!0);const ve=ie.offsetHeight;(e.height||C.value)&&me!==ve&&(oe=!0);const Oe=e.tableLayout==="fixed"?r.refs.headerWrapper:(X=r.refs.tableHeaderRef)==null?void 0:X.$el;e.showHeader&&(Oe==null?void 0:Oe.offsetHeight)!==q&&(oe=!0),h.value=((B=r.refs.tableWrapper)==null?void 0:B.scrollHeight)||0,b.value=(Oe==null?void 0:Oe.scrollHeight)||0,y.value=((_e=r.refs.footerWrapper)==null?void 0:_e.offsetHeight)||0,_.value=((he=r.refs.appendWrapper)==null?void 0:he.offsetHeight)||0,g.value=h.value-b.value-y.value-_.value,oe&&(c.value={width:Z,height:ve,headerHeight:e.showHeader&&(Oe==null?void 0:Oe.offsetHeight)||0},A())},G=xr(),V=W(()=>{const{bodyWidth:X,scrollY:B,gutterWidth:_e}=t;return X.value?`${X.value-(B.value?_e:0)}px`:""}),ae=W(()=>e.maxHeight?"fixed":e.tableLayout),ce=W(()=>{if(e.data&&e.data.length)return null;let X="100%";e.height&&g.value&&(X=`${g.value}px`);const B=f.value;return{width:B?`${B}px`:"",height:X}}),U=W(()=>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`}:{}),J=W(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${b.value+y.value}px)`}:{maxHeight:`${e.maxHeight-b.value-y.value}px`}:{});return{isHidden:s,renderExpanded:o,setDragVisible:l,isGroup:u,handleMouseLeave:w,handleHeaderFooterMousewheel:x,tableSize:G,emptyBlockStyle:ce,handleFixedMousewheel:(X,B)=>{const _e=r.refs.bodyWrapper;if(Math.abs(B.spinY)>0){const he=_e.scrollTop;B.pixelY<0&&he!==0&&X.preventDefault(),B.pixelY>0&&_e.scrollHeight-_e.clientHeight>he&&X.preventDefault(),_e.scrollTop+=Math.ceil(B.pixelY/5)}else _e.scrollLeft+=Math.ceil(B.pixelX/5)},resizeProxyVisible:a,bodyWidth:V,resizeState:c,doLayout:A,tableBodyStyles:S,tableLayout:ae,scrollbarViewStyle:d,tableInnerStyle:U,scrollbarStyle:J}}function GV(e){const t=ne(),n=()=>{const s=e.vnode.el.querySelector(".hidden-columns"),o={childList:!0,subtree:!0},a=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{a.forEach(l=>l())}),t.value.observe(s,o)};Lt(()=>{n()}),vo(()=>{var r;(r=t.value)==null||r.disconnect()})}var WV={data:{type:Array,default:()=>[]},size:Ms,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,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object],scrollbarTabindex:{type:[Number,String],default:void 0}};function iS(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(s=>s.width===void 0)&&(n=[]);const r=s=>{const o={key:`${e.tableLayout}_${s.id}`,style:{},name:void 0};return t?o.style={width:`${s.width}px`}:o.name=s.id,o};return dt("colgroup",{},n.map(s=>dt("col",r(s))))}iS.props=["columns","tableLayout"];const KV=()=>{const e=ne(),t=(o,a)=>{const l=e.value;l&&l.scrollTo(o,a)},n=(o,a)=>{const l=e.value;l&&Qt(a)&&["Top","Left"].includes(o)&&l[`setScroll${o}`](a)};return{scrollBarRef:e,scrollTo:t,setScrollTop:o=>n("Top",o),setScrollLeft:o=>n("Left",o)}};let JV=1;const YV=Te({name:"ElTable",directives:{Mousewheel:WU},components:{TableHeader:MV,TableBody:UV,TableFooter:zV,ElScrollbar:Vm,hColgroup:iS},props:WV,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}=Ba(),n=nt("table"),r=xt();an(Ar,r);const s=AV(r,e);r.store=s;const o=new TV({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=o;const a=W(()=>(s.states.data.value||[]).length===0),{setCurrentRow:l,getSelectionRows:c,toggleRowSelection:u,clearSelection:d,clearFilter:f,toggleAllSelection:h,toggleRowExpansion:g,clearSort:b,sort:y}=qV(s),{isHidden:_,renderExpanded:w,setDragVisible:x,isGroup:C,handleMouseLeave:S,handleHeaderFooterMousewheel:A,tableSize:O,emptyBlockStyle:R,handleFixedMousewheel:N,resizeProxyVisible:k,bodyWidth:L,resizeState:F,doLayout:G,tableBodyStyles:V,tableLayout:ae,scrollbarViewStyle:ce,tableInnerStyle:U,scrollbarStyle:J}=HV(e,o,s,r),{scrollBarRef:Q,scrollTo:X,setScrollLeft:B,setScrollTop:_e}=KV(),he=Ra(G,50),ie=`${n.namespace.value}-table_${JV++}`;r.tableId=ie,r.state={isGroup:C,resizeState:F,doLayout:G,debouncedUpdateLayout:he};const oe=W(()=>{var q;return(q=e.sumText)!=null?q:t("el.table.sumText")}),Ce=W(()=>{var q;return(q=e.emptyText)!=null?q:t("el.table.emptyText")}),me=W(()=>nS(s.states.originColumns.value)[0]);return GV(r),{ns:n,layout:o,store:s,columns:me,handleHeaderFooterMousewheel:A,handleMouseLeave:S,tableId:ie,tableSize:O,isHidden:_,isEmpty:a,renderExpanded:w,resizeProxyVisible:k,resizeState:F,isGroup:C,bodyWidth:L,tableBodyStyles:V,emptyBlockStyle:R,debouncedUpdateLayout:he,handleFixedMousewheel:N,setCurrentRow:l,getSelectionRows:c,toggleRowSelection:u,clearSelection:d,clearFilter:f,toggleAllSelection:h,toggleRowExpansion:g,clearSort:b,doLayout:G,sort:y,t,setDragVisible:x,context:r,computedSumText:oe,computedEmptyText:Ce,tableLayout:ae,scrollbarViewStyle:ce,tableInnerStyle:U,scrollbarStyle:J,scrollBarRef:Q,scrollTo:X,setScrollLeft:B,setScrollTop:_e}}});function XV(e,t,n,r,s,o){const a=We("hColgroup"),l=We("table-header"),c=We("table-body"),u=We("table-footer"),d=We("el-scrollbar"),f=vd("mousewheel");return I(),z("div",{ref:"tableWrapper",class:Y([{[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:Ze(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:e.handleMouseLeave},[H("div",{class:Y(e.ns.e("inner-wrapper")),style:Ze(e.tableInnerStyle)},[H("div",{ref:"hiddenColumns",class:"hidden-columns"},[Re(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?It((I(),z("div",{key:0,ref:"headerWrapper",class:Y(e.ns.e("header-wrapper"))},[H("table",{ref:"tableHeader",class:Y(e.ns.e("header")),style:Ze(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[te(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),te(l,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[f,e.handleHeaderFooterMousewheel]]):re("v-if",!0),H("div",{ref:"bodyWrapper",class:Y(e.ns.e("body-wrapper"))},[te(d,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex},{default:ee(()=>[H("table",{ref:"tableBody",class:Y(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Ze({width:e.bodyWidth,tableLayout:e.tableLayout})},[te(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(I(),Ee(l,{key:0,ref:"tableHeaderRef",class:Y(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","onSetDragVisible"])):re("v-if",!0),te(c,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?(I(),Ee(u,{key:1,class:Y(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):re("v-if",!0)],6),e.isEmpty?(I(),z("div",{key:0,ref:"emptyBlock",style:Ze(e.emptyBlockStyle),class:Y(e.ns.e("empty-block"))},[H("span",{class:Y(e.ns.e("empty-text"))},[Re(e.$slots,"empty",{},()=>[Je(Ie(e.computedEmptyText),1)])],2)],6)):re("v-if",!0),e.$slots.append?(I(),z("div",{key:1,ref:"appendWrapper",class:Y(e.ns.e("append-wrapper"))},[Re(e.$slots,"append")],2)):re("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex"])],2),e.showSummary&&e.tableLayout==="fixed"?It((I(),z("div",{key:1,ref:"footerWrapper",class:Y(e.ns.e("footer-wrapper"))},[H("table",{class:Y(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:Ze(e.tableBodyStyles)},[te(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),te(u,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[wn,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):re("v-if",!0),e.border||e.isGroup?(I(),z("div",{key:2,class:Y(e.ns.e("border-left-patch"))},null,2)):re("v-if",!0)],6),It(H("div",{ref:"resizeProxy",class:Y(e.ns.e("column-resize-proxy"))},null,2),[[wn,e.resizeProxyVisible]])],46,["data-prefix","onMouseleave"])}var ZV=ft(YV,[["render",XV],["__file","table.vue"]]);const QV={selection:"table-column--selection",expand:"table__expand-column"},ez={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:""}},tz=e=>QV[e]||"",nz={selection:{renderHeader({store:e,column:t}){function n(){return e.states.data.value&&e.states.data.value.length===0}return dt(Ya,{disabled:n(),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,ariaLabel:t.label})},renderCell({row:e,column:t,store:n,$index:r}){return dt(Ya,{disabled:t.selectable?!t.selectable.call(null,e,r):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:s=>s.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:t.label})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const r=e.index;return typeof r=="number"?n=t+r:typeof r=="function"&&(n=r(t)),dt("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:n}){const{ns:r}=t,s=[r.e("expand-icon")];return n&&s.push(r.em("expand-icon","expanded")),dt("div",{class:s,onClick:function(a){a.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[dt(Ft,null,{default:()=>[dt(gm)]})]})},sortable:!1,resizable:!1}};function iz({row:e,column:t,$index:n}){var r;const s=t.property,o=s&&qd(e,s).value;return t&&t.formatter?t.formatter(e,t,o,n):((r=o==null?void 0:o.toString)==null?void 0:r.call(o))||""}function rz({row:e,treeNode:t,store:n},r=!1){const{ns:s}=n;if(!t)return r?[dt("span",{class:s.e("placeholder")})]:null;const o=[],a=function(l){l.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&o.push(dt("span",{class:s.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const l=[s.e("expand-icon"),t.expanded?s.em("expand-icon","expanded"):""];let c=gm;t.loading&&(c=Ma),o.push(dt("div",{class:l,onClick:a},{default:()=>[dt(Ft,{class:{[s.is("loading")]:t.loading}},{default:()=>[dt(c)]})]}))}else o.push(dt("span",{class:s.e("placeholder")}));return o}function rS(e,t){return e.reduce((n,r)=>(n[r]=r,n),t)}function sz(e,t){const n=xt();return{registerComplexWatchers:()=>{const o=["fixed"],a={realWidth:"width",realMinWidth:"minWidth"},l=rS(o,a);Object.keys(l).forEach(c=>{const u=a[c];yt(t,u)&&ze(()=>t[u],d=>{let f=d;u==="width"&&c==="realWidth"&&(f=p0(d)),u==="minWidth"&&c==="realMinWidth"&&(f=WC(d)),n.columnConfig.value[u]=f,n.columnConfig.value[c]=f;const h=u==="fixed";e.value.store.scheduleLayout(h)})})},registerNormalWatchers:()=>{const o=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip"],a={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},l=rS(o,a);Object.keys(l).forEach(c=>{const u=a[c];yt(t,u)&&ze(()=>t[u],d=>{n.columnConfig.value[c]=d})})}}}function oz(e,t,n){const r=xt(),s=ne(""),o=ne(!1),a=ne(),l=ne(),c=nt("table");yo(()=>{a.value=e.align?`is-${e.align}`:null,a.value}),yo(()=>{l.value=e.headerAlign?`is-${e.headerAlign}`:a.value,l.value});const u=W(()=>{let S=r.vnode.vParent||r.parent;for(;S&&!S.tableId&&!S.columnId;)S=S.vnode.vParent||S.parent;return S}),d=W(()=>{const{store:S}=r.parent;if(!S)return!1;const{treeData:A}=S.states,O=A.value;return O&&Object.keys(O).length>0}),f=ne(p0(e.width)),h=ne(WC(e.minWidth)),g=S=>(f.value&&(S.width=f.value),h.value&&(S.minWidth=h.value),!f.value&&h.value&&(S.width=void 0),S.minWidth||(S.minWidth=80),S.realWidth=Number(S.width===void 0?S.minWidth:S.width),S),b=S=>{const A=S.type,O=nz[A]||{};Object.keys(O).forEach(N=>{const k=O[N];N!=="className"&&k!==void 0&&(S[N]=k)});const R=tz(A);if(R){const N=`${P(c.namespace)}-${R}`;S.className=S.className?`${S.className} ${N}`:N}return S},y=S=>{Array.isArray(S)?S.forEach(O=>A(O)):A(S);function A(O){var R;((R=O==null?void 0:O.type)==null?void 0:R.name)==="ElTableColumn"&&(O.vParent=r)}};return{columnId:s,realAlign:a,isSubColumn:o,realHeaderAlign:l,columnOrTableParent:u,setColumnWidth:g,setColumnForcedProps:b,setColumnRenders:S=>{e.renderHeader||S.type!=="selection"&&(S.renderHeader=O=>(r.columnConfig.value.label,Re(t,"header",O,()=>[S.label]))),t["filter-icon"]&&(S.renderFilterIcon=O=>Re(t,"filter-icon",O));let A=S.renderCell;return S.type==="expand"?(S.renderCell=O=>dt("div",{class:"cell"},[A(O)]),n.value.renderExpanded=O=>t.default?t.default(O):t.default):(A=A||iz,S.renderCell=O=>{let R=null;if(t.default){const V=t.default(O);R=V.some(ae=>ae.type!==xn)?V:A(O)}else R=A(O);const{columns:N}=n.value.store.states,k=N.value.findIndex(V=>V.type==="default"),L=d.value&&O.cellIndex===k,F=rz(O,L),G={class:"cell",style:{}};return S.showOverflowTooltip&&(G.class=`${G.class} ${P(c.namespace)}-tooltip`,G.style={width:`${(O.column.realWidth||Number(O.column.width))-1}px`}),y(R),dt("div",G,[F,R])}),S},getPropsData:(...S)=>S.reduce((A,O)=>(Array.isArray(O)&&O.forEach(R=>{A[R]=e[R]}),A),{}),getColumnElIndex:(S,A)=>Array.prototype.indexOf.call(S,A),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}var az={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,showOverflowTooltip:{type:[Boolean,Object],default:void 0},fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let lz=1;var sS=Te({name:"ElTableColumn",components:{ElCheckbox:Ya},props:az,setup(e,{slots:t}){const n=xt(),r=ne({}),s=W(()=>{let C=n.parent;for(;C&&!C.tableId;)C=C.parent;return C}),{registerNormalWatchers:o,registerComplexWatchers:a}=sz(s,e),{columnId:l,isSubColumn:c,realHeaderAlign:u,columnOrTableParent:d,setColumnWidth:f,setColumnForcedProps:h,setColumnRenders:g,getPropsData:b,getColumnElIndex:y,realAlign:_,updateColumnOrder:w}=oz(e,t,s),x=d.value;l.value=`${x.tableId||x.columnId}_column_${lz++}`,tc(()=>{c.value=s.value!==x;const C=e.type||"default",S=e.sortable===""?!0:e.sortable,A=Zi(e.showOverflowTooltip)?x.props.showOverflowTooltip:e.showOverflowTooltip,O=Be(we({},ez[C]),{id:l.value,type:C,property:e.prop||e.property,align:_,headerAlign:u,showOverflowTooltip:A,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:S,index:e.index,rawColumnKey:n.vnode.key});let F=b(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);F=gV(O,F),F=vV(g,f,h)(F),r.value=F,o(),a()}),Lt(()=>{var C;const S=d.value,A=c.value?S.vnode.el.children:(C=S.refs.hiddenColumns)==null?void 0:C.children,O=()=>y(A||[],n.vnode.el);r.value.getColumnIndex=O,O()>-1&&s.value.store.commit("insertColumn",r.value,c.value?S.columnConfig.value:null,w)}),fn(()=>{const C=r.value.getColumnIndex;(C?C():-1)>-1&&s.value.store.commit("removeColumn",r.value,c.value?x.columnConfig.value:null,w)}),n.columnId=l.value,n.columnConfig=r},render(){var e,t,n;try{const r=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),s=[];if(Array.isArray(r))for(const a of r)((n=a.type)==null?void 0:n.name)==="ElTableColumn"||a.shapeFlag&2?s.push(a):a.type===qe&&Array.isArray(a.children)&&a.children.forEach(l=>{(l==null?void 0:l.patchFlag)!==1024&&!st(l==null?void 0:l.children)&&s.push(l)});return dt("div",s)}catch(r){return dt("div",[])}}});const cz=hn(ZV,{TableColumn:sS}),uz=is(sS),oS=Symbol("uploadContextKey"),dz="ElUpload";class fz extends Error{constructor(t,n,r,s){super(t),this.name="UploadAjaxError",this.status=n,this.method=r,this.url=s}}function aS(e,t,n){let r;return n.response?r=`${n.response.error||n.response}`:n.responseText?r=`${n.responseText}`:r=`fail to ${t.method} ${e} ${n.status}`,new fz(r,n.status,t.method,e)}function hz(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}const pz=e=>{typeof XMLHttpRequest=="undefined"&&No(dz,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",o=>{const a=o;a.percent=o.total>0?o.loaded/o.total*100:0,e.onProgress(a)});const r=new FormData;if(e.data)for(const[o,a]of Object.entries(e.data))je(a)&&a.length?r.append(o,...a):r.append(o,a);r.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(aS(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(aS(n,e,t));e.onSuccess(hz(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const s=e.headers||{};if(s instanceof Headers)s.forEach((o,a)=>t.setRequestHeader(a,o));else for(const[o,a]of Object.entries(s))Oo(a)||t.setRequestHeader(o,String(a));return t.send(r),t},lS=["text","picture","picture-card"];let gz=1;const _0=()=>Date.now()+gz++,cS=ht({action:{type:String,default:"#"},headers:{type:Fe(Object)},method:{type:String,default:"post"},data:{type:Fe([Object,Function,Promise]),default:()=>Tc({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:Fe(Array),default:()=>Tc([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:lS,default:"text"},httpRequest:{type:Fe(Function),default:pz},disabled:Boolean,limit:Number}),mz=ht(Be(we({},cS),{beforeUpload:{type:Fe(Function),default:_t},beforeRemove:{type:Fe(Function)},onRemove:{type:Fe(Function),default:_t},onChange:{type:Fe(Function),default:_t},onPreview:{type:Fe(Function),default:_t},onSuccess:{type:Fe(Function),default:_t},onProgress:{type:Fe(Function),default:_t},onError:{type:Fe(Function),default:_t},onExceed:{type:Fe(Function),default:_t},crossorigin:{type:Fe(String)}})),vz=ht({files:{type:Fe(Array),default:()=>Tc([])},disabled:{type:Boolean,default:!1},handlePreview:{type:Fe(Function),default:_t},listType:{type:String,values:lS,default:"text"},crossorigin:{type:Fe(String)}}),bz={remove:e=>!!e},yz=Te(Be(we({},Te({name:"ElUploadList"})),{props:vz,emits:bz,setup(e,{emit:t}){const n=e,{t:r}=Ba(),s=nt("upload"),o=nt("icon"),a=nt("list"),l=ss(),c=ne(!1),u=W(()=>[s.b("list"),s.bm("list",n.listType),s.is("disabled",n.disabled)]),d=f=>{t("remove",f)};return(f,h)=>(I(),Ee(rw,{tag:"ul",class:Y(P(u)),name:P(a).b()},{default:ee(()=>[(I(!0),z(qe,null,Tt(f.files,(g,b)=>(I(),z("li",{key:g.uid||g.name,class:Y([P(s).be("list","item"),P(s).is(g.status),{focusing:c.value}]),tabindex:"0",onKeydown:Ki(y=>!P(l)&&d(g),["delete"]),onFocus:y=>c.value=!0,onBlur:y=>c.value=!1,onClick:y=>c.value=!1},[Re(f.$slots,"default",{file:g,index:b},()=>[f.listType==="picture"||g.status!=="uploading"&&f.listType==="picture-card"?(I(),z("img",{key:0,class:Y(P(s).be("list","item-thumbnail")),src:g.url,crossorigin:f.crossorigin,alt:""},null,10,["src","crossorigin"])):re("v-if",!0),g.status==="uploading"||f.listType!=="picture-card"?(I(),z("div",{key:1,class:Y(P(s).be("list","item-info"))},[H("a",{class:Y(P(s).be("list","item-name")),onClick:gt(y=>f.handlePreview(g),["prevent"])},[te(P(Ft),{class:Y(P(o).m("document"))},{default:ee(()=>[te(P(bM))]),_:1},8,["class"]),H("span",{class:Y(P(s).be("list","item-file-name")),title:g.name},Ie(g.name),11,["title"])],10,["onClick"]),g.status==="uploading"?(I(),Ee(P(fV),{key:0,type:f.listType==="picture-card"?"circle":"line","stroke-width":f.listType==="picture-card"?6:2,percentage:Number(g.percentage),style:Ze(f.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):re("v-if",!0)],2)):re("v-if",!0),H("label",{class:Y(P(s).be("list","item-status-label"))},[f.listType==="text"?(I(),Ee(P(Ft),{key:0,class:Y([P(o).m("upload-success"),P(o).m("circle-check")])},{default:ee(()=>[te(P(mm))]),_:1},8,["class"])):["picture-card","picture"].includes(f.listType)?(I(),Ee(P(Ft),{key:1,class:Y([P(o).m("upload-success"),P(o).m("check")])},{default:ee(()=>[te(P(M3))]),_:1},8,["class"])):re("v-if",!0)],2),P(l)?re("v-if",!0):(I(),Ee(P(Ft),{key:2,class:Y(P(o).m("close")),onClick:y=>d(g)},{default:ee(()=>[te(P(ka))]),_:2},1032,["class","onClick"])),re(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),re(" This is a bug which needs to be fixed "),re(" TODO: Fix the incorrect navigation interaction "),P(l)?re("v-if",!0):(I(),z("i",{key:3,class:Y(P(o).m("close-tip"))},Ie(P(r)("el.upload.deleteTip")),3)),f.listType==="picture-card"?(I(),z("span",{key:4,class:Y(P(s).be("list","item-actions"))},[H("span",{class:Y(P(s).be("list","item-preview")),onClick:y=>f.handlePreview(g)},[te(P(Ft),{class:Y(P(o).m("zoom-in"))},{default:ee(()=>[te(P(IM))]),_:1},8,["class"])],10,["onClick"]),P(l)?re("v-if",!0):(I(),z("span",{key:0,class:Y(P(s).be("list","item-delete")),onClick:y=>d(g)},[te(P(Ft),{class:Y(P(o).m("delete"))},{default:ee(()=>[te(P(mM))]),_:1},8,["class"])],10,["onClick"]))],2)):re("v-if",!0)])],42,["onKeydown","onFocus","onBlur","onClick"]))),128)),Re(f.$slots,"append")]),_:3},8,["class","name"]))}}));var uS=ft(yz,[["__file","upload-list.vue"]]);const _z=ht({disabled:{type:Boolean,default:!1}}),wz={file:e=>je(e)},dS="ElUploadDrag",Cz=Te(Be(we({},Te({name:dS})),{props:_z,emits:wz,setup(e,{emit:t}){Qe(oS)||No(dS,"usage: <el-upload><el-upload-dragger /></el-upload>");const r=nt("upload"),s=ne(!1),o=ss(),a=c=>{if(o.value)return;s.value=!1,c.stopPropagation();const u=Array.from(c.dataTransfer.files);t("file",u)},l=()=>{o.value||(s.value=!0)};return(c,u)=>(I(),z("div",{class:Y([P(r).b("dragger"),P(r).is("dragover",s.value)]),onDrop:gt(a,["prevent"]),onDragover:gt(l,["prevent"]),onDragleave:gt(d=>s.value=!1,["prevent"])},[Re(c.$slots,"default")],42,["onDrop","onDragover","onDragleave"]))}}));var Sz=ft(Cz,[["__file","upload-dragger.vue"]]);const Ez=ht(Be(we({},cS),{beforeUpload:{type:Fe(Function),default:_t},onRemove:{type:Fe(Function),default:_t},onStart:{type:Fe(Function),default:_t},onSuccess:{type:Fe(Function),default:_t},onProgress:{type:Fe(Function),default:_t},onError:{type:Fe(Function),default:_t},onExceed:{type:Fe(Function),default:_t}})),xz=Te(Be(we({},Te({name:"ElUploadContent",inheritAttrs:!1})),{props:Ez,setup(e,{expose:t}){const n=e,r=nt("upload"),s=ss(),o=yn({}),a=yn(),l=y=>{if(y.length===0)return;const{autoUpload:_,limit:w,fileList:x,multiple:C,onStart:S,onExceed:A}=n;if(w&&x.length+y.length>w){A(y,x);return}C||(y=y.slice(0,1));for(const O of y){const R=O;R.uid=_0(),S(R),_&&c(R)}},c=y=>at(this,null,function*(){if(a.value.value="",!n.beforeUpload)return d(y);let _,w={};try{const C=n.data,S=n.beforeUpload(y);w=va(n.data)?To(n.data):n.data,_=yield S,va(n.data)&&Da(C,w)&&(w=To(n.data))}catch(C){_=!1}if(_===!1){n.onRemove(y);return}let x=y;_ instanceof Blob&&(_ instanceof File?x=_:x=new File([_],y.name,{type:y.type})),d(Object.assign(x,{uid:y.uid}),w)}),u=(y,_)=>at(this,null,function*(){return Ve(y)?y(_):y}),d=(y,_)=>at(this,null,function*(){const{headers:w,data:x,method:C,withCredentials:S,name:A,action:O,onProgress:R,onSuccess:N,onError:k,httpRequest:L}=n;try{_=yield u(_!=null?_:x,y)}catch(ae){n.onRemove(y);return}const{uid:F}=y,G={headers:w||{},withCredentials:S,file:y,data:_,method:C,filename:A,action:O,onProgress:ae=>{R(ae,y)},onSuccess:ae=>{N(ae,y),delete o.value[F]},onError:ae=>{k(ae,y),delete o.value[F]}},V=L(G);o.value[F]=V,V instanceof Promise&&V.then(G.onSuccess,G.onError)}),f=y=>{const _=y.target.files;_&&l(Array.from(_))},h=()=>{s.value||(a.value.value="",a.value.click())},g=()=>{h()};return t({abort:y=>{nM(o.value).filter(y?([w])=>String(y.uid)===w:()=>!0).forEach(([w,x])=>{x instanceof XMLHttpRequest&&x.abort(),delete o.value[w]})},upload:c}),(y,_)=>(I(),z("div",{class:Y([P(r).b(),P(r).m(y.listType),P(r).is("drag",y.drag),P(r).is("disabled",P(s))]),tabindex:P(s)?"-1":"0",onClick:h,onKeydown:Ki(gt(g,["self"]),["enter","space"])},[y.drag?(I(),Ee(Sz,{key:0,disabled:P(s),onFile:l},{default:ee(()=>[Re(y.$slots,"default")]),_:3},8,["disabled"])):Re(y.$slots,"default",{key:1}),H("input",{ref_key:"inputRef",ref:a,class:Y(P(r).e("input")),name:y.name,disabled:P(s),multiple:y.multiple,accept:y.accept,type:"file",onChange:f,onClick:gt(()=>{},["stop"])},null,42,["name","disabled","multiple","accept","onClick"])],42,["tabindex","onKeydown"]))}}));var fS=ft(xz,[["__file","upload-content.vue"]]);const hS="ElUpload",pS=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},Az=(e,t)=>{const n=eN(e,"fileList",void 0,{passive:!0}),r=g=>n.value.find(b=>b.uid===g.uid);function s(g){var b;(b=t.value)==null||b.abort(g)}function o(g=["ready","uploading","success","fail"]){n.value=n.value.filter(b=>!g.includes(b.status))}function a(g){n.value=n.value.filter(b=>b!==g)}const l=(g,b)=>{const y=r(b);y&&(console.error(g),y.status="fail",a(y),e.onError(g,y,n.value),e.onChange(y,n.value))},c=(g,b)=>{const y=r(b);y&&(e.onProgress(g,y,n.value),y.status="uploading",y.percentage=Math.round(g.percent))},u=(g,b)=>{const y=r(b);y&&(y.status="success",y.response=g,e.onSuccess(g,y,n.value),e.onChange(y,n.value))},d=g=>{Oo(g.uid)&&(g.uid=_0());const b={name:g.name,percentage:0,status:"ready",size:g.size,raw:g,uid:g.uid};if(e.listType==="picture-card"||e.listType==="picture")try{b.url=URL.createObjectURL(g)}catch(y){y.message,e.onError(y,b,n.value)}n.value=[...n.value,b],e.onChange(b,n.value)},f=g=>at(this,null,function*(){const b=g instanceof File?r(g):g;b||No(hS,"file to be removed not found");const y=_=>{s(_),a(_),e.onRemove(_,n.value),pS(_)};e.beforeRemove?(yield e.beforeRemove(b,n.value))!==!1&&y(b):y(b)});function h(){n.value.filter(({status:g})=>g==="ready").forEach(({raw:g})=>{var b;return g&&((b=t.value)==null?void 0:b.upload(g))})}return ze(()=>e.listType,g=>{g!=="picture-card"&&g!=="picture"||(n.value=n.value.map(b=>{const{raw:y,url:_}=b;if(!_&&y)try{b.url=URL.createObjectURL(y)}catch(w){e.onError(w,b,n.value)}return b}))}),ze(n,g=>{for(const b of g)b.uid||(b.uid=_0()),b.status||(b.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:s,clearFiles:o,handleError:l,handleProgress:c,handleStart:d,handleSuccess:u,handleRemove:f,submit:h,revokeFileObjectURL:pS}},Pz=Te(Be(we({},Te({name:"ElUpload"})),{props:mz,setup(e,{expose:t}){const n=e,r=ss(),s=yn(),{abort:o,submit:a,clearFiles:l,uploadFiles:c,handleStart:u,handleError:d,handleRemove:f,handleSuccess:h,handleProgress:g,revokeFileObjectURL:b}=Az(n,s),y=W(()=>n.listType==="picture-card"),_=W(()=>Be(we({},n),{fileList:c.value,onStart:u,onProgress:g,onSuccess:h,onError:d,onRemove:f}));return fn(()=>{c.value.forEach(b)}),an(oS,{accept:wi(n,"accept")}),t({abort:o,submit:a,clearFiles:l,handleStart:u,handleRemove:f}),(w,x)=>(I(),z("div",null,[P(y)&&w.showFileList?(I(),Ee(uS,{key:0,disabled:P(r),"list-type":w.listType,files:P(c),crossorigin:w.crossorigin,"handle-preview":w.onPreview,onRemove:P(f)},_g({append:ee(()=>[te(fS,An({ref_key:"uploadRef",ref:s},P(_)),{default:ee(()=>[w.$slots.trigger?Re(w.$slots,"trigger",{key:0}):re("v-if",!0),!w.$slots.trigger&&w.$slots.default?Re(w.$slots,"default",{key:1}):re("v-if",!0)]),_:3},16)]),_:2},[w.$slots.file?{name:"default",fn:ee(({file:C,index:S})=>[Re(w.$slots,"file",{file:C,index:S})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):re("v-if",!0),!P(y)||P(y)&&!w.showFileList?(I(),Ee(fS,An({key:1,ref_key:"uploadRef",ref:s},P(_)),{default:ee(()=>[w.$slots.trigger?Re(w.$slots,"trigger",{key:0}):re("v-if",!0),!w.$slots.trigger&&w.$slots.default?Re(w.$slots,"default",{key:1}):re("v-if",!0)]),_:3},16)):re("v-if",!0),w.$slots.trigger?Re(w.$slots,"default",{key:2}):re("v-if",!0),Re(w.$slots,"tip"),!P(y)&&w.showFileList?(I(),Ee(uS,{key:3,disabled:P(r),"list-type":w.listType,files:P(c),crossorigin:w.crossorigin,"handle-preview":w.onPreview,onRemove:P(f)},_g({_:2},[w.$slots.file?{name:"default",fn:ee(({file:C,index:S})=>[Re(w.$slots,"file",{file:C,index:S})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):re("v-if",!0)]))}}));var Tz=ft(Pz,[["__file","upload.vue"]]);const Oz=hn(Tz);function Nz(e){let t;const n=ne(!1),r=Dn(Be(we({},e),{originalPosition:"",originalOverflow:"",visible:!1}));function s(h){r.text=h}function o(){const h=r.parent,g=f.ns;if(!h.vLoadingAddClassList){let b=h.getAttribute("loading-number");b=Number.parseInt(b)-1,b?h.setAttribute("loading-number",b.toString()):(_r(h,g.bm("parent","relative")),h.removeAttribute("loading-number")),_r(h,g.bm("parent","hidden"))}a(),d.unmount()}function a(){var h,g;(g=(h=f.$el)==null?void 0:h.parentNode)==null||g.removeChild(f.$el)}function l(){var h;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=setTimeout(c,400),r.visible=!1,(h=e.closed)==null||h.call(e))}function c(){if(!n.value)return;const h=r.parent;n.value=!1,h.vLoadingAddClassList=void 0,o()}const d=jg(Te({name:"ElLoading",setup(h,{expose:g}){const{ns:b,zIndex:y}=Rm("loading");return g({ns:b,zIndex:y}),()=>{const _=r.spinner||r.svg,w=dt("svg",we({class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50"},_?{innerHTML:_}:{}),[dt("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),x=r.text?dt("p",{class:b.b("text")},[r.text]):void 0;return dt(Rs,{name:b.b("fade"),onAfterLeave:c},{default:ee(()=>[It(te("div",{style:{backgroundColor:r.background||""},class:[b.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[dt("div",{class:b.b("spinner")},[w,x])]),[[wn,r.visible]])])})}}})),f=d.mount(document.createElement("div"));return Be(we({},pr(r)),{setText:s,removeElLoadingChild:a,close:l,handleAfterLeave:c,vm:f,get $el(){return f.$el}})}let Cf;const Iz=function(e={}){if(!Dt)return;const t=Rz(e);if(t.fullscreen&&Cf)return Cf;const n=Nz(Be(we({},t),{closed:()=>{var s;(s=t.closed)==null||s.call(t),t.fullscreen&&(Cf=void 0)}}));Dz(t,t.parent,n),gS(t,t.parent,n),t.parent.vLoadingAddClassList=()=>gS(t,t.parent,n);let r=t.parent.getAttribute("loading-number");return r?r=`${Number.parseInt(r)+1}`:r="1",t.parent.setAttribute("loading-number",r),t.parent.appendChild(n.$el),pt(()=>n.visible.value=t.visible),t.fullscreen&&(Cf=n),n},Rz=e=>{var t,n,r,s;let o;return st(e.target)?o=(t=document.querySelector(e.target))!=null?t:document.body:o=e.target||document.body,{parent:o===document.body||e.body?document.body:o,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:o===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(r=e.lock)!=null?r:!1,customClass:e.customClass||"",visible:(s=e.visible)!=null?s:!0,beforeClose:e.beforeClose,closed:e.closed,target:o}},Dz=(e,t,n)=>at(this,null,function*(){const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,s={};if(e.fullscreen)n.originalPosition.value=La(document.body,"position"),n.originalOverflow.value=La(document.body,"overflow"),s.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=La(document.body,"position"),yield pt();for(const o of["top","left"]){const a=o==="top"?"scrollTop":"scrollLeft";s[o]=`${e.target.getBoundingClientRect()[o]+document.body[a]+document.documentElement[a]-Number.parseInt(La(document.body,`margin-${o}`),10)}px`}for(const o of["height","width"])s[o]=`${e.target.getBoundingClientRect()[o]}px`}else n.originalPosition.value=La(t,"position");for(const[o,a]of Object.entries(s))n.$el.style[o]=a}),gS=(e,t,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?_r(t,r.bm("parent","relative")):Ro(t,r.bm("parent","relative")),e.fullscreen&&e.lock?Ro(t,r.bm("parent","hidden")):_r(t,r.bm("parent","hidden"))},Sf=Symbol("ElLoading"),mS=(e,t)=>{var n,r,s,o;const a=t.instance,l=h=>ct(t.value)?t.value[h]:void 0,c=h=>{const g=st(h)&&(a==null?void 0:a[h])||h;return g&&ne(g)},u=h=>c(l(h)||e.getAttribute(`element-loading-${Zn(h)}`)),d=(n=l("fullscreen"))!=null?n:t.modifiers.fullscreen,f={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:d,target:(r=l("target"))!=null?r:d?void 0:e,body:(s=l("body"))!=null?s:t.modifiers.body,lock:(o=l("lock"))!=null?o:t.modifiers.lock};e[Sf]={options:f,instance:Iz(f)}},Lz=(e,t)=>{for(const n of Object.keys(t))Mt(t[n])&&(t[n].value=e[n])},vS={mounted(e,t){t.value&&mS(e,t)},updated(e,t){const n=e[Sf];t.oldValue!==t.value&&(t.value&&!t.oldValue?mS(e,t):t.value&&t.oldValue?ct(t.value)&&Lz(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[Sf])==null||t.instance.close(),e[Sf]=null}},bS=["success","info","warning","error"],Mn=Tc({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Dt?document.body:void 0}),kz=ht({customClass:{type:String,default:Mn.customClass},center:{type:Boolean,default:Mn.center},dangerouslyUseHTMLString:{type:Boolean,default:Mn.dangerouslyUseHTMLString},duration:{type:Number,default:Mn.duration},icon:{type:ns,default:Mn.icon},id:{type:String,default:Mn.id},message:{type:Fe([String,Object,Function]),default:Mn.message},onClose:{type:Fe(Function),default:Mn.onClose},showClose:{type:Boolean,default:Mn.showClose},type:{type:String,values:bS,default:Mn.type},plain:{type:Boolean,default:Mn.plain},offset:{type:Number,default:Mn.offset},zIndex:{type:Number,default:Mn.zIndex},grouping:{type:Boolean,default:Mn.grouping},repeatNum:{type:Number,default:Mn.repeatNum}}),Mz={destroy:()=>!0},ir=ag([]),Fz=e=>{const t=ir.findIndex(s=>s.id===e),n=ir[t];let r;return t>0&&(r=ir[t-1]),{current:n,prev:r}},Bz=e=>{const{prev:t}=Fz(e);return t?t.vm.exposed.bottom.value:0},jz=(e,t)=>ir.findIndex(r=>r.id===e)>0?16:t,Uz=Te(Be(we({},Te({name:"ElMessage"})),{props:kz,emits:Mz,setup(e,{expose:t}){const n=e,{Close:r}=$3,{ns:s,zIndex:o}=Rm("message"),{currentZIndex:a,nextZIndex:l}=o,c=ne(),u=ne(!1),d=ne(0);let f;const h=W(()=>n.type?n.type==="error"?"danger":n.type:"info"),g=W(()=>{const R=n.type;return{[s.bm("icon",R)]:R&&Kd[R]}}),b=W(()=>n.icon||Kd[n.type]||""),y=W(()=>Bz(n.id)),_=W(()=>jz(n.id,n.offset)+y.value),w=W(()=>d.value+_.value),x=W(()=>({top:`${_.value}px`,zIndex:a.value}));function C(){n.duration!==0&&({stop:f}=$g(()=>{A()},n.duration))}function S(){f==null||f()}function A(){u.value=!1}function O({code:R}){R===Do.esc&&A()}return Lt(()=>{C(),l(),u.value=!0}),ze(()=>n.repeatNum,()=>{S(),C()}),Si(document,"keydown",O),ci(c,()=>{d.value=c.value.getBoundingClientRect().height}),t({visible:u,bottom:w,close:A}),(R,N)=>(I(),Ee(Rs,{name:P(s).b("fade"),onBeforeLeave:R.onClose,onAfterLeave:k=>R.$emit("destroy"),persisted:""},{default:ee(()=>[It(H("div",{id:R.id,ref_key:"messageRef",ref:c,class:Y([P(s).b(),{[P(s).m(R.type)]:R.type},P(s).is("center",R.center),P(s).is("closable",R.showClose),P(s).is("plain",R.plain),R.customClass]),style:Ze(P(x)),role:"alert",onMouseenter:S,onMouseleave:C},[R.repeatNum>1?(I(),Ee(P(yU),{key:0,value:R.repeatNum,type:P(h),class:Y(P(s).e("badge"))},null,8,["value","type","class"])):re("v-if",!0),P(b)?(I(),Ee(P(Ft),{key:1,class:Y([P(s).e("icon"),P(g)])},{default:ee(()=>[(I(),Ee(Zt(P(b))))]),_:1},8,["class"])):re("v-if",!0),Re(R.$slots,"default",{},()=>[R.dangerouslyUseHTMLString?(I(),z(qe,{key:1},[re(" Caution here, message could've been compromised, never use user's input as message "),H("p",{class:Y(P(s).e("content")),innerHTML:R.message},null,10,["innerHTML"])],2112)):(I(),z("p",{key:0,class:Y(P(s).e("content"))},Ie(R.message),3))]),R.showClose?(I(),Ee(P(Ft),{key:2,class:Y(P(s).e("closeBtn")),onClick:gt(A,["stop"])},{default:ee(()=>[te(P(r))]),_:1},8,["class","onClick"])):re("v-if",!0)],46,["id"]),[[wn,u.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}}));var $z=ft(Uz,[["__file","message.vue"]]);let Vz=1;const yS=e=>{const t=!e||st(e)||Os(e)||Ve(e)?{message:e}:e,n=we(we({},Mn),t);if(!n.appendTo)n.appendTo=document.body;else if(st(n.appendTo)){let r=document.querySelector(n.appendTo);yr(r)||(r=document.body),n.appendTo=r}return ti(Er.grouping)&&!n.grouping&&(n.grouping=Er.grouping),Qt(Er.duration)&&n.duration===3e3&&(n.duration=Er.duration),Qt(Er.offset)&&n.offset===16&&(n.offset=Er.offset),ti(Er.showClose)&&!n.showClose&&(n.showClose=Er.showClose),n},zz=e=>{const t=ir.indexOf(e);if(t===-1)return;ir.splice(t,1);const{handler:n}=e;n.close()},qz=(r,n)=>{var s=r,{appendTo:e}=s,t=Es(s,["appendTo"]);const o=`message_${Vz++}`,a=t.onClose,l=document.createElement("div"),c=Be(we({},t),{id:o,onClose:()=>{a==null||a(),zz(h)},onDestroy:()=>{Co(null,l)}}),u=te($z,c,Ve(c.message)||Os(c.message)?{default:Ve(c.message)?c.message:()=>c.message}:null);u.appContext=n||Za._context,Co(u,l),e.appendChild(l.firstElementChild);const d=u.component,h={id:o,vnode:u,vm:d,handler:{close:()=>{d.exposed.visible.value=!1}},props:u.component.props};return h},Za=(e={},t)=>{if(!Dt)return{close:()=>{}};const n=yS(e);if(n.grouping&&ir.length){const s=ir.find(({vnode:o})=>{var a;return((a=o.props)==null?void 0:a.message)===n.message});if(s)return s.props.repeatNum+=1,s.props.type=n.type,s.handler}if(Qt(Er.max)&&ir.length>=Er.max)return{close:()=>{}};const r=qz(n,t);return ir.push(r),r.handler};bS.forEach(e=>{Za[e]=(t={},n)=>{const r=yS(t);return Za(Be(we({},r),{type:e}),n)}});function Hz(e){for(const t of ir)(!e||e===t.props.type)&&t.handler.close()}Za.closeAll=Hz,Za._context=null;const dn=LM(Za,"$message"),Gz=Te({name:"ElMessageBox",directives:{TrapFocus:UU},components:we({ElButton:$o,ElFocusTrap:Km,ElInput:jo,ElOverlay:BC,ElIcon:Ft},$3),inheritAttrs:!1,props:{buttonSize:{type:String,validator:FM},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,overflow:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:r,ns:s,size:o}=Rm("message-box",W(()=>e.buttonSize)),{t:a}=n,{nextZIndex:l}=r,c=ne(!1),u=Dn({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,confirmButtonLoadingIcon:od(Ma),cancelButtonLoadingIcon:od(Ma),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:l()}),d=W(()=>{const U=u.type;return{[s.bm("icon",U)]:U&&Kd[U]}}),f=Sr(),h=Sr(),g=W(()=>u.icon||Kd[u.type]||""),b=W(()=>!!u.message),y=ne(),_=ne(),w=ne(),x=ne(),C=ne(),S=W(()=>u.confirmButtonClass);ze(()=>u.inputValue,U=>at(this,null,function*(){yield pt(),e.boxType==="prompt"&&U!==null&&G()}),{immediate:!0}),ze(()=>c.value,U=>{var J,Q;U&&(e.boxType!=="prompt"&&(u.autofocus?w.value=(Q=(J=C.value)==null?void 0:J.$el)!=null?Q:y.value:w.value=y.value),u.zIndex=l()),e.boxType==="prompt"&&(U?pt().then(()=>{var X;x.value&&x.value.$el&&(u.autofocus?w.value=(X=V())!=null?X:y.value:w.value=y.value)}):(u.editorErrorMessage="",u.validateError=!1))});const A=W(()=>e.draggable),O=W(()=>e.overflow);z3(y,_,A,O),Lt(()=>at(this,null,function*(){yield pt(),e.closeOnHashChange&&window.addEventListener("hashchange",R)})),fn(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",R)});function R(){c.value&&(c.value=!1,pt(()=>{u.action&&t("action",u.action)}))}const N=()=>{e.closeOnClickModal&&F(u.distinguishCancelAndClose?"close":"cancel")},k=Nm(N),L=U=>{if(u.inputType!=="textarea")return U.preventDefault(),F("confirm")},F=U=>{var J;e.boxType==="prompt"&&U==="confirm"&&!G()||(u.action=U,u.beforeClose?(J=u.beforeClose)==null||J.call(u,U,u,R):R())},G=()=>{if(e.boxType==="prompt"){const U=u.inputPattern;if(U&&!U.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||a("el.messagebox.error"),u.validateError=!0,!1;const J=u.inputValidator;if(typeof J=="function"){const Q=J(u.inputValue);if(Q===!1)return u.editorErrorMessage=u.inputErrorMessage||a("el.messagebox.error"),u.validateError=!0,!1;if(typeof Q=="string")return u.editorErrorMessage=Q,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},V=()=>{const U=x.value.$refs;return U.input||U.textarea},ae=()=>{F("close")},ce=()=>{e.closeOnPressEscape&&ae()};return e.lockScroll&&G3(c),Be(we({},pr(u)),{ns:s,overlayEvent:k,visible:c,hasMessage:b,typeClass:d,contentId:f,inputId:h,btnSize:o,iconComponent:g,confirmButtonClasses:S,rootRef:y,focusStartRef:w,headerRef:_,inputRef:x,confirmRef:C,doClose:R,handleClose:ae,onCloseRequested:ce,handleWrapperClick:N,handleInputEnter:L,handleAction:F,t:a})}});function Wz(e,t,n,r,s,o){const a=We("el-icon"),l=We("close"),c=We("el-input"),u=We("el-button"),d=We("el-focus-trap"),f=We("el-overlay");return I(),Ee(Rs,{name:"fade-in-linear",onAfterLeave:h=>e.$emit("vanish"),persisted:""},{default:ee(()=>[It(te(f,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:ee(()=>[H("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:Y(`${e.ns.namespace.value}-overlay-message-box`),onClick:e.overlayEvent.onClick,onMousedown:e.overlayEvent.onMousedown,onMouseup:e.overlayEvent.onMouseup},[te(d,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:ee(()=>[H("div",{ref:"rootRef",class:Y([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:Ze(e.customStyle),tabindex:"-1",onClick:gt(()=>{},["stop"])},[e.title!==null&&e.title!==void 0?(I(),z("div",{key:0,ref:"headerRef",class:Y([e.ns.e("header"),{"show-close":e.showClose}])},[H("div",{class:Y(e.ns.e("title"))},[e.iconComponent&&e.center?(I(),Ee(a,{key:0,class:Y([e.ns.e("status"),e.typeClass])},{default:ee(()=>[(I(),Ee(Zt(e.iconComponent)))]),_:1},8,["class"])):re("v-if",!0),H("span",null,Ie(e.title),1)],2),e.showClose?(I(),z("button",{key:0,type:"button",class:Y(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:h=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),onKeydown:Ki(gt(h=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[te(a,{class:Y(e.ns.e("close"))},{default:ee(()=>[te(l)]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):re("v-if",!0)],2)):re("v-if",!0),H("div",{id:e.contentId,class:Y(e.ns.e("content"))},[H("div",{class:Y(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(I(),Ee(a,{key:0,class:Y([e.ns.e("status"),e.typeClass])},{default:ee(()=>[(I(),Ee(Zt(e.iconComponent)))]),_:1},8,["class"])):re("v-if",!0),e.hasMessage?(I(),z("div",{key:1,class:Y(e.ns.e("message"))},[Re(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(I(),Ee(Zt(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(I(),Ee(Zt(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:ee(()=>[Je(Ie(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):re("v-if",!0)],2),It(H("div",{class:Y(e.ns.e("input"))},[te(c,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":h=>e.inputValue=h,type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:Y({invalid:e.validateError}),onKeydown:Ki(e.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),H("div",{class:Y(e.ns.e("errormsg")),style:Ze({visibility:e.editorErrorMessage?"visible":"hidden"})},Ie(e.editorErrorMessage),7)],2),[[wn,e.showInput]])],10,["id"]),H("div",{class:Y(e.ns.e("btns"))},[e.showCancelButton?(I(),Ee(u,{key:0,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:Y([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:h=>e.handleAction("cancel"),onKeydown:Ki(gt(h=>e.handleAction("cancel"),["prevent"]),["enter"])},{default:ee(()=>[Je(Ie(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):re("v-if",!0),It(te(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:Y([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:h=>e.handleAction("confirm"),onKeydown:Ki(gt(h=>e.handleAction("confirm"),["prevent"]),["enter"])},{default:ee(()=>[Je(Ie(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[wn,e.showConfirmButton]])],2)],14,["onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,["aria-label","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["z-index","overlay-class","mask"]),[[wn,e.visible]])]),_:3},8,["onAfterLeave"])}var Kz=ft(Gz,[["render",Wz],["__file","index.vue"]]);const Gc=new Map,Jz=e=>{let t=document.body;return e.appendTo&&(st(e.appendTo)&&(t=document.querySelector(e.appendTo)),yr(e.appendTo)&&(t=e.appendTo),yr(t)||(t=document.body)),t},Yz=(e,t,n=null)=>{const r=te(Kz,e,Ve(e.message)||Os(e.message)?{default:Ve(e.message)?e.message:()=>e.message}:null);return r.appContext=n,Co(r,t),Jz(e).appendChild(t.firstElementChild),r.component},Xz=()=>document.createElement("div"),Zz=(e,t)=>{const n=Xz();e.onVanish=()=>{Co(null,n),Gc.delete(s)},e.onAction=o=>{const a=Gc.get(s);let l;e.showInput?l={value:s.inputValue,action:o}:l=o,e.callback?e.callback(l,r.proxy):o==="cancel"||o==="close"?e.distinguishCancelAndClose&&o!=="cancel"?a.reject("close"):a.reject("cancel"):a.resolve(l)};const r=Yz(e,n,t),s=r.proxy;for(const o in e)yt(e,o)&&!yt(s.$props,o)&&(s[o]=e[o]);return s.visible=!0,s};function Qa(e,t=null){if(!Dt)return Promise.reject();let n;return st(e)||Os(e)?e={message:e}:n=e.callback,new Promise((r,s)=>{const o=Zz(e,t!=null?t:Qa._context);Gc.set(o,{options:e,callback:n,resolve:r,reject:s})})}const Qz=["alert","confirm","prompt"],eq={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};Qz.forEach(e=>{Qa[e]=tq(e)});function tq(e){return(t,n,r,s)=>{let o="";return ct(n)?(r=n,o=""):Zi(n)?o="":o=n,Qa(Object.assign(we({title:o,message:t,type:""},eq[e]),r,{boxType:e}),s)}}Qa.close=()=>{Gc.forEach((e,t)=>{t.doClose()}),Gc.clear()},Qa._context=null;const zs=Qa;zs.install=e=>{zs._context=e._context,e.config.globalProperties.$msgbox=zs,e.config.globalProperties.$messageBox=zs,e.config.globalProperties.$alert=zs.alert,e.config.globalProperties.$confirm=zs.confirm,e.config.globalProperties.$prompt=zs.prompt};const _S=zs,Cpe="",Spe="",Epe="",xpe="",w0=new WeakMap;function C0(e){let t=w0.get(e);return t||w0.set(e,t=Object.create(null)),t}function qs(e,t,n){if(Array.isArray(t))t.forEach(r=>qs(e,r,n));else{const r=C0(e);(r[t]||(r[t]=[])).push(n)}return e}function Hs(e,t,n){const r=e;if(!t)return w0.set(e,Object.create(null)),r;if(Array.isArray(t))return t.forEach(a=>Hs(e,a,n)),r;const s=C0(e),o=s[t];return o?n?(s[t]=o.filter(a=>!(a===n||a.fn===n)),r):(s[t]=void 0,r):r}function Xe(e,t,...n){e&&e.$emit&&e.$emit(t,...n);const r=C0(e)[t];return r&&r.map(s=>s.apply(e,n)),e}function nq(e){return/^(https?:|mailto:|tel:)/.test(e)}const Ape="",ln=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},iq={name:"ForceGraphSvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{isExternal(){return nq(this.iconClass)||this.iconClass.startsWith("data:image")||{}.VITE_LOCAL_ONLY==="true"},iconName(){return`#icon-${this.iconClass}`},svgClass(){return this.className?"svg-icon "+this.className:"svg-icon"},styleExternalIcon(){return{mask:`url(${this.iconClass}) no-repeat 50% 50%`,"-webkit-mask":`url(${this.iconClass}) no-repeat 50% 50%`}}}},rq=["xlink:href"];function sq(e,t,n,r,s,o){return o.isExternal?(I(),z("div",An({key:0},e.$attrs,{style:o.styleExternalIcon,class:"svg-external-icon svg-icon"}),null,16)):(I(),z("svg",An({key:1},e.$attrs,{class:o.svgClass,"aria-hidden":"true"}),[H("use",{"xlink:href":o.iconName},null,8,rq)],16))}const Ho=ln(iq,[["render",sq],["__scopeId","data-v-73ac1940"]]);class oq{constructor(t){this.init(t)}init(t){this.length=0,this.all=[],this.currentIndex=0,this.dataOrigin={nodes:{},links:{},groups:{}},this.nodeTree={},this.nodeParent={},this.dataNow={nodes:[],links:[],groups:[]},this.showInfo={nodes:0,links:0,timeOut:null,time:100},this.keyNodeIds=null,this.levels=[],this.nodeWidth=40,this.nodeMargin=40,this.layout=["forceLayout","treeLayout"],this.layoutIndex=0,this.isShowNodeMessage=t.isShowNodeMessage}initFromSnapshot({length:t,all:n,currentIndex:r,dataOrigin:s,dataNow:o,showInfo:a,nodeTree:l,nodeParent:c,keyNodeIds:u,layoutIndex:d}){this.length=t,this.all=n,this.currentIndex=r,this.dataOrigin=s,this.nodeTree=l,this.nodeParent=c,this.keyNodeIds=u,this.layoutIndex=d;for(const f in o.nodes)delete o.nodes[f].vx,delete o.nodes[f].vy,delete o.nodes[f].x,delete o.nodes[f].y;this.dataNow=o,this.dataNow.links.map(f=>{f.source=f.source.id,f.target=f.target.id}),this.dataNow=Object.assign({},this.dataNow,{}),this.showInfo=JSON.parse(JSON.stringify(a))}forward(){this.currentIndex<this.length-1&&(this.currentIndex=this.currentIndex+1,this.onAction(this.all[this.currentIndex],!0))}back(){this.currentIndex>=0&&(this.resumeAction(this.all[this.currentIndex]),this.currentIndex=this.currentIndex-1)}pushState(t){this.all=this.all.slice(0,this.currentIndex+1);const n=this.onAction(t);this.all.push(n),this.length=this.all.length,this.currentIndex=this.all.length-1}updateGroups(){const t={};this.dataNow.nodes.map(r=>{var s;t[r.group]?t[r.group].nodes.push(r):t[r.group]={nodes:[r],id:r.group,api:(s=r.group)==null?void 0:s.split("~")[1],apiName:r.groupC}});const n=Object.values(t);this.dataNow.groups=n}onAction(t,n=!1){const r=this,s=this.dataNow.nodes.length,o=this.dataNow.links.length,{addOne:a,updateOne:l,deleteOne:c,type:u}=t;a&&(a.originNodes=[],a.nodes&&a.nodes.map(g=>{(!this.dataOrigin.nodes[g.id]||u==="aggregation"||u==="addFromAggregation")&&(this.dataOrigin.nodes[g.id]=!0,delete g.vx,delete g.vy,delete g.x,delete g.y,this.dataNow.nodes.push(g),a.originNodes.push(g))}),a.links&&a.links.map(g=>{g.source=g.source.id?g.source.id:g.source,g.target=g.target.id?g.target.id:g.target,(!this.dataOrigin.links[`${g.source}+${g.target}`]&&!this.dataOrigin.links[`${g.target}+${g.source}`]||u==="aggregation"||u==="addFromAggregation")&&(this.dataOrigin.links[`${g.source}+${g.target}`]=!0,this.dataNow.links.push(g),this.updateNodeTree(g),this.updateNodeParent(g))})),l&&(l.originNodes=[],l.originLinks=[],l.nodes&&l.nodes.map(g=>{for(const b in this.dataNow.nodes)if(g.id===this.dataNow.nodes[b].id){const y=[];g.keyVals.map(_=>{y.push({key:_.key,value:JSON.parse(JSON.stringify(this.dataNow.nodes[b][_.key]))})}),l.originNodes.push({id:g.id,keyVals:y}),g.keyVals.map(_=>{this.dataNow.nodes[b][_.key]=_.value});break}}),l.links&&l.links.map(g=>{for(const b in this.dataNow.links)if(g.source===this.dataNow.links[b].source&&g.target===this.dataNow.links[b].target){l.originLinks.push(this.dataNow.links[b]),this.dataNow.links[b]=g;break}}));function d(g){g&&g.map(b=>{var y;for(const _ in r.dataNow.nodes)if(b.id===r.dataNow.nodes[_].id){c.originNodes.push(r.dataNow.nodes[_]),u!=="aggregation"&&(r.dataOrigin.nodes[`${r.dataNow.nodes[_].id}`]=!1),r.dataNow.nodes.splice(_,1);const w=JSON.parse(JSON.stringify(r.dataNow.links));for(let x=w.length-1;x>=0;x--)if((b.id===w[x].source.id||b.id===w[x].target.id)&&(c.originLinks.push(w[x]),u!=="aggregation"&&(r.dataOrigin.links[`${w[x].source.id}+${w[x].target.id}`]=!1),r.dataNow.links.splice(x,1),r.updateNodeTree(w[x],"delete"),r.updateNodeParent(w[x],"delete"),b.id===w[x].target.id&&w[x].source.type==="nodeType"&&!r.nodeTree[w[x].source.id]&&d([w[x].source]),b.id===w[x].source.id)){const C=w[x].target;((y=r.nodeParent[C.id])==null?void 0:y.length)>=1?r.nodeParent[C.id].some(A=>c.originNodes.map(O=>O.id).indexOf(A)<0)||d([C]):d([C])}break}})}c&&(c.originNodes=[],c.originLinks=[],d(c.nodes),c.links&&c.links.map(g=>{for(const b in this.dataNow.links)if(g.source===this.dataNow.links[b].source&&g.target===this.dataNow.links[b].target){c.originLinks.push(this.dataNow.links[b]),u!=="aggregation"&&(this.dataOrigin.links[`${this.dataNow.links[b].source.id}+${this.dataNow.links[b].target.id}`]=!1),this.dataNow.links.splice(b,1),this.updateNodeTree(g,"delete"),this.updateNodeParent(g,"delete");break}})),this.updateGroups(),this.computePos();const f=this.dataNow.nodes.length,h=this.dataNow.links.length;return u!=="aggregation"&&this.showMessage(f-s,h-o),t}resumeAction(t){var d,f;const{addOne:n,updateOne:r,deleteOne:s,type:o}=t,a=this.dataNow.nodes.length,l=this.dataNow.links.length;n&&(n.nodes&&n.originNodes.map(h=>{for(const g in this.dataNow.nodes)if(h.id===this.dataNow.nodes[g].id){this.dataOrigin.nodes[`${this.dataNow.nodes[g].id}`]=!1,this.dataNow.nodes.splice(g,1);break}}),n.links&&n.links.map(h=>{var g,b,y,_;for(const w in this.dataNow.links){const x=(g=h.source)!=null&&g.id?h.source.id:h.source,C=(b=h.target)!=null&&b.id?h.target.id:h.target,S=(y=this.dataNow.links[w].source)!=null&&y.id?this.dataNow.links[w].source.id:this.dataNow.links[w].source,A=(_=this.dataNow.links[w].target)!=null&&_.id?this.dataNow.links[w].target.id:this.dataNow.links[w].target;if(x===S&&C===A){this.dataOrigin.links[`${S}+${A}`]=!1,this.dataNow.links.splice(w,1),this.updateNodeTree(h,"delete"),this.updateNodeParent(h,"delete");break}}})),r&&(r.originNodes&&r.originNodes.map(h=>{for(const g in this.dataNow.nodes)if(h.id===this.dataNow.nodes[g].id){h.keyVals.map(b=>{this.dataNow.nodes[g][b.key]=b.value});break}}),r.originLinks&&r.originLinks.map(h=>{for(const g in this.dataNow.links)if(h.source.id===this.dataNow.links[g].source.id&&h.target.id===this.dataNow.links[g].target.id){h.keyVals.map(b=>{this.dataNow.links[g][b.key]=b.value});break}})),s&&(s.originNodes&&s.originNodes.map(h=>{(!this.dataOrigin.nodes[h.id]||o==="aggregation")&&(this.dataOrigin.nodes[h.id]=!0,this.dataNow.nodes.push(h))}),s.originLinks&&s.originLinks.map(h=>{(!this.dataOrigin.links[`${h.source}+${h.target}`]&&!this.dataOrigin.links[`${h.target}+${h.source}`]||o==="aggregation")&&(this.dataOrigin.links[`${h.source.id}+${h.target.id}`]=!0,this.dataNow.links.push(h),this.updateNodeTree(h),this.updateNodeParent(h))}));for(const h in this.dataNow.links)this.dataNow.links[h].source=(d=this.dataNow.links[h].source)!=null&&d.id?this.dataNow.links[h].source.id:this.dataNow.links[h].source,this.dataNow.links[h].target=(f=this.dataNow.links[h].target)!=null&&f.id?this.dataNow.links[h].target.id:this.dataNow.links[h].target;this.updateGroups(),this.computePos();const c=this.dataNow.nodes.length,u=this.dataNow.links.length;o!=="aggregation"&&this.showMessage(c-a,u-l)}showMessage(t,n){if(!this.isShowNodeMessage)return;this.showInfo.nodes+=t,this.showInfo.links+=n;const r=this.showInfo.nodes>=0?"新增"+this.showInfo.nodes:"减少"+-this.showInfo.nodes,s=this.showInfo.links>=0?"新增"+this.showInfo.links:"减少"+-this.showInfo.links;dn({message:`${r}个节点, ${s}条边`,type:"info"}),this.showInfo.nodes=0,this.showInfo.links=0}updateData(t,n){t.map(s=>{const o=this.dataNow.nodes.findIndex(a=>{var l;return(a==null?void 0:a.id)===((l=s.info)==null?void 0:l.id)});o<0||(this.dataNow.nodes[o].detail=JSON.parse(JSON.stringify(s)))}),(n==null?void 0:n.filter(s=>t.findIndex(o=>{var a;return((a=o.info)==null?void 0:a.id)===s}))).map(s=>{const o=this.dataNow.nodes.findIndex(a=>a.id===s);o<0||(this.dataNow.nodes[o].noDetail=!0)}),this.dataNow=Object.assign({},this.dataNow,{})}updateAggregationDetail(t,n,r){var a;const s=(a=this.dataNow.nodes.find(l=>l.id===r))==null?void 0:a.list;t.map(l=>{const c=s.findIndex(u=>{var d;return(u==null?void 0:u.id)===((d=l.info)==null?void 0:d.id)});c<0||(s[c].detail=JSON.parse(JSON.stringify(l)))}),(n==null?void 0:n.filter(l=>t.findIndex(c=>{var u;return((u=c.info)==null?void 0:u.id)===l}))).map(l=>{const c=s.findIndex(u=>u.id===l);c<0||(s[c].noDetail=!0)}),this.dataNow=Object.assign({},this.dataNow,{})}updateAggregationNode(t,n){const r=this.dataNow.nodes.find(s=>s.id===n);r.list=t,this.dataNow=Object.assign({},this.dataNow,{})}toString(){const t={length:this.length,all:this.all,currentIndex:this.currentIndex,dataOrigin:this.dataOrigin,dataNow:this.dataNow,showInfo:this.showInfo,nodeTree:this.nodeTree,nodeParent:this.nodeParent,keyNodeIds:this.keyNodeIds,layoutIndex:this.layoutIndex};return JSON.stringify(t)}updateNodeTree(t,n="add"){var o,a;const r=t.target.id?t.target.id:t.target,s=t.source.id?t.source.id:t.source;if(n==="add")this.nodeTree[s]?this.nodeTree[s].push(r):this.nodeTree[s]=[r];else if(((o=this.nodeTree[s])==null?void 0:o.length)===1)this.nodeTree[s]=null;else if(((a=this.nodeTree[s])==null?void 0:a.length)>1){const l=this.nodeTree[s].indexOf(r);this.nodeTree[s].splice(l,1)}}updateNodeParent(t,n="add"){var o,a;const r=t.target.id?t.target.id:t.target,s=t.source.id?t.source.id:t.source;if(n==="add")this.nodeParent[r]&&this.nodeParent[r].indexOf(s)<0?this.nodeParent[r].push(s):this.nodeParent[r]=[s];else if(((o=this.nodeParent[r])==null?void 0:o.length)===1)this.nodeParent[r]=null;else if(((a=this.nodeParent[r])==null?void 0:a.length)>1){const l=this.nodeParent[r].indexOf(s);this.nodeParent[r].splice(l,1)}}toggleShowNode(t,n,r=!1){const s=this.dataNow.links,o=this;function a(d){var f;if(d.show!==!1){d.show=!1;for(let h=s.length-1;h>=0;h--)if(d.id===s[h].target.id&&s[h].source.type==="nodeType"&&o.dataNow.nodes.filter(b=>o.nodeTree[s[h].source.id].indexOf(b.id)>=0&&b.show===!0).length===0&&a(s[h].source),d.id===s[h].source.id){const g=s[h].target;if(((f=o.nodeParent[g.id])==null?void 0:f.length)>=1){const y=o.dataNow.nodes.filter(w=>o.nodeParent[g.id].indexOf(w.id)>=0&&w.show===!0).length,_=o.dataNow.nodes.some(w=>w.id===g.id&&w.startNode===!0);y===0&&!_&&a(g)}}}}function l(d){d.show=!0;for(let h=s.length-1;h>=0;h--)s[h].source.id===d.id&&s[h].target.show===!1&&(s[h].target.show=!0,l(s[h].target));const{keyNodeIds:f}=o.findKeyLinksAndNodes(d.id);o.dataNow.nodes.map(h=>{f.indexOf(h.id)>=0&&!h.show&&(h.show=!0)})}const c=this.dataNow.nodes.findIndex(d=>d.id===t.id),u=this.dataNow.nodes[c];r?l(u):a(u)}findKeyLinksAndNodes(t,n=!1){const r=[],s=[t],o=this;function a(l){if(o.dataNow.nodes.some(d=>d.id===l&&d.startNode===!0))return;const u=o.getParentLink(l);u&&r.findIndex(d=>d.index===u.index)<0&&(r.push(u),a(u.source.id))}return a(t),this.dataNow.links.map(l=>{r.find(u=>u.source.id===l.source.id&&u.target.id===l.target.id)&&s.push(l.source.id)}),n&&(this.keyNodeIds=s),{keyLinks:r,keyNodeIds:s}}resetKeyLinksAndNodes(){this.keyNodeIds=null}getParentLink(t){return this.dataNow.links.find(n=>n.target.id===t)}initPosId(){const t=this,n=this.dataNow.nodes.filter(a=>a.startNode===!0),r=[],s=n.map(a=>a.id);o(s,0);function o(a,l){for(let d=0;d<a.length;d++){const f=a[d];f!=null&&f.indexPos||(r[l]?r[l].push(f):r[l]=[f])}if(!r[l])return;const c={};t.dataNow.nodes.map(d=>{r[l].indexOf(d.id)>=0&&(c[d.id]=d)}),r[l].sort((d,f)=>{var b,y;const h=t.dataNow.nodes.find(_=>_.id===c[d].parents&&c[d].parents[0]),g=t.dataNow.nodes.find(_=>_.id===c[f].parents&&c[f].parents[0]);return((b=h==null?void 0:h.indexPos)==null?void 0:b.split("-").pop())*1-((y=g==null?void 0:g.indexPos)==null?void 0:y.split("-").pop())*1||-1}),t.dataNow.nodes.map(d=>{const f=r[l].indexOf(d.id);if(f>=0){if(d.levelNum&&d.levelNum!==l)return;d.indexPos=l+"-"+f,d.levelNum=l}t.dataNow.links.map(h=>{h.target===d.id&&(h.indexPos=d.indexPos)})});const u=t.dataNow.links.filter(d=>{const f=r[l].indexOf(d.source.id?d.source.id:d.source)>=0,h=r.flat().indexOf(d.target.id?d.target.id:d.target)<0;return f&&h}).map(d=>d.target.id?d.target.id:d.target);u.length>0&&o(u,l+1)}this.levels=r}computeFamilyRelation(){this.dataNow.nodes.map(t=>{t.children=null,t.parents=null}),this.dataNow.links.map(t=>{const n=this.dataNow.nodes.find(s=>s.id===(t.source.id?t.source.id:t.source)),r=this.dataNow.nodes.find(s=>s.id===(t.target.id?t.target.id:t.target));n&&(n.children?n.children.push(r.id):n.children=[r.id]),r&&n&&(r.parents?r.parents.push(n.id):r.parents=[n.id])}),this.dataNow.nodes.map(t=>{t.startNode===!0&&(t.parents=["virtualOne"])})}computeWidth(){this.nodeWidth;const t=this.nodeMargin,n=this;r(this.levels,this.levels.length-1);function r(s,o){const a=s[o];if(!a)return;const l=a.map(u=>n.dataNow.nodes.find(d=>d.id===u));a.map(u=>{var h,g;const d=n.dataNow.nodes.find(b=>b.id===u),f=(h=d.children)==null?void 0:h.reduce((b,y)=>(n.dataNow.nodes.find(w=>y===w.id).widthBefore||0)+b,0);d.levelWidth=f+(((g=d.children)==null?void 0:g.length)-1)*t||0});let c;a.map((u,d)=>{const f=n.dataNow.nodes.find(h=>h.id===u);f.widthBefore=0,f.children&&(c>=0&&(f.widthBefore=Math.max(0,f.levelWidth/2-(d-c-1)*t+l[c].levelWidth/2)),c=d)}),r(s,o-1)}}computeOneLevelPos(t,n){this.nodeWidth;const r=this.nodeMargin,s=t[n],o=this;if(!s)return;const a={};this.dataNow.nodes.filter(c=>s.indexOf(c.id)>=0).map(c=>{c.parents||(c.parents=[]),a[c.parents[0]]?a[c.parents[0]].push(c):a[c.parents[0]]=[c]});for(const c in a)a[c].sort((u,d)=>{var f,h;return((f=u.indexPos)==null?void 0:f.split("-").pop())*1-((h=d.indexPos)==null?void 0:h.split("-").pop())*1}),l(a[c]);function l(c){var h,g;const u=((h=o.dataNow.nodes.find(b=>c[0].parents[0]===b.id))==null?void 0:h.levelWidth)||0,d=((g=o.dataNow.nodes.find(b=>c[0].parents[0]===b.id))==null?void 0:g.pos)||0;let f=0;c.map((b,y)=>{b.pos=f+b.widthBefore-u/2+d,f=f+b.widthBefore+r})}this.computeOneLevelPos(t,n+1)}computePos(){this.computeFamilyRelation(),this.initPosId(),this.computeWidth(),this.dataNow.nodes[0]&&(this.dataNow.nodes[0].pos=0,this.dataNow.nodes[0].levelNum=0),this.computeOneLevelPos(this.levels,0)}destroy(){this.length=0,this.all=[],this.currentIndex=0,this.dataOrigin={nodes:{},links:{},groups:{}},this.nodeTree={},this.nodeParent={},this.dataNow={nodes:[],links:[],groups:[]},this.showInfo={nodes:0,links:0,timeOut:null,time:100},this.keyNodeIds=null,this.levels=[],this.nodeWidth=40,this.nodeMargin=40,this.layout=["forceLayout","treeLayout"],this.layoutIndex=0}}const Ppe="",Ef="graph-node-level-",S0="legend-level-";function aq(e){let t="",n="",r="";return e.forEach(s=>{const o=s.className,a=s.normalColor,l=s.darkColor?s.darkColor:s.normalColor,c=Ef+o,u=`--graph-level-${o}`;n+=`${u}: ${a};`,r+=`${u}: ${l};`,t+=`
|
|
58
|
-
// 没有level时的默认样式
|
|
59
|
-
.d3-container .${Ef}unknown {
|
|
60
|
-
stroke: var(--graph-unknown);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/* node节点的样式 */
|
|
64
|
-
.render-container .${c} {
|
|
65
|
-
stroke: var(${u});
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/* node节点的样式 */
|
|
69
|
-
.render-container .node .${c} .text-bg,
|
|
70
|
-
.render-container .domain .${c} .text-bg,
|
|
71
|
-
.render-container .md5 .${c} .text-bg {
|
|
72
|
-
fill: var(${u});
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/* 全局的level样式 */
|
|
76
|
-
.d3-container .${c} {
|
|
77
|
-
stroke: var(${u});
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
/* 右侧node详情的样式 */
|
|
82
|
-
.d3-container .out-box .${c} ,
|
|
83
|
-
.d3-container .svgBase .${c} ,
|
|
84
|
-
.d3-container .md5 .${c} ,
|
|
85
|
-
.d3-container .domain .${c} {
|
|
86
|
-
stroke: var(${u});
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.d3-container .out-box .${c} .text-bg,
|
|
90
|
-
.d3-container .svgBase .${c} .text-bg,
|
|
91
|
-
.d3-container .md5 .${c} .text-bg,
|
|
92
|
-
.d3-container .domain .${c} .text-bg{
|
|
93
|
-
fill: var(${u});
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.node-detail-block .node-preview .level-text.${c} {
|
|
97
|
-
color: var(${u});
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/* 左侧legend的样式 */
|
|
101
|
-
.${S0}${o} .legend-level-icon .level-color {
|
|
102
|
-
fill: var(${u});
|
|
103
|
-
stroke: var(${u});
|
|
104
|
-
}
|
|
105
|
-
/* 左侧legend的icon圆点的样式 */
|
|
106
|
-
.${S0}${o} .legend-level-icon-dot {
|
|
107
|
-
background: var(${u})
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/* popover的样式 */
|
|
111
|
-
.popover-container .popover-block .row-item .level.${c} {
|
|
112
|
-
color: var(${u});
|
|
113
|
-
}
|
|
114
|
-
`}),n=`:root {${n}}`,r=`[data-theme="dark"] { ${r}}`,n+r+t}function lq(e){const t=document.createElement("style");t.innerHTML=e,document.head.appendChild(t),window.insertSafeForceGraphStyle=!0}function cq(e){if(window.insertSafeForceGraphStyle){Ni("已存在样式");return}const t=aq(e);lq(t)}function xf(e,t){var r;if(e==null||e==="")return Ef+"unknown";const n=(r=t[e])==null?void 0:r.className;return n?Ef+n:""}function Go(e,t,n){if(e==null||e==="")return n?"#c6cdd5":"#666";const r=t==null?void 0:t.find(s=>s.level===e);return n?r==null?void 0:r.darkColor:r==null?void 0:r.normalColor}function uq(e,t){var r;return((r=t.find(s=>s.level===e))==null?void 0:r.dangerNumber)>0}const Af={"./public/d3svg1/85.svg":"https://s8.qhres2.com/static/92a77a4cfe45315b.svg","./public/d3svg1/address.svg":"https://s8.qhres2.com/static/49af0232ce8bf04c.svg","./public/d3svg1/aggregation.svg":"https://s7.qhres2.com/static/78f28ebf024a1fc3.svg","./public/d3svg1/button/hm_icon_add.svg":"https://s5.qhres2.com/static/4fb5006e9082eb79.svg","./public/d3svg1/button/hm_icon_add_more.svg":"https://s8.qhres2.com/static/3069a945cf205172.svg","./public/d3svg1/button/hm_icon_intro.svg":"https://s6.qhres2.com/static/e3a9174af2a35626.svg","./public/d3svg1/button/hm_icon_search.svg":"https://s6.qhres2.com/static/87920114f746d11b.svg","./public/d3svg1/button/hm_icon_snapshot.svg":"https://s9.qhres2.com/static/87bd8cd6660f76eb.svg","./public/d3svg1/button18/button_all_fix_nodes.svg":"https://s6.qhres2.com/static/b0289b2eb89201c9.svg","./public/d3svg1/button18/button_all_show_label.svg":"https://s9.qhres2.com/static/212e1c47d101e979.svg","./public/d3svg1/button18/button_all_show_names.svg":"https://s9.qhres2.com/static/5662f90b2fd37b8e.svg","./public/d3svg1/button18/button_all_un_fix_nodes.svg":"https://s8.qhres2.com/static/062f773b8bf7a9b1.svg","./public/d3svg1/button18/button_all_un_show_label.svg":"https://s5.qhres2.com/static/ab90216e9f7a6f47.svg","./public/d3svg1/button18/button_all_un_show_names.svg":"https://s9.qhres2.com/static/ee92ef3b7c76c4ad.svg","./public/d3svg1/button18/button_copy.svg":"https://s8.qhres2.com/static/b10151262d77f531.svg","./public/d3svg1/button18/button_delete_node.svg":"https://s8.qhres2.com/static/4ae033e0515de4f6.svg","./public/d3svg1/button18/button_edit_label.svg":"https://s6.qhres2.com/static/3986fc6c0e079f57.svg","./public/d3svg1/button18/button_fix_nodes.svg":"https://s8.qhres2.com/static/fa0d1980cb1bf492.svg","./public/d3svg1/button18/button_go_result.svg":"https://s7.qhres2.com/static/62f48cc3630090d2.svg","./public/d3svg1/button18/button_hold_aggregation.svg":"https://s9.qhres2.com/static/0491c4b71553e3c3.svg","./public/d3svg1/button18/button_node_star.svg":"https://s5.qhres2.com/static/ea5b0c1f75783964.svg","./public/d3svg1/button18/button_redo.svg":"https://s5.qhres2.com/static/8dbda7152025c98d.svg","./public/d3svg1/button18/button_relation.svg":"https://s7.qhres2.com/static/d3881ed52b32dc1f.svg","./public/d3svg1/button18/button_release_aggregation.svg":"https://s7.qhres2.com/static/ba06fa8a8db4569a.svg","./public/d3svg1/button18/button_show_label.svg":"https://s7.qhres2.com/static/2abe1d60abb61fa9.svg","./public/d3svg1/button18/button_show_names.svg":"https://s6.qhres2.com/static/c36a1eae354aaaa2.svg","./public/d3svg1/button18/button_single_edge_select.svg":"https://s6.qhres2.com/static/d7743402fc6d09da.svg","./public/d3svg1/button18/button_undo.svg":"https://s9.qhres2.com/static/6e72dfa93353d2f8.svg","./public/d3svg1/button18/button_un_fix_nodes.svg":"https://s6.qhres2.com/static/60ffc34cad1d659b.svg","./public/d3svg1/button18/button_un_node_star.svg":"https://s8.qhres2.com/static/c565f0ec8a880690.svg","./public/d3svg1/button18/button_un_show_label.svg":"https://s8.qhres2.com/static/71fff9dca19fbecc.svg","./public/d3svg1/button18/button_un_show_names.svg":"https://s6.qhres2.com/static/f4669f0b6c14e809.svg","./public/d3svg1/button18/fit_button.svg":"https://s5.qhres2.com/static/c08f73410838a252.svg","./public/d3svg1/button18/full_button.svg":"https://s6.qhres2.com/static/0f4cb1e63de23dc5.svg","./public/d3svg1/button18/un_full_button.svg":"https://s9.qhres2.com/static/9451379f77771234.svg","./public/d3svg1/button18/zoom_in_button.svg":"https://s8.qhres2.com/static/a0d01d2a34694b6c.svg","./public/d3svg1/button18/zoom_out_button.svg":"https://s9.qhres2.com/static/c3955d07bb42785e.svg","./public/d3svg1/button22/button_add_con_node.svg":"https://s6.qhres2.com/static/eba662b3d6dd3e14.svg","./public/d3svg1/button22/button_center_view.svg":"https://s7.qhres2.com/static/394b502b897ab7ac.svg","./public/d3svg1/button22/button_copy.svg":"https://s7.qhres2.com/static/1079057f47388143.svg","./public/d3svg1/button22/button_delete_node.svg":"https://s7.qhres2.com/static/2ded0a5330325385.svg","./public/d3svg1/button22/button_edit_label.svg":"https://s5.qhres2.com/static/975e072dead6e9fa.svg","./public/d3svg1/button22/button_expand_node.svg":"https://s7.qhres2.com/static/057558aff373fb6e.svg","./public/d3svg1/button22/button_eye_close.svg":"https://s7.qhres2.com/static/af3940bd635bf5cc.svg","./public/d3svg1/button22/button_eye_open.svg":"https://s6.qhres2.com/static/8fcb2638123571e3.svg","./public/d3svg1/button22/button_fix_nodes.svg":"https://s6.qhres2.com/static/baf03da46465cdd6.svg","./public/d3svg1/button22/button_highlight.svg":"https://s8.qhres2.com/static/0e54b564417081b8.svg","./public/d3svg1/button22/button_hold_aggregation.svg":"https://s7.qhres2.com/static/f881ab3ebcf70fc1.svg","./public/d3svg1/button22/button_node_star.svg":"https://s8.qhres2.com/static/113de2517f47e4f9.svg","./public/d3svg1/button22/button_release_aggregation.svg":"https://s9.qhres2.com/static/dd2b3a84e0651662.svg","./public/d3svg1/button22/button_select_all.svg":"https://s8.qhres2.com/static/fb1bab113d4d18ba.svg","./public/d3svg1/button22/button_select_children.svg":"https://s7.qhres2.com/static/494fdd768d816653.svg","./public/d3svg1/button22/button_select_parents.svg":"https://s5.qhres2.com/static/3cbe3439eee235d6.svg","./public/d3svg1/button22/button_show_label.svg":"https://s8.qhres2.com/static/f13914e64f8f3e5a.svg","./public/d3svg1/button22/button_show_names.svg":"https://s5.qhres2.com/static/f4d81384382cd033.svg","./public/d3svg1/button22/button_un_fix_nodes.svg":"https://s7.qhres2.com/static/ea8a1159fe64af2b.svg","./public/d3svg1/button22/button_un_node_star.svg":"https://s9.qhres2.com/static/03975ae87086cd88.svg","./public/d3svg1/button22/button_un_show_label.svg":"https://s7.qhres2.com/static/9391e814e0f764d5.svg","./public/d3svg1/button22/button_un_show_names.svg":"https://s7.qhres2.com/static/5c50b21de64f4c5e.svg","./public/d3svg1/button22/hm_icon_add.svg":"https://s5.qhres2.com/static/852af5cf3c637cef.svg","./public/d3svg1/button22/hm_icon_alias.svg":"https://s6.qhres2.com/static/36fcd0ab7eb1d512.svg","./public/d3svg1/button22/hm_icon_alias_colse.svg":"https://s8.qhres2.com/static/4d38830be1599afc.svg","./public/d3svg1/button22/hm_icon_auto.svg":"https://s7.qhres2.com/static/e08583939b92f508.svg","./public/d3svg1/button22/hm_icon_del.svg":"https://s7.qhres2.com/static/2ded0a5330325385.svg","./public/d3svg1/button22/hm_icon_export.svg":"https://s8.qhres2.com/static/71556fb91f5648f7.svg","./public/d3svg1/button22/hm_icon_fix.svg":"https://s6.qhres2.com/static/baf03da46465cdd6.svg","./public/d3svg1/button22/hm_icon_force.svg":"https://s9.qhres2.com/static/91132a6bf978400c.svg","./public/d3svg1/button22/hm_icon_help.svg":"https://s7.qhres2.com/static/2aa090c82f498cb9.svg","./public/d3svg1/button22/hm_icon_hightLight.svg":"https://s5.qhres2.com/static/e2369714ebf8324d.svg","./public/d3svg1/button22/hm_icon_img.svg":"https://s5.qhres2.com/static/572193e4146fd076.svg","./public/d3svg1/button22/hm_icon_import.svg":"https://s7.qhres2.com/static/3bbcefca466a9108.svg","./public/d3svg1/button22/hm_icon_redo.svg":"https://s6.qhres2.com/static/d47c5779b67388ca.svg","./public/d3svg1/button22/hm_icon_save.svg":"https://s7.qhres2.com/static/2992a856a97d5b85.svg","./public/d3svg1/button22/hm_icon_snapshot.svg":"https://s6.qhres2.com/static/6109b5e11a9f2631.svg","./public/d3svg1/button22/hm_icon_tree.svg":"https://s6.qhres2.com/static/274890d02e511166.svg","./public/d3svg1/button22/hm_icon_undo.svg":"https://s6.qhres2.com/static/736f72642af1abc9.svg","./public/d3svg1/button22/hm_icon_unfix.svg":"https://s7.qhres2.com/static/ea8a1159fe64af2b.svg","./public/d3svg1/button_un_show_label.svg":"https://s6.qhres2.com/static/b19a5b41cfffbc0b.svg","./public/d3svg1/cert.svg":"https://s8.qhres2.com/static/8e9252db9ca5f789.svg","./public/d3svg1/cert_code.svg":"https://s8.qhres2.com/static/b034794ce279efc0.svg","./public/d3svg1/cert_https.svg":"https://s7.qhres2.com/static/fb425c625c9106d9.svg","./public/d3svg1/cert_md5.svg":"https://s8.qhres2.com/static/df826bcca1d0fb18.svg","./public/d3svg1/cloud.svg":"https://s9.qhres2.com/static/633cc96ec9bff2e6.svg","./public/d3svg1/company.svg":"https://s9.qhres2.com/static/4b09c9ca105cf6a4.svg","./public/d3svg1/country.svg":"https://s5.qhres2.com/static/1a7736c5b478e07b.svg","./public/d3svg1/dns.svg":"https://s8.qhres2.com/static/1089289f6729cade.svg","./public/d3svg1/dns_domain.svg":"https://s6.qhres2.com/static/fc636fd5af0c0c05.svg","./public/d3svg1/dns_ip.svg":"https://s6.qhres2.com/static/945d97b0460770aa.svg","./public/d3svg1/domain.svg":"https://s8.qhres2.com/static/d15450a9035991ba.svg","./public/d3svg1/down.svg":"https://s8.qhres2.com/static/1129404c0a0a7a23.svg","./public/d3svg1/download.svg":"https://s7.qhres2.com/static/2ea12e3c04d70b6e.svg","./public/d3svg1/email.svg":"https://s6.qhres2.com/static/1feb3629d4b23c7d.svg","./public/d3svg1/event.svg":"https://s8.qhres2.com/static/638b2ce39606388a.svg","./public/d3svg1/family.svg":"https://s9.qhres2.com/static/4cd5109f631b74af.svg","./public/d3svg1/file.svg":"https://s9.qhres2.com/static/5464eee7f1212b95.svg","./public/d3svg1/file_md5.svg":"https://s6.qhres2.com/static/3882a8f6cc25a1fa.svg","./public/d3svg1/find_country.svg":"https://s6.qhres2.com/static/2775367e4febc238.svg","./public/d3svg1/find_group.svg":"https://s7.qhres2.com/static/73c08baa1232ab15.svg","./public/d3svg1/find_ioc.svg":"https://s5.qhres2.com/static/b324dc9874d2f64a.svg","./public/d3svg1/find_report.svg":"https://s5.qhres2.com/static/7e8b93e787606859.svg","./public/d3svg1/find_target_country.svg":"https://s6.qhres2.com/static/1bf440bf280e9186.svg","./public/d3svg1/find_target_industry.svg":"https://s5.qhres2.com/static/0ea145e0bc9844f1.svg","./public/d3svg1/find_ttp.svg":"https://s6.qhres2.com/static/d3555f80211bdd20.svg","./public/d3svg1/find_vendor.svg":"https://s5.qhres2.com/static/35936579d6cec419.svg","./public/d3svg1/flags/abu_dhabi.png":"https://p0.ssl.qhimg.com/t11b673bcd600b7420ed9d3b0fc.png","./public/d3svg1/flags/afghanistan.png":"https://p5.ssl.qhimg.com/t11b673bcd66b73f84b7152db62.png","./public/d3svg1/flags/albania.png":"https://p0.ssl.qhimg.com/t11b673bcd6554ace32f912d567.png","./public/d3svg1/flags/algeria.png":"https://p3.ssl.qhimg.com/t11b673bcd622422b6d071ccc22.png","./public/d3svg1/flags/american_samoa.png":"https://p1.ssl.qhimg.com/t11b673bcd6c595535d38c2c488.png","./public/d3svg1/flags/andorra.png":"https://p0.ssl.qhimg.com/t11b673bcd6805f7f0ae834fc32.png","./public/d3svg1/flags/angola.png":"https://p3.ssl.qhimg.com/t11b673bcd64152de70c5b45254.png","./public/d3svg1/flags/anguilla.png":"https://p2.ssl.qhimg.com/t11b673bcd655dd08b9abd92436.png","./public/d3svg1/flags/antigua_and_barbuda.png":"https://p4.ssl.qhimg.com/t11b673bcd6c42483ae1c05b5ae.png","./public/d3svg1/flags/argentina.png":"https://p0.ssl.qhimg.com/t11b673bcd64d3f8c0d28624343.png","./public/d3svg1/flags/armenia.png":"https://p1.ssl.qhimg.com/t11b673bcd6ffddd18f6213fbe8.png","./public/d3svg1/flags/aruba.png":"https://p5.ssl.qhimg.com/t11b673bcd6a954f4ebda2b2aaf.png","./public/d3svg1/flags/australia.png":"https://p1.ssl.qhimg.com/t11b673bcd6c024c65ff1cc8a8d.png","./public/d3svg1/flags/austria.png":"https://p0.ssl.qhimg.com/t11b673bcd6e6a215b0a4a0077d.png","./public/d3svg1/flags/azerbaijan.png":"https://p4.ssl.qhimg.com/t11b673bcd6b2f598ca0633bab4.png","./public/d3svg1/flags/bahamas.png":"https://p1.ssl.qhimg.com/t11b673bcd64389c5b895aeb8cb.png","./public/d3svg1/flags/bahrain.png":"https://p5.ssl.qhimg.com/t11b673bcd6e9aea3791db558e2.png","./public/d3svg1/flags/bangladesh.png":"https://p4.ssl.qhimg.com/t11b673bcd656bcda81bdeb333e.png","./public/d3svg1/flags/barbados.png":"https://p3.ssl.qhimg.com/t11b673bcd6e173975ff3435533.png","./public/d3svg1/flags/belarus.png":"https://p4.ssl.qhimg.com/t11b673bcd6c6bd61585df5dc66.png","./public/d3svg1/flags/belgium.png":"https://p5.ssl.qhimg.com/t11b673bcd6bc981724a92fd288.png","./public/d3svg1/flags/belize.png":"https://p3.ssl.qhimg.com/t11b673bcd657e3a5a5e9e6d0dc.png","./public/d3svg1/flags/benin.png":"https://p4.ssl.qhimg.com/t11b673bcd60fe48ceb0d83f1db.png","./public/d3svg1/flags/bermuda.png":"https://p4.ssl.qhimg.com/t11b673bcd6991a5555e2951383.png","./public/d3svg1/flags/bhutan.png":"https://p1.ssl.qhimg.com/t11b673bcd6c1a09b104cbbf155.png","./public/d3svg1/flags/bolivia.png":"https://p4.ssl.qhimg.com/t11b673bcd6f14d83bf204a3484.png","./public/d3svg1/flags/bosnia_and_herzegovina.png":"https://p2.ssl.qhimg.com/t11b673bcd60c6298b82cba538c.png","./public/d3svg1/flags/botswana.png":"https://p5.ssl.qhimg.com/t11b673bcd6c857af3514756b8f.png","./public/d3svg1/flags/brazil.png":"https://p0.ssl.qhimg.com/t11b673bcd65ca6cd0fb5c7cc59.png","./public/d3svg1/flags/british_virgin_islands.png":"https://p4.ssl.qhimg.com/t11b673bcd604bceae11fd2f580.png","./public/d3svg1/flags/brunei.png":"https://p3.ssl.qhimg.com/t11b673bcd6f920666ff379bb8a.png","./public/d3svg1/flags/bulgaria.png":"https://p5.ssl.qhimg.com/t11b673bcd6766409ab0d88cc13.png","./public/d3svg1/flags/burkina_faso.png":"https://p4.ssl.qhimg.com/t11b673bcd6366f1d500c9f0c26.png","./public/d3svg1/flags/burundi.png":"https://p0.ssl.qhimg.com/t11b673bcd6ef92224393d4789c.png","./public/d3svg1/flags/cambodia.png":"https://p2.ssl.qhimg.com/t11b673bcd689fddeb63273c902.png","./public/d3svg1/flags/cameroon.png":"https://p3.ssl.qhimg.com/t11b673bcd61b97aca53d096ec7.png","./public/d3svg1/flags/canada.png":"https://p4.ssl.qhimg.com/t11b673bcd607f2e3664cc586a9.png","./public/d3svg1/flags/cape_verde.png":"https://p5.ssl.qhimg.com/t11b673bcd6bcd5521b34abe933.png","./public/d3svg1/flags/cayman_islands.png":"https://p4.ssl.qhimg.com/t11b673bcd659643bbfdae25503.png","./public/d3svg1/flags/central_african_republic.png":"https://p2.ssl.qhimg.com/t11b673bcd6689eb3ad435ebb68.png","./public/d3svg1/flags/chad.png":"https://p4.ssl.qhimg.com/t11b673bcd69e06a9ad5a86a48b.png","./public/d3svg1/flags/chile.png":"https://p0.ssl.qhimg.com/t11b673bcd6da100a223247567f.png","./public/d3svg1/flags/china.png":"https://p5.ssl.qhimg.com/t11b673bcd6304bcd201fd23df6.png","./public/d3svg1/flags/christmas_island.png":"https://p2.ssl.qhimg.com/t11b673bcd6e7874db308ac2252.png","./public/d3svg1/flags/cocos_islands.png":"https://p0.ssl.qhimg.com/t11b673bcd6c0b7f434b6919f3f.png","./public/d3svg1/flags/colombia.png":"https://p4.ssl.qhimg.com/t11b673bcd64067c703a78dce3b.png","./public/d3svg1/flags/comoros.png":"https://p0.ssl.qhimg.com/t11b673bcd669a07d86c511072b.png","./public/d3svg1/flags/congo_democratic_republic.png":"https://p4.ssl.qhimg.com/t11b673bcd683ac60001ce46f1f.png","./public/d3svg1/flags/congo_republic.png":"https://p1.ssl.qhimg.com/t11b673bcd63046ae1b2eaa2e03.png","./public/d3svg1/flags/costa_rica.png":"https://p3.ssl.qhimg.com/t11b673bcd626df8804c76f2fd6.png","./public/d3svg1/flags/cote_d'ivoire.png":"https://p3.ssl.qhimg.com/t11b673bcd6bcd9188af99a7148.png","./public/d3svg1/flags/croatia.png":"https://p1.ssl.qhimg.com/t11b673bcd6d3566b33a31ee615.png","./public/d3svg1/flags/cuba.png":"https://p0.ssl.qhimg.com/t11b673bcd6dc80791b9bc8e11c.png","./public/d3svg1/flags/curacao.png":"https://p0.ssl.qhimg.com/t11b673bcd61f17f8ec93fecd34.png","./public/d3svg1/flags/cyprus.png":"https://p2.ssl.qhimg.com/t11b673bcd69a4c05b99a9c64be.png","./public/d3svg1/flags/czech_republic.png":"https://p1.ssl.qhimg.com/t11b673bcd63224c0c67639351f.png","./public/d3svg1/flags/denmark.png":"https://p4.ssl.qhimg.com/t11b673bcd6b0f04b65a97f8028.png","./public/d3svg1/flags/djibouti.png":"https://p0.ssl.qhimg.com/t11b673bcd6e4796ea6f99dd948.png","./public/d3svg1/flags/dominica.png":"https://p3.ssl.qhimg.com/t11b673bcd6b3867bd167f1d976.png","./public/d3svg1/flags/dominican_republic.png":"https://p4.ssl.qhimg.com/t11b673bcd64378d5ead5b5e6ec.png","./public/d3svg1/flags/east_timor.png":"https://p5.ssl.qhimg.com/t11b673bcd6e8e5fb8405dec7e3.png","./public/d3svg1/flags/ecuador.png":"https://p2.ssl.qhimg.com/t11b673bcd6395fb935fa0f0e3a.png","./public/d3svg1/flags/egypt.png":"https://p3.ssl.qhimg.com/t11b673bcd601fe13f0f24008e9.png","./public/d3svg1/flags/el_salvador.png":"https://p4.ssl.qhimg.com/t11b673bcd60104541f9c7a0c99.png","./public/d3svg1/flags/england.png":"https://p5.ssl.qhimg.com/t11b673bcd643b14e971b5b3cb6.png","./public/d3svg1/flags/equatorial_guinea.png":"https://p5.ssl.qhimg.com/t11b673bcd6a74942f5afd0b3a4.png","./public/d3svg1/flags/eritrea.png":"https://p4.ssl.qhimg.com/t11b673bcd6ce53472f50f44f5b.png","./public/d3svg1/flags/estonia.png":"https://p5.ssl.qhimg.com/t11b673bcd66d527c4a923153eb.png","./public/d3svg1/flags/ethiopia.png":"https://p4.ssl.qhimg.com/t11b673bcd692b527f6a90ddbe0.png","./public/d3svg1/flags/europe.png":"https://p4.ssl.qhimg.com/t11b673bcd65bb42e201aa13efa.png","./public/d3svg1/flags/falkland_islands.png":"https://p1.ssl.qhimg.com/t11b673bcd60ae1bba78b7eb7a6.png","./public/d3svg1/flags/fiji.png":"https://p5.ssl.qhimg.com/t11b673bcd6ffb03de7e05ae7aa.png","./public/d3svg1/flags/finland.png":"https://p4.ssl.qhimg.com/t11b673bcd695f5d1feacba8397.png","./public/d3svg1/flags/france.png":"https://p1.ssl.qhimg.com/t11b673bcd6f697a973b72a98e7.png","./public/d3svg1/flags/french_guiana.png":"https://p3.ssl.qhimg.com/t11b673bcd66346509b6df42a07.png","./public/d3svg1/flags/french_polynesia.png":"https://p3.ssl.qhimg.com/t11b673bcd6932beb0a7b52f3da.png","./public/d3svg1/flags/gabon.png":"https://p2.ssl.qhimg.com/t11b673bcd632f298a0f193b661.png","./public/d3svg1/flags/gambia.png":"https://p4.ssl.qhimg.com/t11b673bcd61564ba1c6e0c96ed.png","./public/d3svg1/flags/georgia.png":"https://p2.ssl.qhimg.com/t11b673bcd6eea60bad5abefdba.png","./public/d3svg1/flags/germany.png":"https://p1.ssl.qhimg.com/t11b673bcd684b3001d906d19c7.png","./public/d3svg1/flags/ghana.png":"https://p2.ssl.qhimg.com/t11b673bcd6f7dcd42afd3fc0ff.png","./public/d3svg1/flags/gibraltar.png":"https://p3.ssl.qhimg.com/t11b673bcd6ed767f13c90a732f.png","./public/d3svg1/flags/greece.png":"https://p0.ssl.qhimg.com/t11b673bcd6da5d5973a17cc048.png","./public/d3svg1/flags/greenland.png":"https://p1.ssl.qhimg.com/t11b673bcd6d3f1604dea436593.png","./public/d3svg1/flags/grenada.png":"https://p5.ssl.qhimg.com/t11b673bcd670078c4c722961d5.png","./public/d3svg1/flags/guam.png":"https://p1.ssl.qhimg.com/t11b673bcd6fe323aa0e62d3c0c.png","./public/d3svg1/flags/guatemala.png":"https://p3.ssl.qhimg.com/t11b673bcd63743b6c563848d07.png","./public/d3svg1/flags/guernsey.png":"https://p0.ssl.qhimg.com/t11b673bcd6f86e78de635ff50c.png","./public/d3svg1/flags/guinea.png":"https://p0.ssl.qhimg.com/t11b673bcd6d4f635060a97fb49.png","./public/d3svg1/flags/guinea_bissau.png":"https://p4.ssl.qhimg.com/t11b673bcd64ee5f7086bb14c1e.png","./public/d3svg1/flags/guyana.png":"https://p0.ssl.qhimg.com/t11b673bcd6e7d086533c3f87f2.png","./public/d3svg1/flags/haiti.png":"https://p5.ssl.qhimg.com/t11b673bcd6159c94d32253d312.png","./public/d3svg1/flags/honduras.png":"https://p5.ssl.qhimg.com/t11b673bcd6796b21e7e87b5254.png","./public/d3svg1/flags/hongkong.png":"https://p0.ssl.qhimg.com/t11b673bcd621cfe81da15a2878.png","./public/d3svg1/flags/hungary.png":"https://p4.ssl.qhimg.com/t11b673bcd6b5087e47ff53250a.png","./public/d3svg1/flags/iceland.png":"https://p0.ssl.qhimg.com/t11b673bcd60178e8a27cf4f660.png","./public/d3svg1/flags/india.png":"https://p1.ssl.qhimg.com/t11b673bcd68213e7e6dc2a3368.png","./public/d3svg1/flags/indonesia.png":"https://p4.ssl.qhimg.com/t11b673bcd6bcb4661812d6e2dd.png","./public/d3svg1/flags/ip.png":"https://p4.ssl.qhimg.com/t11b673bcd62e2c50a4c424fd37.png","./public/d3svg1/flags/iran.png":"https://p1.ssl.qhimg.com/t11b673bcd61a5bca45b65c6bda.png","./public/d3svg1/flags/iraq.png":"https://p3.ssl.qhimg.com/t11b673bcd6c351fb6799b43b8e.png","./public/d3svg1/flags/ireland.png":"https://p2.ssl.qhimg.com/t11b673bcd6c19ffc4e51b1b821.png","./public/d3svg1/flags/isle_of_man.png":"https://p1.ssl.qhimg.com/t11b673bcd67cc3b83618827640.png","./public/d3svg1/flags/israel.png":"https://p5.ssl.qhimg.com/t11b673bcd60f3fe6361aebe345.png","./public/d3svg1/flags/italy.png":"https://p0.ssl.qhimg.com/t11b673bcd6259e5daf0549a262.png","./public/d3svg1/flags/jamaica.png":"https://p4.ssl.qhimg.com/t11b673bcd6fe1c1722f1aadb19.png","./public/d3svg1/flags/japan.png":"https://p5.ssl.qhimg.com/t11b673bcd62be27ee2e0144814.png","./public/d3svg1/flags/jersey.png":"https://p5.ssl.qhimg.com/t11b673bcd6e6808ce8980d8153.png","./public/d3svg1/flags/jordan.png":"https://p4.ssl.qhimg.com/t11b673bcd63b03a35b35e93112.png","./public/d3svg1/flags/kazakhstan.png":"https://p1.ssl.qhimg.com/t11b673bcd65c547f69f6914068.png","./public/d3svg1/flags/kenya.png":"https://p5.ssl.qhimg.com/t11b673bcd6c139207c1af5796e.png","./public/d3svg1/flags/kiribati.png":"https://p4.ssl.qhimg.com/t11b673bcd6fa801f19411d0845.png","./public/d3svg1/flags/kosovo.png":"https://p5.ssl.qhimg.com/t11b673bcd67a2248e71b96fe50.png","./public/d3svg1/flags/kuwait.png":"https://p1.ssl.qhimg.com/t11b673bcd644ba519b64e3b8d5.png","./public/d3svg1/flags/kyrgyzstan.png":"https://p2.ssl.qhimg.com/t11b673bcd6586d16c82fd0d335.png","./public/d3svg1/flags/laos.png":"https://p5.ssl.qhimg.com/t11b673bcd6c625355323458017.png","./public/d3svg1/flags/latvia.png":"https://p0.ssl.qhimg.com/t11b673bcd6ea8a114edbe5ec64.png","./public/d3svg1/flags/lebanon.png":"https://p4.ssl.qhimg.com/t11b673bcd6ffbeb21378af699a.png","./public/d3svg1/flags/lesotho.png":"https://p0.ssl.qhimg.com/t11b673bcd6d373c8167c1bbc61.png","./public/d3svg1/flags/liberia.png":"https://p0.ssl.qhimg.com/t11b673bcd6f36c69ecf34bcb61.png","./public/d3svg1/flags/libya.png":"https://p0.ssl.qhimg.com/t11b673bcd6d20838c79c8f3ba6.png","./public/d3svg1/flags/liechtenstein.png":"https://p5.ssl.qhimg.com/t11b673bcd696b0707e4ac337b5.png","./public/d3svg1/flags/lithuania.png":"https://p5.ssl.qhimg.com/t11b673bcd6b414cecd90415a6a.png","./public/d3svg1/flags/luxembourg.png":"https://p1.ssl.qhimg.com/t11b673bcd63d9dda633fc50ffd.png","./public/d3svg1/flags/macau.png":"https://p1.ssl.qhimg.com/t11b673bcd6a892679802369212.png","./public/d3svg1/flags/macedonia.png":"https://p2.ssl.qhimg.com/t11b673bcd623808f60cf668fc9.png","./public/d3svg1/flags/madagascar.png":"https://p0.ssl.qhimg.com/t11b673bcd64d15e974516d5cb3.png","./public/d3svg1/flags/malawi.png":"https://p5.ssl.qhimg.com/t11b673bcd62db076a05806722c.png","./public/d3svg1/flags/malaysia.png":"https://p4.ssl.qhimg.com/t11b673bcd6f9a3c22f13fd96c5.png","./public/d3svg1/flags/maldives.png":"https://p3.ssl.qhimg.com/t11b673bcd6fde5890555898b6f.png","./public/d3svg1/flags/mali.png":"https://p1.ssl.qhimg.com/t11b673bcd6422870677e8b5bce.png","./public/d3svg1/flags/malta.png":"https://p4.ssl.qhimg.com/t11b673bcd672c88550dc2c333e.png","./public/d3svg1/flags/marshall_islands.png":"https://p0.ssl.qhimg.com/t11b673bcd6646846cbbf3a4735.png","./public/d3svg1/flags/mauritania.png":"https://p5.ssl.qhimg.com/t11b673bcd6c3ade924f1cef885.png","./public/d3svg1/flags/mauritius.png":"https://p0.ssl.qhimg.com/t11b673bcd629026fcfcd64601f.png","./public/d3svg1/flags/mexico.png":"https://p2.ssl.qhimg.com/t11b673bcd6e06d39e098fc8ccb.png","./public/d3svg1/flags/micronesia.png":"https://p1.ssl.qhimg.com/t11b673bcd6c1b247a750439a7e.png","./public/d3svg1/flags/moldova.png":"https://p5.ssl.qhimg.com/t11b673bcd650c6f75d4d3eee8b.png","./public/d3svg1/flags/monaco.png":"https://p4.ssl.qhimg.com/t11b673bcd6bcb4661812d6e2dd.png","./public/d3svg1/flags/mongolia.png":"https://p4.ssl.qhimg.com/t11b673bcd62cfc9fa747237289.png","./public/d3svg1/flags/montenegro.png":"https://p4.ssl.qhimg.com/t11b673bcd66462c01ca1bafac0.png","./public/d3svg1/flags/montserrat.png":"https://p3.ssl.qhimg.com/t11b673bcd60c8845d6d090c447.png","./public/d3svg1/flags/morocco.png":"https://p0.ssl.qhimg.com/t11b673bcd69897bbe03901a57a.png","./public/d3svg1/flags/mozambique.png":"https://p5.ssl.qhimg.com/t11b673bcd65f93036ad9aec89c.png","./public/d3svg1/flags/myanmar_burma.png":"https://p2.ssl.qhimg.com/t11b673bcd63ee76060475fe0b0.png","./public/d3svg1/flags/namibia.png":"https://p2.ssl.qhimg.com/t11b673bcd65e0bbc1fec4908a9.png","./public/d3svg1/flags/nauru.png":"https://p0.ssl.qhimg.com/t11b673bcd674083d9b9b5e0069.png","./public/d3svg1/flags/nepal.png":"https://p0.ssl.qhimg.com/t11b673bcd67808e1379fc17470.png","./public/d3svg1/flags/netherlands.png":"https://p5.ssl.qhimg.com/t11b673bcd6d592b75467b0db7b.png","./public/d3svg1/flags/netherlands_antilles.png":"https://p5.ssl.qhimg.com/t11b673bcd63bbf175457b12c12.png","./public/d3svg1/flags/new_caledonia.png":"https://p1.ssl.qhimg.com/t11b673bcd62231079a91d351eb.png","./public/d3svg1/flags/new_zealand.png":"https://p4.ssl.qhimg.com/t11b673bcd649ee6eb1c37a282a.png","./public/d3svg1/flags/nicaragua.png":"https://p2.ssl.qhimg.com/t11b673bcd63d155996d8c986c9.png","./public/d3svg1/flags/niger.png":"https://p5.ssl.qhimg.com/t11b673bcd64f4d87e9952a272b.png","./public/d3svg1/flags/nigeria.png":"https://p2.ssl.qhimg.com/t11b673bcd6964d810f5fe6b404.png","./public/d3svg1/flags/niue.png":"https://p5.ssl.qhimg.com/t11b673bcd6f23318f87536e3be.png","./public/d3svg1/flags/norfolk_island.png":"https://p0.ssl.qhimg.com/t11b673bcd66bb5e86248642b36.png","./public/d3svg1/flags/northern_cyprus.png":"https://p5.ssl.qhimg.com/t11b673bcd61b7548ce349c2c59.png","./public/d3svg1/flags/northern_ireland.png":"https://p5.ssl.qhimg.com/t11b673bcd6ea43c093d6f4f449.png","./public/d3svg1/flags/north_korea.png":"https://p4.ssl.qhimg.com/t11b673bcd67327fd94e8b6a5a3.png","./public/d3svg1/flags/norway.png":"https://p0.ssl.qhimg.com/t11b673bcd6c987d9dd507bfdd6.png","./public/d3svg1/flags/oman.png":"https://p3.ssl.qhimg.com/t11b673bcd6808d4462b6f3a218.png","./public/d3svg1/flags/pakistan.png":"https://p2.ssl.qhimg.com/t11b673bcd6cf5e993ade4f2964.png","./public/d3svg1/flags/palau.png":"https://p3.ssl.qhimg.com/t11b673bcd6c068865ac2e2b031.png","./public/d3svg1/flags/palestine.png":"https://p1.ssl.qhimg.com/t11b673bcd6eead994da457cb04.png","./public/d3svg1/flags/panama.png":"https://p2.ssl.qhimg.com/t11b673bcd6cc4745092f80ccfb.png","./public/d3svg1/flags/papua_new_guinea.png":"https://p0.ssl.qhimg.com/t11b673bcd644673a8e2c3ef051.png","./public/d3svg1/flags/paraguay.png":"https://p1.ssl.qhimg.com/t11b673bcd6dda2a735d20519e7.png","./public/d3svg1/flags/peru.png":"https://p2.ssl.qhimg.com/t11b673bcd633af174deb1560d5.png","./public/d3svg1/flags/philippines.png":"https://p4.ssl.qhimg.com/t11b673bcd6f5f86e3429cb4c81.png","./public/d3svg1/flags/pitcairn_islands.png":"https://p1.ssl.qhimg.com/t11b673bcd64517b95359047675.png","./public/d3svg1/flags/poland.png":"https://p3.ssl.qhimg.com/t11b673bcd6069ed918cdd98767.png","./public/d3svg1/flags/portugal.png":"https://p4.ssl.qhimg.com/t11b673bcd68cefa1ac33d50290.png","./public/d3svg1/flags/puerto_rico.png":"https://p2.ssl.qhimg.com/t11b673bcd6659a3560240c8a4e.png","./public/d3svg1/flags/qatar.png":"https://p3.ssl.qhimg.com/t11b673bcd669854fcdd37ed962.png","./public/d3svg1/flags/romania.png":"https://p2.ssl.qhimg.com/t11b673bcd6208b9341dba47f11.png","./public/d3svg1/flags/russia.png":"https://p0.ssl.qhimg.com/t11b673bcd66b8ee4de7e5d9e69.png","./public/d3svg1/flags/rwanda.png":"https://p3.ssl.qhimg.com/t11b673bcd61c8a95a7340b4dae.png","./public/d3svg1/flags/sahrawi_arab.png":"https://p0.ssl.qhimg.com/t11b673bcd6833624156c42e3ab.png","./public/d3svg1/flags/saint_kitts_and_nevis.png":"https://p2.ssl.qhimg.com/t11b673bcd6bb701bf8e688e076.png","./public/d3svg1/flags/saint_lucia.png":"https://p2.ssl.qhimg.com/t11b673bcd6be47edaa16e3efdb.png","./public/d3svg1/flags/saint_vincent_and_grenadines.png":"https://p5.ssl.qhimg.com/t11b673bcd6356376d62ad2fb08.png","./public/d3svg1/flags/samoa.png":"https://p0.ssl.qhimg.com/t11b673bcd65099091e7ff643a2.png","./public/d3svg1/flags/san_marino.png":"https://p1.ssl.qhimg.com/t11b673bcd6c7d8eaf79bd11950.png","./public/d3svg1/flags/sao_tome_principe.png":"https://p0.ssl.qhimg.com/t11b673bcd65ed5322e52b33883.png","./public/d3svg1/flags/saudi_arabia.png":"https://p4.ssl.qhimg.com/t11b673bcd65ef983618f3dad1d.png","./public/d3svg1/flags/scotland.png":"https://p2.ssl.qhimg.com/t11b673bcd632d8efbdc309befc.png","./public/d3svg1/flags/senegal.png":"https://p5.ssl.qhimg.com/t11b673bcd6ed2aa2fac6a327f1.png","./public/d3svg1/flags/serbia.png":"https://p1.ssl.qhimg.com/t11b673bcd6f87c8ab028617f5b.png","./public/d3svg1/flags/seychelles.png":"https://p1.ssl.qhimg.com/t11b673bcd621e9aa4597a2c5d2.png","./public/d3svg1/flags/sierra_leone.png":"https://p5.ssl.qhimg.com/t11b673bcd60afc938f22552079.png","./public/d3svg1/flags/singapore.png":"https://p1.ssl.qhimg.com/t11b673bcd640999577dd24227e.png","./public/d3svg1/flags/sint_maarten.png":"https://p4.ssl.qhimg.com/t11b673bcd615986c65ec59b44c.png","./public/d3svg1/flags/slovakia.png":"https://p0.ssl.qhimg.com/t11b673bcd61e49878fdeda9e6c.png","./public/d3svg1/flags/slovenia.png":"https://p3.ssl.qhimg.com/t11b673bcd6ef90cb0d44c02757.png","./public/d3svg1/flags/solomon_islands.png":"https://p1.ssl.qhimg.com/t11b673bcd6066406f4b1266571.png","./public/d3svg1/flags/somalia.png":"https://p5.ssl.qhimg.com/t11b673bcd63c470e6e15a1a963.png","./public/d3svg1/flags/south_africa.png":"https://p2.ssl.qhimg.com/t11b673bcd6aaa44743ad66ca71.png","./public/d3svg1/flags/south_korea.png":"https://p2.ssl.qhimg.com/t11b673bcd6207c734bc93ffca7.png","./public/d3svg1/flags/south_sudan.png":"https://p1.ssl.qhimg.com/t11b673bcd61c283fad96263e62.png","./public/d3svg1/flags/spain.png":"https://p5.ssl.qhimg.com/t11b673bcd68316992b1c22281d.png","./public/d3svg1/flags/sri_lanka.png":"https://p4.ssl.qhimg.com/t11b673bcd6fb7bcacef951feed.png","./public/d3svg1/flags/sudan.png":"https://p1.ssl.qhimg.com/t11b673bcd6f129ac747600e082.png","./public/d3svg1/flags/suriname.png":"https://p5.ssl.qhimg.com/t11b673bcd67a12641513ab7d34.png","./public/d3svg1/flags/swaziland.png":"https://p0.ssl.qhimg.com/t11b673bcd6936216cc45eeff7b.png","./public/d3svg1/flags/sweden.png":"https://p0.ssl.qhimg.com/t11b673bcd666958e31ac92957e.png","./public/d3svg1/flags/switzeland.png":"https://p2.ssl.qhimg.com/t11b673bcd6122ada53eb1b807e.png","./public/d3svg1/flags/syria.png":"https://p1.ssl.qhimg.com/t11b673bcd6953c86d18052c932.png","./public/d3svg1/flags/taiwan.png":"https://p5.ssl.qhimg.com/t11b673bcd6304bcd201fd23df6.png","./public/d3svg1/flags/tajikistan.png":"https://p4.ssl.qhimg.com/t11b673bcd698c5c84a62b12388.png","./public/d3svg1/flags/tanzania.png":"https://p3.ssl.qhimg.com/t11b673bcd6d537b34d56658c98.png","./public/d3svg1/flags/thailand.png":"https://p1.ssl.qhimg.com/t11b673bcd60050f650fff9bd66.png","./public/d3svg1/flags/the_cook_islands.png":"https://p4.ssl.qhimg.com/t11b673bcd61292a8f19147f865.png","./public/d3svg1/flags/the_faroe_islands.png":"https://p0.ssl.qhimg.com/t11b673bcd6cda6e9ec5b5bc8f6.png","./public/d3svg1/flags/the_turks_and_caicos_islands.png":"https://p2.ssl.qhimg.com/t11b673bcd614fca92287df5c95.png","./public/d3svg1/flags/togo.png":"https://p5.ssl.qhimg.com/t11b673bcd682ba165ebbbca70a.png","./public/d3svg1/flags/tokelau.png":"https://p1.ssl.qhimg.com/t11b673bcd67e4bae219b59d6e6.png","./public/d3svg1/flags/tonga.png":"https://p0.ssl.qhimg.com/t11b673bcd6998933793d4d8fbc.png","./public/d3svg1/flags/transnistria.png":"https://p0.ssl.qhimg.com/t11b673bcd62dc7b17601baa895.png","./public/d3svg1/flags/trinidad_and_tobago.png":"https://p3.ssl.qhimg.com/t11b673bcd67371391609bf78d7.png","./public/d3svg1/flags/tunisia.png":"https://p3.ssl.qhimg.com/t11b673bcd624cb2d7bf0797501.png","./public/d3svg1/flags/turkey.png":"https://p5.ssl.qhimg.com/t11b673bcd6b51b544b5e683846.png","./public/d3svg1/flags/turkmenistan.png":"https://p2.ssl.qhimg.com/t11b673bcd680705dbb5d2590e1.png","./public/d3svg1/flags/tuvalu.png":"https://p5.ssl.qhimg.com/t11b673bcd6eb80c5b0e6b4cf9d.png","./public/d3svg1/flags/uganda.png":"https://p2.ssl.qhimg.com/t11b673bcd6a42822abbcef11ef.png","./public/d3svg1/flags/ukraine.png":"https://p5.ssl.qhimg.com/t11b673bcd6a18c73c5e309e867.png","./public/d3svg1/flags/united_arab_emirates_uae.png":"https://p0.ssl.qhimg.com/t11b673bcd6d6ac620490436646.png","./public/d3svg1/flags/united_kingdom.png":"https://p0.ssl.qhimg.com/t11b673bcd6b2dab8383fd03d16.png","./public/d3svg1/flags/united_states.png":"https://p4.ssl.qhimg.com/t11b673bcd6ac4aab9abb62470d.png","./public/d3svg1/flags/united_states_virgin_islands.png":"https://p0.ssl.qhimg.com/t11b673bcd60e706830471605ae.png","./public/d3svg1/flags/uruguay.png":"https://p1.ssl.qhimg.com/t11b673bcd673c8556316268f27.png","./public/d3svg1/flags/uzbekistan.png":"https://p5.ssl.qhimg.com/t11b673bcd6692a87d0deaa0cd4.png","./public/d3svg1/flags/vanuatu.png":"https://p3.ssl.qhimg.com/t11b673bcd6dfe59d18beb502ed.png","./public/d3svg1/flags/vatican.png":"https://p2.ssl.qhimg.com/t11b673bcd65204ea5b7e60deae.png","./public/d3svg1/flags/venezuela.png":"https://p3.ssl.qhimg.com/t11b673bcd6d6d7092d46e0d7c3.png","./public/d3svg1/flags/vietnam.png":"https://p3.ssl.qhimg.com/t11b673bcd668708c0e4043f8a0.png","./public/d3svg1/flags/wales.png":"https://p2.ssl.qhimg.com/t11b673bcd60c0cbfacd5576ddd.png","./public/d3svg1/flags/wallis_and_futuna.png":"https://p5.ssl.qhimg.com/t11b673bcd68351271fd687e442.png","./public/d3svg1/flags/yemen.png":"https://p2.ssl.qhimg.com/t11b673bcd6b506ff3ca76f158a.png","./public/d3svg1/flags/zambia.png":"https://p4.ssl.qhimg.com/t11b673bcd614f327cbfbe2c728.png","./public/d3svg1/flags/zimbabwe.png":"https://p0.ssl.qhimg.com/t11b673bcd6704ad2c0a3c95fd1.png","./public/d3svg1/fold-left.svg":"https://s5.qhres2.com/static/64c3e01294203a68.svg","./public/d3svg1/fold-right.svg":"https://s9.qhres2.com/static/3538c207c3fe91e2.svg","./public/d3svg1/group.svg":"https://s5.qhres2.com/static/5f3286f6d9f3faab.svg","./public/d3svg1/host.svg":"https://s8.qhres2.com/static/1c0a4b2bfee6e157.svg","./public/d3svg1/icon_ thumbprint.svg":"https://s9.qhres2.com/static/4604a52bd2797688.svg","./public/d3svg1/icon_cert_md5.svg":"https://s8.qhres2.com/static/50f33f15365a638a.svg","./public/d3svg1/icon_email.svg":"https://s8.qhres2.com/static/6ca54d23816f6bab.svg","./public/d3svg1/icon_family.svg":"https://s5.qhres2.com/static/df16a4bb42ef04f8.svg","./public/d3svg1/icon_files.svg":"https://s6.qhres2.com/static/7a779b0e4bdb8823.svg","./public/d3svg1/icon_host.svg":"https://s9.qhres2.com/static/8d1207bc7ff6821e.svg","./public/d3svg1/icon_ip.svg":"https://s9.qhres2.com/static/2dd1f32c1f2925b6.svg","./public/d3svg1/icon_issuer.svg":"https://s9.qhres2.com/static/64f9af8918b80390.svg","./public/d3svg1/icon_mac.svg":"https://s6.qhres2.com/static/afa1897aa3157b79.svg","./public/d3svg1/icon_mid.svg":"https://s6.qhres2.com/static/f8b70764e209d1b0.svg","./public/d3svg1/icon_org.svg":"https://s8.qhres2.com/static/8a788cf726c4be74.svg","./public/d3svg1/icon_report.svg":"https://s8.qhres2.com/static/307389647f167f5a.svg","./public/d3svg1/icon_search.svg":"https://s7.qhres2.com/static/3ebec436a55a4e02.svg","./public/d3svg1/icon_subject.svg":"https://s5.qhres2.com/static/dc50dc3eb65359c6.svg","./public/d3svg1/icon_vul.svg":"https://s7.qhres2.com/static/6178e21d4df882e5.svg","./public/d3svg1/innerip.svg":"https://s9.qhres2.com/static/b2ba46a37e51ac7c.svg","./public/d3svg1/internet.svg":"https://s5.qhres2.com/static/329ba4f0d5d5a38e.svg","./public/d3svg1/intranet.svg":"https://s8.qhres2.com/static/d57dc307ea030e67.svg","./public/d3svg1/ioc.svg":"https://s6.qhres2.com/static/c3c9db7bbc3e5bf5.svg","./public/d3svg1/ip copy.svg":"https://s5.qhres2.com/static/f30c7317dd483dbd.svg","./public/d3svg1/ip.svg":"https://s8.qhres2.com/static/e9aa6d49edb6c705.svg","./public/d3svg1/ips.svg":"https://s9.qhres2.com/static/9c1cb66938613669.svg","./public/d3svg1/jiantou.svg":"https://s9.qhres2.com/static/2782d2c0cf2735b3.svg","./public/d3svg1/jiantou_active.svg":"https://s7.qhres2.com/static/66b48ee2c7ac8fa1.svg","./public/d3svg1/loop.svg":"https://s8.qhres2.com/static/f8fae0b477ae23f8.svg","./public/d3svg1/mac.svg":"https://s7.qhres2.com/static/9cf115d3f6ac3d2c.svg","./public/d3svg1/mail.svg":"https://s9.qhres2.com/static/998d1f1f7829350c.svg","./public/d3svg1/md5.svg":"https://s9.qhres2.com/static/e9c970724261e663.svg","./public/d3svg1/md51.svg":"https://s7.qhres2.com/static/57466b9085fcc2ea.svg","./public/d3svg1/md52.svg":"https://s5.qhres2.com/static/4bdced7a2e104377.svg","./public/d3svg1/md53.svg":"https://s7.qhres2.com/static/273f73f17afdcac5.svg","./public/d3svg1/md54.svg":"https://s6.qhres2.com/static/51c845288534d905.svg","./public/d3svg1/mid.svg":"https://s9.qhres2.com/static/21d3e21e0ca0faba.svg","./public/d3svg1/name.svg":"https://s5.qhres2.com/static/021ce05cc89c45ac.svg","./public/d3svg1/net.svg":"https://s5.qhres2.com/static/35b12ea3c8a5a69c.svg","./public/d3svg1/node.svg":"https://s9.qhres2.com/static/169d2bd7d9c9aa0a.svg","./public/d3svg1/node_type.svg":"https://s9.qhres2.com/static/97c1c618f9e222cf.svg","./public/d3svg1/org.svg":"https://s9.qhres2.com/static/76b597c211ea4d94.svg","./public/d3svg1/organization.svg":"https://s9.qhres2.com/static/e08c31cd00a3b926.svg","./public/d3svg1/outerip.svg":"https://s8.qhres2.com/static/7ff10a0d571809ad.svg","./public/d3svg1/proc.svg":"https://s5.qhres2.com/static/8abbf12fa662b659.svg","./public/d3svg1/proc_md5.svg":"https://s8.qhres2.com/static/e86f71a748180b4e.svg","./public/d3svg1/relate_ip.svg":"https://s6.qhres2.com/static/13610168689342fd.svg","./public/d3svg1/report.svg":"https://s7.qhres2.com/static/ecf1a790525d5848.svg","./public/d3svg1/router_mac.svg":"https://s6.qhres2.com/static/ccde05c4a61f0356.svg","./public/d3svg1/star.svg":"https://s8.qhres2.com/static/9dece9fb0beb1f0e.svg","./public/d3svg1/sys_icon.svg":"https://s8.qhres2.com/static/1df923965bc3ddc4.svg","./public/d3svg1/target_country.svg":"https://s8.qhres2.com/static/b9262dc9c2f7e0f1.svg","./public/d3svg1/target_industry.svg":"https://s9.qhres2.com/static/571b52805d048d92.svg","./public/d3svg1/thumbprint_md5.svg":"https://s5.qhres2.com/static/02dfbd0ae2c0e573.svg","./public/d3svg1/ttp.svg":"https://s5.qhres2.com/static/b95adbab7c0641d1.svg","./public/d3svg1/url.svg":"https://s8.qhres2.com/static/523349cc292da6b5.svg","./public/d3svg1/user_name.svg":"https://s8.qhres2.com/static/f701f463bc1e30c0.svg","./public/d3svg1/vendor.svg":"https://s8.qhres2.com/static/64d55f39fd1c821f.svg","./public/d3svg1/vul.svg":"https://s6.qhres2.com/static/d45444d8a175ead3.svg"};function as(e){try{var t,n=new RegExp("(^| )"+e+"=([^;]*)(;|$)");return(t=document.cookie.match(n))?unescape(t[2]):""}catch(r){return""}}function E0(e,t,n){var r=(n=n||{}).expires;typeof r=="number"&&(r=new Date).setTime(r.getTime()+n.expires);try{document.cookie=e+"="+escape(t)+(r?";expires="+r.toGMTString():"")+(n.path?";path="+n.path:"")+(n.domain?"; domain="+n.domain:"")}catch(s){}}function wS(e){return e!=null&&e.constructor!=null?Object.prototype.toString.call(e).slice(8,-1):""}function CS(e){return wS(e)=="Array"}function Wc(e){return wS(e)=="Function"}function Pr(e){return e!==null&&typeof e=="object"}function Tr(e,t,n){for(var r in t)(n||!e[r]&&!(r in e))&&(e[r]=t[r]);return e}const SS={"360se-ua":"360se","360ee":"360ee",edge:"edg",edge:"edga",edge:"edgios",TT:"tencenttraveler",Maxthon:"maxthon",GreenBrowser:"greenbrowser",Sogou:"se 2.x",TheWorld:"theworld"},dq=["Baiduspider","Googlebot","360Spider","Sosospider","Yahoo! Slurp China","Yahoo!","YoudaoBot","YodaoBot","Sogou web spider","Sogou inst spider","Sogou spider2","Sogou blog","Sogou News Spider","Sogou Orion spider","msnbot","msnbot-media","bingbot","bingpreview","YisouSpider","ia_archiver","EasouSpider","JikeSpider","Bytespider"];var rt=new class{constructor(){this._activeTime="",this.appkey="",this.trackId="",this.mid="",this.m2="",this.asc="",this.asc2="",this.debug=!1,this.heartbeatTimers={},this.config={wpoUrl:null,trackUrl:null,clickUrl:null,heartbeatUrl:null,clickHeatMapUrl:null,areaIds:null}}log(){if(!this.debug)return;const[e,...t]=arguments,n="[RadarMonitor] "+e;try{return console.log.apply(console,[n,...t])}catch(r){}}userAgentIsExitsSpiders(){const e=this.getUserAgent().toLowerCase();var t=!1;return dq.map(n=>{e.indexOf(n.toLowerCase())>=0&&(t=!0)}),t}setUtilActiveTime(e){this._activeTime=e}setHeartBeatStartTime(e,t){Tr(this.getHeartBeatById(e),{startTime:t},!0)}setHeartBeatTimer(e,t){Tr(this.getHeartBeatById(e),{timer:t},!0)}getHeartBeatStartTime(e){return this.getHeartBeatById(e).startTime}getHeartBeatTimer(e){return this.getHeartBeatById(e).timer}getHeartBeatById(e){return Pr(this.heartbeatTimers[e])||(this.heartbeatTimers[e]={}),this.heartbeatTimers[e]}deleteHeartBeat(e){delete this.heartbeatTimers[e]}setUtilConf(e,t){var n={};Pr(e)?n=e:n[e]=t,this.config=Tr(this.config,n,!0)}getUtilConf(){return this.config}getColorDepth(){return window.screen.colorDepth+"-bit"}getLanguage(){return(navigator.language||navigator.browserLanguage).toLowerCase()}getUserAgent(){return navigator.userAgent}getScreenSize(){return window.screen.width+"x"+window.screen.height}getProject(){return this.appkey}setAppKey(e){/QH_[0-9]+_[0-9]*\#?[0-9]{1,}$/.test(e)?this.appkey=e:e&&this.log("当前写入的appkey: ",e," 格式异常,请前往雷达分析平台确认.")}getReferrer(){var e=document.referrer||"";return e.indexOf("pass")>-1||e.indexOf("pwd")>-1?"403":e}getBrowser(){var e=navigator.userAgent.toLowerCase(),t=!1;for(var n in SS)if(e.indexOf(SS[n])>-1)return n;try{+external.twGetVersion(external.twGetSecurityID(window)).replace(/\./g,"")>1013&&(t=!0)}catch(s){}if(t)return"360se-noua";var r=e.match(/(msie|chrome|safari|firefox|opera|trident)/);return(r=r?r[0]:"")=="msie"?r=e.match(/msie[^;]+/)+"":r=="trident"&&e.replace(/trident\/[0-9].*rv[ :]([0-9.]+)/gi,function(s,o){r="msie "+o}),r}getReferrerKeyWord(){const e=document.referrer;var t={q:"",eqid:""};if(!e)return t;for(var n=new URL(e).search.substring(1).split("&"),r={},s=0;s<n.length;s++){var o=n[s].split("=");r[o[0]]=o[1]}return e.indexOf("baidu.com")>-1?(t.q=r.wd,t.eqid=r.eqid):(e.indexOf("so.com")>-1||e.indexOf("sm.cn")>-1)&&(t.q=r.q),t.q||(t.q=""),t}getLocation(e){e||(e="");try{e=location.href}catch(t){(e=document.createElement("a")).href="",e=e.href}return e=/\.(s?htm|php)/.test(e)?e:e.replace(/\/$/,"")+"/"}hash(e){for(var t=0,n=0,r=e.length-1;r>=0;r--){var s=parseInt(e.charCodeAt(r),10);(n=266338304&(t=(t<<6&268435455)+s+(s<<14)))!=0&&(t^=n>>21)}return t}guid(){for(var e=[navigator.appName,navigator.version,navigator.language||navigator.browserLanguage,navigator.platform,navigator.userAgent,window.screen.width,"x",window.screen.height,window.screen.colorDepth,document.referrer].join(""),t=e.length,n=window.history.length;n;)e+=n--^t++;return 2147483647*(Math.round(2147483647*Math.random())^this.hash(e))}isLocal(){try{var e=location.protocol.toLowerCase();if(e=="http:"||e=="https:")return!1}catch(t){}return!0}getSid(){var e="__DC_sid",t=as(e);return!t&&(t=as("__sid"))&&t.split(".").length!==4&&(t=null),t||(t=[this.hash(this.isLocal()?"":document.domain),this.guid(),+new Date+Math.random()].join(".")),E0(e,t,{expires:60*(this._activeTime||30)*1e3,path:"/"}),t}setUtilTrackId(e){this.trackId=e}getGid(e=!1){var t="__DC_gid",n=as(t);if(!n&&(n=as("__gid"))&&n.split(".").length!==5&&(n=null),n||(n=function(s){try{return JSON.parse(window.localStorage.getItem(s))}catch(o){return[]}}(t)),n)(n=n.split("."))[3]=new Date().getTime(),e&&(n[4]=(parseInt(n[4])||0)+1),n=n.join(".");else{var r=e?1:0;n=this.trackId?[this.trackId,1,1,new Date().getTime(),r].join("."):[this.hash(this.isLocal()?"":document.domain),Math.floor(1e9*Math.random()),new Date().getTime(),new Date().getTime(),r].join(".")}return function(s,o){try{window.localStorage.setItem(s,JSON.stringify(o))}catch(a){}}(t,n),E0(t,n,{expires:63072e6,path:"/"}),n}getBrowserID(){return at(this,null,function*(){return new Promise((e,t)=>at(this,null,function*(){const n=this.getMid(),r=this.getASC(),[s,o]=yield Promise.all([this.getM2(),this.getASC2()]);return e({mid:n,m2:s,asc:r,asc2:o})}))})}getMid(){var e=this.mid;try{e=external.GetMID(external.GetSID(window)),this._setMid(e)}catch(t){}try{e.length!==32&&(e=window.wdextcmd.GetMid(),this._setMid(e))}catch(t){}return e}_setMid(e){this.mid=e}getM2(){return new Promise((e,t)=>{try{if(this.m2.length===0){const n=(r,s)=>{this.setM2(s),e(s)};external.AppCmd(external.GetSID(window),"","GetMID2","","",n)}}catch(n){}setTimeout(()=>{var n=this.m2;if(n===void 0)try{n=window.wdextcmd.GetMidV2(),this.setM2(n),e(n)}catch(r){}e(n)},500)})}setM2(e){this.m2=e}getASC(){var e=this.asc;try{e=external.GetASC(external.GetSID(window)),this.setASC(e)}catch(t){}try{e.length===0&&(e=window.wdextcmd.GetASC(),this.setASC(e))}catch(t){}try{e.length===0&&(e=as("__asc"),this.setASC(e))}catch(t){}return e}setASC(e){this.asc=e}getASC2(){return new Promise((e,t)=>{try{if(this.asc2.length===0){const n=(r,s)=>{this.setASC2(s),e(s)};external.AppCmd(external.GetSID(window),"","GetASC2","","",n)}}catch(n){}setTimeout(()=>{var n=this.asc2;try{n===void 0&&(n=window.wdextcmd.GetASC2(),this.setASC2(n))}catch(r){}try{n.length===0&&(n=as("__asc2"),this.setASC2(n))}catch(r){}e(n)},500)})}setASC2(e){this.asc2=e}getCount(){var e="__DC_monitor_count",t=as(e);return t||(t=as("monitor_count")),E0(e,t=(parseInt(t)||0)+1,{expires:864e5,path:"/"}),t}getFlashVer(){var e=-1;if(navigator.plugins&&navigator.mimeTypes.length){var t=navigator.plugins["Shockwave Flash"];t&&t.description&&(e=t.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s)+r/,".")+".0")}else if(window.ActiveXObject&&!window.opera)try{var n=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");n&&(e=n.GetVariable("$version").replace(/WIN/g,"").replace(/,/g,"."))}catch(r){}return e=parseInt(e,10)}getContainerId(e){var t,n;for(this.getUtilConf().areaIds&&(t=new RegExp("^("+this.getUtilConf().areaIds.join("|")+")$","ig"));e;){if(e.attributes&&("bk"in e.attributes||"data-bk"in e.attributes)){if(n=e.getAttribute("bk")||e.getAttribute("data-bk"))return(n="bk:"+n).substr(0,100);if(e.id)return(n=e.getAttribute("data-desc")||e.id).substr(0,100)}else if(t&&e.id&&t.test(e.id))return(n=e.getAttribute("data-desc")||e.id).substr(0,100);e=e.parentNode}return""}trim(e){return e.replace(/^[\s\xa0\u3000]+|[\u3000\xa0\s]+$/g,"")}getText(e){var t="";return t=e.tagName.toLowerCase()=="input"?e.getAttribute("text")||e.getAttribute("data-text")||e.value||e.title||"":e.getAttribute("text")||e.getAttribute("data-text")||e.innerText||e.textContent||e.title||"",this.trim(t).substr(0,100)}getHref(e){try{return e.getAttribute("data-href")||e.href||""}catch(t){return""}}};function Pf(e,t,n){e.addEventListener?e&&e.addEventListener(t,n,!1):e&&e.attachEvent("on"+t,n)}function x0(e,t,n){for(n=n||5,t=t.toUpperCase();e&&n-- >0;){if(e.tagName===t)return e;e=e.parentNode}return null}var Kc=[];function ES(e){Wc(e)&&Kc.push(e)}function fq(e){var t,n;if(CS(e))for(n=e.length,t=0;t<n;t++)ES(e[t]);else ES(e);(function(r){Kc.splice(Kc.indexOf(r),1)})(e),e=null}function xS(e){if(!("target"in e)){var t=e.srcElement||e.target;t&&t.nodeType==3&&(t=t.parentNode),e.target=t}return e}let hq=class{constructor(){this.baseExtend={},this.title="",this.placeholder=[]}getBase(t=!1){var n={p:rt.getProject(),u:rt.getLocation(),gid:rt.getGid(t),sid:rt.getSid(),title:this.getTitle()},r=rt.getReferrerKeyWord();return r&&(n.q=r.q,n.eqid=r.eqid),n}getBaseTrack(t){var n=rt.getSid()==rt.getSid()?1:0,r={b:rt.getBrowser(),c:rt.getCount(),r:rt.getReferrer(),fl:rt.getFlashVer(),sd:rt.getColorDepth(),sr:rt.getScreenSize(),ul:rt.getLanguage(),ua:rt.getUserAgent(),ce:n};if(t)try{t=t.split(",");for(var s=[],o=0,a=t.length;o<a;o++){var l=as(t[o]);s.push(t[o]+"="+encodeURIComponent(l))}r.uc=encodeURIComponent(s.join("&"))}catch(c){}return r}getClick(t){var n,r,s=(t=xS(t||event)).target,o=s.tagName,a=rt.getContainerId(s);if(a=="bk:noupload")return!1;if(!s.type||s.type!="submit"&&s.type!="button")return o=="AREA"?{f:rt.getHref(s),c:"area:"+s.parentNode.name,cId:a}:(o=="IMG"&&(n=s),!!(s=x0(s,"A"))&&(r=rt.getText(s),{f:rt.getHref(s),c:r||(n?n.src.match(/[^\/]+$/):""),cId:a}));var l=x0(s,"FORM"),c={};if(l){var u=l.id||"",d=s.id;if(c={f:l.action,c:"form:"+(l.name||u),cId:a},!(u!="search-form"&&u!="searchForm"||d!="searchBtn"&&d!="search-btn")){var f=$("kw")||$("search-kw")||$("kw1");c.w=f?f.value:""}}else c={f:rt.getHref(s),c:rt.getText(s),cId:a};return c}getKeydown(t){if((t=xS(t||event)).keyCode!=13)return!1;var n=t.target,r=n.tagName,s=rt.getContainerId(n);if(r=="INPUT"){var o=x0(n,"FORM");if(o){var a=o.id||"",l=n.id,c={f:o.action,c:"form:"+(o.name||a),cId:s};return l!="kw"&&l!="search-kw"&&l!="kw1"||(c.w=n.value),c}}return!1}getBaseExtend(t){return t&&(this.baseExtend=t),this.baseExtend}getTitle(){return this.title||(this.title=document.title),this.title}setBaseTitle(t){this.title=t}},pq=class{constructor(t){this.master=t,this.lastLocation=rt.getLocation(),this.isStarted=!1}start(){if(!this.isStarted){var t="pushState"in window.history?"popstate":"hashchange",n=this;this.isStarted=!0,this.master.util.log("autoTrackPageChange"),this.master.util.log("hashEvent:",t),Pf(window,t,o=>{this.master.util.log(t+": "+document.location+", state: "+JSON.stringify(o.state)),n.lastLocation!==window.location.href&&(n.lastLocation=window.location.href,n.master.autoTrackEvent())});var r=window.history.pushState;Wc(history.pushState)&&r&&(history.pushState=function(o){r.apply(window.history,arguments),n.master.util.log("history.pushState",o),n.lastLocation=window.location.href,n.master.autoTrackEvent()});var s=window.history.replaceState;Wc(history.replaceState)&&s&&(history.replaceState=function(o){s.apply(window.history,arguments),n.master.util.log("history.replaceState",o),n.lastLocation=window.location.href,n.master.autoTrackEvent()})}}};var gq="2.4.0";const ls=new class{constructor(){this.version=gq,this.data=new hq,this.util=rt,this.heatmap_enable=!1,this.disable_autoPV=!1,this.manualPV_enable=!1,this.autopv=new pq(this)}setAscAndAsc2(e,t){if(this.data.placeholder.length>0)return;const n=e||"",r=t||"";this.data.placeholder.push({asc:n},{asc2:r})}setThirdProps(e,t){if(!e||!t)return;const n={[e]:t};this.data.placeholder.length==2||this.setAscAndAsc2(),this.data.placeholder.push(n)}setFourthProps(e,t){e&&t&&(this.data.placeholder.length==3?this.data.placeholder.push({[e]:t}):rt.log("确认必须先调用setAscAndAsc2和setThirdProps接口"))}getLibVersion(){return this.version}setTitle(e){return this.data.setBaseTitle(e),this}setTrackId(e){return rt.setUtilTrackId(e.replace(/\./g,"")),this}getBrowserID(e){return at(this,null,function*(){return new Promise((t,n)=>at(this,null,function*(){if(e){if(this.data.placeholder.length<=0){const{mid:r,m2:s,asc:o,asc2:a}=yield rt.getBrowserID();this.data.placeholder=[{mid:r},{m2:s},{asc:o},{asc2:a}]}t(function(r){for(var s=[],o=0;o<r.length;o++)s.push(encodeURIComponent(Object.keys(r[o]))+"="+encodeURIComponent(Object.values(r[o])));return s.join("&")}(this.data.placeholder)+"&")}else n("")}))})}sendLog(e){window.__radar_monitor_imgs={};var t="log_"+ +new Date,n=window.__radar_monitor_imgs[t]=new Image;n.onload=n.onerror=()=>{window.__radar_monitor_imgs&&window.__radar_monitor_imgs[t]&&(window.__radar_monitor_imgs[t]=null,delete window.__radar_monitor_imgs[t])},n.src=e}buildLog(e,t=""){return at(this,null,function*(){var n="";if(e===!1)return;const r=t===this.getConf().trackUrl;e=e||{};var s,o=Tr(this.data.getBase(r),this.data.getBaseExtend(),!0);e=Tr(o,e,!0);try{s=yield this.getBrowserID(r)}catch(a){s=""}s+=function(a){var l=[];for(var c in a)a[c]!=null&&l.push(encodeURIComponent(c)+"="+encodeURIComponent(a[c]));return l.join("&")}(e),s+="&t="+ +new Date,(t=t.indexOf("?")>-1?t+"&"+s:t+"?"+s)!=n&&(n=t,setTimeout(()=>{n=""},100),this.sendLog(t))})}log(e,t){t=t||"click";const n=this.getConf()[t+"Url"];n?rt.userAgentIsExitsSpiders()||this.buildLog(function(r,s){var o,a=Kc.length,l=s;for(o=0;o<a;o++)try{l=Tr(l,Kc[o].beforeLog(r,s))}catch(c){}return l}(t,e),n):rt.log("Error : the "+t+" url does not exist!")}setConf(e,t){return rt.setUtilConf(e,t),this}getConf(){return rt.getUtilConf()}setUrl(e){if(e)return rt.getLocation(e)}extendBase(e){if(e&&Pr(e)){var t=Tr(this.data.getBaseExtend(),e,!0);this.data.getBaseExtend(t)}}setProject(e,t,n){return rt.setAppKey(e),this.extendBase(t),this.init(n),this}setDebug(e=!0,t,n,r){return rt.debug=e,e&&(rt.log("当前已开启debug模式,可能会输出log,发布前请关闭!!!"),rt.log("当前配置测试appkey:",t),rt.setAppKey(t),this.extendBase(n),this.init(r)),this}setTrackId(e){return rt.setUtilTrackId(e.replace(/\./g,"")),this}setId(e){for(var t=[];e=arguments[i++];)CS(e)?t=t.concat(e):t.push(e);return this.setConf("areaIds",t),this}init(e){var{trackForInit:t=!0}=e||{},n=location.protocol.toLowerCase()==="https:"?"https:":"http:";this.setConf({trackUrl:n+"//s.360.cn/qdas/s.htm",clickUrl:n+"//s.360.cn/qdas/c.htm",clickHeatMapUrl:n+"//s.360.cn/qdas/t.htm",wpoUrl:n+"//s.360.cn/qdas/p.htm",heartbeatUrl:n+"//s.360.cn/qdas/h.htm"}),t&&this.log(this.data.getBaseTrack(),"track")}setDisableAutoPV(e=!0){return this.disable_autoPV=e,this}setManualPVEnable(e=!0){return this.manualPV_enable=e,this}autoTrackEvent(){if(!this.disable_autoPV){var e=this.data.getBaseTrack();this.log(e,"track")}}getAutoTrack(){return this.autopv.start(),this}getTrack(e,t,n){var{enableMenualOnce:r=!1}=e||{};if(!r&&!this.manualPV_enable)return this;var s=this.data.getBaseTrack(n);return Pr(t)&&(s=Tr(s,t,!0)),this.log(s,"track"),this}getClickHeatmap(e,t){if(!this.heatmap_enable){this.heatmap_enable=!0;var n=this,r=[];e=e||10,t=t||5;var s=0,o=a=>{if(clearTimeout(s),a||r.length>e)return r.length?(n.log({pos:r.join(","),sr:rt.getScreenSize()},"clickHeatMap"),void(r=[])):void 0;s=setTimeout(()=>{o(!0)},60*t*1e3)};return Pf(document,"mousedown",a=>{var l=a.pageX+"."+a.pageY;r.push(l),o()}),this}}getClickAndKeydown(){return Pf(document,"mousedown",e=>{var t=this.data.getClick(e);this.log(t,"click")}),Pf(document,"keydown",e=>{var t=this.data.getKeydown(e);this.log(t,"click")}),this}beginHeartBeat(e,t,n){var r={};r.id=e,Pr(t)&&(r=Tr(r,t,!1)),(n=isNaN(n)?10:n)>60?n=60:n<5&&(n=5);var s=this;rt.setHeartBeatStartTime(e,Date.parse(new Date));var o=a=>{r.steptime=a,s.steptime=a,s.log(r,"heartbeat"),clearTimeout(rt.getHeartBeatTimer(e)),rt.setHeartBeatTimer(e,setTimeout(()=>{var l=(Date.parse(new Date)-rt.getHeartBeatStartTime(e))/1e3;o(l)},1e3*n))};o(0)}endHeartBeat(e,t){var n=rt.getHeartBeatStartTime(e);if(n!=null){var r={};r.id=e,Pr(t)&&(r=Tr(r,t,!1)),clearTimeout(rt.getHeartBeatTimer(e));var s=(Date.parse(new Date)-n)/1e3;r.steptime=s,this.log(r,"heartbeat"),rt.deleteHeartBeat(e)}}setActiveTime(e){return rt.setUtilActiveTime(e),this}addPlugin(e){return fq(e)}use(e,t){return typeof(n=e)=="string"||n instanceof String?Pr(window.RADAR_MONITOR_WEBJSSDKPLUGIN)&&Pr(window.RADAR_MONITOR_WEBJSSDKPLUGIN[e])&&Wc(window.RADAR_MONITOR_WEBJSSDKPLUGIN[e].init)?(window.RADAR_MONITOR_WEBJSSDKPLUGIN[e].init(ls,t),window.RADAR_MONITOR_WEBJSSDKPLUGIN[e]):Pr(ls.modules)&&Pr(ls.modules[e])&&Wc(ls.modules[e].init)?(ls.modules[e].init(ls,t),ls.modules[e]):void rt.log(e+"没有获取到,请查阅文档,调整"+e+"的引入顺序!"):(rt.log("use插件名称必须是字符串!"),!1);var n}};function mq(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.text()}function AS(e,t){return fetch(e,t).then(mq)}const vq=(e,t)=>{const n=document.createElement("a");n.download=t,n.style.display="none";const r=new window.Blob([e]);n.href=window.URL.createObjectURL(r),document.body.appendChild(n),n.click(),document.body.removeChild(n)},Tf=(e,t)=>at(this,null,function*(){let n;return yield Gs(e).then(r=>{const s=document.createElement("canvas");s.width=r.width,s.height=r.height,s.getContext("2d").drawImage(r,0,0,r.width,r.height),n=s.toDataURL("image/png")}),n});function Gs(e){return at(this,null,function*(){return new Promise((t,n)=>{const r=new Image;r.crossOrigin="anonymous",r.onload=()=>{t(r)},r.onerror=s=>{n(s)},r.src=e})})}function A0(e){if(typeof e=="number"||e===!0)return!0;var t=e===!1||e===null||e===void 0||Object.keys(e).length===0||/^\s*$/gim.test(e.toString());return!t}function el(){var e=/macintosh|mac os x/i.test(navigator.userAgent);return e}function cs(e,t){var o;["label","textProp","detail","collect","fx","fy"].map(a=>{e[a]=e[a]?e[a]:null}),e.show=e.show?e.show:!0,e.type&&e.type!=="nodeType"&&(e.type=e.type.toLowerCase()),(["org","vul","email","family"].indexOf(e.type)>=0||e.startNode===!0)&&(e.textProp="name");const s={};if(e.type!=="nodeType"&&e.type!=="aggregation"&&((o=t[e.type])!=null&&o.length)){for(let a=0;a<t[e.type].length;a++){const l=t[e.type][a];s[l.name]=!1}e.getData=s}return e}function bq(e){return e&&e.replace(/[^\x09\x0A\x0D\x20-\xFF\x85\xA0-\uD7FF\uE000-\uFDCF\uFDE0-\uFFFD]/gm,"")}function Ni(...e){localStorage.getItem("showSafeForceGraphLog")&&console.log(...e)}function Fn(e){ls.log(e,"click")}function P0(e,t,n,r,s){const o=n-e,a=r-t,l=Math.sqrt(o*o+a*a),c=e+o/l*(l-s),u=t+a/l*(l-s);return{x:c||0,y:u||0}}function PS(e,t="#666",n="#fff"){if(!e)return e;const s=new DOMParser().parseFromString(e,"image/svg+xml"),o=s.querySelector("g");return o?(o.setAttribute("color",n),s.querySelectorAll("[stroke]").forEach(d=>{d.getAttribute("stroke")!=="none"&&d.setAttribute("stroke",t)}),s.querySelectorAll("[class]").forEach(d=>{d.getAttribute("class").split(" ").includes("no-stroke")&&d.setAttribute("stroke","none")}),s.querySelectorAll(".text-bg").forEach(d=>{d.getAttribute("fill")!=="none"&&d.setAttribute("fill",t)}),new XMLSerializer().serializeToString(s)):void 0}function yq(e){if(!e)return e;const r=new DOMParser().parseFromString(e,"image/svg+xml").querySelector("svg"),s=r.getAttribute("width"),o=r.getAttribute("height");return{width:parseInt(s),height:parseInt(o)}}function TS(e){return new Promise((t,n)=>{try{const r="data:image/svg+xml;base64,";e=e.replace(r,"");const s=atob(e);t(s)}catch(r){n(r)}})}function OS(e){const t="0123456789abcdefghijklmnopqrstuvwxyz",n=t.length;let r="";for(let s=0;s<e;s++)r+=t.charAt(Math.ceil(Math.random()*(n-1)));return r}function _q(e){return{}.VITE_SVG_TYPE==="base64"?TS(e):AS(e)}function T0(e){let t={};if({}.VITE_LOCAL_ONLY==="true")for(const r in Af)t[r]=r.split("public/").join("");else t=Af;return t[e]}function tl(e){return T0(`./public/d3svg1/${e}.svg`)}const O0={};function wq(r){return at(this,arguments,function*({node:e,levelList:t,darkMode:n}){var l,c,u,d,f,h,g,b,y,_;let s=null;const o=(u=(c=(l=e.detail)==null?void 0:l.info)==null?void 0:c.basic)==null?void 0:u.flag,a=((h=(f=(d=e==null?void 0:e.detail)==null?void 0:d.info)==null?void 0:f.basic)==null?void 0:h.level)||"";if(e.detail&&((b=(g=e.detail)==null?void 0:g.info)!=null&&b.inner_img))try{s=e.detail.info.inner_img}catch(w){console.log("loadCompleted error",w)}else if(e.type==="nodeType"||e.type==="aggregation"){const w=e.icon||"node_type";s=tl(w)?tl(w):tl("node_type")}else if(o&&(e.type==="ip"||e.type==="internet"))s=T0(`./public/d3svg1/flags/${o}.png`);else if((_=(y=e.detail)==null?void 0:y.info)!=null&&_.inner_country&&(e.type==="country"||e.type==="target_country")){const w=e.detail.info.inner_country;s=T0(`./public/d3svg1/flags/${w}.png`)}else{const w=`${e.type||"node"}${a}${n}`;if(O0[w])return s=O0[w],s;const x=tl(e.type)?tl(e.type):tl("node"),C=yield _q(x),S=Go(a,t,n);s=PS(C,S,n?"#182628":"#fff"),s="data:image/svg+xml,"+encodeURIComponent(s),O0[w]=s}return s})}function Of(e){return typeof e!="object"||e===null||!e?e:Array.isArray(e)?e.map(t=>Of(t)):Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=Of(e[n]),t),{})}const Tpe="",N0={inject:["levelList","getDarkMode"],props:{nodeInfo:{type:Object,default:()=>{}}},data(){return{imgUrl:"",strokeColor:""}},computed:{darkMode(){return this.getDarkMode()},isCountryFlag(){var r,s,o,a,l,c,u,d;const e=(o=(s=(r=this.nodeInfo)==null?void 0:r.detail)==null?void 0:s.info)==null?void 0:o.inner_country,t=(u=(c=(l=(a=this.nodeInfo)==null?void 0:a.detail)==null?void 0:l.info)==null?void 0:c.basic)==null?void 0:u.flag,n=(d=this.nodeInfo)==null?void 0:d.type;return t&&(n==="ip"||n==="internet")||e&&(n==="country"||n==="target_country")}},watch:{darkMode:{handler(){this.handleImgUrl()}},nodeInfo:{handler(){this.handleImgUrl()},deep:!0}},created(){this.handleImgUrl()},methods:{handleImgUrl(){var t,n,r,s;wq({node:this.nodeInfo,levelList:this.levelList,darkMode:this.darkMode}).then(o=>{this.imgUrl=o});const e=(s=(r=(n=(t=this.nodeInfo)==null?void 0:t.detail)==null?void 0:n.info)==null?void 0:r.basic)==null?void 0:s.level;this.strokeColor=Go(e,this.levelList,this.darkMode)}}},NS=()=>{tO(e=>({"20587f86":e.strokeColor}))},IS=N0.setup;N0.setup=IS?(e,t)=>(NS(),IS(e,t)):NS;const Cq={key:0,class:"flag-border"},Sq=["src"],Eq=["src"];function xq(e,t,n,r,s,o){return o.isCountryFlag?(I(),z("div",Cq,[H("img",{class:"node-img",src:s.imgUrl},null,8,Sq)])):(I(),z("img",{key:1,class:"node-img",src:s.imgUrl},null,8,Eq))}const Jc=ln(N0,[["render",xq],["__scopeId","data-v-5fdfe48e"]]),Or={computed:{imgPath(){let e={};if({}.VITE_LOCAL_ONLY==="true")for(const n in Af)e[n]=n.split("public/").join("");else e=Af;return e}}},wt={},I0=Dn({filterValues:""}),R0={name:"fix_nodes",namec:"固定节点"},D0={name:"un_fix_nodes",namec:"解除固定"},Aq={name:"show_names",namec:"显示名称"},Pq={name:"un_show_names",namec:"隐藏名称"},Tq={name:"un_show_label",namec:"隐藏备注"},Oq={name:"show_label",namec:"显示备注"},RS={name:"hold_aggregation",namec:"单边子顶点聚合"},DS={name:"release_aggregation",namec:"聚合顶点释放"},Nq={name:"copy",namec:"复制"},LS={name:"node_star",namec:"收藏"},kS={name:"un_node_star",namec:"取消收藏"},MS={name:"edit_label",namec:"修改备注"},L0={name:"delete_node",namec:"删除"},FS={name:"select_children",namec:"子顶点选择"},BS={name:"select_parents",namec:"父顶点选择"},Iq={name:"add_con_node",namec:"添加关联节点"},Rq={name:"expand_node",namec:"展开全部关系"};function Nf(e){var l;const t=[],n=[],r=[],s=["APT攻击","海莲花","Generic","Cometer","勒索软件","恶意下载链接","僵尸网络","后门软件","流氓推广","Ewind","alexa_top10k","Panda","Operation_2020_Model","Zenpak","Ewind","Boogr"],o=["APT-C-00","Trojan","木马"],a=e.length;for(let c=0;c<a;c++)s.includes((l=e[c])==null?void 0:l.name)?(e[c].typeLevel="danger",t.push(e[c])):e[c].name.toLowerCase().indexOf("cve")===0?(e[c].typeLevel="cve",n.push(e[c])):o.some(u=>e[c].name.indexOf(u)>=0)?(e[c].typeLevel="danger",t.push(e[c])):(e[c].typeLevel="other",r.push(e[c]));return[...t,...n,...r]}function If(e){if(!e)return[];const t=[void 0,"danger","warning","info","success",void 0],n=[],r=[];return e.forEach(s=>{let o,a,l,c,u,d;typeof s=="object"?(o=s.name||s.tag,a=s.desc,l=s.user||void 0,c=s.type>0?t[s.type]||t[s.type-10]:void 0,d=s.type>=10,u=s.source_name?s.source_name:""):(o=s,a=""),r.indexOf(o)<0&&(r.push(o),n.push({name:o,desc:a,user:l,type:c,disabled:d,source_name:u}))}),n}var jS={exports:{}};/*!
|
|
115
|
-
* clipboard.js v2.0.11
|
|
116
|
-
* https://clipboardjs.com/
|
|
117
|
-
*
|
|
118
|
-
* Licensed MIT © Zeno Rocha
|
|
119
|
-
*/(function(e,t){(function(r,s){e.exports=s()})($s,function(){return function(){var n={686:function(o,a,l){l.d(a,{default:function(){return _e}});var c=l(279),u=l.n(c),d=l(370),f=l.n(d),h=l(817),g=l.n(h);function b(he){try{return document.execCommand(he)}catch(ie){return!1}}var y=function(ie){var oe=g()(ie);return b("cut"),oe},_=y;function w(he){var ie=document.documentElement.getAttribute("dir")==="rtl",oe=document.createElement("textarea");oe.style.fontSize="12pt",oe.style.border="0",oe.style.padding="0",oe.style.margin="0",oe.style.position="absolute",oe.style[ie?"right":"left"]="-9999px";var Ce=window.pageYOffset||document.documentElement.scrollTop;return oe.style.top="".concat(Ce,"px"),oe.setAttribute("readonly",""),oe.value=he,oe}var x=function(ie,oe){var Ce=w(ie);oe.container.appendChild(Ce);var me=g()(Ce);return b("copy"),Ce.remove(),me},C=function(ie){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},Ce="";return typeof ie=="string"?Ce=x(ie,oe):ie instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(ie==null?void 0:ie.type)?Ce=x(ie.value,oe):(Ce=g()(ie),b("copy")),Ce},S=C;function A(he){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?A=function(oe){return typeof oe}:A=function(oe){return oe&&typeof Symbol=="function"&&oe.constructor===Symbol&&oe!==Symbol.prototype?"symbol":typeof oe},A(he)}var O=function(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe=ie.action,Ce=oe===void 0?"copy":oe,me=ie.container,q=ie.target,Z=ie.text;if(Ce!=="copy"&&Ce!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(q!==void 0)if(q&&A(q)==="object"&&q.nodeType===1){if(Ce==="copy"&&q.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(Ce==="cut"&&(q.hasAttribute("readonly")||q.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Z)return S(Z,{container:me});if(q)return Ce==="cut"?_(q):S(q,{container:me})},R=O;function N(he){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?N=function(oe){return typeof oe}:N=function(oe){return oe&&typeof Symbol=="function"&&oe.constructor===Symbol&&oe!==Symbol.prototype?"symbol":typeof oe},N(he)}function k(he,ie){if(!(he instanceof ie))throw new TypeError("Cannot call a class as a function")}function L(he,ie){for(var oe=0;oe<ie.length;oe++){var Ce=ie[oe];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(he,Ce.key,Ce)}}function F(he,ie,oe){return ie&&L(he.prototype,ie),oe&&L(he,oe),he}function G(he,ie){if(typeof ie!="function"&&ie!==null)throw new TypeError("Super expression must either be null or a function");he.prototype=Object.create(ie&&ie.prototype,{constructor:{value:he,writable:!0,configurable:!0}}),ie&&V(he,ie)}function V(he,ie){return V=Object.setPrototypeOf||function(Ce,me){return Ce.__proto__=me,Ce},V(he,ie)}function ae(he){var ie=J();return function(){var Ce=Q(he),me;if(ie){var q=Q(this).constructor;me=Reflect.construct(Ce,arguments,q)}else me=Ce.apply(this,arguments);return ce(this,me)}}function ce(he,ie){return ie&&(N(ie)==="object"||typeof ie=="function")?ie:U(he)}function U(he){if(he===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return he}function J(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(he){return!1}}function Q(he){return Q=Object.setPrototypeOf?Object.getPrototypeOf:function(oe){return oe.__proto__||Object.getPrototypeOf(oe)},Q(he)}function X(he,ie){var oe="data-clipboard-".concat(he);if(ie.hasAttribute(oe))return ie.getAttribute(oe)}var B=function(he){G(oe,he);var ie=ae(oe);function oe(Ce,me){var q;return k(this,oe),q=ie.call(this),q.resolveOptions(me),q.listenClick(Ce),q}return F(oe,[{key:"resolveOptions",value:function(){var me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof me.action=="function"?me.action:this.defaultAction,this.target=typeof me.target=="function"?me.target:this.defaultTarget,this.text=typeof me.text=="function"?me.text:this.defaultText,this.container=N(me.container)==="object"?me.container:document.body}},{key:"listenClick",value:function(me){var q=this;this.listener=f()(me,"click",function(Z){return q.onClick(Z)})}},{key:"onClick",value:function(me){var q=me.delegateTarget||me.currentTarget,Z=this.action(q)||"copy",ve=R({action:Z,container:this.container,target:this.target(q),text:this.text(q)});this.emit(ve?"success":"error",{action:Z,text:ve,trigger:q,clearSelection:function(){q&&q.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(me){return X("action",me)}},{key:"defaultTarget",value:function(me){var q=X("target",me);if(q)return document.querySelector(q)}},{key:"defaultText",value:function(me){return X("text",me)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(me){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return S(me,q)}},{key:"cut",value:function(me){return _(me)}},{key:"isSupported",value:function(){var me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],q=typeof me=="string"?[me]:me,Z=!!document.queryCommandSupported;return q.forEach(function(ve){Z=Z&&!!document.queryCommandSupported(ve)}),Z}}]),oe}(u()),_e=B},828:function(o){var a=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var l=Element.prototype;l.matches=l.matchesSelector||l.mozMatchesSelector||l.msMatchesSelector||l.oMatchesSelector||l.webkitMatchesSelector}function c(u,d){for(;u&&u.nodeType!==a;){if(typeof u.matches=="function"&&u.matches(d))return u;u=u.parentNode}}o.exports=c},438:function(o,a,l){var c=l(828);function u(h,g,b,y,_){var w=f.apply(this,arguments);return h.addEventListener(b,w,_),{destroy:function(){h.removeEventListener(b,w,_)}}}function d(h,g,b,y,_){return typeof h.addEventListener=="function"?u.apply(null,arguments):typeof b=="function"?u.bind(null,document).apply(null,arguments):(typeof h=="string"&&(h=document.querySelectorAll(h)),Array.prototype.map.call(h,function(w){return u(w,g,b,y,_)}))}function f(h,g,b,y){return function(_){_.delegateTarget=c(_.target,g),_.delegateTarget&&y.call(h,_)}}o.exports=d},879:function(o,a){a.node=function(l){return l!==void 0&&l instanceof HTMLElement&&l.nodeType===1},a.nodeList=function(l){var c=Object.prototype.toString.call(l);return l!==void 0&&(c==="[object NodeList]"||c==="[object HTMLCollection]")&&"length"in l&&(l.length===0||a.node(l[0]))},a.string=function(l){return typeof l=="string"||l instanceof String},a.fn=function(l){var c=Object.prototype.toString.call(l);return c==="[object Function]"}},370:function(o,a,l){var c=l(879),u=l(438);function d(b,y,_){if(!b&&!y&&!_)throw new Error("Missing required arguments");if(!c.string(y))throw new TypeError("Second argument must be a String");if(!c.fn(_))throw new TypeError("Third argument must be a Function");if(c.node(b))return f(b,y,_);if(c.nodeList(b))return h(b,y,_);if(c.string(b))return g(b,y,_);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function f(b,y,_){return b.addEventListener(y,_),{destroy:function(){b.removeEventListener(y,_)}}}function h(b,y,_){return Array.prototype.forEach.call(b,function(w){w.addEventListener(y,_)}),{destroy:function(){Array.prototype.forEach.call(b,function(w){w.removeEventListener(y,_)})}}}function g(b,y,_){return u(document.body,b,y,_)}o.exports=d},817:function(o){function a(l){var c;if(l.nodeName==="SELECT")l.focus(),c=l.value;else if(l.nodeName==="INPUT"||l.nodeName==="TEXTAREA"){var u=l.hasAttribute("readonly");u||l.setAttribute("readonly",""),l.select(),l.setSelectionRange(0,l.value.length),u||l.removeAttribute("readonly"),c=l.value}else{l.hasAttribute("contenteditable")&&l.focus();var d=window.getSelection(),f=document.createRange();f.selectNodeContents(l),d.removeAllRanges(),d.addRange(f),c=d.toString()}return c}o.exports=a},279:function(o){function a(){}a.prototype={on:function(l,c,u){var d=this.e||(this.e={});return(d[l]||(d[l]=[])).push({fn:c,ctx:u}),this},once:function(l,c,u){var d=this;function f(){d.off(l,f),c.apply(u,arguments)}return f._=c,this.on(l,f,u)},emit:function(l){var c=[].slice.call(arguments,1),u=((this.e||(this.e={}))[l]||[]).slice(),d=0,f=u.length;for(d;d<f;d++)u[d].fn.apply(u[d].ctx,c);return this},off:function(l,c){var u=this.e||(this.e={}),d=u[l],f=[];if(d&&c)for(var h=0,g=d.length;h<g;h++)d[h].fn!==c&&d[h].fn._!==c&&f.push(d[h]);return f.length?u[l]=f:delete u[l],this}},o.exports=a,o.exports.TinyEmitter=a}},r={};function s(o){if(r[o])return r[o].exports;var a=r[o]={exports:{}};return n[o](a,a.exports,s),a.exports}return function(){s.n=function(o){var a=o&&o.__esModule?function(){return o.default}:function(){return o};return s.d(a,{a}),a}}(),function(){s.d=function(o,a){for(var l in a)s.o(a,l)&&!s.o(o,l)&&Object.defineProperty(o,l,{enumerable:!0,get:a[l]})}}(),function(){s.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)}}(),s(686)}().default})})(jS);var Dq=jS.exports;const Lq=fC(Dq),Rf=e=>{const t=(e==null?void 0:e.appendToBody)===void 0?!0:e.appendToBody;return{toClipboard(n,r){return new Promise((s,o)=>{const a=document.createElement("button"),l=new Lq(a,{text:()=>n,action:()=>"copy",container:r!==void 0?r:document.body});l.on("success",c=>{l.destroy(),s(c)}),l.on("error",c=>{l.destroy(),o(c)}),t&&document.body.appendChild(a),a.click(),t&&document.body.removeChild(a)})}}},Ope="",{toClipboard:kq}=Rf(),Mq={name:"NodeDetail",components:{NodeIcon:Jc,QuestionFilled:B3,ForceGraphSvgIcon:Ho},mixins:[Or],inject:["hasLevel","history","moduleDetail","levelMap"],props:{data:{type:Object,default:()=>({type:"domain",id:"deftsecurity.com",detail:{},name:"deftsecurity.com",fieldMap:{},index:0,fx:null,fy:null})},selectedNodes:{required:!1,type:Array,default:()=>[]},requestGraphData:{type:Boolean,default:!1}},emits:["buttonClick"],data(){return{controls:[],childNodesLength:0,current:null,flagFiles:{},valueDetail:!0,aggregationName:null,childList:null,moduleDetailNow:{}}},computed:{module(){return this.moduleDetail()},fieldMapThisType(){var e;return this.moduleDetailNow&&this.moduleDetailNow.detail_field_map&&this.moduleDetailNow.detail_field_map[`${(e=this.data)==null?void 0:e.type}_detail_info`]},levelClassName(){return this.data&&this.data.type==="family"?"":xf(this.data.detail&&this.data.detail.info.basic.level,this.levelMap)},aggregationList(){var e,t;return(t=(e=this.data)==null?void 0:e.list)==null?void 0:t.map(n=>n.name)},canGoDetail(){return["nodeType","aggregation","family","org","report","vul","thumbprint_md5","email","cert_https"].indexOf(this.data.type)<0&&this.hasLevel},canGoUrl(){var e,t,n;return((t=(e=this.moduleDetailNow)==null?void 0:e.config)==null?void 0:t.jumpDetail)&&((n=this.moduleDetailNow)==null?void 0:n.config.jumpRule[this.data.type])}},watch:{data:{deep:!0,immediate:!0,handler:function(){var t,n;const e=[];if(this.selectedNodes.length>1)this.selectedNodes.length<6&&e.push(Rq),e.push(MS),e.push(Nq),e.push(this.data.collect?kS:LS),e.push(this.data.textProp==="name"?Pq:Aq),e.push(this.data.fx?D0:R0),e.push(L0),this.data.label&&e.push(this.data.textProp==="label"?Tq:Oq);else if(this.selectedNodes.length===1&&this.selectedNodes[0].type==="aggregation"){const r=this.history.dataNow.links.some(s=>s.source.id===this.data.id&&s.target.type==="aggregation");e.push(r||this.data.type==="aggregation"?DS:RS),e.push(this.data.fx?D0:R0),e.push(L0)}else{const r=this.history.dataNow.links.some(u=>u.source.id===this.data.id&&u.target.type==="aggregation"),s=this.history.dataNow.links.filter(u=>u.source.id===this.data.id),o=this.history.dataNow.links.filter(u=>u.target.id===this.data.id),a=s.map(u=>u.target),l=o.map(u=>u.source),c=a.some(u=>{let d=0;return this.history.dataNow.links.map(f=>{f.source.id===u.id&&d++}),d===0});this.data.type!=="aggregation"&&this.data.type!=="nodeType"?(e.push(MS),e.push(this.data.collect?kS:LS),a.length===1&&e.push(FS),l.length===1&&e.push(BS)):(a.length>0&&e.push(FS),l.length>0&&e.push(BS)),e.push(this.data.fx?D0:R0),r||this.data.type==="aggregation"?e.push(DS):c&&e.push(RS),e.push(Iq),e.push(L0)}this.controls=e,this.flage=!(((n=(t=this.data)==null?void 0:t.name)==null?void 0:n.length)>52)}},module:{deep:!0,immediate:!0,handler(e){this.moduleDetailNow=e}}},created(){qs(wt,"flagIcon",e=>{this.flagFiles={},e!==void 0&&(this.flagFiles=e)})},mounted(){qs(wt,"relationNum",e=>{var t;(e==null?void 0:e.childList)!==void 0&&(this.childNodesLength=(t=e.childList)==null?void 0:t.length,this.aggregationName=e.name,this.childList=e.childList)})},updated(){},beforeUnmount(){Hs(wt,"flagIcon"),Hs(wt,"relationNum")},methods:{isSomething(e){return A0(e)},hover(e){this.current=e},out(){this.current=null},handleButtonClick(e){Fn({cId:"rightMenu-"+e.name,c:"右侧菜单-"+e.namec}),this.selectedNodes.length>1?Xe(wt,"buttonClick",{nodes:[...this.selectedNodes],api:e}):this.data.type!=="nodeType"?Xe(wt,"buttonClick",{nodes:[...this.selectedNodes],api:e}):Xe(wt,"buttonClick",{nodes:[...this.selectedNodes],api:e})},copyText(e){Fn({cId:"copyText",c:"复制"}),kq(e).then(t=>dn({message:"复制成功",type:"success"}),t=>dn.error("复制失败"))},goDetailUrl(e,t){var n,r;return(this.selectedNodes[0].type==="cert_https"||this.selectedNodes[0].type==="thumbprint_md5")&&["md5","sha1","sha256"].indexOf(e)>=0?"/cert/cert:"+t:((r=(n=this.moduleDetailNow)==null?void 0:n.config)!=null&&r.jumpDetail,!1)},getViewBox(e,t){const n=[];switch(e){case"org":n.push(47,54);break;case"family":n.push(38,38);break;case"vul":n.push(38,38);break;default:n.push(28,28)}return t===3?n[0]:n[1]},changeValue(){this.valueDetail=!this.valueDetail},changeFlag(e){return e.detail.info.basic.flag===""&&(e.detail.info.basic.flag="ip"),e.detail.info.basic.flag},cutName(e=""){let t=0;for(let n=0;n<e.length;n++)escape(e[n]).indexOf("%u")>=0?t+=2:t+=1;return t<60?e:(e==null?void 0:e.split("").splice(0,56).join(""))+"..."},canShowField(e){const t=this.hasFieldValue(e);return!(t===void 0||e.hide_empty&&!t)},hasFieldValue(e){const t=this.data.detail&&this.data.detail.info&&this.data.detail.info.basic[e.prop];if(t===null)return;const n=Array.isArray(t);return n&&t.length>0||!n&&t!==""&&t!=="无"},getFieldValue(e){const t=this.data.detail.info.basic[e.prop],n=Array.isArray(t),r=this.isSomething(t);let s="-";return r&&(n?s=t.length?t.join("|"):"-":s=t||"-"),s},getUsageTypeContent(e){if(!e)return"";const t={COM:"Commercial(商业企业)",ORG:"Organization(社会团体)",GOV:"Government(政府部门)",MIL:"Military(军事机构)",EDU:"University/College/School(教育机构)",LIB:"Library(科研机构)",CDN:"Content Delivery Network(内容分发网络)",ISP:"Fixed Line ISP(固网服务商)",MOB:"Mobile ISP(移动网服务商)",DCH:"Data Center/Web Hosting/Transit(数据中心)",SES:"Search Engine Spider(搜索引擎爬虫)",RSV:"Reserved(保留地址)"};return t[e]?t[e]:""},formatTags(e){return Nf(If(e))}}},Fq={class:"node-detail-block"},Bq={class:"node-preview"},jq={class:"left"},Uq={class:"icon-group"},$q={key:0,class:"md5-type"},Vq=["title"],zq={class:"right"},qq=["title"],Hq={class:"title-top"},Gq={key:0,class:"node-num"},Wq={class:"opt-btns"},Kq={key:0,class:"node-num"},Jq={class:"opt-btns"},Yq={class:"node-field-list"},Xq={key:0,class:"row-item row-item-tag"},Zq={class:"value"},Qq={class:"graph-tags-box"},eH={key:0,class:"row-item"},tH={class:"label"},nH=["title"],iH={class:"detail"},rH=["title"],sH=["title"],oH={key:1,class:"select-mults"},aH={class:"title-top"},lH={class:"node-num"},cH={class:"controls-box"},uH=["onMouseenter"];function dH(e,t,n,r,s,o){const a=We("NodeIcon"),l=fi,c=zc,u=We("QuestionFilled"),d=Ft,f=We("force-graph-svg-icon");return I(),z("div",Fq,[n.selectedNodes.length===1?(I(),z(qe,{key:0},[H("div",Bq,[H("div",jq,[H("div",Uq,[te(a,{class:"node-icon","node-info":n.data},null,8,["node-info"]),n.data.type==="md5"?(I(),z("p",$q,Ie(n.data.detail&&n.data.detail.info.basic.file_type.toUpperCase()||"MD5"),1)):re("",!0)]),o.canGoDetail&&n.data.detail&&n.data.detail.info.basic.level?(I(),z("div",{key:0,class:Y(["level-text",o.levelClassName]),title:n.data.detail&&n.data.detail.info.basic.level},Ie(n.data.detail&&n.data.detail.info.basic.level),11,Vq)):re("",!0)]),H("div",zq,[H("div",{class:Y(["id-box",n.data.type==="nodeType"||n.data.type==="aggregation"?"id-box2":""]),title:n.data.name},[H("h3",Hq,[o.canGoUrl?(I(),z(qe,{key:0},[H("span",{class:"go-result",onClick:t[0]||(t[0]=h=>o.handleButtonClick({name:"go_result",namec:"详情页查看",type:2}))},[Je(Ie(o.cutName(n.data.name==="聚合"?"聚合节点":n.data.name))+" ",1),n.data.type==="nodeType"||n.data.type==="aggregation"?(I(),z("span",Gq,Ie(s.childNodesLength),1)):re("",!0)]),H("span",Wq,[te(l,{content:"复制","popper-class":"el-tooltip-gray"},{default:ee(()=>[H("img",{src:"https://s7.qhres2.com/static/d42d48bb495c87dc.svg",class:"id-copy",onClick:t[1]||(t[1]=gt(h=>o.copyText(n.data.name),["prevent"]))})]),_:1})])],64)):(I(),z(qe,{key:1},[Je(Ie(o.cutName(n.data.name==="聚合"?"聚合节点":n.data.name))+" ",1),n.data.type==="nodeType"||n.data.type==="aggregation"?(I(),z("span",Kq,Ie(s.childNodesLength),1)):re("",!0),H("span",Jq,[te(l,{content:"复制","popper-class":"el-tooltip-gray"},{default:ee(()=>[H("img",{src:"https://s7.qhres2.com/static/d42d48bb495c87dc.svg",class:"id-copy",onClick:t[2]||(t[2]=h=>o.copyText(n.data.name))})]),_:1})])],64))])],10,qq)])]),H("div",Yq,[n.data.detail&&n.data.detail.tags&&n.data.detail.tags.length>0?(I(),z("div",Xq,[t[6]||(t[6]=H("div",{class:"label"},"标签:",-1)),H("div",Zq,[H("div",Qq,[(I(!0),z(qe,null,Tt(o.formatTags(n.data.detail.tags),(h,g)=>(I(),Ee(l,{key:g,"popper-class":"el-tooltip-gray"},{content:ee(()=>[H("div",null,[Je(Ie(h.name===h.desc?h.name:h.name+":"+h.desc)+" ",1),h.disabled?(I(),z(qe,{key:0},[t[4]||(t[4]=H("br",null,null,-1)),t[5]||(t[5]=Je(" 标签状态:失效 "))],64)):re("",!0)])]),default:ee(()=>[te(c,{class:Y(["graph-tag-one",`${h.type||"unknown"} ${h.disabled?"tag-disable":""}`]),type:h.type||"info"},{default:ee(()=>[Je(Ie(h.name),1)]),_:2},1032,["class","type"])]),_:2},1024))),128))])])])):re("",!0),(I(!0),z(qe,null,Tt(o.fieldMapThisType,(h,g)=>(I(),z(qe,null,[o.canShowField(h)?(I(),z("div",eH,[H("div",tH,Ie(h.zh)+":",1),H("div",{class:Y(["value",{virus:h.prop==="virus_name"}]),title:n.data.detail.info.basic[g]},[H("p",iH,[Array.isArray(n.data.detail.info.basic[h.prop])?(I(),z("span",{key:0,class:"item",title:n.data.detail.info.basic[g]},Ie(o.getFieldValue(h)),9,rH)):(I(),z("span",{key:1,class:Y(["item",{desc:h.show_all}]),title:n.data.detail.info.basic[g]},[Je(Ie(o.getFieldValue(h))+" ",1),h.zh==="应用类型"&&o.getUsageTypeContent(n.data.detail.info.basic[h.prop])?(I(),Ee(l,{key:0,content:o.getUsageTypeContent(n.data.detail.info.basic[h.prop]),placement:"bottom","popper-class":"el-tooltip-gray"},{default:ee(()=>[te(d,null,{default:ee(()=>[te(u)]),_:1})]),_:2},1032,["content"])):re("",!0)],10,sH))])],10,nH)])):re("",!0)],64))),256))])],64)):n.selectedNodes.length>1?(I(),z("div",oH,[H("h3",aH,[t[7]||(t[7]=Je(" 选中节点")),H("span",lH,Ie(n.selectedNodes.length),1)])])):re("",!0),It(H("div",cH,[(I(!0),z(qe,null,Tt(s.controls,(h,g)=>(I(),z("div",{key:g,class:"image-list",onMouseenter:b=>o.hover(g),onMouseleave:t[3]||(t[3]=b=>o.out())},[te(l,{content:h.namec,"popper-class":"el-tooltip-gray"},{default:ee(()=>[te(f,{class:Y(["button-img",n.requestGraphData?s.controls.length>9?"button-img-more ":"":"disabled"]),"icon-class":e.imgPath["./public/d3svg1/button22/button_"+h.name+".svg"],onClick:b=>o.handleButtonClick(h)},null,8,["icon-class","class","onClick"])]),_:2},1032,["content"])],40,uH))),128))],512),[[wn,s.controls.length>0]])])}const fH=ln(Mq,[["render",dH]]),Npe="",k0={name:"fix_nodes",namec:"固定节点",type:2},M0={name:"un_fix_nodes",namec:"解除固定",type:2},US={name:"all_fix_nodes",namec:"全部固定节点",type:2},$S={name:"all_un_fix_nodes",namec:"全部解除固定",type:2},F0={name:"show_names",namec:"显示名称",type:2},B0={name:"un_show_names",namec:"隐藏名称",type:2},j0={name:"un_show_label",namec:"隐藏备注",type:2},U0={name:"show_label",namec:"显示备注",type:2},VS={name:"all_show_names",namec:"全部显示名称",type:2},zS={name:"all_un_show_names",namec:"全部隐藏名称",type:2},qS={name:"all_un_show_label",namec:"全部隐藏备注",type:2},HS={name:"all_show_label",namec:"全部显示备注",type:2},GS={name:"undo",namec:"撤销",type:2},WS={name:"redo",namec:"恢复",type:2},KS={name:"single_edge_select",namec:"单边子顶点选择",type:2},JS={name:"hold_aggregation",namec:"单边子顶点聚合",type:2},YS={name:"release_aggregation",namec:"聚合顶点释放",type:2},$0={name:"copy",namec:"复制",type:2,shortcut:"Ctrl+c"},V0={name:"node_star",namec:"收藏",type:2},z0={name:"un_node_star",namec:"取消收藏",type:2},q0={name:"edit_label",namec:"修改备注",type:2},XS={name:"expand_node",namec:"完整展开",type:2},ZS={name:"expand_part_node",namec:"部分展开",type:2},QS={name:"go_result",namec:"详情页查看",type:2},hH={name:"show_group",namec:"分组显示",type:2},pH={name:"hide_group",namec:"隐藏分组",type:2},H0={name:"delete_node",namec:"删除",type:2,shortcut:"Delete"},gH=Object.freeze(Object.defineProperty({__proto__:null,allFixNodes:US,allShowLabel:HS,allShowNames:VS,allUnFixNodes:$S,allUnShowLabel:qS,allUnShowNames:zS,copy:$0,deleteNode:H0,editLabel:q0,expandNode:XS,expandPartNode:ZS,fixNodes:k0,goResult:QS,hideGroup:pH,holdAggregation:JS,nodeStar:V0,redo:WS,releaseAggregation:YS,showGroup:hH,showLabel:U0,showNames:F0,singleEdgeSelect:KS,unFixNodes:M0,unNodeStar:z0,unShowLabel:j0,unShowNames:B0,undo:GS},Symbol.toStringTag,{value:"Module"})),e8={org:[47,54],family:[38,38],vul:[38,38],default:[28,28]},Ipe="",mH={name:"SelectSingle",components:{NodeIcon:Jc,ForceGraphSvgIcon:Ho},mixins:[Or],inject:["levelMap"],props:{filterData:{type:Object,required:!0},uniqueKey:{required:!0,type:Number},value:{required:!1,type:Boolean,default:!1},rootNode:{required:!0,type:Object},isMoreSelect:{required:!1,type:Boolean,default:!1},isRelation:{required:!1,type:Boolean,default:!1},isAggregation:{required:!1,type:Boolean,default:!1},flagDiv:{required:!0,type:Number},isCombineData:{required:!1,type:Boolean,default:!1}},emits:["flagIcon","toggle-fold","toggle-eye","show-detail","relation-click","update:value"],data(){return{getClassNameByLevel:xf,data:null,nodeKey:0,disable:!1,flagIcon:{def:0},dangerNodeNum:0}},computed:{hasParentNode(){return this.data.parentNode&&this.data.parentNode.type!==void 0},isShowFirstLevel(){return(this.rootNode.type==="nodeType"||!this.isRelation||this.data.isExtentNode)&&!this.isMoreSelect&&!this.isAggregation&&this.data.parentNode&&this.data.parentNode.type!==void 0}},watch:{filterData:{handler(e,t){this.data=e},deep:!0,immediate:!0},uniqueKey:{deep:!0,handler(e,t){this.nodeKey=e}},"data.childList":{handler(){setTimeout(()=>{this.dangerNodeNum=this.calculateDangerNodeNum(this.data.childList)},0)},deep:!0,immediate:!0}},mounted(){},beforeUpdate(){this.$arrRefs&&(this.$arrRefs={})},methods:{getIcon(e){e.detail.info.basic.flag===""?(e.detail.info.basic.flag="ip",Tf(this.imgPath["./public/d3svg1/flags/ip.png"]).then(t=>{this.flagIcon[e]=t})):Tf(this.imgPath[`./public/d3svg1/flags/${e}.png`]).then(t=>{this.flagIcon[e]=t}),Xe(wt,"flagIcon",this.flagIcon)},getViewBox(e,t){const n=e8[e]||e8.default;return t===3?n[0]:n[1]},canShow(e,t){return!!(e.show&&t.show)},canGoDetail(e){return["family","org","report","vul","thumbprint_md5","email","cert_https"].indexOf(e.type)<0},handleToggleFold(e){Xe(this,"toggle-fold",e)},handleToggleEye(e,t,n){Xe(this,"toggle-eye",e,t,n)},handleShowDetail(e,t){Xe(this,"show-detail",e,t)},calculateDangerNodeNum(e){let t=[];return e&&e.length>0&&(t=e.filter(n=>{var r;if(n.detail&&n.detail.info.basic.level)return((r=this.levelMap[n.detail.info.basic.level])==null?void 0:r.dangerNumber)>0})),t.length},handleRelationClick(e){Xe(this,"relation-click",e)},formatTags(e){return Nf(If(e))},getRefSetter(e){return t=>{!this.$arrRefs&&(this.$arrRefs={}),!this.$arrRefs[e]&&(this.$arrRefs[e]=[]),t&&this.$arrRefs[e].push(t)}}}},vH={key:0,class:"row-item row-parent"},bH={class:"left"},yH={key:0,class:"image-icon"},_H={key:0,class:"md5-type"},wH={class:"mid"},CH=["title","textContent"],SH={class:"left"},EH=["src"],xH={class:"mid"},AH={class:"text-name"},PH={key:0,class:"count-wrapper"},TH={key:0,class:"num-wrapper"},OH={class:"num"},NH={key:1,class:"count-wrapper"},IH={key:0,class:"num-wrapper"},RH={class:"num"},DH={class:"right"},LH={key:0,class:"extent-icon"},kH={class:"left"},MH={key:0,class:"md5-type"},FH={class:"mid"},BH=["onClick","textContent"],jH={key:0,class:"detail-box"},UH={key:0,class:"segment"},$H={key:1,class:"graph-tags-box"},VH={class:"right"},zH=["onClick"];function qH(e,t,n,r,s,o){const a=We("NodeIcon"),l=We("force-graph-svg-icon"),c=fi,u=zc;return I(),z("div",{class:Y(["relation-item-single",{"aggregation-item":n.isAggregation}])},[H("div",{class:Y([{"has-parent":o.isShowFirstLevel},"line-icon-relation"])},null,2),o.isShowFirstLevel?(I(),z("div",vH,[H("div",bH,[o.hasParentNode?(I(),z("div",yH,[te(a,{class:"svgBase","node-info":s.data.parentNode},null,8,["node-info"]),s.data.parentNode.type==="md5"?(I(),z("p",_H,Ie(s.data.parentNode.detail&&s.data.parentNode.detail.info.basic.file_type.toUpperCase()||"MD5"),1)):re("",!0)])):re("",!0)]),H("div",wH,[H("div",{class:"text-name",title:s.data.parentNode&&s.data.parentNode.name,textContent:Ie(s.data.parentNode&&s.data.parentNode.name)},null,8,CH)])])):re("",!0),H("div",{class:Y(["row-item row-nodetype",{"extent-nodetype":s.data.isExtentNode&&!n.isCombineData,"extent-data":s.data.isExtentNode&&s.data.hasExtention,"extent-disabled":s.data.noExtentNode}])},[H("div",SH,[!n.isAggregation&&s.data.childList.length>0?(I(),z("div",{key:0,class:Y(["image-icon-down",n.rootNode.type!=="nodeType"&&n.isRelation?"icon-left":""]),style:Ze({transform:s.data.showChild?"":"rotate(450deg)"}),onClick:t[0]||(t[0]=d=>o.handleToggleFold(s.data))},[te(l,{"icon-class":e.imgPath["./public/d3svg1/jiantou.svg"],alt:""},null,8,["icon-class"])],6)):re("",!0),(I(),z("div",{key:n.value,class:"image-icon"},[H("img",{src:e.imgPath["./public/d3svg1/"+s.data.icon+".svg"]||e.imgPath["./public/d3svg1/node_type.svg"],alt:""},null,8,EH)]))]),H("div",xH,[H("div",AH,[Je(Ie(s.data.name==="聚合"?"相似同源样本":s.data.name)+" ",1),s.data.isExtentNode&&s.data.hasExtention?(I(),z("span",PH,[s.dangerNodeNum?(I(),z("span",TH,[H("span",OH,Ie(s.dangerNodeNum),1),t[3]||(t[3]=Je("/"))])):re("",!0),Je(Ie(s.data.childList.length),1)])):re("",!0),(s.data.type==="nodeType"||n.isAggregation)&&!s.data.isExtentNode?(I(),z("span",NH,[s.dangerNodeNum?(I(),z("span",IH,[H("span",RH,Ie(s.dangerNodeNum),1),t[4]||(t[4]=Je("/"))])):re("",!0),Je(Ie(s.data.childList.length),1)])):re("",!0)])]),H("div",DH,[s.data.isExtentNode?(I(),z("div",LH,[!s.data.hasExtention||s.data.hasExtention&&s.data.childList.length===0?(I(),Ee(c,{key:0,content:"拓线","popper-class":"el-tooltip-gray",placement:"left"},{default:ee(()=>[te(l,{class:"button-img","icon-class":e.imgPath["./public/d3svg1/button22/button_select_all.svg"],onClick:t[1]||(t[1]=d=>o.handleRelationClick(s.data))},null,8,["icon-class"])]),_:1})):(I(),Ee(c,{key:1,content:s.data.show?"显示":"隐藏","popper-class":"el-tooltip-gray",placement:"left"},{default:ee(()=>[te(l,{class:"button-img","icon-class":s.data.show?e.imgPath["./public/d3svg1/button22/button_eye_open.svg"]:e.imgPath["./public/d3svg1/button22/button_eye_close.svg"]},null,8,["icon-class"])]),_:1},8,["content"]))])):n.isAggregation?re("",!0):(I(),z("div",{key:1,class:"right-icon",onClick:t[2]||(t[2]=d=>o.handleToggleEye(d,s.data,s.data.parentNode))},[te(c,{content:s.data.show?"显示":"隐藏","popper-class":"el-tooltip-gray",placement:"left"},{default:ee(()=>[te(l,{class:"button-img","icon-class":s.data.show?e.imgPath["./public/d3svg1/button22/button_eye_open.svg"]:e.imgPath["./public/d3svg1/button22/button_eye_close.svg"]},null,8,["icon-class"])]),_:1},8,["content"])]))])],2),s.data.showChild?re("",!0):(I(!0),z(qe,{key:1},Tt(s.data.childList,(d,f)=>(I(),z("div",{key:"info2"+f,class:"row-item row-child"},[H("div",kH,[H("div",{class:Y(["image-icon",{"image-icom-left":n.rootNode.type==="nodeType"&&n.isRelation}])},[te(a,{class:"svgBase","node-info":d},null,8,["node-info"]),d.type==="md5"?(I(),z("p",MH,Ie(d.detail&&d.detail.info.basic.file_type.toUpperCase()||"MD5"),1)):re("",!0)],2)]),H("div",FH,[te(c,{ref_for:!0,ref:"tooltip",disabled:s.disable,content:d.name,placement:"top","open-delay":400,"popper-class":"el-tooltip-gray"},{default:ee(()=>[H("div",{class:Y(["text-name",o.canShow(d,s.data)?"":"unselect-color"]),onClick:h=>o.handleShowDetail(d,o.canShow(d,s.data)),textContent:Ie(d.name)},null,10,BH)]),_:2},1032,["disabled","content"]),d.detail&&d.detail.brief!==null?(I(),z("div",jH,[(I(!0),z(qe,null,Tt(d.detail.brief,(h,g)=>(I(),Ee(c,{key:g,disabled:!!o.canGoDetail(d),content:h,placement:"top","popper-class":"el-tooltip-gray"},{default:ee(()=>[H("div",{class:Y([o.canShow(d,s.data)?"":"unselect-color","text"])},[Je(Ie(h)+" ",1),g!==d.detail.brief.length-1?(I(),z("span",UH,"|")):re("",!0)],2)]),_:2},1032,["disabled","content"]))),128))])):re("",!0),d.detail&&d.detail.tags&&d.detail.tags.length>0?(I(),z("div",$H,[(I(!0),z(qe,null,Tt(o.formatTags(d.detail.tags),(h,g)=>(I(),Ee(c,{ref_for:!0,ref:o.getRefSetter("tooltip"),key:g,"open-delay":400,disabled:d.type!=="md5",content:h.desc||h.name,"popper-class":"el-tooltip-gray"},{default:ee(()=>[te(u,{class:Y(["graph-tag-one",h.type||"unknown"]),type:h.type||"info"},{default:ee(()=>[Je(Ie(h.name),1)]),_:2},1032,["class","type"])]),_:2},1032,["disabled","content"]))),128))])):re("",!0)]),H("div",VH,[n.isAggregation?re("",!0):(I(),z("div",{key:0,class:"right-icon",onClick:h=>o.handleToggleEye(h,d,s.data)},[te(c,{content:s.data.show?"显示":"隐藏","popper-class":"el-tooltip-gray",placement:"left"},{default:ee(()=>[te(l,{class:"button-img","icon-class":o.canShow(d,s.data)?e.imgPath["./public/d3svg1/button22/button_eye_open.svg"]:e.imgPath["./public/d3svg1/button22/button_eye_close.svg"]},null,8,["icon-class"])]),_:2},1032,["content"])],8,zH))])]))),128))],2)}const HH=ln(mH,[["render",qH],["__scopeId","data-v-4e03a9d0"]]),Rpe="",GH={name:"SelectMults",components:{NodeIcon:Jc},mixins:[Or],inject:["levelMap"],props:{filterData:{type:Object,required:!0},rootNode:{required:!0,type:Object},isMoreSelect:{required:!1,type:Boolean,default:!1},isRelation:{required:!1,type:Boolean,default:!1}},emits:["flagIcon","show-detail"],data(){return{data:null,disable:!1}},watch:{filterData:{handler(e,t){this.data=e},deep:!0,immediate:!0}},mounted(){},methods:{classNow(e){return xf(e,this.levelMap)},getIcon(e){e.detail.info.basic.flag===""?(e.detail.info.basic.flag="ip",Tf(this.imgPath["./public/d3svg1/flags/ip.png"]).then(t=>{this.flagIcon[e]=t})):Tf(this.imgPath[`./public/d3svg1/flags/${e}.png`]).then(t=>{this.flagIcon[e]=t}),Xe(wt,"flagIcon",this.flagIcon)},getViewBox(e,t){const n=[];switch(e){case"org":n.push(47,54);break;case"family":n.push(38,38);break;case"vul":n.push(38,38);break;default:n.push(28,28)}return t===3?n[0]:n[1]},canGoDetail(e){return["family","org","report","vul","thumbprint_md5","email","cert_https"].indexOf(e.type)<0},handleShowDetail(e,t){Xe(this,"show-detail",e,t)},formatTags(e){return Nf(If(e))}}},WH={class:"relation-item-mults"},KH={class:"row-item"},JH={class:"left"},YH={class:"grid-content bg-purple"},XH={class:"image-icon"},ZH={key:0,class:"md5-type"},QH={class:"mid"},eG={class:"grid-content bg-purple"},tG=["textContent"],nG={key:0,class:"detail-box"},iG={class:"text"},rG={key:0,class:"segment"},sG={class:"graph-tags-box"};function oG(e,t,n,r,s,o){const a=We("NodeIcon"),l=fi,c=zc;return I(),z("div",WH,[H("div",KH,[H("div",JH,[H("div",YH,[H("div",XH,[te(a,{class:"svgBase","node-info":s.data},null,8,["node-info"]),s.data.type==="md5"?(I(),z("p",ZH,Ie(s.data.detail&&s.data.detail.info.basic.file_type.toUpperCase()||"MD5"),1)):re("",!0)])])]),H("div",QH,[H("div",eG,[te(l,{ref:"tooltip",disabled:s.disable,"open-delay":400,content:s.data.name,placement:"top","popper-class":"el-tooltip-gray"},{default:ee(()=>[H("div",{class:"text-name text-more-select",onClick:t[0]||(t[0]=u=>o.handleShowDetail(s.data,!0)),textContent:Ie(s.data.name)},null,8,tG)]),_:1},8,["disabled","content"]),s.data.detail&&s.data.detail.brief!==null?(I(),z("div",nG,[(I(!0),z(qe,null,Tt(s.data.detail.brief,(u,d)=>(I(),Ee(l,{key:d,disabled:!!o.canGoDetail(s.data),content:u,placement:"top","popper-class":"el-tooltip-gray"},{default:ee(()=>[H("div",iG,[Je(Ie(u),1),d!==s.data.detail.brief.length-1?(I(),z("span",rG,"|")):re("",!0)])]),_:2},1032,["disabled","content"]))),128))])):re("",!0),It(H("div",sG,[(I(!0),z(qe,null,Tt(o.formatTags(s.data.detail&&s.data.detail.tags),(u,d)=>(I(),Ee(l,{key:d,disabled:s.data.type!=="md5",content:u.desc||u.name,"popper-class":"el-tooltip-gray"},{default:ee(()=>[te(c,{class:Y(["graph-tag-one",u.type||"unknown"]),type:u.type||"info"},{default:ee(()=>[Je(Ie(u.name),1)]),_:2},1032,["class","type"])]),_:2},1032,["disabled","content"]))),128))],512),[[wn,s.data.detail&&s.data.detail.tags&&s.data.detail.tags.length>0]])])])])])}const aG=ln(GH,[["render",oG],["__scopeId","data-v-64a51e7d"]]);function lG(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var r=e.indexOf("rv:");return parseInt(e.substring(r+3,e.indexOf(".",r)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Df;function G0(){G0.init||(G0.init=!0,Df=lG()!==-1)}var Lf={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){G0(),pt(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Df&&this.$el.appendChild(e),e.data="about:blank",Df||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Df&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const cG=qP();VP("data-v-b329ee4c");const uG={class:"resize-observer",tabindex:"-1"};zP();const dG=cG((e,t,n,r,s,o)=>(I(),Ee("div",uG)));Lf.render=dG,Lf.__scopeId="data-v-b329ee4c",Lf.__file="src/components/ResizeObserver.vue";function kf(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?kf=function(t){return typeof t}:kf=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kf(e)}function fG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hG(e,t,n){return t&&t8(e.prototype,t),n&&t8(e,n),e}function n8(e){return pG(e)||gG(e)||mG(e)||vG()}function pG(e){if(Array.isArray(e))return W0(e)}function gG(e){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(e))return Array.from(e)}function mG(e,t){if(e){if(typeof e=="string")return W0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return W0(e,t)}}function W0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
120
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bG(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function yG(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,s,o,a=function(c){for(var u=arguments.length,d=new Array(u>1?u-1:0),f=1;f<u;f++)d[f-1]=arguments[f];if(o=d,!(r&&c===s)){var h=n.leading;typeof h=="function"&&(h=h(c,s)),(!r||c!==s)&&h&&e.apply(void 0,[c].concat(n8(o))),s=c,clearTimeout(r),r=setTimeout(function(){e.apply(void 0,[c].concat(n8(o))),r=0},t)}};return a._clear=function(){clearTimeout(r),r=null},a}function i8(e,t){if(e===t)return!0;if(kf(e)==="object"){for(var n in e)if(!i8(e[n],t[n]))return!1;return!0}return!1}var _G=function(){function e(t,n,r){fG(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(n,r)}return hG(e,[{key:"createObserver",value:function(n,r){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=bG(n),this.callback=function(l,c){s.options.callback(l,c),l&&s.options.once&&(s.frozen=!0,s.destroyObserver())},this.callback&&this.options.throttle){var o=this.options.throttleOptions||{},a=o.leading;this.callback=yG(this.callback,this.options.throttle,{leading:function(c){return a==="both"||a==="visible"&&c||a==="hidden"&&!c}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(l){var c=l[0];if(l.length>1){var u=l.find(function(f){return f.isIntersecting});u&&(c=u)}if(s.callback){var d=c.isIntersecting&&c.intersectionRatio>=s.threshold;if(d===s.oldResult)return;s.oldResult=d,s.callback(d,c)}},this.options.intersection),pt(function(){s.observer&&s.observer.observe(s.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function r8(e,t,n){var r=t.value;if(r)if(typeof IntersectionObserver=="undefined")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var s=new _G(e,r,n);e._vue_visibilityState=s}}function wG(e,t,n){var r=t.value,s=t.oldValue;if(!i8(r,s)){var o=e._vue_visibilityState;if(!r){s8(e);return}o?o.createObserver(r,n):r8(e,{value:r},n)}}function s8(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var CG={beforeMount:r8,updated:wG,unmounted:s8};function SG(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map(function(r){r(n)}),(e.get("*")||[]).slice().map(function(r){r(t,n)})}}}var EG={itemsLimit:1e3},xG=/(auto|scroll)/;function o8(e,t){return e.parentNode===null?t:o8(e.parentNode,t.concat([e]))}var K0=function(t,n){return getComputedStyle(t,null).getPropertyValue(n)},AG=function(t){return K0(t,"overflow")+K0(t,"overflow-y")+K0(t,"overflow-x")},PG=function(t){return xG.test(AG(t))};function a8(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=o8(e.parentNode,[]),n=0;n<t.length;n+=1)if(PG(t[n]))return t[n];return document.scrollingElement||document.documentElement}}function J0(e){"@babel/helpers - typeof";return J0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},J0(e)}var l8={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function c8(){return this.items.length&&J0(this.items[0])!=="object"}var Y0=!1;if(typeof window!="undefined"){Y0=!1;try{var TG=Object.defineProperty({},"passive",{get:function(){Y0=!0}});window.addEventListener("test",null,TG)}catch(e){}}let OG=0;var X0={name:"RecycleScroller",components:{ResizeObserver:Lf},directives:{ObserveVisibility:CG},props:Be(we({},l8),{itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}}),emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,n=this.sizeField,r=this.minItemSize;let s=1e4,o=0,a;for(let l=0,c=t.length;l<c;l++)a=t[l][n]||r,a<s&&(s=a),o+=a,e[l]={accumulator:o,size:a};return this.$_computedMinItemSize=s,e}return[]},simpleArray:c8,itemIndexByKey(){const{keyField:e,items:t}=this,n={};for(let r=0,s=t.length;r<s;r++)n[t[r][e]]=r;return n}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,n,r,s){const o=od({id:OG++,index:t,used:!0,key:r,type:s}),a=ag({item:n,position:0,nr:o});return e.push(a),a},unuseView(e,t=!1){const n=this.$_unusedViews,r=e.nr.type;let s=n.get(r);s||(s=[],n.set(r,s)),s.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:n}=this.updateVisibleItems(!1,!0);n||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const n=this.itemSize,r=this.gridItems||1,s=this.itemSecondarySize||n,o=this.$_computedMinItemSize,a=this.typeField,l=this.simpleArray?null:this.keyField,c=this.items,u=c.length,d=this.sizes,f=this.$_views,h=this.$_unusedViews,g=this.pool,b=this.itemIndexByKey;let y,_,w,x,C;if(!u)y=_=x=C=w=0;else if(this.$_prerender)y=x=0,_=C=Math.min(this.prerender,c.length),w=null;else{const L=this.getScroll();if(t){let V=L.start-this.$_lastUpdateScrollPosition;if(V<0&&(V=-V),n===null&&V<o||V<n)return{continuous:!0}}this.$_lastUpdateScrollPosition=L.start;const F=this.buffer;L.start-=F,L.end+=F;let G=0;if(this.$refs.before&&(G=this.$refs.before.scrollHeight,L.start-=G),this.$refs.after){const V=this.$refs.after.scrollHeight;L.end+=V}if(n===null){let V,ae=0,ce=u-1,U=~~(u/2),J;do J=U,V=d[U].accumulator,V<L.start?ae=U:U<u-1&&d[U+1].accumulator>L.start&&(ce=U),U=~~((ae+ce)/2);while(U!==J);for(U<0&&(U=0),y=U,w=d[u-1].accumulator,_=U;_<u&&d[_].accumulator<L.end;_++);for(_===-1?_=c.length-1:(_++,_>u&&(_=u)),x=y;x<u&&G+d[x].accumulator<L.start;x++);for(C=x;C<u&&G+d[C].accumulator<L.end;C++);}else{y=~~(L.start/n*r);const V=y%r;y-=V,_=Math.ceil(L.end/n*r),x=Math.max(0,Math.floor((L.start-G)/n*r)),C=Math.floor((L.end-G)/n*r),y<0&&(y=0),_>u&&(_=u),x<0&&(x=0),C>u&&(C=u),w=Math.ceil(u/r)*n}}_-y>EG.itemsLimit&&this.itemsLimitError(),this.totalSize=w;let S;const A=y<=this.$_endIndex&&_>=this.$_startIndex;if(A)for(let L=0,F=g.length;L<F;L++)S=g[L],S.nr.used&&(e&&(S.nr.index=b[S.item[l]]),(S.nr.index==null||S.nr.index<y||S.nr.index>=_)&&this.unuseView(S));const O=A?null:new Map;let R,N,k;for(let L=y;L<_;L++){R=c[L];const F=l?R[l]:R;if(F==null)throw new Error(`Key is ${F} on item (keyField is '${l}')`);if(S=f.get(F),!n&&!d[L].size){S&&this.unuseView(S);continue}N=R[a];let G=h.get(N),V=!1;if(!S)A?G&&G.length?S=G.pop():S=this.addView(g,L,R,F,N):(k=O.get(N)||0,(!G||k>=G.length)&&(S=this.addView(g,L,R,F,N),this.unuseView(S,!0),G=h.get(N)),S=G[k],O.set(N,k+1)),f.delete(S.nr.key),S.nr.used=!0,S.nr.index=L,S.nr.key=F,S.nr.type=N,f.set(F,S),V=!0;else if(!S.nr.used&&(S.nr.used=!0,V=!0,G)){const ae=G.indexOf(S);ae!==-1&&G.splice(ae,1)}S.item=R,V&&(L===c.length-1&&this.$emit("scroll-end"),L===0&&this.$emit("scroll-start")),n===null?(S.position=d[L-1].accumulator,S.offset=0):(S.position=Math.floor(L/r)*n,S.offset=L%r*s)}return this.$_startIndex=y,this.$_endIndex=_,this.emitUpdate&&this.$emit("update",y,_,x,C),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:A}},getListenerTarget(){let e=a8(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,n=t==="vertical";let r;if(this.pageMode){const s=e.getBoundingClientRect(),o=n?s.height:s.width;let a=-(n?s.top:s.left),l=n?window.innerHeight:window.innerWidth;a<0&&(l+=a,a=0),a+l>o&&(l=o-a),r={start:a,end:a+l}}else n?r={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:r={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return r},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,Y0?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const n=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/n)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let n,r,s;if(this.pageMode){const o=a8(this.$el),a=o.tagName==="HTML"?0:o[t.scroll],l=o.getBoundingClientRect(),u=this.$el.getBoundingClientRect()[t.start]-l[t.start];n=o,r=t.scroll,s=e+a+u}else n=this.$el,r=t.scroll,s=e;n[r]=s},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const NG={key:0,ref:"before",class:"vue-recycle-scroller__slot"},IG={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function RG(e,t,n,r,s,o){const a=We("ResizeObserver"),l=vd("observe-visibility");return It((I(),z("div",{class:Y(["vue-recycle-scroller",{ready:s.ready,"page-mode":n.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...c)=>o.handleScroll&&o.handleScroll(...c))},[e.$slots.before?(I(),z("div",NG,[Re(e.$slots,"before")],512)):re("v-if",!0),(I(),Ee(Zt(n.listTag),{ref:"wrapper",style:Ze({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:Y(["vue-recycle-scroller__item-wrapper",n.listClass])},{default:ee(()=>[(I(!0),z(qe,null,Tt(s.pool,c=>(I(),Ee(Zt(n.itemTag),An({key:c.nr.id,style:s.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${c.position}px) translate${e.direction==="vertical"?"X":"Y"}(${c.offset}px)`,width:n.gridItems?`${e.direction==="vertical"&&n.itemSecondarySize||n.itemSize}px`:void 0,height:n.gridItems?`${e.direction==="horizontal"&&n.itemSecondarySize||n.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[n.itemClass,{hover:!n.skipHover&&s.hoverKey===c.nr.key}]]},rT(n.skipHover?{}:{mouseenter:()=>{s.hoverKey=c.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:ee(()=>[Re(e.$slots,"default",{item:c.item,index:c.nr.index,active:c.nr.used})]),_:2},1040,["style","class"]))),128)),Re(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(I(),z("div",IG,[Re(e.$slots,"after")],512)):re("v-if",!0),te(a,{onNotify:o.handleResize},null,8,["onNotify"])],34)),[[l,o.handleVisibilityChange]])}X0.render=RG,X0.__file="src/components/RecycleScroller.vue";var Z0={name:"DynamicScroller",components:{RecycleScroller:X0},provide(){return typeof ResizeObserver!="undefined"&&(this.$_resizeObserver=new ResizeObserver(e=>{requestAnimationFrame(()=>{if(Array.isArray(e)){for(const t of e)if(t.target&&t.target.$_vs_onResize){let n,r;if(t.borderBoxSize){const s=t.borderBoxSize[0];n=s.inlineSize,r=s.blockSize}else n=t.contentRect.width,r=t.contentRect.height;t.target.$_vs_onResize(t.target.$_vs_id,n,r)}}})})),{vscrollData:this.vscrollData,vscrollParent:this,vscrollResizeObserver:this.$_resizeObserver}},inheritAttrs:!1,props:Be(we({},l8),{minItemSize:{type:[Number,String],required:!0}}),emits:["resize","visible"],data(){return{vscrollData:{active:!0,sizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:c8,itemsWithSize(){const e=[],{items:t,keyField:n,simpleArray:r}=this,s=this.vscrollData.sizes,o=t.length;for(let a=0;a<o;a++){const l=t[a],c=r?a:l[n];let u=s[c];typeof u=="undefined"&&!this.$_undefinedMap[c]&&(u=0),e.push({item:l,id:c,size:u})}return e}},watch:{items(){this.forceUpdate()},simpleArray:{handler(e){this.vscrollData.simpleArray=e},immediate:!0},direction(e){this.forceUpdate(!0)},itemsWithSize(e,t){const n=this.$el.scrollTop;let r=0,s=0;const o=Math.min(e.length,t.length);for(let l=0;l<o&&!(r>=n);l++)r+=t[l].size||this.minItemSize,s+=e[l].size||this.minItemSize;const a=s-r;a!==0&&(this.$el.scrollTop+=a)}},beforeCreate(){this.$_updates=[],this.$_undefinedSizes=0,this.$_undefinedMap={},this.$_events=SG()},activated(){this.vscrollData.active=!0},deactivated(){this.vscrollData.active=!1},unmounted(){this.$_events.all.clear()},methods:{onScrollerResize(){this.$refs.scroller&&this.forceUpdate(),this.$emit("resize")},onScrollerVisible(){this.$_events.emit("vscroll:update",{force:!1}),this.$emit("visible")},forceUpdate(e=!1){(e||this.simpleArray)&&(this.vscrollData.sizes={}),this.$_events.emit("vscroll:update",{force:!0})},scrollToItem(e){const t=this.$refs.scroller;t&&t.scrollToItem(e)},getItemSize(e,t=void 0){const n=this.simpleArray?t!=null?t:this.items.indexOf(e):e[this.keyField];return this.vscrollData.sizes[n]||0},scrollToBottom(){if(this.$_scrollingToBottom)return;this.$_scrollingToBottom=!0;const e=this.$el;this.$nextTick(()=>{e.scrollTop=e.scrollHeight+5e3;const t=()=>{e.scrollTop=e.scrollHeight+5e3,requestAnimationFrame(()=>{e.scrollTop=e.scrollHeight+5e3,this.$_undefinedSizes===0?this.$_scrollingToBottom=!1:requestAnimationFrame(t)})};requestAnimationFrame(t)})}}};function DG(e,t,n,r,s,o){const a=We("RecycleScroller");return I(),Ee(a,An({ref:"scroller",items:o.itemsWithSize,"min-item-size":n.minItemSize,direction:e.direction,"key-field":"id","list-tag":e.listTag,"item-tag":e.itemTag},e.$attrs,{onResize:o.onScrollerResize,onVisible:o.onScrollerVisible}),{default:ee(({item:l,index:c,active:u})=>[Re(e.$slots,"default",tP(S2({item:l.item,index:c,active:u,itemWithSize:l})))]),before:ee(()=>[Re(e.$slots,"before")]),after:ee(()=>[Re(e.$slots,"after")]),empty:ee(()=>[Re(e.$slots,"empty")]),_:3},16,["items","min-item-size","direction","list-tag","item-tag","onResize","onVisible"])}Z0.render=DG,Z0.__file="src/components/DynamicScroller.vue";var u8={name:"DynamicScrollerItem",inject:["vscrollData","vscrollParent","vscrollResizeObserver"],props:{item:{required:!0},watchData:{type:Boolean,default:!1},active:{type:Boolean,required:!0},index:{type:Number,default:void 0},sizeDependencies:{type:[Array,Object],default:null},emitResize:{type:Boolean,default:!1},tag:{type:String,default:"div"}},emits:["resize"],computed:{id(){if(this.vscrollData.simpleArray)return this.index;if(this.vscrollData.keyField in this.item)return this.item[this.vscrollData.keyField];throw new Error(`keyField '${this.vscrollData.keyField}' not found in your item. You should set a valid keyField prop on your Scroller`)},size(){return this.vscrollData.sizes[this.id]||0},finalActive(){return this.active&&this.vscrollData.active}},watch:{watchData:"updateWatchData",id(e,t){if(this.$el.$_vs_id=this.id,this.size||this.onDataUpdate(),this.$_sizeObserved){const n=this.vscrollData.sizes[t],r=this.vscrollData.sizes[e];n!=null&&n!==r&&this.applySize(n)}},finalActive(e){this.size||(e?this.vscrollParent.$_undefinedMap[this.id]||(this.vscrollParent.$_undefinedSizes++,this.vscrollParent.$_undefinedMap[this.id]=!0):this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=!1)),this.vscrollResizeObserver?e?this.observeSize():this.unobserveSize():e&&this.$_pendingVScrollUpdate===this.id&&this.updateSize()}},created(){if(!this.$isServer&&(this.$_forceNextVScrollUpdate=null,this.updateWatchData(),!this.vscrollResizeObserver)){for(const e in this.sizeDependencies)this.$watch(()=>this.sizeDependencies[e],this.onDataUpdate);this.vscrollParent.$_events.on("vscroll:update",this.onVscrollUpdate)}},mounted(){this.finalActive&&(this.updateSize(),this.observeSize())},beforeUnmount(){this.vscrollParent.$_events.off("vscroll:update",this.onVscrollUpdate),this.unobserveSize()},methods:{updateSize(){this.finalActive?this.$_pendingSizeUpdate!==this.id&&(this.$_pendingSizeUpdate=this.id,this.$_forceNextVScrollUpdate=null,this.$_pendingVScrollUpdate=null,this.computeSize(this.id)):this.$_forceNextVScrollUpdate=this.id},updateWatchData(){this.watchData&&!this.vscrollResizeObserver?this.$_watchData=this.$watch("item",()=>{this.onDataUpdate()},{deep:!0}):this.$_watchData&&(this.$_watchData(),this.$_watchData=null)},onVscrollUpdate({force:e}){!this.finalActive&&e&&(this.$_pendingVScrollUpdate=this.id),(this.$_forceNextVScrollUpdate===this.id||e||!this.size)&&this.updateSize()},onDataUpdate(){this.updateSize()},computeSize(e){this.$nextTick(()=>{if(this.id===e){const t=this.$el.offsetWidth,n=this.$el.offsetHeight;this.applyWidthHeight(t,n)}this.$_pendingSizeUpdate=null})},applyWidthHeight(e,t){const n=~~(this.vscrollParent.direction==="vertical"?t:e);n&&this.size!==n&&this.applySize(n)},applySize(e){this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=void 0),this.vscrollData.sizes[this.id]=e,this.emitResize&&this.$emit("resize",this.id)},observeSize(){this.vscrollResizeObserver&&(this.$_sizeObserved||(this.vscrollResizeObserver.observe(this.$el),this.$el.$_vs_id=this.id,this.$el.$_vs_onResize=this.onResize,this.$_sizeObserved=!0))},unobserveSize(){this.vscrollResizeObserver&&this.$_sizeObserved&&(this.vscrollResizeObserver.unobserve(this.$el),this.$el.$_vs_onResize=void 0,this.$_sizeObserved=!1)},onResize(e,t,n){this.id===e&&this.applyWidthHeight(t,n)}},render(){return dt(this.tag,this.$slots.default())}};u8.__file="src/components/DynamicScrollerItem.vue";const Dpe="",Lpe="",LG={components:{ForceGraphSvgIcon:Ho,selectSingle:HH,selectMults:aG,DynamicScroller:Z0,DynamicScrollerItem:u8},mixins:[Or],inject:["hasLevel","history","levelMap"],props:{data:{required:!0,type:Object,default:()=>({nodes:[],links:[]})},selectedNodes:{required:!1,type:Array,default:()=>[]},isRelation:{required:!1,type:Boolean,default:!1},moduleDetail:{type:Object,default:()=>{}},requestGraphData:{type:Boolean,default:!1},canSearch:{required:!1,type:Boolean,default:!1}},emits:["relationNum","sendNodesRange","row-click","selection-change","relationClick","buttonClick"],data(){return{filterValues:"",filteredDataList:[],isMoreSelect:!1,isAggregation:!1,allOptions:null,extentDataList:[],relationDataList:[],currentSelectStatus:-1,currentSelectNode:null,isCombineData:!1,selection:{},oldScrollTop:0,scrollTop:0,flagDiv:1,divObject:null,relationList:[],rootNode:{type:""},menuOptions:null,lineShow:!1,tableKey:"table",value:!0,selectList:[]}},computed:{historyData(){var r,s,o,a,l,c;const e=(o=(s=(r=this.history)==null?void 0:r.dataNow)==null?void 0:s.nodes)==null?void 0:o.map(u=>{const y=u,{x:d,y:f,vx:h,vy:g}=y;return Es(y,["x","y","vx","vy"])}),t=(c=(l=(a=this.history)==null?void 0:a.dataNow)==null?void 0:l.links)==null?void 0:c.map(u=>{const R=u,{source:d,target:f}=R,h=Es(R,["source","target"]),N=d,{x:g,y:b,vx:y,vy:_}=N,w=Es(N,["x","y","vx","vy"]),k=f,{x,y:C,vx:S,vy:A}=k,O=Es(k,["x","y","vx","vy"]);return we({sourceRest:w,targetRest:O},h)});return JSON.stringify({nodes:e,links:t})},noSelectNodes(){return this.getNoSelectNodes()},showAllExtent(){let e=!1;if(this.selectedNodes&&this.selectedNodes.length===1){const t=this.selectedNodes[0].getData;t&&(e=!(Object.values(t).filter(r=>r===!1).length>0))}return!e},hasFoldIcon(){return!this.isAggregation&&this.relationDataList.some(e=>{var t;return(t=e.childList)==null?void 0:t.length})}},watch:{filterValues:{deep:!0,handler(e,t){var s;const n=this.filterValues.split("-");this.filterValues=n[0];const r=this.clone((s=this.history.dataNow)==null?void 0:s.links);if(I0.filterValues=n[0],this.selectedNodes.length===1){const o=this.clone(this.selectedNodes[0]);this.filteredDataList=this.getSelectOneNodes(o)}else this.selectedNodes.length===0&&(this.filteredDataList=this.clone(this.noSelectNodes));if(this.filterValues!==""&&(Fn({cId:"rightMenu-filterValues",c:"右侧菜单搜索"}),this.filteredDataList=this.filteredDataList.filter(o=>this.filterValues!==""?(o.parentNode=this.searchParent(o,r),o.childList=o.childList.filter(a=>{var l,c,u,d;if(a.name.toLowerCase().indexOf(this.filterValues.toLowerCase())>-1)return!0;if(a.detail!==null){for(const f in a.detail.brief)if(String((l=a==null?void 0:a.detail)==null?void 0:l.brief[f]).toLowerCase().indexOf(this.filterValues.toLowerCase())>-1)return!0;for(let f=0;f<((u=(c=a==null?void 0:a.detail)==null?void 0:c.tags)==null?void 0:u.length);f++){const h=(d=a==null?void 0:a.detail)==null?void 0:d.tags[f];if(String(h.name).toLowerCase().indexOf(this.filterValues.toLowerCase())>-1)return!0}}else return!1}),o.childList.length>0):!0),this.filteredDataList=this.deleteParentItem(this.filteredDataList)),this.selectedNodes.length===1&&Xe(wt,"relationNum",this.filteredDataList[0]),this.selectedNodes.length!==0){const o=[];o.push(this.rootNode),this.filteredDataList.forEach(a=>{o.push(...a.childList),o.push(a)}),Xe(wt,"sendNodesRange",o)}else{const o=[];this.filteredDataList.forEach(a=>{o.push(this.searchParent(a,r)),o.push(...a.childList),o.push(a)}),Xe(wt,"sendNodesRange",o)}}},selectedNodes:{handler(e,t){var n;if(e!==t){const r=e||[],s=this.clone(r);if(this.filterValues="",this.isMoreSelect=!1,this.allOptions=[],this.initShowDiv(),s.length===0)setTimeout(()=>{this.currentSelectStatus=0,this.filteredDataList=this.noSelectNodes,this.setFilteredDataList(),Xe(wt,"sendNodesRange",null)},0);else if(s.length===1){this.currentSelectNode=s[0],this.currentSelectStatus=1,this.filteredDataList=this.getSelectOneNodes(s[0]);const o=[];o.push(this.rootNode),this.filteredDataList.map(a=>{o.push(...a.childList),o.push(a)}),this.setFilteredDataList(),Xe(wt,"sendNodesRange",o)}else{this.currentSelectStatus=2;const o=[],a=this.clone((n=this.history.dataNow)==null?void 0:n.links),l=s==null?void 0:s.map(c=>{var u;return c.level=this.levelNow(c),c.dangerNumber=((u=this.levelMap[c.level])==null?void 0:u.dangerNumber)||0,c.parentNode=this.searchParent(c,a),o.push(c),c});l.sort(this.handle("dangerNumber")),this.filteredDataList=l,this.setFilteredDataList(),Xe(wt,"sendNodesRange",o),this.isMoreSelect=!0}}},immediate:!0,deep:!0},historyData(){this.setFilteredDataList()},filteredDataList:{handler(e,t){setTimeout(()=>{this.setRelationDataList()},0)},deep:!0}},created(){},mounted(){},beforeUnmount(){Hs(wt,"flagFiles")},methods:{searchChildren(e,t){const n=t,r=[];return n&&n.forEach(s=>{var o;s.source.id===e.id&&(s.target.level=this.levelNow(s.target),s.target.dangerNumber=((o=this.levelMap[s.target.level])==null?void 0:o.dangerNumber)||0,r.push(s.target))}),r},searchParent(e,t){const n=t;let r=[];return n&&n.forEach(s=>{var o;s.target.id===e.id&&(s.source.level=this.levelNow(s.source),s.source.dangerNumber=((o=this.levelMap[s.source.level])==null?void 0:o.dangerNumber)||0,r=s.source)}),r},setFilteredDataList(){if(I0.filterValues===void 0||I0.filterValues==="")if(this.selectedNodes.length===0)this.currentSelectStatus=0,this.filteredDataList=this.noSelectNodes,Xe(wt,"sendNodesRange",null);else if(this.selectedNodes.length===1){const e=this.clone(this.selectedNodes[0]);this.currentSelectStatus=1,this.currentSelectNode=e,this.filteredDataList=this.getSelectOneNodes(e);const t=[];t.push(this.rootNode),this.filteredDataList.map(n=>{t.push(...n.childList),t.push(n)}),Xe(wt,"sendNodesRange",t)}else this.currentSelectStatus=2;this.setRelationDataList()},setRelationDataList(){if(this.currentSelectStatus!==1){this.relationDataList=this.filteredDataList;return}const e=this.checkExtentStatus();switch(this.isCombineData=!1,e){case 3:{this.initExtentData(),this.relationDataList=this.extentDataList;break}case 2:case 1:{this.isCombineData=!0,this.relationDataList=this.filteredDataList.concat(this.getCombineDataList());break}case 0:this.relationDataList=this.filteredDataList}},levelNow(e){let t=e.detail&&e.detail.info.basic.level;return e.type==="family"&&(t=""),t},handleRowClick(e,t){if(t&&t.type==="selection")return!1;Xe(this,"row-click",e)},handleSelectionChange(e){this.selection=e,Xe(this,"selection-change",e)},getModuleDetail(e,t){const n=[],r=[],s=e.apis;this.menuOptions=[];let o=this.$parent.$parent.$parent.moduleDetail;o=o!=null&&o.plugs[e.type]?Array.from(o==null?void 0:o.plugs[e.type]):[],o.filter(l=>{l.value=0,l.children?l.children.map(c=>(c.value=0,this.menuOptions.push(c),c)):this.menuOptions.push(l)}),o.length!==0&&this.menuOptions.unshift({namec:"拓线全部",value:0,name:"",flagSelect:!1}),this.allOptions=[];let a;if(this.menuOptions.map(l=>{a=0;for(let c=0;c<t.length;c++){const u=t[c];a+=u.childList.length,u.id.split("-").pop()===l.name&&(l.value=u.childList.length)}return t.length===0&&(l.value=0),l.namec==="拓线全部"?this.allOptions.push({namec:l.namec,value:a,name:l.name,flagSelect:l.flagSelect}):this.allOptions.push({namec:l.namec,value:l.value,icon:l.icon,name:l.name,relay_name:l.relay_name}),l}),s){for(let l=0;l<s.length;l++)n[s[l].name]=!0;for(let l=0;l<this.allOptions.length;l++)n[this.allOptions[l].name]?(this.allOptions[l].flagSelect=!0,r.push(this.allOptions[l])):(this.allOptions[l].flagSelect=!1,r.push(this.allOptions[l]))}e.menuOptions=this.allOptions},clone(e){return JSON.parse(JSON.stringify(e))},getNoSelectNodes(){var s;this.isAggregation=!1;const e=this.clone(this.history.dataNow.nodes),t=this.clone((s=this.history.dataNow)==null?void 0:s.links),n=e.filter(o=>{if((o==null?void 0:o.type)==="nodeType")return o.childList=this.searchChildren(o,t),o.parentNode=this.searchParent(o,t),o.childList.sort(this.handle("dangerNumber")),!0});return this.deleteParentItem(n)},getSelectOneNodes(e){var n;const t=this.clone((n=this.history.dataNow)==null?void 0:n.links);if(e.type==="nodeType"){const r=[];return this.isAggregation=!1,this.rootNode=e,e.childList=this.searchChildren(e,t),e.parentNode=this.searchParent(e,t),e.childList.sort(this.handle("dangerNumber")),r.push(e),this.getModuleDetail(e,r),Xe(wt,"relationNum",e),r}else if(e.type==="aggregation"){const r=[];this.isAggregation=!0;const s=[...e.list];return e.childList=s.map(o=>{var a;return o.level=this.levelNow(o),o.dangerNumber=((a=this.levelMap[o.level])==null?void 0:a.dangerNumber)||0,o}),e.childList.sort(this.handle("dangerNumber")),e.name=this.searchParent(e,t).name,r.push(e),Xe(wt,"relationNum",e),r}else{this.rootNode=e,this.isAggregation=!1;const r=this.searchChildren(e,t);return r.map(s=>(s.childList=this.searchChildren(s,t),s.parentNode=this.searchParent(s,t),s.childList.sort(this.handle("dangerNumber")),s)),this.getModuleDetail(e,r),r}},handle(e){return function(t,n){const r=parseInt(t[e]),s=parseInt(n[e]);return r==null?-1:s==null?1:n[e]-t[e]}},showDetail(e,t){var r,s,o,a,l,c,u,d,f,h,g,b,y,_;const n=[];n.push(e.id),t&&(this.selectedNodes.length===0?(o=(s=(r=this.$parent)==null?void 0:r.$parent)==null?void 0:s.$parent)!=null&&o.handleTableSelect&&((c=(l=(a=this.$parent)==null?void 0:a.$parent)==null?void 0:l.$parent)==null||c.handleTableSelect(n)):(h=(f=(d=(u=this.$parent)==null?void 0:u.$parent)==null?void 0:d.$parent)==null?void 0:f.$parent)!=null&&h.handleTableSelect&&((_=(y=(b=(g=this.$parent)==null?void 0:g.$parent)==null?void 0:b.$parent)==null?void 0:y.$parent)==null||_.handleTableSelect(n)))},scalarArrayEquals(e,t){return(e==null?void 0:e.length)===(t==null?void 0:t.length)&&e.every(function(n,r){return n===t[r]})},initShowDiv(){var t;const e=(t=this.history.dataNow)==null?void 0:t.links;e&&e.map(n=>{n.source.showChild=!1,n.target.showChild=!1})},groupBy(e,t){const n={};return e.forEach(function(r){const s=JSON.stringify(t(r));n[s]=n[s]||[],n[s].push(r)}),Object.keys(n).map(function(r){return n[r]})},deleteParentItem(e){let t=[];const n=[];return this.groupBy(e,function(r){return[r.parentNode.id]}).map(r=>{t.push(...r)}),t=t.map(r=>(n.some(o=>o===r.parentNode.id)?r.parentNode="":n.push(r.parentNode.id),r)),t},relationClick(e){Fn({cId:"relationClick",c:"点击拓线"});const n=this.allOptions.filter(r=>r.namec===e.namec)[0];this.value=!this.value,n.flagSelect=!1,n.namec==="拓线全部"?Xe(wt,"relationClick",{nodes:[this.rootNode],api:XS,dataApi:null}):Xe(wt,"relationClick",{nodes:[this.rootNode],api:ZS,dataApi:n})},toggleFold(e){Fn({cId:"rightMenu-toggleFold",c:"rightMenu-toggleFold"}),this.history.dataNow.nodes.map(t=>(t.id===e.id&&(t.showChild=!e.showChild),t)),this.filterValues=this.filterValues+"-i"},toggleEye(e,t,n){this.filterValues=this.filterValues+"-i";const r=t.show;this.value=!this.value,r===!0?(Fn({cId:"rightMenu-toggleEye",c:"rightMenu-toggleEye"}),Xe(wt,"buttonClick",{nodes:[t,n],api:{name:"hide_node"}})):Xe(wt,"buttonClick",{nodes:[t,n],api:{name:"show_node"}})},checkExtentStatus(){const e=this.currentSelectNode.getData;let t,n=!0,r=!0;if(e===void 0)t=0;else{for(const s in e)e[s]===!1&&(n=!1),e[s]===!0&&(r=!1);n===!0?t=1:t=r===!0?3:2}return t},getCombineDataList(){const e=this.allOptions.filter(r=>r.namec!=="拓线全部"),t=[];let n={};return e.map((r,s)=>{const o=this.checkNodeExtentStatus(r),a=this.checkExtentData(r),l=OS();o&&!a&&(n={id:l,type:"nodeType",icon:r.icon,name:r.namec,namec:r.namec,show:!1,showChild:!1,childList:[],parentNode:"",isExtentNode:!0,hasExtention:!0,noExtentNode:!0},t.push(n)),o||(n={id:l,type:"nodeType",icon:r.icon,name:r.namec,namec:r.namec,show:!1,showChild:!1,childList:[],parentNode:"",isExtentNode:!0,hasExtention:!1,noExtentNode:!1},t.push(n))}),t},initExtentData(){const e=[],t=this.allOptions.filter(r=>r.namec!=="拓线全部"),n=this.rootNode;t.forEach((r,s)=>{const o=OS();e.push({id:o,type:"nodeType",icon:r.icon,name:r.namec,namec:r.namec,show:!1,showChild:!1,childList:[],parentNode:s===0?n:"",hasExtention:!1,isExtentNode:!0,noExtentNode:!1})}),this.extentDataList=e},checkNodeExtentStatus(e){return this.currentSelectNode.getData[e.name]},checkExtentData(e){return this.filteredDataList.filter(n=>e.namec===n.name).length>0}}},kG={class:"node-relation-block"},MG={key:0,class:"textarea-wrapper"},FG={key:1,class:"relation-title"},BG={key:0,class:"extent-icon"},jG={key:2,class:"nodata"};function UG(e,t,n,r,s,o){const a=jo,l=We("force-graph-svg-icon"),c=fi,u=We("select-single"),d=We("select-mults"),f=We("DynamicScrollerItem"),h=We("DynamicScroller");return I(),z("div",kG,[s.isMoreSelect?re("",!0):(I(),z(qe,{key:0},[n.canSearch?(I(),z("div",MG,[te(a,{modelValue:s.filterValues,"onUpdate:modelValue":t[0]||(t[0]=g=>s.filterValues=g),modelModifiers:{trim:!0},class:"search-content",placeholder:"请输入搜索内容",clearable:""},null,8,["modelValue"])])):re("",!0),s.rootNode.type!=="nodeType"&&!s.isAggregation?(I(),z("div",FG,[t[1]||(t[1]=H("h3",{class:"title-top"},"关联列表",-1)),o.showAllExtent?(I(),z("div",BG,[(I(!0),z(qe,null,Tt(s.allOptions,(g,b)=>(I(),z("div",{key:b},[g.namec==="拓线全部"?(I(),Ee(c,{key:0,content:g.namec,"popper-class":"el-tooltip-gray",placement:"left"},{default:ee(()=>[te(l,{class:"button-img","icon-class":e.imgPath["./public/d3svg1/button22/button_select_all.svg"],onClick:y=>o.relationClick(g)},null,8,["icon-class","onClick"])]),_:2},1032,["content"])):re("",!0)]))),128))])):re("",!0)])):re("",!0)],64)),s.relationDataList.length>0?(I(),z(qe,{key:1},[n.selectedNodes.length?(I(),z("div",{key:0,ref:"rightList",class:Y({"has-selected":n.selectedNodes.length,"has-fold-icon":o.hasFoldIcon})},[(I(!0),z(qe,null,Tt(s.relationDataList,(g,b)=>(I(),z("div",{key:b,class:Y(["relation-item",!s.isMoreSelect&&(s.rootNode.type==="nodeType"||!n.isRelation)?"offset-div-1":"offset-div-2"])},[s.isMoreSelect?(I(),Ee(d,{key:1,"filter-data":g,"root-node":s.rootNode,"is-more-select":s.isMoreSelect,"is-relation":n.isRelation,onShowDetail:o.showDetail},null,8,["filter-data","root-node","is-more-select","is-relation","onShowDetail"])):(I(),Ee(u,{key:0,"filter-data":g,"unique-key":b,value:s.value,"root-node":s.rootNode,"is-more-select":s.isMoreSelect,"is-relation":n.isRelation,"is-aggregation":s.isAggregation,"flag-div":s.flagDiv,"is-combine-data":s.isCombineData,onShowDetail:o.showDetail,onToggleFold:o.toggleFold,onToggleEye:o.toggleEye,onRelationClick:o.relationClick},null,8,["filter-data","unique-key","value","root-node","is-more-select","is-relation","is-aggregation","flag-div","is-combine-data","onShowDetail","onToggleFold","onToggleEye","onRelationClick"]))],2))),128))],2)):(I(),z("div",{key:1,ref:"rightList",class:Y(["relation-data-list",{"no-selected":!n.selectedNodes.length}])},[te(h,{items:s.relationDataList,"min-item-size":54,class:"scroller","key-field":"id"},{default:ee(({item:g,index:b,active:y})=>[te(f,{item:g,active:y,"size-dependencies":[g],"data-index":b,class:Y(["relation-item",!s.isMoreSelect&&(s.rootNode.type==="nodeType"||!n.isRelation)?"offset-div-1":"offset-div-2"])},{default:ee(()=>[s.isMoreSelect?(I(),Ee(d,{key:1,"filter-data":g,"root-node":s.rootNode,"is-more-select":s.isMoreSelect,"is-relation":n.isRelation,onShowDetail:o.showDetail},null,8,["filter-data","root-node","is-more-select","is-relation","onShowDetail"])):(I(),Ee(u,{key:0,"filter-data":g,"unique-key":b,value:s.value,"root-node":s.rootNode,"is-more-select":s.isMoreSelect,"is-relation":n.isRelation,"is-aggregation":s.isAggregation,"flag-div":s.flagDiv,"is-combine-data":s.isCombineData,onShowDetail:o.showDetail,onToggleFold:o.toggleFold,onToggleEye:o.toggleEye,onRelationClick:o.relationClick},null,8,["filter-data","unique-key","value","root-node","is-more-select","is-relation","is-aggregation","flag-div","is-combine-data","onShowDetail","onToggleFold","onToggleEye","onRelationClick"]))]),_:2},1032,["item","active","size-dependencies","data-index","class"])]),_:1},8,["items"])],2))],64)):(I(),z("div",jG,t[2]||(t[2]=[H("span",{class:"el-table__empty-text"},"暂无数据",-1)])))])}const $G={components:{NodeDetail:fH,NodesRelation:ln(LG,[["render",UG]])},props:{data:{required:!0,type:Object,default:()=>{}},selectedNodes:{required:!1,type:Array,default:()=>[]},relations:{required:!1,type:Array,default:()=>[]},requestGraphData:{type:Boolean,default:!1}},data(){return{}},computed:{showDetail(){return this.selectedNodes.length!==0},relationData(){const e=[];return this.selectedNodes.length!==1?{nodes:[]}:(this.data.links.map(t=>{t.source.id===this.selectedNodes[0].id?e.push(t.target):t.target.id===this.selectedNodes[0].id&&e.push(t.source)}),{nodes:e})}},methods:{handleBack(){Xe(this,"change-box",[],!0),this.scrollTop>0&&setTimeout(()=>this.$refs.rightMenu.scrollTo(0,this.scrollTop))},handleSelectionChange(e){Xe(this,"change-box",e)},handleRowClick(e){this.scrollTop=this.$refs.rightMenu.scrollTop,Xe(this,"change-box",[e.id],!0)}},emits:["change-box"]},VG={class:"node-data-wrapper"};function zG(e,t,n,r,s,o){const a=We("node-detail"),l=We("nodes-relation");return I(),z("div",VG,[o.showDetail?(I(),z(qe,{key:0},[te(a,{data:n.selectedNodes[0]||{},"selected-nodes":n.selectedNodes,"request-graph-data":n.requestGraphData},null,8,["data","selected-nodes","request-graph-data"]),te(l,{data:o.relationData,"selected-nodes":n.selectedNodes,"request-graph-data":n.requestGraphData,"is-relation":!0},null,8,["data","selected-nodes","request-graph-data"])],64)):(I(),Ee(l,{key:1,data:n.data,"selected-nodes":n.selectedNodes,"request-graph-data":n.requestGraphData,"can-search":!0,onRowClick:o.handleRowClick,onSelectionChange:o.handleSelectionChange},null,8,["data","selected-nodes","request-graph-data","onRowClick","onSelectionChange"]))])}const qG=ln($G,[["render",zG]]),Mpe="",HG={name:"RightMenu",components:{NodeData:qG},props:{graphData:{type:Object,required:!0},selectedNodes:{type:Array,required:!0},requestGraphData:{type:Boolean,default:!1}},emits:["change-box"],data(){return{scrollTop:0}},methods:{handleBack(){Xe(this,"change-box",[],!0),this.scrollTop>0&&setTimeout(()=>this.$refs.rightMenu.scrollTo(0,this.scrollTop))},handleSelectionChange(e){Xe(this,"change-box",e)},handleRowClick(e){this.scrollTop=this.$refs.rightMenu.scrollTop,Xe(this,"change-box",[e.id],!0)}}};function GG(e,t,n,r,s,o){const a=We("node-data");return I(),z("div",{ref:"rightMenu",class:Y(["right-menu-box",{"no-select":!n.selectedNodes.length}])},[te(a,{data:n.graphData,"selected-nodes":n.selectedNodes,"request-graph-data":n.requestGraphData,onRowClick:o.handleRowClick,onSelectionChange:o.handleSelectionChange,onGoBack:o.handleBack},null,8,["data","selected-nodes","request-graph-data","onRowClick","onSelectionChange","onGoBack"])],2)}const WG=ln(HG,[["render",GG]]);var Q0="http://www.w3.org/1999/xhtml";const d8={svg:"http://www.w3.org/2000/svg",xhtml:Q0,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function f8(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),d8.hasOwnProperty(t)?{space:d8[t],local:e}:e}function KG(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Q0&&t.documentElement.namespaceURI===Q0?t.createElement(e):t.createElementNS(n,e)}}function JG(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function h8(e){var t=f8(e);return(t.local?JG:KG)(t)}function YG(){}function p8(e){return e==null?YG:function(){return this.querySelector(e)}}function XG(e){typeof e!="function"&&(e=p8(e));for(var t=this._groups,n=t.length,r=new Array(n),s=0;s<n;++s)for(var o=t[s],a=o.length,l=r[s]=new Array(a),c,u,d=0;d<a;++d)(c=o[d])&&(u=e.call(c,c.__data__,d,o))&&("__data__"in c&&(u.__data__=c.__data__),l[d]=u);return new Ii(r,this._parents)}function g8(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function ZG(){return[]}function QG(e){return e==null?ZG:function(){return this.querySelectorAll(e)}}function eW(e){return function(){return g8(e.apply(this,arguments))}}function tW(e){typeof e=="function"?e=eW(e):e=QG(e);for(var t=this._groups,n=t.length,r=[],s=[],o=0;o<n;++o)for(var a=t[o],l=a.length,c,u=0;u<l;++u)(c=a[u])&&(r.push(e.call(c,c.__data__,u,a)),s.push(c));return new Ii(r,s)}function nW(e){return function(){return this.matches(e)}}function m8(e){return function(t){return t.matches(e)}}var iW=Array.prototype.find;function rW(e){return function(){return iW.call(this.children,e)}}function sW(){return this.firstElementChild}function oW(e){return this.select(e==null?sW:rW(typeof e=="function"?e:m8(e)))}var aW=Array.prototype.filter;function lW(){return Array.from(this.children)}function cW(e){return function(){return aW.call(this.children,e)}}function uW(e){return this.selectAll(e==null?lW:cW(typeof e=="function"?e:m8(e)))}function dW(e){typeof e!="function"&&(e=nW(e));for(var t=this._groups,n=t.length,r=new Array(n),s=0;s<n;++s)for(var o=t[s],a=o.length,l=r[s]=[],c,u=0;u<a;++u)(c=o[u])&&e.call(c,c.__data__,u,o)&&l.push(c);return new Ii(r,this._parents)}function v8(e){return new Array(e.length)}function fW(){return new Ii(this._enter||this._groups.map(v8),this._parents)}function Mf(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Mf.prototype={constructor:Mf,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function hW(e){return function(){return e}}function pW(e,t,n,r,s,o){for(var a=0,l,c=t.length,u=o.length;a<u;++a)(l=t[a])?(l.__data__=o[a],r[a]=l):n[a]=new Mf(e,o[a]);for(;a<c;++a)(l=t[a])&&(s[a]=l)}function gW(e,t,n,r,s,o,a){var l,c,u=new Map,d=t.length,f=o.length,h=new Array(d),g;for(l=0;l<d;++l)(c=t[l])&&(h[l]=g=a.call(c,c.__data__,l,t)+"",u.has(g)?s[l]=c:u.set(g,c));for(l=0;l<f;++l)g=a.call(e,o[l],l,o)+"",(c=u.get(g))?(r[l]=c,c.__data__=o[l],u.delete(g)):n[l]=new Mf(e,o[l]);for(l=0;l<d;++l)(c=t[l])&&u.get(h[l])===c&&(s[l]=c)}function mW(e){return e.__data__}function vW(e,t){if(!arguments.length)return Array.from(this,mW);var n=t?gW:pW,r=this._parents,s=this._groups;typeof e!="function"&&(e=hW(e));for(var o=s.length,a=new Array(o),l=new Array(o),c=new Array(o),u=0;u<o;++u){var d=r[u],f=s[u],h=f.length,g=bW(e.call(d,d&&d.__data__,u,r)),b=g.length,y=l[u]=new Array(b),_=a[u]=new Array(b),w=c[u]=new Array(h);n(d,f,y,_,w,g,t);for(var x=0,C=0,S,A;x<b;++x)if(S=y[x]){for(x>=C&&(C=x+1);!(A=_[C])&&++C<b;);S._next=A||null}}return a=new Ii(a,r),a._enter=l,a._exit=c,a}function bW(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function yW(){return new Ii(this._exit||this._groups.map(v8),this._parents)}function _W(e,t,n){var r=this.enter(),s=this,o=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),n==null?o.remove():n(o),r&&s?r.merge(s).order():s}function wW(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,s=n.length,o=r.length,a=Math.min(s,o),l=new Array(s),c=0;c<a;++c)for(var u=n[c],d=r[c],f=u.length,h=l[c]=new Array(f),g,b=0;b<f;++b)(g=u[b]||d[b])&&(h[b]=g);for(;c<s;++c)l[c]=n[c];return new Ii(l,this._parents)}function CW(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],s=r.length-1,o=r[s],a;--s>=0;)(a=r[s])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function SW(e){e||(e=EW);function t(f,h){return f&&h?e(f.__data__,h.__data__):!f-!h}for(var n=this._groups,r=n.length,s=new Array(r),o=0;o<r;++o){for(var a=n[o],l=a.length,c=s[o]=new Array(l),u,d=0;d<l;++d)(u=a[d])&&(c[d]=u);c.sort(t)}return new Ii(s,this._parents).order()}function EW(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function xW(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function AW(){return Array.from(this)}function PW(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],s=0,o=r.length;s<o;++s){var a=r[s];if(a)return a}return null}function TW(){let e=0;for(const t of this)++e;return e}function OW(){return!this.node()}function NW(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var s=t[n],o=0,a=s.length,l;o<a;++o)(l=s[o])&&e.call(l,l.__data__,o,s);return this}function IW(e){return function(){this.removeAttribute(e)}}function RW(e){return function(){this.removeAttributeNS(e.space,e.local)}}function DW(e,t){return function(){this.setAttribute(e,t)}}function LW(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function kW(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function MW(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function FW(e,t){var n=f8(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?RW:IW:typeof t=="function"?n.local?MW:kW:n.local?LW:DW)(n,t))}function b8(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function BW(e){return function(){this.style.removeProperty(e)}}function jW(e,t,n){return function(){this.style.setProperty(e,t,n)}}function UW(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function $W(e,t,n){return arguments.length>1?this.each((t==null?BW:typeof t=="function"?UW:jW)(e,t,n==null?"":n)):VW(this.node(),e)}function VW(e,t){return e.style.getPropertyValue(t)||b8(e).getComputedStyle(e,null).getPropertyValue(t)}function zW(e){return function(){delete this[e]}}function qW(e,t){return function(){this[e]=t}}function HW(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function GW(e,t){return arguments.length>1?this.each((t==null?zW:typeof t=="function"?HW:qW)(e,t)):this.node()[e]}function y8(e){return e.trim().split(/^|\s+/)}function ev(e){return e.classList||new _8(e)}function _8(e){this._node=e,this._names=y8(e.getAttribute("class")||"")}_8.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function w8(e,t){for(var n=ev(e),r=-1,s=t.length;++r<s;)n.add(t[r])}function C8(e,t){for(var n=ev(e),r=-1,s=t.length;++r<s;)n.remove(t[r])}function WW(e){return function(){w8(this,e)}}function KW(e){return function(){C8(this,e)}}function JW(e,t){return function(){(t.apply(this,arguments)?w8:C8)(this,e)}}function YW(e,t){var n=y8(e+"");if(arguments.length<2){for(var r=ev(this.node()),s=-1,o=n.length;++s<o;)if(!r.contains(n[s]))return!1;return!0}return this.each((typeof t=="function"?JW:t?WW:KW)(n,t))}function XW(){this.textContent=""}function ZW(e){return function(){this.textContent=e}}function QW(e){return function(){var t=e.apply(this,arguments);this.textContent=t==null?"":t}}function eK(e){return arguments.length?this.each(e==null?XW:(typeof e=="function"?QW:ZW)(e)):this.node().textContent}function tK(){this.innerHTML=""}function nK(e){return function(){this.innerHTML=e}}function iK(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t==null?"":t}}function rK(e){return arguments.length?this.each(e==null?tK:(typeof e=="function"?iK:nK)(e)):this.node().innerHTML}function sK(){this.nextSibling&&this.parentNode.appendChild(this)}function oK(){return this.each(sK)}function aK(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function lK(){return this.each(aK)}function cK(e){var t=typeof e=="function"?e:h8(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function uK(){return null}function dK(e,t){var n=typeof e=="function"?e:h8(e),r=t==null?uK:typeof t=="function"?t:p8(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function fK(){var e=this.parentNode;e&&e.removeChild(this)}function hK(){return this.each(fK)}function pK(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function gK(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function mK(e){return this.select(e?gK:pK)}function vK(e){return arguments.length?this.property("__data__",e):this.node().__data__}function bK(e){return function(t){e.call(this,t,this.__data__)}}function yK(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function _K(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,s=t.length,o;n<s;++n)o=t[n],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):t[++r]=o;++r?t.length=r:delete this.__on}}}function wK(e,t,n){return function(){var r=this.__on,s,o=bK(t);if(r){for(var a=0,l=r.length;a<l;++a)if((s=r[a]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=o,s.options=n),s.value=t;return}}this.addEventListener(e.type,o,n),s={type:e.type,name:e.name,value:t,listener:o,options:n},r?r.push(s):this.__on=[s]}}function CK(e,t,n){var r=yK(e+""),s,o=r.length,a;if(arguments.length<2){var l=this.node().__on;if(l){for(var c=0,u=l.length,d;c<u;++c)for(s=0,d=l[c];s<o;++s)if((a=r[s]).type===d.type&&a.name===d.name)return d.value}return}for(l=t?wK:_K,s=0;s<o;++s)this.each(l(r[s],t,n));return this}function S8(e,t,n){var r=b8(e),s=r.CustomEvent;typeof s=="function"?s=new s(t,n):(s=r.document.createEvent("Event"),n?(s.initEvent(t,n.bubbles,n.cancelable),s.detail=n.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function SK(e,t){return function(){return S8(this,e,t)}}function EK(e,t){return function(){return S8(this,e,t.apply(this,arguments))}}function xK(e,t){return this.each((typeof t=="function"?EK:SK)(e,t))}function*AK(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],s=0,o=r.length,a;s<o;++s)(a=r[s])&&(yield a)}var PK=[null];function Ii(e,t){this._groups=e,this._parents=t}function TK(){return this}Ii.prototype={constructor:Ii,select:XG,selectAll:tW,selectChild:oW,selectChildren:uW,filter:dW,data:vW,enter:fW,exit:yW,join:_W,merge:wW,selection:TK,order:CW,sort:SW,call:xW,nodes:AW,node:PW,size:TW,empty:OW,each:NW,attr:FW,style:$W,property:GW,classed:YW,text:eK,html:rK,raise:oK,lower:lK,append:cK,insert:dK,remove:hK,clone:mK,datum:vK,on:CK,dispatch:xK,[Symbol.iterator]:AK};function E8(e){return typeof e=="string"?new Ii([document.querySelectorAll(e)],[document.documentElement]):new Ii([g8(e)],PK)}const OK={},NK={width:"28px",height:"28px",viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"};function IK(e,t){return I(),z("svg",NK,t[0]||(t[0]=[FT('<title>hmdr_icon_MD5_1</title><g id="页面-1" stroke="currentColor" class="level-color" stroke-width="1" fill="#fff" fill-rule="evenodd"><g id="3图标" transform="translate(-211.000000, -47.000000)"><g id="hmdr_icon_MD5_1" transform="translate(211.000000, 47.000000)"><rect id="矩形" fill="#FFFFFF" opacity="0" x="0" y="0" width="28" height="28"></rect><g transform="translate(2.500000, 2.500000)"><g id="hmdr_icon_yangben_1"><polyline id="路径备份" stroke-width="2" fill="#FFFFFF" points="2.65384615 22.1153846 2.65384615 0 15.0384615 0 20.3461538 5.30769231 20.3461538 22.1153846"></polyline><polygon id="路径-40" class="level-color" stroke="currentColor" fill="#192039" points="-5.8207883e-12 17.67 1.80269938 19.4726994 1.80269938 17.67"></polygon><g id="编组-44"><rect id="矩形备份" class="level-color" fill="#6E7590" x="0" y="9.73076923" width="23" height="7.96153846"></rect><polyline id="路径备份-2" stroke-width="2" points="20.3461538 5.30769231 15.0384615 5.30769231 15.0384615 -5.0701964e-14"></polyline><line id="路径-21备份" x1="2.65384615" y1="23" x2="20.3461538" y2="23" stroke-width="2" stroke-linecap="square"></line></g></g></g></g></g></g>',2)]))}const RK=ln(OK,[["render",IK]]),Fpe="",DK={name:"Legend",components:{NodeIcon:Jc,ForceGraphSvgIcon:Ho,legendLevelSvg:RK},mixins:[Or],inject:["levelList"],props:{showPoint:{type:Boolean,default:!0},history:{type:Object,default:()=>{}},moduleDetail:{type:Object,required:!0,default:()=>{}},margin:{type:String,required:!0,default:"0"},hasLevel:{type:Boolean,default:!0},showLevelCount:{type:Boolean,default:!1}},emits:["highLight"],data(){return{legendLevelPrefix:S0,filters:{point:[{name:"收藏",value:!0,prop:"collect"},{name:"备注",value:!0,prop:"label"},{name:"标签",value:!0,prop:"detail.tags"}]},fold:!1}},computed:{levelCount(){if(!this.showLevelCount)return;const e=this.history.dataNow.nodes,t={};return this.levelList.forEach(n=>{t[n.level]=0}),e.forEach(n=>{var s,o,a;const r=(a=(o=(s=n==null?void 0:n.detail)==null?void 0:s.info)==null?void 0:o.basic)==null?void 0:a.level;t[r]=t[r]+1}),t}},methods:{getViewBox(e,t){const n=[];switch(e){case"org":n.push(47,54);break;case"family":n.push(38,38);break;case"vul":n.push(38,38);break;default:n.push(28,28)}return t===3?n[0]:n[1]},highlightByRule(e,t,n,r){Fn({cId:"legendIcon-"+n,c:"legend图标点击-"+e.target.innerText});const s=e.currentTarget.getAttribute("class").indexOf("active")<0;E8(".legend-filter .out-box").classed("active",!1),s?(e.currentTarget.classList.add("active"),Xe(this,"highLight",t,n,r)):Xe(this,"highLight")},canHighlight(e){return this.history.dataNow.nodes.some(n=>n.type===e)},handleFold(){this.fold=!this.fold},svgName(e){return e={file_md5:"md5",incident:"report",internet:"ip"}[e]||e,e+"Svg"}}},LK={class:"container"},kK={key:0,class:"legend-filter node-type"},MK=["onClick"],FK={class:"name"},BK=["src"],jK={key:1,class:"legend-filter point"},UK=["onClick"],$K={key:2,class:"legend-filter level"},VK=["onClick"],zK={key:0,class:"legend-level-icon-dot"},qK={key:2};function HK(e,t,n,r,s,o){const a=We("NodeIcon"),l=We("legendLevelSvg"),c=We("force-graph-svg-icon");return I(),z("div",{ref:"legend-box",class:Y(["legend-box",{"legend-close":s.fold}])},[H("div",LK,[n.moduleDetail?(I(),z("div",kK,[(I(!0),z(qe,null,Tt(n.moduleDetail.nodes,u=>(I(),z("div",{key:u.name,class:Y(["out-box node-color-1",o.canHighlight(u.name)?"":"disabled"]),onClick:d=>o.highlightByRule(d,"equal","type",u.name)},[H("p",{class:"label",style:Ze({margin:n.margin})},[te(a,{"node-info":{type:u.name}},null,8,["node-info"]),H("span",FK,Ie(u.namec),1)],4)],10,MK))),128)),H("div",{class:"out-box node-color-1",onClick:t[0]||(t[0]=u=>o.highlightByRule(u,"equal","type","nodeType"))},[H("p",{class:"label",style:Ze({margin:n.margin})},[H("img",{src:e.imgPath["./public/d3svg1/node_type.svg"],alt:""},null,8,BK),t[2]||(t[2]=H("span",{class:"name"},"关系",-1))],4)])])):re("",!0),n.showPoint?(I(),z("div",jK,[(I(!0),z(qe,null,Tt(s.filters.point,u=>(I(),z("div",{key:u.prop,class:"out-box",onClick:d=>o.highlightByRule(d,"boolean",u.prop,u.value)},[H("p",{class:"label",style:Ze({margin:n.margin})},Ie(u.name),5)],8,UK))),128))])):re("",!0),n.hasLevel?(I(),z("div",$K,[(I(!0),z(qe,null,Tt(o.levelList,u=>(I(),z("div",{key:u.level,class:Y(["out-box",`${s.legendLevelPrefix}${u.className}`]),onClick:d=>o.highlightByRule(d,"equal","detail.info.basic.level",u.level)},[H("p",{class:"label",style:Ze({margin:n.margin})},[u.iconType==="dot"?(I(),z("span",zK)):(I(),Ee(l,{key:1,class:"legend-level-icon"})),Je(" "+Ie(u.levelName)+" ",1),n.showLevelCount?(I(),z("span",qK,"("+Ie(o.levelCount[u.level])+")",1)):re("",!0)],4)],10,VK))),128))])):re("",!0),H("div",{class:"fold-btn",onClick:t[1]||(t[1]=(...u)=>o.handleFold&&o.handleFold(...u))},[s.fold?(I(),Ee(c,{key:0,class:"button-img","icon-class":e.imgPath["./public/d3svg1/fold-right.svg"]},null,8,["icon-class"])):(I(),Ee(c,{key:1,class:"button-img","icon-class":e.imgPath["./public/d3svg1/fold-left.svg"]},null,8,["icon-class"]))])])],2)}const GK=ln(DK,[["render",HK],["__scopeId","data-v-5e1ba822"]]),Bpe="",WK={class:"node-control-panel"},KK={key:0},JK=["onClick"],YK=ln({__name:"NodeVisibleControl",props:{moduleDetail:{type:Object,default:()=>({})},history:{type:Object,default:()=>({})}},setup(e){const t=e,n=ne({}),r=()=>{var a,l;(l=(a=t.moduleDetail)==null?void 0:a.nodes)==null||l.forEach(c=>{if(o(c.name))return n.value[c.name]=!0,!0})},s=a=>{n.value[a]=!n.value[a];const l=t.history.dataNow.nodes.filter(c=>c.type===a);Xe(wt,"buttonClick",{nodes:l,api:{name:n.value[a]?"show_nodes":"hide_nodes"}})},o=a=>t.history.dataNow.nodes.some(l=>l.type===a);return ze(()=>t.history.dataNow.nodes.length,()=>{r()},{deep:!0,immediate:!0}),(a,l)=>(I(),z("div",WK,[l[0]||(l[0]=H("div",null," 是否可见 ",-1)),e.moduleDetail?(I(),z("div",KK,[(I(!0),z(qe,null,Tt(e.moduleDetail.nodes,c=>(I(),z("div",{key:c.name,class:Y({disabled:!o(c.name),"hidden-node":!n.value[c.name]}),onClick:u=>s(c.name)},[H("p",null,[te(Jc,{"node-info":{type:c.name}},null,8,["node-info"]),H("span",null,Ie(c.namec),1)])],10,JK))),128))])):re("",!0)]))}},[["__scopeId","data-v-17a26193"]]),Upe="",$pe="",Vpe="",zpe="",qpe="",Hpe="",Gpe="",Wpe="",Kpe="",Jpe="",Ype="",Xpe="";function x8(e){return e.toLowerCase().indexOf("ip:")===0&&(e=e.substr(3)),/^((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$/i.test(e)}function A8(e){return e.toLowerCase().indexOf("domain:")===0&&(e=e.substr(7)),/^[a-zA-Z0-9_][-a-zA-Z0-9_]{0,62}(\.[a-zA-Z0-9_][-a-zA-Z0-9_]{0,62})+\.?$/.test(e)}function P8(e){return e.toLowerCase().indexOf("url:")===0&&(e=e.substr(4)),/^https?:\/\/[^\s<]+[^<.,:;"')\]\s]$/g.test(e)}function tv(e){return/^([a-fA-F0-9]{32})$/.test(e)}function XK(e){return/^([a-fA-F0-9]{40})$/.test(e)}function ZK(e){return/^\w{32}$/.test(e)}function QK(e){return/^(cve|CVE)-[0-9]{4}-[0-9]{4,5}$/.test(e)}function eJ(e){return/^\w+(\.\w+)*@\w+(\.\w+)*(\.[a-z]{2,})$/.test(e)}const Zpe="",Qpe="",tJ={props:{nodesType:{type:Array,default:()=>[]},addType:{type:String,default:"diy"}},inject:["moduleDetail"],data(){var e=(t,n,r)=>{switch(n=n.toLowerCase().split(`
|
|
121
|
-
`),this.formInline.type){case"ip":n.map(s=>{x8(s)?r():r(new Error("请输入正确格式的内容"))});break;case"domain":n.map(s=>{A8(s)?r():r(new Error("请输入正确格式的内容"))});break;case"url":n.map(s=>{P8(s)?r():r(new Error("请输入正确格式的内容"))});break;case"md5":n.map(s=>{tv(s)?r():r(new Error("请输入正确格式的内容"))});break;case"report":n.map(s=>{!ZK(s)&&this.module.module.name==="md5graph"?r(new Error("请输入正确格式的内容")):r()});break;case"thumbprint_md5":n.map(s=>{tv(s)?r():r(new Error("请输入正确格式的内容"))});break;case"cert_https":n.map(s=>{XK(s)?r():r(new Error("请输入正确格式的内容"))});break;case"vul":n.map(s=>{QK(s)?r():r(new Error("请输入正确格式的内容"))});break;case"email":n.map(s=>{eJ(s)?r():r(new Error("请输入正确格式的内容"))});break;default:r();break}};return{dialogFormVisible:!1,connectNode:null,formInline:{inputValues:"",type:""},rules:{inputValues:[{validator:e,trigger:"blur"}]}}},computed:{module(){return this.moduleDetail()},disableSearch(){return this.formInline.inputValues===""||this.formInline.type===""||this.formInline.type==="nodeType"},disableSearchDiy(){return this.formInline.inputValues===""||this.formInline.type===""},title(){let e="";switch(this.addType){case"diy":e="新增节点";break;case"moreDiy":e="批量自主添加";break;default:e="检索添加"}return e},nodesTypeAll(){return this.addType==="diy"&&!this.connectNode?[...this.nodesType,{name:"nodeType",namec:"关系节点"}]:this.addType==="diy"&&this.connectNode.type==="nodeType"?this.nodesType:this.addType==="diy"&&this.connectNode.type!=="nodeType"?[{name:"nodeType",namec:"关系节点"}]:this.nodesType},placeholder(){var n;let e="",t="";switch((n=this.nodesType)==null||n.map(r=>{r.name===this.formInline.type&&(t=r.namec)}),this.formInline.type){case"":e="请选择节点类型";break;case"report":e=this.module.module.name==="md5graph"?"请输入"+t+",32位字母+数字":"请输入"+t;break;case"vul":e="例如:cve-xxxx-xxxxx";break;default:e="请输入"+t;break}return e}},methods:{show(e){this.connectNode=null,this.formInline.inputValues="",this.formInline.type="",this.dialogFormVisible=!0,this.connectNode=e},hide(){this.dialogFormVisible=!1,this.$refs.form.resetFields()},handleSearch(e="search"){this.$refs.form.validate(t=>{if(t){const n=this.formInline.inputValues.split(`
|
|
122
|
-
`);n.map(r=>{if(r!==""){const s={type:this.formInline.type,id:this.formInline.type==="nodeType"?r+new Date().getTime():r,name:r};Xe(this,"addNodes",{node:s,type:e,connectNode:this.connectNode})}}),setTimeout(()=>{this.$parent.$parent.handleTableSelect(n)},500),this.hide()}})}},emits:["addNodes"]},nJ={class:"dialog-footer"};function iJ(e,t,n,r,s,o){const a=yf,l=bf,c=Um,u=jo,d=jm,f=$o,h=qc;return I(),Ee(h,{title:o.title,modelValue:s.dialogFormVisible,"onUpdate:modelValue":t[4]||(t[4]=g=>s.dialogFormVisible=g),"append-to-body":"",class:"add-node-dialog el-dialog-graph"},{footer:ee(()=>[H("div",nJ,[te(f,{onClick:o.hide},{default:ee(()=>t[5]||(t[5]=[Je("取 消")])),_:1},8,["onClick"]),te(f,{class:"search-button",type:"primary",disabled:o.disableSearch,onClick:o.handleSearch},{default:ee(()=>t[6]||(t[6]=[Je(" 添加并拓线 ")])),_:1},8,["disabled","onClick"]),te(f,{class:"search-button",type:"primary",disabled:o.disableSearchDiy,onClick:t[3]||(t[3]=g=>o.handleSearch("diy"))},{default:ee(()=>t[7]||(t[7]=[Je(" 添加单节点 ")])),_:1},8,["disabled"])])]),default:ee(()=>[te(d,{ref:"form",inline:!0,rules:s.rules,model:s.formInline,class:"demo-form-inline"},{default:ee(()=>[te(c,{label:"类型",prop:"type"},{default:ee(()=>[te(l,{modelValue:s.formInline.type,"onUpdate:modelValue":t[0]||(t[0]=g=>s.formInline.type=g),class:"type-item"},{default:ee(()=>[(I(!0),z(qe,null,Tt(o.nodesTypeAll,g=>(I(),Ee(a,{key:g.value,label:g.namec,value:g.name},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),te(c,{label:"内容",prop:"inputValues"},{default:ee(()=>[n.addType==="moreDiy"?(I(),Ee(u,{key:0,modelValue:s.formInline.inputValues,"onUpdate:modelValue":t[1]||(t[1]=g=>s.formInline.inputValues=g),type:"textarea",class:"search-content value-item",rows:5,placeholder:o.placeholder},null,8,["modelValue","placeholder"])):(I(),Ee(u,{key:1,modelValue:s.formInline.inputValues,"onUpdate:modelValue":t[2]||(t[2]=g=>s.formInline.inputValues=g),class:"search-content value-item",rows:5,placeholder:o.placeholder},null,8,["modelValue","placeholder"]))]),_:1})]),_:1},8,["rules","model"])]),_:1},8,["title","modelValue"])}const rJ=ln(tJ,[["render",iJ],["__scopeId","data-v-0a421783"]]),ege="",tge="",sJ={props:{nodesType:{type:Array,default:()=>[]},addType:{type:String,default:"diy"}},data(){var e=(t,n,r)=>{switch(n=n.toLowerCase(),this.formInline.type){case"ip":x8(n)?r():r(new Error("请输入正确格式的内容"));break;case"domain":A8(n)?r():r(new Error("请输入正确格式的内容"));break;case"url":P8(n)?r():r(new Error("请输入正确格式的内容"));break;default:tv(n)?r():r(new Error("请输入正确格式的内容"));break}};return{dialogFormVisible:!1,connectNode:null,formInline:{inputValues:"",type:""},rules:{inputValues:[{validator:e,trigger:"blur"}]}}},computed:{disableSearch(){return this.formInline.inputValues===""||this.formInline.type===""},title(){return"添加关联"}},methods:{show(e){this.connectNode=null,this.formInline.inputValues="",this.formInline.type="",this.dialogFormVisible=!0,this.connectNode=e},hide(){this.dialogFormVisible=!1},handleSearch(e="search"){this.$refs.form.validate(t=>{if(t){const n=this.formInline.inputValues.toLowerCase(),r={type:this.formInline.type,id:n,name:n};Xe(this,"addNodes",{node:r,type:e,connectNode:this.connectNode}),this.hide()}})}},emits:["addNodes"]},oJ={class:"dialog-footer"};function aJ(e,t,n,r,s,o){const a=yf,l=bf,c=Um,u=jo,d=jm,f=$o,h=qc;return I(),Ee(h,{title:o.title,modelValue:s.dialogFormVisible,"onUpdate:modelValue":t[4]||(t[4]=g=>s.dialogFormVisible=g),class:"add-node-dialog el-dialog-graph"},{footer:ee(()=>[H("div",oJ,[te(f,{onClick:t[2]||(t[2]=g=>s.dialogFormVisible=!1)},{default:ee(()=>t[5]||(t[5]=[Je("取 消")])),_:1}),n.addType==="search"?(I(),Ee(f,{key:0,class:"search-button",type:"primary",disabled:o.disableSearch,size:"mini",onClick:o.handleSearch},{default:ee(()=>t[6]||(t[6]=[Je(" 查询 ")])),_:1},8,["disabled","onClick"])):(I(),Ee(f,{key:1,class:"search-button",type:"primary",disabled:o.disableSearch,size:"mini",onClick:t[3]||(t[3]=g=>o.handleSearch("diy"))},{default:ee(()=>t[7]||(t[7]=[Je(" 自定义添加 ")])),_:1},8,["disabled"]))])]),default:ee(()=>[te(d,{ref:"form",inline:!0,rules:s.rules,model:s.formInline,class:"demo-form-inline"},{default:ee(()=>[te(c,{label:"类型",prop:"type"},{default:ee(()=>[te(l,{modelValue:s.formInline.type,"onUpdate:modelValue":t[0]||(t[0]=g=>s.formInline.type=g),class:"type-item"},{default:ee(()=>[(I(!0),z(qe,null,Tt(n.nodesType,g=>(I(),Ee(a,{key:g.value,label:g.namec,value:g.name},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),te(c,{label:"内容",prop:"inputValues"},{default:ee(()=>[te(u,{modelValue:s.formInline.inputValues,"onUpdate:modelValue":t[1]||(t[1]=g=>s.formInline.inputValues=g),class:"search-content value-item",rows:5,placeholder:"请输入查询内容"},null,8,["modelValue"])]),_:1})]),_:1},8,["rules","model"])]),_:1},8,["title","modelValue"])}const lJ=ln(sJ,[["render",aJ],["__scopeId","data-v-baba7d6e"]]),nge="",cJ={name:"Intro",components:{QuestionFilled:B3},mixins:[],props:{config:{type:Object,default:()=>{}}},data(){return{ctrlKey:el()?"command":"Ctrl",shiftKey:el()?"⇧":"Shift",altKey:"Alt",system:["修改备注 - 即给该节点新增自定义备注","复制 - 复制节点名称","解除固定/固定节点 - 切换节点状态,控制节点自动排布或者位置不动","收藏/取消收藏 - 切换节点收藏状态,收藏后会有红色点在节点上方","显示/隐藏名称 - 节点下方显示/隐藏名称 ","显示/隐藏备注 - 节点下方显示/隐藏备注 ","单边子顶点聚合 - 将无孙子节点的子节点收起,形成一个聚合节点","聚合顶点释放 - 将已聚合的顶点释放"],rightList:["点击眼睛开关按钮可以显示隐藏该条数据","点击折叠按钮可以折叠下方所属列表","点击关联列表里面每一个子节点名字可以选中该节点","在右侧搜素框内可以搜索对应的子节点","点击右侧关联列表上方蓝色关系名称可以进行拓线操作"]}},computed:{keyCodes(){return el()?[{key:"双击节点,可拓线该节点所有关联数据",val:""},{key:"添加关系线",val:this.ctrlKey+" + 节点拖动",tips:"节点和关系节点间"},{key:"多选节点",val:this.shiftKey+" + 节点点击"},{key:"矩形多选",val:this.altKey+" + 鼠标圈定"},{key:"撤销",val:this.ctrlKey+" + z"},{key:"恢复",val:this.ctrlKey+" + "+this.shiftKey+" + z"}]:[{key:"双击节点,可拓线该节点所有关联数据",val:""},{key:"添加关系线",val:this.ctrlKey+" + 节点拖动",tips:"节点和关系节点间"},{key:"多选节点",val:this.shiftKey+" + 节点点击"},{key:"矩形多选",val:this.altKey+" + 鼠标圈定"},{key:"撤销",val:this.ctrlKey+" + z"},{key:"恢复",val:this.ctrlKey+" + y"}]}},watch:{config:{handler:function(e,t){this.addGoDetail()},deep:!0,immediate:!0}},created(){},mounted(){},updated(){},beforeUnmount(){},methods:{addGoDetail(){var e;(e=this.config)!=null&&e.jumpDetail&&this.system.push("详情页查看 - 打开对应的详情页查看详细内容")}}},uJ={class:"intro-container"},dJ={class:"key"},fJ={class:"val"};function hJ(e,t,n,r,s,o){const a=We("QuestionFilled"),l=Ft,c=fi;return I(),z("div",uJ,[t[0]||(t[0]=H("p",{class:"title"},"快捷操作",-1)),t[1]||(t[1]=H("p",{class:"line"},null,-1)),(I(!0),z(qe,null,Tt(o.keyCodes,(u,d)=>(I(),z("p",{key:d},[H("span",dJ,Ie(u.key),1),H("span",fJ,[Je(Ie(u.val)+" ",1),u.tips?(I(),Ee(c,{key:0,content:u.tips,"popper-class":"el-tooltip-gray",placement:"top"},{default:ee(()=>[te(l,null,{default:ee(()=>[te(a)]),_:1})]),_:2},1032,["content"])):re("",!0)])]))),128))])}const pJ=ln(cJ,[["render",hJ]]);var nv={exports:{}};(function(e,t){(function(n,r){r(t)})($s,function(n){var r;function s(){}s.prototype=Object.create(null);function o(){o.init.call(this)}o.EventEmitter=o,o.usingDomains=!1,o.prototype.domain=void 0,o.prototype._events=void 0,o.prototype._maxListeners=void 0,o.defaultMaxListeners=10,o.init=function(){this.domain=null,o.usingDomains&&r.active,(!this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=new s,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(p){if(typeof p!="number"||p<0||isNaN(p))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=p,this};function a(m){return m._maxListeners===void 0?o.defaultMaxListeners:m._maxListeners}o.prototype.getMaxListeners=function(){return a(this)};function l(m,p,v){if(p)m.call(v);else for(var E=m.length,T=w(m,E),D=0;D<E;++D)T[D].call(v)}function c(m,p,v,E){if(p)m.call(v,E);else for(var T=m.length,D=w(m,T),M=0;M<T;++M)D[M].call(v,E)}function u(m,p,v,E,T){if(p)m.call(v,E,T);else for(var D=m.length,M=w(m,D),ue=0;ue<D;++ue)M[ue].call(v,E,T)}function d(m,p,v,E,T,D){if(p)m.call(v,E,T,D);else for(var M=m.length,ue=w(m,M),xe=0;xe<M;++xe)ue[xe].call(v,E,T,D)}function f(m,p,v,E){if(p)m.apply(v,E);else for(var T=m.length,D=w(m,T),M=0;M<T;++M)D[M].apply(v,E)}o.prototype.emit=function(p){var v,E,T,D,M,ue,xe,Ue=p==="error";if(ue=this._events,ue)Ue=Ue&&ue.error==null;else if(!Ue)return!1;if(xe=this.domain,Ue){if(v=arguments[1],xe)v||(v=new Error('Uncaught, unspecified "error" event')),v.domainEmitter=this,v.domain=xe,v.domainThrown=!1,xe.emit("error",v);else{if(v instanceof Error)throw v;var Ge=new Error('Uncaught, unspecified "error" event. ('+v+")");throw Ge.context=v,Ge}return!1}if(E=ue[p],!E)return!1;var tt=typeof E=="function";switch(T=arguments.length,T){case 1:l(E,tt,this);break;case 2:c(E,tt,this,arguments[1]);break;case 3:u(E,tt,this,arguments[1],arguments[2]);break;case 4:d(E,tt,this,arguments[1],arguments[2],arguments[3]);break;default:for(D=new Array(T-1),M=1;M<T;M++)D[M-1]=arguments[M];f(E,tt,this,D)}return!0};function h(m,p,v,E){var T,D,M;if(typeof v!="function")throw new TypeError('"listener" argument must be a function');if(D=m._events,D?(D.newListener&&(m.emit("newListener",p,v.listener?v.listener:v),D=m._events),M=D[p]):(D=m._events=new s,m._eventsCount=0),!M)M=D[p]=v,++m._eventsCount;else if(typeof M=="function"?M=D[p]=E?[v,M]:[M,v]:E?M.unshift(v):M.push(v),!M.warned&&(T=a(m),T&&T>0&&M.length>T)){M.warned=!0;var ue=new Error("Possible EventEmitter memory leak detected. "+M.length+" "+p+" listeners added. Use emitter.setMaxListeners() to increase limit");ue.name="MaxListenersExceededWarning",ue.emitter=m,ue.type=p,ue.count=M.length,g(ue)}return m}function g(m){typeof console.warn=="function"?console.warn(m):console.log(m)}o.prototype.addListener=function(p,v){return h(this,p,v,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(p,v){return h(this,p,v,!0)};function b(m,p,v){var E=!1;function T(){m.removeListener(p,T),E||(E=!0,v.apply(m,arguments))}return T.listener=v,T}o.prototype.once=function(p,v){if(typeof v!="function")throw new TypeError('"listener" argument must be a function');return this.on(p,b(this,p,v)),this},o.prototype.prependOnceListener=function(p,v){if(typeof v!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(p,b(this,p,v)),this},o.prototype.removeListener=function(p,v){var E,T,D,M,ue;if(typeof v!="function")throw new TypeError('"listener" argument must be a function');if(T=this._events,!T)return this;if(E=T[p],!E)return this;if(E===v||E.listener&&E.listener===v)--this._eventsCount===0?this._events=new s:(delete T[p],T.removeListener&&this.emit("removeListener",p,E.listener||v));else if(typeof E!="function"){for(D=-1,M=E.length;M-- >0;)if(E[M]===v||E[M].listener&&E[M].listener===v){ue=E[M].listener,D=M;break}if(D<0)return this;if(E.length===1){if(E[0]=void 0,--this._eventsCount===0)return this._events=new s,this;delete T[p]}else _(E,D);T.removeListener&&this.emit("removeListener",p,ue||v)}return this},o.prototype.removeAllListeners=function(p){var v,E;if(E=this._events,!E)return this;if(!E.removeListener)return arguments.length===0?(this._events=new s,this._eventsCount=0):E[p]&&(--this._eventsCount===0?this._events=new s:delete E[p]),this;if(arguments.length===0){for(var T=Object.keys(E),D=0,M;D<T.length;++D)M=T[D],M!=="removeListener"&&this.removeAllListeners(M);return this.removeAllListeners("removeListener"),this._events=new s,this._eventsCount=0,this}if(v=E[p],typeof v=="function")this.removeListener(p,v);else if(v)do this.removeListener(p,v[v.length-1]);while(v[0]);return this},o.prototype.listeners=function(p){var v,E,T=this._events;return T?(v=T[p],v?typeof v=="function"?E=[v.listener||v]:E=x(v):E=[]):E=[],E},o.listenerCount=function(m,p){return typeof m.listenerCount=="function"?m.listenerCount(p):y.call(m,p)},o.prototype.listenerCount=y;function y(m){var p=this._events;if(p){var v=p[m];if(typeof v=="function")return 1;if(v)return v.length}return 0}o.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};function _(m,p){for(var v=p,E=v+1,T=m.length;E<T;v+=1,E+=1)m[v]=m[E];m.pop()}function w(m,p){for(var v=new Array(p);p--;)v[p]=m[p];return v}function x(m){for(var p=new Array(m.length),v=0;v<p.length;++v)p[v]=m[v].listener||m[v];return p}var C=typeof $s!="undefined"?$s:typeof self!="undefined"?self:typeof window!="undefined"?window:{},S=[],A=[],O=typeof Uint8Array!="undefined"?Uint8Array:Array,R=!1;function N(){R=!0;for(var m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,v=m.length;p<v;++p)S[p]=m[p],A[m.charCodeAt(p)]=p;A["-".charCodeAt(0)]=62,A["_".charCodeAt(0)]=63}function k(m){R||N();var p,v,E,T,D,M,ue=m.length;if(ue%4>0)throw new Error("Invalid string. Length must be a multiple of 4");D=m[ue-2]==="="?2:m[ue-1]==="="?1:0,M=new O(ue*3/4-D),E=D>0?ue-4:ue;var xe=0;for(p=0,v=0;p<E;p+=4,v+=3)T=A[m.charCodeAt(p)]<<18|A[m.charCodeAt(p+1)]<<12|A[m.charCodeAt(p+2)]<<6|A[m.charCodeAt(p+3)],M[xe++]=T>>16&255,M[xe++]=T>>8&255,M[xe++]=T&255;return D===2?(T=A[m.charCodeAt(p)]<<2|A[m.charCodeAt(p+1)]>>4,M[xe++]=T&255):D===1&&(T=A[m.charCodeAt(p)]<<10|A[m.charCodeAt(p+1)]<<4|A[m.charCodeAt(p+2)]>>2,M[xe++]=T>>8&255,M[xe++]=T&255),M}function L(m){return S[m>>18&63]+S[m>>12&63]+S[m>>6&63]+S[m&63]}function F(m,p,v){for(var E,T=[],D=p;D<v;D+=3)E=(m[D]<<16)+(m[D+1]<<8)+m[D+2],T.push(L(E));return T.join("")}function G(m){R||N();for(var p,v=m.length,E=v%3,T="",D=[],M=16383,ue=0,xe=v-E;ue<xe;ue+=M)D.push(F(m,ue,ue+M>xe?xe:ue+M));return E===1?(p=m[v-1],T+=S[p>>2],T+=S[p<<4&63],T+="=="):E===2&&(p=(m[v-2]<<8)+m[v-1],T+=S[p>>10],T+=S[p>>4&63],T+=S[p<<2&63],T+="="),D.push(T),D.join("")}function V(m,p,v,E,T){var D,M,ue=T*8-E-1,xe=(1<<ue)-1,Ue=xe>>1,Ge=-7,tt=v?T-1:0,Xt=v?-1:1,jt=m[p+tt];for(tt+=Xt,D=jt&(1<<-Ge)-1,jt>>=-Ge,Ge+=ue;Ge>0;D=D*256+m[p+tt],tt+=Xt,Ge-=8);for(M=D&(1<<-Ge)-1,D>>=-Ge,Ge+=E;Ge>0;M=M*256+m[p+tt],tt+=Xt,Ge-=8);if(D===0)D=1-Ue;else{if(D===xe)return M?NaN:(jt?-1:1)*(1/0);M=M+Math.pow(2,E),D=D-Ue}return(jt?-1:1)*M*Math.pow(2,D-E)}function ae(m,p,v,E,T,D){var M,ue,xe,Ue=D*8-T-1,Ge=(1<<Ue)-1,tt=Ge>>1,Xt=T===23?Math.pow(2,-24)-Math.pow(2,-77):0,jt=E?0:D-1,$r=E?1:-1,zu=p<0||p===0&&1/p<0?1:0;for(p=Math.abs(p),isNaN(p)||p===1/0?(ue=isNaN(p)?1:0,M=Ge):(M=Math.floor(Math.log(p)/Math.LN2),p*(xe=Math.pow(2,-M))<1&&(M--,xe*=2),M+tt>=1?p+=Xt/xe:p+=Xt*Math.pow(2,1-tt),p*xe>=2&&(M++,xe/=2),M+tt>=Ge?(ue=0,M=Ge):M+tt>=1?(ue=(p*xe-1)*Math.pow(2,T),M=M+tt):(ue=p*Math.pow(2,tt-1)*Math.pow(2,T),M=0));T>=8;m[v+jt]=ue&255,jt+=$r,ue/=256,T-=8);for(M=M<<T|ue,Ue+=T;Ue>0;m[v+jt]=M&255,jt+=$r,M/=256,Ue-=8);m[v+jt-$r]|=zu*128}var ce={}.toString,U=Array.isArray||function(m){return ce.call(m)=="[object Array]"},J=50;B.TYPED_ARRAY_SUPPORT=C.TYPED_ARRAY_SUPPORT!==void 0?C.TYPED_ARRAY_SUPPORT:!0;function Q(){return B.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function X(m,p){if(Q()<p)throw new RangeError("Invalid typed array length");return B.TYPED_ARRAY_SUPPORT?(m=new Uint8Array(p),m.__proto__=B.prototype):(m===null&&(m=new B(p)),m.length=p),m}function B(m,p,v){if(!B.TYPED_ARRAY_SUPPORT&&!(this instanceof B))return new B(m,p,v);if(typeof m=="number"){if(typeof p=="string")throw new Error("If encoding is specified then the first argument must be a string");return oe(this,m)}return _e(this,m,p,v)}B.poolSize=8192,B._augment=function(m){return m.__proto__=B.prototype,m};function _e(m,p,v,E){if(typeof p=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&p instanceof ArrayBuffer?q(m,p,v,E):typeof p=="string"?Ce(m,p,v):Z(m,p)}B.from=function(m,p,v){return _e(null,m,p,v)},B.TYPED_ARRAY_SUPPORT&&(B.prototype.__proto__=Uint8Array.prototype,B.__proto__=Uint8Array);function he(m){if(typeof m!="number")throw new TypeError('"size" argument must be a number');if(m<0)throw new RangeError('"size" argument must not be negative')}function ie(m,p,v,E){return he(p),p<=0?X(m,p):v!==void 0?typeof E=="string"?X(m,p).fill(v,E):X(m,p).fill(v):X(m,p)}B.alloc=function(m,p,v){return ie(null,m,p,v)};function oe(m,p){if(he(p),m=X(m,p<0?0:ve(p)|0),!B.TYPED_ARRAY_SUPPORT)for(var v=0;v<p;++v)m[v]=0;return m}B.allocUnsafe=function(m){return oe(null,m)},B.allocUnsafeSlow=function(m){return oe(null,m)};function Ce(m,p,v){if((typeof v!="string"||v==="")&&(v="utf8"),!B.isEncoding(v))throw new TypeError('"encoding" must be a valid string encoding');var E=Le(p,v)|0;m=X(m,E);var T=m.write(p,v);return T!==E&&(m=m.slice(0,T)),m}function me(m,p){var v=p.length<0?0:ve(p.length)|0;m=X(m,v);for(var E=0;E<v;E+=1)m[E]=p[E]&255;return m}function q(m,p,v,E){if(p.byteLength,v<0||p.byteLength<v)throw new RangeError("'offset' is out of bounds");if(p.byteLength<v+(E||0))throw new RangeError("'length' is out of bounds");return v===void 0&&E===void 0?p=new Uint8Array(p):E===void 0?p=new Uint8Array(p,v):p=new Uint8Array(p,v,E),B.TYPED_ARRAY_SUPPORT?(m=p,m.__proto__=B.prototype):m=me(m,p),m}function Z(m,p){if(Oe(p)){var v=ve(p.length)|0;return m=X(m,v),m.length===0||p.copy(m,0,0,v),m}if(p){if(typeof ArrayBuffer!="undefined"&&p.buffer instanceof ArrayBuffer||"length"in p)return typeof p.length!="number"||_p(p.length)?X(m,0):me(m,p);if(p.type==="Buffer"&&U(p.data))return me(m,p.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function ve(m){if(m>=Q())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Q().toString(16)+" bytes");return m|0}B.isBuffer=wp;function Oe(m){return!!(m!=null&&m._isBuffer)}B.compare=function(p,v){if(!Oe(p)||!Oe(v))throw new TypeError("Arguments must be Buffers");if(p===v)return 0;for(var E=p.length,T=v.length,D=0,M=Math.min(E,T);D<M;++D)if(p[D]!==v[D]){E=p[D],T=v[D];break}return E<T?-1:T<E?1:0},B.isEncoding=function(p){switch(String(p).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},B.concat=function(p,v){if(!U(p))throw new TypeError('"list" argument must be an Array of Buffers');if(p.length===0)return B.alloc(0);var E;if(v===void 0)for(v=0,E=0;E<p.length;++E)v+=p[E].length;var T=B.allocUnsafe(v),D=0;for(E=0;E<p.length;++E){var M=p[E];if(!Oe(M))throw new TypeError('"list" argument must be an Array of Buffers');M.copy(T,D),D+=M.length}return T};function Le(m,p){if(Oe(m))return m.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(m)||m instanceof ArrayBuffer))return m.byteLength;typeof m!="string"&&(m=""+m);var v=m.length;if(v===0)return 0;for(var E=!1;;)switch(p){case"ascii":case"latin1":case"binary":return v;case"utf8":case"utf-8":case void 0:return mn(m).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v*2;case"hex":return v>>>1;case"base64":return yp(m).length;default:if(E)return mn(m).length;p=(""+p).toLowerCase(),E=!0}}B.byteLength=Le;function Ke(m,p,v){var E=!1;if((p===void 0||p<0)&&(p=0),p>this.length||((v===void 0||v>this.length)&&(v=this.length),v<=0)||(v>>>=0,p>>>=0,v<=p))return"";for(m||(m="utf8");;)switch(m){case"hex":return Ct(this,p,v);case"utf8":case"utf-8":return $e(this,p,v);case"ascii":return ke(this,p,v);case"latin1":case"binary":return Ye(this,p,v);case"base64":return be(this,p,v);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return mt(this,p,v);default:if(E)throw new TypeError("Unknown encoding: "+m);m=(m+"").toLowerCase(),E=!0}}B.prototype._isBuffer=!0;function j(m,p,v){var E=m[p];m[p]=m[v],m[v]=E}B.prototype.swap16=function(){var p=this.length;if(p%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var v=0;v<p;v+=2)j(this,v,v+1);return this},B.prototype.swap32=function(){var p=this.length;if(p%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var v=0;v<p;v+=4)j(this,v,v+3),j(this,v+1,v+2);return this},B.prototype.swap64=function(){var p=this.length;if(p%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var v=0;v<p;v+=8)j(this,v,v+7),j(this,v+1,v+6),j(this,v+2,v+5),j(this,v+3,v+4);return this},B.prototype.toString=function(){var p=this.length|0;return p===0?"":arguments.length===0?$e(this,0,p):Ke.apply(this,arguments)},B.prototype.equals=function(p){if(!Oe(p))throw new TypeError("Argument must be a Buffer");return this===p?!0:B.compare(this,p)===0},B.prototype.inspect=function(){var p="",v=J;return this.length>0&&(p=this.toString("hex",0,v).match(/.{2}/g).join(" "),this.length>v&&(p+=" ... ")),"<Buffer "+p+">"},B.prototype.compare=function(p,v,E,T,D){if(!Oe(p))throw new TypeError("Argument must be a Buffer");if(v===void 0&&(v=0),E===void 0&&(E=p?p.length:0),T===void 0&&(T=0),D===void 0&&(D=this.length),v<0||E>p.length||T<0||D>this.length)throw new RangeError("out of range index");if(T>=D&&v>=E)return 0;if(T>=D)return-1;if(v>=E)return 1;if(v>>>=0,E>>>=0,T>>>=0,D>>>=0,this===p)return 0;for(var M=D-T,ue=E-v,xe=Math.min(M,ue),Ue=this.slice(T,D),Ge=p.slice(v,E),tt=0;tt<xe;++tt)if(Ue[tt]!==Ge[tt]){M=Ue[tt],ue=Ge[tt];break}return M<ue?-1:ue<M?1:0};function K(m,p,v,E,T){if(m.length===0)return-1;if(typeof v=="string"?(E=v,v=0):v>2147483647?v=2147483647:v<-2147483648&&(v=-2147483648),v=+v,isNaN(v)&&(v=T?0:m.length-1),v<0&&(v=m.length+v),v>=m.length){if(T)return-1;v=m.length-1}else if(v<0)if(T)v=0;else return-1;if(typeof p=="string"&&(p=B.from(p,E)),Oe(p))return p.length===0?-1:se(m,p,v,E,T);if(typeof p=="number")return p=p&255,B.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?T?Uint8Array.prototype.indexOf.call(m,p,v):Uint8Array.prototype.lastIndexOf.call(m,p,v):se(m,[p],v,E,T);throw new TypeError("val must be string, number or Buffer")}function se(m,p,v,E,T){var D=1,M=m.length,ue=p.length;if(E!==void 0&&(E=String(E).toLowerCase(),E==="ucs2"||E==="ucs-2"||E==="utf16le"||E==="utf-16le")){if(m.length<2||p.length<2)return-1;D=2,M/=2,ue/=2,v/=2}function xe(jt,$r){return D===1?jt[$r]:jt.readUInt16BE($r*D)}var Ue;if(T){var Ge=-1;for(Ue=v;Ue<M;Ue++)if(xe(m,Ue)===xe(p,Ge===-1?0:Ue-Ge)){if(Ge===-1&&(Ge=Ue),Ue-Ge+1===ue)return Ge*D}else Ge!==-1&&(Ue-=Ue-Ge),Ge=-1}else for(v+ue>M&&(v=M-ue),Ue=v;Ue>=0;Ue--){for(var tt=!0,Xt=0;Xt<ue;Xt++)if(xe(m,Ue+Xt)!==xe(p,Xt)){tt=!1;break}if(tt)return Ue}return-1}B.prototype.includes=function(p,v,E){return this.indexOf(p,v,E)!==-1},B.prototype.indexOf=function(p,v,E){return K(this,p,v,E,!0)},B.prototype.lastIndexOf=function(p,v,E){return K(this,p,v,E,!1)};function Ae(m,p,v,E){v=Number(v)||0;var T=m.length-v;E?(E=Number(E),E>T&&(E=T)):E=T;var D=p.length;if(D%2!==0)throw new TypeError("Invalid hex string");E>D/2&&(E=D/2);for(var M=0;M<E;++M){var ue=parseInt(p.substr(M*2,2),16);if(isNaN(ue))return M;m[v+M]=ue}return M}function de(m,p,v,E){return Bl(mn(p,m.length-v),m,v,E)}function fe(m,p,v,E){return Bl(Fl(p),m,v,E)}function Se(m,p,v,E){return fe(m,p,v,E)}function Pe(m,p,v,E){return Bl(yp(p),m,v,E)}function Ne(m,p,v,E){return Bl(hy(p,m.length-v),m,v,E)}B.prototype.write=function(p,v,E,T){if(v===void 0)T="utf8",E=this.length,v=0;else if(E===void 0&&typeof v=="string")T=v,E=this.length,v=0;else if(isFinite(v))v=v|0,isFinite(E)?(E=E|0,T===void 0&&(T="utf8")):(T=E,E=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var D=this.length-v;if((E===void 0||E>D)&&(E=D),p.length>0&&(E<0||v<0)||v>this.length)throw new RangeError("Attempt to write outside buffer bounds");T||(T="utf8");for(var M=!1;;)switch(T){case"hex":return Ae(this,p,v,E);case"utf8":case"utf-8":return de(this,p,v,E);case"ascii":return fe(this,p,v,E);case"latin1":case"binary":return Se(this,p,v,E);case"base64":return Pe(this,p,v,E);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ne(this,p,v,E);default:if(M)throw new TypeError("Unknown encoding: "+T);T=(""+T).toLowerCase(),M=!0}},B.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function be(m,p,v){return p===0&&v===m.length?G(m):G(m.slice(p,v))}function $e(m,p,v){v=Math.min(m.length,v);for(var E=[],T=p;T<v;){var D=m[T],M=null,ue=D>239?4:D>223?3:D>191?2:1;if(T+ue<=v){var xe,Ue,Ge,tt;switch(ue){case 1:D<128&&(M=D);break;case 2:xe=m[T+1],(xe&192)===128&&(tt=(D&31)<<6|xe&63,tt>127&&(M=tt));break;case 3:xe=m[T+1],Ue=m[T+2],(xe&192)===128&&(Ue&192)===128&&(tt=(D&15)<<12|(xe&63)<<6|Ue&63,tt>2047&&(tt<55296||tt>57343)&&(M=tt));break;case 4:xe=m[T+1],Ue=m[T+2],Ge=m[T+3],(xe&192)===128&&(Ue&192)===128&&(Ge&192)===128&&(tt=(D&15)<<18|(xe&63)<<12|(Ue&63)<<6|Ge&63,tt>65535&&tt<1114112&&(M=tt))}}M===null?(M=65533,ue=1):M>65535&&(M-=65536,E.push(M>>>10&1023|55296),M=56320|M&1023),E.push(M),T+=ue}return le(E)}var pe=4096;function le(m){var p=m.length;if(p<=pe)return String.fromCharCode.apply(String,m);for(var v="",E=0;E<p;)v+=String.fromCharCode.apply(String,m.slice(E,E+=pe));return v}function ke(m,p,v){var E="";v=Math.min(m.length,v);for(var T=p;T<v;++T)E+=String.fromCharCode(m[T]&127);return E}function Ye(m,p,v){var E="";v=Math.min(m.length,v);for(var T=p;T<v;++T)E+=String.fromCharCode(m[T]);return E}function Ct(m,p,v){var E=m.length;(!p||p<0)&&(p=0),(!v||v<0||v>E)&&(v=E);for(var T="",D=p;D<v;++D)T+=_s(m[D]);return T}function mt(m,p,v){for(var E=m.slice(p,v),T="",D=0;D<E.length;D+=2)T+=String.fromCharCode(E[D]+E[D+1]*256);return T}B.prototype.slice=function(p,v){var E=this.length;p=~~p,v=v===void 0?E:~~v,p<0?(p+=E,p<0&&(p=0)):p>E&&(p=E),v<0?(v+=E,v<0&&(v=0)):v>E&&(v=E),v<p&&(v=p);var T;if(B.TYPED_ARRAY_SUPPORT)T=this.subarray(p,v),T.__proto__=B.prototype;else{var D=v-p;T=new B(D,void 0);for(var M=0;M<D;++M)T[M]=this[M+p]}return T};function Nt(m,p,v){if(m%1!==0||m<0)throw new RangeError("offset is not uint");if(m+p>v)throw new RangeError("Trying to access beyond buffer length")}B.prototype.readUIntLE=function(p,v,E){p=p|0,v=v|0,E||Nt(p,v,this.length);for(var T=this[p],D=1,M=0;++M<v&&(D*=256);)T+=this[p+M]*D;return T},B.prototype.readUIntBE=function(p,v,E){p=p|0,v=v|0,E||Nt(p,v,this.length);for(var T=this[p+--v],D=1;v>0&&(D*=256);)T+=this[p+--v]*D;return T},B.prototype.readUInt8=function(p,v){return v||Nt(p,1,this.length),this[p]},B.prototype.readUInt16LE=function(p,v){return v||Nt(p,2,this.length),this[p]|this[p+1]<<8},B.prototype.readUInt16BE=function(p,v){return v||Nt(p,2,this.length),this[p]<<8|this[p+1]},B.prototype.readUInt32LE=function(p,v){return v||Nt(p,4,this.length),(this[p]|this[p+1]<<8|this[p+2]<<16)+this[p+3]*16777216},B.prototype.readUInt32BE=function(p,v){return v||Nt(p,4,this.length),this[p]*16777216+(this[p+1]<<16|this[p+2]<<8|this[p+3])},B.prototype.readIntLE=function(p,v,E){p=p|0,v=v|0,E||Nt(p,v,this.length);for(var T=this[p],D=1,M=0;++M<v&&(D*=256);)T+=this[p+M]*D;return D*=128,T>=D&&(T-=Math.pow(2,8*v)),T},B.prototype.readIntBE=function(p,v,E){p=p|0,v=v|0,E||Nt(p,v,this.length);for(var T=v,D=1,M=this[p+--T];T>0&&(D*=256);)M+=this[p+--T]*D;return D*=128,M>=D&&(M-=Math.pow(2,8*v)),M},B.prototype.readInt8=function(p,v){return v||Nt(p,1,this.length),this[p]&128?(255-this[p]+1)*-1:this[p]},B.prototype.readInt16LE=function(p,v){v||Nt(p,2,this.length);var E=this[p]|this[p+1]<<8;return E&32768?E|4294901760:E},B.prototype.readInt16BE=function(p,v){v||Nt(p,2,this.length);var E=this[p+1]|this[p]<<8;return E&32768?E|4294901760:E},B.prototype.readInt32LE=function(p,v){return v||Nt(p,4,this.length),this[p]|this[p+1]<<8|this[p+2]<<16|this[p+3]<<24},B.prototype.readInt32BE=function(p,v){return v||Nt(p,4,this.length),this[p]<<24|this[p+1]<<16|this[p+2]<<8|this[p+3]},B.prototype.readFloatLE=function(p,v){return v||Nt(p,4,this.length),V(this,p,!0,23,4)},B.prototype.readFloatBE=function(p,v){return v||Nt(p,4,this.length),V(this,p,!1,23,4)},B.prototype.readDoubleLE=function(p,v){return v||Nt(p,8,this.length),V(this,p,!0,52,8)},B.prototype.readDoubleBE=function(p,v){return v||Nt(p,8,this.length),V(this,p,!1,52,8)};function De(m,p,v,E,T,D){if(!Oe(m))throw new TypeError('"buffer" argument must be a Buffer instance');if(p>T||p<D)throw new RangeError('"value" argument is out of bounds');if(v+E>m.length)throw new RangeError("Index out of range")}B.prototype.writeUIntLE=function(p,v,E,T){if(p=+p,v=v|0,E=E|0,!T){var D=Math.pow(2,8*E)-1;De(this,p,v,E,D,0)}var M=1,ue=0;for(this[v]=p&255;++ue<E&&(M*=256);)this[v+ue]=p/M&255;return v+E},B.prototype.writeUIntBE=function(p,v,E,T){if(p=+p,v=v|0,E=E|0,!T){var D=Math.pow(2,8*E)-1;De(this,p,v,E,D,0)}var M=E-1,ue=1;for(this[v+M]=p&255;--M>=0&&(ue*=256);)this[v+M]=p/ue&255;return v+E},B.prototype.writeUInt8=function(p,v,E){return p=+p,v=v|0,E||De(this,p,v,1,255,0),B.TYPED_ARRAY_SUPPORT||(p=Math.floor(p)),this[v]=p&255,v+1};function He(m,p,v,E){p<0&&(p=65535+p+1);for(var T=0,D=Math.min(m.length-v,2);T<D;++T)m[v+T]=(p&255<<8*(E?T:1-T))>>>(E?T:1-T)*8}B.prototype.writeUInt16LE=function(p,v,E){return p=+p,v=v|0,E||De(this,p,v,2,65535,0),B.TYPED_ARRAY_SUPPORT?(this[v]=p&255,this[v+1]=p>>>8):He(this,p,v,!0),v+2},B.prototype.writeUInt16BE=function(p,v,E){return p=+p,v=v|0,E||De(this,p,v,2,65535,0),B.TYPED_ARRAY_SUPPORT?(this[v]=p>>>8,this[v+1]=p&255):He(this,p,v,!1),v+2};function et(m,p,v,E){p<0&&(p=4294967295+p+1);for(var T=0,D=Math.min(m.length-v,4);T<D;++T)m[v+T]=p>>>(E?T:3-T)*8&255}B.prototype.writeUInt32LE=function(p,v,E){return p=+p,v=v|0,E||De(this,p,v,4,4294967295,0),B.TYPED_ARRAY_SUPPORT?(this[v+3]=p>>>24,this[v+2]=p>>>16,this[v+1]=p>>>8,this[v]=p&255):et(this,p,v,!0),v+4},B.prototype.writeUInt32BE=function(p,v,E){return p=+p,v=v|0,E||De(this,p,v,4,4294967295,0),B.TYPED_ARRAY_SUPPORT?(this[v]=p>>>24,this[v+1]=p>>>16,this[v+2]=p>>>8,this[v+3]=p&255):et(this,p,v,!1),v+4},B.prototype.writeIntLE=function(p,v,E,T){if(p=+p,v=v|0,!T){var D=Math.pow(2,8*E-1);De(this,p,v,E,D-1,-D)}var M=0,ue=1,xe=0;for(this[v]=p&255;++M<E&&(ue*=256);)p<0&&xe===0&&this[v+M-1]!==0&&(xe=1),this[v+M]=(p/ue>>0)-xe&255;return v+E},B.prototype.writeIntBE=function(p,v,E,T){if(p=+p,v=v|0,!T){var D=Math.pow(2,8*E-1);De(this,p,v,E,D-1,-D)}var M=E-1,ue=1,xe=0;for(this[v+M]=p&255;--M>=0&&(ue*=256);)p<0&&xe===0&&this[v+M+1]!==0&&(xe=1),this[v+M]=(p/ue>>0)-xe&255;return v+E},B.prototype.writeInt8=function(p,v,E){return p=+p,v=v|0,E||De(this,p,v,1,127,-128),B.TYPED_ARRAY_SUPPORT||(p=Math.floor(p)),p<0&&(p=255+p+1),this[v]=p&255,v+1},B.prototype.writeInt16LE=function(p,v,E){return p=+p,v=v|0,E||De(this,p,v,2,32767,-32768),B.TYPED_ARRAY_SUPPORT?(this[v]=p&255,this[v+1]=p>>>8):He(this,p,v,!0),v+2},B.prototype.writeInt16BE=function(p,v,E){return p=+p,v=v|0,E||De(this,p,v,2,32767,-32768),B.TYPED_ARRAY_SUPPORT?(this[v]=p>>>8,this[v+1]=p&255):He(this,p,v,!1),v+2},B.prototype.writeInt32LE=function(p,v,E){return p=+p,v=v|0,E||De(this,p,v,4,2147483647,-2147483648),B.TYPED_ARRAY_SUPPORT?(this[v]=p&255,this[v+1]=p>>>8,this[v+2]=p>>>16,this[v+3]=p>>>24):et(this,p,v,!0),v+4},B.prototype.writeInt32BE=function(p,v,E){return p=+p,v=v|0,E||De(this,p,v,4,2147483647,-2147483648),p<0&&(p=4294967295+p+1),B.TYPED_ARRAY_SUPPORT?(this[v]=p>>>24,this[v+1]=p>>>16,this[v+2]=p>>>8,this[v+3]=p&255):et(this,p,v,!1),v+4};function ot(m,p,v,E,T,D){if(v+E>m.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("Index out of range")}function St(m,p,v,E,T){return T||ot(m,p,v,4),ae(m,p,v,E,23,4),v+4}B.prototype.writeFloatLE=function(p,v,E){return St(this,p,v,!0,E)},B.prototype.writeFloatBE=function(p,v,E){return St(this,p,v,!1,E)};function vt(m,p,v,E,T){return T||ot(m,p,v,8),ae(m,p,v,E,52,8),v+8}B.prototype.writeDoubleLE=function(p,v,E){return vt(this,p,v,!0,E)},B.prototype.writeDoubleBE=function(p,v,E){return vt(this,p,v,!1,E)},B.prototype.copy=function(p,v,E,T){if(E||(E=0),!T&&T!==0&&(T=this.length),v>=p.length&&(v=p.length),v||(v=0),T>0&&T<E&&(T=E),T===E||p.length===0||this.length===0)return 0;if(v<0)throw new RangeError("targetStart out of bounds");if(E<0||E>=this.length)throw new RangeError("sourceStart out of bounds");if(T<0)throw new RangeError("sourceEnd out of bounds");T>this.length&&(T=this.length),p.length-v<T-E&&(T=p.length-v+E);var D=T-E,M;if(this===p&&E<v&&v<T)for(M=D-1;M>=0;--M)p[M+v]=this[M+E];else if(D<1e3||!B.TYPED_ARRAY_SUPPORT)for(M=0;M<D;++M)p[M+v]=this[M+E];else Uint8Array.prototype.set.call(p,this.subarray(E,E+D),v);return D},B.prototype.fill=function(p,v,E,T){if(typeof p=="string"){if(typeof v=="string"?(T=v,v=0,E=this.length):typeof E=="string"&&(T=E,E=this.length),p.length===1){var D=p.charCodeAt(0);D<256&&(p=D)}if(T!==void 0&&typeof T!="string")throw new TypeError("encoding must be a string");if(typeof T=="string"&&!B.isEncoding(T))throw new TypeError("Unknown encoding: "+T)}else typeof p=="number"&&(p=p&255);if(v<0||this.length<v||this.length<E)throw new RangeError("Out of range index");if(E<=v)return this;v=v>>>0,E=E===void 0?this.length:E>>>0,p||(p=0);var M;if(typeof p=="number")for(M=v;M<E;++M)this[M]=p;else{var ue=Oe(p)?p:mn(new B(p,T).toString()),xe=ue.length;for(M=0;M<E-v;++M)this[M+v]=ue[M%xe]}return this};var qt=/[^+\/0-9A-Za-z-_]/g;function Xn(m){if(m=bi(m).replace(qt,""),m.length<2)return"";for(;m.length%4!==0;)m=m+"=";return m}function bi(m){return m.trim?m.trim():m.replace(/^\s+|\s+$/g,"")}function _s(m){return m<16?"0"+m.toString(16):m.toString(16)}function mn(m,p){p=p||1/0;for(var v,E=m.length,T=null,D=[],M=0;M<E;++M){if(v=m.charCodeAt(M),v>55295&&v<57344){if(!T){if(v>56319){(p-=3)>-1&&D.push(239,191,189);continue}else if(M+1===E){(p-=3)>-1&&D.push(239,191,189);continue}T=v;continue}if(v<56320){(p-=3)>-1&&D.push(239,191,189),T=v;continue}v=(T-55296<<10|v-56320)+65536}else T&&(p-=3)>-1&&D.push(239,191,189);if(T=null,v<128){if((p-=1)<0)break;D.push(v)}else if(v<2048){if((p-=2)<0)break;D.push(v>>6|192,v&63|128)}else if(v<65536){if((p-=3)<0)break;D.push(v>>12|224,v>>6&63|128,v&63|128)}else if(v<1114112){if((p-=4)<0)break;D.push(v>>18|240,v>>12&63|128,v>>6&63|128,v&63|128)}else throw new Error("Invalid code point")}return D}function Fl(m){for(var p=[],v=0;v<m.length;++v)p.push(m.charCodeAt(v)&255);return p}function hy(m,p){for(var v,E,T,D=[],M=0;M<m.length&&!((p-=2)<0);++M)v=m.charCodeAt(M),E=v>>8,T=v%256,D.push(T),D.push(E);return D}function yp(m){return k(Xn(m))}function Bl(m,p,v,E){for(var T=0;T<E&&!(T+v>=p.length||T>=m.length);++T)p[T+v]=m[T];return T}function _p(m){return m!==m}function wp(m){return m!=null&&(!!m._isBuffer||jl(m)||py(m))}function jl(m){return!!m.constructor&&typeof m.constructor.isBuffer=="function"&&m.constructor.isBuffer(m)}function py(m){return typeof m.readFloatLE=="function"&&typeof m.slice=="function"&&jl(m.slice(0,0))}function Cp(){throw new Error("setTimeout has not been defined")}function Sp(){throw new Error("clearTimeout has not been defined")}var cr=Cp,jr=Sp;typeof C.setTimeout=="function"&&(cr=setTimeout),typeof C.clearTimeout=="function"&&(jr=clearTimeout);function Ep(m){if(cr===setTimeout)return setTimeout(m,0);if((cr===Cp||!cr)&&setTimeout)return cr=setTimeout,setTimeout(m,0);try{return cr(m,0)}catch(p){try{return cr.call(null,m,0)}catch(v){return cr.call(this,m,0)}}}function gy(m){if(jr===clearTimeout)return clearTimeout(m);if((jr===Sp||!jr)&&clearTimeout)return jr=clearTimeout,clearTimeout(m);try{return jr(m)}catch(p){try{return jr.call(null,m)}catch(v){return jr.call(this,m)}}}var ur=[],ge=!1,Me,bt=-1;function $t(){!ge||!Me||(ge=!1,Me.length?ur=Me.concat(ur):bt=-1,ur.length&&dr())}function dr(){if(!ge){var m=Ep($t);ge=!0;for(var p=ur.length;p;){for(Me=ur,ur=[];++bt<p;)Me&&Me[bt].run();bt=-1,p=ur.length}Me=null,ge=!1,gy(m)}}function vn(m){var p=new Array(arguments.length-1);if(arguments.length>1)for(var v=1;v<arguments.length;v++)p[v-1]=arguments[v];ur.push(new ua(m,p)),ur.length===1&&!ge&&Ep(dr)}function ua(m,p){this.fun=m,this.array=p}ua.prototype.run=function(){this.fun.apply(null,this.array)};var yi=C.performance||{};yi.now||yi.mozNow||yi.msNow||yi.oNow||yi.webkitNow;var ai;typeof Object.create=="function"?ai=function(p,v){p.super_=v,p.prototype=Object.create(v.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}})}:ai=function(p,v){p.super_=v;var E=function(){};E.prototype=v.prototype,p.prototype=new E,p.prototype.constructor=p};var ws=ai,Due=/%[sdj%]/g;function Lue(m){if(!_y(m)){for(var p=[],v=0;v<arguments.length;v++)p.push(oo(arguments[v]));return p.join(" ")}for(var v=1,E=arguments,T=E.length,D=String(m).replace(Due,function(ue){if(ue==="%%")return"%";if(v>=T)return ue;switch(ue){case"%s":return String(E[v++]);case"%d":return Number(E[v++]);case"%j":try{return JSON.stringify(E[v++])}catch(xe){return"[Circular]"}default:return ue}}),M=E[v];v<T;M=E[++v])yy(M)||!ju(M)?D+=" "+M:D+=" "+oo(M);return D}function E7(m,p){if(ao(C.process))return function(){return E7(m,p).apply(this,arguments)};var v=!1;function E(){return v||(console.error(p),v=!0),m.apply(this,arguments)}return E}var xp={},my;function kue(m){if(ao(my)&&(my=""),m=m.toUpperCase(),!xp[m])if(new RegExp("\\b"+m+"\\b","i").test(my)){var p=0;xp[m]=function(){var v=Lue.apply(null,arguments);console.error("%s %d: %s",m,p,v)}}else xp[m]=function(){};return xp[m]}function oo(m,p){var v={seen:[],stylize:Fue};return arguments.length>=3&&(v.depth=arguments[2]),arguments.length>=4&&(v.colors=arguments[3]),x7(p)?v.showHidden=p:p&&que(v,p),ao(v.showHidden)&&(v.showHidden=!1),ao(v.depth)&&(v.depth=2),ao(v.colors)&&(v.colors=!1),ao(v.customInspect)&&(v.customInspect=!0),v.colors&&(v.stylize=Mue),Ap(v,m,v.depth)}oo.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},oo.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function Mue(m,p){var v=oo.styles[p];return v?"\x1B["+oo.colors[v][0]+"m"+m+"\x1B["+oo.colors[v][1]+"m":m}function Fue(m,p){return m}function Bue(m){var p={};return m.forEach(function(v,E){p[v]=!0}),p}function Ap(m,p,v){if(m.customInspect&&p&&Sy(p.inspect)&&p.inspect!==oo&&!(p.constructor&&p.constructor.prototype===p)){var E=p.inspect(v,m);return _y(E)||(E=Ap(m,E,v)),E}var T=jue(m,p);if(T)return T;var D=Object.keys(p),M=Bue(D);if(m.showHidden&&(D=Object.getOwnPropertyNames(p)),Cy(p)&&(D.indexOf("message")>=0||D.indexOf("description")>=0))return vy(p);if(D.length===0){if(Sy(p)){var ue=p.name?": "+p.name:"";return m.stylize("[Function"+ue+"]","special")}if(wy(p))return m.stylize(RegExp.prototype.toString.call(p),"regexp");if(A7(p))return m.stylize(Date.prototype.toString.call(p),"date");if(Cy(p))return vy(p)}var xe="",Ue=!1,Ge=["{","}"];if(Vue(p)&&(Ue=!0,Ge=["[","]"]),Sy(p)){var tt=p.name?": "+p.name:"";xe=" [Function"+tt+"]"}if(wy(p)&&(xe=" "+RegExp.prototype.toString.call(p)),A7(p)&&(xe=" "+Date.prototype.toUTCString.call(p)),Cy(p)&&(xe=" "+vy(p)),D.length===0&&(!Ue||p.length==0))return Ge[0]+xe+Ge[1];if(v<0)return wy(p)?m.stylize(RegExp.prototype.toString.call(p),"regexp"):m.stylize("[Object]","special");m.seen.push(p);var Xt;return Ue?Xt=Uue(m,p,v,M,D):Xt=D.map(function(jt){return by(m,p,v,M,jt,Ue)}),m.seen.pop(),$ue(Xt,xe,Ge)}function jue(m,p){if(ao(p))return m.stylize("undefined","undefined");if(_y(p)){var v="'"+JSON.stringify(p).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return m.stylize(v,"string")}if(zue(p))return m.stylize(""+p,"number");if(x7(p))return m.stylize(""+p,"boolean");if(yy(p))return m.stylize("null","null")}function vy(m){return"["+Error.prototype.toString.call(m)+"]"}function Uue(m,p,v,E,T){for(var D=[],M=0,ue=p.length;M<ue;++M)P7(p,String(M))?D.push(by(m,p,v,E,String(M),!0)):D.push("");return T.forEach(function(xe){xe.match(/^\d+$/)||D.push(by(m,p,v,E,xe,!0))}),D}function by(m,p,v,E,T,D){var M,ue,xe;if(xe=Object.getOwnPropertyDescriptor(p,T)||{value:p[T]},xe.get?xe.set?ue=m.stylize("[Getter/Setter]","special"):ue=m.stylize("[Getter]","special"):xe.set&&(ue=m.stylize("[Setter]","special")),P7(E,T)||(M="["+T+"]"),ue||(m.seen.indexOf(xe.value)<0?(yy(v)?ue=Ap(m,xe.value,null):ue=Ap(m,xe.value,v-1),ue.indexOf(`
|
|
123
|
-
`)>-1&&(D?ue=ue.split(`
|
|
124
|
-
`).map(function(Ue){return" "+Ue}).join(`
|
|
125
|
-
`).substr(2):ue=`
|
|
126
|
-
`+ue.split(`
|
|
127
|
-
`).map(function(Ue){return" "+Ue}).join(`
|
|
128
|
-
`))):ue=m.stylize("[Circular]","special")),ao(M)){if(D&&T.match(/^\d+$/))return ue;M=JSON.stringify(""+T),M.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(M=M.substr(1,M.length-2),M=m.stylize(M,"name")):(M=M.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),M=m.stylize(M,"string"))}return M+": "+ue}function $ue(m,p,v){var E=m.reduce(function(T,D){return D.indexOf(`
|
|
129
|
-
`)>=0,T+D.replace(/\u001b\[\d\d?m/g,"").length+1},0);return E>60?v[0]+(p===""?"":p+`
|
|
130
|
-
`)+" "+m.join(`,
|
|
131
|
-
`)+" "+v[1]:v[0]+p+" "+m.join(", ")+" "+v[1]}function Vue(m){return Array.isArray(m)}function x7(m){return typeof m=="boolean"}function yy(m){return m===null}function zue(m){return typeof m=="number"}function _y(m){return typeof m=="string"}function ao(m){return m===void 0}function wy(m){return ju(m)&&Ey(m)==="[object RegExp]"}function ju(m){return typeof m=="object"&&m!==null}function A7(m){return ju(m)&&Ey(m)==="[object Date]"}function Cy(m){return ju(m)&&(Ey(m)==="[object Error]"||m instanceof Error)}function Sy(m){return typeof m=="function"}function Ey(m){return Object.prototype.toString.call(m)}function que(m,p){if(!p||!ju(p))return m;for(var v=Object.keys(p),E=v.length;E--;)m[v[E]]=p[v[E]];return m}function P7(m,p){return Object.prototype.hasOwnProperty.call(m,p)}function da(){this.head=null,this.tail=null,this.length=0}da.prototype.push=function(m){var p={data:m,next:null};this.length>0?this.tail.next=p:this.head=p,this.tail=p,++this.length},da.prototype.unshift=function(m){var p={data:m,next:this.head};this.length===0&&(this.tail=p),this.head=p,++this.length},da.prototype.shift=function(){if(this.length!==0){var m=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,m}},da.prototype.clear=function(){this.head=this.tail=null,this.length=0},da.prototype.join=function(m){if(this.length===0)return"";for(var p=this.head,v=""+p.data;p=p.next;)v+=m+p.data;return v},da.prototype.concat=function(m){if(this.length===0)return B.alloc(0);if(this.length===1)return this.head.data;for(var p=B.allocUnsafe(m>>>0),v=this.head,E=0;v;)v.data.copy(p,E),E+=v.data.length,v=v.next;return p};var Hue=B.isEncoding||function(m){switch(m&&m.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Gue(m){if(m&&!Hue(m))throw new Error("Unknown encoding: "+m)}function Uu(m){switch(this.encoding=(m||"utf8").toLowerCase().replace(/[-_]/,""),Gue(m),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=Kue;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=Jue;break;default:this.write=Wue;return}this.charBuffer=new B(6),this.charReceived=0,this.charLength=0}Uu.prototype.write=function(m){for(var p="";this.charLength;){var v=m.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:m.length;if(m.copy(this.charBuffer,this.charReceived,0,v),this.charReceived+=v,this.charReceived<this.charLength)return"";m=m.slice(v,m.length),p=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var T=p.charCodeAt(p.length-1);if(T>=55296&&T<=56319){this.charLength+=this.surrogateSize,p="";continue}if(this.charReceived=this.charLength=0,m.length===0)return p;break}this.detectIncompleteChar(m);var E=m.length;this.charLength&&(m.copy(this.charBuffer,0,m.length-this.charReceived,E),E-=this.charReceived),p+=m.toString(this.encoding,0,E);var E=p.length-1,T=p.charCodeAt(E);if(T>=55296&&T<=56319){var D=this.surrogateSize;return this.charLength+=D,this.charReceived+=D,this.charBuffer.copy(this.charBuffer,D,0,D),m.copy(this.charBuffer,0,0,D),p.substring(0,E)}return p},Uu.prototype.detectIncompleteChar=function(m){for(var p=m.length>=3?3:m.length;p>0;p--){var v=m[m.length-p];if(p==1&&v>>5==6){this.charLength=2;break}if(p<=2&&v>>4==14){this.charLength=3;break}if(p<=3&&v>>3==30){this.charLength=4;break}}this.charReceived=p},Uu.prototype.end=function(m){var p="";if(m&&m.length&&(p=this.write(m)),this.charReceived){var v=this.charReceived,E=this.charBuffer,T=this.encoding;p+=E.slice(0,v).toString(T)}return p};function Wue(m){return m.toString(this.encoding)}function Kue(m){this.charReceived=m.length%2,this.charLength=this.charReceived?2:0}function Jue(m){this.charReceived=m.length%3,this.charLength=this.charReceived?3:0}on.ReadableState=T7;var Bt=kue("stream");ws(on,o);function Yue(m,p,v){if(typeof m.prependListener=="function")return m.prependListener(p,v);!m._events||!m._events[p]?m.on(p,v):Array.isArray(m._events[p])?m._events[p].unshift(v):m._events[p]=[v,m._events[p]]}function Xue(m,p){return m.listeners(p).length}function T7(m,p){m=m||{},this.objectMode=!!m.objectMode,p instanceof zi&&(this.objectMode=this.objectMode||!!m.readableObjectMode);var v=m.highWaterMark,E=this.objectMode?16:16*1024;this.highWaterMark=v||v===0?v:E,this.highWaterMark=~~this.highWaterMark,this.buffer=new da,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=m.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,m.encoding&&(this.decoder=new Uu(m.encoding),this.encoding=m.encoding)}function on(m){if(!(this instanceof on))return new on(m);this._readableState=new T7(m,this),this.readable=!0,m&&typeof m.read=="function"&&(this._read=m.read),o.call(this)}on.prototype.push=function(m,p){var v=this._readableState;return!v.objectMode&&typeof m=="string"&&(p=p||v.defaultEncoding,p!==v.encoding&&(m=B.from(m,p),p="")),O7(this,v,m,p,!1)},on.prototype.unshift=function(m){var p=this._readableState;return O7(this,p,m,"",!0)},on.prototype.isPaused=function(){return this._readableState.flowing===!1};function O7(m,p,v,E,T){var D=ede(p,v);if(D)m.emit("error",D);else if(v===null)p.reading=!1,tde(m,p);else if(p.objectMode||v&&v.length>0)if(p.ended&&!T){var M=new Error("stream.push() after EOF");m.emit("error",M)}else if(p.endEmitted&&T){var ue=new Error("stream.unshift() after end event");m.emit("error",ue)}else{var xe;p.decoder&&!T&&!E&&(v=p.decoder.write(v),xe=!p.objectMode&&v.length===0),T||(p.reading=!1),xe||(p.flowing&&p.length===0&&!p.sync?(m.emit("data",v),m.read(0)):(p.length+=p.objectMode?1:v.length,T?p.buffer.unshift(v):p.buffer.push(v),p.needReadable&&Pp(m))),nde(m,p)}else T||(p.reading=!1);return Zue(p)}function Zue(m){return!m.ended&&(m.needReadable||m.length<m.highWaterMark||m.length===0)}on.prototype.setEncoding=function(m){return this._readableState.decoder=new Uu(m),this._readableState.encoding=m,this};var N7=8388608;function Que(m){return m>=N7?m=N7:(m--,m|=m>>>1,m|=m>>>2,m|=m>>>4,m|=m>>>8,m|=m>>>16,m++),m}function I7(m,p){return m<=0||p.length===0&&p.ended?0:p.objectMode?1:m!==m?p.flowing&&p.length?p.buffer.head.data.length:p.length:(m>p.highWaterMark&&(p.highWaterMark=Que(m)),m<=p.length?m:p.ended?p.length:(p.needReadable=!0,0))}on.prototype.read=function(m){Bt("read",m),m=parseInt(m,10);var p=this._readableState,v=m;if(m!==0&&(p.emittedReadable=!1),m===0&&p.needReadable&&(p.length>=p.highWaterMark||p.ended))return Bt("read: emitReadable",p.length,p.ended),p.length===0&&p.ended?Ay(this):Pp(this),null;if(m=I7(m,p),m===0&&p.ended)return p.length===0&&Ay(this),null;var E=p.needReadable;Bt("need readable",E),(p.length===0||p.length-m<p.highWaterMark)&&(E=!0,Bt("length less than watermark",E)),p.ended||p.reading?(E=!1,Bt("reading or ended",E)):E&&(Bt("do read"),p.reading=!0,p.sync=!0,p.length===0&&(p.needReadable=!0),this._read(p.highWaterMark),p.sync=!1,p.reading||(m=I7(v,p)));var T;return m>0?T=D7(m,p):T=null,T===null?(p.needReadable=!0,m=0):p.length-=m,p.length===0&&(p.ended||(p.needReadable=!0),v!==m&&p.ended&&Ay(this)),T!==null&&this.emit("data",T),T};function ede(m,p){var v=null;return!wp(p)&&typeof p!="string"&&p!==null&&p!==void 0&&!m.objectMode&&(v=new TypeError("Invalid non-string/buffer chunk")),v}function tde(m,p){if(!p.ended){if(p.decoder){var v=p.decoder.end();v&&v.length&&(p.buffer.push(v),p.length+=p.objectMode?1:v.length)}p.ended=!0,Pp(m)}}function Pp(m){var p=m._readableState;p.needReadable=!1,p.emittedReadable||(Bt("emitReadable",p.flowing),p.emittedReadable=!0,p.sync?vn(R7,m):R7(m))}function R7(m){Bt("emit readable"),m.emit("readable"),xy(m)}function nde(m,p){p.readingMore||(p.readingMore=!0,vn(ide,m,p))}function ide(m,p){for(var v=p.length;!p.reading&&!p.flowing&&!p.ended&&p.length<p.highWaterMark&&(Bt("maybeReadMore read 0"),m.read(0),v!==p.length);)v=p.length;p.readingMore=!1}on.prototype._read=function(m){this.emit("error",new Error("not implemented"))},on.prototype.pipe=function(m,p){var v=this,E=this._readableState;switch(E.pipesCount){case 0:E.pipes=m;break;case 1:E.pipes=[E.pipes,m];break;default:E.pipes.push(m);break}E.pipesCount+=1,Bt("pipe count=%d opts=%j",E.pipesCount,p);var T=!p||p.end!==!1,D=T?ue:Ge;E.endEmitted?vn(D):v.once("end",D),m.on("unpipe",M);function M(Vl){Bt("onunpipe"),Vl===v&&Ge()}function ue(){Bt("onend"),m.end()}var xe=rde(v);m.on("drain",xe);var Ue=!1;function Ge(){Bt("cleanup"),m.removeListener("close",$r),m.removeListener("finish",zu),m.removeListener("drain",xe),m.removeListener("error",jt),m.removeListener("unpipe",M),v.removeListener("end",ue),v.removeListener("end",Ge),v.removeListener("data",Xt),Ue=!0,E.awaitDrain&&(!m._writableState||m._writableState.needDrain)&&xe()}var tt=!1;v.on("data",Xt);function Xt(Vl){Bt("ondata"),tt=!1;var yhe=m.write(Vl);yhe===!1&&!tt&&((E.pipesCount===1&&E.pipes===m||E.pipesCount>1&&L7(E.pipes,m)!==-1)&&!Ue&&(Bt("false write response, pause",v._readableState.awaitDrain),v._readableState.awaitDrain++,tt=!0),v.pause())}function jt(Vl){Bt("onerror",Vl),zy(),m.removeListener("error",jt),Xue(m,"error")===0&&m.emit("error",Vl)}Yue(m,"error",jt);function $r(){m.removeListener("finish",zu),zy()}m.once("close",$r);function zu(){Bt("onfinish"),m.removeListener("close",$r),zy()}m.once("finish",zu);function zy(){Bt("unpipe"),v.unpipe(m)}return m.emit("pipe",v),E.flowing||(Bt("pipe resume"),v.resume()),m};function rde(m){return function(){var p=m._readableState;Bt("pipeOnDrain",p.awaitDrain),p.awaitDrain&&p.awaitDrain--,p.awaitDrain===0&&m.listeners("data").length&&(p.flowing=!0,xy(m))}}on.prototype.unpipe=function(m){var p=this._readableState;if(p.pipesCount===0)return this;if(p.pipesCount===1)return m&&m!==p.pipes?this:(m||(m=p.pipes),p.pipes=null,p.pipesCount=0,p.flowing=!1,m&&m.emit("unpipe",this),this);if(!m){var v=p.pipes,E=p.pipesCount;p.pipes=null,p.pipesCount=0,p.flowing=!1;for(var T=0;T<E;T++)v[T].emit("unpipe",this);return this}var D=L7(p.pipes,m);return D===-1?this:(p.pipes.splice(D,1),p.pipesCount-=1,p.pipesCount===1&&(p.pipes=p.pipes[0]),m.emit("unpipe",this),this)},on.prototype.on=function(m,p){var v=o.prototype.on.call(this,m,p);if(m==="data")this._readableState.flowing!==!1&&this.resume();else if(m==="readable"){var E=this._readableState;!E.endEmitted&&!E.readableListening&&(E.readableListening=E.needReadable=!0,E.emittedReadable=!1,E.reading?E.length&&Pp(this):vn(sde,this))}return v},on.prototype.addListener=on.prototype.on;function sde(m){Bt("readable nexttick read 0"),m.read(0)}on.prototype.resume=function(){var m=this._readableState;return m.flowing||(Bt("resume"),m.flowing=!0,ode(this,m)),this};function ode(m,p){p.resumeScheduled||(p.resumeScheduled=!0,vn(ade,m,p))}function ade(m,p){p.reading||(Bt("resume read 0"),m.read(0)),p.resumeScheduled=!1,p.awaitDrain=0,m.emit("resume"),xy(m),p.flowing&&!p.reading&&m.read(0)}on.prototype.pause=function(){return Bt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Bt("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function xy(m){var p=m._readableState;for(Bt("flow",p.flowing);p.flowing&&m.read()!==null;);}on.prototype.wrap=function(m){var p=this._readableState,v=!1,E=this;m.on("end",function(){if(Bt("wrapped end"),p.decoder&&!p.ended){var M=p.decoder.end();M&&M.length&&E.push(M)}E.push(null)}),m.on("data",function(M){if(Bt("wrapped data"),p.decoder&&(M=p.decoder.write(M)),!(p.objectMode&&M==null)&&!(!p.objectMode&&(!M||!M.length))){var ue=E.push(M);ue||(v=!0,m.pause())}});for(var T in m)this[T]===void 0&&typeof m[T]=="function"&&(this[T]=function(M){return function(){return m[M].apply(m,arguments)}}(T));var D=["error","close","destroy","pause","resume"];return fde(D,function(M){m.on(M,E.emit.bind(E,M))}),E._read=function(M){Bt("wrapped _read",M),v&&(v=!1,m.resume())},E},on._fromList=D7;function D7(m,p){if(p.length===0)return null;var v;return p.objectMode?v=p.buffer.shift():!m||m>=p.length?(p.decoder?v=p.buffer.join(""):p.buffer.length===1?v=p.buffer.head.data:v=p.buffer.concat(p.length),p.buffer.clear()):v=lde(m,p.buffer,p.decoder),v}function lde(m,p,v){var E;return m<p.head.data.length?(E=p.head.data.slice(0,m),p.head.data=p.head.data.slice(m)):m===p.head.data.length?E=p.shift():E=v?cde(m,p):ude(m,p),E}function cde(m,p){var v=p.head,E=1,T=v.data;for(m-=T.length;v=v.next;){var D=v.data,M=m>D.length?D.length:m;if(M===D.length?T+=D:T+=D.slice(0,m),m-=M,m===0){M===D.length?(++E,v.next?p.head=v.next:p.head=p.tail=null):(p.head=v,v.data=D.slice(M));break}++E}return p.length-=E,T}function ude(m,p){var v=B.allocUnsafe(m),E=p.head,T=1;for(E.data.copy(v),m-=E.data.length;E=E.next;){var D=E.data,M=m>D.length?D.length:m;if(D.copy(v,v.length-m,0,M),m-=M,m===0){M===D.length?(++T,E.next?p.head=E.next:p.head=p.tail=null):(p.head=E,E.data=D.slice(M));break}++T}return p.length-=T,v}function Ay(m){var p=m._readableState;if(p.length>0)throw new Error('"endReadable()" called on non-empty stream');p.endEmitted||(p.ended=!0,vn(dde,p,m))}function dde(m,p){!m.endEmitted&&m.length===0&&(m.endEmitted=!0,p.readable=!1,p.emit("end"))}function fde(m,p){for(var v=0,E=m.length;v<E;v++)p(m[v],v)}function L7(m,p){for(var v=0,E=m.length;v<E;v++)if(m[v]===p)return v;return-1}Un.WritableState=Py,ws(Un,o);function hde(){}function pde(m,p,v){this.chunk=m,this.encoding=p,this.callback=v,this.next=null}function Py(m,p){Object.defineProperty(this,"buffer",{get:E7(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),m=m||{},this.objectMode=!!m.objectMode,p instanceof zi&&(this.objectMode=this.objectMode||!!m.writableObjectMode);var v=m.highWaterMark,E=this.objectMode?16:16*1024;this.highWaterMark=v||v===0?v:E,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var T=m.decodeStrings===!1;this.decodeStrings=!T,this.defaultEncoding=m.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(D){wde(p,D)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new U7(this)}Py.prototype.getBuffer=function(){for(var p=this.bufferedRequest,v=[];p;)v.push(p),p=p.next;return v};function Un(m){if(!(this instanceof Un)&&!(this instanceof zi))return new Un(m);this._writableState=new Py(m,this),this.writable=!0,m&&(typeof m.write=="function"&&(this._write=m.write),typeof m.writev=="function"&&(this._writev=m.writev)),o.call(this)}Un.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function gde(m,p){var v=new Error("write after end");m.emit("error",v),vn(p,v)}function mde(m,p,v,E){var T=!0,D=!1;return v===null?D=new TypeError("May not write null values to stream"):!B.isBuffer(v)&&typeof v!="string"&&v!==void 0&&!p.objectMode&&(D=new TypeError("Invalid non-string/buffer chunk")),D&&(m.emit("error",D),vn(E,D),T=!1),T}Un.prototype.write=function(m,p,v){var E=this._writableState,T=!1;return typeof p=="function"&&(v=p,p=null),B.isBuffer(m)?p="buffer":p||(p=E.defaultEncoding),typeof v!="function"&&(v=hde),E.ended?gde(this,v):mde(this,E,m,v)&&(E.pendingcb++,T=bde(this,E,m,p,v)),T},Un.prototype.cork=function(){var m=this._writableState;m.corked++},Un.prototype.uncork=function(){var m=this._writableState;m.corked&&(m.corked--,!m.writing&&!m.corked&&!m.finished&&!m.bufferProcessing&&m.bufferedRequest&&M7(this,m))},Un.prototype.setDefaultEncoding=function(p){if(typeof p=="string"&&(p=p.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((p+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+p);return this._writableState.defaultEncoding=p,this};function vde(m,p,v){return!m.objectMode&&m.decodeStrings!==!1&&typeof p=="string"&&(p=B.from(p,v)),p}function bde(m,p,v,E,T){v=vde(p,v,E),B.isBuffer(v)&&(E="buffer");var D=p.objectMode?1:v.length;p.length+=D;var M=p.length<p.highWaterMark;if(M||(p.needDrain=!0),p.writing||p.corked){var ue=p.lastBufferedRequest;p.lastBufferedRequest=new pde(v,E,T),ue?ue.next=p.lastBufferedRequest:p.bufferedRequest=p.lastBufferedRequest,p.bufferedRequestCount+=1}else Ty(m,p,!1,D,v,E,T);return M}function Ty(m,p,v,E,T,D,M){p.writelen=E,p.writecb=M,p.writing=!0,p.sync=!0,v?m._writev(T,p.onwrite):m._write(T,D,p.onwrite),p.sync=!1}function yde(m,p,v,E,T){--p.pendingcb,v?vn(T,E):T(E),m._writableState.errorEmitted=!0,m.emit("error",E)}function _de(m){m.writing=!1,m.writecb=null,m.length-=m.writelen,m.writelen=0}function wde(m,p){var v=m._writableState,E=v.sync,T=v.writecb;if(_de(v),p)yde(m,v,E,p,T);else{var D=F7(v);!D&&!v.corked&&!v.bufferProcessing&&v.bufferedRequest&&M7(m,v),E?vn(k7,m,v,D,T):k7(m,v,D,T)}}function k7(m,p,v,E){v||Cde(m,p),p.pendingcb--,E(),j7(m,p)}function Cde(m,p){p.length===0&&p.needDrain&&(p.needDrain=!1,m.emit("drain"))}function M7(m,p){p.bufferProcessing=!0;var v=p.bufferedRequest;if(m._writev&&v&&v.next){var E=p.bufferedRequestCount,T=new Array(E),D=p.corkedRequestsFree;D.entry=v;for(var M=0;v;)T[M]=v,v=v.next,M+=1;Ty(m,p,!0,p.length,T,"",D.finish),p.pendingcb++,p.lastBufferedRequest=null,D.next?(p.corkedRequestsFree=D.next,D.next=null):p.corkedRequestsFree=new U7(p)}else{for(;v;){var ue=v.chunk,xe=v.encoding,Ue=v.callback,Ge=p.objectMode?1:ue.length;if(Ty(m,p,!1,Ge,ue,xe,Ue),v=v.next,p.writing)break}v===null&&(p.lastBufferedRequest=null)}p.bufferedRequestCount=0,p.bufferedRequest=v,p.bufferProcessing=!1}Un.prototype._write=function(m,p,v){v(new Error("not implemented"))},Un.prototype._writev=null,Un.prototype.end=function(m,p,v){var E=this._writableState;typeof m=="function"?(v=m,m=null,p=null):typeof p=="function"&&(v=p,p=null),m!=null&&this.write(m,p),E.corked&&(E.corked=1,this.uncork()),!E.ending&&!E.finished&&Sde(this,E,v)};function F7(m){return m.ending&&m.length===0&&m.bufferedRequest===null&&!m.finished&&!m.writing}function B7(m,p){p.prefinished||(p.prefinished=!0,m.emit("prefinish"))}function j7(m,p){var v=F7(p);return v&&(p.pendingcb===0?(B7(m,p),p.finished=!0,m.emit("finish")):B7(m,p)),v}function Sde(m,p,v){p.ending=!0,j7(m,p),v&&(p.finished?vn(v):m.once("finish",v)),p.ended=!0,m.writable=!1}function U7(m){var p=this;this.next=null,this.entry=null,this.finish=function(v){var E=p.entry;for(p.entry=null;E;){var T=E.callback;m.pendingcb--,T(v),E=E.next}m.corkedRequestsFree?m.corkedRequestsFree.next=p:m.corkedRequestsFree=p}}ws(zi,on);for(var $7=Object.keys(Un.prototype),Oy=0;Oy<$7.length;Oy++){var Ny=$7[Oy];zi.prototype[Ny]||(zi.prototype[Ny]=Un.prototype[Ny])}function zi(m){if(!(this instanceof zi))return new zi(m);on.call(this,m),Un.call(this,m),m&&m.readable===!1&&(this.readable=!1),m&&m.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,m&&m.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",Ede)}function Ede(){this.allowHalfOpen||this._writableState.ended||vn(xde,this)}function xde(m){m.end()}ws(Ur,zi);function Ade(m){this.afterTransform=function(p,v){return Pde(m,p,v)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function Pde(m,p,v){var E=m._transformState;E.transforming=!1;var T=E.writecb;if(!T)return m.emit("error",new Error("no writecb in Transform class"));E.writechunk=null,E.writecb=null,v!=null&&m.push(v),T(p);var D=m._readableState;D.reading=!1,(D.needReadable||D.length<D.highWaterMark)&&m._read(D.highWaterMark)}function Ur(m){if(!(this instanceof Ur))return new Ur(m);zi.call(this,m),this._transformState=new Ade(this);var p=this;this._readableState.needReadable=!0,this._readableState.sync=!1,m&&(typeof m.transform=="function"&&(this._transform=m.transform),typeof m.flush=="function"&&(this._flush=m.flush)),this.once("prefinish",function(){typeof this._flush=="function"?this._flush(function(v){V7(p,v)}):V7(p)})}Ur.prototype.push=function(m,p){return this._transformState.needTransform=!1,zi.prototype.push.call(this,m,p)},Ur.prototype._transform=function(m,p,v){throw new Error("Not implemented")},Ur.prototype._write=function(m,p,v){var E=this._transformState;if(E.writecb=v,E.writechunk=m,E.writeencoding=p,!E.transforming){var T=this._readableState;(E.needTransform||T.needReadable||T.length<T.highWaterMark)&&this._read(T.highWaterMark)}},Ur.prototype._read=function(m){var p=this._transformState;p.writechunk!==null&&p.writecb&&!p.transforming?(p.transforming=!0,this._transform(p.writechunk,p.writeencoding,p.afterTransform)):p.needTransform=!0};function V7(m,p){if(p)return m.emit("error",p);var v=m._writableState,E=m._transformState;if(v.length)throw new Error("Calling transform done when ws.length != 0");if(E.transforming)throw new Error("Calling transform done when still transforming");return m.push(null)}ws($u,Ur);function $u(m){if(!(this instanceof $u))return new $u(m);Ur.call(this,m)}$u.prototype._transform=function(m,p,v){v(null,m)},ws(qi,o),qi.Readable=on,qi.Writable=Un,qi.Duplex=zi,qi.Transform=Ur,qi.PassThrough=$u,qi.Stream=qi;function qi(){o.call(this)}qi.prototype.pipe=function(m,p){var v=this;function E(Ge){m.writable&&m.write(Ge)===!1&&v.pause&&v.pause()}v.on("data",E);function T(){v.readable&&v.resume&&v.resume()}m.on("drain",T),!m._isStdio&&(!p||p.end!==!1)&&(v.on("end",M),v.on("close",ue));var D=!1;function M(){D||(D=!0,m.end())}function ue(){D||(D=!0,typeof m.destroy=="function"&&m.destroy())}function xe(Ge){if(Ue(),o.listenerCount(this,"error")===0)throw Ge}v.on("error",xe),m.on("error",xe);function Ue(){v.removeListener("data",E),m.removeListener("drain",T),v.removeListener("end",M),v.removeListener("close",ue),v.removeListener("error",xe),m.removeListener("error",xe),v.removeListener("end",Ue),v.removeListener("close",Ue),m.removeListener("close",Ue)}return v.on("end",Ue),v.on("close",Ue),m.on("close",Ue),m.emit("pipe",v),m};function Cs(m){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Cs=function(p){return typeof p}:Cs=function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},Cs(m)}function Tp(m,p){if(!(m instanceof p))throw new TypeError("Cannot call a class as a function")}function z7(m,p){for(var v=0;v<p.length;v++){var E=p[v];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(m,E.key,E)}}function Op(m,p,v){return p&&z7(m.prototype,p),v&&z7(m,v),m}function Np(m,p,v){return p in m?Object.defineProperty(m,p,{value:v,enumerable:!0,configurable:!0,writable:!0}):m[p]=v,m}function q7(m){for(var p=1;p<arguments.length;p++){var v=arguments[p]!=null?arguments[p]:{},E=Object.keys(v);typeof Object.getOwnPropertySymbols=="function"&&(E=E.concat(Object.getOwnPropertySymbols(v).filter(function(T){return Object.getOwnPropertyDescriptor(v,T).enumerable}))),E.forEach(function(T){Np(m,T,v[T])})}return m}function H7(m,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(p&&p.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),p&&Iy(m,p)}function Ip(m){return Ip=Object.setPrototypeOf?Object.getPrototypeOf:function(v){return v.__proto__||Object.getPrototypeOf(v)},Ip(m)}function Iy(m,p){return Iy=Object.setPrototypeOf||function(E,T){return E.__proto__=T,E},Iy(m,p)}function Tde(m){if(m===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m}function G7(m,p){return p&&(typeof p=="object"||typeof p=="function")?p:Tde(m)}function W7(m){return Ide(m)||K7(m)||Dde()}function Ode(m){return Nde(m)||K7(m)||Rde()}function Nde(m){if(Array.isArray(m)){for(var p=0,v=new Array(m.length);p<m.length;p++)v[p]=m[p];return v}}function Ide(m){if(Array.isArray(m))return m}function K7(m){if(Symbol.iterator in Object(m)||Object.prototype.toString.call(m)==="[object Arguments]")return Array.from(m)}function Rde(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Dde(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}var Rp;function Lde(){if(typeof Rp=="undefined"){var m=new ArrayBuffer(2),p=new Uint8Array(m),v=new Uint16Array(m);if(p[0]=1,p[1]=2,v[0]===258)Rp="BE";else if(v[0]===513)Rp="LE";else throw new Error("unable to figure out endianess")}return Rp}function kde(){return typeof C.location!="undefined"?C.location.hostname:""}function Mde(){return[]}function Fde(){return 0}function Bde(){return Number.MAX_VALUE}function jde(){return Number.MAX_VALUE}function Ude(){return[]}function $de(){return"Browser"}function Vde(){return typeof C.navigator!="undefined"?C.navigator.appVersion:""}function zde(){}function qde(){}function J7(){return"/tmp"}var Hde=J7,Gde=`
|
|
132
|
-
`,Wde={EOL:Gde,tmpdir:Hde,tmpDir:J7,networkInterfaces:zde,getNetworkInterfaces:qde,release:Vde,type:$de,cpus:Ude,totalmem:jde,freemem:Bde,uptime:Fde,loadavg:Mde,hostname:kde,endianness:Lde},Dp=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof $s!="undefined"?$s:typeof self!="undefined"?self:{},Kde="Expected a function",Y7="__lodash_hash_undefined__",X7=1/0,Jde="[object Function]",Yde="[object GeneratorFunction]",Xde="[object Symbol]",Zde=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qde=/^\w*$/,efe=/^\./,tfe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nfe=/[\\^$.*+?()[\]{}|]/g,ife=/\\(\\)?/g,rfe=/^\[object .+?Constructor\]$/,sfe=typeof Dp=="object"&&Dp&&Dp.Object===Object&&Dp,ofe=typeof self=="object"&&self&&self.Object===Object&&self,Ry=sfe||ofe||Function("return this")();function afe(m,p){return m==null?void 0:m[p]}function lfe(m){var p=!1;if(m!=null&&typeof m.toString!="function")try{p=!!(m+"")}catch(v){}return p}var cfe=Array.prototype,ufe=Function.prototype,Z7=Object.prototype,Dy=Ry["__core-js_shared__"],Q7=function(){var m=/[^.]+$/.exec(Dy&&Dy.keys&&Dy.keys.IE_PROTO||"");return m?"Symbol(src)_1."+m:""}(),e9=ufe.toString,Ly=Z7.hasOwnProperty,t9=Z7.toString,dfe=RegExp("^"+e9.call(Ly).replace(nfe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),n9=Ry.Symbol,ffe=cfe.splice,hfe=s9(Ry,"Map"),Vu=s9(Object,"create"),i9=n9?n9.prototype:void 0,r9=i9?i9.toString:void 0;function fa(m){var p=-1,v=m?m.length:0;for(this.clear();++p<v;){var E=m[p];this.set(E[0],E[1])}}function pfe(){this.__data__=Vu?Vu(null):{}}function gfe(m){return this.has(m)&&delete this.__data__[m]}function mfe(m){var p=this.__data__;if(Vu){var v=p[m];return v===Y7?void 0:v}return Ly.call(p,m)?p[m]:void 0}function vfe(m){var p=this.__data__;return Vu?p[m]!==void 0:Ly.call(p,m)}function bfe(m,p){var v=this.__data__;return v[m]=Vu&&p===void 0?Y7:p,this}fa.prototype.clear=pfe,fa.prototype.delete=gfe,fa.prototype.get=mfe,fa.prototype.has=vfe,fa.prototype.set=bfe;function Ul(m){var p=-1,v=m?m.length:0;for(this.clear();++p<v;){var E=m[p];this.set(E[0],E[1])}}function yfe(){this.__data__=[]}function _fe(m){var p=this.__data__,v=Lp(p,m);if(v<0)return!1;var E=p.length-1;return v==E?p.pop():ffe.call(p,v,1),!0}function wfe(m){var p=this.__data__,v=Lp(p,m);return v<0?void 0:p[v][1]}function Cfe(m){return Lp(this.__data__,m)>-1}function Sfe(m,p){var v=this.__data__,E=Lp(v,m);return E<0?v.push([m,p]):v[E][1]=p,this}Ul.prototype.clear=yfe,Ul.prototype.delete=_fe,Ul.prototype.get=wfe,Ul.prototype.has=Cfe,Ul.prototype.set=Sfe;function ha(m){var p=-1,v=m?m.length:0;for(this.clear();++p<v;){var E=m[p];this.set(E[0],E[1])}}function Efe(){this.__data__={hash:new fa,map:new(hfe||Ul),string:new fa}}function xfe(m){return kp(this,m).delete(m)}function Afe(m){return kp(this,m).get(m)}function Pfe(m){return kp(this,m).has(m)}function Tfe(m,p){return kp(this,m).set(m,p),this}ha.prototype.clear=Efe,ha.prototype.delete=xfe,ha.prototype.get=Afe,ha.prototype.has=Pfe,ha.prototype.set=Tfe;function Lp(m,p){for(var v=m.length;v--;)if(jfe(m[v][0],p))return v;return-1}function Ofe(m,p){p=Dfe(p,m)?[p]:Rfe(p);for(var v=0,E=p.length;m!=null&&v<E;)m=m[Ffe(p[v++])];return v&&v==E?m:void 0}function Nfe(m){if(!a9(m)||kfe(m))return!1;var p=Ufe(m)||lfe(m)?dfe:rfe;return p.test(Bfe(m))}function Ife(m){if(typeof m=="string")return m;if(My(m))return r9?r9.call(m):"";var p=m+"";return p=="0"&&1/m==-X7?"-0":p}function Rfe(m){return o9(m)?m:Mfe(m)}function kp(m,p){var v=m.__data__;return Lfe(p)?v[typeof p=="string"?"string":"hash"]:v.map}function s9(m,p){var v=afe(m,p);return Nfe(v)?v:void 0}function Dfe(m,p){if(o9(m))return!1;var v=typeof m;return v=="number"||v=="symbol"||v=="boolean"||m==null||My(m)?!0:Qde.test(m)||!Zde.test(m)||p!=null&&m in Object(p)}function Lfe(m){var p=typeof m;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?m!=="__proto__":m===null}function kfe(m){return!!Q7&&Q7 in m}var Mfe=ky(function(m){m=Vfe(m);var p=[];return efe.test(m)&&p.push(""),m.replace(tfe,function(v,E,T,D){p.push(T?D.replace(ife,"$1"):E||v)}),p});function Ffe(m){if(typeof m=="string"||My(m))return m;var p=m+"";return p=="0"&&1/m==-X7?"-0":p}function Bfe(m){if(m!=null){try{return e9.call(m)}catch(p){}try{return m+""}catch(p){}}return""}function ky(m,p){if(typeof m!="function"||p&&typeof p!="function")throw new TypeError(Kde);var v=function(){var E=arguments,T=p?p.apply(this,E):E[0],D=v.cache;if(D.has(T))return D.get(T);var M=m.apply(this,E);return v.cache=D.set(T,M),M};return v.cache=new(ky.Cache||ha),v}ky.Cache=ha;function jfe(m,p){return m===p||m!==m&&p!==p}var o9=Array.isArray;function Ufe(m){var p=a9(m)?t9.call(m):"";return p==Jde||p==Yde}function a9(m){var p=typeof m;return!!m&&(p=="object"||p=="function")}function $fe(m){return!!m&&typeof m=="object"}function My(m){return typeof m=="symbol"||$fe(m)&&t9.call(m)==Xde}function Vfe(m){return m==null?"":Ife(m)}function zfe(m,p,v){var E=m==null?void 0:Ofe(m,p);return E===void 0?v:E}var Fy=zfe;function qfe(m,p,v){return m[p]===void 0?v:m[p]}function l9(m,p,v){var E=Array.isArray(p)?p:p.split("."),T=W7(E),D=T[0],M=T.slice(1);return q7({},m,Np({},D,E.length>1?l9(m[D]||{},M,v):v))}function c9(m,p){var v=Array.isArray(p)?p:p.split("."),E=W7(v),T=E[0],D=E.slice(1);return Cs(m[T])!=="object"?m:v.length===1?Object.keys(m).filter(function(M){return M!==T}).reduce(function(M,ue){return Object.assign(M,Np({},ue,m[ue]))},{}):Object.keys(m).reduce(function(M,ue){return q7({},M,Np({},ue,ue!==T?m[ue]:c9(m[T],D)))},{})}function Hfe(m,p){try{return m.push.apply(m,Ode(p)),m}catch(v){return m.concat(p)}}function Gfe(m,p){var v=!0;return m.reduce(function(E,T){return T==null&&(T=""),v?(v=!1,"".concat(T)):"".concat(E).concat(p).concat(T)},"")}var Ss={getProp:qfe,setProp:l9,unsetProp:c9,fastJoin:Gfe,flattenReducer:Hfe},u9=Ss.getProp,d9=Ss.fastJoin,Wfe=Ss.flattenReducer,Kfe=function(){function m(p){Tp(this,m),this.opts=this.preprocessOpts(p)}return Op(m,[{key:"preprocessOpts",value:function(v){var E=Object.assign({},v);return E.transforms=Array.isArray(E.transforms)?E.transforms:E.transforms?[E.transforms]:[],E.delimiter=E.delimiter||",",E.eol=E.eol||Wde.EOL,E.quote=typeof E.quote=="string"?E.quote:'"',E.escapedQuote=typeof E.escapedQuote=="string"?E.escapedQuote:"".concat(E.quote).concat(E.quote),E.header=E.header!==!1,E.includeEmptyRows=E.includeEmptyRows||!1,E.withBOM=E.withBOM||!1,E}},{key:"preprocessFieldsInfo",value:function(v){var E=this;return v.map(function(T){if(typeof T=="string")return{label:T,value:T.includes(".")||T.includes("[")?function(xe){return Fy(xe,T,E.opts.defaultValue)}:function(xe){return u9(xe,T,E.opts.defaultValue)}};if(Cs(T)==="object"){var D="default"in T?T.default:E.opts.defaultValue;if(typeof T.value=="string")return{label:T.label||T.value,value:T.value.includes(".")||T.value.includes("[")?function(xe){return Fy(xe,T.value,D)}:function(xe){return u9(xe,T.value,D)}};if(typeof T.value=="function"){var M=T.label||T.value.name||"",ue={label:M,default:D};return{label:M,value:function(Ue){var Ge=T.value(Ue,ue);return Ge==null?D:Ge}}}}throw new Error("Invalid field info option. "+JSON.stringify(T))})}},{key:"getHeader",value:function(){var v=this;return d9(this.opts.fields.map(function(E){return v.processValue(E.label)}),this.opts.delimiter)}},{key:"preprocessRow",value:function(v){return this.opts.transforms.reduce(function(E,T){return E.map(function(D){return T(D)}).reduce(Wfe,[])},[v])}},{key:"processRow",value:function(v){var E=this;if(v){var T=this.opts.fields.map(function(D){return E.processCell(v,D)});if(!(!this.opts.includeEmptyRows&&T.every(function(D){return D===void 0})))return d9(T,this.opts.delimiter)}}},{key:"processCell",value:function(v,E){return this.processValue(E.value(v))}},{key:"processValue",value:function(v){if(v!=null){var E=Cs(v);if(E!=="boolean"&&E!=="number"&&E!=="string"){if(v=JSON.stringify(v),v===void 0)return;v[0]==='"'&&(v=v.replace(/^"(.+)"$/,"$1"))}return typeof v=="string"&&(this.opts.excelStrings?(v.includes(this.opts.quote)&&(v=v.replace(new RegExp(this.opts.quote,"g"),"".concat(this.opts.escapedQuote).concat(this.opts.escapedQuote))),v='"=""'.concat(v,'"""')):(v.includes(this.opts.quote)&&(v=v.replace(new RegExp(this.opts.quote,"g"),this.opts.escapedQuote)),v="".concat(this.opts.quote).concat(v).concat(this.opts.quote))),v}}}]),m}(),By=Kfe,Jfe=Ss.fastJoin,Yfe=Ss.flattenReducer,Xfe=function(m){H7(p,m);function p(v){var E;return Tp(this,p),E=G7(this,Ip(p).call(this,v)),E.opts.fields&&(E.opts.fields=E.preprocessFieldsInfo(E.opts.fields)),E}return Op(p,[{key:"parse",value:function(E){var T=this.preprocessData(E);this.opts.fields||(this.opts.fields=T.reduce(function(xe,Ue){return Object.keys(Ue).forEach(function(Ge){xe.includes(Ge)||xe.push(Ge)}),xe},[]),this.opts.fields=this.preprocessFieldsInfo(this.opts.fields));var D=this.opts.header?this.getHeader():"",M=this.processData(T),ue=(this.opts.withBOM?"\uFEFF":"")+D+(D&&M?this.opts.eol:"")+M;return ue}},{key:"preprocessData",value:function(E){var T=this,D=Array.isArray(E)?E:[E];if(!this.opts.fields&&(D.length===0||Cs(D[0])!=="object"))throw new Error('Data should not be empty or the "fields" option should be included');return this.opts.transforms.length===0?D:D.map(function(M){return T.preprocessRow(M)}).reduce(Yfe,[])}},{key:"processData",value:function(E){var T=this;return Jfe(E.map(function(D){return T.processRow(D)}).filter(function(D){return D}),this.opts.eol)}}]),p}(By),f9=Xfe,Et={},h9=Et.LEFT_BRACE=1,Mp=Et.RIGHT_BRACE=2,p9=Et.LEFT_BRACKET=3,jy=Et.RIGHT_BRACKET=4,Fp=Et.COLON=5,Bp=Et.COMMA=6,g9=Et.TRUE=7,m9=Et.FALSE=8,v9=Et.NULL=9,jp=Et.STRING=10,b9=Et.NUMBER=11,pa=Et.START=17,y9=Et.STOP=18,_9=Et.TRUE1=33,w9=Et.TRUE2=34,C9=Et.TRUE3=35,S9=Et.FALSE1=49,E9=Et.FALSE2=50,x9=Et.FALSE3=51,A9=Et.FALSE4=52,P9=Et.NULL1=65,T9=Et.NULL2=66,O9=Et.NULL3=67,N9=Et.NUMBER1=81,Uy=Et.NUMBER3=83,fr=Et.STRING1=97,I9=Et.STRING2=98,R9=Et.STRING3=99,Zfe=Et.STRING4=100,Qfe=Et.STRING5=101,D9=Et.STRING6=102,$l=Et.VALUE=113,$y=Et.KEY=114,Up=Et.OBJECT=129,$p=Et.ARRAY=130,ehe="\\".charCodeAt(0),the="/".charCodeAt(0),nhe="\b".charCodeAt(0),ihe="\f".charCodeAt(0),rhe=`
|
|
133
|
-
`.charCodeAt(0),she="\r".charCodeAt(0),ohe=" ".charCodeAt(0),Vp=64*1024;function lo(){this.tState=pa,this.value=void 0,this.string=void 0,this.stringBuffer=B.alloc?B.alloc(Vp):new B(Vp),this.stringBufferOffset=0,this.unicode=void 0,this.highSurrogate=void 0,this.key=void 0,this.mode=void 0,this.stack=[],this.state=$l,this.bytes_remaining=0,this.bytes_in_sequence=0,this.temp_buffs={2:new B(2),3:new B(3),4:new B(4)},this.offset=-1}lo.toknam=function(m){for(var p=Object.keys(Et),v=0,E=p.length;v<E;v++){var T=p[v];if(Et[T]===m)return T}return m&&"0x"+m.toString(16)};var Hi=lo.prototype;Hi.onError=function(m){throw m},Hi.charError=function(m,p){this.tState=y9,this.onError(new Error("Unexpected "+JSON.stringify(String.fromCharCode(m[p]))+" at position "+p+" in state "+lo.toknam(this.tState)))},Hi.appendStringChar=function(m){this.stringBufferOffset>=Vp&&(this.string+=this.stringBuffer.toString("utf8"),this.stringBufferOffset=0),this.stringBuffer[this.stringBufferOffset++]=m},Hi.appendStringBuf=function(m,p,v){var E=m.length;typeof p=="number"&&(typeof v=="number"?v<0?E=m.length-p+v:E=v-p:E=m.length-p),E<0&&(E=0),this.stringBufferOffset+E>Vp&&(this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0),m.copy(this.stringBuffer,this.stringBufferOffset,p,v),this.stringBufferOffset+=E},Hi.write=function(m){typeof m=="string"&&(m=new B(m));for(var p,v=0,E=m.length;v<E;v++)if(this.tState===pa){if(p=m[v],this.offset++,p===123)this.onToken(h9,"{");else if(p===125)this.onToken(Mp,"}");else if(p===91)this.onToken(p9,"[");else if(p===93)this.onToken(jy,"]");else if(p===58)this.onToken(Fp,":");else if(p===44)this.onToken(Bp,",");else if(p===116)this.tState=_9;else if(p===102)this.tState=S9;else if(p===110)this.tState=P9;else if(p===34)this.string="",this.stringBufferOffset=0,this.tState=fr;else if(p===45)this.string="-",this.tState=N9;else if(p>=48&&p<64)this.string=String.fromCharCode(p),this.tState=Uy;else if(!(p===32||p===9||p===10||p===13))return this.charError(m,v)}else if(this.tState===fr)if(p=m[v],this.bytes_remaining>0){for(var T=0;T<this.bytes_remaining;T++)this.temp_buffs[this.bytes_in_sequence][this.bytes_in_sequence-this.bytes_remaining+T]=m[T];this.appendStringBuf(this.temp_buffs[this.bytes_in_sequence]),this.bytes_in_sequence=this.bytes_remaining=0,v=v+T-1}else if(this.bytes_remaining===0&&p>=128){if(p<=193||p>244)return this.onError(new Error("Invalid UTF-8 character at position "+v+" in state "+lo.toknam(this.tState)));if(p>=194&&p<=223&&(this.bytes_in_sequence=2),p>=224&&p<=239&&(this.bytes_in_sequence=3),p>=240&&p<=244&&(this.bytes_in_sequence=4),this.bytes_in_sequence+v>m.length){for(var D=0;D<=m.length-1-v;D++)this.temp_buffs[this.bytes_in_sequence][D]=m[v+D];this.bytes_remaining=v+this.bytes_in_sequence-m.length,v=m.length-1}else this.appendStringBuf(m,v,v+this.bytes_in_sequence),v=v+this.bytes_in_sequence-1}else if(p===34)this.tState=pa,this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0,this.onToken(jp,this.string),this.offset+=B.byteLength(this.string,"utf8")+1,this.string=void 0;else if(p===92)this.tState=I9;else if(p>=32)this.appendStringChar(p);else return this.charError(m,v);else if(this.tState===I9)if(p=m[v],p===34)this.appendStringChar(p),this.tState=fr;else if(p===92)this.appendStringChar(ehe),this.tState=fr;else if(p===47)this.appendStringChar(the),this.tState=fr;else if(p===98)this.appendStringChar(nhe),this.tState=fr;else if(p===102)this.appendStringChar(ihe),this.tState=fr;else if(p===110)this.appendStringChar(rhe),this.tState=fr;else if(p===114)this.appendStringChar(she),this.tState=fr;else if(p===116)this.appendStringChar(ohe),this.tState=fr;else if(p===117)this.unicode="",this.tState=R9;else return this.charError(m,v);else if(this.tState===R9||this.tState===Zfe||this.tState===Qfe||this.tState===D9)if(p=m[v],p>=48&&p<64||p>64&&p<=70||p>96&&p<=102){if(this.unicode+=String.fromCharCode(p),this.tState++===D9){var M=parseInt(this.unicode,16);this.unicode=void 0,this.highSurrogate!==void 0&&M>=56320&&M<57343+1?(this.appendStringBuf(new B(String.fromCharCode(this.highSurrogate,M))),this.highSurrogate=void 0):this.highSurrogate===void 0&&M>=55296&&M<56319+1?this.highSurrogate=M:(this.highSurrogate!==void 0&&(this.appendStringBuf(new B(String.fromCharCode(this.highSurrogate))),this.highSurrogate=void 0),this.appendStringBuf(new B(String.fromCharCode(M)))),this.tState=fr}}else return this.charError(m,v);else if(this.tState===N9||this.tState===Uy)switch(p=m[v],p){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 46:case 101:case 69:case 43:case 45:this.string+=String.fromCharCode(p),this.tState=Uy;break;default:this.tState=pa;var ue=Number(this.string);if(isNaN(ue))return this.charError(m,v);this.string.match(/[0-9]+/)==this.string&&ue.toString()!=this.string?this.onToken(jp,this.string):this.onToken(b9,ue),this.offset+=this.string.length-1,this.string=void 0,v--;break}else if(this.tState===_9)if(m[v]===114)this.tState=w9;else return this.charError(m,v);else if(this.tState===w9)if(m[v]===117)this.tState=C9;else return this.charError(m,v);else if(this.tState===C9)if(m[v]===101)this.tState=pa,this.onToken(g9,!0),this.offset+=3;else return this.charError(m,v);else if(this.tState===S9)if(m[v]===97)this.tState=E9;else return this.charError(m,v);else if(this.tState===E9)if(m[v]===108)this.tState=x9;else return this.charError(m,v);else if(this.tState===x9)if(m[v]===115)this.tState=A9;else return this.charError(m,v);else if(this.tState===A9)if(m[v]===101)this.tState=pa,this.onToken(m9,!1),this.offset+=4;else return this.charError(m,v);else if(this.tState===P9)if(m[v]===117)this.tState=T9;else return this.charError(m,v);else if(this.tState===T9)if(m[v]===108)this.tState=O9;else return this.charError(m,v);else if(this.tState===O9)if(m[v]===108)this.tState=pa,this.onToken(v9,null),this.offset+=3;else return this.charError(m,v)},Hi.onToken=function(m,p){},Hi.parseError=function(m,p){this.tState=y9,this.onError(new Error("Unexpected "+lo.toknam(m)+(p?"("+JSON.stringify(p)+")":"")+" in state "+lo.toknam(this.state)))},Hi.push=function(){this.stack.push({value:this.value,key:this.key,mode:this.mode})},Hi.pop=function(){var m=this.value,p=this.stack.pop();this.value=p.value,this.key=p.key,this.mode=p.mode,this.emit(m),this.mode||(this.state=$l)},Hi.emit=function(m){this.mode&&(this.state=Bp),this.onValue(m)},Hi.onValue=function(m){},Hi.onToken=function(m,p){if(this.state===$l)if(m===jp||m===b9||m===g9||m===m9||m===v9)this.value&&(this.value[this.key]=p),this.emit(p);else if(m===h9)this.push(),this.value?this.value=this.value[this.key]={}:this.value={},this.key=void 0,this.state=$y,this.mode=Up;else if(m===p9)this.push(),this.value?this.value=this.value[this.key]=[]:this.value=[],this.key=0,this.mode=$p,this.state=$l;else if(m===Mp)if(this.mode===Up)this.pop();else return this.parseError(m,p);else if(m===jy)if(this.mode===$p)this.pop();else return this.parseError(m,p);else return this.parseError(m,p);else if(this.state===$y)if(m===jp)this.key=p,this.state=Fp;else if(m===Mp)this.pop();else return this.parseError(m,p);else if(this.state===Fp)if(m===Fp)this.state=$l;else return this.parseError(m,p);else if(this.state===Bp)if(m===Bp)this.mode===$p?(this.key++,this.state=$l):this.mode===Up&&(this.state=$y);else if(m===jy&&this.mode===$p||m===Mp&&this.mode===Up)this.pop();else return this.parseError(m,p);else return this.parseError(m,p)},lo.C=Et;var zp=lo,ahe=qi.Transform,lhe=function(m){H7(p,m);function p(v,E){var T;return Tp(this,p),T=G7(this,Ip(p).call(this,E)),Object.getOwnPropertyNames(By.prototype).forEach(function(D){return T[D]=By.prototype[D]}),T.opts=T.preprocessOpts(v),T._data="",T._hasWritten=!1,T._readableState.objectMode?T.initObjectModeParse():T.opts.ndjson?T.initNDJSONParse():T.initJSONParser(),T.opts.withBOM&&T.push("\uFEFF"),T.opts.fields&&(T.opts.fields=T.preprocessFieldsInfo(T.opts.fields),T.pushHeader()),T}return Op(p,[{key:"initObjectModeParse",value:function(){var E=this;this.parser={write:function(D){E.pushLine(D)},getPendingData:function(){}}}},{key:"initNDJSONParse",value:function(){var E=this;this.parser={_data:"",write:function(D){this._data+=D.toString();var M=this._data.split(`
|
|
134
|
-
`).map(function(xe){return xe.trim()}).filter(function(xe){return xe!==""}),ue=!1;M.forEach(function(xe,Ue){try{E.pushLine(JSON.parse(xe))}catch(Ge){Ue===M.length-1?ue=!0:(Ge.message="Invalid JSON (".concat(xe,")"),E.emit("error",Ge))}}),this._data=ue?this._data.slice(this._data.lastIndexOf(`
|
|
135
|
-
`)):""},getPendingData:function(){return this._data}}}},{key:"initJSONParser",value:function(){var E=this;this.parser=new zp,this.parser.onValue=function(T){this.stack.length===this.depthToEmit&&E.pushLine(T)},this.parser._onToken=this.parser.onToken,this.parser.onToken=function(T,D){E.parser._onToken(T,D),this.stack.length===0&&!E.opts.fields&&this.mode!==zp.C.ARRAY&&this.mode!==zp.C.OBJECT&&this.onError(new Error('Data should not be empty or the "fields" option should be included')),this.stack.length===1&&(this.depthToEmit===void 0&&(this.depthToEmit=this.mode===zp.C.ARRAY?1:0),this.depthToEmit!==0&&this.stack.length===1&&(this.value=void 0))},this.parser.getPendingData=function(){return this.value},this.parser.onError=function(T){T.message.includes("Unexpected")&&(T.message="Invalid JSON (".concat(T.message,")")),E.emit("error",T)}}},{key:"_transform",value:function(E,T,D){this.parser.write(E),D()}},{key:"_flush",value:function(E){this.parser.getPendingData()&&E(new Error("Invalid data received from stdin",this.parser.getPendingData())),E()}},{key:"pushHeader",value:function(){if(this.opts.header){var E=this.getHeader();this.emit("header",E),this.push(E),this._hasWritten=!0}}},{key:"pushLine",value:function(E){var T=this,D=this.preprocessRow(E);this._hasWritten||(this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(Object.keys(D[0])),this.pushHeader()),D.forEach(function(M){var ue=T.processRow(M,T.opts);ue!==void 0&&(T.emit("line",ue),T.push(T._hasWritten?T.opts.eol+ue:ue),T._hasWritten=!0)})}}]),p}(ahe),L9=lhe,che=qi.Transform,uhe=Ss.fastJoin,dhe=function(){function m(p,v){Tp(this,m),this.input=new che(v),this.input._read=function(){},this.transform=new L9(p,v),this.processor=this.input.pipe(this.transform)}return Op(m,[{key:"fromInput",value:function(v){if(this._input)throw new Error("Async parser already has an input.");return this._input=v,this.input=this._input.pipe(this.processor),this}},{key:"throughTransform",value:function(v){if(this._output)throw new Error("Can't add transforms once an output has been added.");return this.processor=this.processor.pipe(v),this}},{key:"toOutput",value:function(v){if(this._output)throw new Error("Async parser already has an output.");return this._output=v,this.processor=this.processor.pipe(v),this}},{key:"promise",value:function(){var v=this,E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return new Promise(function(T,D){if(!E){v.processor.on("finish",function(){return T()}).on("error",function(ue){return D(ue)});return}var M=[];v.processor.on("data",function(ue){return M.push(ue.toString())}).on("finish",function(){return T(uhe(M,""))}).on("error",function(ue){return D(ue)})})}}]),m}(),k9=dhe;function fhe(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=m.objects,v=p===void 0?!0:p,E=m.arrays,T=E===void 0?!1:E,D=m.separator,M=D===void 0?".":D;function ue(xe,Ue,Ge){return Object.keys(xe).forEach(function(tt){var Xt=Ge?"".concat(Ge).concat(M).concat(tt):tt,jt=xe[tt];if(v&&Cs(jt)==="object"&&jt!==null&&!Array.isArray(jt)&&Object.prototype.toString.call(jt.toJSON)!=="[object Function]"&&Object.keys(jt).length){ue(jt,Ue,Xt);return}if(T&&Array.isArray(jt)){ue(jt,Ue,Xt);return}Ue[Xt]=jt}),Ue}return function(xe){return ue(xe,{})}}var hhe=fhe,phe=Ss.setProp,ghe=Ss.unsetProp,M9=Ss.flattenReducer;function Vy(m,p){return Object.keys(m).reduce(function(v,E){var T=p?"".concat(p,".").concat(E):E,D=m[E];return Cs(D)==="object"&&D!==null&&!Array.isArray(D)&&Object.prototype.toString.call(D.toJSON)!=="[object Function]"&&Object.keys(D).length?v=v.concat(Vy(D,T)):Array.isArray(D)&&(v.push(T),v=v.concat(D.map(function(M){return Vy(M,T)}).reduce(M9,[]).filter(function(M,ue,xe){return xe.indexOf(M)!==ue}))),v},[])}function mhe(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=m.paths,v=p===void 0?void 0:p,E=m.blankOut,T=E===void 0?!1:E;function D(M,ue){return M.map(function(xe){var Ue=Fy(xe,ue);return Array.isArray(Ue)?Ue.length?Ue.map(function(Ge,tt){var Xt=T&&tt>0?{}:xe;return phe(Xt,ue,Ge)}):ghe(xe,ue):xe}).reduce(M9,[])}return v=Array.isArray(v)?v:v?[v]:void 0,function(M){return(v||Vy(M)).reduce(D,[M])}}var vhe=mhe,F9=qi.Readable,B9=f9,j9=k9,U9=L9,$9=function(p,v){return new f9(v).parse(p)},V9=function(p,v,E){try{p instanceof F9||(E=Object.assign({},E,{objectMode:!0}));var T=new k9(v,E),D=T.promise();return Array.isArray(p)?(p.forEach(function(M){return T.input.push(M)}),T.input.push(null)):p instanceof F9?T.fromInput(p):(T.input.push(p),T.input.push(null)),D}catch(M){return Promise.reject(M)}},z9={flatten:hhe,unwind:vhe},bhe={Parser:B9,AsyncParser:j9,Transform:U9,parse:$9,parseAsync:V9,transforms:z9};n.AsyncParser=j9,n.Parser=B9,n.Transform=U9,n.default=bhe,n.parse=$9,n.parseAsync=V9,n.transforms=z9,Object.defineProperty(n,"__esModule",{value:!0})})})(nv,nv.exports);var gJ=nv.exports;const iv={entitys:[{type:"maltego.AS",columnsFields:["maltego.AS","AS Number","Attachments"],columnsFieldsTitle:{"maltego.AS":"EntityID","AS Number":"as.number",Attachments:"property.atts31415237681098"}},{type:"maltego.CVE",columnsFields:["maltego.CVE","CVSS","CVSS Rating Color","CVE","Attachments"],columnsFieldsTitle:{"maltego.CVE":"EntityID",CVSS:"cvss","CVSS Rating Color":"cvssRatingColor",CVE:"text",Attachments:"property.atts31415237681098"}},{type:"maltego.Document",columnsFields:["maltego.Document","Title","Meta-Data","URL","Attachments"],columnsFieldsTitle:{"maltego.Document":"EntityID",Title:"title","Meta-Data":"document.meta-data",URL:"url",Attachments:"property.atts31415237681098"}},{type:"maltego.Domain",columnsFields:["maltego.Domain","Domain Name","WHOIS Info","Attachments"],columnsFieldsTitle:{"maltego.Domain":"EntityID","Domain Name":"fqdn","WHOIS Info":"whois-info",Attachments:"property.atts31415237681098"}},{type:"maltego.EmailAddress",columnsFields:["maltego.EmailAddress","Email Address","Attachments"],columnsFieldsTitle:{"maltego.EmailAddress":"EntityID","Email Address":"email",Attachments:"property.atts31415237681098"}},{type:"maltego.Hash",columnsFields:["maltego.Hash","Hash","Hash Type","Owner","Before","After","Included Media Types","Excluded Media Types","Attachments"],columnsFieldsTitle:{"maltego.Hash":"EntityID",Hash:"properties.hash","Hash Type":"type",Owner:"owner",Before:"before",After:"after","Included Media Types":"includeMediaType","Excluded Media Types":"excludeMediaType",Attachments:"property.atts31415237681098"}},{type:"maltego.IPv4Address",columnsFields:["maltego.IPv4Address","IP Address","Internal","Attachments"],columnsFieldsTitle:{"maltego.IPv4Address":"EntityID","IP Address":"ipv4-address",Internal:"ipaddress.internal",Attachments:"property.atts31415237681098"}},{type:"maltego.Organization",columnsFields:["maltego.Organization","Name","Attachments"],columnsFieldsTitle:{"maltego.Organization":"EntityID",Name:"title",Attachments:"property.atts31415237681098"}},{type:"maltego.URL",columnsFields:["maltego.URL","Short title","URL","Title","Attachments"],columnsFieldsTitle:{"maltego.URL":"EntityID","Short title":"short-title",URL:"url",Title:"title",Attachments:"property.atts31415237681098"}},{type:"maltego.Service",columnsFields:["maltego.Service","Description","Port","Service banner","Service","Attachments"],columnsFieldsTitle:{"maltego.Service":"EntityID",Description:"service.name",Port:"port.number","Service banner":"banner.text",Service:"properties.service",Attachments:"property.atts31415237681098"}},{type:"maltego.UniqueIdentifier",columnsFields:["maltego.UniqueIdentifier","UniqueIdentifier","Identifier Type","Attachments"],columnsFieldsTitle:{"maltego.UniqueIdentifier":"EntityID",UniqueIdentifier:"properties.uniqueidentifier","Identifier Type":"identifierType",Attachments:"property.atts31415237681098"}},{type:"maltego.X509Certificate",columnsFields:["maltego.X509Certificate","Subject","Issuer","Subject DN","Issuer DN","SKI","AKI","Serial","SAN","Usage","Issuance ID","Valid From","Valid Until","Country","Organization","Attachments"],columnsFieldsTitle:{"maltego.X509Certificate":"EntityID",Subject:"subject",Issuer:"issuer","Subject DN":"subjectDN","Issuer DN":"issuerDN",SKI:"ski",AKI:"aki",Serial:"serial",SAN:"san",Usage:"usage","Issuance ID":"issuanceId","Valid From":"validFrom","Valid Until":"validTo",Country:"country",Organization:"organization",Attachments:"property.atts31415237681098"}},{type:"yourorganization.CertHttps",columnsFields:["yourorganization.CertHttps","Cert Https"]},{type:"yourorganization.PublicReport",columnsFields:["yourorganization.PublicReport","Public Report"]}],link:{columnsFields:["Maltego Link","Source Entity ID","Target Entity ID","Label","Show Label","Color","Style","Thickness","Description"],columnsFieldsTitle:{"Maltego Link":"LinkID","Source Entity ID":"SourceEntityID","Target Entity ID":"TargetEntityID",Label:"maltego.link.manual.type","Show Label":"maltego.link.show-label",Color:"maltego.link.color",Style:"maltego.link.style",Thickness:"maltego.link.thickness",Description:"maltego.link.manual.description"}}},T8={nodeMap:{nodeType:"maltego.Service",ip:"maltego.IPv4Address",domain:"maltego.Domain",url:"maltego.URL",md5:"maltego.Hash",family:"maltego.AS",org:"maltego.Organization",thumbprint_md5:"maltego.X509Certificate",cert_https:"maltego.UniqueIdentifier",vul:"maltego.CVE",report:"maltego.Document",email:"maltego.EmailAddress"},nodeMapReverse:{"maltego.Service":"nodeType","maltego.IPv4Address":"ip","maltego.Domain":"domain","maltego.URL":"url","maltego.Hash":"md5","maltego.AS":"family","maltego.Organization":"org","maltego.X509Certificate":"thumbprint_md5","maltego.UniqueIdentifier":"cert_https","maltego.CVE":"vul","maltego.Document":"report","maltego.EmailAddress":"email"}};class mJ{constructor(t){this.nodesData=this.formatNodesData(t.nodes),this.linksData=t.links,this.mtgEntitysData=[],this.mtgLinksData=[],this.entityIdPrefix=this.getRanDomStr(10),this.csv="",console.log(t),console.log(this.nodesData),this.init()}init(){for(const t in this.nodesData)this.csv+=this.generateEntityRowsCsv(t,this.nodesData[t])+`
|
|
136
|
-
|
|
137
|
-
`;this.linksData.length>0&&(this.csv+=this.generateLinksRowsCsv(this.linksData))}formatNodesData(t){const n={};let r="";for(let s=0;s<t.length;s++)r=t[s].type,n[r]?n[r].push(t[s]):n[r]=new Array(t[s]);return n}generateEntityRowsCsv(t,n){const r=T8.nodeMap[t],s=this.getEntityConfigDetail(r),o=this.formatEntityData(s,n),a=s[0].columnsFields.concat(this.getNodeDetailFields(n).fields);return console.log(o),this.generateCsv(a,o)}getNodeDetailFields(t){const n=t[0];let r=["tags"];const s={};return n&&n.detail&&n.detail.info&&n.detail.info.basic&&(r=r.concat(Object.keys(n.detail.info.basic))),r.map(o=>{s[o]=o}),{fields:r,fieldsTitle:s}}getNodeDetailObj(t){let n={},r=[];return t&&t.detail&&(t.detail.tags.length>0&&(r=t.detail.tags.map(s=>s.name)),n.tags=r.join(),t.detail.info&&t.detail.info.basic&&(n=Object.assign({},n,t.detail.info.basic))),n}formatEntityData(t,n){const r=t[0].columnsFields,s=t[0].columnsFieldsTitle,o=Object.assign({},s,this.getNodeDetailFields(n).fieldsTitle);let a=new Array(o);const l=n.map(c=>{let u={};const d=this.entityIdPrefix+this.getRanDomStr(3);return r.map((f,h)=>{h===0?u[f]=d:h===1?u[f]=c.id:u[f]=""}),u.entityId=d,u.nodeId=c.id,u=Object.assign({},u,this.getNodeDetailObj(c)),u});return this.mtgEntitysData=this.mtgEntitysData.concat(l),a=a.concat(l),a}getEntityConfigDetail(t){return iv.entitys.filter(r=>r.type===t)}generateLinksRowsCsv(t){const n=iv.link,r=this.formatLinkData(n,t);return console.log(r),this.generateCsv(n.columnsFields,r)}formatLinkData(t,n){const r=t.columnsFields;let s=new Array(t.columnsFieldsTitle);const o=n.map(a=>{const l={},c=a.target.type==="nodeType"?a.target.name:"";return l[r[0]]=this.entityIdPrefix+this.getRanDomStr(3),l[r[1]]=this.getLinkEntityId(a.source.id),l[r[2]]=this.getLinkEntityId(a.target.id),l[r[3]]=c,l[r[4]]=0,l.sourceId=a.source.id,l.targetId=a.target.id,l});return this.mtgLinksData=this.mtgLinksData.concat(o),s=s.concat(o),s}getLinkEntityId(t){const n=this.mtgEntitysData.filter(r=>r.nodeId===t);return n?n[0].entityId:""}generateEntityID(){return this.entityIdPrefix+this.getRanDomStr(3)}generateCsv(t,n){return new gJ.Parser({fields:t,withBOM:!0}).parse(n)}getRanDomStr(t){const n="0123456789abcdefghijklmnopqrstuvwxyz",r=n.length;let s="";for(let o=0;o<t;o++)s+=n.charAt(Math.ceil(Math.random()*(r-1)));return s}outputCsvFile(){return this.csv}}var O8=typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},Nr=[],Ri=[],vJ=typeof Uint8Array!="undefined"?Uint8Array:Array,rv=!1;function N8(){rv=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t<n;++t)Nr[t]=e[t],Ri[e.charCodeAt(t)]=t;Ri["-".charCodeAt(0)]=62,Ri["_".charCodeAt(0)]=63}function bJ(e){rv||N8();var t,n,r,s,o,a,l=e.length;if(l%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o=e[l-2]==="="?2:e[l-1]==="="?1:0,a=new vJ(l*3/4-o),r=o>0?l-4:l;var c=0;for(t=0,n=0;t<r;t+=4,n+=3)s=Ri[e.charCodeAt(t)]<<18|Ri[e.charCodeAt(t+1)]<<12|Ri[e.charCodeAt(t+2)]<<6|Ri[e.charCodeAt(t+3)],a[c++]=s>>16&255,a[c++]=s>>8&255,a[c++]=s&255;return o===2?(s=Ri[e.charCodeAt(t)]<<2|Ri[e.charCodeAt(t+1)]>>4,a[c++]=s&255):o===1&&(s=Ri[e.charCodeAt(t)]<<10|Ri[e.charCodeAt(t+1)]<<4|Ri[e.charCodeAt(t+2)]>>2,a[c++]=s>>8&255,a[c++]=s&255),a}function yJ(e){return Nr[e>>18&63]+Nr[e>>12&63]+Nr[e>>6&63]+Nr[e&63]}function _J(e,t,n){for(var r,s=[],o=t;o<n;o+=3)r=(e[o]<<16)+(e[o+1]<<8)+e[o+2],s.push(yJ(r));return s.join("")}function I8(e){rv||N8();for(var t,n=e.length,r=n%3,s="",o=[],a=16383,l=0,c=n-r;l<c;l+=a)o.push(_J(e,l,l+a>c?c:l+a));return r===1?(t=e[n-1],s+=Nr[t>>2],s+=Nr[t<<4&63],s+="=="):r===2&&(t=(e[n-2]<<8)+e[n-1],s+=Nr[t>>10],s+=Nr[t>>4&63],s+=Nr[t<<2&63],s+="="),o.push(s),o.join("")}function Ff(e,t,n,r,s){var o,a,l=s*8-r-1,c=(1<<l)-1,u=c>>1,d=-7,f=n?s-1:0,h=n?-1:1,g=e[t+f];for(f+=h,o=g&(1<<-d)-1,g>>=-d,d+=l;d>0;o=o*256+e[t+f],f+=h,d-=8);for(a=o&(1<<-d)-1,o>>=-d,d+=r;d>0;a=a*256+e[t+f],f+=h,d-=8);if(o===0)o=1-u;else{if(o===c)return a?NaN:(g?-1:1)*(1/0);a=a+Math.pow(2,r),o=o-u}return(g?-1:1)*a*Math.pow(2,o-r)}function R8(e,t,n,r,s,o){var a,l,c,u=o*8-s-1,d=(1<<u)-1,f=d>>1,h=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=r?0:o-1,b=r?1:-1,y=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,a=d):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),a+f>=1?t+=h/c:t+=h*Math.pow(2,1-f),t*c>=2&&(a++,c/=2),a+f>=d?(l=0,a=d):a+f>=1?(l=(t*c-1)*Math.pow(2,s),a=a+f):(l=t*Math.pow(2,f-1)*Math.pow(2,s),a=0));s>=8;e[n+g]=l&255,g+=b,l/=256,s-=8);for(a=a<<s|l,u+=s;u>0;e[n+g]=a&255,g+=b,a/=256,u-=8);e[n+g-b]|=y*128}var wJ={}.toString,D8=Array.isArray||function(e){return wJ.call(e)=="[object Array]"},CJ=50;ye.TYPED_ARRAY_SUPPORT=O8.TYPED_ARRAY_SUPPORT!==void 0?O8.TYPED_ARRAY_SUPPORT:!0,Bf();function Bf(){return ye.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function us(e,t){if(Bf()<t)throw new RangeError("Invalid typed array length");return ye.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=ye.prototype):(e===null&&(e=new ye(t)),e.length=t),e}function ye(e,t,n){if(!ye.TYPED_ARRAY_SUPPORT&&!(this instanceof ye))return new ye(e,t,n);if(typeof e=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return sv(this,e)}return L8(this,e,t,n)}ye.poolSize=8192,ye._augment=function(e){return e.__proto__=ye.prototype,e};function L8(e,t,n,r){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&t instanceof ArrayBuffer?xJ(e,t,n,r):typeof t=="string"?EJ(e,t,n):AJ(e,t)}ye.from=function(e,t,n){return L8(null,e,t,n)},ye.TYPED_ARRAY_SUPPORT&&(ye.prototype.__proto__=Uint8Array.prototype,ye.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&ye[Symbol.species]);function k8(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function SJ(e,t,n,r){return k8(t),t<=0?us(e,t):n!==void 0?typeof r=="string"?us(e,t).fill(n,r):us(e,t).fill(n):us(e,t)}ye.alloc=function(e,t,n){return SJ(null,e,t,n)};function sv(e,t){if(k8(t),e=us(e,t<0?0:av(t)|0),!ye.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}ye.allocUnsafe=function(e){return sv(null,e)},ye.allocUnsafeSlow=function(e){return sv(null,e)};function EJ(e,t,n){if((typeof n!="string"||n==="")&&(n="utf8"),!ye.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=M8(t,n)|0;e=us(e,r);var s=e.write(t,n);return s!==r&&(e=e.slice(0,s)),e}function ov(e,t){var n=t.length<0?0:av(t.length)|0;e=us(e,n);for(var r=0;r<n;r+=1)e[r]=t[r]&255;return e}function xJ(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return n===void 0&&r===void 0?t=new Uint8Array(t):r===void 0?t=new Uint8Array(t,n):t=new Uint8Array(t,n,r),ye.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=ye.prototype):e=ov(e,t),e}function AJ(e,t){if(Ir(t)){var n=av(t.length)|0;return e=us(e,n),e.length===0||t.copy(e,0,0,n),e}if(t){if(typeof ArrayBuffer!="undefined"&&t.buffer instanceof ArrayBuffer||"length"in t)return typeof t.length!="number"||HJ(t.length)?us(e,0):ov(e,t);if(t.type==="Buffer"&&D8(t.data))return ov(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function av(e){if(e>=Bf())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Bf().toString(16)+" bytes");return e|0}ye.isBuffer=Di;function Ir(e){return!!(e!=null&&e._isBuffer)}ye.compare=function(t,n){if(!Ir(t)||!Ir(n))throw new TypeError("Arguments must be Buffers");if(t===n)return 0;for(var r=t.length,s=n.length,o=0,a=Math.min(r,s);o<a;++o)if(t[o]!==n[o]){r=t[o],s=n[o];break}return r<s?-1:s<r?1:0},ye.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},ye.concat=function(t,n){if(!D8(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return ye.alloc(0);var r;if(n===void 0)for(n=0,r=0;r<t.length;++r)n+=t[r].length;var s=ye.allocUnsafe(n),o=0;for(r=0;r<t.length;++r){var a=t[r];if(!Ir(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(s,o),o+=a.length}return s};function M8(e,t){if(Ir(e))return e.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var n=e.length;if(n===0)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return $f(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return H8(e).length;default:if(r)return $f(e).length;t=(""+t).toLowerCase(),r=!0}}ye.byteLength=M8;function PJ(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return FJ(this,t,n);case"utf8":case"utf-8":return U8(this,t,n);case"ascii":return kJ(this,t,n);case"latin1":case"binary":return MJ(this,t,n);case"base64":return DJ(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return BJ(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}ye.prototype._isBuffer=!0;function Wo(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}ye.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<t;n+=2)Wo(this,n,n+1);return this},ye.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<t;n+=4)Wo(this,n,n+3),Wo(this,n+1,n+2);return this},ye.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<t;n+=8)Wo(this,n,n+7),Wo(this,n+1,n+6),Wo(this,n+2,n+5),Wo(this,n+3,n+4);return this},ye.prototype.toString=function(){var t=this.length|0;return t===0?"":arguments.length===0?U8(this,0,t):PJ.apply(this,arguments)},ye.prototype.equals=function(t){if(!Ir(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:ye.compare(this,t)===0},ye.prototype.inspect=function(){var t="",n=CJ;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},ye.prototype.compare=function(t,n,r,s,o){if(!Ir(t))throw new TypeError("Argument must be a Buffer");if(n===void 0&&(n=0),r===void 0&&(r=t?t.length:0),s===void 0&&(s=0),o===void 0&&(o=this.length),n<0||r>t.length||s<0||o>this.length)throw new RangeError("out of range index");if(s>=o&&n>=r)return 0;if(s>=o)return-1;if(n>=r)return 1;if(n>>>=0,r>>>=0,s>>>=0,o>>>=0,this===t)return 0;for(var a=o-s,l=r-n,c=Math.min(a,l),u=this.slice(s,o),d=t.slice(n,r),f=0;f<c;++f)if(u[f]!==d[f]){a=u[f],l=d[f];break}return a<l?-1:l<a?1:0};function F8(e,t,n,r,s){if(e.length===0)return-1;if(typeof n=="string"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=s?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(s)return-1;n=e.length-1}else if(n<0)if(s)n=0;else return-1;if(typeof t=="string"&&(t=ye.from(t,r)),Ir(t))return t.length===0?-1:B8(e,t,n,r,s);if(typeof t=="number")return t=t&255,ye.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?s?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):B8(e,[t],n,r,s);throw new TypeError("val must be string, number or Buffer")}function B8(e,t,n,r,s){var o=1,a=e.length,l=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(e.length<2||t.length<2)return-1;o=2,a/=2,l/=2,n/=2}function c(g,b){return o===1?g[b]:g.readUInt16BE(b*o)}var u;if(s){var d=-1;for(u=n;u<a;u++)if(c(e,u)===c(t,d===-1?0:u-d)){if(d===-1&&(d=u),u-d+1===l)return d*o}else d!==-1&&(u-=u-d),d=-1}else for(n+l>a&&(n=a-l),u=n;u>=0;u--){for(var f=!0,h=0;h<l;h++)if(c(e,u+h)!==c(t,h)){f=!1;break}if(f)return u}return-1}ye.prototype.includes=function(t,n,r){return this.indexOf(t,n,r)!==-1},ye.prototype.indexOf=function(t,n,r){return F8(this,t,n,r,!0)},ye.prototype.lastIndexOf=function(t,n,r){return F8(this,t,n,r,!1)};function TJ(e,t,n,r){n=Number(n)||0;var s=e.length-n;r?(r=Number(r),r>s&&(r=s)):r=s;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var l=parseInt(t.substr(a*2,2),16);if(isNaN(l))return a;e[n+a]=l}return a}function OJ(e,t,n,r){return Vf($f(t,e.length-n),e,n,r)}function j8(e,t,n,r){return Vf(zJ(t),e,n,r)}function NJ(e,t,n,r){return j8(e,t,n,r)}function IJ(e,t,n,r){return Vf(H8(t),e,n,r)}function RJ(e,t,n,r){return Vf(qJ(t,e.length-n),e,n,r)}ye.prototype.write=function(t,n,r,s){if(n===void 0)s="utf8",r=this.length,n=0;else if(r===void 0&&typeof n=="string")s=n,r=this.length,n=0;else if(isFinite(n))n=n|0,isFinite(r)?(r=r|0,s===void 0&&(s="utf8")):(s=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-n;if((r===void 0||r>o)&&(r=o),t.length>0&&(r<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");s||(s="utf8");for(var a=!1;;)switch(s){case"hex":return TJ(this,t,n,r);case"utf8":case"utf-8":return OJ(this,t,n,r);case"ascii":return j8(this,t,n,r);case"latin1":case"binary":return NJ(this,t,n,r);case"base64":return IJ(this,t,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return RJ(this,t,n,r);default:if(a)throw new TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),a=!0}},ye.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function DJ(e,t,n){return t===0&&n===e.length?I8(e):I8(e.slice(t,n))}function U8(e,t,n){n=Math.min(e.length,n);for(var r=[],s=t;s<n;){var o=e[s],a=null,l=o>239?4:o>223?3:o>191?2:1;if(s+l<=n){var c,u,d,f;switch(l){case 1:o<128&&(a=o);break;case 2:c=e[s+1],(c&192)===128&&(f=(o&31)<<6|c&63,f>127&&(a=f));break;case 3:c=e[s+1],u=e[s+2],(c&192)===128&&(u&192)===128&&(f=(o&15)<<12|(c&63)<<6|u&63,f>2047&&(f<55296||f>57343)&&(a=f));break;case 4:c=e[s+1],u=e[s+2],d=e[s+3],(c&192)===128&&(u&192)===128&&(d&192)===128&&(f=(o&15)<<18|(c&63)<<12|(u&63)<<6|d&63,f>65535&&f<1114112&&(a=f))}}a===null?(a=65533,l=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|a&1023),r.push(a),s+=l}return LJ(r)}var $8=4096;function LJ(e){var t=e.length;if(t<=$8)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=$8));return n}function kJ(e,t,n){var r="";n=Math.min(e.length,n);for(var s=t;s<n;++s)r+=String.fromCharCode(e[s]&127);return r}function MJ(e,t,n){var r="";n=Math.min(e.length,n);for(var s=t;s<n;++s)r+=String.fromCharCode(e[s]);return r}function FJ(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var s="",o=t;o<n;++o)s+=VJ(e[o]);return s}function BJ(e,t,n){for(var r=e.slice(t,n),s="",o=0;o<r.length;o+=2)s+=String.fromCharCode(r[o]+r[o+1]*256);return s}ye.prototype.slice=function(t,n){var r=this.length;t=~~t,n=n===void 0?r:~~n,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),n<t&&(n=t);var s;if(ye.TYPED_ARRAY_SUPPORT)s=this.subarray(t,n),s.__proto__=ye.prototype;else{var o=n-t;s=new ye(o,void 0);for(var a=0;a<o;++a)s[a]=this[a+t]}return s};function Sn(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}ye.prototype.readUIntLE=function(t,n,r){t=t|0,n=n|0,r||Sn(t,n,this.length);for(var s=this[t],o=1,a=0;++a<n&&(o*=256);)s+=this[t+a]*o;return s},ye.prototype.readUIntBE=function(t,n,r){t=t|0,n=n|0,r||Sn(t,n,this.length);for(var s=this[t+--n],o=1;n>0&&(o*=256);)s+=this[t+--n]*o;return s},ye.prototype.readUInt8=function(t,n){return n||Sn(t,1,this.length),this[t]},ye.prototype.readUInt16LE=function(t,n){return n||Sn(t,2,this.length),this[t]|this[t+1]<<8},ye.prototype.readUInt16BE=function(t,n){return n||Sn(t,2,this.length),this[t]<<8|this[t+1]},ye.prototype.readUInt32LE=function(t,n){return n||Sn(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216},ye.prototype.readUInt32BE=function(t,n){return n||Sn(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])},ye.prototype.readIntLE=function(t,n,r){t=t|0,n=n|0,r||Sn(t,n,this.length);for(var s=this[t],o=1,a=0;++a<n&&(o*=256);)s+=this[t+a]*o;return o*=128,s>=o&&(s-=Math.pow(2,8*n)),s},ye.prototype.readIntBE=function(t,n,r){t=t|0,n=n|0,r||Sn(t,n,this.length);for(var s=n,o=1,a=this[t+--s];s>0&&(o*=256);)a+=this[t+--s]*o;return o*=128,a>=o&&(a-=Math.pow(2,8*n)),a},ye.prototype.readInt8=function(t,n){return n||Sn(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]},ye.prototype.readInt16LE=function(t,n){n||Sn(t,2,this.length);var r=this[t]|this[t+1]<<8;return r&32768?r|4294901760:r},ye.prototype.readInt16BE=function(t,n){n||Sn(t,2,this.length);var r=this[t+1]|this[t]<<8;return r&32768?r|4294901760:r},ye.prototype.readInt32LE=function(t,n){return n||Sn(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},ye.prototype.readInt32BE=function(t,n){return n||Sn(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},ye.prototype.readFloatLE=function(t,n){return n||Sn(t,4,this.length),Ff(this,t,!0,23,4)},ye.prototype.readFloatBE=function(t,n){return n||Sn(t,4,this.length),Ff(this,t,!1,23,4)},ye.prototype.readDoubleLE=function(t,n){return n||Sn(t,8,this.length),Ff(this,t,!0,52,8)},ye.prototype.readDoubleBE=function(t,n){return n||Sn(t,8,this.length),Ff(this,t,!1,52,8)};function si(e,t,n,r,s,o){if(!Ir(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>s||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}ye.prototype.writeUIntLE=function(t,n,r,s){if(t=+t,n=n|0,r=r|0,!s){var o=Math.pow(2,8*r)-1;si(this,t,n,r,o,0)}var a=1,l=0;for(this[n]=t&255;++l<r&&(a*=256);)this[n+l]=t/a&255;return n+r},ye.prototype.writeUIntBE=function(t,n,r,s){if(t=+t,n=n|0,r=r|0,!s){var o=Math.pow(2,8*r)-1;si(this,t,n,r,o,0)}var a=r-1,l=1;for(this[n+a]=t&255;--a>=0&&(l*=256);)this[n+a]=t/l&255;return n+r},ye.prototype.writeUInt8=function(t,n,r){return t=+t,n=n|0,r||si(this,t,n,1,255,0),ye.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[n]=t&255,n+1};function jf(e,t,n,r){t<0&&(t=65535+t+1);for(var s=0,o=Math.min(e.length-n,2);s<o;++s)e[n+s]=(t&255<<8*(r?s:1-s))>>>(r?s:1-s)*8}ye.prototype.writeUInt16LE=function(t,n,r){return t=+t,n=n|0,r||si(this,t,n,2,65535,0),ye.TYPED_ARRAY_SUPPORT?(this[n]=t&255,this[n+1]=t>>>8):jf(this,t,n,!0),n+2},ye.prototype.writeUInt16BE=function(t,n,r){return t=+t,n=n|0,r||si(this,t,n,2,65535,0),ye.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=t&255):jf(this,t,n,!1),n+2};function Uf(e,t,n,r){t<0&&(t=4294967295+t+1);for(var s=0,o=Math.min(e.length-n,4);s<o;++s)e[n+s]=t>>>(r?s:3-s)*8&255}ye.prototype.writeUInt32LE=function(t,n,r){return t=+t,n=n|0,r||si(this,t,n,4,4294967295,0),ye.TYPED_ARRAY_SUPPORT?(this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=t&255):Uf(this,t,n,!0),n+4},ye.prototype.writeUInt32BE=function(t,n,r){return t=+t,n=n|0,r||si(this,t,n,4,4294967295,0),ye.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255):Uf(this,t,n,!1),n+4},ye.prototype.writeIntLE=function(t,n,r,s){if(t=+t,n=n|0,!s){var o=Math.pow(2,8*r-1);si(this,t,n,r,o-1,-o)}var a=0,l=1,c=0;for(this[n]=t&255;++a<r&&(l*=256);)t<0&&c===0&&this[n+a-1]!==0&&(c=1),this[n+a]=(t/l>>0)-c&255;return n+r},ye.prototype.writeIntBE=function(t,n,r,s){if(t=+t,n=n|0,!s){var o=Math.pow(2,8*r-1);si(this,t,n,r,o-1,-o)}var a=r-1,l=1,c=0;for(this[n+a]=t&255;--a>=0&&(l*=256);)t<0&&c===0&&this[n+a+1]!==0&&(c=1),this[n+a]=(t/l>>0)-c&255;return n+r},ye.prototype.writeInt8=function(t,n,r){return t=+t,n=n|0,r||si(this,t,n,1,127,-128),ye.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[n]=t&255,n+1},ye.prototype.writeInt16LE=function(t,n,r){return t=+t,n=n|0,r||si(this,t,n,2,32767,-32768),ye.TYPED_ARRAY_SUPPORT?(this[n]=t&255,this[n+1]=t>>>8):jf(this,t,n,!0),n+2},ye.prototype.writeInt16BE=function(t,n,r){return t=+t,n=n|0,r||si(this,t,n,2,32767,-32768),ye.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=t&255):jf(this,t,n,!1),n+2},ye.prototype.writeInt32LE=function(t,n,r){return t=+t,n=n|0,r||si(this,t,n,4,2147483647,-2147483648),ye.TYPED_ARRAY_SUPPORT?(this[n]=t&255,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24):Uf(this,t,n,!0),n+4},ye.prototype.writeInt32BE=function(t,n,r){return t=+t,n=n|0,r||si(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),ye.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=t&255):Uf(this,t,n,!1),n+4};function V8(e,t,n,r,s,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function z8(e,t,n,r,s){return s||V8(e,t,n,4),R8(e,t,n,r,23,4),n+4}ye.prototype.writeFloatLE=function(t,n,r){return z8(this,t,n,!0,r)},ye.prototype.writeFloatBE=function(t,n,r){return z8(this,t,n,!1,r)};function q8(e,t,n,r,s){return s||V8(e,t,n,8),R8(e,t,n,r,52,8),n+8}ye.prototype.writeDoubleLE=function(t,n,r){return q8(this,t,n,!0,r)},ye.prototype.writeDoubleBE=function(t,n,r){return q8(this,t,n,!1,r)},ye.prototype.copy=function(t,n,r,s){if(r||(r=0),!s&&s!==0&&(s=this.length),n>=t.length&&(n=t.length),n||(n=0),s>0&&s<r&&(s=r),s===r||t.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(s<0)throw new RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),t.length-n<s-r&&(s=t.length-n+r);var o=s-r,a;if(this===t&&r<n&&n<s)for(a=o-1;a>=0;--a)t[a+n]=this[a+r];else if(o<1e3||!ye.TYPED_ARRAY_SUPPORT)for(a=0;a<o;++a)t[a+n]=this[a+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),n);return o},ye.prototype.fill=function(t,n,r,s){if(typeof t=="string"){if(typeof n=="string"?(s=n,n=0,r=this.length):typeof r=="string"&&(s=r,r=this.length),t.length===1){var o=t.charCodeAt(0);o<256&&(t=o)}if(s!==void 0&&typeof s!="string")throw new TypeError("encoding must be a string");if(typeof s=="string"&&!ye.isEncoding(s))throw new TypeError("Unknown encoding: "+s)}else typeof t=="number"&&(t=t&255);if(n<0||this.length<n||this.length<r)throw new RangeError("Out of range index");if(r<=n)return this;n=n>>>0,r=r===void 0?this.length:r>>>0,t||(t=0);var a;if(typeof t=="number")for(a=n;a<r;++a)this[a]=t;else{var l=Ir(t)?t:$f(new ye(t,s).toString()),c=l.length;for(a=0;a<r-n;++a)this[a+n]=l[a%c]}return this};var jJ=/[^+\/0-9A-Za-z-_]/g;function UJ(e){if(e=$J(e).replace(jJ,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function $J(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function VJ(e){return e<16?"0"+e.toString(16):e.toString(16)}function $f(e,t){t=t||1/0;for(var n,r=e.length,s=null,o=[],a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!s){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}s=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),s=n;continue}n=(s-55296<<10|n-56320)+65536}else s&&(t-=3)>-1&&o.push(239,191,189);if(s=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return o}function zJ(e){for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function qJ(e,t){for(var n,r,s,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,s=n%256,o.push(s),o.push(r);return o}function H8(e){return bJ(UJ(e))}function Vf(e,t,n,r){for(var s=0;s<r&&!(s+n>=t.length||s>=e.length);++s)t[s+n]=e[s];return s}function HJ(e){return e!==e}function Di(e){return e!=null&&(!!e._isBuffer||G8(e)||GJ(e))}function G8(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function GJ(e){return typeof e.readFloatLE=="function"&&typeof e.slice=="function"&&G8(e.slice(0,0))}class kt extends Error{constructor(t,n,r,...s){Array.isArray(n)&&(n=n.join(" ").trim()),super(n),Error.captureStackTrace!==void 0&&Error.captureStackTrace(this,kt),this.code=t;for(const o of s)for(const a in o){const l=o[a];this[a]=Di(l)?l.toString(r.encoding):l==null?l:JSON.parse(JSON.stringify(l))}}}const WJ=function(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)},W8=function(e){const t=[];for(let n=0,r=e.length;n<r;n++){const s=e[n];if(s==null||s===!1)t[n]={disabled:!0};else if(typeof s=="string")t[n]={name:s};else if(WJ(s)){if(typeof s.name!="string")throw new kt("CSV_OPTION_COLUMNS_MISSING_NAME",["Option columns missing name:",`property "name" is required at position ${n}`,"when column is an object literal"]);t[n]=s}else throw new kt("CSV_INVALID_COLUMN_DEFINITION",["Invalid column definition:","expect a string or a literal object,",`got ${JSON.stringify(s)} at position ${n}`])}return t};class K8{constructor(t=100){this.size=t,this.length=0,this.buf=ye.allocUnsafe(t)}prepend(t){if(Di(t)){const n=this.length+t.length;if(n>=this.size&&(this.resize(),n>=this.size))throw Error("INVALID_BUFFER_STATE");const r=this.buf;this.buf=ye.allocUnsafe(this.size),t.copy(this.buf,0),r.copy(this.buf,t.length),this.length+=t.length}else{const n=this.length++;n===this.size&&this.resize();const r=this.clone();this.buf[0]=t,r.copy(this.buf,1,0,n)}}append(t){const n=this.length++;n===this.size&&this.resize(),this.buf[n]=t}clone(){return ye.from(this.buf.slice(0,this.length))}resize(){const t=this.length;this.size=this.size*2;const n=ye.allocUnsafe(this.size);this.buf.copy(n,0,0,t),this.buf=n}toString(t){return t?this.buf.slice(0,this.length).toString(t):Uint8Array.prototype.slice.call(this.buf.slice(0,this.length))}toJSON(){return this.toString("utf8")}reset(){this.length=0}}const KJ=12,JJ=13,YJ=10,XJ=32,ZJ=9,QJ=function(e){return{bomSkipped:!1,bufBytesStart:0,castField:e.cast_function,commenting:!1,error:void 0,enabled:e.from_line===1,escaping:!1,escapeIsQuote:Di(e.escape)&&Di(e.quote)&&ye.compare(e.escape,e.quote)===0,expectedRecordLength:Array.isArray(e.columns)?e.columns.length:void 0,field:new K8(20),firstLineToHeaders:e.cast_first_line_to_header,needMoreDataSize:Math.max(e.comment!==null?e.comment.length:0,...e.delimiter.map(t=>t.length),e.quote!==null?e.quote.length:0),previousBuf:void 0,quoting:!1,stop:!1,rawBuffer:new K8(100),record:[],recordHasError:!1,record_length:0,recordDelimiterMaxLength:e.record_delimiter.length===0?0:Math.max(...e.record_delimiter.map(t=>t.length)),trimChars:[ye.from(" ",e.encoding)[0],ye.from(" ",e.encoding)[0]],wasQuoting:!1,wasRowDelimiter:!1,timchars:[ye.from(ye.from([JJ],"utf8").toString(),e.encoding),ye.from(ye.from([YJ],"utf8").toString(),e.encoding),ye.from(ye.from([KJ],"utf8").toString(),e.encoding),ye.from(ye.from([XJ],"utf8").toString(),e.encoding),ye.from(ye.from([ZJ],"utf8").toString(),e.encoding)]}},eY=function(e){return e.replace(/([A-Z])/g,function(t,n){return"_"+n.toLowerCase()})},J8=function(e){const t={};for(const r in e)t[eY(r)]=e[r];if(t.encoding===void 0||t.encoding===!0)t.encoding="utf8";else if(t.encoding===null||t.encoding===!1)t.encoding=null;else if(typeof t.encoding!="string"&&t.encoding!==null)throw new kt("CSV_INVALID_OPTION_ENCODING",["Invalid option encoding:","encoding must be a string or null to return a buffer,",`got ${JSON.stringify(t.encoding)}`],t);if(t.bom===void 0||t.bom===null||t.bom===!1)t.bom=!1;else if(t.bom!==!0)throw new kt("CSV_INVALID_OPTION_BOM",["Invalid option bom:","bom must be true,",`got ${JSON.stringify(t.bom)}`],t);if(t.cast_function=null,t.cast===void 0||t.cast===null||t.cast===!1||t.cast==="")t.cast=void 0;else if(typeof t.cast=="function")t.cast_function=t.cast,t.cast=!0;else if(t.cast!==!0)throw new kt("CSV_INVALID_OPTION_CAST",["Invalid option cast:","cast must be true or a function,",`got ${JSON.stringify(t.cast)}`],t);if(t.cast_date===void 0||t.cast_date===null||t.cast_date===!1||t.cast_date==="")t.cast_date=!1;else if(t.cast_date===!0)t.cast_date=function(r){const s=Date.parse(r);return isNaN(s)?r:new Date(s)};else if(typeof t.cast_date!="function")throw new kt("CSV_INVALID_OPTION_CAST_DATE",["Invalid option cast_date:","cast_date must be true or a function,",`got ${JSON.stringify(t.cast_date)}`],t);if(t.cast_first_line_to_header=null,t.columns===!0)t.cast_first_line_to_header=void 0;else if(typeof t.columns=="function")t.cast_first_line_to_header=t.columns,t.columns=!0;else if(Array.isArray(t.columns))t.columns=W8(t.columns);else if(t.columns===void 0||t.columns===null||t.columns===!1)t.columns=!1;else throw new kt("CSV_INVALID_OPTION_COLUMNS",["Invalid option columns:","expect an array, a function or true,",`got ${JSON.stringify(t.columns)}`],t);if(t.group_columns_by_name===void 0||t.group_columns_by_name===null||t.group_columns_by_name===!1)t.group_columns_by_name=!1;else{if(t.group_columns_by_name!==!0)throw new kt("CSV_INVALID_OPTION_GROUP_COLUMNS_BY_NAME",["Invalid option group_columns_by_name:","expect an boolean,",`got ${JSON.stringify(t.group_columns_by_name)}`],t);if(t.columns===!1)throw new kt("CSV_INVALID_OPTION_GROUP_COLUMNS_BY_NAME",["Invalid option group_columns_by_name:","the `columns` mode must be activated."],t)}if(t.comment===void 0||t.comment===null||t.comment===!1||t.comment==="")t.comment=null;else if(typeof t.comment=="string"&&(t.comment=ye.from(t.comment,t.encoding)),!Di(t.comment))throw new kt("CSV_INVALID_OPTION_COMMENT",["Invalid option comment:","comment must be a buffer or a string,",`got ${JSON.stringify(t.comment)}`],t);if(t.comment_no_infix===void 0||t.comment_no_infix===null||t.comment_no_infix===!1)t.comment_no_infix=!1;else if(t.comment_no_infix!==!0)throw new kt("CSV_INVALID_OPTION_COMMENT",["Invalid option comment_no_infix:","value must be a boolean,",`got ${JSON.stringify(t.comment_no_infix)}`],t);const n=JSON.stringify(t.delimiter);if(Array.isArray(t.delimiter)||(t.delimiter=[t.delimiter]),t.delimiter.length===0)throw new kt("CSV_INVALID_OPTION_DELIMITER",["Invalid option delimiter:","delimiter must be a non empty string or buffer or array of string|buffer,",`got ${n}`],t);if(t.delimiter=t.delimiter.map(function(r){if(r==null||r===!1)return ye.from(",",t.encoding);if(typeof r=="string"&&(r=ye.from(r,t.encoding)),!Di(r)||r.length===0)throw new kt("CSV_INVALID_OPTION_DELIMITER",["Invalid option delimiter:","delimiter must be a non empty string or buffer or array of string|buffer,",`got ${n}`],t);return r}),t.escape===void 0||t.escape===!0?t.escape=ye.from('"',t.encoding):typeof t.escape=="string"?t.escape=ye.from(t.escape,t.encoding):(t.escape===null||t.escape===!1)&&(t.escape=null),t.escape!==null&&!Di(t.escape))throw new Error(`Invalid Option: escape must be a buffer, a string or a boolean, got ${JSON.stringify(t.escape)}`);if(t.from===void 0||t.from===null)t.from=1;else if(typeof t.from=="string"&&/\d+/.test(t.from)&&(t.from=parseInt(t.from)),Number.isInteger(t.from)){if(t.from<0)throw new Error(`Invalid Option: from must be a positive integer, got ${JSON.stringify(e.from)}`)}else throw new Error(`Invalid Option: from must be an integer, got ${JSON.stringify(t.from)}`);if(t.from_line===void 0||t.from_line===null)t.from_line=1;else if(typeof t.from_line=="string"&&/\d+/.test(t.from_line)&&(t.from_line=parseInt(t.from_line)),Number.isInteger(t.from_line)){if(t.from_line<=0)throw new Error(`Invalid Option: from_line must be a positive integer greater than 0, got ${JSON.stringify(e.from_line)}`)}else throw new Error(`Invalid Option: from_line must be an integer, got ${JSON.stringify(e.from_line)}`);if(t.ignore_last_delimiters===void 0||t.ignore_last_delimiters===null)t.ignore_last_delimiters=!1;else if(typeof t.ignore_last_delimiters=="number")t.ignore_last_delimiters=Math.floor(t.ignore_last_delimiters),t.ignore_last_delimiters===0&&(t.ignore_last_delimiters=!1);else if(typeof t.ignore_last_delimiters!="boolean")throw new kt("CSV_INVALID_OPTION_IGNORE_LAST_DELIMITERS",["Invalid option `ignore_last_delimiters`:","the value must be a boolean value or an integer,",`got ${JSON.stringify(t.ignore_last_delimiters)}`],t);if(t.ignore_last_delimiters===!0&&t.columns===!1)throw new kt("CSV_IGNORE_LAST_DELIMITERS_REQUIRES_COLUMNS",["The option `ignore_last_delimiters`","requires the activation of the `columns` option"],t);if(t.info===void 0||t.info===null||t.info===!1)t.info=!1;else if(t.info!==!0)throw new Error(`Invalid Option: info must be true, got ${JSON.stringify(t.info)}`);if(t.max_record_size===void 0||t.max_record_size===null||t.max_record_size===!1)t.max_record_size=0;else if(!(Number.isInteger(t.max_record_size)&&t.max_record_size>=0))if(typeof t.max_record_size=="string"&&/\d+/.test(t.max_record_size))t.max_record_size=parseInt(t.max_record_size);else throw new Error(`Invalid Option: max_record_size must be a positive integer, got ${JSON.stringify(t.max_record_size)}`);if(t.objname===void 0||t.objname===null||t.objname===!1)t.objname=void 0;else if(Di(t.objname)){if(t.objname.length===0)throw new Error("Invalid Option: objname must be a non empty buffer");t.encoding===null||(t.objname=t.objname.toString(t.encoding))}else if(typeof t.objname=="string"){if(t.objname.length===0)throw new Error("Invalid Option: objname must be a non empty string")}else if(typeof t.objname!="number")throw new Error(`Invalid Option: objname must be a string or a buffer, got ${t.objname}`);if(t.objname!==void 0){if(typeof t.objname=="number"){if(t.columns!==!1)throw Error("Invalid Option: objname index cannot be combined with columns or be defined as a field")}else if(t.columns===!1)throw Error("Invalid Option: objname field must be combined with columns or be defined as an index")}if(t.on_record===void 0||t.on_record===null)t.on_record=void 0;else if(typeof t.on_record!="function")throw new kt("CSV_INVALID_OPTION_ON_RECORD",["Invalid option `on_record`:","expect a function,",`got ${JSON.stringify(t.on_record)}`],t);if(t.on_skip!==void 0&&t.on_skip!==null&&typeof t.on_skip!="function")throw new Error(`Invalid Option: on_skip must be a function, got ${JSON.stringify(t.on_skip)}`);if(t.quote===null||t.quote===!1||t.quote==="")t.quote=null;else if(t.quote===void 0||t.quote===!0?t.quote=ye.from('"',t.encoding):typeof t.quote=="string"&&(t.quote=ye.from(t.quote,t.encoding)),!Di(t.quote))throw new Error(`Invalid Option: quote must be a buffer or a string, got ${JSON.stringify(t.quote)}`);if(t.raw===void 0||t.raw===null||t.raw===!1)t.raw=!1;else if(t.raw!==!0)throw new Error(`Invalid Option: raw must be true, got ${JSON.stringify(t.raw)}`);if(t.record_delimiter===void 0)t.record_delimiter=[];else if(typeof t.record_delimiter=="string"||Di(t.record_delimiter)){if(t.record_delimiter.length===0)throw new kt("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a non empty string or buffer,",`got ${JSON.stringify(t.record_delimiter)}`],t);t.record_delimiter=[t.record_delimiter]}else if(!Array.isArray(t.record_delimiter))throw new kt("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a string, a buffer or array of string|buffer,",`got ${JSON.stringify(t.record_delimiter)}`],t);if(t.record_delimiter=t.record_delimiter.map(function(r,s){if(typeof r!="string"&&!Di(r))throw new kt("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a string, a buffer or array of string|buffer",`at index ${s},`,`got ${JSON.stringify(r)}`],t);if(r.length===0)throw new kt("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a non empty string or buffer",`at index ${s},`,`got ${JSON.stringify(r)}`],t);return typeof r=="string"&&(r=ye.from(r,t.encoding)),r}),typeof t.relax_column_count!="boolean")if(t.relax_column_count===void 0||t.relax_column_count===null)t.relax_column_count=!1;else throw new Error(`Invalid Option: relax_column_count must be a boolean, got ${JSON.stringify(t.relax_column_count)}`);if(typeof t.relax_column_count_less!="boolean")if(t.relax_column_count_less===void 0||t.relax_column_count_less===null)t.relax_column_count_less=!1;else throw new Error(`Invalid Option: relax_column_count_less must be a boolean, got ${JSON.stringify(t.relax_column_count_less)}`);if(typeof t.relax_column_count_more!="boolean")if(t.relax_column_count_more===void 0||t.relax_column_count_more===null)t.relax_column_count_more=!1;else throw new Error(`Invalid Option: relax_column_count_more must be a boolean, got ${JSON.stringify(t.relax_column_count_more)}`);if(typeof t.relax_quotes!="boolean")if(t.relax_quotes===void 0||t.relax_quotes===null)t.relax_quotes=!1;else throw new Error(`Invalid Option: relax_quotes must be a boolean, got ${JSON.stringify(t.relax_quotes)}`);if(typeof t.skip_empty_lines!="boolean")if(t.skip_empty_lines===void 0||t.skip_empty_lines===null)t.skip_empty_lines=!1;else throw new Error(`Invalid Option: skip_empty_lines must be a boolean, got ${JSON.stringify(t.skip_empty_lines)}`);if(typeof t.skip_records_with_empty_values!="boolean")if(t.skip_records_with_empty_values===void 0||t.skip_records_with_empty_values===null)t.skip_records_with_empty_values=!1;else throw new Error(`Invalid Option: skip_records_with_empty_values must be a boolean, got ${JSON.stringify(t.skip_records_with_empty_values)}`);if(typeof t.skip_records_with_error!="boolean")if(t.skip_records_with_error===void 0||t.skip_records_with_error===null)t.skip_records_with_error=!1;else throw new Error(`Invalid Option: skip_records_with_error must be a boolean, got ${JSON.stringify(t.skip_records_with_error)}`);if(t.rtrim===void 0||t.rtrim===null||t.rtrim===!1)t.rtrim=!1;else if(t.rtrim!==!0)throw new Error(`Invalid Option: rtrim must be a boolean, got ${JSON.stringify(t.rtrim)}`);if(t.ltrim===void 0||t.ltrim===null||t.ltrim===!1)t.ltrim=!1;else if(t.ltrim!==!0)throw new Error(`Invalid Option: ltrim must be a boolean, got ${JSON.stringify(t.ltrim)}`);if(t.trim===void 0||t.trim===null||t.trim===!1)t.trim=!1;else if(t.trim!==!0)throw new Error(`Invalid Option: trim must be a boolean, got ${JSON.stringify(t.trim)}`);if(t.trim===!0&&e.ltrim!==!1?t.ltrim=!0:t.ltrim!==!0&&(t.ltrim=!1),t.trim===!0&&e.rtrim!==!1?t.rtrim=!0:t.rtrim!==!0&&(t.rtrim=!1),t.to===void 0||t.to===null)t.to=-1;else if(typeof t.to=="string"&&/\d+/.test(t.to)&&(t.to=parseInt(t.to)),Number.isInteger(t.to)){if(t.to<=0)throw new Error(`Invalid Option: to must be a positive integer greater than 0, got ${JSON.stringify(e.to)}`)}else throw new Error(`Invalid Option: to must be an integer, got ${JSON.stringify(e.to)}`);if(t.to_line===void 0||t.to_line===null)t.to_line=-1;else if(typeof t.to_line=="string"&&/\d+/.test(t.to_line)&&(t.to_line=parseInt(t.to_line)),Number.isInteger(t.to_line)){if(t.to_line<=0)throw new Error(`Invalid Option: to_line must be a positive integer greater than 0, got ${JSON.stringify(e.to_line)}`)}else throw new Error(`Invalid Option: to_line must be an integer, got ${JSON.stringify(e.to_line)}`);return t},Y8=function(e){return e.every(t=>t==null||t.toString&&t.toString().trim()==="")},tY=13,nY=10,nl={utf8:ye.from([239,187,191]),utf16le:ye.from([255,254])},iY=function(e={}){const t={bytes:0,comment_lines:0,empty_lines:0,invalid_field_length:0,lines:1,records:0},n=J8(e);return{info:t,original_options:e,options:n,state:QJ(n),__needMoreData:function(r,s,o){if(o)return!1;const{encoding:a,escape:l,quote:c}=this.options,{quoting:u,needMoreDataSize:d,recordDelimiterMaxLength:f}=this.state,h=s-r-1,g=Math.max(d,f===0?ye.from(`\r
|
|
138
|
-
`,a).length:f,u?(l===null?0:l.length)+c.length:0,u?c.length+f:0);return h<g},parse:function(r,s,o,a){const{bom:l,comment_no_infix:c,encoding:u,from_line:d,ltrim:f,max_record_size:h,raw:g,relax_quotes:b,rtrim:y,skip_empty_lines:_,to:w,to_line:x}=this.options;let{comment:C,escape:S,quote:A,record_delimiter:O}=this.options;const{bomSkipped:R,previousBuf:N,rawBuffer:k,escapeIsQuote:L}=this.state;let F;if(N===void 0)if(r===void 0){a();return}else F=r;else N!==void 0&&r===void 0?F=N:F=ye.concat([N,r]);if(R===!1)if(l===!1)this.state.bomSkipped=!0;else if(F.length<3){if(s===!1){this.state.previousBuf=F;return}}else{for(const ae in nl)if(nl[ae].compare(F,0,nl[ae].length)===0){const ce=nl[ae].length;this.state.bufBytesStart+=ce,F=F.slice(ce),this.options=J8(Be(we({},this.original_options),{encoding:ae})),{comment:C,escape:S,quote:A}=this.options;break}this.state.bomSkipped=!0}const G=F.length;let V;for(V=0;V<G&&!this.__needMoreData(V,G,s);V++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),x!==-1&&this.info.lines>x){this.state.stop=!0,a();return}this.state.quoting===!1&&O.length===0&&this.__autoDiscoverRecordDelimiter(F,V)&&(O=this.options.record_delimiter);const ae=F[V];if(g===!0&&k.append(ae),(ae===tY||ae===nY)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(S!==null&&this.state.quoting===!0&&this.__isEscape(F,V,ae)&&V+S.length<G)if(L){if(this.__isQuote(F,V+S.length)){this.state.escaping=!0,V+=S.length-1;continue}}else{this.state.escaping=!0,V+=S.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(F,V))if(this.state.quoting===!0){const J=F[V+A.length],Q=y&&this.__isCharTrimable(F,V+A.length),X=C!==null&&this.__compareBytes(C,F,V+A.length,J),B=this.__isDelimiter(F,V+A.length,J),_e=O.length===0?this.__autoDiscoverRecordDelimiter(F,V+A.length):this.__isRecordDelimiter(J,F,V+A.length);if(S!==null&&this.__isEscape(F,V,ae)&&this.__isQuote(F,V+S.length))V+=S.length-1;else if(!J||B||_e||X||Q){this.state.quoting=!1,this.state.wasQuoting=!0,V+=A.length-1;continue}else if(b===!1){const he=this.__error(new kt("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(J)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(he!==void 0)return he}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(A),V+=A.length-1}else if(this.state.field.length!==0){if(b===!1){const J=this.__infoField(),Q=Object.keys(nl).map(B=>nl[B].equals(this.state.field.toString())?B:!1).filter(Boolean)[0],X=this.__error(new kt("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(J.column)} at line ${J.lines}, value is ${JSON.stringify(this.state.field.toString(u))}`,Q?`(${Q} bom)`:void 0],this.options,J,{field:this.state.field}));if(X!==void 0)return X}}else{this.state.quoting=!0,V+=A.length-1;continue}if(this.state.quoting===!1){const J=this.__isRecordDelimiter(ae,F,V);if(J!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=d){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),V+=J-1;continue}if(_===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,V+=J-1;continue}this.info.bytes=this.state.bufBytesStart+V;const B=this.__onField();if(B!==void 0)return B;this.info.bytes=this.state.bufBytesStart+V+J;const _e=this.__onRecord(o);if(_e!==void 0)return _e;if(w!==-1&&this.info.records>=w){this.state.stop=!0,a();return}}this.state.commenting=!1,V+=J-1;continue}if(this.state.commenting)continue;if(C!==null&&(c===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(C,F,V,ae)!==0){this.state.commenting=!0;continue}const Q=this.__isDelimiter(F,V,ae);if(Q!==0){this.info.bytes=this.state.bufBytesStart+V;const X=this.__onField();if(X!==void 0)return X;V+=Q-1;continue}}}if(this.state.commenting===!1&&h!==0&&this.state.record_length+this.state.field.length>h)return this.__error(new kt("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${h}`,`at line ${this.info.lines}`],this.options,this.__infoField()));const ce=f===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(F,V),U=y===!1||this.state.wasQuoting===!1;if(ce===!0&&U===!0)this.state.field.append(ae);else{if(y===!0&&!this.__isCharTrimable(F,V))return this.__error(new kt("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",["Invalid Closing Quote:","found non trimable byte after quote",`at line ${this.info.lines}`],this.options,this.__infoField()));ce===!1&&(V+=this.__isCharTrimable(F,V)-1);continue}}if(s===!0)if(this.state.quoting===!0){const ae=this.__error(new kt("CSV_QUOTE_NOT_CLOSED",["Quote Not Closed:",`the parsing is finished with an opening quote at line ${this.info.lines}`],this.options,this.__infoField()));if(ae!==void 0)return ae}else if(this.state.wasQuoting===!0||this.state.record.length!==0||this.state.field.length!==0){this.info.bytes=this.state.bufBytesStart+V;const ae=this.__onField();if(ae!==void 0)return ae;const ce=this.__onRecord(o);if(ce!==void 0)return ce}else this.state.wasRowDelimiter===!0?this.info.empty_lines++:this.state.commenting===!0&&this.info.comment_lines++;else this.state.bufBytesStart+=V,this.state.previousBuf=F.slice(V);this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1)},__onRecord:function(r){const{columns:s,group_columns_by_name:o,encoding:a,info:l,from:c,relax_column_count:u,relax_column_count_less:d,relax_column_count_more:f,raw:h,skip_records_with_empty_values:g}=this.options,{enabled:b,record:y}=this.state;if(b===!1)return this.__resetRecord();const _=y.length;if(s===!0){if(g===!0&&Y8(y)){this.__resetRecord();return}return this.__firstLineToColumns(y)}if(s===!1&&this.info.records===0&&(this.state.expectedRecordLength=_),_!==this.state.expectedRecordLength){const w=s===!1?new kt("CSV_RECORD_INCONSISTENT_FIELDS_LENGTH",["Invalid Record Length:",`expect ${this.state.expectedRecordLength},`,`got ${_} on line ${this.info.lines}`],this.options,this.__infoField(),{record:y}):new kt("CSV_RECORD_INCONSISTENT_COLUMNS",["Invalid Record Length:",`columns length is ${s.length},`,`got ${_} on line ${this.info.lines}`],this.options,this.__infoField(),{record:y});if(u===!0||d===!0&&_<this.state.expectedRecordLength||f===!0&&_>this.state.expectedRecordLength)this.info.invalid_field_length++,this.state.error=w;else{const x=this.__error(w);if(x)return x}}if(g===!0&&Y8(y)){this.__resetRecord();return}if(this.state.recordHasError===!0){this.__resetRecord(),this.state.recordHasError=!1;return}if(this.info.records++,c===1||this.info.records>=c){const{objname:w}=this.options;if(s!==!1){const x={};for(let C=0,S=y.length;C<S;C++)s[C]===void 0||s[C].disabled||(o===!0&&x[s[C].name]!==void 0?Array.isArray(x[s[C].name])?x[s[C].name]=x[s[C].name].concat(y[C]):x[s[C].name]=[x[s[C].name],y[C]]:x[s[C].name]=y[C]);if(h===!0||l===!0){const C=Object.assign({record:x},h===!0?{raw:this.state.rawBuffer.toString(a)}:{},l===!0?{info:this.__infoRecord()}:{}),S=this.__push(w===void 0?C:[x[w],C],r);if(S)return S}else{const C=this.__push(w===void 0?x:[x[w],x],r);if(C)return C}}else if(h===!0||l===!0){const x=Object.assign({record:y},h===!0?{raw:this.state.rawBuffer.toString(a)}:{},l===!0?{info:this.__infoRecord()}:{}),C=this.__push(w===void 0?x:[y[w],x],r);if(C)return C}else{const x=this.__push(w===void 0?y:[y[w],y],r);if(x)return x}}this.__resetRecord()},__firstLineToColumns:function(r){const{firstLineToHeaders:s}=this.state;try{const o=s===void 0?r:s.call(null,r);if(!Array.isArray(o))return this.__error(new kt("CSV_INVALID_COLUMN_MAPPING",["Invalid Column Mapping:","expect an array from column function,",`got ${JSON.stringify(o)}`],this.options,this.__infoField(),{headers:o}));const a=W8(o);this.state.expectedRecordLength=a.length,this.options.columns=a,this.__resetRecord();return}catch(o){return o}},__resetRecord:function(){this.options.raw===!0&&this.state.rawBuffer.reset(),this.state.error=void 0,this.state.record=[],this.state.record_length=0},__onField:function(){const{cast:r,encoding:s,rtrim:o,max_record_size:a}=this.options,{enabled:l,wasQuoting:c}=this.state;if(l===!1)return this.__resetField();let u=this.state.field.toString(s);if(o===!0&&c===!1&&(u=u.trimRight()),r===!0){const[d,f]=this.__cast(u);if(d!==void 0)return d;u=f}this.state.record.push(u),a!==0&&typeof u=="string"&&(this.state.record_length+=u.length),this.__resetField()},__resetField:function(){this.state.field.reset(),this.state.wasQuoting=!1},__push:function(r,s){const{on_record:o}=this.options;if(o!==void 0){const a=this.__infoRecord();try{r=o.call(null,r,a)}catch(l){return l}if(r==null)return}s(r)},__cast:function(r){const{columns:s,relax_column_count:o}=this.options;if(Array.isArray(s)===!0&&o&&this.options.columns.length<=this.state.record.length)return[void 0,void 0];if(this.state.castField!==null)try{const l=this.__infoField();return[void 0,this.state.castField.call(null,r,l)]}catch(l){return[l]}if(this.__isFloat(r))return[void 0,parseFloat(r)];if(this.options.cast_date!==!1){const l=this.__infoField();return[void 0,this.options.cast_date.call(null,r,l)]}return[void 0,r]},__isCharTrimable:function(r,s){return((a,l)=>{const{timchars:c}=this.state;e:for(let u=0;u<c.length;u++){const d=c[u];for(let f=0;f<d.length;f++)if(d[f]!==a[l+f])continue e;return d.length}return 0})(r,s)},__isFloat:function(r){return r-parseFloat(r)+1>=0},__compareBytes:function(r,s,o,a){if(r[0]!==a)return 0;const l=r.length;for(let c=1;c<l;c++)if(r[c]!==s[o+c])return 0;return l},__isDelimiter:function(r,s,o){const{delimiter:a,ignore_last_delimiters:l}=this.options;if(l===!0&&this.state.record.length===this.options.columns.length-1)return 0;if(l!==!1&&typeof l=="number"&&this.state.record.length===l-1)return 0;e:for(let c=0;c<a.length;c++){const u=a[c];if(u[0]===o){for(let d=1;d<u.length;d++)if(u[d]!==r[s+d])continue e;return u.length}}return 0},__isRecordDelimiter:function(r,s,o){const{record_delimiter:a}=this.options,l=a.length;e:for(let c=0;c<l;c++){const u=a[c],d=u.length;if(u[0]===r){for(let f=1;f<d;f++)if(u[f]!==s[o+f])continue e;return u.length}}return 0},__isEscape:function(r,s,o){const{escape:a}=this.options;if(a===null)return!1;const l=a.length;if(a[0]===o){for(let c=0;c<l;c++)if(a[c]!==r[s+c])return!1;return!0}return!1},__isQuote:function(r,s){const{quote:o}=this.options;if(o===null)return!1;const a=o.length;for(let l=0;l<a;l++)if(o[l]!==r[s+l])return!1;return!0},__autoDiscoverRecordDelimiter:function(r,s){const{encoding:o}=this.options,a=[ye.from(`\r
|
|
139
|
-
`,o),ye.from(`
|
|
140
|
-
`,o),ye.from("\r",o)];e:for(let l=0;l<a.length;l++){const c=a[l].length;for(let u=0;u<c;u++)if(a[l][u]!==r[s+u])continue e;return this.options.record_delimiter.push(a[l]),this.state.recordDelimiterMaxLength=a[l].length,a[l].length}return 0},__error:function(r){const{encoding:s,raw:o,skip_records_with_error:a}=this.options,l=typeof r=="string"?new Error(r):r;if(a){this.state.recordHasError=!0,this.options.on_skip!==void 0&&this.options.on_skip(l,o?this.state.rawBuffer.toString(s):void 0);return}else return l},__infoDataSet:function(){return Be(we({},this.info),{columns:this.options.columns})},__infoRecord:function(){const{columns:r,raw:s,encoding:o}=this.options;return Be(we({},this.__infoDataSet()),{error:this.state.error,header:r===!0,index:this.state.record.length,raw:s?this.state.rawBuffer.toString(o):void 0})},__infoField:function(){const{columns:r}=this.options,s=Array.isArray(r);return Be(we({},this.__infoRecord()),{column:s===!0?r.length>this.state.record.length?r[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting})}}},rY=function(e,t={}){typeof e=="string"&&(e=ye.from(e));const n=t&&t.objname?{}:[],r=iY(t),s=c=>{r.options.objname===void 0?n.push(c):n[c[0]]=c[1]},o=()=>{},a=r.parse(e,!1,s,o);if(a!==void 0)throw a;const l=r.parse(void 0,!0,s,o);if(l!==void 0)throw l;return n},lv=" ";class sY{constructor(t,n){if(this.file=t,this.fieldMap=n,this.data=null,t.substr(0,7)!=="maltego")throw new Error("只能导入由Maltego软件导出的csv文件");this.init()}init(){const t=this.parseCsvData();this.data=this.convertToGraphData(t),console.log(t),console.log(this.data)}parseCsvData(){const t=this.file.indexOf(`\r
|
|
141
|
-
\r`)>0?`\r
|
|
142
|
-
\r
|
|
143
|
-
`:`
|
|
144
|
-
|
|
145
|
-
`,n=this.file.split(t);let r=[];for(let s=0;s<n.length;s++){const o=s===n.length-1?n[s]:this.manageEntityFieldsSpace(n[s]),a=rY.parse(o,{columns:!0,from:2});r=[...r,...a]}return r=this.reverseSpecialValue(r),r}manageEntityFieldsSpace(t){const n=t.split(`\r
|
|
146
|
-
`),r=n[0].split(",").length;let s=0,o=[];return o=n.map(a=>(a=this.manageSpecialValue(a),s=r-a.split(",").length,s>0?a.split(",").concat(new Array(s)).join():a)),o.join(`\r
|
|
147
|
-
`)}manageSpecialValue(t){t=t.replace(/"{2,}/g,"");const n=/"{1}[^"]*"{1}/g,r=t.match(n);return r!==null&&r.map(s=>(t=t.replace(s,s.replace(/,/g,lv)),s.replace(/,/g,lv))),t}reverseSpecialValue(t){const n=new RegExp(lv,"g");return t.map(r=>{for(const s in r){const o=r[s].replace(n,",");r[s]=o}return r})}convertToGraphData(t){const n=[];let r=t.filter(o=>o.Label===void 0),s=t.filter(o=>o.Label!==void 0);return r=r.map(o=>this.getGraphNode(o)),s=s.map((o,a)=>{const l="Source Entity ID",c="Target Entity ID",u="Label",d=this.getNode(o[l],r)[0],f=this.getNode(o[c],r)[0];return o[u]!==""&&n.push({id:f.id,label:o[u]}),{source:d.id,target:f.id,type:d.type+"-"+f.type,uniqueIndex:a}}),r=r.map(o=>(delete o.entityId,n.map(a=>{a.id===o.id&&(o.name=a.label)}),o)),{nodes:r,links:s}}getGraphNode(t){const n=T8.nodeMapReverse,r=iv.entitys;let s="",o="",a="",l=null,c=null;return r.map(u=>{const d=u.type,f=u.columnsFields[1];t[d]!==void 0&&(o=n[d],s=t[f],a=t[d],l=this.manageNodeDetail(u.columnsFields,t,n[d]),c=this.manageNodeFieldMap(n[d]))}),{id:s,type:o,name:s,entityId:a,detail:l,fieldMap:c,show:!0}}manageNodeFieldMap(t){return this.fieldMap[t]}manageNodeDetail(t,n,r){let s=null,o=!1;if(r!=="nodeType"){s={info:{basic:{}},tags:[]};for(const a in n)if(t.indexOf(a)===-1){o=!0;const l=n[a];a==="tags"&&l!==""?s.tags=l.split(",").map(c=>({name:c,desc:c})):s.info.basic[a]=n[a]}o===!1&&(s=null)}return s}getNode(t,n){return n.filter(r=>r.entityId===t)}outputData(){return this.data}}const ige="",oY={name:"ButtonList",components:{"force-graph-svg-icon":Ho,addNode:rJ,addLink:lJ,intro:pJ,UploadFilled:AM},mixins:[Or],props:{showTopSearch:{type:Boolean,default:!1},hideButtonList:{type:Array,default:()=>[]},selection:{type:Array,default:()=>[]},history:{type:Object,default:()=>({dataNow:{}})},moduleDetail:{type:Object,default:()=>{}},requestGraphData:{type:Boolean,default:!0}},emits:["fixNodes","toggleLayout","addNodes","addLink","importCsvData","autoDisplay","toggleMove","deleteNodes","saveSnapshot"],data(){return{maxTrans:0,nowTrans:0,onceTrans:300,dialogVisible:!1,exportFormat:0,formatOptions:[{value:0,label:"JSON"},{value:2,label:"CSV"}],isAllFix:!1,dialogImportVisible:!1,importFileList:[],importFile:null,intro:!1,current:null,addType:"",flageAlias:!0,filterValues:""}},computed:{buttonList(){var e,t;return[{hover:!1,icon:"hm_icon_add",disable:!this.requestGraphData,fun:this.addNode,name:"新增节点",params:"diy"},{hover:!1,icon:"hm_icon_del",disable:this.selection.length===0||!this.requestGraphData,fun:this.deleteNodes,name:"删除"},{hover:!1,icon:"hm_icon_snapshot",disable:!this.requestGraphData,fun:this.addSnapshot,name:"保存快照",hide:!((t=(e=this.moduleDetail)==null?void 0:e.config)!=null&&t.hasSnapshot)},{hover:!1,icon:"hm_icon_img",disable:!this.requestGraphData,fun:this.saveAsImg,name:"保存图片"},{hover:!1,icon:"hm_icon_export",disable:!this.requestGraphData,fun:this.exportData,name:"数据导出"},{hover:!1,icon:"hm_icon_import",disable:!this.requestGraphData,fun:this.importData,name:"数据导入"},{hover:!1,icon:"hm_icon_undo",disable:this.history.currentIndex<=0||!this.requestGraphData,fun:this.backHistory,name:"撤销"},{hover:!1,icon:"hm_icon_redo",disable:this.history.currentIndex>=this.history.length-1||!this.requestGraphData,fun:this.forwardHistory,name:"恢复"},{hover:!1,icon:"hm_icon_auto",fun:this.autoDisplay,name:"自动布局"},{hover:!1,icon:"hm_icon_fix",fun:this.fixNodes,name:"全局固定",params:!0,hide:this.isAllFix},{hover:!1,icon:"hm_icon_unfix",fun:this.fixNodes,name:"全局解除固定",params:!1,hide:!this.isAllFix},{hover:!1,icon:"hm_icon_tree",fun:this.toggleLayout,name:"树型布局",params:1,hide:this.history.layoutIndex===1},{hover:!1,icon:"hm_icon_force",fun:this.toggleLayout,name:"斥力布局",params:0,hide:this.history.layoutIndex===0}]},buttonListShow(){return this.buttonList.filter(e=>e.hide!==!0&&!this.hideButtonList.includes(e.name))},noSelectNodes(){var r;const e=To(this.history.dataNow.nodes),t=To((r=this.history.dataNow)==null?void 0:r.links),n=e.filter(s=>{if((s==null?void 0:s.type)==="nodeType")return s.childList=this.searchChildren(s,t),s.parentNode=this.searchParent(s,t),!0});return this.deleteParentItem(n)}},mounted(){},methods:{hover(e){this.current=e},out(){this.current=null},autoDisplay(){Xe(this,"autoDisplay")},fixNodes(e=!0){Xe(this,"fixNodes",e),this.isAllFix=e},toggleMove(){Xe(this,"toggleMove")},toggleLayout(e){Xe(this,"toggleLayout",e)},addNode(e,t){this.addType=e,this.$refs.addNode.show(t)},addNodes({node:e,type:t,connectNode:n}){Xe(this,"addNodes",{node:e,type:t,connectNode:n})},addLink({source:e,target:t}){Xe(this,"addLink",{source:e,target:t})},backHistory(){this.$parent.historyBack()},forwardHistory(){this.history.forward()},dataURLToBlob(e){const t=e.split(","),n=t[0].match(/:(.*?);/)[1],r=atob(t[1]);let s=r.length;const o=new Uint8Array(s);for(;s--;)o[s]=r.charCodeAt(s);return new Blob([o],{type:n})},downloadURI(e,t){const n=document.createElement("a");n.download=t,n.href=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)},saveAsImg(){return at(this,null,function*(){var t,n;this.$parent.bigLoading=!0;const e=yield this.svgToUrl();this.downloadURI(e,`${((n=(t=this.history.dataNow)==null?void 0:t.nodes[0])==null?void 0:n.id)||"img"}_${new Date().getTime()}.png`),this.$parent.bigLoading=!1})},svgToUrl(){return at(this,null,function*(){this.$parent.centerAndZoom(),this.$parent.addCanvasBg();const t=this.$parent.getCanvasStage().toDataURL({mimeType:"image/png"});return this.$parent.removeCanvasBg(),this.$parent.reset(),t})},svgToBlob(){return at(this,null,function*(){this.$parent.centerAndZoom(),this.$parent.addCanvasBg();const e=this.$parent.getCanvasStage();e.find("Image").forEach(n=>{const r=n.image();r&&(r.crossOrigin="Anonymous")});const t=yield e.toBlob();return this.$parent.removeCanvasBg(),this.$parent.reset(),t})},deleteNodes(){Xe(this,"deleteNodes")},addSnapshot(){Xe(this,"saveSnapshot")},exportData(){this.handleOpenModal()},handleOpenModal(){this.dialogVisible=!0},handleCloseModal(){this.dialogVisible=!1},handleExportData(){var a,l,c,u;let e=null,t=null,n=null,r=null;this.selection.length>0?(n=it(this.selection),r=[]):(n=it(this.history.dataNow.nodes),r=it(this.history.dataNow.links));const s=n.map(d=>{const{id:f,type:h,detail:g}=d;return{id:f,type:h,detail:g}}),o=r.map(d=>{const{source:f,target:h}=d;return{source:f,target:h}});this.exportFormat===0?(e=JSON.stringify(s),t=`${((l=(a=this.history.dataNow)==null?void 0:a.nodes[0])==null?void 0:l.id)||"file"}_${new Date().getTime()}.json`):(e=this.setMalteGoCsv({nodes:s,links:o}),t=`${((u=(c=this.history.dataNow)==null?void 0:c.nodes[0])==null?void 0:u.id)||"file"}_${new Date().getTime()}.csv`),vq(e,t),this.handleCloseModal()},importData(){this.handleOpenImportModal()},handleOpenImportModal(){this.dialogImportVisible=!0},handleCloseImportModal(){this.dialogImportVisible=!1,this.importFileList=[],this.importFile=null},handleImportData(){try{const e=this.getFieldMap(),n=new sY(this.importFile,e).outputData();Xe(this,"importCsvData",{nodes:n.nodes,links:n.links})}catch(e){dn({message:e,type:"error"})}this.handleCloseImportModal()},getFieldMap(){const e=this.moduleDetail.detail_field_map,t={};for(const n in e){const r=n.substring(0,n.indexOf("_detail_info"));t[r]=JSON.parse(JSON.stringify(e[n]))}return t},handleFileChange(e){this.importFile=e;const t=new FileReader;t.onload=()=>{t.result&&(this.importFile=t.result)},t.readAsText(e.raw)},handleFileRemove(){this.importFile=null,this.importFileList=[]},setMalteGoCsv(e){return new mJ(e).outputCsvFile()},showIntro(){this.intro=!0},hideIntro(){this.intro=!1},handleAlias(e){this.flageAlias=!e;const t=document.getElementsByClassName("right-menu-box")[0],n=document.getElementsByClassName("graph-box")[0];t&&(e?(t.style.display="none",n.style.width="100%"):(t.style.display="inline-block",n.style.width="1%"))},permissionitem(){return this.requestGraphData?!0:(dn({message:"无可操作权限",type:"warning"}),!1)},handleIconClick(e){this.permissionitem()&&(Fn({cId:"buttonList-"+e.icon,c:"顶部按钮-"+e.name}),e.fun(e.params))},handleSearch:Ra(function(e){var r;if(!this.filterValues){Xe(wt,"sendNodesRange",null);return}this.filteredDataList=To(this.noSelectNodes);const t=To((r=this.history.dataNow)==null?void 0:r.links);this.filteredDataList=this.filteredDataList.filter(s=>this.filterValues!==""?(s.parentNode=this.searchParent(s,t),s.childList=s.childList.filter(o=>o.name.toLowerCase().indexOf(this.filterValues.toLowerCase())>-1),s.childList.length>0):!0),this.filteredDataList=this.deleteParentItem(this.filteredDataList);const n=[];this.filteredDataList.forEach(s=>{n.push(this.searchParent(s,t)),n.push(...s.childList),n.push(s)}),Xe(wt,"sendNodesRange",n)},200),searchChildren(e,t){const n=t,r=[];return n&&n.forEach(s=>{s.source.id===e.id&&r.push(s.target)}),r},searchParent(e,t){const n=t;let r=[];return n&&n.forEach(s=>{s.target.id===e.id&&(r=s.source)}),r},groupBy(e,t){const n={};return e.forEach(function(r){const s=JSON.stringify(t(r));n[s]=n[s]||[],n[s].push(r)}),Object.keys(n).map(function(r){return n[r]})},deleteParentItem(e){let t=[];const n=[];return this.groupBy(e,function(r){return[r.parentNode.id]}).map(r=>{t.push(...r)}),t=t.map(r=>(n.some(o=>o===r.parentNode.id)?r.parentNode="":n.push(r.parentNode.id),r)),t}}},aY={class:"button-container"},lY={ref:"container",class:"button-box"},cY={ref:"box",class:"all-button"},uY=["onClick"],dY={key:0,class:"search-content-wrap"},fY={class:"right-btn-wrap"},hY={class:"button-one intro-button"},pY={class:"dialog-footer"},gY={class:"dialog-footer"},mY={class:"intro"};function vY(e,t,n,r,s,o){const a=We("force-graph-svg-icon"),l=fi,c=jo,u=We("intro"),d=lV,f=yf,h=bf,g=$o,b=qc,y=We("UploadFilled"),_=Ft,w=Oz,x=We("addNode"),C=We("addLink");return I(),z("div",aY,[H("div",lY,[H("div",cY,[H("div",null,[(I(!0),z(qe,null,Tt(o.buttonListShow,(S,A)=>(I(),Ee(l,{key:A,class:"item",effect:"dark",content:S.name,placement:"bottom","popper-class":"el-tooltip-gray"},{default:ee(()=>[H("div",{class:Y(["img-box","button-one "+(S.disable?"disabled":"")]),onClick:O=>o.handleIconClick(S)},[te(a,{class:"button-img","icon-class":e.imgPath["./public/d3svg1/button22/"+S.icon+".svg"]},null,8,["icon-class"])],10,uY)]),_:2},1032,["content"]))),128))]),n.showTopSearch?(I(),z("div",dY,[te(c,{modelValue:s.filterValues,"onUpdate:modelValue":t[0]||(t[0]=S=>s.filterValues=S),modelModifiers:{trim:!0},class:"search-content",placeholder:"支持查询嫌疑人终端码、虚拟身份、路由mac、域名",clearable:"",onInput:o.handleSearch},null,8,["modelValue","onInput"])])):re("",!0),H("div",fY,[n.hideButtonList.includes("功能介绍")?re("",!0):(I(),Ee(d,{key:0,placement:"bottom-end",width:"auto",trigger:"hover"},{reference:ee(()=>[H("div",hY,[te(l,{class:"item",effect:"dark",content:"功能介绍",placement:"bottom","popper-class":"el-tooltip-gray"},{default:ee(()=>[te(a,{class:"button-img","icon-class":e.imgPath["./public/d3svg1/button22/hm_icon_help.svg"]},null,8,["icon-class"])]),_:1})])]),default:ee(()=>[te(u,{config:n.moduleDetail.config||{}},null,8,["config"])]),_:1})),n.hideButtonList.includes("展开折叠")?re("",!0):(I(),z("div",{key:1,class:"button-one intro-button",onClick:t[1]||(t[1]=S=>o.handleAlias(s.flageAlias)),onMouseenter:t[2]||(t[2]=S=>o.hover(o.buttonList.length+1)),onMouseleave:t[3]||(t[3]=S=>o.out())},[te(l,{class:"item",effect:"dark",content:s.flageAlias?"右侧折叠":"右侧展开",placement:"bottom","popper-class":"el-tooltip-gray"},{default:ee(()=>[te(a,{class:"button-img","icon-class":e.imgPath[s.flageAlias?"./public/d3svg1/button22/hm_icon_alias_colse.svg":"./public/d3svg1/button22/hm_icon_alias.svg"]},null,8,["icon-class"])]),_:1},8,["content"])],32))])],512)],512),te(b,{modelValue:s.dialogVisible,"onUpdate:modelValue":t[5]||(t[5]=S=>s.dialogVisible=S),title:"选择导出数据格式","append-to-body":"",width:"400px","before-close":o.handleCloseModal,class:"el-dialog-graph"},{footer:ee(()=>[H("span",pY,[te(g,{onClick:o.handleCloseModal},{default:ee(()=>t[7]||(t[7]=[Je("取 消")])),_:1},8,["onClick"]),te(g,{type:"primary",onClick:o.handleExportData},{default:ee(()=>t[8]||(t[8]=[Je("导 出")])),_:1},8,["onClick"])])]),default:ee(()=>[te(h,{modelValue:s.exportFormat,"onUpdate:modelValue":t[4]||(t[4]=S=>s.exportFormat=S),placeholder:"请选择导出数据格式"},{default:ee(()=>[(I(!0),z(qe,null,Tt(s.formatOptions,S=>(I(),Ee(f,{key:S.value,label:S.label,value:S.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue","before-close"]),te(b,{modelValue:s.dialogImportVisible,"onUpdate:modelValue":t[6]||(t[6]=S=>s.dialogImportVisible=S),title:"导入数据","append-to-body":"",width:"400px","before-close":o.handleCloseImportModal,class:"el-dialog-graph"},{footer:ee(()=>[H("span",gY,[te(g,{onClick:o.handleCloseImportModal},{default:ee(()=>t[11]||(t[11]=[Je("取 消")])),_:1},8,["onClick"]),te(g,{type:"primary",disabled:!s.importFile,onClick:o.handleImportData},{default:ee(()=>t[12]||(t[12]=[Je("导 入")])),_:1},8,["disabled","onClick"])])]),default:ee(()=>[te(w,{drag:"",action:"#","auto-upload":!1,accept:".csv","file-list":s.importFileList,"on-change":o.handleFileChange,"on-remove":o.handleFileRemove},{tip:ee(()=>t[9]||(t[9]=[H("div",{class:"el-upload__tip"},"只能上传由 Maltego 软件导出的csv文件",-1)])),default:ee(()=>[te(_,{class:"el-icon-upload"},{default:ee(()=>[te(y)]),_:1}),t[10]||(t[10]=H("div",{class:"el-upload__text"},[Je("将文件拖到此处,或"),H("em",null,"点击上传")],-1))]),_:1},8,["file-list","on-change","on-remove"])]),_:1},8,["modelValue","before-close"]),te(x,{ref:"addNode","nodes-type":n.moduleDetail&&n.moduleDetail.nodes||[],"add-type":s.addType,onAddNodes:o.addNodes},null,8,["nodes-type","add-type","onAddNodes"]),te(C,{ref:"addLink",onAddLink:o.addLink},null,8,["onAddLink"]),It(H("div",mY,[te(u,{config:n.moduleDetail.config||{},onMouseenter:o.showIntro,onMouseleave:o.hideIntro},null,8,["config","onMouseenter","onMouseleave"])],512),[[wn,s.intro]])])}const bY=ln(oY,[["render",vY]]);var cv={exports:{}},uv={},Gt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e._registerNode=e.Konva=e.glob=void 0;const t=Math.PI/180;function n(){return typeof window!="undefined"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}e.glob=typeof $s!="undefined"?$s:typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"?self:{},e.Konva={_global:e.glob,version:"9.3.15",isBrowser:n(),isUnminified:/param/.test(function(s){}.toString()),dblClickWindow:400,getAngle(s){return e.Konva.angleDeg?s*t:s},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,_fixTextRendering:!1,pixelRatio:typeof window!="undefined"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return e.Konva.DD.isDragging},isTransforming(){var s;return(s=e.Konva.Transformer)===null||s===void 0?void 0:s.isTransforming()},isDragReady(){return!!e.Konva.DD.node},releaseCanvasOnDestroy:!0,document:e.glob.document,_injectGlobal(s){e.glob.Konva=s}};const r=s=>{e.Konva[s.prototype.getClassName()]=s};e._registerNode=r,e.Konva._injectGlobal(e.Konva)})(Gt);var En={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Util=e.Transform=void 0;const t=Gt;class n{constructor(S=[1,0,0,1,0,0]){this.dirty=!1,this.m=S&&S.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new n(this.m)}copyInto(S){S.m[0]=this.m[0],S.m[1]=this.m[1],S.m[2]=this.m[2],S.m[3]=this.m[3],S.m[4]=this.m[4],S.m[5]=this.m[5]}point(S){var A=this.m;return{x:A[0]*S.x+A[2]*S.y+A[4],y:A[1]*S.x+A[3]*S.y+A[5]}}translate(S,A){return this.m[4]+=this.m[0]*S+this.m[2]*A,this.m[5]+=this.m[1]*S+this.m[3]*A,this}scale(S,A){return this.m[0]*=S,this.m[1]*=S,this.m[2]*=A,this.m[3]*=A,this}rotate(S){var A=Math.cos(S),O=Math.sin(S),R=this.m[0]*A+this.m[2]*O,N=this.m[1]*A+this.m[3]*O,k=this.m[0]*-O+this.m[2]*A,L=this.m[1]*-O+this.m[3]*A;return this.m[0]=R,this.m[1]=N,this.m[2]=k,this.m[3]=L,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(S,A){var O=this.m[0]+this.m[2]*A,R=this.m[1]+this.m[3]*A,N=this.m[2]+this.m[0]*S,k=this.m[3]+this.m[1]*S;return this.m[0]=O,this.m[1]=R,this.m[2]=N,this.m[3]=k,this}multiply(S){var A=this.m[0]*S.m[0]+this.m[2]*S.m[1],O=this.m[1]*S.m[0]+this.m[3]*S.m[1],R=this.m[0]*S.m[2]+this.m[2]*S.m[3],N=this.m[1]*S.m[2]+this.m[3]*S.m[3],k=this.m[0]*S.m[4]+this.m[2]*S.m[5]+this.m[4],L=this.m[1]*S.m[4]+this.m[3]*S.m[5]+this.m[5];return this.m[0]=A,this.m[1]=O,this.m[2]=R,this.m[3]=N,this.m[4]=k,this.m[5]=L,this}invert(){var S=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),A=this.m[3]*S,O=-this.m[1]*S,R=-this.m[2]*S,N=this.m[0]*S,k=S*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),L=S*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=A,this.m[1]=O,this.m[2]=R,this.m[3]=N,this.m[4]=k,this.m[5]=L,this}getMatrix(){return this.m}decompose(){var S=this.m[0],A=this.m[1],O=this.m[2],R=this.m[3],N=this.m[4],k=this.m[5],L=S*R-A*O;let F={x:N,y:k,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(S!=0||A!=0){var G=Math.sqrt(S*S+A*A);F.rotation=A>0?Math.acos(S/G):-Math.acos(S/G),F.scaleX=G,F.scaleY=L/G,F.skewX=(S*O+A*R)/L,F.skewY=0}else if(O!=0||R!=0){var V=Math.sqrt(O*O+R*R);F.rotation=Math.PI/2-(R>0?Math.acos(-O/V):-Math.acos(O/V)),F.scaleX=L/V,F.scaleY=V,F.skewX=0,F.skewY=(S*O+A*R)/L}return F.rotation=e.Util._getRotation(F.rotation),F}}e.Transform=n;var r="[object Array]",s="[object Number]",o="[object String]",a="[object Boolean]",l=Math.PI/180,c=180/Math.PI,u="#",d="",f="0",h="Konva warning: ",g="Konva error: ",b="rgb(",y={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,132,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,255,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,203],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:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],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,5]},_=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/,w=[];const x=typeof requestAnimationFrame!="undefined"&&requestAnimationFrame||function(C){setTimeout(C,60)};e.Util={_isElement(C){return!!(C&&C.nodeType==1)},_isFunction(C){return!!(C&&C.constructor&&C.call&&C.apply)},_isPlainObject(C){return!!C&&C.constructor===Object},_isArray(C){return Object.prototype.toString.call(C)===r},_isNumber(C){return Object.prototype.toString.call(C)===s&&!isNaN(C)&&isFinite(C)},_isString(C){return Object.prototype.toString.call(C)===o},_isBoolean(C){return Object.prototype.toString.call(C)===a},isObject(C){return C instanceof Object},isValidSelector(C){if(typeof C!="string")return!1;var S=C[0];return S==="#"||S==="."||S===S.toUpperCase()},_sign(C){return C===0||C>0?1:-1},requestAnimFrame(C){w.push(C),w.length===1&&x(function(){const S=w;w=[],S.forEach(function(A){A()})})},createCanvasElement(){var C=document.createElement("canvas");try{C.style=C.style||{}}catch(S){}return C},createImageElement(){return document.createElement("img")},_isInDocument(C){for(;C=C.parentNode;)if(C==document)return!0;return!1},_urlToImage(C,S){var A=e.Util.createImageElement();A.onload=function(){S(A)},A.src=C},_rgbToHex(C,S,A){return((1<<24)+(C<<16)+(S<<8)+A).toString(16).slice(1)},_hexToRgb(C){C=C.replace(u,d);var S=parseInt(C,16);return{r:S>>16&255,g:S>>8&255,b:S&255}},getRandomColor(){for(var C=(Math.random()*16777215<<0).toString(16);C.length<6;)C=f+C;return u+C},getRGB(C){var S;return C in y?(S=y[C],{r:S[0],g:S[1],b:S[2]}):C[0]===u?this._hexToRgb(C.substring(1)):C.substr(0,4)===b?(S=_.exec(C.replace(/ /g,"")),{r:parseInt(S[1],10),g:parseInt(S[2],10),b:parseInt(S[3],10)}):{r:0,g:0,b:0}},colorToRGBA(C){return C=C||"black",e.Util._namedColorToRBA(C)||e.Util._hex3ColorToRGBA(C)||e.Util._hex4ColorToRGBA(C)||e.Util._hex6ColorToRGBA(C)||e.Util._hex8ColorToRGBA(C)||e.Util._rgbColorToRGBA(C)||e.Util._rgbaColorToRGBA(C)||e.Util._hslColorToRGBA(C)},_namedColorToRBA(C){var S=y[C.toLowerCase()];return S?{r:S[0],g:S[1],b:S[2],a:1}:null},_rgbColorToRGBA(C){if(C.indexOf("rgb(")===0){C=C.match(/rgb\(([^)]+)\)/)[1];var S=C.split(/ *, */).map(Number);return{r:S[0],g:S[1],b:S[2],a:1}}},_rgbaColorToRGBA(C){if(C.indexOf("rgba(")===0){C=C.match(/rgba\(([^)]+)\)/)[1];var S=C.split(/ *, */).map((A,O)=>A.slice(-1)==="%"?O===3?parseInt(A)/100:parseInt(A)/100*255:Number(A));return{r:S[0],g:S[1],b:S[2],a:S[3]}}},_hex8ColorToRGBA(C){if(C[0]==="#"&&C.length===9)return{r:parseInt(C.slice(1,3),16),g:parseInt(C.slice(3,5),16),b:parseInt(C.slice(5,7),16),a:parseInt(C.slice(7,9),16)/255}},_hex6ColorToRGBA(C){if(C[0]==="#"&&C.length===7)return{r:parseInt(C.slice(1,3),16),g:parseInt(C.slice(3,5),16),b:parseInt(C.slice(5,7),16),a:1}},_hex4ColorToRGBA(C){if(C[0]==="#"&&C.length===5)return{r:parseInt(C[1]+C[1],16),g:parseInt(C[2]+C[2],16),b:parseInt(C[3]+C[3],16),a:parseInt(C[4]+C[4],16)/255}},_hex3ColorToRGBA(C){if(C[0]==="#"&&C.length===4)return{r:parseInt(C[1]+C[1],16),g:parseInt(C[2]+C[2],16),b:parseInt(C[3]+C[3],16),a:1}},_hslColorToRGBA(C){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(C)){const[S,...A]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(C),O=Number(A[0])/360,R=Number(A[1])/100,N=Number(A[2])/100;let k,L,F;if(R===0)return F=N*255,{r:Math.round(F),g:Math.round(F),b:Math.round(F),a:1};N<.5?k=N*(1+R):k=N+R-N*R;const G=2*N-k,V=[0,0,0];for(let ae=0;ae<3;ae++)L=O+1/3*-(ae-1),L<0&&L++,L>1&&L--,6*L<1?F=G+(k-G)*6*L:2*L<1?F=k:3*L<2?F=G+(k-G)*(2/3-L)*6:F=G,V[ae]=F*255;return{r:Math.round(V[0]),g:Math.round(V[1]),b:Math.round(V[2]),a:1}}},haveIntersection(C,S){return!(S.x>C.x+C.width||S.x+S.width<C.x||S.y>C.y+C.height||S.y+S.height<C.y)},cloneObject(C){var S={};for(var A in C)this._isPlainObject(C[A])?S[A]=this.cloneObject(C[A]):this._isArray(C[A])?S[A]=this.cloneArray(C[A]):S[A]=C[A];return S},cloneArray(C){return C.slice(0)},degToRad(C){return C*l},radToDeg(C){return C*c},_degToRad(C){return e.Util.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),e.Util.degToRad(C)},_radToDeg(C){return e.Util.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),e.Util.radToDeg(C)},_getRotation(C){return t.Konva.angleDeg?e.Util.radToDeg(C):C},_capitalize(C){return C.charAt(0).toUpperCase()+C.slice(1)},throw(C){throw new Error(g+C)},error(C){console.error(g+C)},warn(C){t.Konva.showWarnings&&console.warn(h+C)},each(C,S){for(var A in C)S(A,C[A])},_inRange(C,S,A){return S<=C&&C<A},_getProjectionToSegment(C,S,A,O,R,N){var k,L,F,G=(C-A)*(C-A)+(S-O)*(S-O);if(G==0)k=C,L=S,F=(R-A)*(R-A)+(N-O)*(N-O);else{var V=((R-C)*(A-C)+(N-S)*(O-S))/G;V<0?(k=C,L=S,F=(C-R)*(C-R)+(S-N)*(S-N)):V>1?(k=A,L=O,F=(A-R)*(A-R)+(O-N)*(O-N)):(k=C+V*(A-C),L=S+V*(O-S),F=(k-R)*(k-R)+(L-N)*(L-N))}return[k,L,F]},_getProjectionToLine(C,S,A){var O=e.Util.cloneObject(C),R=Number.MAX_VALUE;return S.forEach(function(N,k){if(!(!A&&k===S.length-1)){var L=S[(k+1)%S.length],F=e.Util._getProjectionToSegment(N.x,N.y,L.x,L.y,C.x,C.y),G=F[0],V=F[1],ae=F[2];ae<R&&(O.x=G,O.y=V,R=ae)}}),O},_prepareArrayForTween(C,S,A){var O,R=[],N=[];if(C.length>S.length){var k=S;S=C,C=k}for(O=0;O<C.length;O+=2)R.push({x:C[O],y:C[O+1]});for(O=0;O<S.length;O+=2)N.push({x:S[O],y:S[O+1]});var L=[];return N.forEach(function(F){var G=e.Util._getProjectionToLine(F,R,A);L.push(G.x),L.push(G.y)}),L},_prepareToStringify(C){var S;C.visitedByCircularReferenceRemoval=!0;for(var A in C)if(C.hasOwnProperty(A)&&C[A]&&typeof C[A]=="object"){if(S=Object.getOwnPropertyDescriptor(C,A),C[A].visitedByCircularReferenceRemoval||e.Util._isElement(C[A]))if(S.configurable)delete C[A];else return null;else if(e.Util._prepareToStringify(C[A])===null)if(S.configurable)delete C[A];else return null}return delete C.visitedByCircularReferenceRemoval,C},_assign(C,S){for(var A in S)C[A]=S[A];return C},_getFirstPointerId(C){return C.touches?C.changedTouches[0].identifier:C.pointerId||999},releaseCanvas(...C){t.Konva.releaseCanvasOnDestroy&&C.forEach(S=>{S.width=0,S.height=0})},drawRoundedRectPath(C,S,A,O){let R=0,N=0,k=0,L=0;typeof O=="number"?R=N=k=L=Math.min(O,S/2,A/2):(R=Math.min(O[0]||0,S/2,A/2),N=Math.min(O[1]||0,S/2,A/2),L=Math.min(O[2]||0,S/2,A/2),k=Math.min(O[3]||0,S/2,A/2)),C.moveTo(R,0),C.lineTo(S-N,0),C.arc(S-N,N,N,Math.PI*3/2,0,!1),C.lineTo(S,A-L),C.arc(S-L,A-L,L,0,Math.PI/2,!1),C.lineTo(k,A),C.arc(k,A-k,k,Math.PI/2,Math.PI,!1),C.lineTo(0,R),C.arc(R,R,R,Math.PI,Math.PI*3/2,!1)}}})(En);var Ws={},oi={},Ot={};Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.getComponentValidator=Ot.getBooleanValidator=Ot.getNumberArrayValidator=Ot.getFunctionValidator=Ot.getStringOrGradientValidator=Ot.getStringValidator=Ot.getNumberOrAutoValidator=Ot.getNumberOrArrayOfNumbersValidator=Ot.getNumberValidator=Ot.alphaComponent=Ot.RGBComponent=void 0;const ds=Gt,nn=En;function fs(e){return nn.Util._isString(e)?'"'+e+'"':Object.prototype.toString.call(e)==="[object Number]"||nn.Util._isBoolean(e)?e:Object.prototype.toString.call(e)}function yY(e){return e>255?255:e<0?0:Math.round(e)}Ot.RGBComponent=yY;function _Y(e){return e>1?1:e<1e-4?1e-4:e}Ot.alphaComponent=_Y;function wY(){if(ds.Konva.isUnminified)return function(e,t){return nn.Util._isNumber(e)||nn.Util.warn(fs(e)+' is a not valid value for "'+t+'" attribute. The value should be a number.'),e}}Ot.getNumberValidator=wY;function CY(e){if(ds.Konva.isUnminified)return function(t,n){let r=nn.Util._isNumber(t),s=nn.Util._isArray(t)&&t.length==e;return!r&&!s&&nn.Util.warn(fs(t)+' is a not valid value for "'+n+'" attribute. The value should be a number or Array<number>('+e+")"),t}}Ot.getNumberOrArrayOfNumbersValidator=CY;function SY(){if(ds.Konva.isUnminified)return function(e,t){var n=nn.Util._isNumber(e),r=e==="auto";return n||r||nn.Util.warn(fs(e)+' is a not valid value for "'+t+'" attribute. The value should be a number or "auto".'),e}}Ot.getNumberOrAutoValidator=SY;function EY(){if(ds.Konva.isUnminified)return function(e,t){return nn.Util._isString(e)||nn.Util.warn(fs(e)+' is a not valid value for "'+t+'" attribute. The value should be a string.'),e}}Ot.getStringValidator=EY;function xY(){if(ds.Konva.isUnminified)return function(e,t){const n=nn.Util._isString(e),r=Object.prototype.toString.call(e)==="[object CanvasGradient]"||e&&e.addColorStop;return n||r||nn.Util.warn(fs(e)+' is a not valid value for "'+t+'" attribute. The value should be a string or a native gradient.'),e}}Ot.getStringOrGradientValidator=xY;function AY(){if(ds.Konva.isUnminified)return function(e,t){return nn.Util._isFunction(e)||nn.Util.warn(fs(e)+' is a not valid value for "'+t+'" attribute. The value should be a function.'),e}}Ot.getFunctionValidator=AY;function PY(){if(ds.Konva.isUnminified)return function(e,t){const n=Int8Array?Object.getPrototypeOf(Int8Array):null;return n&&e instanceof n||(nn.Util._isArray(e)?e.forEach(function(r){nn.Util._isNumber(r)||nn.Util.warn('"'+t+'" attribute has non numeric element '+r+". Make sure that all elements are numbers.")}):nn.Util.warn(fs(e)+' is a not valid value for "'+t+'" attribute. The value should be a array of numbers.')),e}}Ot.getNumberArrayValidator=PY;function TY(){if(ds.Konva.isUnminified)return function(e,t){var n=e===!0||e===!1;return n||nn.Util.warn(fs(e)+' is a not valid value for "'+t+'" attribute. The value should be a boolean.'),e}}Ot.getBooleanValidator=TY;function OY(e){if(ds.Konva.isUnminified)return function(t,n){return t==null||nn.Util.isObject(t)||nn.Util.warn(fs(t)+' is a not valid value for "'+n+'" attribute. The value should be an object with properties '+e),t}}Ot.getComponentValidator=OY,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Factory=void 0;const t=En,n=Ot;var r="get",s="set";e.Factory={addGetterSetter(o,a,l,c,u){e.Factory.addGetter(o,a,l),e.Factory.addSetter(o,a,c,u),e.Factory.addOverloadedGetterSetter(o,a)},addGetter(o,a,l){var c=r+t.Util._capitalize(a);o.prototype[c]=o.prototype[c]||function(){var u=this.attrs[a];return u===void 0?l:u}},addSetter(o,a,l,c){var u=s+t.Util._capitalize(a);o.prototype[u]||e.Factory.overWriteSetter(o,a,l,c)},overWriteSetter(o,a,l,c){var u=s+t.Util._capitalize(a);o.prototype[u]=function(d){return l&&d!==void 0&&d!==null&&(d=l.call(this,d,a)),this._setAttr(a,d),c&&c.call(this),this}},addComponentsGetterSetter(o,a,l,c,u){var d=l.length,f=t.Util._capitalize,h=r+f(a),g=s+f(a),b,y;o.prototype[h]=function(){var w={};for(b=0;b<d;b++)y=l[b],w[y]=this.getAttr(a+f(y));return w};var _=(0,n.getComponentValidator)(l);o.prototype[g]=function(w){var x=this.attrs[a],C;c&&(w=c.call(this,w)),_&&_.call(this,w,a);for(C in w)w.hasOwnProperty(C)&&this._setAttr(a+f(C),w[C]);return w||l.forEach(S=>{this._setAttr(a+f(S),void 0)}),this._fireChangeEvent(a,x,w),u&&u.call(this),this},e.Factory.addOverloadedGetterSetter(o,a)},addOverloadedGetterSetter(o,a){var l=t.Util._capitalize(a),c=s+l,u=r+l;o.prototype[a]=function(){return arguments.length?(this[c](arguments[0]),this):this[u]()}},addDeprecatedGetterSetter(o,a,l,c){t.Util.error("Adding deprecated "+a);var u=r+t.Util._capitalize(a),d=a+" property is deprecated and will be removed soon. Look at Konva change log for more information.";o.prototype[u]=function(){t.Util.error(d);var f=this.attrs[a];return f===void 0?l:f},e.Factory.addSetter(o,a,c,function(){t.Util.error(d)}),e.Factory.addOverloadedGetterSetter(o,a)},backCompat(o,a){t.Util.each(a,function(l,c){var u=o.prototype[c],d=r+t.Util._capitalize(l),f=s+t.Util._capitalize(l);function h(){u.apply(this,arguments),t.Util.error('"'+l+'" method is deprecated and will be removed soon. Use ""'+c+'" instead.')}o.prototype[l]=h,o.prototype[d]=h,o.prototype[f]=h})},afterSetFilter(){this._filterUpToDate=!1}}}(oi);var rr={},hs={};Object.defineProperty(hs,"__esModule",{value:!0}),hs.HitContext=hs.SceneContext=hs.Context=void 0;const X8=En,NY=Gt;function IY(e){var t=[],n=e.length,r=X8.Util,s,o;for(s=0;s<n;s++)o=e[s],r._isNumber(o)?o=Math.round(o*1e3)/1e3:r._isString(o)||(o=o+""),t.push(o);return t}var Z8=",",RY="(",DY=")",LY="([",kY="])",MY=";",FY="()",BY="=",Q8=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","ellipse","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","roundRect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"],jY=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","letterSpacing","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","direction","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled"];const UY=100;class zf{constructor(t){this.canvas=t,NY.Konva.enableTrace&&(this.traceArr=[],this._enableTrace())}fillShape(t){t.fillEnabled()&&this._fill(t)}_fill(t){}strokeShape(t){t.hasStroke()&&this._stroke(t)}_stroke(t){}fillStrokeShape(t){t.attrs.fillAfterStrokeEnabled?(this.strokeShape(t),this.fillShape(t)):(this.fillShape(t),this.strokeShape(t))}getTrace(t,n){var r=this.traceArr,s=r.length,o="",a,l,c,u;for(a=0;a<s;a++)l=r[a],c=l.method,c?(u=l.args,o+=c,t?o+=FY:X8.Util._isArray(u[0])?o+=LY+u.join(Z8)+kY:(n&&(u=u.map(d=>typeof d=="number"?Math.floor(d):d)),o+=RY+u.join(Z8)+DY)):(o+=l.property,t||(o+=BY+l.val)),o+=MY;return o}clearTrace(){this.traceArr=[]}_trace(t){var n=this.traceArr,r;n.push(t),r=n.length,r>=UY&&n.shift()}reset(){var t=this.getCanvas().getPixelRatio();this.setTransform(1*t,0,0,1*t,0,0)}getCanvas(){return this.canvas}clear(t){var n=this.getCanvas();t?this.clearRect(t.x||0,t.y||0,t.width||0,t.height||0):this.clearRect(0,0,n.getWidth()/n.pixelRatio,n.getHeight()/n.pixelRatio)}_applyLineCap(t){const n=t.attrs.lineCap;n&&this.setAttr("lineCap",n)}_applyOpacity(t){var n=t.getAbsoluteOpacity();n!==1&&this.setAttr("globalAlpha",n)}_applyLineJoin(t){const n=t.attrs.lineJoin;n&&this.setAttr("lineJoin",n)}setAttr(t,n){this._context[t]=n}arc(t,n,r,s,o,a){this._context.arc(t,n,r,s,o,a)}arcTo(t,n,r,s,o){this._context.arcTo(t,n,r,s,o)}beginPath(){this._context.beginPath()}bezierCurveTo(t,n,r,s,o,a){this._context.bezierCurveTo(t,n,r,s,o,a)}clearRect(t,n,r,s){this._context.clearRect(t,n,r,s)}clip(...t){this._context.clip.apply(this._context,t)}closePath(){this._context.closePath()}createImageData(t,n){var r=arguments;if(r.length===2)return this._context.createImageData(t,n);if(r.length===1)return this._context.createImageData(t)}createLinearGradient(t,n,r,s){return this._context.createLinearGradient(t,n,r,s)}createPattern(t,n){return this._context.createPattern(t,n)}createRadialGradient(t,n,r,s,o,a){return this._context.createRadialGradient(t,n,r,s,o,a)}drawImage(t,n,r,s,o,a,l,c,u){var d=arguments,f=this._context;d.length===3?f.drawImage(t,n,r):d.length===5?f.drawImage(t,n,r,s,o):d.length===9&&f.drawImage(t,n,r,s,o,a,l,c,u)}ellipse(t,n,r,s,o,a,l,c){this._context.ellipse(t,n,r,s,o,a,l,c)}isPointInPath(t,n,r,s){return r?this._context.isPointInPath(r,t,n,s):this._context.isPointInPath(t,n,s)}fill(...t){this._context.fill.apply(this._context,t)}fillRect(t,n,r,s){this._context.fillRect(t,n,r,s)}strokeRect(t,n,r,s){this._context.strokeRect(t,n,r,s)}fillText(t,n,r,s){s?this._context.fillText(t,n,r,s):this._context.fillText(t,n,r)}measureText(t){return this._context.measureText(t)}getImageData(t,n,r,s){return this._context.getImageData(t,n,r,s)}lineTo(t,n){this._context.lineTo(t,n)}moveTo(t,n){this._context.moveTo(t,n)}rect(t,n,r,s){this._context.rect(t,n,r,s)}roundRect(t,n,r,s,o){this._context.roundRect(t,n,r,s,o)}putImageData(t,n,r){this._context.putImageData(t,n,r)}quadraticCurveTo(t,n,r,s){this._context.quadraticCurveTo(t,n,r,s)}restore(){this._context.restore()}rotate(t){this._context.rotate(t)}save(){this._context.save()}scale(t,n){this._context.scale(t,n)}setLineDash(t){this._context.setLineDash?this._context.setLineDash(t):"mozDash"in this._context?this._context.mozDash=t:"webkitLineDash"in this._context&&(this._context.webkitLineDash=t)}getLineDash(){return this._context.getLineDash()}setTransform(t,n,r,s,o,a){this._context.setTransform(t,n,r,s,o,a)}stroke(t){t?this._context.stroke(t):this._context.stroke()}strokeText(t,n,r,s){this._context.strokeText(t,n,r,s)}transform(t,n,r,s,o,a){this._context.transform(t,n,r,s,o,a)}translate(t,n){this._context.translate(t,n)}_enableTrace(){var t=this,n=Q8.length,r=this.setAttr,s,o,a=function(l){var c=t[l],u;t[l]=function(){return o=IY(Array.prototype.slice.call(arguments,0)),u=c.apply(t,arguments),t._trace({method:l,args:o}),u}};for(s=0;s<n;s++)a(Q8[s]);t.setAttr=function(){r.apply(t,arguments);var l=arguments[0],c=arguments[1];(l==="shadowOffsetX"||l==="shadowOffsetY"||l==="shadowBlur")&&(c=c/this.canvas.getPixelRatio()),t._trace({property:l,val:c})}}_applyGlobalCompositeOperation(t){const n=t.attrs.globalCompositeOperation;var r=!n||n==="source-over";r||this.setAttr("globalCompositeOperation",n)}}hs.Context=zf,jY.forEach(function(e){Object.defineProperty(zf.prototype,e,{get(){return this._context[e]},set(t){this._context[e]=t}})});class $Y extends zf{constructor(t,{willReadFrequently:n=!1}={}){super(t),this._context=t._canvas.getContext("2d",{willReadFrequently:n})}_fillColor(t){var n=t.fill();this.setAttr("fillStyle",n),t._fillFunc(this)}_fillPattern(t){this.setAttr("fillStyle",t._getFillPattern()),t._fillFunc(this)}_fillLinearGradient(t){var n=t._getLinearGradient();n&&(this.setAttr("fillStyle",n),t._fillFunc(this))}_fillRadialGradient(t){const n=t._getRadialGradient();n&&(this.setAttr("fillStyle",n),t._fillFunc(this))}_fill(t){const n=t.fill(),r=t.getFillPriority();if(n&&r==="color"){this._fillColor(t);return}const s=t.getFillPatternImage();if(s&&r==="pattern"){this._fillPattern(t);return}const o=t.getFillLinearGradientColorStops();if(o&&r==="linear-gradient"){this._fillLinearGradient(t);return}const a=t.getFillRadialGradientColorStops();if(a&&r==="radial-gradient"){this._fillRadialGradient(t);return}n?this._fillColor(t):s?this._fillPattern(t):o?this._fillLinearGradient(t):a&&this._fillRadialGradient(t)}_strokeLinearGradient(t){const n=t.getStrokeLinearGradientStartPoint(),r=t.getStrokeLinearGradientEndPoint(),s=t.getStrokeLinearGradientColorStops(),o=this.createLinearGradient(n.x,n.y,r.x,r.y);if(s){for(var a=0;a<s.length;a+=2)o.addColorStop(s[a],s[a+1]);this.setAttr("strokeStyle",o)}}_stroke(t){var n=t.dash(),r=t.getStrokeScaleEnabled();if(t.hasStroke()){if(!r){this.save();var s=this.getCanvas().getPixelRatio();this.setTransform(s,0,0,s,0,0)}this._applyLineCap(t),n&&t.dashEnabled()&&(this.setLineDash(n),this.setAttr("lineDashOffset",t.dashOffset())),this.setAttr("lineWidth",t.strokeWidth()),t.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)");var o=t.getStrokeLinearGradientColorStops();o?this._strokeLinearGradient(t):this.setAttr("strokeStyle",t.stroke()),t._strokeFunc(this),r||this.restore()}}_applyShadow(t){var n,r,s,o=(n=t.getShadowRGBA())!==null&&n!==void 0?n:"black",a=(r=t.getShadowBlur())!==null&&r!==void 0?r:5,l=(s=t.getShadowOffset())!==null&&s!==void 0?s:{x:0,y:0},c=t.getAbsoluteScale(),u=this.canvas.getPixelRatio(),d=c.x*u,f=c.y*u;this.setAttr("shadowColor",o),this.setAttr("shadowBlur",a*Math.min(Math.abs(d),Math.abs(f))),this.setAttr("shadowOffsetX",l.x*d),this.setAttr("shadowOffsetY",l.y*f)}}hs.SceneContext=$Y;class VY extends zf{constructor(t){super(t),this._context=t._canvas.getContext("2d",{willReadFrequently:!0})}_fill(t){this.save(),this.setAttr("fillStyle",t.colorKey),t._fillFuncHit(this),this.restore()}strokeShape(t){t.hasHitStroke()&&this._stroke(t)}_stroke(t){if(t.hasHitStroke()){const o=t.getStrokeScaleEnabled();if(!o){this.save();var n=this.getCanvas().getPixelRatio();this.setTransform(n,0,0,n,0,0)}this._applyLineCap(t);var r=t.hitStrokeWidth(),s=r==="auto"?t.strokeWidth():r;this.setAttr("lineWidth",s),this.setAttr("strokeStyle",t.colorKey),t._strokeFuncHit(this),o||this.restore()}}}hs.HitContext=VY,Object.defineProperty(rr,"__esModule",{value:!0}),rr.HitCanvas=rr.SceneCanvas=rr.Canvas=void 0;const qf=En,e4=hs,t4=Gt,zY=oi,qY=Ot;var Hf;function HY(){if(Hf)return Hf;var e=qf.Util.createCanvasElement(),t=e.getContext("2d");return Hf=function(){var n=t4.Konva._global.devicePixelRatio||1,r=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return n/r}(),qf.Util.releaseCanvas(e),Hf}class Gf{constructor(t){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;var n=t||{},r=n.pixelRatio||t4.Konva.pixelRatio||HY();this.pixelRatio=r,this._canvas=qf.Util.createCanvasElement(),this._canvas.style.padding="0",this._canvas.style.margin="0",this._canvas.style.border="0",this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top="0",this._canvas.style.left="0"}getContext(){return this.context}getPixelRatio(){return this.pixelRatio}setPixelRatio(t){var n=this.pixelRatio;this.pixelRatio=t,this.setSize(this.getWidth()/n,this.getHeight()/n)}setWidth(t){this.width=this._canvas.width=t*this.pixelRatio,this._canvas.style.width=t+"px";var n=this.pixelRatio,r=this.getContext()._context;r.scale(n,n)}setHeight(t){this.height=this._canvas.height=t*this.pixelRatio,this._canvas.style.height=t+"px";var n=this.pixelRatio,r=this.getContext()._context;r.scale(n,n)}getWidth(){return this.width}getHeight(){return this.height}setSize(t,n){this.setWidth(t||0),this.setHeight(n||0)}toDataURL(t,n){try{return this._canvas.toDataURL(t,n)}catch(r){try{return this._canvas.toDataURL()}catch(s){return qf.Util.error("Unable to get data URL. "+s.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}}rr.Canvas=Gf,zY.Factory.addGetterSetter(Gf,"pixelRatio",void 0,(0,qY.getNumberValidator)());class GY extends Gf{constructor(t={width:0,height:0,willReadFrequently:!1}){super(t),this.context=new e4.SceneContext(this,{willReadFrequently:t.willReadFrequently}),this.setSize(t.width,t.height)}}rr.SceneCanvas=GY;class WY extends Gf{constructor(t={width:0,height:0}){super(t),this.hitCanvas=!0,this.context=new e4.HitContext(this),this.setSize(t.width,t.height)}}rr.HitCanvas=WY;var Wf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DD=void 0;const t=Gt,n=En;e.DD={get isDragging(){var r=!1;return e.DD._dragElements.forEach(s=>{s.dragStatus==="dragging"&&(r=!0)}),r},justDragged:!1,get node(){var r;return e.DD._dragElements.forEach(s=>{r=s.node}),r},_dragElements:new Map,_drag(r){const s=[];e.DD._dragElements.forEach((o,a)=>{const{node:l}=o,c=l.getStage();c.setPointersPositions(r),o.pointerId===void 0&&(o.pointerId=n.Util._getFirstPointerId(r));const u=c._changedPointerPositions.find(h=>h.id===o.pointerId);if(u){if(o.dragStatus!=="dragging"){var d=l.dragDistance(),f=Math.max(Math.abs(u.x-o.startPointerPos.x),Math.abs(u.y-o.startPointerPos.y));if(f<d||(l.startDrag({evt:r}),!l.isDragging()))return}l._setDragPosition(r,o),s.push(l)}}),s.forEach(o=>{o.fire("dragmove",{type:"dragmove",target:o,evt:r},!0)})},_endDragBefore(r){const s=[];e.DD._dragElements.forEach(o=>{const{node:a}=o,l=a.getStage();if(r&&l.setPointersPositions(r),!l._changedPointerPositions.find(d=>d.id===o.pointerId))return;(o.dragStatus==="dragging"||o.dragStatus==="stopped")&&(e.DD.justDragged=!0,t.Konva._mouseListenClick=!1,t.Konva._touchListenClick=!1,t.Konva._pointerListenClick=!1,o.dragStatus="stopped");const u=o.node.getLayer()||o.node instanceof t.Konva.Stage&&o.node;u&&s.indexOf(u)===-1&&s.push(u)}),s.forEach(o=>{o.draw()})},_endDragAfter(r){e.DD._dragElements.forEach((s,o)=>{s.dragStatus==="stopped"&&s.node.fire("dragend",{type:"dragend",target:s.node,evt:r},!0),s.dragStatus!=="dragging"&&e.DD._dragElements.delete(o)})}},t.Konva.isBrowser&&(window.addEventListener("mouseup",e.DD._endDragBefore,!0),window.addEventListener("touchend",e.DD._endDragBefore,!0),window.addEventListener("mousemove",e.DD._drag),window.addEventListener("touchmove",e.DD._drag),window.addEventListener("mouseup",e.DD._endDragAfter,!1),window.addEventListener("touchend",e.DD._endDragAfter,!1))})(Wf),Object.defineProperty(Ws,"__esModule",{value:!0}),Ws.Node=void 0;const Pt=En,Yc=oi,Xc=rr,Ks=Gt,Li=Wf,cn=Ot;var Kf="absoluteOpacity",Jf="allEventListeners",ps="absoluteTransform",n4="absoluteScale",Ko="canvas",KY="Change",JY="children",YY="konva",dv="listening",i4="mouseenter",r4="mouseleave",s4="set",o4="Shape",Yf=" ",a4="stage",Js="transform",XY="Stage",fv="visible",ZY=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(Yf);let QY=1;class ut{constructor(t){this._id=QY++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(t),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(t){(t===Js||t===ps)&&this._cache.get(t)?this._cache.get(t).dirty=!0:t?this._cache.delete(t):this._cache.clear()}_getCache(t,n){var r=this._cache.get(t),s=t===Js||t===ps,o=r===void 0||s&&r.dirty===!0;return o&&(r=n.call(this),this._cache.set(t,r)),r}_calculate(t,n,r){if(!this._attachedDepsListeners.get(t)){const s=n.map(o=>o+"Change.konva").join(Yf);this.on(s,()=>{this._clearCache(t)}),this._attachedDepsListeners.set(t,!0)}return this._getCache(t,r)}_getCanvasCache(){return this._cache.get(Ko)}_clearSelfAndDescendantCache(t){this._clearCache(t),t===ps&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(Ko)){const{scene:t,filter:n,hit:r}=this._cache.get(Ko);Pt.Util.releaseCanvas(t,n,r),this._cache.delete(Ko)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(t){var n=t||{},r={};(n.x===void 0||n.y===void 0||n.width===void 0||n.height===void 0)&&(r=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));var s=Math.ceil(n.width||r.width),o=Math.ceil(n.height||r.height),a=n.pixelRatio,l=n.x===void 0?Math.floor(r.x):n.x,c=n.y===void 0?Math.floor(r.y):n.y,u=n.offset||0,d=n.drawBorder||!1,f=n.hitCanvasPixelRatio||1;if(!s||!o){Pt.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}const h=Math.abs(Math.round(r.x)-l)>.5?1:0,g=Math.abs(Math.round(r.y)-c)>.5?1:0;s+=u*2+h,o+=u*2+g,l-=u,c-=u;var b=new Xc.SceneCanvas({pixelRatio:a,width:s,height:o}),y=new Xc.SceneCanvas({pixelRatio:a,width:0,height:0,willReadFrequently:!0}),_=new Xc.HitCanvas({pixelRatio:f,width:s,height:o}),w=b.getContext(),x=_.getContext();return _.isCache=!0,b.isCache=!0,this._cache.delete(Ko),this._filterUpToDate=!1,n.imageSmoothingEnabled===!1&&(b.getContext()._context.imageSmoothingEnabled=!1,y.getContext()._context.imageSmoothingEnabled=!1),w.save(),x.save(),w.translate(-l,-c),x.translate(-l,-c),this._isUnderCache=!0,this._clearSelfAndDescendantCache(Kf),this._clearSelfAndDescendantCache(n4),this.drawScene(b,this),this.drawHit(_,this),this._isUnderCache=!1,w.restore(),x.restore(),d&&(w.save(),w.beginPath(),w.rect(0,0,s,o),w.closePath(),w.setAttr("strokeStyle","red"),w.setAttr("lineWidth",5),w.stroke(),w.restore()),this._cache.set(Ko,{scene:b,filter:y,hit:_,x:l,y:c}),this._requestDraw(),this}isCached(){return this._cache.has(Ko)}getClientRect(t){throw new Error('abstract "getClientRect" method call')}_transformedRect(t,n){var r=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],s=1/0,o=1/0,a=-1/0,l=-1/0,c=this.getAbsoluteTransform(n);return r.forEach(function(u){var d=c.point(u);s===void 0&&(s=a=d.x,o=l=d.y),s=Math.min(s,d.x),o=Math.min(o,d.y),a=Math.max(a,d.x),l=Math.max(l,d.y)}),{x:s,y:o,width:a-s,height:l-o}}_drawCachedSceneCanvas(t){t.save(),t._applyOpacity(this),t._applyGlobalCompositeOperation(this);const n=this._getCanvasCache();t.translate(n.x,n.y);var r=this._getCachedSceneCanvas(),s=r.pixelRatio;t.drawImage(r._canvas,0,0,r.width/s,r.height/s),t.restore()}_drawCachedHitCanvas(t){var n=this._getCanvasCache(),r=n.hit;t.save(),t.translate(n.x,n.y),t.drawImage(r._canvas,0,0,r.width/r.pixelRatio,r.height/r.pixelRatio),t.restore()}_getCachedSceneCanvas(){var t=this.filters(),n=this._getCanvasCache(),r=n.scene,s=n.filter,o=s.getContext(),a,l,c,u;if(t){if(!this._filterUpToDate){var d=r.pixelRatio;s.setSize(r.width/r.pixelRatio,r.height/r.pixelRatio);try{for(a=t.length,o.clear(),o.drawImage(r._canvas,0,0,r.getWidth()/d,r.getHeight()/d),l=o.getImageData(0,0,s.getWidth(),s.getHeight()),c=0;c<a;c++){if(u=t[c],typeof u!="function"){Pt.Util.error("Filter should be type of function, but got "+typeof u+" instead. Please check correct filters");continue}u.call(this,l),o.putImageData(l,0,0)}}catch(f){Pt.Util.error("Unable to apply filter. "+f.message+" This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.")}this._filterUpToDate=!0}return s}return r}on(t,n){if(this._cache&&this._cache.delete(Jf),arguments.length===3)return this._delegate.apply(this,arguments);var r=t.split(Yf),s=r.length,o,a,l,c,u;for(o=0;o<s;o++)a=r[o],l=a.split("."),c=l[0],u=l[1]||"",this.eventListeners[c]||(this.eventListeners[c]=[]),this.eventListeners[c].push({name:u,handler:n});return this}off(t,n){var r=(t||"").split(Yf),s=r.length,o,a,l,c,u,d;if(this._cache&&this._cache.delete(Jf),!t)for(a in this.eventListeners)this._off(a);for(o=0;o<s;o++)if(l=r[o],c=l.split("."),u=c[0],d=c[1],u)this.eventListeners[u]&&this._off(u,d,n);else for(a in this.eventListeners)this._off(a,d,n);return this}dispatchEvent(t){var n={target:this,type:t.type,evt:t};return this.fire(t.type,n),this}addEventListener(t,n){return this.on(t,function(r){n.call(this,r.evt)}),this}removeEventListener(t){return this.off(t),this}_delegate(t,n,r){var s=this;this.on(t,function(o){for(var a=o.target.findAncestors(n,!0,s),l=0;l<a.length;l++)o=Pt.Util.cloneObject(o),o.currentTarget=a[l],r.call(a[l],o)})}remove(){return this.isDragging()&&this.stopDrag(),Li.DD._dragElements.delete(this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(ps),this._clearSelfAndDescendantCache(Kf),this._clearSelfAndDescendantCache(n4),this._clearSelfAndDescendantCache(a4),this._clearSelfAndDescendantCache(fv),this._clearSelfAndDescendantCache(dv)}_remove(){this._clearCaches();var t=this.getParent();t&&t.children&&(t.children.splice(this.index,1),t._setChildrenIndices(),this.parent=null)}destroy(){return this.remove(),this.clearCache(),this}getAttr(t){var n="get"+Pt.Util._capitalize(t);return Pt.Util._isFunction(this[n])?this[n]():this.attrs[t]}getAncestors(){for(var t=this.getParent(),n=[];t;)n.push(t),t=t.getParent();return n}getAttrs(){return this.attrs||{}}setAttrs(t){return this._batchTransformChanges(()=>{var n,r;if(!t)return this;for(n in t)n!==JY&&(r=s4+Pt.Util._capitalize(n),Pt.Util._isFunction(this[r])?this[r](t[n]):this._setAttr(n,t[n]))}),this}isListening(){return this._getCache(dv,this._isListening)}_isListening(t){if(!this.listening())return!1;const r=this.getParent();return r&&r!==t&&this!==t?r._isListening(t):!0}isVisible(){return this._getCache(fv,this._isVisible)}_isVisible(t){if(!this.visible())return!1;const r=this.getParent();return r&&r!==t&&this!==t?r._isVisible(t):!0}shouldDrawHit(t,n=!1){if(t)return this._isVisible(t)&&this._isListening(t);var r=this.getLayer(),s=!1;Li.DD._dragElements.forEach(a=>{a.dragStatus==="dragging"&&(a.node.nodeType==="Stage"||a.node.getLayer()===r)&&(s=!0)});var o=!n&&!Ks.Konva.hitOnDragEnabled&&(s||Ks.Konva.isTransforming());return this.isListening()&&this.isVisible()&&!o}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){var t=this.getDepth(),n=this,r=0,s,o,a,l;function c(d){for(s=[],o=d.length,a=0;a<o;a++)l=d[a],r++,l.nodeType!==o4&&(s=s.concat(l.getChildren().slice())),l._id===n._id&&(a=o);s.length>0&&s[0].getDepth()<=t&&c(s)}const u=this.getStage();return n.nodeType!==XY&&u&&c(u.getChildren()),r}getDepth(){for(var t=0,n=this.parent;n;)t++,n=n.parent;return t}_batchTransformChanges(t){this._batchingTransformChange=!0,t(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(Js),this._clearSelfAndDescendantCache(ps)),this._needClearTransformCache=!1}setPosition(t){return this._batchTransformChanges(()=>{this.x(t.x),this.y(t.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const t=this.getStage();if(!t)return null;var n=t.getPointerPosition();if(!n)return null;var r=this.getAbsoluteTransform().copy();return r.invert(),r.point(n)}getAbsolutePosition(t){let n=!1,r=this.parent;for(;r;){if(r.isCached()){n=!0;break}r=r.parent}n&&!t&&(t=!0);var s=this.getAbsoluteTransform(t).getMatrix(),o=new Pt.Transform,a=this.offset();return o.m=s.slice(),o.translate(a.x,a.y),o.getTranslation()}setAbsolutePosition(t){const a=this._clearTransform(),{x:n,y:r}=a,s=Es(a,["x","y"]);this.attrs.x=n,this.attrs.y=r,this._clearCache(Js);var o=this._getAbsoluteTransform().copy();return o.invert(),o.translate(t.x,t.y),t={x:this.attrs.x+o.getTranslation().x,y:this.attrs.y+o.getTranslation().y},this._setTransform(s),this.setPosition({x:t.x,y:t.y}),this._clearCache(Js),this._clearSelfAndDescendantCache(ps),this}_setTransform(t){var n;for(n in t)this.attrs[n]=t[n]}_clearTransform(){var t={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,t}move(t){var n=t.x,r=t.y,s=this.x(),o=this.y();return n!==void 0&&(s+=n),r!==void 0&&(o+=r),this.setPosition({x:s,y:o}),this}_eachAncestorReverse(t,n){var r=[],s=this.getParent(),o,a;if(!(n&&n._id===this._id)){for(r.unshift(this);s&&(!n||s._id!==n._id);)r.unshift(s),s=s.parent;for(o=r.length,a=0;a<o;a++)t(r[a])}}rotate(t){return this.rotation(this.rotation()+t),this}moveToTop(){if(!this.parent)return Pt.Util.warn("Node has no parent. moveToTop function is ignored."),!1;var t=this.index,n=this.parent.getChildren().length;return t<n-1?(this.parent.children.splice(t,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0):!1}moveUp(){if(!this.parent)return Pt.Util.warn("Node has no parent. moveUp function is ignored."),!1;var t=this.index,n=this.parent.getChildren().length;return t<n-1?(this.parent.children.splice(t,1),this.parent.children.splice(t+1,0,this),this.parent._setChildrenIndices(),!0):!1}moveDown(){if(!this.parent)return Pt.Util.warn("Node has no parent. moveDown function is ignored."),!1;var t=this.index;return t>0?(this.parent.children.splice(t,1),this.parent.children.splice(t-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return Pt.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;var t=this.index;return t>0?(this.parent.children.splice(t,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(t){if(!this.parent)return Pt.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&Pt.Util.warn("Unexpected value "+t+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");var n=this.index;return this.parent.children.splice(n,1),this.parent.children.splice(t,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(Kf,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){var t=this.opacity(),n=this.getParent();return n&&!n._isUnderCache&&(t*=n.getAbsoluteOpacity()),t}moveTo(t){return this.getParent()!==t&&(this._remove(),t.add(this)),this}toObject(){var t=this.getAttrs(),n,r,s,o,a;const l={attrs:{},className:this.getClassName()};for(n in t)r=t[n],a=Pt.Util.isObject(r)&&!Pt.Util._isPlainObject(r)&&!Pt.Util._isArray(r),!a&&(s=typeof this[n]=="function"&&this[n],delete t[n],o=s?s.call(this):null,t[n]=r,o!==r&&(l.attrs[n]=r));return Pt.Util._prepareToStringify(l)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(t,n,r){var s=[];n&&this._isMatch(t)&&s.push(this);for(var o=this.parent;o;){if(o===r)return s;o._isMatch(t)&&s.push(o),o=o.parent}return s}isAncestorOf(t){return!1}findAncestor(t,n,r){return this.findAncestors(t,n,r)[0]}_isMatch(t){if(!t)return!1;if(typeof t=="function")return t(this);var n=t.replace(/ /g,"").split(","),r=n.length,s,o;for(s=0;s<r;s++)if(o=n[s],Pt.Util.isValidSelector(o)||(Pt.Util.warn('Selector "'+o+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),Pt.Util.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),Pt.Util.warn("Konva is awesome, right?")),o.charAt(0)==="#"){if(this.id()===o.slice(1))return!0}else if(o.charAt(0)==="."){if(this.hasName(o.slice(1)))return!0}else if(this.className===o||this.nodeType===o)return!0;return!1}getLayer(){var t=this.getParent();return t?t.getLayer():null}getStage(){return this._getCache(a4,this._getStage)}_getStage(){var t=this.getParent();return t?t.getStage():null}fire(t,n={},r){return n.target=n.target||this,r?this._fireAndBubble(t,n):this._fire(t,n),this}getAbsoluteTransform(t){return t?this._getAbsoluteTransform(t):this._getCache(ps,this._getAbsoluteTransform)}_getAbsoluteTransform(t){var n;if(t)return n=new Pt.Transform,this._eachAncestorReverse(function(s){var o=s.transformsEnabled();o==="all"?n.multiply(s.getTransform()):o==="position"&&n.translate(s.x()-s.offsetX(),s.y()-s.offsetY())},t),n;n=this._cache.get(ps)||new Pt.Transform,this.parent?this.parent.getAbsoluteTransform().copyInto(n):n.reset();var r=this.transformsEnabled();if(r==="all")n.multiply(this.getTransform());else if(r==="position"){const s=this.attrs.x||0,o=this.attrs.y||0,a=this.attrs.offsetX||0,l=this.attrs.offsetY||0;n.translate(s-a,o-l)}return n.dirty=!1,n}getAbsoluteScale(t){for(var n=this;n;)n._isUnderCache&&(t=n),n=n.getParent();const s=this.getAbsoluteTransform(t).decompose();return{x:s.scaleX,y:s.scaleY}}getAbsoluteRotation(){return this.getAbsoluteTransform().decompose().rotation}getTransform(){return this._getCache(Js,this._getTransform)}_getTransform(){var t,n,r=this._cache.get(Js)||new Pt.Transform;r.reset();var s=this.x(),o=this.y(),a=Ks.Konva.getAngle(this.rotation()),l=(t=this.attrs.scaleX)!==null&&t!==void 0?t:1,c=(n=this.attrs.scaleY)!==null&&n!==void 0?n:1,u=this.attrs.skewX||0,d=this.attrs.skewY||0,f=this.attrs.offsetX||0,h=this.attrs.offsetY||0;return(s!==0||o!==0)&&r.translate(s,o),a!==0&&r.rotate(a),(u!==0||d!==0)&&r.skew(u,d),(l!==1||c!==1)&&r.scale(l,c),(f!==0||h!==0)&&r.translate(-1*f,-1*h),r.dirty=!1,r}clone(t){var n=Pt.Util.cloneObject(this.attrs),r,s,o,a,l;for(r in t)n[r]=t[r];var c=new this.constructor(n);for(r in this.eventListeners)for(s=this.eventListeners[r],o=s.length,a=0;a<o;a++)l=s[a],l.name.indexOf(YY)<0&&(c.eventListeners[r]||(c.eventListeners[r]=[]),c.eventListeners[r].push(l));return c}_toKonvaCanvas(t){t=t||{};var n=this.getClientRect(),r=this.getStage(),s=t.x!==void 0?t.x:Math.floor(n.x),o=t.y!==void 0?t.y:Math.floor(n.y),a=t.pixelRatio||1,l=new Xc.SceneCanvas({width:t.width||Math.ceil(n.width)||(r?r.width():0),height:t.height||Math.ceil(n.height)||(r?r.height():0),pixelRatio:a}),c=l.getContext();const u=new Xc.SceneCanvas({width:l.width/l.pixelRatio+Math.abs(s),height:l.height/l.pixelRatio+Math.abs(o),pixelRatio:l.pixelRatio});return t.imageSmoothingEnabled===!1&&(c._context.imageSmoothingEnabled=!1),c.save(),(s||o)&&c.translate(-1*s,-1*o),this.drawScene(l,void 0,u),c.restore(),l}toCanvas(t){return this._toKonvaCanvas(t)._canvas}toDataURL(t){t=t||{};var n=t.mimeType||null,r=t.quality||null,s=this._toKonvaCanvas(t).toDataURL(n,r);return t.callback&&t.callback(s),s}toImage(t){return new Promise((n,r)=>{try{const s=t==null?void 0:t.callback;s&&delete t.callback,Pt.Util._urlToImage(this.toDataURL(t),function(o){n(o),s==null||s(o)})}catch(s){r(s)}})}toBlob(t){return new Promise((n,r)=>{try{const s=t==null?void 0:t.callback;s&&delete t.callback,this.toCanvas(t).toBlob(o=>{n(o),s==null||s(o)},t==null?void 0:t.mimeType,t==null?void 0:t.quality)}catch(s){r(s)}})}setSize(t){return this.width(t.width),this.height(t.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():Ks.Konva.dragDistance}_off(t,n,r){var s=this.eventListeners[t],o,a,l;for(o=0;o<s.length;o++)if(a=s[o].name,l=s[o].handler,(a!=="konva"||n==="konva")&&(!n||a===n)&&(!r||r===l)){if(s.splice(o,1),s.length===0){delete this.eventListeners[t];break}o--}}_fireChangeEvent(t,n,r){this._fire(t+KY,{oldVal:n,newVal:r})}addName(t){if(!this.hasName(t)){var n=this.name(),r=n?n+" "+t:t;this.name(r)}return this}hasName(t){if(!t)return!1;const n=this.name();if(!n)return!1;var r=(n||"").split(/\s/g);return r.indexOf(t)!==-1}removeName(t){var n=(this.name()||"").split(/\s/g),r=n.indexOf(t);return r!==-1&&(n.splice(r,1),this.name(n.join(" "))),this}setAttr(t,n){var r=this[s4+Pt.Util._capitalize(t)];return Pt.Util._isFunction(r)?r.call(this,n):this._setAttr(t,n),this}_requestDraw(){if(Ks.Konva.autoDrawEnabled){const t=this.getLayer()||this.getStage();t==null||t.batchDraw()}}_setAttr(t,n){var r=this.attrs[t];r===n&&!Pt.Util.isObject(n)||(n==null?delete this.attrs[t]:this.attrs[t]=n,this._shouldFireChangeEvents&&this._fireChangeEvent(t,r,n),this._requestDraw())}_setComponentAttr(t,n,r){var s;r!==void 0&&(s=this.attrs[t],s||(this.attrs[t]=this.getAttr(t)),this.attrs[t][n]=r,this._fireChangeEvent(t,s,r))}_fireAndBubble(t,n,r){n&&this.nodeType===o4&&(n.target=this);var s=(t===i4||t===r4)&&(r&&(this===r||this.isAncestorOf&&this.isAncestorOf(r))||this.nodeType==="Stage"&&!r);if(!s){this._fire(t,n);var o=(t===i4||t===r4)&&r&&r.isAncestorOf&&r.isAncestorOf(this)&&!r.isAncestorOf(this.parent);(n&&!n.cancelBubble||!n)&&this.parent&&this.parent.isListening()&&!o&&(r&&r.parent?this._fireAndBubble.call(this.parent,t,n,r):this._fireAndBubble.call(this.parent,t,n))}}_getProtoListeners(t){var n,r,s;const o=(n=this._cache.get(Jf))!==null&&n!==void 0?n:{};let a=o==null?void 0:o[t];if(a===void 0){a=[];let l=Object.getPrototypeOf(this);for(;l;){const c=(s=(r=l.eventListeners)===null||r===void 0?void 0:r[t])!==null&&s!==void 0?s:[];a.push(...c),l=Object.getPrototypeOf(l)}o[t]=a,this._cache.set(Jf,o)}return a}_fire(t,n){n=n||{},n.currentTarget=this,n.type=t;const r=this._getProtoListeners(t);if(r)for(var s=0;s<r.length;s++)r[s].handler.call(this,n);const o=this.eventListeners[t];if(o)for(var s=0;s<o.length;s++)o[s].handler.call(this,n)}draw(){return this.drawScene(),this.drawHit(),this}_createDragElement(t){var n=t?t.pointerId:void 0,r=this.getStage(),s=this.getAbsolutePosition();if(r){var o=r._getPointerById(n)||r._changedPointerPositions[0]||s;Li.DD._dragElements.set(this._id,{node:this,startPointerPos:o,offset:{x:o.x-s.x,y:o.y-s.y},dragStatus:"ready",pointerId:n})}}startDrag(t,n=!0){Li.DD._dragElements.has(this._id)||this._createDragElement(t);const r=Li.DD._dragElements.get(this._id);r.dragStatus="dragging",this.fire("dragstart",{type:"dragstart",target:this,evt:t&&t.evt},n)}_setDragPosition(t,n){const r=this.getStage()._getPointerById(n.pointerId);if(r){var s={x:r.x-n.offset.x,y:r.y-n.offset.y},o=this.dragBoundFunc();if(o!==void 0){const a=o.call(this,s,t);a?s=a:Pt.Util.warn("dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.")}(!this._lastPos||this._lastPos.x!==s.x||this._lastPos.y!==s.y)&&(this.setAbsolutePosition(s),this._requestDraw()),this._lastPos=s}}stopDrag(t){const n=Li.DD._dragElements.get(this._id);n&&(n.dragStatus="stopped"),Li.DD._endDragBefore(t),Li.DD._endDragAfter(t)}setDraggable(t){this._setAttr("draggable",t),this._dragChange()}isDragging(){const t=Li.DD._dragElements.get(this._id);return t?t.dragStatus==="dragging":!1}_listenDrag(){this._dragCleanup(),this.on("mousedown.konva touchstart.konva",function(t){var n=t.evt.button!==void 0,r=!n||Ks.Konva.dragButtons.indexOf(t.evt.button)>=0;if(r&&!this.isDragging()){var s=!1;Li.DD._dragElements.forEach(o=>{this.isAncestorOf(o.node)&&(s=!0)}),s||this._createDragElement(t)}})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{this._dragCleanup();var t=this.getStage();if(!t)return;const n=Li.DD._dragElements.get(this._id),r=n&&n.dragStatus==="dragging",s=n&&n.dragStatus==="ready";r?this.stopDrag():s&&Li.DD._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(t={x:0,y:0}){const n=this.getStage();if(!n)return!1;const r={x:-t.x,y:-t.y,width:n.width()+2*t.x,height:n.height()+2*t.y};return Pt.Util.haveIntersection(r,this.getClientRect())}static create(t,n){return Pt.Util._isString(t)&&(t=JSON.parse(t)),this._createNode(t,n)}static _createNode(t,n){var r=ut.prototype.getClassName.call(t),s=t.children,o,a,l;n&&(t.attrs.container=n),Ks.Konva[r]||(Pt.Util.warn('Can not find a node with class name "'+r+'". Fallback to "Shape".'),r="Shape");const c=Ks.Konva[r];if(o=new c(t.attrs),s)for(a=s.length,l=0;l<a;l++)o.add(ut._createNode(s[l]));return o}}Ws.Node=ut,ut.prototype.nodeType="Node",ut.prototype._attrsAffectingSize=[],ut.prototype.eventListeners={},ut.prototype.on.call(ut.prototype,ZY,function(){if(this._batchingTransformChange){this._needClearTransformCache=!0;return}this._clearCache(Js),this._clearSelfAndDescendantCache(ps)}),ut.prototype.on.call(ut.prototype,"visibleChange.konva",function(){this._clearSelfAndDescendantCache(fv)}),ut.prototype.on.call(ut.prototype,"listeningChange.konva",function(){this._clearSelfAndDescendantCache(dv)}),ut.prototype.on.call(ut.prototype,"opacityChange.konva",function(){this._clearSelfAndDescendantCache(Kf)});const zt=Yc.Factory.addGetterSetter;zt(ut,"zIndex"),zt(ut,"absolutePosition"),zt(ut,"position"),zt(ut,"x",0,(0,cn.getNumberValidator)()),zt(ut,"y",0,(0,cn.getNumberValidator)()),zt(ut,"globalCompositeOperation","source-over",(0,cn.getStringValidator)()),zt(ut,"opacity",1,(0,cn.getNumberValidator)()),zt(ut,"name","",(0,cn.getStringValidator)()),zt(ut,"id","",(0,cn.getStringValidator)()),zt(ut,"rotation",0,(0,cn.getNumberValidator)()),Yc.Factory.addComponentsGetterSetter(ut,"scale",["x","y"]),zt(ut,"scaleX",1,(0,cn.getNumberValidator)()),zt(ut,"scaleY",1,(0,cn.getNumberValidator)()),Yc.Factory.addComponentsGetterSetter(ut,"skew",["x","y"]),zt(ut,"skewX",0,(0,cn.getNumberValidator)()),zt(ut,"skewY",0,(0,cn.getNumberValidator)()),Yc.Factory.addComponentsGetterSetter(ut,"offset",["x","y"]),zt(ut,"offsetX",0,(0,cn.getNumberValidator)()),zt(ut,"offsetY",0,(0,cn.getNumberValidator)()),zt(ut,"dragDistance",null,(0,cn.getNumberValidator)()),zt(ut,"width",0,(0,cn.getNumberValidator)()),zt(ut,"height",0,(0,cn.getNumberValidator)()),zt(ut,"listening",!0,(0,cn.getBooleanValidator)()),zt(ut,"preventDefault",!0,(0,cn.getBooleanValidator)()),zt(ut,"filters",null,function(e){return this._filterUpToDate=!1,e}),zt(ut,"visible",!0,(0,cn.getBooleanValidator)()),zt(ut,"transformsEnabled","all",(0,cn.getStringValidator)()),zt(ut,"size"),zt(ut,"dragBoundFunc"),zt(ut,"draggable",!1,(0,cn.getBooleanValidator)()),Yc.Factory.backCompat(ut,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"});var Jo={};Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.Container=void 0;const il=oi,hv=Ws,Xf=Ot;class Yo extends hv.Node{constructor(){super(...arguments),this.children=[]}getChildren(t){if(!t)return this.children||[];const n=this.children||[];var r=[];return n.forEach(function(s){t(s)&&r.push(s)}),r}hasChildren(){return this.getChildren().length>0}removeChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.destroy()}),this.children=[],this._requestDraw(),this}add(...t){if(t.length===0)return this;if(t.length>1){for(var n=0;n<t.length;n++)this.add(t[n]);return this}const r=t[0];return r.getParent()?(r.moveTo(this),this):(this._validateAdd(r),r.index=this.getChildren().length,r.parent=this,r._clearCaches(),this.getChildren().push(r),this._fire("add",{child:r}),this._requestDraw(),this)}destroy(){return this.hasChildren()&&this.destroyChildren(),super.destroy(),this}find(t){return this._generalFind(t,!1)}findOne(t){var n=this._generalFind(t,!0);return n.length>0?n[0]:void 0}_generalFind(t,n){var r=[];return this._descendants(s=>{const o=s._isMatch(t);return o&&r.push(s),!!(o&&n)}),r}_descendants(t){let n=!1;const r=this.getChildren();for(const s of r){if(n=t(s),n)return!0;if(s.hasChildren()&&(n=s._descendants(t),n))return!0}return!1}toObject(){var t=hv.Node.prototype.toObject.call(this);return t.children=[],this.getChildren().forEach(n=>{t.children.push(n.toObject())}),t}isAncestorOf(t){for(var n=t.getParent();n;){if(n._id===this._id)return!0;n=n.getParent()}return!1}clone(t){var n=hv.Node.prototype.clone.call(this,t);return this.getChildren().forEach(function(r){n.add(r.clone())}),n}getAllIntersections(t){var n=[];return this.find("Shape").forEach(r=>{r.isVisible()&&r.intersects(t)&&n.push(r)}),n}_clearSelfAndDescendantCache(t){var n;super._clearSelfAndDescendantCache(t),!this.isCached()&&((n=this.children)===null||n===void 0||n.forEach(function(r){r._clearSelfAndDescendantCache(t)}))}_setChildrenIndices(){var t;(t=this.children)===null||t===void 0||t.forEach(function(n,r){n.index=r}),this._requestDraw()}drawScene(t,n,r){var s=this.getLayer(),o=t||s&&s.getCanvas(),a=o&&o.getContext(),l=this._getCanvasCache(),c=l&&l.scene,u=o&&o.isCache;if(!this.isVisible()&&!u)return this;if(c){a.save();var d=this.getAbsoluteTransform(n).getMatrix();a.transform(d[0],d[1],d[2],d[3],d[4],d[5]),this._drawCachedSceneCanvas(a),a.restore()}else this._drawChildren("drawScene",o,n,r);return this}drawHit(t,n){if(!this.shouldDrawHit(n))return this;var r=this.getLayer(),s=t||r&&r.hitCanvas,o=s&&s.getContext(),a=this._getCanvasCache(),l=a&&a.hit;if(l){o.save();var c=this.getAbsoluteTransform(n).getMatrix();o.transform(c[0],c[1],c[2],c[3],c[4],c[5]),this._drawCachedHitCanvas(o),o.restore()}else this._drawChildren("drawHit",s,n);return this}_drawChildren(t,n,r,s){var o,a=n&&n.getContext(),l=this.clipWidth(),c=this.clipHeight(),u=this.clipFunc(),d=typeof l=="number"&&typeof c=="number"||u;const f=r===this;if(d){a.save();var h=this.getAbsoluteTransform(r),g=h.getMatrix();a.transform(g[0],g[1],g[2],g[3],g[4],g[5]),a.beginPath();let w;if(u)w=u.call(this,a,this);else{var b=this.clipX(),y=this.clipY();a.rect(b||0,y||0,l,c)}a.clip.apply(a,w),g=h.copy().invert().getMatrix(),a.transform(g[0],g[1],g[2],g[3],g[4],g[5])}var _=!f&&this.globalCompositeOperation()!=="source-over"&&t==="drawScene";_&&(a.save(),a._applyGlobalCompositeOperation(this)),(o=this.children)===null||o===void 0||o.forEach(function(w){w[t](n,r,s)}),_&&a.restore(),d&&a.restore()}getClientRect(t={}){var n,r=t.skipTransform,s=t.relativeTo,o,a,l,c,u={x:1/0,y:1/0,width:0,height:0},d=this;(n=this.children)===null||n===void 0||n.forEach(function(y){if(y.visible()){var _=y.getClientRect({relativeTo:d,skipShadow:t.skipShadow,skipStroke:t.skipStroke});_.width===0&&_.height===0||(o===void 0?(o=_.x,a=_.y,l=_.x+_.width,c=_.y+_.height):(o=Math.min(o,_.x),a=Math.min(a,_.y),l=Math.max(l,_.x+_.width),c=Math.max(c,_.y+_.height)))}});for(var f=this.find("Shape"),h=!1,g=0;g<f.length;g++){var b=f[g];if(b._isVisible(this)){h=!0;break}}return h&&o!==void 0?u={x:o,y:a,width:l-o,height:c-a}:u={x:0,y:0,width:0,height:0},r?u:this._transformedRect(u,s)}}Jo.Container=Yo,il.Factory.addComponentsGetterSetter(Yo,"clip",["x","y","width","height"]),il.Factory.addGetterSetter(Yo,"clipX",void 0,(0,Xf.getNumberValidator)()),il.Factory.addGetterSetter(Yo,"clipY",void 0,(0,Xf.getNumberValidator)()),il.Factory.addGetterSetter(Yo,"clipWidth",void 0,(0,Xf.getNumberValidator)()),il.Factory.addGetterSetter(Yo,"clipHeight",void 0,(0,Xf.getNumberValidator)()),il.Factory.addGetterSetter(Yo,"clipFunc");var l4={},pi={};Object.defineProperty(pi,"__esModule",{value:!0}),pi.releaseCapture=pi.setPointerCapture=pi.hasPointerCapture=pi.createEvent=pi.getCapturedShape=void 0;const eX=Gt,Zc=new Map,c4=eX.Konva._global.PointerEvent!==void 0;function tX(e){return Zc.get(e)}pi.getCapturedShape=tX;function pv(e){return{evt:e,pointerId:e.pointerId}}pi.createEvent=pv;function nX(e,t){return Zc.get(e)===t}pi.hasPointerCapture=nX;function iX(e,t){u4(e),t.getStage()&&(Zc.set(e,t),c4&&t._fire("gotpointercapture",pv(new PointerEvent("gotpointercapture"))))}pi.setPointerCapture=iX;function u4(e,t){const n=Zc.get(e);if(!n)return;const r=n.getStage();r&&r.content,Zc.delete(e),c4&&n._fire("lostpointercapture",pv(new PointerEvent("lostpointercapture")))}pi.releaseCapture=u4,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Stage=e.stages=void 0;const t=En,n=oi,r=Jo,s=Gt,o=rr,a=Wf,l=Gt,c=pi;var u="Stage",d="string",f="px",h="mouseout",g="mouseleave",b="mouseover",y="mouseenter",_="mousemove",w="mousedown",x="mouseup",C="pointermove",S="pointerdown",A="pointerup",O="pointercancel",R="lostpointercapture",N="pointerout",k="pointerleave",L="pointerover",F="pointerenter",G="contextmenu",V="touchstart",ae="touchend",ce="touchmove",U="touchcancel",J="wheel",Q=5,X=[[y,"_pointerenter"],[w,"_pointerdown"],[_,"_pointermove"],[x,"_pointerup"],[g,"_pointerleave"],[V,"_pointerdown"],[ce,"_pointermove"],[ae,"_pointerup"],[U,"_pointercancel"],[b,"_pointerover"],[J,"_wheel"],[G,"_contextmenu"],[S,"_pointerdown"],[C,"_pointermove"],[A,"_pointerup"],[O,"_pointercancel"],[R,"_lostpointercapture"]];const B={mouse:{[N]:h,[k]:g,[L]:b,[F]:y,[C]:_,[S]:w,[A]:x,[O]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[N]:"touchout",[k]:"touchleave",[L]:"touchover",[F]:"touchenter",[C]:ce,[S]:V,[A]:ae,[O]:U,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[N]:N,[k]:k,[L]:L,[F]:F,[C]:C,[S]:S,[A]:A,[O]:O,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},_e=me=>me.indexOf("pointer")>=0?"pointer":me.indexOf("touch")>=0?"touch":"mouse",he=me=>{const q=_e(me);if(q==="pointer")return s.Konva.pointerEventsEnabled&&B.pointer;if(q==="touch")return B.touch;if(q==="mouse")return B.mouse};function ie(me={}){return(me.clipFunc||me.clipWidth||me.clipHeight)&&t.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),me}const oe="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);";e.stages=[];class Ce extends r.Container{constructor(q){super(ie(q)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),e.stages.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{ie(this.attrs)}),this._checkVisibility()}_validateAdd(q){const Z=q.getType()==="Layer",ve=q.getType()==="FastLayer";Z||ve||t.Util.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const q=this.visible()?"":"none";this.content.style.display=q}setContainer(q){if(typeof q===d){if(q.charAt(0)==="."){var Z=q.slice(1);q=document.getElementsByClassName(Z)[0]}else{var ve;q.charAt(0)!=="#"?ve=q:ve=q.slice(1),q=document.getElementById(ve)}if(!q)throw"Can not find container in document with id "+ve}return this._setAttr("container",q),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),q.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){var q=this.children,Z=q.length,ve;for(ve=0;ve<Z;ve++)q[ve].clear();return this}clone(q){return q||(q={}),q.container=typeof document!="undefined"&&document.createElement("div"),r.Container.prototype.clone.call(this,q)}destroy(){super.destroy();var q=this.content;q&&t.Util._isInDocument(q)&&this.container().removeChild(q);var Z=e.stages.indexOf(this);return Z>-1&&e.stages.splice(Z,1),t.Util.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const q=this._pointerPositions[0]||this._changedPointerPositions[0];return q?{x:q.x,y:q.y}:(t.Util.warn(oe),null)}_getPointerById(q){return this._pointerPositions.find(Z=>Z.id===q)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(q){q=q||{},q.x=q.x||0,q.y=q.y||0,q.width=q.width||this.width(),q.height=q.height||this.height();var Z=new o.SceneCanvas({width:q.width,height:q.height,pixelRatio:q.pixelRatio||1}),ve=Z.getContext()._context,Oe=this.children;return(q.x||q.y)&&ve.translate(-1*q.x,-1*q.y),Oe.forEach(function(Le){if(Le.isVisible()){var Ke=Le._toKonvaCanvas(q);ve.drawImage(Ke._canvas,q.x,q.y,Ke.getWidth()/Ke.getPixelRatio(),Ke.getHeight()/Ke.getPixelRatio())}}),Z}getIntersection(q){if(!q)return null;var Z=this.children,ve=Z.length,Oe=ve-1,Le;for(Le=Oe;Le>=0;Le--){const Ke=Z[Le].getIntersection(q);if(Ke)return Ke}return null}_resizeDOM(){var q=this.width(),Z=this.height();this.content&&(this.content.style.width=q+f,this.content.style.height=Z+f),this.bufferCanvas.setSize(q,Z),this.bufferHitCanvas.setSize(q,Z),this.children.forEach(ve=>{ve.setSize({width:q,height:Z}),ve.draw()})}add(q,...Z){if(arguments.length>1){for(var ve=0;ve<arguments.length;ve++)this.add(arguments[ve]);return this}super.add(q);var Oe=this.children.length;return Oe>Q&&t.Util.warn("The stage has "+Oe+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),q.setSize({width:this.width(),height:this.height()}),q.draw(),s.Konva.isBrowser&&this.content.appendChild(q.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(q){return c.hasPointerCapture(q,this)}setPointerCapture(q){c.setPointerCapture(q,this)}releaseCapture(q){c.releaseCapture(q,this)}getLayers(){return this.children}_bindContentEvents(){s.Konva.isBrowser&&X.forEach(([q,Z])=>{this.content.addEventListener(q,ve=>{this[Z](ve)},{passive:!1})})}_pointerenter(q){this.setPointersPositions(q);const Z=he(q.type);Z&&this._fire(Z.pointerenter,{evt:q,target:this,currentTarget:this})}_pointerover(q){this.setPointersPositions(q);const Z=he(q.type);Z&&this._fire(Z.pointerover,{evt:q,target:this,currentTarget:this})}_getTargetShape(q){let Z=this[q+"targetShape"];return Z&&!Z.getStage()&&(Z=null),Z}_pointerleave(q){const Z=he(q.type),ve=_e(q.type);if(Z){this.setPointersPositions(q);var Oe=this._getTargetShape(ve),Le=!(s.Konva.isDragging()||s.Konva.isTransforming())||s.Konva.hitOnDragEnabled;Oe&&Le?(Oe._fireAndBubble(Z.pointerout,{evt:q}),Oe._fireAndBubble(Z.pointerleave,{evt:q}),this._fire(Z.pointerleave,{evt:q,target:this,currentTarget:this}),this[ve+"targetShape"]=null):Le&&(this._fire(Z.pointerleave,{evt:q,target:this,currentTarget:this}),this._fire(Z.pointerout,{evt:q,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}}_pointerdown(q){const Z=he(q.type),ve=_e(q.type);if(Z){this.setPointersPositions(q);var Oe=!1;this._changedPointerPositions.forEach(Le=>{var Ke=this.getIntersection(Le);if(a.DD.justDragged=!1,s.Konva["_"+ve+"ListenClick"]=!0,!Ke||!Ke.isListening()){this[ve+"ClickStartShape"]=void 0;return}s.Konva.capturePointerEventsEnabled&&Ke.setPointerCapture(Le.id),this[ve+"ClickStartShape"]=Ke,Ke._fireAndBubble(Z.pointerdown,{evt:q,pointerId:Le.id}),Oe=!0;const j=q.type.indexOf("touch")>=0;Ke.preventDefault()&&q.cancelable&&j&&q.preventDefault()}),Oe||this._fire(Z.pointerdown,{evt:q,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}}_pointermove(q){const Z=he(q.type),ve=_e(q.type);if(!Z)return;s.Konva.isDragging()&&a.DD.node.preventDefault()&&q.cancelable&&q.preventDefault(),this.setPointersPositions(q);var Oe=!(s.Konva.isDragging()||s.Konva.isTransforming())||s.Konva.hitOnDragEnabled;if(!Oe)return;var Le={};let Ke=!1;var j=this._getTargetShape(ve);this._changedPointerPositions.forEach(K=>{const se=c.getCapturedShape(K.id)||this.getIntersection(K),Ae=K.id,de={evt:q,pointerId:Ae};var fe=j!==se;if(fe&&j&&(j._fireAndBubble(Z.pointerout,we({},de),se),j._fireAndBubble(Z.pointerleave,we({},de),se)),se){if(Le[se._id])return;Le[se._id]=!0}se&&se.isListening()?(Ke=!0,fe&&(se._fireAndBubble(Z.pointerover,we({},de),j),se._fireAndBubble(Z.pointerenter,we({},de),j),this[ve+"targetShape"]=se),se._fireAndBubble(Z.pointermove,we({},de))):j&&(this._fire(Z.pointerover,{evt:q,target:this,currentTarget:this,pointerId:Ae}),this[ve+"targetShape"]=null)}),Ke||this._fire(Z.pointermove,{evt:q,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(q){const Z=he(q.type),ve=_e(q.type);if(!Z)return;this.setPointersPositions(q);const Oe=this[ve+"ClickStartShape"],Le=this[ve+"ClickEndShape"];var Ke={};let j=!1;this._changedPointerPositions.forEach(K=>{const se=c.getCapturedShape(K.id)||this.getIntersection(K);if(se){if(se.releaseCapture(K.id),Ke[se._id])return;Ke[se._id]=!0}const Ae=K.id,de={evt:q,pointerId:Ae};let fe=!1;s.Konva["_"+ve+"InDblClickWindow"]?(fe=!0,clearTimeout(this[ve+"DblTimeout"])):a.DD.justDragged||(s.Konva["_"+ve+"InDblClickWindow"]=!0,clearTimeout(this[ve+"DblTimeout"])),this[ve+"DblTimeout"]=setTimeout(function(){s.Konva["_"+ve+"InDblClickWindow"]=!1},s.Konva.dblClickWindow),se&&se.isListening()?(j=!0,this[ve+"ClickEndShape"]=se,se._fireAndBubble(Z.pointerup,we({},de)),s.Konva["_"+ve+"ListenClick"]&&Oe&&Oe===se&&(se._fireAndBubble(Z.pointerclick,we({},de)),fe&&Le&&Le===se&&se._fireAndBubble(Z.pointerdblclick,we({},de)))):(this[ve+"ClickEndShape"]=null,s.Konva["_"+ve+"ListenClick"]&&this._fire(Z.pointerclick,{evt:q,target:this,currentTarget:this,pointerId:Ae}),fe&&this._fire(Z.pointerdblclick,{evt:q,target:this,currentTarget:this,pointerId:Ae}))}),j||this._fire(Z.pointerup,{evt:q,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),s.Konva["_"+ve+"ListenClick"]=!1,q.cancelable&&ve!=="touch"&&q.preventDefault()}_contextmenu(q){this.setPointersPositions(q);var Z=this.getIntersection(this.getPointerPosition());Z&&Z.isListening()?Z._fireAndBubble(G,{evt:q}):this._fire(G,{evt:q,target:this,currentTarget:this})}_wheel(q){this.setPointersPositions(q);var Z=this.getIntersection(this.getPointerPosition());Z&&Z.isListening()?Z._fireAndBubble(J,{evt:q}):this._fire(J,{evt:q,target:this,currentTarget:this})}_pointercancel(q){this.setPointersPositions(q);const Z=c.getCapturedShape(q.pointerId)||this.getIntersection(this.getPointerPosition());Z&&Z._fireAndBubble(A,c.createEvent(q)),c.releaseCapture(q.pointerId)}_lostpointercapture(q){c.releaseCapture(q.pointerId)}setPointersPositions(q){var Z=this._getContentPosition(),ve=null,Oe=null;q=q||window.event,q.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(q.touches,Le=>{this._pointerPositions.push({id:Le.identifier,x:(Le.clientX-Z.left)/Z.scaleX,y:(Le.clientY-Z.top)/Z.scaleY})}),Array.prototype.forEach.call(q.changedTouches||q.touches,Le=>{this._changedPointerPositions.push({id:Le.identifier,x:(Le.clientX-Z.left)/Z.scaleX,y:(Le.clientY-Z.top)/Z.scaleY})})):(ve=(q.clientX-Z.left)/Z.scaleX,Oe=(q.clientY-Z.top)/Z.scaleY,this.pointerPos={x:ve,y:Oe},this._pointerPositions=[{x:ve,y:Oe,id:t.Util._getFirstPointerId(q)}],this._changedPointerPositions=[{x:ve,y:Oe,id:t.Util._getFirstPointerId(q)}])}_setPointerPosition(q){t.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(q)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};var q=this.content.getBoundingClientRect();return{top:q.top,left:q.left,scaleX:q.width/this.content.clientWidth||1,scaleY:q.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new o.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new o.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),!!s.Konva.isBrowser){var q=this.container();if(!q)throw"Stage has no container. A container is required.";q.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),q.appendChild(this.content),this._resizeDOM()}}cache(){return t.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(q){q.batchDraw()}),this}}e.Stage=Ce,Ce.prototype.nodeType=u,(0,l._registerNode)(Ce),n.Factory.addGetterSetter(Ce,"container"),s.Konva.isBrowser&&document.addEventListener("visibilitychange",()=>{e.stages.forEach(me=>{me.batchDraw()})})}(l4);var Qc={},gs={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Shape=e.shapes=void 0;const t=Gt,n=En,r=oi,s=Ws,o=Ot,a=Gt,l=pi;var c="hasShadow",u="shadowRGBA",d="patternImage",f="linearGradient",h="radialGradient";let g;function b(){return g||(g=n.Util.createCanvasElement().getContext("2d"),g)}e.shapes={};function y(k){const L=this.attrs.fillRule;L?k.fill(L):k.fill()}function _(k){k.stroke()}function w(k){const L=this.attrs.fillRule;L?k.fill(L):k.fill()}function x(k){k.stroke()}function C(){this._clearCache(c)}function S(){this._clearCache(u)}function A(){this._clearCache(d)}function O(){this._clearCache(f)}function R(){this._clearCache(h)}class N extends s.Node{constructor(L){super(L);let F;for(;F=n.Util.getRandomColor(),!(F&&!(F in e.shapes)););this.colorKey=F,e.shapes[F]=this}getContext(){return n.Util.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return n.Util.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(c,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(d,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){var L=b();const F=L.createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(F&&F.setTransform){const G=new n.Transform;G.translate(this.fillPatternX(),this.fillPatternY()),G.rotate(t.Konva.getAngle(this.fillPatternRotation())),G.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),G.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const V=G.getMatrix(),ae=typeof DOMMatrix=="undefined"?{a:V[0],b:V[1],c:V[2],d:V[3],e:V[4],f:V[5]}:new DOMMatrix(V);F.setTransform(ae)}return F}}_getLinearGradient(){return this._getCache(f,this.__getLinearGradient)}__getLinearGradient(){var L=this.fillLinearGradientColorStops();if(L){for(var F=b(),G=this.fillLinearGradientStartPoint(),V=this.fillLinearGradientEndPoint(),ae=F.createLinearGradient(G.x,G.y,V.x,V.y),ce=0;ce<L.length;ce+=2)ae.addColorStop(L[ce],L[ce+1]);return ae}}_getRadialGradient(){return this._getCache(h,this.__getRadialGradient)}__getRadialGradient(){var L=this.fillRadialGradientColorStops();if(L){for(var F=b(),G=this.fillRadialGradientStartPoint(),V=this.fillRadialGradientEndPoint(),ae=F.createRadialGradient(G.x,G.y,this.fillRadialGradientStartRadius(),V.x,V.y,this.fillRadialGradientEndRadius()),ce=0;ce<L.length;ce+=2)ae.addColorStop(L[ce],L[ce+1]);return ae}}getShadowRGBA(){return this._getCache(u,this._getShadowRGBA)}_getShadowRGBA(){if(this.hasShadow()){var L=n.Util.colorToRGBA(this.shadowColor());if(L)return"rgba("+L.r+","+L.g+","+L.b+","+L.a*(this.shadowOpacity()||1)+")"}}hasFill(){return this._calculate("hasFill",["fillEnabled","fill","fillPatternImage","fillLinearGradientColorStops","fillRadialGradientColorStops"],()=>this.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){const L=this.hitStrokeWidth();return L==="auto"?this.hasStroke():this.strokeEnabled()&&!!L}intersects(L){var F=this.getStage();if(!F)return!1;const G=F.bufferHitCanvas;return G.getContext().clear(),this.drawHit(G,void 0,!0),G.context.getImageData(Math.round(L.x),Math.round(L.y),1,1).data[3]>0}destroy(){return s.Node.prototype.destroy.call(this),delete e.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(L){var F;if(!((F=this.attrs.perfectDrawEnabled)!==null&&F!==void 0?F:!0))return!1;const V=L||this.hasFill(),ae=this.hasStroke(),ce=this.getAbsoluteOpacity()!==1;if(V&&ae&&ce)return!0;const U=this.hasShadow(),J=this.shadowForStrokeEnabled();return!!(V&&ae&&U&&J)}setStrokeHitEnabled(L){n.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),L?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){var L=this.size();return{x:this._centroid?-L.width/2:0,y:this._centroid?-L.height/2:0,width:L.width,height:L.height}}getClientRect(L={}){let F=!1,G=this.getParent();for(;G;){if(G.isCached()){F=!0;break}G=G.getParent()}const V=L.skipTransform,ae=L.relativeTo||F&&this.getStage()||void 0,ce=this.getSelfRect(),J=!L.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,Q=ce.width+J,X=ce.height+J,B=!L.skipShadow&&this.hasShadow(),_e=B?this.shadowOffsetX():0,he=B?this.shadowOffsetY():0,ie=Q+Math.abs(_e),oe=X+Math.abs(he),Ce=B&&this.shadowBlur()||0,me=ie+Ce*2,q=oe+Ce*2,Z={width:me,height:q,x:-(J/2+Ce)+Math.min(_e,0)+ce.x,y:-(J/2+Ce)+Math.min(he,0)+ce.y};return V?Z:this._transformedRect(Z,ae)}drawScene(L,F,G){var V=this.getLayer(),ae=L||V.getCanvas(),ce=ae.getContext(),U=this._getCanvasCache(),J=this.getSceneFunc(),Q=this.hasShadow(),X,B,_e=ae.isCache,he=F===this;if(!this.isVisible()&&!he)return this;if(U){ce.save();var ie=this.getAbsoluteTransform(F).getMatrix();return ce.transform(ie[0],ie[1],ie[2],ie[3],ie[4],ie[5]),this._drawCachedSceneCanvas(ce),ce.restore(),this}if(!J)return this;if(ce.save(),this._useBufferCanvas()&&!_e){X=this.getStage();const me=G||X.bufferCanvas;B=me.getContext(),B.clear(),B.save(),B._applyLineJoin(this);var oe=this.getAbsoluteTransform(F).getMatrix();B.transform(oe[0],oe[1],oe[2],oe[3],oe[4],oe[5]),J.call(this,B,this),B.restore();var Ce=me.pixelRatio;Q&&ce._applyShadow(this),ce._applyOpacity(this),ce._applyGlobalCompositeOperation(this),ce.drawImage(me._canvas,0,0,me.width/Ce,me.height/Ce)}else{if(ce._applyLineJoin(this),!he){var oe=this.getAbsoluteTransform(F).getMatrix();ce.transform(oe[0],oe[1],oe[2],oe[3],oe[4],oe[5]),ce._applyOpacity(this),ce._applyGlobalCompositeOperation(this)}Q&&ce._applyShadow(this),J.call(this,ce,this)}return ce.restore(),this}drawHit(L,F,G=!1){if(!this.shouldDrawHit(F,G))return this;var V=this.getLayer(),ae=L||V.hitCanvas,ce=ae&&ae.getContext(),U=this.hitFunc()||this.sceneFunc(),J=this._getCanvasCache(),Q=J&&J.hit;if(this.colorKey||n.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),Q){ce.save();var X=this.getAbsoluteTransform(F).getMatrix();return ce.transform(X[0],X[1],X[2],X[3],X[4],X[5]),this._drawCachedHitCanvas(ce),ce.restore(),this}if(!U)return this;if(ce.save(),ce._applyLineJoin(this),!(this===F)){var _e=this.getAbsoluteTransform(F).getMatrix();ce.transform(_e[0],_e[1],_e[2],_e[3],_e[4],_e[5])}return U.call(this,ce,this),ce.restore(),this}drawHitFromCache(L=0){var F=this._getCanvasCache(),G=this._getCachedSceneCanvas(),V=F.hit,ae=V.getContext(),ce=V.getWidth(),U=V.getHeight(),J,Q,X,B,_e,he;ae.clear(),ae.drawImage(G._canvas,0,0,ce,U);try{for(J=ae.getImageData(0,0,ce,U),Q=J.data,X=Q.length,B=n.Util._hexToRgb(this.colorKey),_e=0;_e<X;_e+=4)he=Q[_e+3],he>L?(Q[_e]=B.r,Q[_e+1]=B.g,Q[_e+2]=B.b,Q[_e+3]=255):Q[_e+3]=0;ae.putImageData(J,0,0)}catch(ie){n.Util.error("Unable to draw hit graph from cached scene canvas. "+ie.message)}return this}hasPointerCapture(L){return l.hasPointerCapture(L,this)}setPointerCapture(L){l.setPointerCapture(L,this)}releaseCapture(L){l.releaseCapture(L,this)}}e.Shape=N,N.prototype._fillFunc=y,N.prototype._strokeFunc=_,N.prototype._fillFuncHit=w,N.prototype._strokeFuncHit=x,N.prototype._centroid=!1,N.prototype.nodeType="Shape",(0,a._registerNode)(N),N.prototype.eventListeners={},N.prototype.on.call(N.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",C),N.prototype.on.call(N.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",S),N.prototype.on.call(N.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",A),N.prototype.on.call(N.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",O),N.prototype.on.call(N.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",R),r.Factory.addGetterSetter(N,"stroke",void 0,(0,o.getStringOrGradientValidator)()),r.Factory.addGetterSetter(N,"strokeWidth",2,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(N,"fillAfterStrokeEnabled",!1),r.Factory.addGetterSetter(N,"hitStrokeWidth","auto",(0,o.getNumberOrAutoValidator)()),r.Factory.addGetterSetter(N,"strokeHitEnabled",!0,(0,o.getBooleanValidator)()),r.Factory.addGetterSetter(N,"perfectDrawEnabled",!0,(0,o.getBooleanValidator)()),r.Factory.addGetterSetter(N,"shadowForStrokeEnabled",!0,(0,o.getBooleanValidator)()),r.Factory.addGetterSetter(N,"lineJoin"),r.Factory.addGetterSetter(N,"lineCap"),r.Factory.addGetterSetter(N,"sceneFunc"),r.Factory.addGetterSetter(N,"hitFunc"),r.Factory.addGetterSetter(N,"dash"),r.Factory.addGetterSetter(N,"dashOffset",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(N,"shadowColor",void 0,(0,o.getStringValidator)()),r.Factory.addGetterSetter(N,"shadowBlur",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(N,"shadowOpacity",1,(0,o.getNumberValidator)()),r.Factory.addComponentsGetterSetter(N,"shadowOffset",["x","y"]),r.Factory.addGetterSetter(N,"shadowOffsetX",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(N,"shadowOffsetY",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(N,"fillPatternImage"),r.Factory.addGetterSetter(N,"fill",void 0,(0,o.getStringOrGradientValidator)()),r.Factory.addGetterSetter(N,"fillPatternX",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(N,"fillPatternY",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(N,"fillLinearGradientColorStops"),r.Factory.addGetterSetter(N,"strokeLinearGradientColorStops"),r.Factory.addGetterSetter(N,"fillRadialGradientStartRadius",0),r.Factory.addGetterSetter(N,"fillRadialGradientEndRadius",0),r.Factory.addGetterSetter(N,"fillRadialGradientColorStops"),r.Factory.addGetterSetter(N,"fillPatternRepeat","repeat"),r.Factory.addGetterSetter(N,"fillEnabled",!0),r.Factory.addGetterSetter(N,"strokeEnabled",!0),r.Factory.addGetterSetter(N,"shadowEnabled",!0),r.Factory.addGetterSetter(N,"dashEnabled",!0),r.Factory.addGetterSetter(N,"strokeScaleEnabled",!0),r.Factory.addGetterSetter(N,"fillPriority","color"),r.Factory.addComponentsGetterSetter(N,"fillPatternOffset",["x","y"]),r.Factory.addGetterSetter(N,"fillPatternOffsetX",0,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(N,"fillPatternOffsetY",0,(0,o.getNumberValidator)()),r.Factory.addComponentsGetterSetter(N,"fillPatternScale",["x","y"]),r.Factory.addGetterSetter(N,"fillPatternScaleX",1,(0,o.getNumberValidator)()),r.Factory.addGetterSetter(N,"fillPatternScaleY",1,(0,o.getNumberValidator)()),r.Factory.addComponentsGetterSetter(N,"fillLinearGradientStartPoint",["x","y"]),r.Factory.addComponentsGetterSetter(N,"strokeLinearGradientStartPoint",["x","y"]),r.Factory.addGetterSetter(N,"fillLinearGradientStartPointX",0),r.Factory.addGetterSetter(N,"strokeLinearGradientStartPointX",0),r.Factory.addGetterSetter(N,"fillLinearGradientStartPointY",0),r.Factory.addGetterSetter(N,"strokeLinearGradientStartPointY",0),r.Factory.addComponentsGetterSetter(N,"fillLinearGradientEndPoint",["x","y"]),r.Factory.addComponentsGetterSetter(N,"strokeLinearGradientEndPoint",["x","y"]),r.Factory.addGetterSetter(N,"fillLinearGradientEndPointX",0),r.Factory.addGetterSetter(N,"strokeLinearGradientEndPointX",0),r.Factory.addGetterSetter(N,"fillLinearGradientEndPointY",0),r.Factory.addGetterSetter(N,"strokeLinearGradientEndPointY",0),r.Factory.addComponentsGetterSetter(N,"fillRadialGradientStartPoint",["x","y"]),r.Factory.addGetterSetter(N,"fillRadialGradientStartPointX",0),r.Factory.addGetterSetter(N,"fillRadialGradientStartPointY",0),r.Factory.addComponentsGetterSetter(N,"fillRadialGradientEndPoint",["x","y"]),r.Factory.addGetterSetter(N,"fillRadialGradientEndPointX",0),r.Factory.addGetterSetter(N,"fillRadialGradientEndPointY",0),r.Factory.addGetterSetter(N,"fillPatternRotation",0),r.Factory.addGetterSetter(N,"fillRule",void 0,(0,o.getStringValidator)()),r.Factory.backCompat(N,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})})(gs),Object.defineProperty(Qc,"__esModule",{value:!0}),Qc.Layer=void 0;const ms=En,gv=Jo,rl=Ws,mv=oi,d4=rr,rX=Ot,sX=gs,oX=Gt;var aX="#",lX="beforeDraw",cX="draw",f4=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],uX=f4.length;class sl extends gv.Container{constructor(t){super(t),this.canvas=new d4.SceneCanvas,this.hitCanvas=new d4.HitCanvas({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(t){return this.getContext().clear(t),this.getHitCanvas().getContext().clear(t),this}setZIndex(t){super.setZIndex(t);var n=this.getStage();return n&&n.content&&(n.content.removeChild(this.getNativeCanvasElement()),t<n.children.length-1?n.content.insertBefore(this.getNativeCanvasElement(),n.children[t+1].getCanvas()._canvas):n.content.appendChild(this.getNativeCanvasElement())),this}moveToTop(){rl.Node.prototype.moveToTop.call(this);var t=this.getStage();return t&&t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.appendChild(this.getNativeCanvasElement())),!0}moveUp(){var t=rl.Node.prototype.moveUp.call(this);if(!t)return!1;var n=this.getStage();return!n||!n.content?!1:(n.content.removeChild(this.getNativeCanvasElement()),this.index<n.children.length-1?n.content.insertBefore(this.getNativeCanvasElement(),n.children[this.index+1].getCanvas()._canvas):n.content.appendChild(this.getNativeCanvasElement()),!0)}moveDown(){if(rl.Node.prototype.moveDown.call(this)){var t=this.getStage();if(t){var n=t.children;t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.insertBefore(this.getNativeCanvasElement(),n[this.index+1].getCanvas()._canvas))}return!0}return!1}moveToBottom(){if(rl.Node.prototype.moveToBottom.call(this)){var t=this.getStage();if(t){var n=t.children;t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.insertBefore(this.getNativeCanvasElement(),n[1].getCanvas()._canvas))}return!0}return!1}getLayer(){return this}remove(){var t=this.getNativeCanvasElement();return rl.Node.prototype.remove.call(this),t&&t.parentNode&&ms.Util._isInDocument(t)&&t.parentNode.removeChild(t),this}getStage(){return this.parent}setSize({width:t,height:n}){return this.canvas.setSize(t,n),this.hitCanvas.setSize(t,n),this._setSmoothEnabled(),this}_validateAdd(t){var n=t.getType();n!=="Group"&&n!=="Shape"&&ms.Util.throw("You may only add groups and shapes to a layer.")}_toKonvaCanvas(t){return t=t||{},t.width=t.width||this.getWidth(),t.height=t.height||this.getHeight(),t.x=t.x!==void 0?t.x:this.x(),t.y=t.y!==void 0?t.y:this.y(),rl.Node.prototype._toKonvaCanvas.call(this,t)}_checkVisibility(){this.visible()?this.canvas._canvas.style.display="block":this.canvas._canvas.style.display="none"}_setSmoothEnabled(){this.getContext()._context.imageSmoothingEnabled=this.imageSmoothingEnabled()}getWidth(){if(this.parent)return this.parent.width()}setWidth(){ms.Util.warn('Can not change width of layer. Use "stage.width(value)" function instead.')}getHeight(){if(this.parent)return this.parent.height()}setHeight(){ms.Util.warn('Can not change height of layer. Use "stage.height(value)" function instead.')}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,ms.Util.requestAnimFrame(()=>{this.draw(),this._waitingForDraw=!1})),this}getIntersection(t){if(!this.isListening()||!this.isVisible())return null;for(var n=1,r=!1;;){for(let s=0;s<uX;s++){const o=f4[s],a=this._getIntersection({x:t.x+o.x*n,y:t.y+o.y*n}),l=a.shape;if(l)return l;if(r=!!a.antialiased,!a.antialiased)break}if(r)n+=1;else return null}}_getIntersection(t){const n=this.hitCanvas.pixelRatio,r=this.hitCanvas.context.getImageData(Math.round(t.x*n),Math.round(t.y*n),1,1).data,s=r[3];if(s===255){const o=ms.Util._rgbToHex(r[0],r[1],r[2]),a=sX.shapes[aX+o];return a?{shape:a}:{antialiased:!0}}else if(s>0)return{antialiased:!0};return{}}drawScene(t,n){var r=this.getLayer(),s=t||r&&r.getCanvas();return this._fire(lX,{node:this}),this.clearBeforeDraw()&&s.getContext().clear(),gv.Container.prototype.drawScene.call(this,s,n),this._fire(cX,{node:this}),this}drawHit(t,n){var r=this.getLayer(),s=t||r&&r.hitCanvas;return r&&r.clearBeforeDraw()&&r.getHitCanvas().getContext().clear(),gv.Container.prototype.drawHit.call(this,s,n),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(t){ms.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(t)}getHitGraphEnabled(t){return ms.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!(!this.parent||!this.parent.content)){var t=this.parent,n=!!this.hitCanvas._canvas.parentNode;n?t.content.removeChild(this.hitCanvas._canvas):t.content.appendChild(this.hitCanvas._canvas)}}destroy(){return ms.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}}Qc.Layer=sl,sl.prototype.nodeType="Layer",(0,oX._registerNode)(sl),mv.Factory.addGetterSetter(sl,"imageSmoothingEnabled",!0),mv.Factory.addGetterSetter(sl,"clearBeforeDraw",!0),mv.Factory.addGetterSetter(sl,"hitGraphEnabled",!0,(0,rX.getBooleanValidator)());var Zf={};Object.defineProperty(Zf,"__esModule",{value:!0}),Zf.FastLayer=void 0;const dX=En,fX=Qc,hX=Gt;class vv extends fX.Layer{constructor(t){super(t),this.listening(!1),dX.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}Zf.FastLayer=vv,vv.prototype.nodeType="FastLayer",(0,hX._registerNode)(vv);var Qf={};Object.defineProperty(Qf,"__esModule",{value:!0}),Qf.Group=void 0;const pX=En,gX=Jo,mX=Gt;class bv extends gX.Container{_validateAdd(t){var n=t.getType();n!=="Group"&&n!=="Shape"&&pX.Util.throw("You may only add groups and shapes to groups.")}}Qf.Group=bv,bv.prototype.nodeType="Group",(0,mX._registerNode)(bv);var eu={};Object.defineProperty(eu,"__esModule",{value:!0}),eu.Animation=void 0;const yv=Gt,h4=En,_v=function(){return yv.glob.performance&&yv.glob.performance.now?function(){return yv.glob.performance.now()}:function(){return new Date().getTime()}}();class Rr{constructor(t,n){this.id=Rr.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:_v(),frameRate:0},this.func=t,this.setLayers(n)}setLayers(t){let n=[];return t&&(n=Array.isArray(t)?t:[t]),this.layers=n,this}getLayers(){return this.layers}addLayer(t){const n=this.layers,r=n.length;for(let s=0;s<r;s++)if(n[s]._id===t._id)return!1;return this.layers.push(t),!0}isRunning(){const n=Rr.animations,r=n.length;for(let s=0;s<r;s++)if(n[s].id===this.id)return!0;return!1}start(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=_v(),Rr._addAnimation(this),this}stop(){return Rr._removeAnimation(this),this}_updateFrameObject(t){this.frame.timeDiff=t-this.frame.lastTime,this.frame.lastTime=t,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}static _addAnimation(t){this.animations.push(t),this._handleAnimation()}static _removeAnimation(t){const n=t.id,r=this.animations,s=r.length;for(let o=0;o<s;o++)if(r[o].id===n){this.animations.splice(o,1);break}}static _runFrames(){const t={},n=this.animations;for(let r=0;r<n.length;r++){const s=n[r],o=s.layers,a=s.func;s._updateFrameObject(_v());const l=o.length;let c;if(a?c=a.call(s,s.frame)!==!1:c=!0,!!c)for(let u=0;u<l;u++){const d=o[u];d._id!==void 0&&(t[d._id]=d)}}for(let r in t)t.hasOwnProperty(r)&&t[r].batchDraw()}static _animationLoop(){const t=Rr;t.animations.length?(t._runFrames(),h4.Util.requestAnimFrame(t._animationLoop)):t.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,h4.Util.requestAnimFrame(this._animationLoop))}}eu.Animation=Rr,Rr.animations=[],Rr.animIdCounter=0,Rr.animRunning=!1;var p4={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Easings=e.Tween=void 0;const t=En,n=eu,r=Ws,s=Gt;var o={node:1,duration:1,easing:1,onFinish:1,yoyo:1},a=1,l=2,c=3,u=0,d=["fill","stroke","shadowColor"];class f{constructor(b,y,_,w,x,C,S){this.prop=b,this.propFunc=y,this.begin=w,this._pos=w,this.duration=C,this._change=0,this.prevPos=0,this.yoyo=S,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=_,this._change=x-this.begin,this.pause()}fire(b){var y=this[b];y&&y()}setTime(b){b>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():b<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=b,this.update())}getTime(){return this._time}setPosition(b){this.prevPos=this._pos,this.propFunc(b),this._pos=b}getPosition(b){return b===void 0&&(b=this._time),this.func(b,this.begin,this._change,this.duration)}play(){this.state=l,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=c,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(b){this.pause(),this._time=b,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){var b=this.getTimer()-this._startTime;this.state===l?this.setTime(b):this.state===c&&this.setTime(this.duration-b)}pause(){this.state=a,this.fire("onPause")}getTimer(){return new Date().getTime()}}class h{constructor(b){var y=this,_=b.node,w=_._id,x,C=b.easing||e.Easings.Linear,S=!!b.yoyo,A;typeof b.duration=="undefined"?x=.3:b.duration===0?x=.001:x=b.duration,this.node=_,this._id=u++;var O=_.getLayer()||(_ instanceof s.Konva.Stage?_.getLayers():null);O||t.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new n.Animation(function(){y.tween.onEnterFrame()},O),this.tween=new f(A,function(R){y._tweenFunc(R)},C,0,1,x*1e3,S),this._addListeners(),h.attrs[w]||(h.attrs[w]={}),h.attrs[w][this._id]||(h.attrs[w][this._id]={}),h.tweens[w]||(h.tweens[w]={});for(A in b)o[A]===void 0&&this._addAttr(A,b[A]);this.reset(),this.onFinish=b.onFinish,this.onReset=b.onReset,this.onUpdate=b.onUpdate}_addAttr(b,y){var _=this.node,w=_._id,x,C,S,A,O,R,N,k;if(S=h.tweens[w][b],S&&delete h.attrs[w][S][b],x=_.getAttr(b),t.Util._isArray(y))if(C=[],O=Math.max(y.length,x.length),b==="points"&&y.length!==x.length&&(y.length>x.length?(N=x,x=t.Util._prepareArrayForTween(x,y,_.closed())):(R=y,y=t.Util._prepareArrayForTween(y,x,_.closed()))),b.indexOf("fill")===0)for(A=0;A<O;A++)if(A%2===0)C.push(y[A]-x[A]);else{var L=t.Util.colorToRGBA(x[A]);k=t.Util.colorToRGBA(y[A]),x[A]=L,C.push({r:k.r-L.r,g:k.g-L.g,b:k.b-L.b,a:k.a-L.a})}else for(A=0;A<O;A++)C.push(y[A]-x[A]);else d.indexOf(b)!==-1?(x=t.Util.colorToRGBA(x),k=t.Util.colorToRGBA(y),C={r:k.r-x.r,g:k.g-x.g,b:k.b-x.b,a:k.a-x.a}):C=y-x;h.attrs[w][this._id][b]={start:x,diff:C,end:y,trueEnd:R,trueStart:N},h.tweens[w][b]=this._id}_tweenFunc(b){var y=this.node,_=h.attrs[y._id][this._id],w,x,C,S,A,O,R,N;for(w in _){if(x=_[w],C=x.start,S=x.diff,N=x.end,t.Util._isArray(C))if(A=[],R=Math.max(C.length,N.length),w.indexOf("fill")===0)for(O=0;O<R;O++)O%2===0?A.push((C[O]||0)+S[O]*b):A.push("rgba("+Math.round(C[O].r+S[O].r*b)+","+Math.round(C[O].g+S[O].g*b)+","+Math.round(C[O].b+S[O].b*b)+","+(C[O].a+S[O].a*b)+")");else for(O=0;O<R;O++)A.push((C[O]||0)+S[O]*b);else d.indexOf(w)!==-1?A="rgba("+Math.round(C.r+S.r*b)+","+Math.round(C.g+S.g*b)+","+Math.round(C.b+S.b*b)+","+(C.a+S.a*b)+")":A=C+S*b;y.setAttr(w,A)}}_addListeners(){this.tween.onPlay=()=>{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{var b=this.node,y=h.attrs[b._id][this._id];y.points&&y.points.trueEnd&&b.setAttr("points",y.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{var b=this.node,y=h.attrs[b._id][this._id];y.points&&y.points.trueStart&&b.points(y.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(b){return this.tween.seek(b*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){var b=this.node._id,y=this._id,_=h.tweens[b],w;this.pause();for(w in _)delete h.tweens[b][w];delete h.attrs[b][y]}}e.Tween=h,h.attrs={},h.tweens={},r.Node.prototype.to=function(g){var b=g.onFinish;g.node=this,g.onFinish=function(){this.destroy(),b&&b()};var y=new h(g);y.play()},e.Easings={BackEaseIn(g,b,y,_){var w=1.70158;return y*(g/=_)*g*((w+1)*g-w)+b},BackEaseOut(g,b,y,_){var w=1.70158;return y*((g=g/_-1)*g*((w+1)*g+w)+1)+b},BackEaseInOut(g,b,y,_){var w=1.70158;return(g/=_/2)<1?y/2*(g*g*(((w*=1.525)+1)*g-w))+b:y/2*((g-=2)*g*(((w*=1.525)+1)*g+w)+2)+b},ElasticEaseIn(g,b,y,_,w,x){var C=0;return g===0?b:(g/=_)===1?b+y:(x||(x=_*.3),!w||w<Math.abs(y)?(w=y,C=x/4):C=x/(2*Math.PI)*Math.asin(y/w),-(w*Math.pow(2,10*(g-=1))*Math.sin((g*_-C)*(2*Math.PI)/x))+b)},ElasticEaseOut(g,b,y,_,w,x){var C=0;return g===0?b:(g/=_)===1?b+y:(x||(x=_*.3),!w||w<Math.abs(y)?(w=y,C=x/4):C=x/(2*Math.PI)*Math.asin(y/w),w*Math.pow(2,-10*g)*Math.sin((g*_-C)*(2*Math.PI)/x)+y+b)},ElasticEaseInOut(g,b,y,_,w,x){var C=0;return g===0?b:(g/=_/2)===2?b+y:(x||(x=_*(.3*1.5)),!w||w<Math.abs(y)?(w=y,C=x/4):C=x/(2*Math.PI)*Math.asin(y/w),g<1?-.5*(w*Math.pow(2,10*(g-=1))*Math.sin((g*_-C)*(2*Math.PI)/x))+b:w*Math.pow(2,-10*(g-=1))*Math.sin((g*_-C)*(2*Math.PI)/x)*.5+y+b)},BounceEaseOut(g,b,y,_){return(g/=_)<1/2.75?y*(7.5625*g*g)+b:g<2/2.75?y*(7.5625*(g-=1.5/2.75)*g+.75)+b:g<2.5/2.75?y*(7.5625*(g-=2.25/2.75)*g+.9375)+b:y*(7.5625*(g-=2.625/2.75)*g+.984375)+b},BounceEaseIn(g,b,y,_){return y-e.Easings.BounceEaseOut(_-g,0,y,_)+b},BounceEaseInOut(g,b,y,_){return g<_/2?e.Easings.BounceEaseIn(g*2,0,y,_)*.5+b:e.Easings.BounceEaseOut(g*2-_,0,y,_)*.5+y*.5+b},EaseIn(g,b,y,_){return y*(g/=_)*g+b},EaseOut(g,b,y,_){return-y*(g/=_)*(g-2)+b},EaseInOut(g,b,y,_){return(g/=_/2)<1?y/2*g*g+b:-y/2*(--g*(g-2)-1)+b},StrongEaseIn(g,b,y,_){return y*(g/=_)*g*g*g*g+b},StrongEaseOut(g,b,y,_){return y*((g=g/_-1)*g*g*g*g+1)+b},StrongEaseInOut(g,b,y,_){return(g/=_/2)<1?y/2*g*g*g*g*g+b:y/2*((g-=2)*g*g*g*g+2)+b},Linear(g,b,y,_){return y*g/_+b}}})(p4),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Konva=void 0;const t=Gt,n=En,r=Ws,s=Jo,o=l4,a=Qc,l=Zf,c=Qf,u=Wf,d=gs,f=eu,h=p4,g=hs,b=rr;e.Konva=n.Util._assign(t.Konva,{Util:n.Util,Transform:n.Transform,Node:r.Node,Container:s.Container,Stage:o.Stage,stages:o.stages,Layer:a.Layer,FastLayer:l.FastLayer,Group:c.Group,DD:u.DD,Shape:d.Shape,shapes:d.shapes,Animation:f.Animation,Tween:h.Tween,Easings:h.Easings,Context:g.Context,Canvas:b.Canvas}),e.default=e.Konva}(uv),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Konva=void 0;var n=uv;Object.defineProperty(t,"Konva",{enumerable:!0,get:function(){return n.Konva}});const r=uv;e.exports=r.Konva}(cv,cv.exports);var vX=cv.exports;const Ut=fC(vX);var wv={};Object.defineProperty(wv,"__esModule",{value:!0}),wv.Rect=void 0;const bX=oi,yX=gs,_X=Gt,wX=En,CX=Ot;class eh extends yX.Shape{_sceneFunc(t){var n=this.cornerRadius(),r=this.width(),s=this.height();t.beginPath(),n?wX.Util.drawRoundedRectPath(t,r,s,n):t.rect(0,0,r,s),t.closePath(),t.fillStrokeShape(this)}}wv.Rect=eh,eh.prototype.className="Rect",(0,_X._registerNode)(eh),bX.Factory.addGetterSetter(eh,"cornerRadius",0,(0,CX.getNumberOrArrayOfNumbersValidator)(4));var Cv={};Object.defineProperty(Cv,"__esModule",{value:!0}),Cv.Circle=void 0;const SX=oi,EX=gs,xX=Ot,AX=Gt;class ol extends EX.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius()!==t/2&&this.radius(t/2)}setHeight(t){this.radius()!==t/2&&this.radius(t/2)}}Cv.Circle=ol,ol.prototype._centroid=!0,ol.prototype.className="Circle",ol.prototype._attrsAffectingSize=["radius"],(0,AX._registerNode)(ol),SX.Factory.addGetterSetter(ol,"radius",0,(0,xX.getNumberValidator)());var Sv={};Object.defineProperty(Sv,"__esModule",{value:!0}),Sv.Image=void 0;const Ev=En,Xo=oi,PX=gs,TX=Gt,tu=Ot;let Dr=class W9 extends PX.Shape{constructor(t){super(t),this.on("imageChange.konva",()=>{this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const t=this.image();t&&t.complete||t&&t.readyState===4||t&&t.addEventListener&&t.addEventListener("load",()=>{this._requestDraw()})}_useBufferCanvas(){const t=!!this.cornerRadius(),n=this.hasShadow();return t&&n?!0:super._useBufferCanvas(!0)}_sceneFunc(t){const n=this.getWidth(),r=this.getHeight(),s=this.cornerRadius(),o=this.attrs.image;let a;if(o){const l=this.attrs.cropWidth,c=this.attrs.cropHeight;l&&c?a=[o,this.cropX(),this.cropY(),l,c,0,0,n,r]:a=[o,0,0,n,r]}(this.hasFill()||this.hasStroke()||s)&&(t.beginPath(),s?Ev.Util.drawRoundedRectPath(t,n,r,s):t.rect(0,0,n,r),t.closePath(),t.fillStrokeShape(this)),o&&(s&&t.clip(),t.drawImage.apply(t,a))}_hitFunc(t){var n=this.width(),r=this.height(),s=this.cornerRadius();t.beginPath(),s?Ev.Util.drawRoundedRectPath(t,n,r,s):t.rect(0,0,n,r),t.closePath(),t.fillStrokeShape(this)}getWidth(){var t,n;return(t=this.attrs.width)!==null&&t!==void 0?t:(n=this.image())===null||n===void 0?void 0:n.width}getHeight(){var t,n;return(t=this.attrs.height)!==null&&t!==void 0?t:(n=this.image())===null||n===void 0?void 0:n.height}static fromURL(t,n,r=null){var s=Ev.Util.createImageElement();s.onload=function(){var o=new W9({image:s});n(o)},s.onerror=r,s.crossOrigin="Anonymous",s.src=t}};Sv.Image=Dr,Dr.prototype.className="Image",(0,TX._registerNode)(Dr),Xo.Factory.addGetterSetter(Dr,"cornerRadius",0,(0,tu.getNumberOrArrayOfNumbersValidator)(4)),Xo.Factory.addGetterSetter(Dr,"image"),Xo.Factory.addComponentsGetterSetter(Dr,"crop",["x","y","width","height"]),Xo.Factory.addGetterSetter(Dr,"cropX",0,(0,tu.getNumberValidator)()),Xo.Factory.addGetterSetter(Dr,"cropY",0,(0,tu.getNumberValidator)()),Xo.Factory.addGetterSetter(Dr,"cropWidth",0,(0,tu.getNumberValidator)()),Xo.Factory.addGetterSetter(Dr,"cropHeight",0,(0,tu.getNumberValidator)());var nu={};Object.defineProperty(nu,"__esModule",{value:!0}),nu.Text=nu.stringToArray=void 0;const xv=En,Bn=oi,OX=gs,Av=Gt,Ys=Ot,NX=Gt;function g4(e){return[...e].reduce((t,n,r,s)=>(new RegExp("\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?(?:\\u200D\\p{Emoji_Presentation})+","u").test(n)?t.push(n):new RegExp("\\p{Regional_Indicator}{2}","u").test(n+(s[r+1]||""))?t.push(n+s[r+1]):r>0&&new RegExp("\\p{Mn}|\\p{Me}|\\p{Mc}","u").test(n)?t[t.length-1]+=n:t.push(n),t),[])}nu.stringToArray=g4;var al="auto",IX="center",m4="inherit",iu="justify",RX="Change.konva",DX="2d",v4="-",b4="left",LX="text",kX="Text",MX="top",FX="bottom",y4="middle",_4="normal",BX="px ",th=" ",jX="right",w4="rtl",UX="word",$X="char",C4="none",Pv="…",S4=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],VX=S4.length;function zX(e){return e.split(",").map(t=>{t=t.trim();const n=t.indexOf(" ")>=0,r=t.indexOf('"')>=0||t.indexOf("'")>=0;return n&&!r&&(t=`"${t}"`),t}).join(", ")}var nh;function Tv(){return nh||(nh=xv.Util.createCanvasElement().getContext(DX),nh)}function qX(e){e.fillText(this._partialText,this._partialTextX,this._partialTextY)}function HX(e){e.setAttr("miterLimit",2),e.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function GX(e){return e=e||{},!e.fillLinearGradientColorStops&&!e.fillRadialGradientColorStops&&!e.fillPatternImage&&(e.fill=e.fill||"black"),e}class rn extends OX.Shape{constructor(t){super(GX(t)),this._partialTextX=0,this._partialTextY=0;for(var n=0;n<VX;n++)this.on(S4[n]+RX,this._setTextData);this._setTextData()}_sceneFunc(t){var n=this.textArr,r=n.length;if(this.text()){var s=this.padding(),o=this.fontSize(),a=this.lineHeight()*o,l=this.verticalAlign(),c=this.direction(),u=0,d=this.align(),f=this.getWidth(),h=this.letterSpacing(),g=this.fill(),b=this.textDecoration(),y=b.indexOf("underline")!==-1,_=b.indexOf("line-through")!==-1,w;c=c===m4?t.direction:c;var x=a/2,C=y4;if(Av.Konva._fixTextRendering){var S=this.measureSize("M");C="alphabetic",x=(S.fontBoundingBoxAscent-S.fontBoundingBoxDescent)/2+a/2}var A=0,O=0;for(c===w4&&t.setAttr("direction",c),t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",C),t.setAttr("textAlign",b4),l===y4?u=(this.getHeight()-r*a-s*2)/2:l===FX&&(u=this.getHeight()-r*a-s*2),t.translate(s,u+s),w=0;w<r;w++){var A=0,O=0,R=n[w],N=R.text,k=R.width,L=R.lastInParagraph,F,G,V;if(t.save(),d===jX?A+=f-k-s*2:d===IX&&(A+=(f-k-s*2)/2),y){t.save(),t.beginPath();let X=Av.Konva._fixTextRendering?Math.round(o/4):Math.round(o/2);const B=A,_e=x+O+X;t.moveTo(B,_e),F=N.split(" ").length-1,G=F===0,V=d===iu&&!L?f-s*2:k,t.lineTo(B+Math.round(V),_e),t.lineWidth=o/15;const he=this._getLinearGradient();t.strokeStyle=he||g,t.stroke(),t.restore()}if(_){t.save(),t.beginPath();let X=Av.Konva._fixTextRendering?-Math.round(o/4):0;t.moveTo(A,x+O+X),F=N.split(" ").length-1,G=F===0,V=d===iu&&L&&!G?f-s*2:k,t.lineTo(A+Math.round(V),x+O+X),t.lineWidth=o/15;const B=this._getLinearGradient();t.strokeStyle=B||g,t.stroke(),t.restore()}if(c!==w4&&(h!==0||d===iu)){F=N.split(" ").length-1;for(var ae=g4(N),ce=0;ce<ae.length;ce++){var U=ae[ce];U===" "&&!L&&d===iu&&(A+=(f-s*2-k)/F),this._partialTextX=A,this._partialTextY=x+O,this._partialText=U,t.fillStrokeShape(this),A+=this.measureSize(U).width+h}}else h!==0&&t.setAttr("letterSpacing",`${h}px`),this._partialTextX=A,this._partialTextY=x+O,this._partialText=N,t.fillStrokeShape(this);t.restore(),r>1&&(x+=a)}}}_hitFunc(t){var n=this.getWidth(),r=this.getHeight();t.beginPath(),t.rect(0,0,n,r),t.closePath(),t.fillStrokeShape(this)}setText(t){var n=xv.Util._isString(t)?t:t==null?"":t+"";return this._setAttr(LX,n),this}getWidth(){var t=this.attrs.width===al||this.attrs.width===void 0;return t?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){var t=this.attrs.height===al||this.attrs.height===void 0;return t?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return xv.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(t){var n,r,s,o,a,l,c,u,d,f,h,g=Tv(),b=this.fontSize(),y;g.save(),g.font=this._getContextFont(),y=g.measureText(t),g.restore();const _=b/100;return{actualBoundingBoxAscent:(n=y.actualBoundingBoxAscent)!==null&&n!==void 0?n:71.58203125*_,actualBoundingBoxDescent:(r=y.actualBoundingBoxDescent)!==null&&r!==void 0?r:0,actualBoundingBoxLeft:(s=y.actualBoundingBoxLeft)!==null&&s!==void 0?s:-7.421875*_,actualBoundingBoxRight:(o=y.actualBoundingBoxRight)!==null&&o!==void 0?o:75.732421875*_,alphabeticBaseline:(a=y.alphabeticBaseline)!==null&&a!==void 0?a:0,emHeightAscent:(l=y.emHeightAscent)!==null&&l!==void 0?l:100*_,emHeightDescent:(c=y.emHeightDescent)!==null&&c!==void 0?c:-20*_,fontBoundingBoxAscent:(u=y.fontBoundingBoxAscent)!==null&&u!==void 0?u:91*_,fontBoundingBoxDescent:(d=y.fontBoundingBoxDescent)!==null&&d!==void 0?d:21*_,hangingBaseline:(f=y.hangingBaseline)!==null&&f!==void 0?f:72.80000305175781*_,ideographicBaseline:(h=y.ideographicBaseline)!==null&&h!==void 0?h:-21*_,width:y.width,height:b}}_getContextFont(){return this.fontStyle()+th+this.fontVariant()+th+(this.fontSize()+BX)+zX(this.fontFamily())}_addTextLine(t){this.align()===iu&&(t=t.trim());var r=this._getTextWidth(t);return this.textArr.push({text:t,width:r,lastInParagraph:!1})}_getTextWidth(t){var n=this.letterSpacing(),r=t.length;return Tv().measureText(t).width+(r?n*(r-1):0)}_setTextData(){var t=this.text().split(`
|
|
148
|
-
`),n=+this.fontSize(),r=0,s=this.lineHeight()*n,o=this.attrs.width,a=this.attrs.height,l=o!==al&&o!==void 0,c=a!==al&&a!==void 0,u=this.padding(),d=o-u*2,f=a-u*2,h=0,g=this.wrap(),b=g!==C4,y=g!==$X&&b,_=this.ellipsis();this.textArr=[],Tv().font=this._getContextFont();for(var w=_?this._getTextWidth(Pv):0,x=0,C=t.length;x<C;++x){var S=t[x],A=this._getTextWidth(S);if(l&&A>d)for(;S.length>0;){for(var O=0,R=S.length,N="",k=0;O<R;){var L=O+R>>>1,F=S.slice(0,L+1),G=this._getTextWidth(F)+w;G<=d?(O=L+1,N=F,k=G):R=L}if(N){if(y){var V,ae=S[N.length],ce=ae===th||ae===v4;ce&&k<=d?V=N.length:V=Math.max(N.lastIndexOf(th),N.lastIndexOf(v4))+1,V>0&&(O=V,N=N.slice(0,O),k=this._getTextWidth(N))}N=N.trimRight(),this._addTextLine(N),r=Math.max(r,k),h+=s;var U=this._shouldHandleEllipsis(h);if(U){this._tryToAddEllipsisToLastLine();break}if(S=S.slice(O),S=S.trimLeft(),S.length>0&&(A=this._getTextWidth(S),A<=d)){this._addTextLine(S),h+=s,r=Math.max(r,A);break}}else break}else this._addTextLine(S),h+=s,r=Math.max(r,A),this._shouldHandleEllipsis(h)&&x<C-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),c&&h+s>f)break}this.textHeight=n,this.textWidth=r}_shouldHandleEllipsis(t){var n=+this.fontSize(),r=this.lineHeight()*n,s=this.attrs.height,o=s!==al&&s!==void 0,a=this.padding(),l=s-a*2,c=this.wrap(),u=c!==C4;return!u||o&&t+r>l}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==al&&t!==void 0,r=this.padding(),s=t-r*2,o=this.ellipsis(),a=this.textArr[this.textArr.length-1];if(!(!a||!o)){if(n){var l=this._getTextWidth(a.text+Pv)<s;l||(a.text=a.text.slice(0,a.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(a.text+Pv)}}getStrokeScaleEnabled(){return!0}_useBufferCanvas(){const t=this.textDecoration().indexOf("underline")!==-1||this.textDecoration().indexOf("line-through")!==-1,n=this.hasShadow();return t&&n?!0:super._useBufferCanvas()}}nu.Text=rn,rn.prototype._fillFunc=qX,rn.prototype._strokeFunc=HX,rn.prototype.className=kX,rn.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"],(0,NX._registerNode)(rn),Bn.Factory.overWriteSetter(rn,"width",(0,Ys.getNumberOrAutoValidator)()),Bn.Factory.overWriteSetter(rn,"height",(0,Ys.getNumberOrAutoValidator)()),Bn.Factory.addGetterSetter(rn,"direction",m4),Bn.Factory.addGetterSetter(rn,"fontFamily","Arial"),Bn.Factory.addGetterSetter(rn,"fontSize",12,(0,Ys.getNumberValidator)()),Bn.Factory.addGetterSetter(rn,"fontStyle",_4),Bn.Factory.addGetterSetter(rn,"fontVariant",_4),Bn.Factory.addGetterSetter(rn,"padding",0,(0,Ys.getNumberValidator)()),Bn.Factory.addGetterSetter(rn,"align",b4),Bn.Factory.addGetterSetter(rn,"verticalAlign",MX),Bn.Factory.addGetterSetter(rn,"lineHeight",1,(0,Ys.getNumberValidator)()),Bn.Factory.addGetterSetter(rn,"wrap",UX),Bn.Factory.addGetterSetter(rn,"ellipsis",!1,(0,Ys.getBooleanValidator)()),Bn.Factory.addGetterSetter(rn,"letterSpacing",0,(0,Ys.getNumberValidator)()),Bn.Factory.addGetterSetter(rn,"text","",(0,Ys.getStringValidator)()),Bn.Factory.addGetterSetter(rn,"textDecoration","");var Ov={},ih={};Object.defineProperty(ih,"__esModule",{value:!0}),ih.Line=void 0;const rh=oi,WX=gs,E4=Ot,KX=Gt;function Nv(e,t,n,r,s,o,a){var l=Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2)),c=Math.sqrt(Math.pow(s-n,2)+Math.pow(o-r,2)),u=a*l/(l+c),d=a*c/(l+c),f=n-u*(s-e),h=r-u*(o-t),g=n+d*(s-e),b=r+d*(o-t);return[f,h,g,b]}function x4(e,t){var n=e.length,r=[],s,o;for(s=2;s<n-2;s+=2)o=Nv(e[s-2],e[s-1],e[s],e[s+1],e[s+2],e[s+3],t),!isNaN(o[0])&&(r.push(o[0]),r.push(o[1]),r.push(e[s]),r.push(e[s+1]),r.push(o[2]),r.push(o[3]));return r}class Xs extends WX.Shape{constructor(t){super(t),this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",function(){this._clearCache("tensionPoints")})}_sceneFunc(t){var n=this.points(),r=n.length,s=this.tension(),o=this.closed(),a=this.bezier(),l,c,u;if(r){if(t.beginPath(),t.moveTo(n[0],n[1]),s!==0&&r>4){for(l=this.getTensionPoints(),c=l.length,u=o?0:4,o||t.quadraticCurveTo(l[0],l[1],l[2],l[3]);u<c-2;)t.bezierCurveTo(l[u++],l[u++],l[u++],l[u++],l[u++],l[u++]);o||t.quadraticCurveTo(l[c-2],l[c-1],n[r-2],n[r-1])}else if(a)for(u=2;u<r;)t.bezierCurveTo(n[u++],n[u++],n[u++],n[u++],n[u++],n[u++]);else for(u=2;u<r;u+=2)t.lineTo(n[u],n[u+1]);o?(t.closePath(),t.fillStrokeShape(this)):t.strokeShape(this)}}getTensionPoints(){return this._getCache("tensionPoints",this._getTensionPoints)}_getTensionPoints(){return this.closed()?this._getTensionPointsClosed():x4(this.points(),this.tension())}_getTensionPointsClosed(){var t=this.points(),n=t.length,r=this.tension(),s=Nv(t[n-2],t[n-1],t[0],t[1],t[2],t[3],r),o=Nv(t[n-4],t[n-3],t[n-2],t[n-1],t[0],t[1],r),a=x4(t,r),l=[s[2],s[3]].concat(a).concat([o[0],o[1],t[n-2],t[n-1],o[2],o[3],s[0],s[1],t[0],t[1]]);return l}getWidth(){return this.getSelfRect().width}getHeight(){return this.getSelfRect().height}getSelfRect(){var t=this.points();if(t.length<4)return{x:t[0]||0,y:t[1]||0,width:0,height:0};this.tension()!==0?t=[t[0],t[1],...this._getTensionPoints(),t[t.length-2],t[t.length-1]]:t=this.points();for(var n=t[0],r=t[0],s=t[1],o=t[1],a,l,c=0;c<t.length/2;c++)a=t[c*2],l=t[c*2+1],n=Math.min(n,a),r=Math.max(r,a),s=Math.min(s,l),o=Math.max(o,l);return{x:n,y:s,width:r-n,height:o-s}}}ih.Line=Xs,Xs.prototype.className="Line",Xs.prototype._attrsAffectingSize=["points","bezier","tension"],(0,KX._registerNode)(Xs),rh.Factory.addGetterSetter(Xs,"closed",!1),rh.Factory.addGetterSetter(Xs,"bezier",!1),rh.Factory.addGetterSetter(Xs,"tension",0,(0,E4.getNumberValidator)()),rh.Factory.addGetterSetter(Xs,"points",[],(0,E4.getNumberArrayValidator)());var sh={},A4={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.t2length=e.getQuadraticArcLength=e.getCubicArcLength=e.binomialCoefficients=e.cValues=e.tValues=void 0,e.tValues=[[],[],[-.5773502691896257,.5773502691896257],[0,-.7745966692414834,.7745966692414834],[-.33998104358485626,.33998104358485626,-.8611363115940526,.8611363115940526],[0,-.5384693101056831,.5384693101056831,-.906179845938664,.906179845938664],[.6612093864662645,-.6612093864662645,-.2386191860831969,.2386191860831969,-.932469514203152,.932469514203152],[0,.4058451513773972,-.4058451513773972,-.7415311855993945,.7415311855993945,-.9491079123427585,.9491079123427585],[-.1834346424956498,.1834346424956498,-.525532409916329,.525532409916329,-.7966664774136267,.7966664774136267,-.9602898564975363,.9602898564975363],[0,-.8360311073266358,.8360311073266358,-.9681602395076261,.9681602395076261,-.3242534234038089,.3242534234038089,-.6133714327005904,.6133714327005904],[-.14887433898163122,.14887433898163122,-.4333953941292472,.4333953941292472,-.6794095682990244,.6794095682990244,-.8650633666889845,.8650633666889845,-.9739065285171717,.9739065285171717],[0,-.26954315595234496,.26954315595234496,-.5190961292068118,.5190961292068118,-.7301520055740494,.7301520055740494,-.8870625997680953,.8870625997680953,-.978228658146057,.978228658146057],[-.1252334085114689,.1252334085114689,-.3678314989981802,.3678314989981802,-.5873179542866175,.5873179542866175,-.7699026741943047,.7699026741943047,-.9041172563704749,.9041172563704749,-.9815606342467192,.9815606342467192],[0,-.2304583159551348,.2304583159551348,-.44849275103644687,.44849275103644687,-.6423493394403402,.6423493394403402,-.8015780907333099,.8015780907333099,-.9175983992229779,.9175983992229779,-.9841830547185881,.9841830547185881],[-.10805494870734367,.10805494870734367,-.31911236892788974,.31911236892788974,-.5152486363581541,.5152486363581541,-.6872929048116855,.6872929048116855,-.827201315069765,.827201315069765,-.9284348836635735,.9284348836635735,-.9862838086968123,.9862838086968123],[0,-.20119409399743451,.20119409399743451,-.3941513470775634,.3941513470775634,-.5709721726085388,.5709721726085388,-.7244177313601701,.7244177313601701,-.8482065834104272,.8482065834104272,-.937273392400706,.937273392400706,-.9879925180204854,.9879925180204854],[-.09501250983763744,.09501250983763744,-.2816035507792589,.2816035507792589,-.45801677765722737,.45801677765722737,-.6178762444026438,.6178762444026438,-.755404408355003,.755404408355003,-.8656312023878318,.8656312023878318,-.9445750230732326,.9445750230732326,-.9894009349916499,.9894009349916499],[0,-.17848418149584785,.17848418149584785,-.3512317634538763,.3512317634538763,-.5126905370864769,.5126905370864769,-.6576711592166907,.6576711592166907,-.7815140038968014,.7815140038968014,-.8802391537269859,.8802391537269859,-.9506755217687678,.9506755217687678,-.9905754753144174,.9905754753144174],[-.0847750130417353,.0847750130417353,-.2518862256915055,.2518862256915055,-.41175116146284263,.41175116146284263,-.5597708310739475,.5597708310739475,-.6916870430603532,.6916870430603532,-.8037049589725231,.8037049589725231,-.8926024664975557,.8926024664975557,-.9558239495713977,.9558239495713977,-.9915651684209309,.9915651684209309],[0,-.16035864564022537,.16035864564022537,-.31656409996362983,.31656409996362983,-.46457074137596094,.46457074137596094,-.600545304661681,.600545304661681,-.7209661773352294,.7209661773352294,-.8227146565371428,.8227146565371428,-.9031559036148179,.9031559036148179,-.96020815213483,.96020815213483,-.9924068438435844,.9924068438435844],[-.07652652113349734,.07652652113349734,-.22778585114164507,.22778585114164507,-.37370608871541955,.37370608871541955,-.5108670019508271,.5108670019508271,-.636053680726515,.636053680726515,-.7463319064601508,.7463319064601508,-.8391169718222188,.8391169718222188,-.912234428251326,.912234428251326,-.9639719272779138,.9639719272779138,-.9931285991850949,.9931285991850949],[0,-.1455618541608951,.1455618541608951,-.2880213168024011,.2880213168024011,-.4243421202074388,.4243421202074388,-.5516188358872198,.5516188358872198,-.6671388041974123,.6671388041974123,-.7684399634756779,.7684399634756779,-.8533633645833173,.8533633645833173,-.9200993341504008,.9200993341504008,-.9672268385663063,.9672268385663063,-.9937521706203895,.9937521706203895],[-.06973927331972223,.06973927331972223,-.20786042668822127,.20786042668822127,-.34193582089208424,.34193582089208424,-.469355837986757,.469355837986757,-.5876404035069116,.5876404035069116,-.6944872631866827,.6944872631866827,-.7878168059792081,.7878168059792081,-.8658125777203002,.8658125777203002,-.926956772187174,.926956772187174,-.9700604978354287,.9700604978354287,-.9942945854823992,.9942945854823992],[0,-.1332568242984661,.1332568242984661,-.26413568097034495,.26413568097034495,-.3903010380302908,.3903010380302908,-.5095014778460075,.5095014778460075,-.6196098757636461,.6196098757636461,-.7186613631319502,.7186613631319502,-.8048884016188399,.8048884016188399,-.8767523582704416,.8767523582704416,-.9329710868260161,.9329710868260161,-.9725424712181152,.9725424712181152,-.9947693349975522,.9947693349975522],[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213]],e.cValues=[[],[],[1,1],[.8888888888888888,.5555555555555556,.5555555555555556],[.6521451548625461,.6521451548625461,.34785484513745385,.34785484513745385],[.5688888888888889,.47862867049936647,.47862867049936647,.23692688505618908,.23692688505618908],[.3607615730481386,.3607615730481386,.46791393457269104,.46791393457269104,.17132449237917036,.17132449237917036],[.4179591836734694,.3818300505051189,.3818300505051189,.27970539148927664,.27970539148927664,.1294849661688697,.1294849661688697],[.362683783378362,.362683783378362,.31370664587788727,.31370664587788727,.22238103445337448,.22238103445337448,.10122853629037626,.10122853629037626],[.3302393550012598,.1806481606948574,.1806481606948574,.08127438836157441,.08127438836157441,.31234707704000286,.31234707704000286,.26061069640293544,.26061069640293544],[.29552422471475287,.29552422471475287,.26926671930999635,.26926671930999635,.21908636251598204,.21908636251598204,.1494513491505806,.1494513491505806,.06667134430868814,.06667134430868814],[.2729250867779006,.26280454451024665,.26280454451024665,.23319376459199048,.23319376459199048,.18629021092773426,.18629021092773426,.1255803694649046,.1255803694649046,.05566856711617366,.05566856711617366],[.24914704581340277,.24914704581340277,.2334925365383548,.2334925365383548,.20316742672306592,.20316742672306592,.16007832854334622,.16007832854334622,.10693932599531843,.10693932599531843,.04717533638651183,.04717533638651183],[.2325515532308739,.22628318026289723,.22628318026289723,.2078160475368885,.2078160475368885,.17814598076194574,.17814598076194574,.13887351021978725,.13887351021978725,.09212149983772845,.09212149983772845,.04048400476531588,.04048400476531588],[.2152638534631578,.2152638534631578,.2051984637212956,.2051984637212956,.18553839747793782,.18553839747793782,.15720316715819355,.15720316715819355,.12151857068790319,.12151857068790319,.08015808715976021,.08015808715976021,.03511946033175186,.03511946033175186],[.2025782419255613,.19843148532711158,.19843148532711158,.1861610000155622,.1861610000155622,.16626920581699392,.16626920581699392,.13957067792615432,.13957067792615432,.10715922046717194,.10715922046717194,.07036604748810812,.07036604748810812,.03075324199611727,.03075324199611727],[.1894506104550685,.1894506104550685,.18260341504492358,.18260341504492358,.16915651939500254,.16915651939500254,.14959598881657674,.14959598881657674,.12462897125553388,.12462897125553388,.09515851168249279,.09515851168249279,.062253523938647894,.062253523938647894,.027152459411754096,.027152459411754096],[.17944647035620653,.17656270536699264,.17656270536699264,.16800410215645004,.16800410215645004,.15404576107681028,.15404576107681028,.13513636846852548,.13513636846852548,.11188384719340397,.11188384719340397,.08503614831717918,.08503614831717918,.0554595293739872,.0554595293739872,.02414830286854793,.02414830286854793],[.1691423829631436,.1691423829631436,.16427648374583273,.16427648374583273,.15468467512626524,.15468467512626524,.14064291467065065,.14064291467065065,.12255520671147846,.12255520671147846,.10094204410628717,.10094204410628717,.07642573025488905,.07642573025488905,.0497145488949698,.0497145488949698,.02161601352648331,.02161601352648331],[.1610544498487837,.15896884339395434,.15896884339395434,.15276604206585967,.15276604206585967,.1426067021736066,.1426067021736066,.12875396253933621,.12875396253933621,.11156664554733399,.11156664554733399,.09149002162245,.09149002162245,.06904454273764123,.06904454273764123,.0448142267656996,.0448142267656996,.019461788229726478,.019461788229726478],[.15275338713072584,.15275338713072584,.14917298647260374,.14917298647260374,.14209610931838204,.14209610931838204,.13168863844917664,.13168863844917664,.11819453196151841,.11819453196151841,.10193011981724044,.10193011981724044,.08327674157670475,.08327674157670475,.06267204833410907,.06267204833410907,.04060142980038694,.04060142980038694,.017614007139152118,.017614007139152118],[.14608113364969041,.14452440398997005,.14452440398997005,.13988739479107315,.13988739479107315,.13226893863333747,.13226893863333747,.12183141605372853,.12183141605372853,.10879729916714838,.10879729916714838,.09344442345603386,.09344442345603386,.0761001136283793,.0761001136283793,.057134425426857205,.057134425426857205,.036953789770852494,.036953789770852494,.016017228257774335,.016017228257774335],[.13925187285563198,.13925187285563198,.13654149834601517,.13654149834601517,.13117350478706238,.13117350478706238,.12325237681051242,.12325237681051242,.11293229608053922,.11293229608053922,.10041414444288096,.10041414444288096,.08594160621706773,.08594160621706773,.06979646842452049,.06979646842452049,.052293335152683286,.052293335152683286,.03377490158481415,.03377490158481415,.0146279952982722,.0146279952982722],[.13365457218610619,.1324620394046966,.1324620394046966,.12890572218808216,.12890572218808216,.12304908430672953,.12304908430672953,.11499664022241136,.11499664022241136,.10489209146454141,.10489209146454141,.09291576606003515,.09291576606003515,.07928141177671895,.07928141177671895,.06423242140852585,.06423242140852585,.04803767173108467,.04803767173108467,.030988005856979445,.030988005856979445,.013411859487141771,.013411859487141771],[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872]],e.binomialCoefficients=[[1],[1,1],[1,2,1],[1,3,3,1]];const t=(a,l,c)=>{let u,d,f;u=c/2,d=0;for(let g=0;g<20;g++)f=u*e.tValues[20][g]+u,d+=e.cValues[20][g]*r(a,l,f);return u*d};e.getCubicArcLength=t;const n=(a,l,c)=>{c===void 0&&(c=1);const u=a[0]-2*a[1]+a[2],d=l[0]-2*l[1]+l[2],f=2*a[1]-2*a[0],h=2*l[1]-2*l[0],g=4*(u*u+d*d),b=4*(u*f+d*h),y=f*f+h*h;if(g===0)return c*Math.sqrt(Math.pow(a[2]-a[0],2)+Math.pow(l[2]-l[0],2));const _=b/(2*g),w=y/g,x=c+_,C=w-_*_,S=x*x+C>0?Math.sqrt(x*x+C):0,A=_*_+C>0?Math.sqrt(_*_+C):0,O=_+Math.sqrt(_*_+C)!==0?C*Math.log(Math.abs((x+S)/(_+A))):0;return Math.sqrt(g)/2*(x*S-_*A+O)};e.getQuadraticArcLength=n;function r(a,l,c){const u=s(1,c,a),d=s(1,c,l),f=u*u+d*d;return Math.sqrt(f)}const s=(a,l,c)=>{const u=c.length-1;let d,f;if(u===0)return 0;if(a===0){f=0;for(let h=0;h<=u;h++)f+=e.binomialCoefficients[u][h]*Math.pow(1-l,u-h)*Math.pow(l,h)*c[h];return f}else{d=new Array(u);for(let h=0;h<u;h++)d[h]=u*(c[h+1]-c[h]);return s(a-1,l,d)}},o=(a,l,c)=>{let u=1,d=a/l,f=(a-c(d))/l,h=0;for(;u>.001;){const g=c(d+f),b=Math.abs(a-g)/l;if(b<u)u=b,d+=f;else{const y=c(d-f),_=Math.abs(a-y)/l;_<u?(u=_,d-=f):f/=2}if(h++,h>500)break}return d};e.t2length=o})(A4),Object.defineProperty(sh,"__esModule",{value:!0}),sh.Path=void 0;const JX=oi,YX=gs,XX=Gt,ll=A4;class gn extends YX.Shape{constructor(t){super(t),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=gn.parsePathData(this.data()),this.pathLength=gn.getPathLength(this.dataArray)}_sceneFunc(t){var n=this.dataArray;t.beginPath();for(var r=!1,s=0;s<n.length;s++){var o=n[s].command,a=n[s].points;switch(o){case"L":t.lineTo(a[0],a[1]);break;case"M":t.moveTo(a[0],a[1]);break;case"C":t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);break;case"Q":t.quadraticCurveTo(a[0],a[1],a[2],a[3]);break;case"A":var l=a[0],c=a[1],u=a[2],d=a[3],f=a[4],h=a[5],g=a[6],b=a[7],y=u>d?u:d,_=u>d?1:u/d,w=u>d?d/u:1;t.translate(l,c),t.rotate(g),t.scale(_,w),t.arc(0,0,y,f,f+h,1-b),t.scale(1/_,1/w),t.rotate(-g),t.translate(-l,-c);break;case"z":r=!0,t.closePath();break}}!r&&!this.hasFill()?t.strokeShape(this):t.fillStrokeShape(this)}getSelfRect(){var t=[];this.dataArray.forEach(function(u){if(u.command==="A"){var d=u.points[4],f=u.points[5],h=u.points[4]+f,g=Math.PI/180;if(Math.abs(d-h)<g&&(g=Math.abs(d-h)),f<0)for(let b=d-g;b>h;b-=g){const y=gn.getPointOnEllipticalArc(u.points[0],u.points[1],u.points[2],u.points[3],b,0);t.push(y.x,y.y)}else for(let b=d+g;b<h;b+=g){const y=gn.getPointOnEllipticalArc(u.points[0],u.points[1],u.points[2],u.points[3],b,0);t.push(y.x,y.y)}}else if(u.command==="C")for(let b=0;b<=1;b+=.01){const y=gn.getPointOnCubicBezier(b,u.start.x,u.start.y,u.points[0],u.points[1],u.points[2],u.points[3],u.points[4],u.points[5]);t.push(y.x,y.y)}else t=t.concat(u.points)});for(var n=t[0],r=t[0],s=t[1],o=t[1],a,l,c=0;c<t.length/2;c++)a=t[c*2],l=t[c*2+1],isNaN(a)||(n=Math.min(n,a),r=Math.max(r,a)),isNaN(l)||(s=Math.min(s,l),o=Math.max(o,l));return{x:n,y:s,width:r-n,height:o-s}}getLength(){return this.pathLength}getPointAtLength(t){return gn.getPointAtLengthOfDataArray(t,this.dataArray)}static getLineLength(t,n,r,s){return Math.sqrt((r-t)*(r-t)+(s-n)*(s-n))}static getPathLength(t){let n=0;for(var r=0;r<t.length;++r)n+=t[r].pathLength;return n}static getPointAtLengthOfDataArray(t,n){var r,s=0,o=n.length;if(!o)return null;for(;s<o&&t>n[s].pathLength;)t-=n[s].pathLength,++s;if(s===o)return r=n[s-1].points.slice(-2),{x:r[0],y:r[1]};if(t<.01)return r=n[s].points.slice(0,2),{x:r[0],y:r[1]};var a=n[s],l=a.points;switch(a.command){case"L":return gn.getPointOnLine(t,a.start.x,a.start.y,l[0],l[1]);case"C":return gn.getPointOnCubicBezier((0,ll.t2length)(t,gn.getPathLength(n),y=>(0,ll.getCubicArcLength)([a.start.x,l[0],l[2],l[4]],[a.start.y,l[1],l[3],l[5]],y)),a.start.x,a.start.y,l[0],l[1],l[2],l[3],l[4],l[5]);case"Q":return gn.getPointOnQuadraticBezier((0,ll.t2length)(t,gn.getPathLength(n),y=>(0,ll.getQuadraticArcLength)([a.start.x,l[0],l[2]],[a.start.y,l[1],l[3]],y)),a.start.x,a.start.y,l[0],l[1],l[2],l[3]);case"A":var c=l[0],u=l[1],d=l[2],f=l[3],h=l[4],g=l[5],b=l[6];return h+=g*t/a.pathLength,gn.getPointOnEllipticalArc(c,u,d,f,h,b)}return null}static getPointOnLine(t,n,r,s,o,a,l){a=a!=null?a:n,l=l!=null?l:r;const c=this.getLineLength(n,r,s,o);if(c<1e-10)return{x:n,y:r};if(s===n)return{x:a,y:l+(o>r?t:-t)};const u=(o-r)/(s-n),d=Math.sqrt(t*t/(1+u*u))*(s<n?-1:1),f=u*d;if(Math.abs(l-r-u*(a-n))<1e-10)return{x:a+d,y:l+f};const h=((a-n)*(s-n)+(l-r)*(o-r))/(c*c),g=n+h*(s-n),b=r+h*(o-r),y=this.getLineLength(a,l,g,b),_=Math.sqrt(t*t-y*y),w=Math.sqrt(_*_/(1+u*u))*(s<n?-1:1),x=u*w;return{x:g+w,y:b+x}}static getPointOnCubicBezier(t,n,r,s,o,a,l,c,u){function d(_){return _*_*_}function f(_){return 3*_*_*(1-_)}function h(_){return 3*_*(1-_)*(1-_)}function g(_){return(1-_)*(1-_)*(1-_)}var b=c*d(t)+a*f(t)+s*h(t)+n*g(t),y=u*d(t)+l*f(t)+o*h(t)+r*g(t);return{x:b,y}}static getPointOnQuadraticBezier(t,n,r,s,o,a,l){function c(g){return g*g}function u(g){return 2*g*(1-g)}function d(g){return(1-g)*(1-g)}var f=a*c(t)+s*u(t)+n*d(t),h=l*c(t)+o*u(t)+r*d(t);return{x:f,y:h}}static getPointOnEllipticalArc(t,n,r,s,o,a){var l=Math.cos(a),c=Math.sin(a),u={x:r*Math.cos(o),y:s*Math.sin(o)};return{x:t+(u.x*l-u.y*c),y:n+(u.x*c+u.y*l)}}static parsePathData(t){if(!t)return[];var n=t,r=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];n=n.replace(new RegExp(" ","g"),",");for(var s=0;s<r.length;s++)n=n.replace(new RegExp(r[s],"g"),"|"+r[s]);var o=n.split("|"),a=[],l=[],c=0,u=0,d=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi,f;for(s=1;s<o.length;s++){var h=o[s],g=h.charAt(0);for(h=h.slice(1),l.length=0;f=d.exec(h);)l.push(f[0]);for(var b=[],y=0,_=l.length;y<_;y++){if(l[y]==="00"){b.push(0,0);continue}var w=parseFloat(l[y]);isNaN(w)?b.push(0):b.push(w)}for(;b.length>0&&!isNaN(b[0]);){var x="",C=[],S=c,A=u,O,R,N,k,L,F,G,V,ae,ce;switch(g){case"l":c+=b.shift(),u+=b.shift(),x="L",C.push(c,u);break;case"L":c=b.shift(),u=b.shift(),C.push(c,u);break;case"m":var U=b.shift(),J=b.shift();if(c+=U,u+=J,x="M",a.length>2&&a[a.length-1].command==="z"){for(var Q=a.length-2;Q>=0;Q--)if(a[Q].command==="M"){c=a[Q].points[0]+U,u=a[Q].points[1]+J;break}}C.push(c,u),g="l";break;case"M":c=b.shift(),u=b.shift(),x="M",C.push(c,u),g="L";break;case"h":c+=b.shift(),x="L",C.push(c,u);break;case"H":c=b.shift(),x="L",C.push(c,u);break;case"v":u+=b.shift(),x="L",C.push(c,u);break;case"V":u=b.shift(),x="L",C.push(c,u);break;case"C":C.push(b.shift(),b.shift(),b.shift(),b.shift()),c=b.shift(),u=b.shift(),C.push(c,u);break;case"c":C.push(c+b.shift(),u+b.shift(),c+b.shift(),u+b.shift()),c+=b.shift(),u+=b.shift(),x="C",C.push(c,u);break;case"S":R=c,N=u,O=a[a.length-1],O.command==="C"&&(R=c+(c-O.points[2]),N=u+(u-O.points[3])),C.push(R,N,b.shift(),b.shift()),c=b.shift(),u=b.shift(),x="C",C.push(c,u);break;case"s":R=c,N=u,O=a[a.length-1],O.command==="C"&&(R=c+(c-O.points[2]),N=u+(u-O.points[3])),C.push(R,N,c+b.shift(),u+b.shift()),c+=b.shift(),u+=b.shift(),x="C",C.push(c,u);break;case"Q":C.push(b.shift(),b.shift()),c=b.shift(),u=b.shift(),C.push(c,u);break;case"q":C.push(c+b.shift(),u+b.shift()),c+=b.shift(),u+=b.shift(),x="Q",C.push(c,u);break;case"T":R=c,N=u,O=a[a.length-1],O.command==="Q"&&(R=c+(c-O.points[0]),N=u+(u-O.points[1])),c=b.shift(),u=b.shift(),x="Q",C.push(R,N,c,u);break;case"t":R=c,N=u,O=a[a.length-1],O.command==="Q"&&(R=c+(c-O.points[0]),N=u+(u-O.points[1])),c+=b.shift(),u+=b.shift(),x="Q",C.push(R,N,c,u);break;case"A":k=b.shift(),L=b.shift(),F=b.shift(),G=b.shift(),V=b.shift(),ae=c,ce=u,c=b.shift(),u=b.shift(),x="A",C=this.convertEndpointToCenterParameterization(ae,ce,c,u,G,V,k,L,F);break;case"a":k=b.shift(),L=b.shift(),F=b.shift(),G=b.shift(),V=b.shift(),ae=c,ce=u,c+=b.shift(),u+=b.shift(),x="A",C=this.convertEndpointToCenterParameterization(ae,ce,c,u,G,V,k,L,F);break}a.push({command:x||g,points:C,start:{x:S,y:A},pathLength:this.calcLength(S,A,x||g,C)})}(g==="z"||g==="Z")&&a.push({command:"z",points:[],start:void 0,pathLength:0})}return a}static calcLength(t,n,r,s){var o,a,l,c,u=gn;switch(r){case"L":return u.getLineLength(t,n,s[0],s[1]);case"C":return(0,ll.getCubicArcLength)([t,s[0],s[2],s[4]],[n,s[1],s[3],s[5]],1);case"Q":return(0,ll.getQuadraticArcLength)([t,s[0],s[2]],[n,s[1],s[3]],1);case"A":o=0;var d=s[4],f=s[5],h=s[4]+f,g=Math.PI/180;if(Math.abs(d-h)<g&&(g=Math.abs(d-h)),a=u.getPointOnEllipticalArc(s[0],s[1],s[2],s[3],d,0),f<0)for(c=d-g;c>h;c-=g)l=u.getPointOnEllipticalArc(s[0],s[1],s[2],s[3],c,0),o+=u.getLineLength(a.x,a.y,l.x,l.y),a=l;else for(c=d+g;c<h;c+=g)l=u.getPointOnEllipticalArc(s[0],s[1],s[2],s[3],c,0),o+=u.getLineLength(a.x,a.y,l.x,l.y),a=l;return l=u.getPointOnEllipticalArc(s[0],s[1],s[2],s[3],h,0),o+=u.getLineLength(a.x,a.y,l.x,l.y),o}return 0}static convertEndpointToCenterParameterization(t,n,r,s,o,a,l,c,u){var d=u*(Math.PI/180),f=Math.cos(d)*(t-r)/2+Math.sin(d)*(n-s)/2,h=-1*Math.sin(d)*(t-r)/2+Math.cos(d)*(n-s)/2,g=f*f/(l*l)+h*h/(c*c);g>1&&(l*=Math.sqrt(g),c*=Math.sqrt(g));var b=Math.sqrt((l*l*(c*c)-l*l*(h*h)-c*c*(f*f))/(l*l*(h*h)+c*c*(f*f)));o===a&&(b*=-1),isNaN(b)&&(b=0);var y=b*l*h/c,_=b*-c*f/l,w=(t+r)/2+Math.cos(d)*y-Math.sin(d)*_,x=(n+s)/2+Math.sin(d)*y+Math.cos(d)*_,C=function(L){return Math.sqrt(L[0]*L[0]+L[1]*L[1])},S=function(L,F){return(L[0]*F[0]+L[1]*F[1])/(C(L)*C(F))},A=function(L,F){return(L[0]*F[1]<L[1]*F[0]?-1:1)*Math.acos(S(L,F))},O=A([1,0],[(f-y)/l,(h-_)/c]),R=[(f-y)/l,(h-_)/c],N=[(-1*f-y)/l,(-1*h-_)/c],k=A(R,N);return S(R,N)<=-1&&(k=Math.PI),S(R,N)>=1&&(k=0),a===0&&k>0&&(k=k-2*Math.PI),a===1&&k<0&&(k=k+2*Math.PI),[w,x,l,c,O,k,d,a]}}sh.Path=gn,gn.prototype.className="Path",gn.prototype._attrsAffectingSize=["data"],(0,XX._registerNode)(gn),JX.Factory.addGetterSetter(gn,"data"),Object.defineProperty(Ov,"__esModule",{value:!0}),Ov.Arrow=void 0;const oh=oi,ZX=ih,P4=Ot,QX=Gt,T4=sh;class Zo extends ZX.Line{_sceneFunc(t){super._sceneFunc(t);var n=Math.PI*2,r=this.points(),s=r,o=this.tension()!==0&&r.length>4;o&&(s=this.getTensionPoints());var a=this.pointerLength(),l=r.length,c,u;if(o){const h=[s[s.length-4],s[s.length-3],s[s.length-2],s[s.length-1],r[l-2],r[l-1]],g=T4.Path.calcLength(s[s.length-4],s[s.length-3],"C",h),b=T4.Path.getPointOnQuadraticBezier(Math.min(1,1-a/g),h[0],h[1],h[2],h[3],h[4],h[5]);c=r[l-2]-b.x,u=r[l-1]-b.y}else c=r[l-2]-r[l-4],u=r[l-1]-r[l-3];var d=(Math.atan2(u,c)+n)%n,f=this.pointerWidth();this.pointerAtEnding()&&(t.save(),t.beginPath(),t.translate(r[l-2],r[l-1]),t.rotate(d),t.moveTo(0,0),t.lineTo(-a,f/2),t.lineTo(-a,-f/2),t.closePath(),t.restore(),this.__fillStroke(t)),this.pointerAtBeginning()&&(t.save(),t.beginPath(),t.translate(r[0],r[1]),o?(c=(s[0]+s[2])/2-r[0],u=(s[1]+s[3])/2-r[1]):(c=r[2]-r[0],u=r[3]-r[1]),t.rotate((Math.atan2(-u,-c)+n)%n),t.moveTo(0,0),t.lineTo(-a,f/2),t.lineTo(-a,-f/2),t.closePath(),t.restore(),this.__fillStroke(t))}__fillStroke(t){var n=this.dashEnabled();n&&(this.attrs.dashEnabled=!1,t.setLineDash([])),t.fillStrokeShape(this),n&&(this.attrs.dashEnabled=!0)}getSelfRect(){const t=super.getSelfRect(),n=this.pointerWidth()/2;return{x:t.x-n,y:t.y-n,width:t.width+n*2,height:t.height+n*2}}}Ov.Arrow=Zo,Zo.prototype.className="Arrow",(0,QX._registerNode)(Zo),oh.Factory.addGetterSetter(Zo,"pointerLength",10,(0,P4.getNumberValidator)()),oh.Factory.addGetterSetter(Zo,"pointerWidth",10,(0,P4.getNumberValidator)()),oh.Factory.addGetterSetter(Zo,"pointerAtBeginning",!1),oh.Factory.addGetterSetter(Zo,"pointerAtEnding",!0);function O4(e,t){var n,r=1;e==null&&(e=0),t==null&&(t=0);function s(){var o,a=n.length,l,c=0,u=0;for(o=0;o<a;++o)l=n[o],c+=l.x,u+=l.y;for(c=(c/a-e)*r,u=(u/a-t)*r,o=0;o<a;++o)l=n[o],l.x-=c,l.y-=u}return s.initialize=function(o){n=o},s.x=function(o){return arguments.length?(e=+o,s):e},s.y=function(o){return arguments.length?(t=+o,s):t},s.strength=function(o){return arguments.length?(r=+o,s):r},s}function eZ(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return N4(this.cover(t,n),t,n,e)}function N4(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var s,o=e._root,a={data:r},l=e._x0,c=e._y0,u=e._x1,d=e._y1,f,h,g,b,y,_,w,x;if(!o)return e._root=a,e;for(;o.length;)if((y=t>=(f=(l+u)/2))?l=f:u=f,(_=n>=(h=(c+d)/2))?c=h:d=h,s=o,!(o=o[w=_<<1|y]))return s[w]=a,e;if(g=+e._x.call(null,o.data),b=+e._y.call(null,o.data),t===g&&n===b)return a.next=o,s?s[w]=a:e._root=a,e;do s=s?s[w]=new Array(4):e._root=new Array(4),(y=t>=(f=(l+u)/2))?l=f:u=f,(_=n>=(h=(c+d)/2))?c=h:d=h;while((w=_<<1|y)===(x=(b>=h)<<1|g>=f));return s[x]=o,s[w]=a,e}function tZ(e){var t,n,r=e.length,s,o,a=new Array(r),l=new Array(r),c=1/0,u=1/0,d=-1/0,f=-1/0;for(n=0;n<r;++n)isNaN(s=+this._x.call(null,t=e[n]))||isNaN(o=+this._y.call(null,t))||(a[n]=s,l[n]=o,s<c&&(c=s),s>d&&(d=s),o<u&&(u=o),o>f&&(f=o));if(c>d||u>f)return this;for(this.cover(c,u).cover(d,f),n=0;n<r;++n)N4(this,a[n],l[n],e[n]);return this}function nZ(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,s=this._x1,o=this._y1;if(isNaN(n))s=(n=Math.floor(e))+1,o=(r=Math.floor(t))+1;else{for(var a=s-n||1,l=this._root,c,u;n>e||e>=s||r>t||t>=o;)switch(u=(t<r)<<1|e<n,c=new Array(4),c[u]=l,l=c,a*=2,u){case 0:s=n+a,o=r+a;break;case 1:n=s-a,o=r+a;break;case 2:s=n+a,r=o-a;break;case 3:n=s-a,r=o-a;break}this._root&&this._root.length&&(this._root=l)}return this._x0=n,this._y0=r,this._x1=s,this._y1=o,this}function iZ(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function rZ(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function Gn(e,t,n,r,s){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=s}function sZ(e,t,n){var r,s=this._x0,o=this._y0,a,l,c,u,d=this._x1,f=this._y1,h=[],g=this._root,b,y;for(g&&h.push(new Gn(g,s,o,d,f)),n==null?n=1/0:(s=e-n,o=t-n,d=e+n,f=t+n,n*=n);b=h.pop();)if(!(!(g=b.node)||(a=b.x0)>d||(l=b.y0)>f||(c=b.x1)<s||(u=b.y1)<o))if(g.length){var _=(a+c)/2,w=(l+u)/2;h.push(new Gn(g[3],_,w,c,u),new Gn(g[2],a,w,_,u),new Gn(g[1],_,l,c,w),new Gn(g[0],a,l,_,w)),(y=(t>=w)<<1|e>=_)&&(b=h[h.length-1],h[h.length-1]=h[h.length-1-y],h[h.length-1-y]=b)}else{var x=e-+this._x.call(null,g.data),C=t-+this._y.call(null,g.data),S=x*x+C*C;if(S<n){var A=Math.sqrt(n=S);s=e-A,o=t-A,d=e+A,f=t+A,r=g.data}}return r}function oZ(e){if(isNaN(d=+this._x.call(null,e))||isNaN(f=+this._y.call(null,e)))return this;var t,n=this._root,r,s,o,a=this._x0,l=this._y0,c=this._x1,u=this._y1,d,f,h,g,b,y,_,w;if(!n)return this;if(n.length)for(;;){if((b=d>=(h=(a+c)/2))?a=h:c=h,(y=f>=(g=(l+u)/2))?l=g:u=g,t=n,!(n=n[_=y<<1|b]))return this;if(!n.length)break;(t[_+1&3]||t[_+2&3]||t[_+3&3])&&(r=t,w=_)}for(;n.data!==e;)if(s=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,s?(o?s.next=o:delete s.next,this):t?(o?t[_]=o:delete t[_],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(r?r[w]=n:this._root=n),this):(this._root=o,this)}function aZ(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function lZ(){return this._root}function cZ(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function uZ(e){var t=[],n,r=this._root,s,o,a,l,c;for(r&&t.push(new Gn(r,this._x0,this._y0,this._x1,this._y1));n=t.pop();)if(!e(r=n.node,o=n.x0,a=n.y0,l=n.x1,c=n.y1)&&r.length){var u=(o+l)/2,d=(a+c)/2;(s=r[3])&&t.push(new Gn(s,u,d,l,c)),(s=r[2])&&t.push(new Gn(s,o,d,u,c)),(s=r[1])&&t.push(new Gn(s,u,a,l,d)),(s=r[0])&&t.push(new Gn(s,o,a,u,d))}return this}function dZ(e){var t=[],n=[],r;for(this._root&&t.push(new Gn(this._root,this._x0,this._y0,this._x1,this._y1));r=t.pop();){var s=r.node;if(s.length){var o,a=r.x0,l=r.y0,c=r.x1,u=r.y1,d=(a+c)/2,f=(l+u)/2;(o=s[0])&&t.push(new Gn(o,a,l,d,f)),(o=s[1])&&t.push(new Gn(o,d,l,c,f)),(o=s[2])&&t.push(new Gn(o,a,f,d,u)),(o=s[3])&&t.push(new Gn(o,d,f,c,u))}n.push(r)}for(;r=n.pop();)e(r.node,r.x0,r.y0,r.x1,r.y1);return this}function fZ(e){return e[0]}function hZ(e){return arguments.length?(this._x=e,this):this._x}function pZ(e){return e[1]}function gZ(e){return arguments.length?(this._y=e,this):this._y}function Iv(e,t,n){var r=new Rv(t==null?fZ:t,n==null?pZ:n,NaN,NaN,NaN,NaN);return e==null?r:r.addAll(e)}function Rv(e,t,n,r,s,o){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=s,this._y1=o,this._root=void 0}function I4(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var Wn=Iv.prototype=Rv.prototype;Wn.copy=function(){var e=new Rv(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,n,r;if(!t)return e;if(!t.length)return e._root=I4(t),e;for(n=[{source:t,target:e._root=new Array(4)}];t=n.pop();)for(var s=0;s<4;++s)(r=t.source[s])&&(r.length?n.push({source:r,target:t.target[s]=new Array(4)}):t.target[s]=I4(r));return e},Wn.add=eZ,Wn.addAll=tZ,Wn.cover=nZ,Wn.data=iZ,Wn.extent=rZ,Wn.find=sZ,Wn.remove=oZ,Wn.removeAll=aZ,Wn.root=lZ,Wn.size=cZ,Wn.visit=uZ,Wn.visitAfter=dZ,Wn.x=hZ,Wn.y=gZ;function Kn(e){return function(){return e}}function Zs(e){return(e()-.5)*1e-6}function mZ(e){return e.x+e.vx}function vZ(e){return e.y+e.vy}function bZ(e){var t,n,r,s=1,o=1;typeof e!="function"&&(e=Kn(e==null?1:+e));function a(){for(var u,d=t.length,f,h,g,b,y,_,w=0;w<o;++w)for(f=Iv(t,mZ,vZ).visitAfter(l),u=0;u<d;++u)h=t[u],y=n[h.index],_=y*y,g=h.x+h.vx,b=h.y+h.vy,f.visit(x);function x(C,S,A,O,R){var N=C.data,k=C.r,L=y+k;if(N){if(N.index>h.index){var F=g-N.x-N.vx,G=b-N.y-N.vy,V=F*F+G*G;V<L*L&&(F===0&&(F=Zs(r),V+=F*F),G===0&&(G=Zs(r),V+=G*G),V=(L-(V=Math.sqrt(V)))/V*s,h.vx+=(F*=V)*(L=(k*=k)/(_+k)),h.vy+=(G*=V)*L,N.vx-=F*(L=1-L),N.vy-=G*L)}return}return S>g+L||O<g-L||A>b+L||R<b-L}}function l(u){if(u.data)return u.r=n[u.data.index];for(var d=u.r=0;d<4;++d)u[d]&&u[d].r>u.r&&(u.r=u[d].r)}function c(){if(t){var u,d=t.length,f;for(n=new Array(d),u=0;u<d;++u)f=t[u],n[f.index]=+e(f,u,t)}}return a.initialize=function(u,d){t=u,r=d,c()},a.iterations=function(u){return arguments.length?(o=+u,a):o},a.strength=function(u){return arguments.length?(s=+u,a):s},a.radius=function(u){return arguments.length?(e=typeof u=="function"?u:Kn(+u),c(),a):e},a}function yZ(e){return e.index}function R4(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function _Z(e){var t=yZ,n=f,r,s=Kn(30),o,a,l,c,u,d=1;e==null&&(e=[]);function f(_){return 1/Math.min(l[_.source.index],l[_.target.index])}function h(_){for(var w=0,x=e.length;w<d;++w)for(var C=0,S,A,O,R,N,k,L;C<x;++C)S=e[C],A=S.source,O=S.target,R=O.x+O.vx-A.x-A.vx||Zs(u),N=O.y+O.vy-A.y-A.vy||Zs(u),k=Math.sqrt(R*R+N*N),k=(k-o[C])/k*_*r[C],R*=k,N*=k,O.vx-=R*(L=c[C]),O.vy-=N*L,A.vx+=R*(L=1-L),A.vy+=N*L}function g(){if(a){var _,w=a.length,x=e.length,C=new Map(a.map((A,O)=>[t(A,O,a),A])),S;for(_=0,l=new Array(w);_<x;++_)S=e[_],S.index=_,typeof S.source!="object"&&(S.source=R4(C,S.source)),typeof S.target!="object"&&(S.target=R4(C,S.target)),l[S.source.index]=(l[S.source.index]||0)+1,l[S.target.index]=(l[S.target.index]||0)+1;for(_=0,c=new Array(x);_<x;++_)S=e[_],c[_]=l[S.source.index]/(l[S.source.index]+l[S.target.index]);r=new Array(x),b(),o=new Array(x),y()}}function b(){if(a)for(var _=0,w=e.length;_<w;++_)r[_]=+n(e[_],_,e)}function y(){if(a)for(var _=0,w=e.length;_<w;++_)o[_]=+s(e[_],_,e)}return h.initialize=function(_,w){a=_,u=w,g()},h.links=function(_){return arguments.length?(e=_,g(),h):e},h.id=function(_){return arguments.length?(t=_,h):t},h.iterations=function(_){return arguments.length?(d=+_,h):d},h.strength=function(_){return arguments.length?(n=typeof _=="function"?_:Kn(+_),b(),h):n},h.distance=function(_){return arguments.length?(s=typeof _=="function"?_:Kn(+_),y(),h):s},h}var wZ={value:()=>{}};function D4(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new ah(n)}function ah(e){this._=e}function CZ(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",s=n.indexOf(".");if(s>=0&&(r=n.slice(s+1),n=n.slice(0,s)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}ah.prototype=D4.prototype={constructor:ah,on:function(e,t){var n=this._,r=CZ(e+"",n),s,o=-1,a=r.length;if(arguments.length<2){for(;++o<a;)if((s=(e=r[o]).type)&&(s=SZ(n[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<a;)if(s=(e=r[o]).type)n[s]=L4(n[s],e.name,t);else if(t==null)for(s in n)n[s]=L4(n[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new ah(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var n=new Array(s),r=0,s,o;r<s;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],r=0,s=o.length;r<s;++r)o[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],s=0,o=r.length;s<o;++s)r[s].value.apply(t,n)}};function SZ(e,t){for(var n=0,r=e.length,s;n<r;++n)if((s=e[n]).name===t)return s.value}function L4(e,t,n){for(var r=0,s=e.length;r<s;++r)if(e[r].name===t){e[r]=wZ,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var cl=0,ru=0,su=0,k4=1e3,lh,ou,ch=0,Qo=0,uh=0,au=typeof performance=="object"&&performance.now?performance:Date,M4=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function F4(){return Qo||(M4(EZ),Qo=au.now()+uh)}function EZ(){Qo=0}function Dv(){this._call=this._time=this._next=null}Dv.prototype=B4.prototype={constructor:Dv,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?F4():+n)+(t==null?0:+t),!this._next&&ou!==this&&(ou?ou._next=this:lh=this,ou=this),this._call=e,this._time=n,Lv()},stop:function(){this._call&&(this._call=null,this._time=1/0,Lv())}};function B4(e,t,n){var r=new Dv;return r.restart(e,t,n),r}function xZ(){F4(),++cl;for(var e=lh,t;e;)(t=Qo-e._time)>=0&&e._call.call(void 0,t),e=e._next;--cl}function j4(){Qo=(ch=au.now())+uh,cl=ru=0;try{xZ()}finally{cl=0,PZ(),Qo=0}}function AZ(){var e=au.now(),t=e-ch;t>k4&&(uh-=t,ch=e)}function PZ(){for(var e,t=lh,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:lh=n);ou=e,Lv(r)}function Lv(e){if(!cl){ru&&(ru=clearTimeout(ru));var t=e-Qo;t>24?(e<1/0&&(ru=setTimeout(j4,e-au.now()-uh)),su&&(su=clearInterval(su))):(su||(ch=au.now(),su=setInterval(AZ,k4)),cl=1,M4(j4))}}const TZ=1664525,OZ=1013904223,U4=4294967296;function NZ(){let e=1;return()=>(e=(TZ*e+OZ)%U4)/U4}function IZ(e){return e.x}function RZ(e){return e.y}var DZ=10,LZ=Math.PI*(3-Math.sqrt(5));function kZ(e){var t,n=1,r=.001,s=1-Math.pow(r,1/300),o=0,a=.6,l=new Map,c=B4(f),u=D4("tick","end"),d=NZ();e==null&&(e=[]);function f(){h(),u.call("tick",t),n<r&&(c.stop(),u.call("end",t))}function h(y){var _,w=e.length,x;y===void 0&&(y=1);for(var C=0;C<y;++C)for(n+=(o-n)*s,l.forEach(function(S){S(n)}),_=0;_<w;++_)x=e[_],x.fx==null?(isNaN(x.vx)&&(x.vx=0),x.x+=x.vx*=a):(x.x=x.fx,x.vx=0),x.fy==null?(isNaN(x.vy)&&(x.vy=0),x.y+=x.vy*=a):(x.y=x.fy,x.vy=0);return t}function g(){for(var y=0,_=e.length,w;y<_;++y){if(w=e[y],w.index=y,w.fx!=null&&(w.x=w.fx),w.fy!=null&&(w.y=w.fy),isNaN(w.x)||isNaN(w.y)){var x=DZ*Math.sqrt(.5+y),C=y*LZ;w.x=x*Math.cos(C),w.y=x*Math.sin(C)}(isNaN(w.vx)||isNaN(w.vy))&&(w.vx=w.vy=0)}}function b(y){return y.initialize&&y.initialize(e,d),y}return g(),t={tick:h,restart:function(){return c.restart(f),t},stop:function(){return c.stop(),t},nodes:function(y){return arguments.length?(e=y,g(),l.forEach(b),t):e},alpha:function(y){return arguments.length?(n=+y,t):n},alphaMin:function(y){return arguments.length?(r=+y,t):r},alphaDecay:function(y){return arguments.length?(s=+y,t):+s},alphaTarget:function(y){return arguments.length?(o=+y,t):o},velocityDecay:function(y){return arguments.length?(a=1-y,t):1-a},randomSource:function(y){return arguments.length?(d=y,l.forEach(b),t):d},force:function(y,_){return arguments.length>1?(_==null?l.delete(y):l.set(y,b(_)),t):l.get(y)},find:function(y,_,w){var x=0,C=e.length,S,A,O,R,N;for(w==null?w=1/0:w*=w,x=0;x<C;++x)R=e[x],S=y-R.x,A=_-R.y,O=S*S+A*A,O<w&&(N=R,w=O);return N},on:function(y,_){return arguments.length>1?(u.on(y,_),t):u.on(y)}}}function MZ(){var e,t,n,r,s=Kn(-30),o,a=1,l=1/0,c=.81;function u(g){var b,y=e.length,_=Iv(e,IZ,RZ).visitAfter(f);for(r=g,b=0;b<y;++b)t=e[b],_.visit(h)}function d(){if(e){var g,b=e.length,y;for(o=new Array(b),g=0;g<b;++g)y=e[g],o[y.index]=+s(y,g,e)}}function f(g){var b=0,y,_,w=0,x,C,S;if(g.length){for(x=C=S=0;S<4;++S)(y=g[S])&&(_=Math.abs(y.value))&&(b+=y.value,w+=_,x+=_*y.x,C+=_*y.y);g.x=x/w,g.y=C/w}else{y=g,y.x=y.data.x,y.y=y.data.y;do b+=o[y.data.index];while(y=y.next)}g.value=b}function h(g,b,y,_){if(!g.value)return!0;var w=g.x-t.x,x=g.y-t.y,C=_-b,S=w*w+x*x;if(C*C/c<S)return S<l&&(w===0&&(w=Zs(n),S+=w*w),x===0&&(x=Zs(n),S+=x*x),S<a&&(S=Math.sqrt(a*S)),t.vx+=w*g.value*r/S,t.vy+=x*g.value*r/S),!0;if(g.length||S>=l)return;(g.data!==t||g.next)&&(w===0&&(w=Zs(n),S+=w*w),x===0&&(x=Zs(n),S+=x*x),S<a&&(S=Math.sqrt(a*S)));do g.data!==t&&(C=o[g.data.index]*r/S,t.vx+=w*C,t.vy+=x*C);while(g=g.next)}return u.initialize=function(g,b){e=g,n=b,d()},u.strength=function(g){return arguments.length?(s=typeof g=="function"?g:Kn(+g),d(),u):s},u.distanceMin=function(g){return arguments.length?(a=g*g,u):Math.sqrt(a)},u.distanceMax=function(g){return arguments.length?(l=g*g,u):Math.sqrt(l)},u.theta=function(g){return arguments.length?(c=g*g,u):Math.sqrt(c)},u}function FZ(e){var t=Kn(.1),n,r,s;typeof e!="function"&&(e=Kn(e==null?0:+e));function o(l){n.length!==s.length&&a();for(var c=0,u=n.length,d;c<u;++c)d=n[c],d.vx,d.vx+=(s[c]-d.x)*r[c]*l}function a(){if(n){var l,c=n.length;for(r=new Array(c),s=new Array(c),l=0;l<c;++l)r[l]=isNaN(s[l]=+e(n[l],l,n))?0:+t(n[l],l,n)}}return o.initialize=function(l){n=l,a()},o.strength=function(l){return arguments.length?(t=typeof l=="function"?l:Kn(+l),a(),o):t},o.x=function(l){return arguments.length?(e=typeof l=="function"?l:Kn(+l),a(),o):e},o}function BZ(e){var t=Kn(.1),n,r,s;typeof e!="function"&&(e=Kn(e==null?0:+e));function o(l){n.length!==s.length&&a();for(var c=0,u=n.length,d;c<u;++c)d=n[c],d.vy+=(s[c]-d.y)*r[c]*l}function a(){if(n){var l,c=n.length;for(r=new Array(c),s=new Array(c),l=0;l<c;++l)r[l]=isNaN(s[l]=+e(n[l],l,n))?0:+t(n[l],l,n)}}return o.initialize=function(l){n=l,a()},o.strength=function(l){return arguments.length?(t=typeof l=="function"?l:Kn(+l),a(),o):t},o.y=function(l){return arguments.length?(e=typeof l=="function"?l:Kn(+l),a(),o):e},o}function jZ(e,t,n){return t=hh(t),G4(e,$4()?Reflect.construct(t,n||[],hh(e).constructor):t.apply(e,n))}function $4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return($4=function(){return!!e})()}function V4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function lu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?V4(Object(n),!0).forEach(function(r){vs(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sr(){sr=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,s=Object.defineProperty||function(U,J,Q){U[J]=Q.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(U,J,Q){return Object.defineProperty(U,J,{value:Q,enumerable:!0,configurable:!0,writable:!0}),U[J]}try{u({},"")}catch(U){u=function(J,Q,X){return J[Q]=X}}function d(U,J,Q,X){var B=J&&J.prototype instanceof w?J:w,_e=Object.create(B.prototype),he=new ae(X||[]);return s(_e,"_invoke",{value:L(U,Q,he)}),_e}function f(U,J,Q){try{return{type:"normal",arg:U.call(J,Q)}}catch(X){return{type:"throw",arg:X}}}t.wrap=d;var h="suspendedStart",g="suspendedYield",b="executing",y="completed",_={};function w(){}function x(){}function C(){}var S={};u(S,a,function(){return this});var A=Object.getPrototypeOf,O=A&&A(A(ce([])));O&&O!==n&&r.call(O,a)&&(S=O);var R=C.prototype=w.prototype=Object.create(S);function N(U){["next","throw","return"].forEach(function(J){u(U,J,function(Q){return this._invoke(J,Q)})})}function k(U,J){function Q(B,_e,he,ie){var oe=f(U[B],U,_e);if(oe.type!=="throw"){var Ce=oe.arg,me=Ce.value;return me&&typeof me=="object"&&r.call(me,"__await")?J.resolve(me.__await).then(function(q){Q("next",q,he,ie)},function(q){Q("throw",q,he,ie)}):J.resolve(me).then(function(q){Ce.value=q,he(Ce)},function(q){return Q("throw",q,he,ie)})}ie(oe.arg)}var X;s(this,"_invoke",{value:function(B,_e){function he(){return new J(function(ie,oe){Q(B,_e,ie,oe)})}return X=X?X.then(he,he):he()}})}function L(U,J,Q){var X=h;return function(B,_e){if(X===b)throw new Error("Generator is already running");if(X===y){if(B==="throw")throw _e;return{value:e,done:!0}}for(Q.method=B,Q.arg=_e;;){var he=Q.delegate;if(he){var ie=F(he,Q);if(ie){if(ie===_)continue;return ie}}if(Q.method==="next")Q.sent=Q._sent=Q.arg;else if(Q.method==="throw"){if(X===h)throw X=y,Q.arg;Q.dispatchException(Q.arg)}else Q.method==="return"&&Q.abrupt("return",Q.arg);X=b;var oe=f(U,J,Q);if(oe.type==="normal"){if(X=Q.done?y:g,oe.arg===_)continue;return{value:oe.arg,done:Q.done}}oe.type==="throw"&&(X=y,Q.method="throw",Q.arg=oe.arg)}}}function F(U,J){var Q=J.method,X=U.iterator[Q];if(X===e)return J.delegate=null,Q==="throw"&&U.iterator.return&&(J.method="return",J.arg=e,F(U,J),J.method==="throw")||Q!=="return"&&(J.method="throw",J.arg=new TypeError("The iterator does not provide a '"+Q+"' method")),_;var B=f(X,U.iterator,J.arg);if(B.type==="throw")return J.method="throw",J.arg=B.arg,J.delegate=null,_;var _e=B.arg;return _e?_e.done?(J[U.resultName]=_e.value,J.next=U.nextLoc,J.method!=="return"&&(J.method="next",J.arg=e),J.delegate=null,_):_e:(J.method="throw",J.arg=new TypeError("iterator result is not an object"),J.delegate=null,_)}function G(U){var J={tryLoc:U[0]};1 in U&&(J.catchLoc=U[1]),2 in U&&(J.finallyLoc=U[2],J.afterLoc=U[3]),this.tryEntries.push(J)}function V(U){var J=U.completion||{};J.type="normal",delete J.arg,U.completion=J}function ae(U){this.tryEntries=[{tryLoc:"root"}],U.forEach(G,this),this.reset(!0)}function ce(U){if(U||U===""){var J=U[a];if(J)return J.call(U);if(typeof U.next=="function")return U;if(!isNaN(U.length)){var Q=-1,X=function B(){for(;++Q<U.length;)if(r.call(U,Q))return B.value=U[Q],B.done=!1,B;return B.value=e,B.done=!0,B};return X.next=X}}throw new TypeError(typeof U+" is not iterable")}return x.prototype=C,s(R,"constructor",{value:C,configurable:!0}),s(C,"constructor",{value:x,configurable:!0}),x.displayName=u(C,c,"GeneratorFunction"),t.isGeneratorFunction=function(U){var J=typeof U=="function"&&U.constructor;return!!J&&(J===x||(J.displayName||J.name)==="GeneratorFunction")},t.mark=function(U){return Object.setPrototypeOf?Object.setPrototypeOf(U,C):(U.__proto__=C,u(U,c,"GeneratorFunction")),U.prototype=Object.create(R),U},t.awrap=function(U){return{__await:U}},N(k.prototype),u(k.prototype,l,function(){return this}),t.AsyncIterator=k,t.async=function(U,J,Q,X,B){B===void 0&&(B=Promise);var _e=new k(d(U,J,Q,X),B);return t.isGeneratorFunction(J)?_e:_e.next().then(function(he){return he.done?he.value:_e.next()})},N(R),u(R,c,"Generator"),u(R,a,function(){return this}),u(R,"toString",function(){return"[object Generator]"}),t.keys=function(U){var J=Object(U),Q=[];for(var X in J)Q.push(X);return Q.reverse(),function B(){for(;Q.length;){var _e=Q.pop();if(_e in J)return B.value=_e,B.done=!1,B}return B.done=!0,B}},t.values=ce,ae.prototype={constructor:ae,reset:function(U){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(V),!U)for(var J in this)J.charAt(0)==="t"&&r.call(this,J)&&!isNaN(+J.slice(1))&&(this[J]=e)},stop:function(){this.done=!0;var U=this.tryEntries[0].completion;if(U.type==="throw")throw U.arg;return this.rval},dispatchException:function(U){if(this.done)throw U;var J=this;function Q(oe,Ce){return _e.type="throw",_e.arg=U,J.next=oe,Ce&&(J.method="next",J.arg=e),!!Ce}for(var X=this.tryEntries.length-1;X>=0;--X){var B=this.tryEntries[X],_e=B.completion;if(B.tryLoc==="root")return Q("end");if(B.tryLoc<=this.prev){var he=r.call(B,"catchLoc"),ie=r.call(B,"finallyLoc");if(he&&ie){if(this.prev<B.catchLoc)return Q(B.catchLoc,!0);if(this.prev<B.finallyLoc)return Q(B.finallyLoc)}else if(he){if(this.prev<B.catchLoc)return Q(B.catchLoc,!0)}else{if(!ie)throw new Error("try statement without catch or finally");if(this.prev<B.finallyLoc)return Q(B.finallyLoc)}}}},abrupt:function(U,J){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var X=this.tryEntries[Q];if(X.tryLoc<=this.prev&&r.call(X,"finallyLoc")&&this.prev<X.finallyLoc){var B=X;break}}B&&(U==="break"||U==="continue")&&B.tryLoc<=J&&J<=B.finallyLoc&&(B=null);var _e=B?B.completion:{};return _e.type=U,_e.arg=J,B?(this.method="next",this.next=B.finallyLoc,_):this.complete(_e)},complete:function(U,J){if(U.type==="throw")throw U.arg;return U.type==="break"||U.type==="continue"?this.next=U.arg:U.type==="return"?(this.rval=this.arg=U.arg,this.method="return",this.next="end"):U.type==="normal"&&J&&(this.next=J),_},finish:function(U){for(var J=this.tryEntries.length-1;J>=0;--J){var Q=this.tryEntries[J];if(Q.finallyLoc===U)return this.complete(Q.completion,Q.afterLoc),V(Q),_}},catch:function(U){for(var J=this.tryEntries.length-1;J>=0;--J){var Q=this.tryEntries[J];if(Q.tryLoc===U){var X=Q.completion;if(X.type==="throw"){var B=X.arg;V(Q)}return B}}throw new Error("illegal catch attempt")},delegateYield:function(U,J,Q){return this.delegate={iterator:ce(U),resultName:J,nextLoc:Q},this.method==="next"&&(this.arg=e),_}},t}function z4(e){var t=function(n,r){if(typeof n!="object"||!n)return n;var s=n[Symbol.toPrimitive];if(s!==void 0){var o=s.call(n,r||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}(e,"string");return typeof t=="symbol"?t:String(t)}function q4(e,t,n,r,s,o,a){try{var l=e[o](a),c=l.value}catch(u){return void n(u)}l.done?t(c):Promise.resolve(c).then(r,s)}function cu(e){return function(){var t=this,n=arguments;return new Promise(function(r,s){var o=e.apply(t,n);function a(c){q4(o,r,s,a,l,"next",c)}function l(c){q4(o,r,s,a,l,"throw",c)}a(void 0)})}}function dh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,z4(r.key),r)}}function fh(e,t,n){return t&&H4(e.prototype,t),n&&H4(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function vs(e,t,n){return(t=z4(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hh(e){return hh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},hh(e)}function kv(e,t){return kv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},kv(e,t)}function uu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G4(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uu(e)}function UZ(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,r){var s=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var o,a,l,c,u=[],d=!0,f=!1;try{if(l=(s=s.call(n)).next,r===0){if(Object(s)!==s)return;d=!1}else for(;!(d=(o=l.call(s)).done)&&(u.push(o.value),u.length!==r);d=!0);}catch(h){f=!0,a=h}finally{try{if(!d&&s.return!=null&&(c=s.return(),Object(c)!==c))return}finally{if(f)throw a}}return u}}(e,t)||W4(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
149
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function W4(e,t){if(e){if(typeof e=="string")return K4(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K4(e,t):void 0}}function K4(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mv(e,t){var n=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=W4(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,s=function(){};return{s,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
150
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){l=!0,o=c},f:function(){try{a||n.return==null||n.return()}finally{if(l)throw o}}}}function ph(e,t,n){return Y4(e,t),X4(n,"get"),function(r,s){return s.get?s.get.call(r):s.value}(e,n)}function J4(e,t,n,r){return Y4(e,t),X4(n,"set"),function(s,o,a){if(o.set)o.set.call(s,a);else{if(!o.writable)throw new TypeError("attempted to set read only private field");o.value=a}}(e,n,r),r}function Y4(e,t){if(e!==t)throw new TypeError("Private static access of wrong provenance")}function X4(e,t){if(e===void 0)throw new TypeError("attempted to "+t+" private static field before its declaration")}function $Z(e){var t=function(n,r){if(typeof n!="object"||!n)return n;var s=n[Symbol.toPrimitive];if(s!==void 0){var o=s.call(n,"string");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(e);return typeof t=="symbol"?t:String(t)}function VZ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$Z(r.key),r)}}function zZ(e,t){return function(n){if(Array.isArray(n))return n}(e)||function(n,r){var s=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(s!=null){var o,a,l,c,u=[],d=!0,f=!1;try{if(l=(s=s.call(n)).next,r===0){if(Object(s)!==s)return;d=!1}else for(;!(d=(o=l.call(s)).done)&&(u.push(o.value),u.length!==r);d=!0);}catch(h){f=!0,a=h}finally{try{if(!d&&s.return!=null&&(c=s.return(),Object(c)!==c))return}finally{if(f)throw a}}return u}}(e,t)||function(n,r){if(n){if(typeof n=="string")return Z4(n,r);var s=Object.prototype.toString.call(n).slice(8,-1);return s==="Object"&&n.constructor&&(s=n.constructor.name),s==="Map"||s==="Set"?Array.from(n):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?Z4(n,r):void 0}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
151
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Z4(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var du=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},en=function(e){try{return!!e()}catch(t){return!0}},On=!en(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),gh=!en(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),Q4=gh,e5=Function.prototype,Fv=e5.call,qZ=Q4&&e5.bind.bind(Fv,Fv),Yt=Q4?qZ:function(e){return function(){return Fv.apply(e,arguments)}},fu=function(e){return e==null},HZ=fu,GZ=TypeError,mh=function(e){if(HZ(e))throw new GZ("Can't call method on "+e);return e},WZ=mh,KZ=Object,ea=function(e){return KZ(WZ(e))},JZ=ea,YZ=Yt({}.hasOwnProperty),gi=Object.hasOwn||function(e,t){return YZ(JZ(e),t)},Bv=On,XZ=gi,t5=Function.prototype,ZZ=Bv&&Object.getOwnPropertyDescriptor,jv=XZ(t5,"name"),hu={EXISTS:jv,PROPER:jv&&function(){}.name==="something",CONFIGURABLE:jv&&(!Bv||Bv&&ZZ(t5,"name").configurable)},n5={exports:{}},Uv=typeof document=="object"&&document.all,sn=Uv===void 0&&Uv!==void 0?function(e){return typeof e=="function"||e===Uv}:function(e){return typeof e=="function"},pu=function(e){return e&&e.Math===Math&&e},tn=pu(typeof globalThis=="object"&&globalThis)||pu(typeof window=="object"&&window)||pu(typeof self=="object"&&self)||pu(typeof du=="object"&&du)||pu(typeof du=="object"&&du)||function(){return this}()||Function("return this")(),i5=tn,QZ=Object.defineProperty,$v=function(e,t){try{QZ(i5,e,{value:t,configurable:!0,writable:!0})}catch(n){i5[e]=t}return t},eQ=$v,r5="__core-js_shared__",Vv=tn[r5]||eQ(r5,{}),tQ=sn,zv=Vv,nQ=Yt(Function.toString);tQ(zv.inspectSource)||(zv.inspectSource=function(e){return nQ(e)});var Qs,vh,qv=zv.inspectSource,iQ=sn,s5=tn.WeakMap,rQ=iQ(s5)&&/native code/.test(String(s5)),sQ=sn,ki=function(e){return typeof e=="object"?e!==null:sQ(e)},Lr={},o5=ki,Hv=tn.document,oQ=o5(Hv)&&o5(Hv.createElement),bh=function(e){return oQ?Hv.createElement(e):{}},aQ=bh,a5=!On&&!en(function(){return Object.defineProperty(aQ("div"),"a",{get:function(){return 7}}).a!==7}),l5=On&&en(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),lQ=ki,cQ=String,uQ=TypeError,jn=function(e){if(lQ(e))return e;throw new uQ(cQ(e)+" is not an object")},dQ=gh,yh=Function.prototype.call,Nn=dQ?yh.bind(yh):function(){return yh.apply(yh,arguments)},Gv=tn,fQ=sn,ta=function(e,t){return arguments.length<2?(n=Gv[e],fQ(n)?n:void 0):Gv[e]&&Gv[e][t];var n},_h=Yt({}.isPrototypeOf),wh=typeof navigator!="undefined"&&String(navigator.userAgent)||"",c5=tn,Wv=wh,u5=c5.process,d5=c5.Deno,f5=u5&&u5.versions||d5&&d5.version,h5=f5&&f5.v8;h5&&(vh=(Qs=h5.split("."))[0]>0&&Qs[0]<4?1:+(Qs[0]+Qs[1])),!vh&&Wv&&(!(Qs=Wv.match(/Edge\/(\d+)/))||Qs[1]>=74)&&(Qs=Wv.match(/Chrome\/(\d+)/))&&(vh=+Qs[1]);var Ch=vh,p5=Ch,hQ=en,pQ=tn.String,g5=!!Object.getOwnPropertySymbols&&!hQ(function(){var e=Symbol("symbol detection");return!pQ(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&p5&&p5<41}),m5=g5&&!Symbol.sham&&typeof Symbol.iterator=="symbol",gQ=ta,mQ=sn,vQ=_h,bQ=Object,v5=m5?function(e){return typeof e=="symbol"}:function(e){var t=gQ("Symbol");return mQ(t)&&vQ(t.prototype,bQ(e))},yQ=String,Sh=function(e){try{return yQ(e)}catch(t){return"Object"}},_Q=sn,wQ=Sh,CQ=TypeError,eo=function(e){if(_Q(e))return e;throw new CQ(wQ(e)+" is not a function")},SQ=eo,EQ=fu,Eh=function(e,t){var n=e[t];return EQ(n)?void 0:SQ(n)},Kv=Nn,Jv=sn,Yv=ki,xQ=TypeError,b5={exports:{}},y5=Vv;(b5.exports=function(e,t){return y5[e]||(y5[e]=t!==void 0?t:{})})("versions",[]).push({version:"3.35.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Xv=b5.exports,AQ=Yt,PQ=0,TQ=Math.random(),OQ=AQ(1 .toString),_5=function(e){return"Symbol("+(e===void 0?"":e)+")_"+OQ(++PQ+TQ,36)},NQ=Xv,w5=gi,IQ=_5,RQ=g5,DQ=m5,ul=tn.Symbol,Zv=NQ("wks"),LQ=DQ?ul.for||ul:ul&&ul.withoutSetter||IQ,un=function(e){return w5(Zv,e)||(Zv[e]=RQ&&w5(ul,e)?ul[e]:LQ("Symbol."+e)),Zv[e]},kQ=Nn,C5=ki,S5=v5,MQ=Eh,FQ=TypeError,BQ=un("toPrimitive"),jQ=function(e,t){if(!C5(e)||S5(e))return e;var n,r=MQ(e,BQ);if(r){if(t===void 0&&(t="default"),n=kQ(r,e,t),!C5(n)||S5(n))return n;throw new FQ("Can't convert object to primitive value")}return t===void 0&&(t="number"),function(s,o){var a,l;if(o==="string"&&Jv(a=s.toString)&&!Yv(l=Kv(a,s))||Jv(a=s.valueOf)&&!Yv(l=Kv(a,s))||o!=="string"&&Jv(a=s.toString)&&!Yv(l=Kv(a,s)))return l;throw new xQ("Can't convert object to primitive value")}(e,t)},UQ=v5,Qv=function(e){var t=jQ(e,"string");return UQ(t)?t:t+""},$Q=On,VQ=a5,zQ=l5,xh=jn,E5=Qv,qQ=TypeError,e1=Object.defineProperty,HQ=Object.getOwnPropertyDescriptor,t1="enumerable",n1="configurable",i1="writable";Lr.f=$Q?zQ?function(e,t,n){if(xh(e),t=E5(t),xh(n),typeof e=="function"&&t==="prototype"&&"value"in n&&i1 in n&&!n[i1]){var r=HQ(e,t);r&&r[i1]&&(e[t]=n.value,n={configurable:n1 in n?n[n1]:r[n1],enumerable:t1 in n?n[t1]:r[t1],writable:!1})}return e1(e,t,n)}:e1:function(e,t,n){if(xh(e),t=E5(t),xh(n),VQ)try{return e1(e,t,n)}catch(r){}if("get"in n||"set"in n)throw new qQ("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Ah,gu,Ph,mu=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},GQ=Lr,WQ=mu,vu=On?function(e,t,n){return GQ.f(e,t,WQ(1,n))}:function(e,t,n){return e[t]=n,e},KQ=_5,x5=Xv("keys"),r1=function(e){return x5[e]||(x5[e]=KQ(e))},s1={},JQ=rQ,A5=tn,YQ=ki,XQ=vu,o1=gi,a1=Vv,ZQ=r1,QQ=s1,P5="Object already initialized",l1=A5.TypeError,eee=A5.WeakMap;if(JQ||a1.state){var kr=a1.state||(a1.state=new eee);kr.get=kr.get,kr.has=kr.has,kr.set=kr.set,Ah=function(e,t){if(kr.has(e))throw new l1(P5);return t.facade=e,kr.set(e,t),t},gu=function(e){return kr.get(e)||{}},Ph=function(e){return kr.has(e)}}else{var dl=ZQ("state");QQ[dl]=!0,Ah=function(e,t){if(o1(e,dl))throw new l1(P5);return t.facade=e,XQ(e,dl,t),t},gu=function(e){return o1(e,dl)?e[dl]:{}},Ph=function(e){return o1(e,dl)}}var to={set:Ah,get:gu,has:Ph,enforce:function(e){return Ph(e)?gu(e):Ah(e,{})},getterFor:function(e){return function(t){var n;if(!YQ(t)||(n=gu(t)).type!==e)throw new l1("Incompatible receiver, "+e+" required");return n}}},c1=Yt,tee=en,nee=sn,Th=gi,u1=On,iee=hu.CONFIGURABLE,ree=qv,see=to.enforce,oee=to.get,T5=String,Oh=Object.defineProperty,aee=c1("".slice),lee=c1("".replace),cee=c1([].join),uee=u1&&!tee(function(){return Oh(function(){},"length",{value:8}).length!==8}),dee=String(String).split("String"),fee=n5.exports=function(e,t,n){aee(T5(t),0,7)==="Symbol("&&(t="["+lee(T5(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!Th(e,"name")||iee&&e.name!==t)&&(u1?Oh(e,"name",{value:t,configurable:!0}):e.name=t),uee&&n&&Th(n,"arity")&&e.length!==n.arity&&Oh(e,"length",{value:n.arity});try{n&&Th(n,"constructor")&&n.constructor?u1&&Oh(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(s){}var r=see(e);return Th(r,"source")||(r.source=cee(dee,typeof t=="string"?t:"")),e};Function.prototype.toString=fee(function(){return nee(this)&&oee(this).source||ree(this)},"toString");var O5=n5.exports,N5=O5,hee=Lr,Nh=function(e,t,n){return n.get&&N5(n.get,t,{getter:!0}),n.set&&N5(n.set,t,{setter:!0}),hee.f(e,t,n)},pee=On,gee=hu.EXISTS,I5=Yt,mee=Nh,R5=Function.prototype,vee=I5(R5.toString),D5=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,bee=I5(D5.exec);pee&&!gee&&mee(R5,"name",{configurable:!0,get:function(){try{return bee(D5,vee(this))[1]}catch(e){return""}}});var d1={},Ih={},L5={}.propertyIsEnumerable,k5=Object.getOwnPropertyDescriptor,yee=k5&&!L5.call({1:2},1);Ih.f=yee?function(e){var t=k5(this,e);return!!t&&t.enumerable}:L5;var M5=Yt,_ee=M5({}.toString),wee=M5("".slice),fl=function(e){return wee(_ee(e),8,-1)},Cee=en,See=fl,f1=Object,Eee=Yt("".split),h1=Cee(function(){return!f1("z").propertyIsEnumerable(0)})?function(e){return See(e)==="String"?Eee(e,""):f1(e)}:f1,xee=h1,Aee=mh,hl=function(e){return xee(Aee(e))},Pee=On,Tee=Nn,Oee=Ih,Nee=mu,Iee=hl,Ree=Qv,Dee=gi,Lee=a5,F5=Object.getOwnPropertyDescriptor;d1.f=Pee?F5:function(e,t){if(e=Iee(e),t=Ree(t),Lee)try{return F5(e,t)}catch(n){}if(Dee(e,t))return Nee(!Tee(Oee.f,e,t),e[t])};var kee=sn,Mee=Lr,Fee=O5,Bee=$v,or=function(e,t,n,r){r||(r={});var s=r.enumerable,o=r.name!==void 0?r.name:t;if(kee(n)&&Fee(n,o,r),r.global)s?e[t]=n:Bee(t,n);else{try{r.unsafe?e[t]&&(s=!0):delete e[t]}catch(a){}s?e[t]=n:Mee.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},B5={},jee=Math.ceil,Uee=Math.floor,$ee=Math.trunc||function(e){var t=+e;return(t>0?Uee:jee)(t)},Rh=function(e){var t=+e;return t!=t||t===0?0:$ee(t)},Vee=Rh,zee=Math.max,qee=Math.min,Hee=Rh,Gee=Math.min,j5=function(e){return e>0?Gee(Hee(e),9007199254740991):0},Wee=j5,bu=function(e){return Wee(e.length)},Kee=hl,Jee=bu,U5=function(e){return function(t,n,r){var s,o=Kee(t),a=Jee(o),l=function(c,u){var d=Vee(c);return d<0?zee(d+u,0):qee(d,u)}(r,a);if(e&&n!=n){for(;a>l;)if((s=o[l++])!=s)return!0}else for(;a>l;l++)if((e||l in o)&&o[l]===n)return e||l||0;return!e&&-1}},Yee={includes:U5(!0),indexOf:U5(!1)},p1=gi,Xee=hl,Zee=Yee.indexOf,Qee=s1,$5=Yt([].push),V5=function(e,t){var n,r=Xee(e),s=0,o=[];for(n in r)!p1(Qee,n)&&p1(r,n)&&$5(o,n);for(;t.length>s;)p1(r,n=t[s++])&&(~Zee(o,n)||$5(o,n));return o},g1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ete=V5,tte=g1.concat("length","prototype");B5.f=Object.getOwnPropertyNames||function(e){return ete(e,tte)};var m1={};m1.f=Object.getOwnPropertySymbols;var nte=ta,ite=B5,rte=m1,ste=jn,ote=Yt([].concat),ate=nte("Reflect","ownKeys")||function(e){var t=ite.f(ste(e)),n=rte.f;return n?ote(t,n(e)):t},z5=gi,lte=ate,cte=d1,ute=Lr,dte=en,fte=sn,hte=/#|\.prototype\./,yu=function(e,t){var n=gte[pte(e)];return n===vte||n!==mte&&(fte(t)?dte(t):!!t)},pte=yu.normalize=function(e){return String(e).replace(hte,".").toLowerCase()},gte=yu.data={},mte=yu.NATIVE="N",vte=yu.POLYFILL="P",q5=yu,v1=tn,bte=d1.f,yte=vu,_te=or,wte=$v,Cte=function(e,t,n){for(var r=lte(t),s=ute.f,o=cte.f,a=0;a<r.length;a++){var l=r[a];z5(e,l)||n&&z5(n,l)||s(e,l,o(t,l))}},Ste=q5,mi=function(e,t){var n,r,s,o,a,l=e.target,c=e.global,u=e.stat;if(n=c?v1:u?v1[l]||wte(l,{}):(v1[l]||{}).prototype)for(r in t){if(o=t[r],s=e.dontCallGetSet?(a=bte(n,r))&&a.value:n[r],!Ste(c?r:l+(u?".":"#")+r,e.forced)&&s!==void 0){if(typeof o==typeof s)continue;Cte(o,s)}(e.sham||s&&s.sham)&&yte(o,"sham",!0),_te(n,r,o,e)}},H5={};H5[un("toStringTag")]="z";var b1=String(H5)==="[object z]",Ete=b1,xte=sn,Dh=fl,Ate=un("toStringTag"),Pte=Object,Tte=Dh(function(){return arguments}())==="Arguments",_u=Ete?Dh:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(s,o){try{return s[o]}catch(a){}}(t=Pte(e),Ate))=="string"?n:Tte?Dh(t):(r=Dh(t))==="Object"&&xte(t.callee)?"Arguments":r},Ote=_u,Nte=String,na=function(e){if(Ote(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return Nte(e)},Ite=jn,G5=function(){var e=Ite(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},y1=en,_1=tn.RegExp,w1=y1(function(){var e=_1("a","y");return e.lastIndex=2,e.exec("abcd")!==null}),Rte=w1||y1(function(){return!_1("a","y").sticky}),Dte={BROKEN_CARET:w1||y1(function(){var e=_1("^r","gy");return e.lastIndex=2,e.exec("str")!==null}),MISSED_STICKY:Rte,UNSUPPORTED_Y:w1},W5={},Lte=V5,kte=g1,C1=Object.keys||function(e){return Lte(e,kte)},Mte=On,Fte=l5,Bte=Lr,jte=jn,Ute=hl,$te=C1;W5.f=Mte&&!Fte?Object.defineProperties:function(e,t){jte(e);for(var n,r=Ute(t),s=$te(t),o=s.length,a=0;o>a;)Bte.f(e,n=s[a++],r[n]);return e};var Lh,K5=ta("document","documentElement"),Vte=jn,zte=W5,J5=g1,qte=s1,Hte=K5,Gte=bh,S1="prototype",E1="script",Y5=r1("IE_PROTO"),x1=function(){},X5=function(e){return"<"+E1+">"+e+"</"+E1+">"},Z5=function(e){e.write(X5("")),e.close();var t=e.parentWindow.Object;return e=null,t},kh=function(){try{Lh=new ActiveXObject("htmlfile")}catch(s){}var e,t,n;kh=typeof document!="undefined"?document.domain&&Lh?Z5(Lh):(t=Gte("iframe"),n="java"+E1+":",t.style.display="none",Hte.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(X5("document.F=Object")),e.close(),e.F):Z5(Lh);for(var r=J5.length;r--;)delete kh[S1][J5[r]];return kh()};qte[Y5]=!0;var Q5,A1,Mh=Object.create||function(e,t){var n;return e!==null?(x1[S1]=Vte(e),n=new x1,x1[S1]=null,n[Y5]=e):n=kh(),t===void 0?n:zte.f(n,t)},Wte=en,Kte=tn.RegExp,Jte=Wte(function(){var e=Kte(".","s");return!(e.dotAll&&e.test(`
|
|
152
|
-
`)&&e.flags==="s")}),Yte=en,Xte=tn.RegExp,Zte=Yte(function(){var e=Xte("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),pl=Nn,Fh=Yt,Qte=na,ene=G5,tne=Dte,nne=Mh,ine=to.get,rne=Jte,sne=Zte,one=Xv("native-string-replace",String.prototype.replace),Bh=RegExp.prototype.exec,P1=Bh,ane=Fh("".charAt),lne=Fh("".indexOf),cne=Fh("".replace),T1=Fh("".slice),O1=(A1=/b*/g,pl(Bh,Q5=/a/,"a"),pl(Bh,A1,"a"),Q5.lastIndex!==0||A1.lastIndex!==0),eE=tne.BROKEN_CARET,N1=/()??/.exec("")[1]!==void 0;(O1||N1||eE||rne||sne)&&(P1=function(e){var t,n,r,s,o,a,l,c=this,u=ine(c),d=Qte(e),f=u.raw;if(f)return f.lastIndex=c.lastIndex,t=pl(P1,f,d),c.lastIndex=f.lastIndex,t;var h=u.groups,g=eE&&c.sticky,b=pl(ene,c),y=c.source,_=0,w=d;if(g&&(b=cne(b,"y",""),lne(b,"g")===-1&&(b+="g"),w=T1(d,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&ane(d,c.lastIndex-1)!==`
|
|
153
|
-
`)&&(y="(?: "+y+")",w=" "+w,_++),n=new RegExp("^(?:"+y+")",b)),N1&&(n=new RegExp("^"+y+"$(?!\\s)",b)),O1&&(r=c.lastIndex),s=pl(Bh,g?n:c,w),g?s?(s.input=T1(s.input,_),s[0]=T1(s[0],_),s.index=c.lastIndex,c.lastIndex+=s[0].length):c.lastIndex=0:O1&&s&&(c.lastIndex=c.global?s.index+s[0].length:r),N1&&s&&s.length>1&&pl(one,s[0],n,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(s[o]=void 0)}),s&&h)for(s.groups=a=nne(null),o=0;o<h.length;o++)a[(l=h[o])[0]]=s[l[1]];return s});var jh=P1;mi({target:"RegExp",proto:!0,forced:/./.exec!==jh},{exec:jh});var une=gh,tE=Function.prototype,nE=tE.apply,iE=tE.call,rE=typeof Reflect=="object"&&Reflect.apply||(une?iE.bind(nE):function(){return iE.apply(nE,arguments)}),dne=fl,fne=Yt,I1=function(e){if(dne(e)==="Function")return fne(e)},sE=I1,oE=or,hne=jh,aE=en,lE=un,pne=vu,gne=lE("species"),R1=RegExp.prototype,D1=Yt,mne=Rh,vne=na,bne=mh,yne=D1("".charAt),cE=D1("".charCodeAt),_ne=D1("".slice),uE=function(e){return function(t,n){var r,s,o=vne(bne(t)),a=mne(n),l=o.length;return a<0||a>=l?e?"":void 0:(r=cE(o,a))<55296||r>56319||a+1===l||(s=cE(o,a+1))<56320||s>57343?e?yne(o,a):r:e?_ne(o,a,a+2):s-56320+(r-55296<<10)+65536}},L1={codeAt:uE(!1),charAt:uE(!0)},wne=L1.charAt,k1=Yt,Cne=ea,Sne=Math.floor,M1=k1("".charAt),Ene=k1("".replace),F1=k1("".slice),xne=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ane=/\$([$&'`]|\d{1,2})/g,dE=Nn,Pne=jn,Tne=sn,One=fl,Nne=jh,Ine=TypeError,Rne=rE,fE=Nn,Uh=Yt,Dne=en,Lne=jn,kne=sn,Mne=fu,Fne=Rh,Bne=j5,gl=na,jne=mh,Une=function(e,t,n){return t+(n?wne(e,t).length:1)},$ne=Eh,Vne=function(e,t,n,r,s,o){var a=n+e.length,l=r.length,c=Ane;return s!==void 0&&(s=Cne(s),c=xne),Ene(o,c,function(u,d){var f;switch(M1(d,0)){case"$":return"$";case"&":return e;case"`":return F1(t,0,n);case"'":return F1(t,a);case"<":f=s[F1(d,1,-1)];break;default:var h=+d;if(h===0)return u;if(h>l){var g=Sne(h/10);return g===0?u:g<=l?r[g-1]===void 0?M1(d,1):r[g-1]+M1(d,1):u}f=r[h-1]}return f===void 0?"":f})},zne=function(e,t){var n=e.exec;if(Tne(n)){var r=dE(n,e,t);return r!==null&&Pne(r),r}if(One(e)==="RegExp")return dE(Nne,e,t);throw new Ine("RegExp#exec called on incompatible receiver")},B1=un("replace"),qne=Math.max,Hne=Math.min,Gne=Uh([].concat),j1=Uh([].push),hE=Uh("".indexOf),pE=Uh("".slice),Wne="a".replace(/./,"$0")==="$0",gE=!!/./[B1]&&/./[B1]("a","$0")==="";(function(e,t,n,r){var s=lE(e),o=!aE(function(){var u={};return u[s]=function(){return 7},""[e](u)!==7}),a=o&&!aE(function(){var u=!1,d=/a/;return e==="split"&&((d={}).constructor={},d.constructor[gne]=function(){return d},d.flags="",d[s]=/./[s]),d.exec=function(){return u=!0,null},d[s](""),!u});if(!o||!a||n){var l=sE(/./[s]),c=t(s,""[e],function(u,d,f,h,g){var b=sE(u),y=d.exec;return y===hne||y===R1.exec?o&&!g?{done:!0,value:l(d,f,h)}:{done:!0,value:b(f,d,h)}:{done:!1}});oE(String.prototype,e,c[0]),oE(R1,s,c[1])}r&&pne(R1[s],"sham",!0)})("replace",function(e,t,n){var r=gE?"$":"$0";return[function(s,o){var a=jne(this),l=Mne(s)?void 0:$ne(s,B1);return l?fE(l,s,a,o):fE(t,gl(a),s,o)},function(s,o){var a=Lne(this),l=gl(s);if(typeof o=="string"&&hE(o,r)===-1&&hE(o,"$<")===-1){var c=n(t,a,l,o);if(c.done)return c.value}var u=kne(o);u||(o=gl(o));var d,f=a.global;f&&(d=a.unicode,a.lastIndex=0);for(var h,g=[];(h=zne(a,l))!==null&&(j1(g,h),f);)gl(h[0])===""&&(a.lastIndex=Une(l,Bne(a.lastIndex),d));for(var b,y="",_=0,w=0;w<g.length;w++){for(var x,C=gl((h=g[w])[0]),S=qne(Hne(Fne(h.index),l.length),0),A=[],O=1;O<h.length;O++)j1(A,(b=h[O])===void 0?b:String(b));var R=h.groups;if(u){var N=Gne([C],A,S,l);R!==void 0&&j1(N,R),x=gl(Rne(o,void 0,N))}else x=Vne(C,l,S,A,R,o);S>=_&&(y+=pE(l,_,S)+x,_=S+C.length)}return y+pE(l,_)}]},!!Dne(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Wne||gE);var Kne=un,Jne=Mh,Yne=Lr.f,U1=Kne("unscopables"),$1=Array.prototype;$1[U1]===void 0&&Yne($1,U1,{configurable:!0,value:Jne(null)});var ia,mE,vE,wu={},Xne=!en(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Zne=gi,Qne=sn,eie=ea,tie=Xne,bE=r1("IE_PROTO"),V1=Object,nie=V1.prototype,z1=tie?V1.getPrototypeOf:function(e){var t=eie(e);if(Zne(t,bE))return t[bE];var n=t.constructor;return Qne(n)&&t instanceof n?n.prototype:t instanceof V1?nie:null},iie=en,rie=sn,sie=ki,yE=z1,oie=or,q1=un("iterator"),_E=!1;[].keys&&("next"in(vE=[].keys())?(mE=yE(yE(vE)))!==Object.prototype&&(ia=mE):_E=!0);var aie=!sie(ia)||iie(function(){var e={};return ia[q1].call(e)!==e});aie&&(ia={}),rie(ia[q1])||oie(ia,q1,function(){return this});var H1={IteratorPrototype:ia,BUGGY_SAFARI_ITERATORS:_E},lie=Lr.f,cie=gi,wE=un("toStringTag"),ml=function(e,t,n){e&&!n&&(e=e.prototype),e&&!cie(e,wE)&&lie(e,wE,{configurable:!0,value:t})},uie=H1.IteratorPrototype,die=Mh,fie=mu,hie=ml,pie=wu,gie=function(){return this},CE=function(e,t,n,r){var s=t+" Iterator";return e.prototype=die(uie,{next:fie(+!r,n)}),hie(e,s,!1),pie[s]=gie,e},mie=Yt,vie=eo,bie=ki,yie=String,_ie=TypeError,wie=jn,Cie=function(e){if(function(t){return bie(t)||t===null}(e))return e;throw new _ie("Can't set "+yie(e)+" as a prototype")},SE=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=function(r,s,o){try{return mie(vie(Object.getOwnPropertyDescriptor(r,s)[o]))}catch(a){}}(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(r){}return function(r,s){return wie(r),Cie(s),t?e(r,s):r.__proto__=s,r}}():void 0),Sie=mi,Eie=Nn,xie=sn,Aie=CE,EE=z1,xE=SE,Pie=ml,Tie=vu,G1=or,Oie=wu,Nie=hu.PROPER,Iie=hu.CONFIGURABLE,AE=H1.IteratorPrototype,$h=H1.BUGGY_SAFARI_ITERATORS,Cu=un("iterator"),PE="keys",Su="values",TE="entries",Rie=function(){return this},OE=function(e,t,n,r,s,o,a){Aie(n,t,r);var l,c,u,d=function(w){if(w===s&&y)return y;if(!$h&&w&&w in g)return g[w];switch(w){case PE:case Su:case TE:return function(){return new n(this,w)}}return function(){return new n(this)}},f=t+" Iterator",h=!1,g=e.prototype,b=g[Cu]||g["@@iterator"]||s&&g[s],y=!$h&&b||d(s),_=t==="Array"&&g.entries||b;if(_&&(l=EE(_.call(new e)))!==Object.prototype&&l.next&&(EE(l)!==AE&&(xE?xE(l,AE):xie(l[Cu])||G1(l,Cu,Rie)),Pie(l,f,!0)),Nie&&s===Su&&b&&b.name!==Su&&(Iie?Tie(g,"name",Su):(h=!0,y=function(){return Eie(b,this)})),s)if(c={values:d(Su),keys:o?y:d(PE),entries:d(TE)},a)for(u in c)($h||h||!(u in g))&&G1(g,u,c[u]);else Sie({target:t,proto:!0,forced:$h||h},c);return g[Cu]!==y&&G1(g,Cu,y,{name:s}),Oie[t]=y,c},W1=function(e,t){return{value:e,done:t}},Die=hl,K1=function(e){$1[U1][e]=!0},NE=wu,IE=to,Lie=Lr.f,kie=OE,Vh=W1,Mie=On,RE="Array Iterator",Fie=IE.set,Bie=IE.getterFor(RE),jie=kie(Array,"Array",function(e,t){Fie(this,{type:RE,target:Die(e),index:0,kind:t})},function(){var e=Bie(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,Vh(void 0,!0);switch(e.kind){case"keys":return Vh(n,!1);case"values":return Vh(t[n],!1)}return Vh([n,t[n]],!1)},"values"),DE=NE.Arguments=NE.Array;if(K1("keys"),K1("values"),K1("entries"),Mie&&DE.name!=="values")try{Lie(DE,"name",{value:"values"})}catch(e){}var Uie=_u,$ie=b1?{}.toString:function(){return"[object "+Uie(this)+"]"};b1||or(Object.prototype,"toString",$ie,{unsafe:!0});var Vie=L1.charAt,zie=na,LE=to,qie=OE,kE=W1,ME="String Iterator",Hie=LE.set,Gie=LE.getterFor(ME);qie(String,"String",function(e){Hie(this,{type:ME,string:zie(e),index:0})},function(){var e,t=Gie(this),n=t.string,r=t.index;return r>=n.length?kE(void 0,!0):(e=Vie(n,r),t.index+=e.length,kE(e,!1))});var J1=bh("span").classList,FE=J1&&J1.constructor&&J1.constructor.prototype,Wie=FE===Object.prototype?void 0:FE,BE=tn,jE={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},Kie=Wie,Eu=jie,UE=vu,Jie=ml,Y1=un("iterator"),X1=Eu.values,$E=function(e,t){if(e){if(e[Y1]!==X1)try{UE(e,Y1,X1)}catch(r){e[Y1]=X1}if(Jie(e,t,!0),jE[t]){for(var n in Eu)if(e[n]!==Eu[n])try{UE(e,n,Eu[n])}catch(r){e[n]=Eu[n]}}}};for(var Z1 in jE)$E(BE[Z1]&&BE[Z1].prototype,Z1);$E(Kie,"DOMTokenList");var Yie=en,Xie=On,Zie=un("iterator"),VE=!Yie(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",t.forEach(function(s,o){t.delete("b"),r+=o+s}),n.delete("a",2),n.delete("b",void 0),!t.size&&!Xie||!t.sort||e.href!=="http://a/c%20d?a=1&c=3"||t.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!t[Zie]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://тест").host!=="xn--e1aybc"||new URL("http://a#б").hash!=="#%D0%B1"||r!=="a1c3"||new URL("http://x",void 0).host!=="x"}),Qie=eo,ere=gh,tre=I1(I1.bind),ra=function(e,t){return Qie(e),t===void 0?e:ere?tre(e,t):function(){return e.apply(t,arguments)}},nre=_h,ire=TypeError,Q1=function(e,t){if(nre(t,e))return e;throw new ire("Incorrect invocation")},zE=On,rre=Yt,sre=Nn,ore=en,eb=C1,are=m1,lre=Ih,cre=ea,ure=h1,vl=Object.assign,qE=Object.defineProperty,dre=rre([].concat),fre=!vl||ore(function(){if(zE&&vl({b:1},vl(qE({},"a",{enumerable:!0,get:function(){qE(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(s){t[s]=s}),vl({},e)[n]!==7||eb(vl({},t)).join("")!==r})?function(e,t){for(var n=cre(e),r=arguments.length,s=1,o=are.f,a=lre.f;r>s;)for(var l,c=ure(arguments[s++]),u=o?dre(eb(c),o(c)):eb(c),d=u.length,f=0;d>f;)l=u[f++],zE&&!sre(a,c,l)||(n[l]=c[l]);return n}:vl,hre=Nn,HE=jn,pre=Eh,GE=function(e,t,n){var r,s;HE(e);try{if(!(r=pre(e,"return"))){if(t==="throw")throw n;return n}r=hre(r,e)}catch(o){s=!0,r=o}if(t==="throw")throw n;if(s)throw r;return HE(r),n},gre=jn,mre=GE,vre=wu,bre=un("iterator"),yre=Array.prototype,WE=function(e){return e!==void 0&&(vre.Array===e||yre[bre]===e)},_re=Yt,wre=en,KE=sn,Cre=_u,Sre=qv,JE=function(){},Ere=[],YE=ta("Reflect","construct"),tb=/^\s*(?:class|function)\b/,xre=_re(tb.exec),Are=!tb.test(JE),xu=function(e){if(!KE(e))return!1;try{return YE(JE,Ere,e),!0}catch(t){return!1}},XE=function(e){if(!KE(e))return!1;switch(Cre(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Are||!!xre(tb,Sre(e))}catch(t){return!0}};XE.sham=!0;var nb=!YE||wre(function(){var e;return xu(xu.call)||!xu(Object)||!xu(function(){e=!0})||e})?XE:xu,Pre=Qv,Tre=Lr,Ore=mu,ZE=function(e,t,n){var r=Pre(t);r in e?Tre.f(e,r,Ore(0,n)):e[r]=n},Nre=_u,QE=Eh,Ire=fu,Rre=wu,Dre=un("iterator"),zh=function(e){if(!Ire(e))return QE(e,Dre)||QE(e,"@@iterator")||Rre[Nre(e)]},Lre=Nn,kre=eo,Mre=jn,Fre=Sh,Bre=zh,jre=TypeError,ib=function(e,t){var n=arguments.length<2?Bre(e):t;if(kre(n))return Mre(Lre(n,e));throw new jre(Fre(e)+" is not iterable")},Ure=ra,$re=Nn,Vre=ea,zre=function(e,t,n,r){try{return r?t(gre(n)[0],n[1]):t(n)}catch(s){mre(e,"throw",s)}},qre=WE,Hre=nb,Gre=bu,ex=ZE,Wre=ib,Kre=zh,tx=Array,rb=Yt([].slice),sa=Yt,sb=2147483647,Jre=/[^\0-\u007E]/,nx=/[.\u3002\uFF0E\uFF61]/g,ix="Overflow: input needs wider integers to process",rx=RangeError,Yre=sa(nx.exec),bl=Math.floor,ob=String.fromCharCode,sx=sa("".charCodeAt),ox=sa([].join),no=sa([].push),Xre=sa("".replace),Zre=sa("".split),Qre=sa("".toLowerCase),ax=function(e){return e+22+75*(e<26)},ese=function(e,t,n){var r=0;for(e=n?bl(e/700):e>>1,e+=bl(e/t);e>455;)e=bl(e/35),r+=36;return bl(r+36*e/(e+38))},tse=function(e){var t=[];e=function(w){for(var x=[],C=0,S=w.length;C<S;){var A=sx(w,C++);if(A>=55296&&A<=56319&&C<S){var O=sx(w,C++);(64512&O)==56320?no(x,((1023&A)<<10)+(1023&O)+65536):(no(x,A),C--)}else no(x,A)}return x}(e);var n,r,s=e.length,o=128,a=0,l=72;for(n=0;n<e.length;n++)(r=e[n])<128&&no(t,ob(r));var c=t.length,u=c;for(c&&no(t,"-");u<s;){var d=sb;for(n=0;n<e.length;n++)(r=e[n])>=o&&r<d&&(d=r);var f=u+1;if(d-o>bl((sb-a)/f))throw new rx(ix);for(a+=(d-o)*f,o=d,n=0;n<e.length;n++){if((r=e[n])<o&&++a>sb)throw new rx(ix);if(r===o){for(var h=a,g=36;;){var b=g<=l?1:g>=l+26?26:g-l;if(h<b)break;var y=h-b,_=36-b;no(t,ob(ax(b+y%_))),h=bl(y/_),g+=36}no(t,ob(ax(h))),l=ese(a,f,u===c),a=0,u++}}a++,o++}return ox(t,"")},nse=TypeError,ab=function(e,t){if(e<t)throw new nse("Not enough arguments");return e},lx=tn,ise=On,rse=Object.getOwnPropertyDescriptor,cx=function(e){if(!ise)return lx[e];var t=rse(lx,e);return t&&t.value},sse=or,ux=rb,ose=Math.floor,lb=function(e,t){var n=e.length;if(n<8)for(var r,s,o=1;o<n;){for(s=o,r=e[o];s&&t(e[s-1],r)>0;)e[s]=e[--s];s!==o++&&(e[s]=r)}else for(var a=ose(n/2),l=lb(ux(e,0,a),t),c=lb(ux(e,a),t),u=l.length,d=c.length,f=0,h=0;f<u||h<d;)e[f+h]=f<u&&h<d?t(l[f],c[h])<=0?l[f++]:c[h++]:f<u?l[f++]:c[h++];return e},cb=mi,qh=tn,ub=cx,Hh=Nn,Mr=Yt,Au=On,dx=VE,fx=or,ase=Nh,lse=ml,cse=CE,db=to,hx=Q1,fb=sn,use=gi,dse=ra,fse=_u,hse=jn,px=ki,Jn=na,pse=Mh,gx=mu,mx=ib,gse=zh,Gh=W1,yl=ab,mse=lb,vse=un("iterator"),_l="URLSearchParams",vx=_l+"Iterator",bx=db.set,Mi=db.getterFor(_l),bse=db.getterFor(vx),yx=ub("fetch"),Wh=ub("Request"),Pu=ub("Headers"),hb=Wh&&Wh.prototype,_x=Pu&&Pu.prototype,yse=qh.RegExp,_se=qh.TypeError,wx=qh.decodeURIComponent,wse=qh.encodeURIComponent,Cse=Mr("".charAt),Cx=Mr([].join),oa=Mr([].push),pb=Mr("".replace),Sse=Mr([].shift),Sx=Mr([].splice),Ex=Mr("".split),Ese=Mr("".slice),xse=/\+/g,xx=Array(4),Ase=function(e){return xx[e-1]||(xx[e-1]=yse("((?:%[\\da-f]{2}){"+e+"})","gi"))},Pse=function(e){try{return wx(e)}catch(t){return e}},Ax=function(e){var t=pb(e,xse," "),n=4;try{return wx(t)}catch(r){for(;n;)t=pb(t,Ase(n--),Pse);return t}},Tse=/[!'()~]|%20/g,Ose={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Nse=function(e){return Ose[e]},Px=function(e){return pb(wse(e),Tse,Nse)},gb=cse(function(e,t){bx(this,{type:vx,target:Mi(e).entries,index:0,kind:t})},_l,function(){var e=bse(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,Gh(void 0,!0);var r=t[n];switch(e.kind){case"keys":return Gh(r.key,!1);case"values":return Gh(r.value,!1)}return Gh([r.key,r.value],!1)},!0),Tx=function(e){this.entries=[],this.url=null,e!==void 0&&(px(e)?this.parseObject(e):this.parseQuery(typeof e=="string"?Cse(e,0)==="?"?Ese(e,1):e:Jn(e)))};Tx.prototype={type:_l,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,s,o,a,l,c=this.entries,u=gse(e);if(u)for(n=(t=mx(e,u)).next;!(r=Hh(n,t)).done;){if(o=(s=mx(hse(r.value))).next,(a=Hh(o,s)).done||(l=Hh(o,s)).done||!Hh(o,s).done)throw new _se("Expected sequence with length 2");oa(c,{key:Jn(a.value),value:Jn(l.value)})}else for(var d in e)use(e,d)&&oa(c,{key:d,value:Jn(e[d])})},parseQuery:function(e){if(e)for(var t,n,r=this.entries,s=Ex(e,"&"),o=0;o<s.length;)(t=s[o++]).length&&(n=Ex(t,"="),oa(r,{key:Ax(Sse(n)),value:Ax(Cx(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],oa(n,Px(e.key)+"="+Px(e.value));return Cx(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Kh=function(){hx(this,wl);var e=bx(this,new Tx(arguments.length>0?arguments[0]:void 0));Au||(this.size=e.entries.length)},wl=Kh.prototype;if(function(e,t,n){for(var r in t)sse(e,r,t[r],n)}(wl,{append:function(e,t){var n=Mi(this);yl(arguments.length,2),oa(n.entries,{key:Jn(e),value:Jn(t)}),Au||this.length++,n.updateURL()},delete:function(e){for(var t=Mi(this),n=yl(arguments.length,1),r=t.entries,s=Jn(e),o=n<2?void 0:arguments[1],a=o===void 0?o:Jn(o),l=0;l<r.length;){var c=r[l];if(c.key!==s||a!==void 0&&c.value!==a)l++;else if(Sx(r,l,1),a!==void 0)break}Au||(this.size=r.length),t.updateURL()},get:function(e){var t=Mi(this).entries;yl(arguments.length,1);for(var n=Jn(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=Mi(this).entries;yl(arguments.length,1);for(var n=Jn(e),r=[],s=0;s<t.length;s++)t[s].key===n&&oa(r,t[s].value);return r},has:function(e){for(var t=Mi(this).entries,n=yl(arguments.length,1),r=Jn(e),s=n<2?void 0:arguments[1],o=s===void 0?s:Jn(s),a=0;a<t.length;){var l=t[a++];if(l.key===r&&(o===void 0||l.value===o))return!0}return!1},set:function(e,t){var n=Mi(this);yl(arguments.length,1);for(var r,s=n.entries,o=!1,a=Jn(e),l=Jn(t),c=0;c<s.length;c++)(r=s[c]).key===a&&(o?Sx(s,c--,1):(o=!0,r.value=l));o||oa(s,{key:a,value:l}),Au||(this.size=s.length),n.updateURL()},sort:function(){var e=Mi(this);mse(e.entries,function(t,n){return t.key>n.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,n=Mi(this).entries,r=dse(e,arguments.length>1?arguments[1]:void 0),s=0;s<n.length;)r((t=n[s++]).value,t.key,this)},keys:function(){return new gb(this,"keys")},values:function(){return new gb(this,"values")},entries:function(){return new gb(this,"entries")}},{enumerable:!0}),fx(wl,vse,wl.entries,{name:"entries"}),fx(wl,"toString",function(){return Mi(this).serialize()},{enumerable:!0}),Au&&ase(wl,"size",{get:function(){return Mi(this).entries.length},configurable:!0,enumerable:!0}),lse(Kh,_l),cb({global:!0,constructor:!0,forced:!dx},{URLSearchParams:Kh}),!dx&&fb(Pu)){var Ise=Mr(_x.has),Rse=Mr(_x.set),Ox=function(e){if(px(e)){var t,n=e.body;if(fse(n)===_l)return t=e.headers?new Pu(e.headers):new Pu,Ise(t,"content-type")||Rse(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),pse(e,{body:gx(0,Jn(n)),headers:gx(0,t)})}return e};if(fb(yx)&&cb({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return yx(e,arguments.length>1?Ox(arguments[1]):{})}}),fb(Wh)){var mb=function(e){return hx(this,hb),new Wh(e,arguments.length>1?Ox(arguments[1]):{})};hb.constructor=mb,mb.prototype=hb,cb({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:mb})}}var Fi,Dse=mi,vb=On,Lse=VE,bb=tn,Nx=ra,Bi=Yt,Jh=or,ji=Nh,kse=Q1,yb=gi,_b=fre,Cl=function(e){var t=Vre(e),n=Hre(this),r=arguments.length,s=r>1?arguments[1]:void 0,o=s!==void 0;o&&(s=Ure(s,r>2?arguments[2]:void 0));var a,l,c,u,d,f,h=Kre(t),g=0;if(!h||this===tx&&qre(h))for(a=Gre(t),l=n?new this(a):tx(a);a>g;g++)f=o?s(t[g],g):t[g],ex(l,g,f);else for(d=(u=Wre(t,h)).next,l=n?new this:[];!(c=$re(d,u)).done;g++)f=o?zre(u,s,[c.value,g],!0):c.value,ex(l,g,f);return l.length=g,l},ar=rb,Mse=L1.codeAt,bs=na,Fse=ml,Bse=ab,Ix={URLSearchParams:Kh,getState:Mi},Rx=to,jse=Rx.set,Yh=Rx.getterFor("URL"),Use=Ix.URLSearchParams,$se=Ix.getState,Tu=bb.URL,wb=bb.TypeError,Xh=bb.parseInt,Vse=Math.floor,Dx=Math.pow,Ui=Bi("".charAt),lr=Bi(/./.exec),Ou=Bi([].join),zse=Bi(1 .toString),qse=Bi([].pop),Sl=Bi([].push),Cb=Bi("".replace),Hse=Bi([].shift),Gse=Bi("".split),Nu=Bi("".slice),Zh=Bi("".toLowerCase),Wse=Bi([].unshift),Sb="Invalid scheme",aa="Invalid host",Lx="Invalid port",kx=/[a-z]/i,Kse=/[\d+-.a-z]/i,Eb=/\d/,Jse=/^0x/i,Yse=/^[0-7]+$/,Xse=/^\d+$/,Mx=/^[\da-f]+$/i,Zse=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Qse=/[\0\t\n\r #/:<>?@[\\\]^|]/,eoe=/^[\u0000-\u0020]+/,toe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,noe=/[\t\n\r]/g,Iu=function(e){var t,n,r,s;if(typeof e=="number"){for(t=[],n=0;n<4;n++)Wse(t,e%256),e=Vse(e/256);return Ou(t,".")}if(typeof e=="object"){for(t="",r=function(o){for(var a=null,l=1,c=null,u=0,d=0;d<8;d++)o[d]!==0?(u>l&&(a=c,l=u),c=null,u=0):(c===null&&(c=d),++u);return u>l&&(a=c,l=u),a}(e),n=0;n<8;n++)s&&e[n]===0||(s&&(s=!1),r===n?(t+=n?":":"::",s=!0):(t+=zse(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},Qh={},Fx=_b({},Qh,{" ":1,'"':1,"<":1,">":1,"`":1}),Bx=_b({},Fx,{"#":1,"?":1,"{":1,"}":1}),xb=_b({},Bx,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),io=function(e,t){var n=Mse(e,0);return n>32&&n<127&&!yb(t,e)?e:encodeURIComponent(e)},ep={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Ru=function(e,t){var n;return e.length===2&&lr(kx,Ui(e,0))&&((n=Ui(e,1))===":"||!t&&n==="|")},jx=function(e){var t;return e.length>1&&Ru(Nu(e,0,2))&&(e.length===2||(t=Ui(e,2))==="/"||t==="\\"||t==="?"||t==="#")},ioe=function(e){return e==="."||Zh(e)==="%2e"},Ab={},Ux={},Pb={},$x={},Vx={},Tb={},zx={},qx={},tp={},np={},Ob={},Nb={},Ib={},Rb={},Hx={},Db={},El={},Fr={},Gx={},la={},ys={},Lb=function(e,t,n){var r,s,o,a=bs(e);if(t){if(s=this.parse(a))throw new wb(s);this.searchParams=null}else{if(n!==void 0&&(r=new Lb(n,!0)),s=this.parse(a,null,r))throw new wb(s);(o=$se(new Use)).bindURL(this),this.searchParams=o}};Lb.prototype={type:"URL",parse:function(e,t,n){var r,s,o,a,l,c=this,u=t||Ab,d=0,f="",h=!1,g=!1,b=!1;for(e=bs(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=Cb(e,eoe,""),e=Cb(e,toe,"$1")),e=Cb(e,noe,""),r=Cl(e);d<=r.length;){switch(s=r[d],u){case Ab:if(!s||!lr(kx,s)){if(t)return Sb;u=Pb;continue}f+=Zh(s),u=Ux;break;case Ux:if(s&&(lr(Kse,s)||s==="+"||s==="-"||s==="."))f+=Zh(s);else{if(s!==":"){if(t)return Sb;f="",u=Pb,d=0;continue}if(t&&(c.isSpecial()!==yb(ep,f)||f==="file"&&(c.includesCredentials()||c.port!==null)||c.scheme==="file"&&!c.host))return;if(c.scheme=f,t)return void(c.isSpecial()&&ep[c.scheme]===c.port&&(c.port=null));f="",c.scheme==="file"?u=Rb:c.isSpecial()&&n&&n.scheme===c.scheme?u=$x:c.isSpecial()?u=qx:r[d+1]==="/"?(u=Vx,d++):(c.cannotBeABaseURL=!0,Sl(c.path,""),u=Gx)}break;case Pb:if(!n||n.cannotBeABaseURL&&s!=="#")return Sb;if(n.cannotBeABaseURL&&s==="#"){c.scheme=n.scheme,c.path=ar(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,u=ys;break}u=n.scheme==="file"?Rb:Tb;continue;case $x:if(s!=="/"||r[d+1]!=="/"){u=Tb;continue}u=tp,d++;break;case Vx:if(s==="/"){u=np;break}u=Fr;continue;case Tb:if(c.scheme=n.scheme,s===Fi)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=ar(n.path),c.query=n.query;else if(s==="/"||s==="\\"&&c.isSpecial())u=zx;else if(s==="?")c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=ar(n.path),c.query="",u=la;else{if(s!=="#"){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=ar(n.path),c.path.length--,u=Fr;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=ar(n.path),c.query=n.query,c.fragment="",u=ys}break;case zx:if(!c.isSpecial()||s!=="/"&&s!=="\\"){if(s!=="/"){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,u=Fr;continue}u=np}else u=tp;break;case qx:if(u=tp,s!=="/"||Ui(f,d+1)!=="/")continue;d++;break;case tp:if(s!=="/"&&s!=="\\"){u=np;continue}break;case np:if(s==="@"){h&&(f="%40"+f),h=!0,o=Cl(f);for(var y=0;y<o.length;y++){var _=o[y];if(_!==":"||b){var w=io(_,xb);b?c.password+=w:c.username+=w}else b=!0}f=""}else if(s===Fi||s==="/"||s==="?"||s==="#"||s==="\\"&&c.isSpecial()){if(h&&f==="")return"Invalid authority";d-=Cl(f).length+1,f="",u=Ob}else f+=s;break;case Ob:case Nb:if(t&&c.scheme==="file"){u=Db;continue}if(s!==":"||g){if(s===Fi||s==="/"||s==="?"||s==="#"||s==="\\"&&c.isSpecial()){if(c.isSpecial()&&f==="")return aa;if(t&&f===""&&(c.includesCredentials()||c.port!==null))return;if(a=c.parseHost(f))return a;if(f="",u=El,t)return;continue}s==="["?g=!0:s==="]"&&(g=!1),f+=s}else{if(f==="")return aa;if(a=c.parseHost(f))return a;if(f="",u=Ib,t===Nb)return}break;case Ib:if(!lr(Eb,s)){if(s===Fi||s==="/"||s==="?"||s==="#"||s==="\\"&&c.isSpecial()||t){if(f!==""){var x=Xh(f,10);if(x>65535)return Lx;c.port=c.isSpecial()&&x===ep[c.scheme]?null:x,f=""}if(t)return;u=El;continue}return Lx}f+=s;break;case Rb:if(c.scheme="file",s==="/"||s==="\\")u=Hx;else{if(!n||n.scheme!=="file"){u=Fr;continue}switch(s){case Fi:c.host=n.host,c.path=ar(n.path),c.query=n.query;break;case"?":c.host=n.host,c.path=ar(n.path),c.query="",u=la;break;case"#":c.host=n.host,c.path=ar(n.path),c.query=n.query,c.fragment="",u=ys;break;default:jx(Ou(ar(r,d),""))||(c.host=n.host,c.path=ar(n.path),c.shortenPath()),u=Fr;continue}}break;case Hx:if(s==="/"||s==="\\"){u=Db;break}n&&n.scheme==="file"&&!jx(Ou(ar(r,d),""))&&(Ru(n.path[0],!0)?Sl(c.path,n.path[0]):c.host=n.host),u=Fr;continue;case Db:if(s===Fi||s==="/"||s==="\\"||s==="?"||s==="#"){if(!t&&Ru(f))u=Fr;else if(f===""){if(c.host="",t)return;u=El}else{if(a=c.parseHost(f))return a;if(c.host==="localhost"&&(c.host=""),t)return;f="",u=El}continue}f+=s;break;case El:if(c.isSpecial()){if(u=Fr,s!=="/"&&s!=="\\")continue}else if(t||s!=="?")if(t||s!=="#"){if(s!==Fi&&(u=Fr,s!=="/"))continue}else c.fragment="",u=ys;else c.query="",u=la;break;case Fr:if(s===Fi||s==="/"||s==="\\"&&c.isSpecial()||!t&&(s==="?"||s==="#")){if((l=Zh(l=f))===".."||l==="%2e."||l===".%2e"||l==="%2e%2e"?(c.shortenPath(),s==="/"||s==="\\"&&c.isSpecial()||Sl(c.path,"")):ioe(f)?s==="/"||s==="\\"&&c.isSpecial()||Sl(c.path,""):(c.scheme==="file"&&!c.path.length&&Ru(f)&&(c.host&&(c.host=""),f=Ui(f,0)+":"),Sl(c.path,f)),f="",c.scheme==="file"&&(s===Fi||s==="?"||s==="#"))for(;c.path.length>1&&c.path[0]==="";)Hse(c.path);s==="?"?(c.query="",u=la):s==="#"&&(c.fragment="",u=ys)}else f+=io(s,Bx);break;case Gx:s==="?"?(c.query="",u=la):s==="#"?(c.fragment="",u=ys):s!==Fi&&(c.path[0]+=io(s,Qh));break;case la:t||s!=="#"?s!==Fi&&(s==="'"&&c.isSpecial()?c.query+="%27":c.query+=s==="#"?"%23":io(s,Qh)):(c.fragment="",u=ys);break;case ys:s!==Fi&&(c.fragment+=io(s,Fx))}d++}},parseHost:function(e){var t,n,r;if(Ui(e,0)==="["){if(Ui(e,e.length-1)!=="]"||(t=function(s){var o,a,l,c,u,d,f,h=[0,0,0,0,0,0,0,0],g=0,b=null,y=0,_=function(){return Ui(s,y)};if(_()===":"){if(Ui(s,1)!==":")return;y+=2,b=++g}for(;_();){if(g===8)return;if(_()!==":"){for(o=a=0;a<4&&lr(Mx,_());)o=16*o+Xh(_(),16),y++,a++;if(_()==="."){if(a===0||(y-=a,g>6))return;for(l=0;_();){if(c=null,l>0){if(!(_()==="."&&l<4))return;y++}if(!lr(Eb,_()))return;for(;lr(Eb,_());){if(u=Xh(_(),10),c===null)c=u;else{if(c===0)return;c=10*c+u}if(c>255)return;y++}h[g]=256*h[g]+c,++l!=2&&l!==4||g++}if(l!==4)return;break}if(_()===":"){if(y++,!_())return}else if(_())return;h[g++]=o}else{if(b!==null)return;y++,b=++g}}if(b!==null)for(d=g-b,g=7;g!==0&&d>0;)f=h[g],h[g--]=h[b+d-1],h[b+--d]=f;else if(g!==8)return;return h}(Nu(e,1,-1)),!t))return aa;this.host=t}else if(this.isSpecial()){if(e=function(s){var o,a,l=[],c=Zre(Xre(Qre(s),nx,"."),".");for(o=0;o<c.length;o++)a=c[o],no(l,Yre(Jre,a)?"xn--"+tse(a):a);return ox(l,".")}(e),lr(Zse,e)||(t=function(s){var o,a,l,c,u,d,f,h=Gse(s,".");if(h.length&&h[h.length-1]===""&&h.length--,(o=h.length)>4)return s;for(a=[],l=0;l<o;l++){if((c=h[l])==="")return s;if(u=10,c.length>1&&Ui(c,0)==="0"&&(u=lr(Jse,c)?16:8,c=Nu(c,u===8?1:2)),c==="")d=0;else{if(!lr(u===10?Xse:u===8?Yse:Mx,c))return s;d=Xh(c,u)}Sl(a,d)}for(l=0;l<o;l++)if(d=a[l],l===o-1){if(d>=Dx(256,5-o))return null}else if(d>255)return null;for(f=qse(a),l=0;l<a.length;l++)f+=a[l]*Dx(256,3-l);return f}(e),t===null))return aa;this.host=t}else{if(lr(Qse,e))return aa;for(t="",n=Cl(e),r=0;r<n.length;r++)t+=io(n[r],Qh);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||this.scheme==="file"},includesCredentials:function(){return this.username!==""||this.password!==""},isSpecial:function(){return yb(ep,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||this.scheme==="file"&&t===1&&Ru(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,s=e.host,o=e.port,a=e.path,l=e.query,c=e.fragment,u=t+":";return s!==null?(u+="//",e.includesCredentials()&&(u+=n+(r?":"+r:"")+"@"),u+=Iu(s),o!==null&&(u+=":"+o)):t==="file"&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+Ou(a,"/"):"",l!==null&&(u+="?"+l),c!==null&&(u+="#"+c),u},setHref:function(e){var t=this.parse(e);if(t)throw new wb(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if(e==="blob")try{return new xl(e.path[0]).origin}catch(n){return"null"}return e!=="file"&&this.isSpecial()?e+"://"+Iu(this.host)+(t!==null?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(bs(e)+":",Ab)},getUsername:function(){return this.username},setUsername:function(e){var t=Cl(bs(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=io(t[n],xb)}},getPassword:function(){return this.password},setPassword:function(e){var t=Cl(bs(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=io(t[n],xb)}},getHost:function(){var e=this.host,t=this.port;return e===null?"":t===null?Iu(e):Iu(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Ob)},getHostname:function(){var e=this.host;return e===null?"":Iu(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Nb)},getPort:function(){var e=this.port;return e===null?"":bs(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||((e=bs(e))===""?this.port=null:this.parse(e,Ib))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+Ou(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,El))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){(e=bs(e))===""?this.query=null:(Ui(e,0)==="?"&&(e=Nu(e,1)),this.query="",this.parse(e,la)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){(e=bs(e))!==""?(Ui(e,0)==="#"&&(e=Nu(e,1)),this.fragment="",this.parse(e,ys)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var xl=function(e){var t=kse(this,Yn),n=Bse(arguments.length,1)>1?arguments[1]:void 0,r=jse(t,new Lb(e,!1,n));vb||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},Yn=xl.prototype,$i=function(e,t){return{get:function(){return Yh(this)[e]()},set:t&&function(n){return Yh(this)[t](n)},configurable:!0,enumerable:!0}};if(vb&&(ji(Yn,"href",$i("serialize","setHref")),ji(Yn,"origin",$i("getOrigin")),ji(Yn,"protocol",$i("getProtocol","setProtocol")),ji(Yn,"username",$i("getUsername","setUsername")),ji(Yn,"password",$i("getPassword","setPassword")),ji(Yn,"host",$i("getHost","setHost")),ji(Yn,"hostname",$i("getHostname","setHostname")),ji(Yn,"port",$i("getPort","setPort")),ji(Yn,"pathname",$i("getPathname","setPathname")),ji(Yn,"search",$i("getSearch","setSearch")),ji(Yn,"searchParams",$i("getSearchParams")),ji(Yn,"hash",$i("getHash","setHash"))),Jh(Yn,"toJSON",function(){return Yh(this).serialize()},{enumerable:!0}),Jh(Yn,"toString",function(){return Yh(this).serialize()},{enumerable:!0}),Tu){var Wx=Tu.createObjectURL,Kx=Tu.revokeObjectURL;Wx&&Jh(xl,"createObjectURL",Nx(Wx,Tu)),Kx&&Jh(xl,"revokeObjectURL",Nx(Kx,Tu))}Fse(xl,"URL"),Dse({global:!0,constructor:!0,forced:!Lse,sham:!vb},{URL:xl});var roe=fl,Jx=Array.isArray||function(e){return roe(e)==="Array"},soe=TypeError,Yx=Jx,ooe=nb,aoe=ki,loe=un("species"),Xx=Array,Zx=function(e,t){return new(function(n){var r;return Yx(n)&&(r=n.constructor,(ooe(r)&&(r===Xx||Yx(r.prototype))||aoe(r)&&(r=r[loe])===null)&&(r=void 0)),r===void 0?Xx:r}(e))(t===0?0:t)},coe=en,uoe=Ch,doe=un("species"),Qx=function(e){return uoe>=51||!coe(function(){var t=[];return(t.constructor={})[doe]=function(){return{foo:1}},t[e](Boolean).foo!==1})},foe=mi,hoe=en,poe=Jx,goe=ki,moe=ea,voe=bu,eA=function(e){if(e>9007199254740991)throw soe("Maximum allowed index exceeded");return e},tA=ZE,boe=Zx,yoe=Qx,_oe=Ch,nA=un("isConcatSpreadable"),woe=_oe>=51||!hoe(function(){var e=[];return e[nA]=!1,e.concat()[0]!==e}),Coe=function(e){if(!goe(e))return!1;var t=e[nA];return t!==void 0?!!t:poe(e)};foe({target:"Array",proto:!0,arity:1,forced:!woe||!yoe("concat")},{concat:function(e){var t,n,r,s,o,a=moe(this),l=boe(a,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(Coe(o=t===-1?a:arguments[t]))for(s=voe(o),eA(c+s),n=0;n<s;n++,c++)n in o&&tA(l,c,o[n]);else eA(c+1),tA(l,c++,o);return l.length=c,l}});var Soe=ra,Eoe=h1,xoe=ea,Aoe=bu,Poe=Zx,iA=Yt([].push),ro=function(e){var t=e===1,n=e===2,r=e===3,s=e===4,o=e===6,a=e===7,l=e===5||o;return function(c,u,d,f){for(var h,g,b=xoe(c),y=Eoe(b),_=Aoe(y),w=Soe(u,d),x=0,C=f||Poe,S=t?C(c,_):n||a?C(c,0):void 0;_>x;x++)if((l||x in y)&&(g=w(h=y[x],x,b),e))if(t)S[x]=g;else if(g)switch(e){case 3:return!0;case 5:return h;case 6:return x;case 2:iA(S,h)}else switch(e){case 4:return!1;case 7:iA(S,h)}return o?-1:r||s?s:S}},Toe=[ro(0),ro(1),ro(2),ro(3),ro(4),ro(5),ro(6),ro(7)][1];mi({target:"Array",proto:!0,forced:!Qx("map")},{map:function(e){return Toe(this,e,arguments.length>1?arguments[1]:void 0)}});var rA=On,Ooe=en,sA=Yt,Noe=z1,Ioe=C1,Roe=hl,oA=sA(Ih.f),Doe=sA([].push),Loe=rA&&Ooe(function(){var e=Object.create(null);return e[2]=2,!oA(e,2)}),aA=function(e){return function(t){for(var n,r=Roe(t),s=Ioe(r),o=Loe&&Noe(r)===null,a=s.length,l=0,c=[];a>l;)n=s[l++],rA&&!(o?n in r:oA(r,n))||Doe(c,e?[n,r[n]]:r[n]);return c}},koe=[aA(!0),aA(!1)][0];mi({target:"Object",stat:!0},{entries:function(e){return koe(e)}});var Moe=Nn,Foe=gi,Boe=_h,joe=G5,lA=RegExp.prototype,Uoe=hu.PROPER,$oe=or,Voe=jn,cA=na,zoe=en,kb="toString",uA=RegExp.prototype,dA=uA[kb],qoe=zoe(function(){return dA.call({source:"a",flags:"b"})!=="/a/b"}),Hoe=Uoe&&dA.name!==kb;(qoe||Hoe)&&$oe(uA,kb,function(){var e=Voe(this);return"/"+cA(e.source)+"/"+cA(function(t){var n=t.flags;return n!==void 0||"flags"in lA||Foe(t,"flags")||!Boe(lA,t)?n:Moe(joe,t)}(e))},{unsafe:!0});var Du,Al,fA,Mb,ip=fl(tn.process)==="process",Goe=ta,Woe=Nh,Koe=On,hA=un("species"),Joe=nb,Yoe=Sh,Xoe=TypeError,pA=jn,Zoe=fu,Qoe=un("species"),gA=/(?:ipad|iphone|ipod).*applewebkit/i.test(wh),vi=tn,eae=rE,tae=ra,mA=sn,nae=gi,vA=en,bA=K5,iae=rb,yA=bh,rae=ab,sae=gA,oae=ip,Fb=vi.setImmediate,Bb=vi.clearImmediate,aae=vi.process,jb=vi.Dispatch,lae=vi.Function,_A=vi.MessageChannel,cae=vi.String,Ub=0,Lu={},wA="onreadystatechange";vA(function(){Du=vi.location});var $b=function(e){if(nae(Lu,e)){var t=Lu[e];delete Lu[e],t()}},Vb=function(e){return function(){$b(e)}},CA=function(e){$b(e.data)},SA=function(e){vi.postMessage(cae(e),Du.protocol+"//"+Du.host)};Fb&&Bb||(Fb=function(e){rae(arguments.length,1);var t=mA(e)?e:lae(e),n=iae(arguments,1);return Lu[++Ub]=function(){eae(t,void 0,n)},Al(Ub),Ub},Bb=function(e){delete Lu[e]},oae?Al=function(e){aae.nextTick(Vb(e))}:jb&&jb.now?Al=function(e){jb.now(Vb(e))}:_A&&!sae?(Mb=(fA=new _A).port2,fA.port1.onmessage=CA,Al=tae(Mb.postMessage,Mb)):vi.addEventListener&&mA(vi.postMessage)&&!vi.importScripts&&Du&&Du.protocol!=="file:"&&!vA(SA)?(Al=SA,vi.addEventListener("message",CA,!1)):Al=wA in yA("script")?function(e){bA.appendChild(yA("script"))[wA]=function(){bA.removeChild(this),$b(e)}}:function(e){setTimeout(Vb(e),0)});var EA={set:Fb,clear:Bb},xA=function(){this.head=null,this.tail=null};xA.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return(this.head=e.next)===null&&(this.tail=null),e.item}};var Pl,zb,qb,Hb,AA,PA=xA,uae=/ipad|iphone|ipod/i.test(wh)&&typeof Pebble!="undefined",dae=/web0s(?!.*chrome)/i.test(wh),Tl=tn,fae=cx,TA=ra,Gb=EA.set,hae=PA,pae=gA,gae=uae,mae=dae,Wb=ip,OA=Tl.MutationObserver||Tl.WebKitMutationObserver,NA=Tl.document,IA=Tl.process,rp=Tl.Promise,Kb=fae("queueMicrotask");if(!Kb){var sp=new hae,op=function(){var e,t;for(Wb&&(e=IA.domain)&&e.exit();t=sp.get();)try{t()}catch(n){throw sp.head&&Pl(),n}e&&e.enter()};pae||Wb||mae||!OA||!NA?!gae&&rp&&rp.resolve?((Hb=rp.resolve(void 0)).constructor=rp,AA=TA(Hb.then,Hb),Pl=function(){AA(op)}):Wb?Pl=function(){IA.nextTick(op)}:(Gb=TA(Gb,Tl),Pl=function(){Gb(op)}):(zb=!0,qb=NA.createTextNode(""),new OA(op).observe(qb,{characterData:!0}),Pl=function(){qb.data=zb=!zb}),Kb=function(e){sp.head||Pl(),sp.add(e)}}var vae=Kb,Jb=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},ap=tn.Promise,RA=typeof Deno=="object"&&Deno&&typeof Deno.version=="object",bae=!RA&&!ip&&typeof window=="object"&&typeof document=="object",yae=tn,ku=ap,_ae=sn,wae=q5,Cae=qv,Sae=un,Eae=bae,xae=RA,Yb=Ch;ku&&ku.prototype;var Aae=Sae("species"),DA=!1,LA=_ae(yae.PromiseRejectionEvent),Pae=wae("Promise",function(){var e=Cae(ku),t=e!==String(ku);if(!t&&Yb===66)return!0;if(!Yb||Yb<51||!/native code/.test(e)){var n=new ku(function(s){s(1)}),r=function(s){s(function(){},function(){})};if((n.constructor={})[Aae]=r,!(DA=n.then(function(){})instanceof r))return!0}return!t&&(Eae||xae)&&!LA}),ca={CONSTRUCTOR:Pae,REJECTION_EVENT:LA,SUBCLASSING:DA},Ol={},kA=eo,Tae=TypeError,Oae=function(e){var t,n;this.promise=new e(function(r,s){if(t!==void 0||n!==void 0)throw new Tae("Bad Promise constructor");t=r,n=s}),this.resolve=kA(t),this.reject=kA(n)};Ol.f=function(e){return new Oae(e)};var Xb,MA,FA,Nae=mi,lp=ip,so=tn,Nl=Nn,BA=or,jA=SE,Iae=ml,Rae=eo,cp=sn,Dae=ki,Lae=Q1,kae=function(e,t){var n,r=pA(e).constructor;return r===void 0||Zoe(n=pA(r)[Qoe])?t:function(s){if(Joe(s))return s;throw new Xoe(Yoe(s)+" is not a constructor")}(n)},UA=EA.set,Zb=vae,Mae=Jb,Fae=PA,$A=to,up=ap,VA=Ol,dp="Promise",zA=ca.CONSTRUCTOR,Bae=ca.REJECTION_EVENT,jae=ca.SUBCLASSING,Qb=$A.getterFor(dp),Uae=$A.set,Il=up&&up.prototype,Rl=up,fp=Il,qA=so.TypeError,ey=so.document,ty=so.process,ny=VA.f,$ae=ny,Vae=!!(ey&&ey.createEvent&&so.dispatchEvent),HA="unhandledrejection",GA=function(e){var t;return!(!Dae(e)||!cp(t=e.then))&&t},WA=function(e,t){var n,r,s,o=t.value,a=t.state===1,l=a?e.ok:e.fail,c=e.resolve,u=e.reject,d=e.domain;try{l?(a||(t.rejection===2&&qae(t),t.rejection=1),l===!0?n=o:(d&&d.enter(),n=l(o),d&&(d.exit(),s=!0)),n===e.promise?u(new qA("Promise-chain cycle")):(r=GA(n))?Nl(r,n,c,u):c(n)):u(o)}catch(f){d&&!s&&d.exit(),u(f)}},KA=function(e,t){e.notified||(e.notified=!0,Zb(function(){for(var n,r=e.reactions;n=r.get();)WA(n,e);e.notified=!1,t&&!e.rejection&&zae(e)}))},JA=function(e,t,n){var r,s;Vae?((r=ey.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),so.dispatchEvent(r)):r={promise:t,reason:n},!Bae&&(s=so["on"+e])?s(r):e===HA&&function(o,a){try{arguments.length===1?console.error(o):console.error(o,a)}catch(l){}}("Unhandled promise rejection",n)},zae=function(e){Nl(UA,so,function(){var t,n=e.facade,r=e.value;if(YA(e)&&(t=Mae(function(){lp?ty.emit("unhandledRejection",r,n):JA(HA,n,r)}),e.rejection=lp||YA(e)?2:1,t.error))throw t.value})},YA=function(e){return e.rejection!==1&&!e.parent},qae=function(e){Nl(UA,so,function(){var t=e.facade;lp?ty.emit("rejectionHandled",t):JA("rejectionhandled",t,e.value)})},Dl=function(e,t,n){return function(r){e(t,r,n)}},Ll=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,KA(e,!0))},iy=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new qA("Promise can't be resolved itself");var r=GA(t);r?Zb(function(){var s={done:!1};try{Nl(r,t,Dl(iy,s,e),Dl(Ll,s,e))}catch(o){Ll(s,o,e)}}):(e.value=t,e.state=1,KA(e,!1))}catch(s){Ll({done:!1},s,e)}}};if(zA&&(fp=(Rl=function(e){Lae(this,fp),Rae(e),Nl(Xb,this);var t=Qb(this);try{e(Dl(iy,t),Dl(Ll,t))}catch(n){Ll(t,n)}}).prototype,(Xb=function(e){Uae(this,{type:dp,done:!1,notified:!1,parent:!1,reactions:new Fae,rejection:!1,state:0,value:void 0})}).prototype=BA(fp,"then",function(e,t){var n=Qb(this),r=ny(kae(this,Rl));return n.parent=!0,r.ok=!cp(e)||e,r.fail=cp(t)&&t,r.domain=lp?ty.domain:void 0,n.state===0?n.reactions.add(r):Zb(function(){WA(r,n)}),r.promise}),MA=function(){var e=new Xb,t=Qb(e);this.promise=e,this.resolve=Dl(iy,t),this.reject=Dl(Ll,t)},VA.f=ny=function(e){return e===Rl||e===void 0?new MA(e):$ae(e)},cp(up)&&Il!==Object.prototype)){FA=Il.then,jae||BA(Il,"then",function(e,t){var n=this;return new Rl(function(r,s){Nl(FA,n,r,s)}).then(e,t)},{unsafe:!0});try{delete Il.constructor}catch(e){}jA&&jA(Il,fp)}Nae({global:!0,constructor:!0,wrap:!0,forced:zA},{Promise:Rl}),Iae(Rl,dp,!1),function(e){var t=Goe(e);Koe&&t&&!t[hA]&&Woe(t,hA,{configurable:!0,get:function(){return this}})}(dp);var Hae=ra,Gae=Nn,Wae=jn,Kae=Sh,Jae=WE,Yae=bu,XA=_h,Xae=ib,Zae=zh,ZA=GE,Qae=TypeError,hp=function(e,t){this.stopped=e,this.result=t},QA=hp.prototype,e7=function(e,t,n){var r,s,o,a,l,c,u,d=n&&n.that,f=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_RECORD),g=!(!n||!n.IS_ITERATOR),b=!(!n||!n.INTERRUPTED),y=Hae(t,d),_=function(x){return r&&ZA(r,"normal",x),new hp(!0,x)},w=function(x){return f?(Wae(x),b?y(x[0],x[1],_):y(x[0],x[1])):b?y(x,_):y(x)};if(h)r=e.iterator;else if(g)r=e;else{if(!(s=Zae(e)))throw new Qae(Kae(e)+" is not iterable");if(Jae(s)){for(o=0,a=Yae(e);a>o;o++)if((l=w(e[o]))&&XA(QA,l))return l;return new hp(!1)}r=Xae(e,s)}for(c=h?e.next:r.next;!(u=Gae(c,r)).done;){try{l=w(u.value)}catch(x){ZA(r,"throw",x)}if(typeof l=="object"&&l&&XA(QA,l))return l}return new hp(!1)},t7=un("iterator"),n7=!1;try{var ele=0,i7={next:function(){return{done:!!ele++}},return:function(){n7=!0}};i7[t7]=function(){return this},Array.from(i7,function(){throw 2})}catch(e){}var tle=ap,r7=ca.CONSTRUCTOR||!function(e,t){try{if(!t&&!n7)return!1}catch(s){return!1}var n=!1;try{var r={};r[t7]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(s){}return n}(function(e){tle.all(e).then(void 0,function(){})}),nle=Nn,ile=eo,rle=Ol,sle=Jb,ole=e7;mi({target:"Promise",stat:!0,forced:r7},{all:function(e){var t=this,n=rle.f(t),r=n.resolve,s=n.reject,o=sle(function(){var a=ile(t.resolve),l=[],c=0,u=1;ole(e,function(d){var f=c++,h=!1;u++,nle(a,t,d).then(function(g){h||(h=!0,l[f]=g,--u||r(l))},s)}),--u||r(l)});return o.error&&s(o.value),n.promise}});var ale=mi,lle=ca.CONSTRUCTOR,ry=ap,cle=ta,ule=sn,dle=or,s7=ry&&ry.prototype;if(ale({target:"Promise",proto:!0,forced:lle,real:!0},{catch:function(e){return this.then(void 0,e)}}),ule(ry)){var o7=cle("Promise").prototype.catch;s7.catch!==o7&&dle(s7,"catch",o7,{unsafe:!0})}var fle=Nn,hle=eo,ple=Ol,gle=Jb,mle=e7;mi({target:"Promise",stat:!0,forced:r7},{race:function(e){var t=this,n=ple.f(t),r=n.reject,s=gle(function(){var o=hle(t.resolve);mle(e,function(a){fle(o,t,a).then(n.resolve,r)})});return s.error&&r(s.value),n.promise}});var vle=Ol;mi({target:"Promise",stat:!0,forced:ca.CONSTRUCTOR},{reject:function(e){var t=vle.f(this);return(0,t.reject)(e),t.promise}});var ble=jn,yle=ki,_le=Ol,wle=mi,Cle=ca.CONSTRUCTOR;ta("Promise"),wle({target:"Promise",stat:!0,forced:Cle},{resolve:function(e){return function(t,n){if(ble(t),yle(n)&&n.constructor===t)return n;var r=_le.f(t);return(0,r.resolve)(n),r.promise}(this,e)}});var pp,Mu,a7={exports:{}},l7={exports:{}};pp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Mu={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&Mu.rotl(e,8)|4278255360&Mu.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=Mu.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var t=[],n=0;n<e.length;n+=3)for(var r=e[n]<<16|e[n+1]<<8|e[n+2],s=0;s<4;s++)8*n+6*s<=8*e.length?t.push(pp.charAt(r>>>6*(3-s)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],n=0,r=0;n<e.length;r=++n%4)r!=0&&t.push((pp.indexOf(e.charAt(n-1))&Math.pow(2,-2*r+8)-1)<<2*r|pp.indexOf(e.charAt(n))>>>6-2*r);return t}},l7.exports=Mu;var Sle=l7.exports,sy={utf8:{stringToBytes:function(e){return sy.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(sy.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}},c7=sy,Ele=function(e){return e!=null&&(u7(e)||function(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&u7(t.slice(0,0))}(e)||!!e._isBuffer)};function u7(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}(function(){var e=Sle,t=c7.utf8,n=Ele,r=c7.bin,s=function(o,a){o.constructor==String?o=a&&a.encoding==="binary"?r.stringToBytes(o):t.stringToBytes(o):n(o)?o=Array.prototype.slice.call(o,0):Array.isArray(o)||o.constructor===Uint8Array||(o=o.toString());for(var l=e.bytesToWords(o),c=8*o.length,u=1732584193,d=-271733879,f=-1732584194,h=271733878,g=0;g<l.length;g++)l[g]=16711935&(l[g]<<8|l[g]>>>24)|4278255360&(l[g]<<24|l[g]>>>8);l[c>>>5]|=128<<c%32,l[14+(c+64>>>9<<4)]=c;var b=s._ff,y=s._gg,_=s._hh,w=s._ii;for(g=0;g<l.length;g+=16){var x=u,C=d,S=f,A=h;u=b(u,d,f,h,l[g+0],7,-680876936),h=b(h,u,d,f,l[g+1],12,-389564586),f=b(f,h,u,d,l[g+2],17,606105819),d=b(d,f,h,u,l[g+3],22,-1044525330),u=b(u,d,f,h,l[g+4],7,-176418897),h=b(h,u,d,f,l[g+5],12,1200080426),f=b(f,h,u,d,l[g+6],17,-1473231341),d=b(d,f,h,u,l[g+7],22,-45705983),u=b(u,d,f,h,l[g+8],7,1770035416),h=b(h,u,d,f,l[g+9],12,-1958414417),f=b(f,h,u,d,l[g+10],17,-42063),d=b(d,f,h,u,l[g+11],22,-1990404162),u=b(u,d,f,h,l[g+12],7,1804603682),h=b(h,u,d,f,l[g+13],12,-40341101),f=b(f,h,u,d,l[g+14],17,-1502002290),u=y(u,d=b(d,f,h,u,l[g+15],22,1236535329),f,h,l[g+1],5,-165796510),h=y(h,u,d,f,l[g+6],9,-1069501632),f=y(f,h,u,d,l[g+11],14,643717713),d=y(d,f,h,u,l[g+0],20,-373897302),u=y(u,d,f,h,l[g+5],5,-701558691),h=y(h,u,d,f,l[g+10],9,38016083),f=y(f,h,u,d,l[g+15],14,-660478335),d=y(d,f,h,u,l[g+4],20,-405537848),u=y(u,d,f,h,l[g+9],5,568446438),h=y(h,u,d,f,l[g+14],9,-1019803690),f=y(f,h,u,d,l[g+3],14,-187363961),d=y(d,f,h,u,l[g+8],20,1163531501),u=y(u,d,f,h,l[g+13],5,-1444681467),h=y(h,u,d,f,l[g+2],9,-51403784),f=y(f,h,u,d,l[g+7],14,1735328473),u=_(u,d=y(d,f,h,u,l[g+12],20,-1926607734),f,h,l[g+5],4,-378558),h=_(h,u,d,f,l[g+8],11,-2022574463),f=_(f,h,u,d,l[g+11],16,1839030562),d=_(d,f,h,u,l[g+14],23,-35309556),u=_(u,d,f,h,l[g+1],4,-1530992060),h=_(h,u,d,f,l[g+4],11,1272893353),f=_(f,h,u,d,l[g+7],16,-155497632),d=_(d,f,h,u,l[g+10],23,-1094730640),u=_(u,d,f,h,l[g+13],4,681279174),h=_(h,u,d,f,l[g+0],11,-358537222),f=_(f,h,u,d,l[g+3],16,-722521979),d=_(d,f,h,u,l[g+6],23,76029189),u=_(u,d,f,h,l[g+9],4,-640364487),h=_(h,u,d,f,l[g+12],11,-421815835),f=_(f,h,u,d,l[g+15],16,530742520),u=w(u,d=_(d,f,h,u,l[g+2],23,-995338651),f,h,l[g+0],6,-198630844),h=w(h,u,d,f,l[g+7],10,1126891415),f=w(f,h,u,d,l[g+14],15,-1416354905),d=w(d,f,h,u,l[g+5],21,-57434055),u=w(u,d,f,h,l[g+12],6,1700485571),h=w(h,u,d,f,l[g+3],10,-1894986606),f=w(f,h,u,d,l[g+10],15,-1051523),d=w(d,f,h,u,l[g+1],21,-2054922799),u=w(u,d,f,h,l[g+8],6,1873313359),h=w(h,u,d,f,l[g+15],10,-30611744),f=w(f,h,u,d,l[g+6],15,-1560198380),d=w(d,f,h,u,l[g+13],21,1309151649),u=w(u,d,f,h,l[g+4],6,-145523070),h=w(h,u,d,f,l[g+11],10,-1120210379),f=w(f,h,u,d,l[g+2],15,718787259),d=w(d,f,h,u,l[g+9],21,-343485551),u=u+x>>>0,d=d+C>>>0,f=f+S>>>0,h=h+A>>>0}return e.endian([u,d,f,h])};s._ff=function(o,a,l,c,u,d,f){var h=o+(a&l|~a&c)+(u>>>0)+f;return(h<<d|h>>>32-d)+a},s._gg=function(o,a,l,c,u,d,f){var h=o+(a&c|l&~c)+(u>>>0)+f;return(h<<d|h>>>32-d)+a},s._hh=function(o,a,l,c,u,d,f){var h=o+(a^l^c)+(u>>>0)+f;return(h<<d|h>>>32-d)+a},s._ii=function(o,a,l,c,u,d,f){var h=o+(l^(a|~c))+(u>>>0)+f;return(h<<d|h>>>32-d)+a},s._blocksize=16,s._digestsize=16,a7.exports=function(o,a){if(o==null)throw new Error("Illegal argument "+o);var l=e.wordsToBytes(s(o,a));return a&&a.asBytes?l:a&&a.asString?r.bytesToString(l):e.bytesToHex(l)}})();var d7=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(a7.exports),oy={exports:{}};(function(e,t){(function(n,r){var s="function",o="undefined",a="object",l="string",c="major",u="model",d="name",f="type",h="vendor",g="version",b="architecture",y="console",_="mobile",w="tablet",x="smarttv",C="wearable",S="embedded",A="Amazon",O="Apple",R="ASUS",N="BlackBerry",k="Browser",L="Chrome",F="Firefox",G="Google",V="Huawei",ae="LG",ce="Microsoft",U="Motorola",J="Opera",Q="Samsung",X="Sharp",B="Sony",_e="Xiaomi",he="Zebra",ie="Facebook",oe="Chromium OS",Ce="Mac OS",me=function(de){for(var fe={},Se=0;Se<de.length;Se++)fe[de[Se].toUpperCase()]=de[Se];return fe},q=function(de,fe){return typeof de===l&&Z(fe).indexOf(Z(de))!==-1},Z=function(de){return de.toLowerCase()},ve=function(de,fe){if(typeof de===l)return de=de.replace(/^\s\s*/,""),typeof fe===o?de:de.substring(0,500)},Oe=function(de,fe){for(var Se,Pe,Ne,be,$e,pe,le=0;le<fe.length&&!$e;){var ke=fe[le],Ye=fe[le+1];for(Se=Pe=0;Se<ke.length&&!$e&&ke[Se];)if($e=ke[Se++].exec(de))for(Ne=0;Ne<Ye.length;Ne++)pe=$e[++Pe],typeof(be=Ye[Ne])===a&&be.length>0?be.length===2?typeof be[1]==s?this[be[0]]=be[1].call(this,pe):this[be[0]]=be[1]:be.length===3?typeof be[1]!==s||be[1].exec&&be[1].test?this[be[0]]=pe?pe.replace(be[1],be[2]):r:this[be[0]]=pe?be[1].call(this,pe,be[2]):r:be.length===4&&(this[be[0]]=pe?be[3].call(this,pe.replace(be[1],be[2])):r):this[be]=pe||r;le+=2}},Le=function(de,fe){for(var Se in fe)if(typeof fe[Se]===a&&fe[Se].length>0){for(var Pe=0;Pe<fe[Se].length;Pe++)if(q(fe[Se][Pe],de))return Se==="?"?r:Se}else if(q(fe[Se],de))return Se==="?"?r:Se;return de},Ke={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},j={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,g],[/opios[\/ ]+([\w\.]+)/i],[g,[d,J+" Mini"]],[/\bopr\/([\w\.]+)/i],[g,[d,J]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[g,[d,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[d,g],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[d,"UC"+k]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[g,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[g,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[d,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[g,[d,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[g,[d,"Smart Lenovo "+k]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+k],g],[/\bfocus\/([\w\.]+)/i],[g,[d,F+" Focus"]],[/\bopt\/([\w\.]+)/i],[g,[d,J+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[d,J+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[d,"MIUI "+k]],[/fxios\/([-\w\.]+)/i],[g,[d,F]],[/\bqihu|(qi?ho?o?|360)browser/i],[[d,"360 "+k]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1 "+k],g],[/samsungbrowser\/([\w\.]+)/i],[g,[d,Q+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[d,/_/g," "],g],[/metasr[\/ ]?([\d\.]+)/i],[g,[d,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[d,"Sogou Mobile"],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[d,g],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,ie],g],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[d,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[d,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[g,[d,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[d,L+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,L+" WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[d,"Android "+k]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,g],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[g,[d,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[g,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[g,Le,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[d,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[d,F+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[d,g],[/(cobalt)\/([\w\.]+)/i],[d,[g,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[b,"amd64"]],[/(ia32(?=;))/i],[[b,Z]],[/((?:i[346]|x)86)[;\)]/i],[[b,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[b,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[b,"armhf"]],[/windows (ce|mobile); ppc;/i],[[b,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[b,/ower/,"",Z]],[/(sun4\w)[;\)]/i],[[b,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[b,Z]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[u,[h,Q],[f,w]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[u,[h,Q],[f,_]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[h,O],[f,_]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[h,O],[f,w]],[/(macintosh);/i],[u,[h,O]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[h,X],[f,_]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[h,V],[f,w]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[h,V],[f,_]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[u,/_/g," "],[h,_e],[f,_]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[h,_e],[f,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[h,"OPPO"],[f,_]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[h,"Vivo"],[f,_]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[u,[h,"Realme"],[f,_]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[h,U],[f,_]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[h,U],[f,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[h,ae],[f,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[h,ae],[f,_]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[h,"Lenovo"],[f,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[h,"Nokia"],[f,_]],[/(pixel c)\b/i],[u,[h,G],[f,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[h,G],[f,_]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[u,[h,B],[f,_]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[h,B],[f,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[h,"OnePlus"],[f,_]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[h,A],[f,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[h,A],[f,_]],[/(playbook);[-\w\),; ]+(rim)/i],[u,h,[f,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[h,N],[f,_]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[h,R],[f,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[h,R],[f,_]],[/(nexus 9)/i],[u,[h,"HTC"],[f,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[u,/_/g," "],[f,_]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[h,"Acer"],[f,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[h,"Meizu"],[f,_]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[u,[h,"Ulefone"],[f,_]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,u,[f,_]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,u,[f,w]],[/(surface duo)/i],[u,[h,ce],[f,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[h,"Fairphone"],[f,_]],[/(u304aa)/i],[u,[h,"AT&T"],[f,_]],[/\bsie-(\w*)/i],[u,[h,"Siemens"],[f,_]],[/\b(rct\w+) b/i],[u,[h,"RCA"],[f,w]],[/\b(venue[\d ]{2,7}) b/i],[u,[h,"Dell"],[f,w]],[/\b(q(?:mv|ta)\w+) b/i],[u,[h,"Verizon"],[f,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[h,"Barnes & Noble"],[f,w]],[/\b(tm\d{3}\w+) b/i],[u,[h,"NuVision"],[f,w]],[/\b(k88) b/i],[u,[h,"ZTE"],[f,w]],[/\b(nx\d{3}j) b/i],[u,[h,"ZTE"],[f,_]],[/\b(gen\d{3}) b.+49h/i],[u,[h,"Swiss"],[f,_]],[/\b(zur\d{3}) b/i],[u,[h,"Swiss"],[f,w]],[/\b((zeki)?tb.*\b) b/i],[u,[h,"Zeki"],[f,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],u,[f,w]],[/\b(ns-?\w{0,9}) b/i],[u,[h,"Insignia"],[f,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[h,"NextBook"],[f,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],u,[f,_]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],u,[f,_]],[/\b(ph-1) /i],[u,[h,"Essential"],[f,_]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[h,"Envizen"],[f,w]],[/\b(trio[-\w\. ]+) b/i],[u,[h,"MachSpeed"],[f,w]],[/\btu_(1491) b/i],[u,[h,"Rotor"],[f,w]],[/(shield[\w ]+) b/i],[u,[h,"Nvidia"],[f,w]],[/(sprint) (\w+)/i],[h,u,[f,_]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[h,ce],[f,_]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[h,he],[f,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[h,he],[f,_]],[/smart-tv.+(samsung)/i],[h,[f,x]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[h,Q],[f,x]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,ae],[f,x]],[/(apple) ?tv/i],[h,[u,O+" TV"],[f,x]],[/crkey/i],[[u,L+"cast"],[h,G],[f,x]],[/droid.+aft(\w+)( bui|\))/i],[u,[h,A],[f,x]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[h,X],[f,x]],[/(bravia[\w ]+)( bui|\))/i],[u,[h,B],[f,x]],[/(mitv-\w{5}) bui/i],[u,[h,_e],[f,x]],[/Hbbtv.*(technisat) (.*);/i],[h,u,[f,x]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,ve],[u,ve],[f,x]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,x]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,u,[f,y]],[/droid.+; (shield) bui/i],[u,[h,"Nvidia"],[f,y]],[/(playstation [345portablevi]+)/i],[u,[h,B],[f,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[h,ce],[f,y]],[/((pebble))app/i],[h,u,[f,C]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[h,O],[f,C]],[/droid.+; (glass) \d/i],[u,[h,G],[f,C]],[/droid.+; (wt63?0{2,3})\)/i],[u,[h,he],[f,C]],[/(quest( 2| pro)?)/i],[u,[h,ie],[f,C]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[f,S]],[/(aeobc)\b/i],[u,[h,A],[f,S]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[u,[f,_]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[f,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,_]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[d,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[d,g],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,g],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[d,[g,Le,Ke]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[g,Le,Ke],[d,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,Ce],[g,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,d],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[d,g],[/\(bb(10);/i],[g,[d,N]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[g,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[d,F+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[d,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[g,[d,"watchOS"]],[/crkey\/([\d\.]+)/i],[g,[d,L+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[d,oe],g],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[d,g],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[d,g]]},K=function(de,fe){if(typeof de===a&&(fe=de,de=r),!(this instanceof K))return new K(de,fe).getResult();var Se=typeof n!==o&&n.navigator?n.navigator:r,Pe=de||(Se&&Se.userAgent?Se.userAgent:""),Ne=Se&&Se.userAgentData?Se.userAgentData:r,be=fe?function(pe,le){var ke={};for(var Ye in pe)le[Ye]&&le[Ye].length%2==0?ke[Ye]=le[Ye].concat(pe[Ye]):ke[Ye]=pe[Ye];return ke}(j,fe):j,$e=Se&&Se.userAgent==Pe;return this.getBrowser=function(){var pe={};return pe[d]=r,pe[g]=r,Oe.call(pe,Pe,be.browser),pe[c]=function(le){return typeof le===l?le.replace(/[^\d\.]/g,"").split(".")[0]:r}(pe[g]),$e&&Se&&Se.brave&&typeof Se.brave.isBrave==s&&(pe[d]="Brave"),pe},this.getCPU=function(){var pe={};return pe[b]=r,Oe.call(pe,Pe,be.cpu),pe},this.getDevice=function(){var pe={};return pe[h]=r,pe[u]=r,pe[f]=r,Oe.call(pe,Pe,be.device),$e&&!pe[f]&&Ne&&Ne.mobile&&(pe[f]=_),$e&&pe[u]=="Macintosh"&&Se&&typeof Se.standalone!==o&&Se.maxTouchPoints&&Se.maxTouchPoints>2&&(pe[u]="iPad",pe[f]=w),pe},this.getEngine=function(){var pe={};return pe[d]=r,pe[g]=r,Oe.call(pe,Pe,be.engine),pe},this.getOS=function(){var pe={};return pe[d]=r,pe[g]=r,Oe.call(pe,Pe,be.os),$e&&!pe[d]&&Ne&&Ne.platform!="Unknown"&&(pe[d]=Ne.platform.replace(/chrome os/i,oe).replace(/macos/i,Ce)),pe},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return Pe},this.setUA=function(pe){return Pe=typeof pe===l&&pe.length>500?ve(pe,500):pe,this},this.setUA(Pe),this};K.VERSION="1.0.37",K.BROWSER=me([d,g,c]),K.CPU=me([b]),K.DEVICE=me([u,h,f,y,_,x,w,C,S]),K.ENGINE=K.OS=me([d,g]),e.exports&&(t=e.exports=K),t.UAParser=K;var se=typeof n!==o&&(n.jQuery||n.Zepto);if(se&&!se.ua){var Ae=new K;se.ua=Ae.getResult(),se.ua.get=function(){return Ae.getUA()},se.ua.set=function(de){Ae.setUA(de);var fe=Ae.getResult();for(var Se in fe)se.ua[Se]=fe[Se]}}})(typeof window=="object"?window:du)})(oy,oy.exports);var xle=oy.exports,Ale=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(function(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")})(this,e);var s=r.appKey,o=r.ratio,a=o===void 0?10:o,l=r.env,c=l===void 0?"production":l,u=r.appVersion,d=u===void 0?"0.0.1":u,f=r.whiteScreenConfig,h=f===void 0?{target:document.body,screenshot:!0,score:1.5,domDepth:6}:f;this.appKey=s,this.sdkVersion="1.1.6",this.ratio=Math.max(0,Math.min(a,100)),this.env=c,this.appVersion=d,this.whiteScreenConfig=h,this.sid=this.sessionid(),this.timeDifference=0,this.host="qapm.360.cn"}var t,n;return t=e,n=[{key:"getUA",value:function(){var r,s=new xle.UAParser().getResult();if(s.browser.name==="360 Browser"){var o=window.navigator.userAgent;/360EE/.test(o)&&(s.browser.name="360极速浏览器"),/360SE/.test(o)&&(s.browser.name="360安全浏览器")}return{os:s.os.name,osVersion:s.os.version,browser:s.browser.name,browserVersion:s.browser.version,ua:s.ua,device:s.device.model||"Unknow",deviceType:s.device.type||"Pc",network:(r=window.navigator)===null||r===void 0||(r=r.connection)===null||r===void 0?void 0:r.effectiveType}}},{key:"uid",value:function(){if(localStorage.getItem("__QAPM_UID__"))return localStorage.getItem("__QAPM_UID__");var r=this.mid()||d7(""+Date.now()+1e9*Math.random());return localStorage.setItem("__QAPM_UID__",r),r}},{key:"mid",value:function(){var r="";try{r=external.GetMID(external.GetSID(window))}catch(s){}if(!r)try{r=window.wdextcmd.GetMid()}catch(s){}return r||""}},{key:"sessionid",value:function(){return d7(""+Date.now()+1e9*Math.random())}},{key:"isIE",value:function(){var r=window.navigator.userAgent;return r.indexOf("MSIE")!==-1||r.indexOf("Trident")!==-1}},{key:"padLeft",value:function(r,s,o){for(var a=r+"";a.length<s;)a=(o||"0")+a;return a}},{key:"formatTime",value:function(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Y-m-d H:i:s";return r?(typeof r!="number"&&typeof r!="string"||r.length===10&&(r*=1e3),r=new Date(r),s.replace(/Y/g,this.padLeft(r.getFullYear(),4)).replace(/m/g,this.padLeft(r.getMonth()+1,2)).replace(/d/g,this.padLeft(r.getDate(),2)).replace(/H/g,this.padLeft(r.getHours(),2)).replace(/i/g,this.padLeft(r.getMinutes(),2)).replace(/s/g,this.padLeft(r.getSeconds(),2))):""}},{key:"formatDate",value:function(r){return this.formatTime(r,"Y-m-d")}},{key:"getTime",value:function(){var r=new Date().getTime()+this.timeDifference;return{time:this.formatTime(r)||r,date:this.formatDate(r)||r}}},{key:"calcRatio",value:function(){return Math.floor(100*Math.random())<this.ratio}},{key:"initTime",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{var s=new URL("".concat(window.location.protocol,"//").concat(this.host,"/time"));Object.entries(r).map(function(o){var a=zZ(o,2),l=a[0],c=a[1];s.searchParams.set(l,c)}),this.fetch(s.toString())}catch(o){console.error("initTime Error",o)}}},{key:"fetch",get:function(){return window.fetch?window.fetch.bind(window):function(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new Promise(function(o,a){var l=new XMLHttpRequest;s.keepalive&&(l.keepalive=!0),l.open(s.method||"GET",r),l.onload=function(){o({text:function(){return Promise.resolve(l.responseText)}})},l.onerror=function(){a(l)},l.send(s.body)})}}}],n&&VZ(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),f7=function(e,t){if(PerformanceObserver)if((PerformanceObserver.supportedEntryTypes||[]).includes(e))try{new PerformanceObserver(function(n){n&&t(n)}).observe({type:e,buffered:!0})}catch(n){t("err")}else t("err");else t("err")},In=function(e){var t=Math.min(Math.max(e,0),15e3);return Number.isNaN(t)?0:t%1!=0?Number(t.toFixed(2)):t},Ple=function(){function e(t){dh(this,e),vs(this,"performanceData",{fcp:0,fp:0,lcp:0}),vs(this,"commit",function(){}),this.webCoreIns=t}return fh(e,[{key:"init",value:function(){try{if(!((t=window.performance)&&t.getEntriesByType&&t.timing))return;this.calcPerformanceTime()}catch(n){}var t}},{key:"calcNavigation",value:function(t){}},{key:"calcPerformanceTime",value:function(){var t=this;Promise.all([new Promise(function(n,r){var s=window.performance.timing,o=null;window.addEventListener("load",function a(){if(s.loadEventEnd>0){clearTimeout(o);var l=In(s.unloadEnd-s.unloadStart),c=In(s.redirectStart-s.redirectEnd),u=In(s.domainLookupStart-s.fetchStart),d=In(s.domainLookupEnd-s.domainLookupStart),f=In(s.connectEnd-s.connectStart),h=In(s.secureConnectionStart==0?0:s.connectEnd-s.secureConnectionStart),g=In(s.responseStart-s.requestStart),b=In(s.domInteractive-s.fetchStart),y=In(s.responseEnd-s.responseStart),_=In(s.domContentLoadedEventEnd-s.fetchStart),w=In(s.domInteractive-s.responseEnd),x=In(s.loadEventStart-s.domContentLoadedEventEnd),C=In(s.loadEventEnd-s.loadEventStart),S=In(s.loadEventEnd-s.fetchStart);n({unloadTime:l,redirectTime:c,appCacheTime:u,dnsTime:d,tcpTime:f,sslTime:h,ttfb:g,contentTime:y,domParseTime:w,tti:b,domReadyTime:_,loadEventTime:C,loadFinishTime:S,loadResourceTime:x,resource:""})}else o=setTimeout(a,100)},!1)}),new Promise(function(n,r){f7("paint",function(s){var o=0,a=0;if(s!=="err"){var l,c=Mv(s.getEntries());try{for(c.s();!(l=c.n()).done;){var u=l.value,d=u.name,f=u.startTime;d==="first-paint"&&(o=In(f)),d==="first-contentful-paint"&&(a=In(f))}}catch(h){c.e(h)}finally{c.f()}}n({fp:o,fcp:a})})}).catch(function(n){return console.log(n)}),new Promise(function(n,r){f7("largest-contentful-paint",function(s){if(s=="err")n({lcp:0});else{var o,a=Mv(s.getEntries());try{for(a.s();!(o=a.n()).done;){var l=o.value;n({lcp:In(l.startTime)})}}catch(c){a.e(c)}finally{a.f()}}})}).catch(function(n){return console.log(n)})]).then(function(){var n=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).reduce(function(r,s){return lu(lu({},r),s)},t.performanceData);n.type="performance",t.webCoreIns.commit(n)}).catch(function(n){console.log(n)})}},{key:"calcResourceTime",value:function(){}}]),e}(),Tle=["SCRIPT","STYLE","META","HEAD"];function ay(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document.body,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;if(!e||n>r||Tle.indexOf(e.tagName)>-1||s&&t>s)return n;var o=function(a,l){if(!l||!document.querySelector(a.tagName))return 0;var c=a.getBoundingClientRect(),u=c.top,d=c.height;return u>window.innerHeight||d<=0?0:1/Math.pow(2,l-1)}(e,t);return[].reduceRight.call(e.children,function(a,l){return ay(l,t+1,a,r,s)},n+o)}var Ole=0,ly={},Nle=function(e){if(!e)return Promise.reject("empty url");var t=ly[e];return t?Promise.resolve(t):new Promise(function(n,r){var s=document.createElement("script");if(s.id="script".concat(Ole++),s.src=e,s.async="async",s.src.indexOf("http")!==0)throw Error("load-script只能加载http/https协议的url,当前协议是".concat(location.protocol));s.onerror=function(o){$("#".concat(s.id)).remove(),r(o)},s.readyState?s.onreadystatechange=function(o){s.readyState!="loaded"&&s.readyState!="complete"||(s.onreadystatechange=null,ly[e]=o,n(o))}:s.onload=function(o){ly[e]=o,n(o)},document.body.appendChild(s)})};function Ile(e,t){return h7.apply(this,arguments)}function h7(){return(h7=cu(sr().mark(function e(t,n){var r,s,o;return sr().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,Nle("https://html2canvas.hertzen.com/dist/html2canvas.min.js");case 2:return a.next=4,html2canvas(document.body,{useCORS:!0});case 4:return r=a.sent,s=r.toDataURL("image/jpeg",.3),o=Rle(s),a.next=9,Dle(o,t,n);case 9:return a.abrupt("return",a.sent);case 10:case"end":return a.stop()}},e)}))).apply(this,arguments)}function Rle(e){for(var t=e.split(","),n=t[0].match(/:(.*?);/)[1],r=atob(t[1]),s=r.length,o=new Uint8Array(s);s--;)o[s]=r.charCodeAt(s);return new Blob([o],{type:n})}function Dle(e,t,n){return p7.apply(this,arguments)}function p7(){return(p7=cu(sr().mark(function e(t,n,r){var s,o;return sr().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return(s=new FormData).append("filename",t,"".concat(r,".png")),s.append("https",1),a.next=5,n("//qapm.360.cn/api/upload/uploadImg",{method:"POST",body:s,keepalive:!0}).then(function(l){return l.json()});case 5:return o=a.sent,a.abrupt("return",o);case 7:case"end":return a.stop()}},e)}))).apply(this,arguments)}var Lle=function(){function e(n){dh(this,e),vs(this,"isLoaded",!1),vs(this,"timer",null),vs(this,"whiteCount",0),vs(this,"maxLoopNumber",2),vs(this,"isReport",!1),this.webCoreIns=n;var r=n.config.whiteScreenConfig||{},s=r.target,o=r.score,a=o===void 0?1.5:o;r.screenshot;var l=r.domDepth,c=l===void 0?6:l;this.target=s,this.score=a,this.screenshot=!1,this.domDepth=c,this.fetch=n.fetch}var t;return fh(e,[{key:"init",value:function(){var n=this;window.addEventListener("load",function(){n.isLoaded=!0,n.handle()}),window.addEventListener("error",function(){n.isLoaded&&(n.whiteCount=n.maxLoopNumber,n.handle())})}},{key:"getTarget",value:function(){var n;try{n=this.target?document.querySelector(this.target):document.body}catch(r){console.log("sdk入参target有误:",this.target)}return n||console.log("sdk入参target有误:",this.target),n||document.body}},{key:"handle",value:function(){var n=ay(this.getTarget(),0,0,this.score,this.domDepth);this.whiteCount+=1,n<=this.score?this.openLoopToJudge(n):this.whiteCount=0}},{key:"openLoopToJudge",value:function(n){var r=this;this.whiteCount>=this.maxLoopNumber?this.commit(n):this.timer=setTimeout(function(){var s=ay(r.target,0,0,r.score,r.domDepth);r.whiteCount+=1,s<=r.score?(clearTimeout(r.timer),r.timer=null,r.openLoopToJudge(s)):(clearTimeout(r.timer),r.timer=null,r.whiteCount=0)},1e3)}},{key:"commit",value:(t=cu(sr().mark(function n(r){return sr().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!this.isReport){s.next=2;break}return s.abrupt("return");case 2:this.isReport=!0,this.screenshot&&Ile(this.fetch,this.webCoreIns.sid),this.webCoreIns.commit({type:"whiteScreen",score:r});case 5:case"end":return s.stop()}},n,this)})),function(n){return t.apply(this,arguments)})}]),e}(),kle=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,gp="js",Fu="resource",g7="unhandledrejection",mp="cors",m7="vue",v7="react";function Mle(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vp,Bu,b7={exports:{}},y7={exports:{}};vp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Bu={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&Bu.rotl(e,8)|4278255360&Bu.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=Bu.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var t=[],n=0;n<e.length;n+=3)for(var r=e[n]<<16|e[n+1]<<8|e[n+2],s=0;s<4;s++)8*n+6*s<=8*e.length?t.push(vp.charAt(r>>>6*(3-s)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],n=0,r=0;n<e.length;r=++n%4)r!=0&&t.push((vp.indexOf(e.charAt(n-1))&Math.pow(2,-2*r+8)-1)<<2*r|vp.indexOf(e.charAt(n))>>>6-2*r);return t}},y7.exports=Bu;var Fle=y7.exports,cy={utf8:{stringToBytes:function(e){return cy.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(cy.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}},_7=cy,Ble=function(e){return e!=null&&(w7(e)||function(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&w7(t.slice(0,0))}(e)||!!e._isBuffer)};function w7(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}(function(){var e=Fle,t=_7.utf8,n=Ble,r=_7.bin,s=function(o,a){o.constructor==String?o=a&&a.encoding==="binary"?r.stringToBytes(o):t.stringToBytes(o):n(o)?o=Array.prototype.slice.call(o,0):Array.isArray(o)||o.constructor===Uint8Array||(o=o.toString());for(var l=e.bytesToWords(o),c=8*o.length,u=1732584193,d=-271733879,f=-1732584194,h=271733878,g=0;g<l.length;g++)l[g]=16711935&(l[g]<<8|l[g]>>>24)|4278255360&(l[g]<<24|l[g]>>>8);l[c>>>5]|=128<<c%32,l[14+(c+64>>>9<<4)]=c;var b=s._ff,y=s._gg,_=s._hh,w=s._ii;for(g=0;g<l.length;g+=16){var x=u,C=d,S=f,A=h;u=b(u,d,f,h,l[g+0],7,-680876936),h=b(h,u,d,f,l[g+1],12,-389564586),f=b(f,h,u,d,l[g+2],17,606105819),d=b(d,f,h,u,l[g+3],22,-1044525330),u=b(u,d,f,h,l[g+4],7,-176418897),h=b(h,u,d,f,l[g+5],12,1200080426),f=b(f,h,u,d,l[g+6],17,-1473231341),d=b(d,f,h,u,l[g+7],22,-45705983),u=b(u,d,f,h,l[g+8],7,1770035416),h=b(h,u,d,f,l[g+9],12,-1958414417),f=b(f,h,u,d,l[g+10],17,-42063),d=b(d,f,h,u,l[g+11],22,-1990404162),u=b(u,d,f,h,l[g+12],7,1804603682),h=b(h,u,d,f,l[g+13],12,-40341101),f=b(f,h,u,d,l[g+14],17,-1502002290),u=y(u,d=b(d,f,h,u,l[g+15],22,1236535329),f,h,l[g+1],5,-165796510),h=y(h,u,d,f,l[g+6],9,-1069501632),f=y(f,h,u,d,l[g+11],14,643717713),d=y(d,f,h,u,l[g+0],20,-373897302),u=y(u,d,f,h,l[g+5],5,-701558691),h=y(h,u,d,f,l[g+10],9,38016083),f=y(f,h,u,d,l[g+15],14,-660478335),d=y(d,f,h,u,l[g+4],20,-405537848),u=y(u,d,f,h,l[g+9],5,568446438),h=y(h,u,d,f,l[g+14],9,-1019803690),f=y(f,h,u,d,l[g+3],14,-187363961),d=y(d,f,h,u,l[g+8],20,1163531501),u=y(u,d,f,h,l[g+13],5,-1444681467),h=y(h,u,d,f,l[g+2],9,-51403784),f=y(f,h,u,d,l[g+7],14,1735328473),u=_(u,d=y(d,f,h,u,l[g+12],20,-1926607734),f,h,l[g+5],4,-378558),h=_(h,u,d,f,l[g+8],11,-2022574463),f=_(f,h,u,d,l[g+11],16,1839030562),d=_(d,f,h,u,l[g+14],23,-35309556),u=_(u,d,f,h,l[g+1],4,-1530992060),h=_(h,u,d,f,l[g+4],11,1272893353),f=_(f,h,u,d,l[g+7],16,-155497632),d=_(d,f,h,u,l[g+10],23,-1094730640),u=_(u,d,f,h,l[g+13],4,681279174),h=_(h,u,d,f,l[g+0],11,-358537222),f=_(f,h,u,d,l[g+3],16,-722521979),d=_(d,f,h,u,l[g+6],23,76029189),u=_(u,d,f,h,l[g+9],4,-640364487),h=_(h,u,d,f,l[g+12],11,-421815835),f=_(f,h,u,d,l[g+15],16,530742520),u=w(u,d=_(d,f,h,u,l[g+2],23,-995338651),f,h,l[g+0],6,-198630844),h=w(h,u,d,f,l[g+7],10,1126891415),f=w(f,h,u,d,l[g+14],15,-1416354905),d=w(d,f,h,u,l[g+5],21,-57434055),u=w(u,d,f,h,l[g+12],6,1700485571),h=w(h,u,d,f,l[g+3],10,-1894986606),f=w(f,h,u,d,l[g+10],15,-1051523),d=w(d,f,h,u,l[g+1],21,-2054922799),u=w(u,d,f,h,l[g+8],6,1873313359),h=w(h,u,d,f,l[g+15],10,-30611744),f=w(f,h,u,d,l[g+6],15,-1560198380),d=w(d,f,h,u,l[g+13],21,1309151649),u=w(u,d,f,h,l[g+4],6,-145523070),h=w(h,u,d,f,l[g+11],10,-1120210379),f=w(f,h,u,d,l[g+2],15,718787259),d=w(d,f,h,u,l[g+9],21,-343485551),u=u+x>>>0,d=d+C>>>0,f=f+S>>>0,h=h+A>>>0}return e.endian([u,d,f,h])};s._ff=function(o,a,l,c,u,d,f){var h=o+(a&l|~a&c)+(u>>>0)+f;return(h<<d|h>>>32-d)+a},s._gg=function(o,a,l,c,u,d,f){var h=o+(a&c|l&~c)+(u>>>0)+f;return(h<<d|h>>>32-d)+a},s._hh=function(o,a,l,c,u,d,f){var h=o+(a^l^c)+(u>>>0)+f;return(h<<d|h>>>32-d)+a},s._ii=function(o,a,l,c,u,d,f){var h=o+(l^(a|~c))+(u>>>0)+f;return(h<<d|h>>>32-d)+a},s._blocksize=16,s._digestsize=16,b7.exports=function(o,a){if(o==null)throw new Error("Illegal argument "+o);var l=e.wordsToBytes(s(o,a));return a&&a.asBytes?l:a&&a.asString?r.bytesToString(l):e.bytesToHex(l)}})();var jle=Mle(b7.exports);function Ule(e){var t=e.match(kle);return t?{filename:t[2],functionName:t[1]||"",lineno:parseInt(t[3],10)||void 0,colno:parseInt(t[4],10)||void 0}:{}}function bp(e){var t=(e||{stack:""}).stack;if(!t)return[];var n,r=[],s=Mv(t.split(`
|
|
154
|
-
`).slice(1));try{for(s.s();!(n=s.n()).done;){var o=Ule(n.value);o&&r.push(o)}}catch(a){s.e(a)}finally{s.f()}return r.slice(0,10)}var kl=function(e){return jle(e).toString()},uy=function(e){return e instanceof ErrorEvent?e.message==="Script error."?mp:gp:Fu},$le=function(){function e(t){dh(this,e),vs(this,"errorIdSet",new Set),this.webCoreIns=t,this.errorIdSet=new Set}return fh(e,[{key:"init",value:function(){var t;if(this.initJsError(),this.initResourceError(),this.initPromiseError(),this.initCorsError(),(t=window.__QAPM__)!==null&&t!==void 0&&(t=t.q)!==null&&t!==void 0&&t.length){var n={error:this.onJSError.bind(this),reject:this.onPromiseError.bind(this)};window.__QAPM__.q.forEach(function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=r.type,o=r.event,a=n[s];a&&a(o)}),window.__QAPM__.q=[]}}},{key:"initJsError",value:function(){var t=this;window.addEventListener("error",function(n){return t.onJSError(n)},!0)}},{key:"initResourceError",value:function(){var t=this;window.addEventListener("error",function(n){return t.onResourceError(n)},!0)}},{key:"initPromiseError",value:function(){var t=this;window.addEventListener("unhandledrejection",function(n){return t.onPromiseError(n)},!0)}},{key:"initCorsError",value:function(){var t=this;window.addEventListener("error",function(n){return function(r){if(uy(r)===mp){var s={errorType:mp,errorMessage:r.message,errorSummary:"CorsError",errorId:kl("".concat(mp,"-").concat(r.message))};t.commit(s)}}(n)},!0)}},{key:"onResourceError",value:function(t){if(uy(t)===Fu){var n=t.target||t.srcElement,r=n.src||n.href,s=JSON.stringify(Fu+": "+r||"UnKnown Resource"),o={errorType:Fu,errorMessage:s,errorSummary:"ResourceError",errorId:kl("".concat(Fu,"-").concat(s))};this.commit(o)}}},{key:"onJSError",value:function(t){var n,r;if(uy(t)===gp){var s=JSON.stringify(t.message),o=function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"unknown";if(!l)return c;try{var u=new URL(l);return u.pathname&&u.pathname.endsWith(".js")?l:c}catch(d){return l}}(t.filename,(n=this.webCoreIns.config)===null||n===void 0?void 0:n.appKey),a={errorType:gp,errorMessage:s,errorSummary:t.error&&((r=t.error)===null||r===void 0?void 0:r.name)||"UnKnown",errorStack:JSON.stringify(bp(t.error)),errorId:kl("".concat(gp,"-").concat(s,"-").concat(o))};this.commit(a)}}},{key:"onPromiseError",value:function(t){var n,r,s=JSON.stringify(((n=t.reason)===null||n===void 0?void 0:n.message)||t.reason||"UnKnown"),o=((r=t.reason)===null||r===void 0?void 0:r.name)||"UnKnown",a={errorType:g7,errorMessage:s,errorSummary:o,errorStack:JSON.stringify(bp(t.reason)),errorId:kl("".concat(g7,"-").concat(s,"-").concat(o))};this.commit(a)}},{key:"onVueError",value:function(t,n,r){var s=JSON.stringify(t.message),o={errorType:m7,errorMessage:s,errorSummary:t.name||"UnKnown",errorStack:JSON.stringify(bp(t)),errorId:kl("".concat(m7,"-").concat(s,"-").concat(t.name))};this.commit(o)}},{key:"onReactError",value:function(t,n){var r=JSON.stringify(t.message),s={errorType:v7,errorMessage:r,errorSummary:t.name||"UnKnown",errorStack:JSON.stringify(bp(t)),errorId:kl("".concat(v7,"-").concat(r,"-").concat(t.name))};this.commit(s)}},{key:"commit",value:function(t){var n=t.errorId;this.errorIdSet.has(n)||(this.errorIdSet.add(n),this.webCoreIns.commit(lu({type:"error"},t)))}}]),e}(),Vle=function(e){function t(){var s,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return dh(this,t),(s=jZ(this,t,[o])).config=o,s.isReport()?(s.PerformancePluginInstance=new Ple(uu(s)),s.WhiteScreenPluginInstance=new Lle(uu(s)),s.ErrorPluginInstance=new $le(uu(s)),s.plugins=[s.PerformancePluginInstance,s.WhiteScreenPluginInstance,s.ErrorPluginInstance],s.init(),J4(t,t,Ml,uu(s)),s):G4(s)}var n,r;return function(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),o&&kv(s,o)}(t,Ale),fh(t,[{key:"isReport",value:function(){var s=this.isIE(),o=this.calcRatio();return this.config.appKey&&o&&!s}},{key:"init",value:(r=cu(sr().mark(function s(){return sr().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:this.initTime(this.mixed()),this.plugins.forEach(function(a){try{a.init()}catch(l){console.error("initPlugin Error",l)}});case 2:case"end":return o.stop()}},s,this)})),function(){return r.apply(this,arguments)})},{key:"mixed",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=this.uid(),a=this.getTime(),l=a.time,c=a.date,u=this.getUA(),d=window.location,f=d.host,h=d.origin,g=d.pathname;return lu(lu({uid:o,sid:this.sid,url:window.location.href,host:f,fullPath:h+g,sdkVersion:this.sdkVersion,createDate:c,appKey:this.config.appKey,createTime:l,appVersion:this.appVersion,env:this.env},u),s)}},{key:"commit",value:(n=cu(sr().mark(function s(o){var a,l;return sr().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:try{a=this.mixed(o),l=new URL("".concat(window.location.protocol,"//").concat(this.host,"/log.gif")),Object.entries(a).map(function(u){var d=UZ(u,2),f=d[0],h=d[1];l.searchParams.set(f,h)}),new Image().src=l.toString()}catch(u){console.log("commit Error",u)}case 1:case"end":return c.stop()}},s,this)})),function(s){return n.apply(this,arguments)})}],[{key:"install",value:function(s){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ph(t,t,Ml)||(s.config.errorHandler=function(a,l,c){ph(t,t,Ml).ErrorPluginInstance.onVueError(a,l,c),console.error(a)},J4(t,t,Ml,new t(o)))}},{key:"sendError",value:function(s){ph(t,t,Ml)?ph(t,t,Ml).ErrorPluginInstance.onReactError(s):console.error("QAPM: 请先初始化 QAPM!")}}]),t}(),Ml={writable:!0,value:null};const rge="",sge="",zle={components:{InfoFilled:vm,ArrowRight:gm},mixins:[Or],inject:["hasLevel"],props:{axis:{required:!0,type:Object,default:()=>({x:0,y:0})},show:{required:!0,type:Boolean,default:!1},nodeInfo:{required:!0,type:Array,default:()=>[]},menuOptions:{required:!0,type:Array,default:()=>[]},border:{type:Boolean,required:!1,default:!0},itemWidth:{type:Number,required:!1,default:206},itemHeight:{type:Number,required:!1,default:36},itemSize:{type:Number,required:!1,default:14},offset:{type:Object,required:!1,default:()=>({x:6,y:2})},borderWidth:{type:Number,required:!1,default:6},history:{type:Object,required:!0,default:()=>{}},moduleDetail:{type:Object,required:!0,default:()=>{}}},emits:["contextmenu-click"],data(){return{checkedItems:{},globalMenus:gH,maxMulti:6}},computed:{checkboxMenu(){return this.nodeInfo.length>1?[]:this.menuOptions},canGoDetail(){var e,t,n,r;return((t=(e=this.moduleDetail)==null?void 0:e.config)==null?void 0:t.jumpDetail)&&((r=this.moduleDetail)==null?void 0:r.config.jumpRule[(n=this.nodeInfo[0])==null?void 0:n.type])},systemMenu(){var r,s,o,a,l,c,u;const e=[];if(this.nodeInfo.length===1){const d=this.nodeInfo[0];d.type!=="aggregation"&&d.type!=="nodeType"&&(e.push($0),(r=this.history.keyNodeIds)!=null&&r.some(_=>_===d.id)||(e.push(q0),(o=(s=this.moduleDetail)==null?void 0:s.config)!=null&&o.hideCollectMenu||e.push(d.collect?z0:V0),e.push(d.textProp==="name"?B0:F0),d.label&&e.push(d.textProp==="label"?j0:U0)),this.canGoDetail&&e.push(QS)),e.push(d.fx?M0:k0);const f=this.history.dataNow.links.some(y=>y.source.id===d.id&&y.target.type==="aggregation"),b=this.history.dataNow.links.filter(y=>y.source.id===d.id).map(y=>y.target).some(y=>{let _=0;return this.history.dataNow.links.map(w=>{w.source.id===y.id&&_++}),_===0});f||d.type==="aggregation"?e.push(YS):b&&e.push(JS),b&&e.push(KS),e.push(H0)}else this.nodeInfo.length>1?(e.push(q0,$0),e.push(this.nodeInfo.some(f=>!f.collect)?V0:z0),this.nodeInfo.some(f=>f.label)&&e.push(this.nodeInfo.some(f=>f.textProp!=="label")?U0:j0),e.push(this.nodeInfo.some(f=>f.textProp!=="name")?F0:B0),e.push(this.nodeInfo.some(f=>!f.fx)?k0:M0),e.push(H0)):this.nodeInfo.length===0&&(this.history.dataNow.nodes.some(f=>f.label)&&e.push(this.history.dataNow.nodes.some(f=>f.textProp!=="label")?HS:qS),e.push(this.history.dataNow.nodes.some(f=>f.textProp!=="name")?VS:zS),e.push(this.history.dataNow.nodes.some(f=>!f.fx)?US:$S),this.history.currentIndex>0&&e.push(GS),this.history.currentIndex<this.history.length-1&&e.push(WS));const t=(a=this.nodeInfo[0])==null?void 0:a.type,n=(u=(c=(l=this.nodeInfo[0])==null?void 0:l.detail)==null?void 0:c.info)==null?void 0:u.extraNodeContextMenus;return t!=="nodeType"&&(n!=null&&n.length)&&(n.forEach(d=>{d.icon||(d.icon="button_edit_label")}),e.push(...n)),e},totalHeight(){let e=this.menuOptions.length*(this.itemHeight+5)+10+44+48+5,t=this.systemMenu.length*(this.itemHeight+5)+10+44+5;return e=this.menuOptions.length===0?0:44,t=this.systemMenu.length===0?0:44,e+t},axisComputed(){const e=document.getElementsByClassName("d3-container")[0],t=this.axis.top-e.offsetTop;return{top:(t<e.offsetHeight/2?Math.min(t+this.offset.y,Math.max(e.offsetHeight-this.totalHeight,e.getBoundingClientRect().top)):Math.max(t+this.offset.y,this.totalHeight+e.getBoundingClientRect().top))+"px",left:this.axis.left+this.offset.x+"px",transform:`translate(${this.axis.left>e.offsetWidth/2?"-100%":"0%"}, ${t>e.offsetHeight/2?"-100%":"0%"})`}},liStyle(){return{width:this.itemWidth+"px",height:this.itemHeight+"px",lineHeight:this.itemHeight+"px",fontSize:this.itemSize+"px"}},firstLeft(){const e=document.body.offsetWidth;return this.axis.left+this.itemWidth*2>=e},secondLeft(){const e=document.body.offsetWidth;return this.axis.left+this.itemWidth*3>=e},checkedItemsFinal(){return Object.keys(this.checkedItems).filter(e=>this.checkedItems[e]).map(e=>this.checkedItems[e])},haveInterface(){let e=!1;return this.menuOptions.map(t=>{t.type===1&&(e=!0)}),e}},watch:{show(){this.checkedItems={}}},methods:{handleCollapse(){},isSystemItem(e){return e.type===2},isExternalItem(e){return e.type===3},hasChildren(e){var t;return((t=e==null?void 0:e.children)==null?void 0:t.length)>0},onCheck(e,t){this.checkedItems[t.name]=e.currentTarget.checked?t:!1},secondBorderCheck(e,t=0){const n=document.body.offsetWidth,r=document.body.offsetHeight,s=this.axis.top+(e+t)*this.itemHeight;return{width:this.itemWidth*2+60+"px",left:this.axis.left+this.itemWidth*2>=n?"-100%":"100%",top:r>=s?0:"auto",bottom:r<s?0:"auto"}},thirdBorderCheck(e,t,n,r){const s=document.body.offsetWidth,o=document.body.offsetHeight,a=this.secondBorderCheck(e,n).top;let l;const c=(t+r)*this.itemHeight,u=c>180?180:c;return a===0?l=this.axis.top+e*this.itemHeight+u:l=this.axis.top-e*this.itemHeight+u,{left:this.axis.left+this.itemWidth*3>=s?"-100%":"100%",bottom:o>=l?0:"auto",top:o<l?0:"auto"}},handleClick(e,t){if(!t){if(Fn({cId:"contextMenu-"+e.name,c:"右键菜单-"+e.namec}),e.has_child>0)return!1;Xe(this,"contextmenu-click",{nodes:this.nodeInfo,api:e})}},handleDataClick(e,t){Fn({cId:"contextMenu-"+e.name,c:"右键菜单-"+e.namec}),Xe(this,"contextmenu-click",{nodes:this.nodeInfo,api:t,dataApi:e}),this.checkedItems={}}}},qle={"aria-hidden":"true",style:{position:"absolute",width:"0",height:"0",overflow:"hidden",display:"none"}},Hle={class:"cm-list"},Gle={class:"cm-ul"},Wle={class:"hd"},Kle=["src"],Jle={class:"bd"},Yle={class:"cm-ul cm-ul-level1"},Xle=["title"],Zle=["title","onClick"],Qle=["title","onClick"],ece={key:0,class:"icon","aria-hidden":"true"},tce=["title","onClick"],nce=["src"],ice=["title","onClick"],rce={key:0,class:"fas el-icon-fa-cog"},sce={key:1,class:"fas el-icon-fa-external-link-alt"},oce={class:"text-wrapper"},ace=["src"],lce=["src"],cce={key:3,class:"shortcut"},uce={key:2,class:"icon","aria-hidden":"true"},dce=["title","onClick"],fce={key:1,class:"icon","aria-hidden":"true"},hce=["title","onClick"];function pce(e,t,n,r,s,o){const a=We("ArrowRight"),l=Ft,c=We("InfoFilled"),u=fi;return n.show?(I(),z("div",{key:0,class:"cm-container",style:Ze(o.axisComputed),onClick:t[1]||(t[1]=gt((...d)=>o.handleCollapse&&o.handleCollapse(...d),["stop"]))},[(I(),z("svg",qle,t[2]||(t[2]=[H("symbol",{id:"icon-arrow-right",viewBox:"0 0 1024 1024"},[H("path",{d:"M288.791335 65.582671l446.41733 446.417329-446.41733 446.417329z"})],-1)]))),H("div",Hle,[H("ul",Gle,[o.checkboxMenu.length>0?(I(),z("li",{key:0,class:"cm-li data-opt-wrapper",style:Ze(o.liStyle)},[H("div",Wle,[H("img",{src:e.imgPath["./public/d3svg1/button18/button_relation.svg"],style:{"margin-right":"10px"}},null,8,Kle),t[3]||(t[3]=Je("按关系分类拓线")),te(l,null,{default:ee(()=>[te(a)]),_:1})]),H("div",Jle,[H("ul",Yle,[(I(!0),z(qe,null,Tt(o.checkboxMenu,(d,f)=>(I(),z("li",{key:f,class:"cm-li context-one",style:Ze(o.liStyle)},[o.hasChildren(d)?(I(),z("div",{key:0,class:Y(["cm-item",o.firstLeft?"cm-left":""]),title:d.namec},[H("span",null,Ie(d.namec),1),t[4]||(t[4]=H("svg",{class:"icon","aria-hidden":"true"},[H("use",{"xlink:href":"#icon-arrow-right"})],-1))],10,Xle)):(I(),z("div",{key:1,class:Y(["cm-item",o.firstLeft?"cm-left":""]),title:d.namec,onClick:gt(h=>o.handleDataClick(d,s.globalMenus.expandPartNode),["stop"])},[H("span",null,Ie(d.namec),1)],10,Zle)),o.hasChildren(d)?(I(),z("ul",{key:2,class:"cm-ul cm-ul-level2",style:Ze(o.secondBorderCheck(f,d.children.length))},[(I(!0),z(qe,null,Tt(d.children,(h,g)=>(I(),z("li",{key:g,class:"cm-li",style:Ze(o.liStyle)},[H("div",{class:Y(["cm-item",o.secondLeft?"cm-left":""]),title:h.namec,onClick:gt(b=>o.handleDataClick(h,s.globalMenus.expandPartNode),["stop"])},[H("span",null,Ie(h.namec),1),o.hasChildren(h)?(I(),z("svg",ece,t[5]||(t[5]=[H("use",{"xlink:href":"#icon-arrow-right"},null,-1)]))):re("",!0)],10,Qle),o.hasChildren(h)?(I(),z("ul",{key:0,class:"cm-ul cm-ul-level3",style:Ze(o.thirdBorderCheck(f,g,d.children.length,h.children.length))},[(I(!0),z(qe,null,Tt(h.children,(b,y)=>(I(),z("li",{key:y,class:"cm-li",style:Ze(o.liStyle)},[H("div",{class:"cm-item",title:b.namec,onClick:gt(_=>o.handleDataClick(b,s.globalMenus.expandPartNode),["stop"])},[H("span",null,Ie(b.namec),1)],8,tce)],4))),128))],4)):re("",!0)],4))),128))],4)):re("",!0)],4))),128))])])],4)):n.nodeInfo.length>1&&n.nodeInfo.length<s.maxMulti?(I(),z("li",{key:1,class:"cm-li data-opt-wrapper data-opt-all",style:Ze(o.liStyle)},[H("div",{class:"hd",onClick:t[0]||(t[0]=gt(d=>o.handleDataClick(null,s.globalMenus.expandNode),["stop"]))},[H("img",{src:e.imgPath["./public/d3svg1/button18/button_relation.svg"],style:{"margin-right":"10px"}},null,8,nce),t[6]||(t[6]=Je("展开全部关系 "))]),t[7]||(t[7]=H("div",{class:"bd"},null,-1))],4)):re("",!0),(I(!0),z(qe,null,Tt(o.systemMenu,(d,f)=>(I(),z("li",{key:f,class:"cm-li",style:Ze(o.liStyle)},[H("div",{class:Y(["cm-item",{"cm-left":o.firstLeft,disabled:d.disabled}]),title:d.namec,onClick:gt(h=>o.handleClick(d,d.disabled),["stop"])},[o.isSystemItem(d)?(I(),z("i",rce)):o.isExternalItem(d)?(I(),z("i",sce)):re("",!0),H("div",oce,[d.icon?(I(),z("img",{key:0,src:e.imgPath["./public/d3svg1/button18/"+d.icon+".svg"],class:"t-icon"},null,8,ace)):(I(),z("img",{key:1,src:e.imgPath["./public/d3svg1/button18/button_"+d.name+".svg"],class:"t-icon"},null,8,lce)),d.tooltip?(I(),Ee(u,{key:2,class:"el-icon-info",effect:"dark",content:d.tooltip,placement:"top-start"},{default:ee(()=>[te(l,null,{default:ee(()=>[te(c)]),_:1})]),_:2},1032,["content"])):re("",!0),H("span",null,Ie(d.namec),1),d.shortcut?(I(),z("span",cce,Ie(d.shortcut),1)):re("",!0)]),o.hasChildren(d)?(I(),z("svg",uce,t[8]||(t[8]=[H("use",{"xlink:href":"#icon-arrow-right"},null,-1)]))):re("",!0)],10,ice),o.hasChildren(d)?(I(),z("ul",{key:0,class:"cm-ul cm-ul-level2",style:Ze(o.secondBorderCheck(f,d.children.length))},[(I(!0),z(qe,null,Tt(d.children,(h,g)=>(I(),z("li",{key:g,class:"cm-li",style:Ze(o.liStyle)},[H("div",{class:Y(["cm-item",{"cm-left":o.secondLeft,disabled:d.disabled||h.disabled}]),title:h.namec,onClick:gt(b=>o.handleClick(h,d.disabled||h.disabled),["stop"])},[h.tooltip?(I(),Ee(u,{key:0,class:"el-icon-info",effect:"dark",content:h.tooltip,placement:"top-start"},{default:ee(()=>[te(l,null,{default:ee(()=>[te(c)]),_:1})]),_:2},1032,["content"])):re("",!0),H("span",null,Ie(h.namec),1),o.hasChildren(h)?(I(),z("svg",fce,t[9]||(t[9]=[H("use",{"xlink:href":"#icon-arrow-right"},null,-1)]))):re("",!0)],10,dce),o.hasChildren(h)?(I(),z("ul",{key:0,class:"cm-ul cm-ul-level3",style:Ze(o.thirdBorderCheck(f,g,d.children.length,h.children.length))},[(I(!0),z(qe,null,Tt(h.children,(b,y)=>(I(),z("li",{key:y,class:"cm-li",style:Ze(o.liStyle)},[H("div",{class:Y(["cm-item",{disabled:d.disabled||h.disabled||b.disabled}]),title:b.namec,onClick:gt(_=>o.handleClick(b,d.disabled||h.disabled||b.disabled),["stop"])},[b.tooltip?(I(),Ee(u,{key:0,class:"el-icon-info",effect:"dark",content:b.tooltip,placement:"top-start"},{default:ee(()=>[te(l,null,{default:ee(()=>[te(c)]),_:1})]),_:2},1032,["content"])):re("",!0),H("span",null,Ie(b.namec),1)],10,hce)],4))),128))],4)):re("",!0)],4))),128))],4)):re("",!0)],4))),128))])])],4)):re("",!0)}const gce=ln(zle,[["render",pce],["__scopeId","data-v-dd8dd8d0"]]),oge="",age="",lge="",cge="",mce={name:"Popover",components:{ForceGraphSvgIcon:Ho},mixins:[Or],inject:["levelList","hasLevel"],props:{showPopover:{type:Boolean,default:!1},mousePosition:{type:Object,default:()=>({left:0,top:0})},nodeInfo:{type:Object,default:()=>{}},type:{type:String,default:"node"},moduleDetail:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},darkMode:{type:Boolean,default:!0},history:{type:Object,default:()=>({})},customTooltip:{type:Function}},data(){return{isFunction:Dd,showSelf:!1,onPop:!1,position:null,aggregationList:[]}},computed:{show(){return this.showPopover||this.showSelf},name(){var e,t,n;return((n=(t=(e=this.nodeInfo)==null?void 0:e.detail)==null?void 0:t.info)==null?void 0:n.name)||this.nodeInfo.name},isNormalNode(){return this.nodeInfo.type!=="nodeType"&&this.nodeInfo.type!=="aggregation"},isNodeTypeNode(){return this.nodeInfo.type==="nodeType"},isAggregateNode(){return this.nodeInfo.type==="aggregation"},fieldMapThisType(){var e;return this.moduleDetail.detail_field_map&&this.moduleDetail.detail_field_map[`${(e=this.nodeInfo)==null?void 0:e.type}_detail_info`]},canGoDetail(){return["nodeType","aggregation","family","org","report","vul","thumbprint_md5","email","cert_https"].indexOf(this.nodeInfo.type)<0}},watch:{mousePosition(){setTimeout(()=>{var l,c,u;const e=this.mousePosition.left>document.body.offsetWidth/2,t=this.mousePosition.top>document.body.offsetHeight/2,n=(l=document.getElementsByClassName("popover-container")[0])==null?void 0:l.offsetHeight,r=(c=document.getElementsByClassName("d3-container")[0])==null?void 0:c.offsetHeight,s=(u=document.getElementsByClassName("d3-container")[0])==null?void 0:u.getBoundingClientRect().top;let o;t?o=Math.max(this.mousePosition.top,n+s)+5:o=Math.min(this.mousePosition.top,Math.max(r-n,s))-5;const a={left:(e?this.mousePosition.left+2:this.mousePosition.right-2)+"px",top:o+"px",transform:`translate(${e?"-100%":"0%"}, ${t?"-100%":"0%"})`};this.position=a},100)},nodeInfo:{handler:function(){var t;const e=(((t=this.nodeInfo)==null?void 0:t.list)||[]).map(n=>{var s,o,a;const r=n.detail;return Be(we({},n),{name:((s=r==null?void 0:r.info)==null?void 0:s.name)||n.name,level:((a=(o=r==null?void 0:r.info)==null?void 0:o.basic)==null?void 0:a.level)||""})});e==null||e.sort((n,r)=>{var a,l;const s=(a=this.levelList.find(c=>c.level===n.level))==null?void 0:a.dangerNumber;return((l=this.levelList.find(c=>c.level===r.level))==null?void 0:l.dangerNumber)-s}),this.aggregationList=e},immediate:!0}},methods:{handleMouseEnter(){this.showSelf=!0},handleMouseLeave(){this.showSelf=!1},isSomething(e){return A0(e)},getTypeZh(e){var n,r,s;let t=e;if(e==="nodeType")t="关系节点";else for(const o in(n=this.moduleDetail)==null?void 0:n.nodes)if(e===((r=this.moduleDetail)==null?void 0:r.nodes[o].name)){t=(s=this.moduleDetail)==null?void 0:s.nodes[o].namec;break}return t},getLevelClass(e){return xf(e,this.levelList)},getColorStyle(e){return Go(e,this.levelList,this.darkMode)},getNodeTypeChildNum(e){var s;const t=(s=this.data)==null?void 0:s.links,n=[],r=[];return t==null||t.map(o=>{o.source.id===e&&(n.push(o.target.id),o.target.detail&&uq(o.target.detail.info.basic.level,this.levelList)&&r.push(o.target.id))}),{allChildNum:n.length,dangerChildNum:r.length}},canShowField(e){const t=this.hasFieldValue(e);return!(t===void 0||e.hide_hover||e.hide_empty&&!t)},hasFieldValue(e){const t=this.nodeInfo.detail&&this.nodeInfo.detail.info&&this.nodeInfo.detail.info.basic[e.prop];if(t===null)return;const n=Array.isArray(t);return n&&t.length>0||!n&&t!==""&&t!=="无"},getFieldValue(e){const t=this.nodeInfo.detail.info.basic[e.prop],n=Array.isArray(t),r=this.isSomething(t);let s="-";return r&&(n?s=t.length?t.join("|"):"-":s=t||"-"),s},formatTags(e){return Nf(If(e))},addToGraph(e){const t={type:"addFromAggregation",addOne:{nodes:[e],links:[{source:this.nodeInfo.relationId,target:e.id}]}};if(this.aggregationList=this.aggregationList.filter(n=>n.id!==e.id),this.history.updateAggregationNode(this.aggregationList,this.nodeInfo.id),this.history.pushState(t),this.aggregationList.length)Xe(wt,"emitDataLoaded");else{const n=this.nodeInfo,r={deleteOne:{nodes:[n],links:[{source:n.relationId,target:n.id}]},type:"aggregation"};setTimeout(()=>{this.history.pushState(r),Xe(wt,"emitDataLoaded")},0)}}}},vce={key:0},bce=["innerHTML"],yce={key:1,class:"node-info-container"},_ce={class:"popover-block popover-header"},wce={key:0,class:"popover-collect"},Cce={key:1,class:"row-item"},Sce={class:"label"},Ece={key:2,class:"row-item"},xce={class:"value"},Ace={class:"node-type-info"},Pce={class:"name"},Tce={key:3,class:"row-item"},Oce={class:"value"},Nce={class:"popover-block popover-fields"},Ice={key:0,class:"node-detail top-border"},Rce={key:0,class:"row-item"},Dce=["title"],Lce={key:1,class:"row-item row-item-tag"},kce={class:"value"},Mce={class:"graph-tags-box"},Fce={key:0,class:"row-item"},Bce={class:"label"},jce=["title"],Uce={key:1,class:"node-statistics top-border"},$ce={class:"row-item node-num"},Vce={class:"value"},zce={key:0},qce={class:"danger"},Hce={key:2,class:"node-aggregation"},Gce={class:"aggregation-title"},Wce={class:"aggregation-box"},Kce={key:2,class:"node-info-container"},Jce={class:"popover-fields"},Yce={class:"top"};function Xce(e,t,n,r,s,o){const a=We("force-graph-svg-icon"),l=fi,c=zc,u=uz,d=$o,f=cz;return I(),z("div",{class:Y(["popover-container",o.show?"show-popover":"hide-popover"]),style:Ze(s.position),onMouseenter:t[0]||(t[0]=(...h)=>o.handleMouseEnter&&o.handleMouseEnter(...h)),onMouseleave:t[1]||(t[1]=(...h)=>o.handleMouseLeave&&o.handleMouseLeave(...h))},[H("div",null,[o.show&&n.customTooltip&&s.isFunction(n.customTooltip)?(I(),z("div",vce,[H("div",{innerHTML:n.customTooltip({nodeInfo:n.nodeInfo,data:n.data,moduleDetail:n.moduleDetail})},null,8,bce)])):n.type==="node"?(I(),z("div",yce,[H("div",_ce,[n.nodeInfo.collect?(I(),z("div",wce,[te(l,{content:"已收藏","popper-class":"el-tooltip-gray",placement:"left"},{default:ee(()=>[te(a,{class:"button-img","icon-class":e.imgPath["./public/d3svg1/star.svg"]},null,8,["icon-class"])]),_:1})])):re("",!0),o.isNormalNode?(I(),z("div",Cce,[H("div",Sce,Ie(o.getTypeZh(n.nodeInfo.type))+":",1),H("div",{class:Y(["value",{"star-next":n.nodeInfo.collect}])},Ie(o.name),3)])):re("",!0),o.isNodeTypeNode?(I(),z("div",Ece,[t[2]||(t[2]=H("div",{class:"label"},"关系节点:",-1)),H("div",xce,[H("div",Ace,[H("div",Pce,Ie(n.nodeInfo.name),1)])])])):re("",!0),n.nodeInfo.label?(I(),z("div",Tce,[t[3]||(t[3]=H("div",{class:"label"},"备注:",-1)),H("div",Oce,Ie(n.nodeInfo.label),1)])):re("",!0)]),H("div",Nce,[o.isNormalNode&&n.nodeInfo.detail?(I(),z("div",Ice,[o.canGoDetail&&o.hasLevel?(I(),z("div",Rce,[t[4]||(t[4]=H("div",{class:"label"},"危险级别:",-1)),H("div",{class:Y(["value level",o.getLevelClass(n.nodeInfo.detail&&n.nodeInfo.detail.info.basic.level)]),title:n.nodeInfo.detail&&n.nodeInfo.detail.info.basic.level||"--"},Ie(n.nodeInfo.detail&&n.nodeInfo.detail.info.basic.level||"--"),11,Dce)])):re("",!0),n.nodeInfo.detail&&n.nodeInfo.detail.tags&&n.nodeInfo.detail.tags.length>0?(I(),z("div",Lce,[t[7]||(t[7]=H("div",{class:"label"},"标签:",-1)),H("div",kce,[H("div",Mce,[(I(!0),z(qe,null,Tt(o.formatTags(n.nodeInfo.detail.tags),(h,g)=>(I(),Ee(l,{key:g,"popper-class":"el-tooltip-gray"},{content:ee(()=>[H("div",null,[Je(Ie(h.name===h.desc?h.name:h.name+":"+h.desc)+" ",1),h.disabled?(I(),z(qe,{key:0},[t[5]||(t[5]=H("br",null,null,-1)),t[6]||(t[6]=Je(" 标签状态:失效 "))],64)):re("",!0)])]),default:ee(()=>[H("span",null,[te(c,{class:Y(["graph-tag-one",`${h.type||"unknown"} ${h.disabled?"tag-disable":""}`]),type:h.type||"info"},{default:ee(()=>[Je(Ie(h.name),1)]),_:2},1032,["class","type"])])]),_:2},1024))),128))])])])):re("",!0),(I(!0),z(qe,null,Tt(o.fieldMapThisType,(h,g)=>(I(),z(qe,null,[o.canShowField(h)?(I(),z("div",Fce,[H("div",Bce,Ie(h.zh)+":",1),H("div",{class:Y(["value",{red:h.prop==="virus_name"}]),title:n.nodeInfo.detail.info.basic[g]},Ie(o.getFieldValue(h)),11,jce)])):re("",!0)],64))),256))])):re("",!0),o.isNodeTypeNode?(I(),z("div",Uce,[H("div",$ce,[t[9]||(t[9]=H("div",{class:"label"},"拓展节点统计:",-1)),H("div",Vce,[o.getNodeTypeChildNum(n.nodeInfo.id).dangerChildNum>0?(I(),z("span",zce,[H("span",qce,Ie(o.getNodeTypeChildNum(n.nodeInfo.id).dangerChildNum),1),t[8]||(t[8]=Je("/"))])):re("",!0),Je(Ie(o.getNodeTypeChildNum(n.nodeInfo.id).allChildNum),1)])])])):re("",!0),o.isAggregateNode?(I(),z("div",Hce,[H("div",Gce,"聚合节点 ("+Ie(s.aggregationList.length)+"个)",1),H("div",Wce,[te(f,{data:s.aggregationList,style:{width:"100%"}},{default:ee(()=>[te(u,{prop:"name","min-width":"200",label:"名称"}),te(u,{sortable:"",prop:"type",label:"类型"}),te(u,{sortable:"",prop:"level",width:"80",label:"级别"},{default:ee(h=>[H("span",{style:Ze({color:o.getColorStyle(h.row.level)})},Ie(h.row.level||"--"),5)]),_:1}),te(u,{label:"操作"},{default:ee(h=>[te(d,{class:"add-to-graph-btn",type:"primary",text:"",size:"small",onClick:g=>o.addToGraph(h.row)},{default:ee(()=>t[10]||(t[10]=[Je(" 添加到图谱 ")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])])])):re("",!0)])])):(I(),z("div",Kce,[H("div",Jce,[H("div",Yce,Ie(n.nodeInfo.apiName),1)])]))])],38)}const Zce=ln(mce,[["render",Xce],["__scopeId","data-v-194a65c9"]]),Qce=[{id:52,product_id:0,name:"copy",namec:"复制",parent_id:0,has_child:0,status:0,type:2,path:"0-52",pos:65,ctime:"0000-00-00 00:00:00",utime:"2019-06-04 16:49:38",children:[]},{id:62,product_id:0,name:"release_aggregation",namec:"释放聚合顶点",parent_id:0,has_child:0,status:0,is_sys:0,is_detail:0,type:2,path:"0-62",pos:1,ctime:"0000-00-00 00:00:00",utime:"2019-05-06 15:08:10",children:[]}],dy={name:"vue-safe-force-graph",version:"2.0.63",description:"force_graph in security area",author:"jason zhang",module:"./lib/vue-safe-force-graph.js",main:"./lib/vue-safe-force-graph.umd.cjs",type:"module",files:["/lib/"],exports:{".":{import:"./lib/vue-safe-force-graph.js",require:"./lib/vue-safe-force-graph.umd.cjs"},"./*":"./*"},scripts:{dev:"vite","dev:base64":"vite --mode development_base64",lib:"vite build","lib:base64":"vite build --mode production_base64","lib:webcomponent":"vite build --mode web_component",patch:'npm version patch -m "Upgrade to %s "',"patch:base64":'npm version patch -m "Upgrade to %s for base64"',p:"npm run patch && npm run lib && npm run lib:webcomponent && npm publish","p:base64":"npm run patch:base64 && npm run lib:base64 && npm publish",lint:"eslint --ext .js,.vue src",lintFix:"eslint --fix --ext .js,.vue src",imageToCdn:"node qcdn.cjs",imageToBase64:"node qcdn.cjs --buildtype=base64",changelog:"conventional-changelog -p angular -i CHANGELOG.md -s -r 0"},dependencies:{"@element-plus/icons-vue":"^2.1.0","@q/qapm":"^1.1.7","csv-parse":"^5.0.4",d3:"^7.8.5","d3-lasso":"0.0.5","element-plus":"^2.3.0",json2csv:"^5.0.7",konva:"^9.2.0","lodash-es":"^4.17.21","mime-types":"^2.1.35",minimist:"^1.2.6","radar-js-analytic-sdk":"^2.2.6",vue:"^3.5.3","vue-clipboard3":"^2.0.0","vue-router":"^4.1.6","vue-virtual-scroller":"^2.0.0-beta.8"},devDependencies:{"@babel/core":"^7.23.3","@babel/preset-env":"^7.23.3","@originjs/vite-plugin-commonjs":"^1.0.3","@q/qcdn":"^3.2.4","@vitejs/plugin-vue":"^4.1.0",axios:"^0.21.1","babel-eslint":"^10.1.0",eslint:"^7.32.0","eslint-plugin-vue":"^8.0.3",imageinfo:"^1.0.4",qs:"^6.10.1","rollup-plugin-visualizer":"^5.9.0",sass:"^1.62.0","unplugin-auto-import":"^0.15.2","unplugin-vue-components":"^0.24.1",vite:"^4.3.1"},browserslist:["> 1%","last 2 versions"],engines:{node:">=8.9",npm:">= 3.0.0"},license:"MIT"},xge="",{toClipboard:eue}=Rf(),tue="Arial,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif",Br=1,nue=["ip","intranet","internet"],fy=20,Vi={},iue={name:"ForceGraphRenderByCanvas",components:{Popover:Zce,NodeContextmenu:gce},mixins:[Or],provide:function(){return{levelList:this.levelList}},props:{data:{type:Object,default:()=>({nodes:[],links:[]})},history:{type:Object,default:()=>({})},linkDistance:{type:Number,default:120},strength:{type:Number,default:-600},isThreatPath:{type:Boolean,default:!1},requestGraphData:{type:Boolean,default:!1},moduleDetail:{type:Object,default:()=>{}},graphApi:{type:Object,default:()=>{}},alphaDecay:{type:Number,default:.0228},alphaMin:{type:Number,default:.001},darkMode:{type:Boolean,default:!0},levelList:{type:Array,default:()=>[{level:"未知",levelName:"未知",className:"unknown",normalColor:"#666",darkColor:"#c6cdd5",dangerNumber:0},{level:"危险",levelName:"危险",className:"warn",normalColor:"#CF1322",darkColor:"#fb2400",dangerNumber:1},{level:"普通",levelName:"普通",className:"normal",normalColor:"#007EE2",darkColor:"#0094ff",dangerNumber:-1},{level:"安全",levelName:"安全",className:"safe",normalColor:"#009A75",darkColor:"#00da90",dangerNumber:-2}]},nodeWidth:{type:Number},startNodeWidth:{type:Number},nodeTypeScale:{type:Number,default:1},nodeTypeList:{type:Array,default:()=>[]},manualTickNumber:{type:Number,default:500},startNodeAnimation:{type:Boolean,default:!0},customTooltip:{type:Function},enableScript:{type:Boolean,default:!1},edgeLabelMaxLength:{type:Number,default:10}},emits:["handle-select-node","custom-contextmenu-click","flagFiles","updateSelection"],data(){return{prefix:"./public/",iconAllLoaded:!1,iconSize:{},iconFiles:{},flagFiles:{},highlightRule:{},nodesRange:null,mousePosition:{left:0,top:0},hoverNodePosition:{},uniqueClass:"",showPopover:!1,popoverTimer:null,popoverType:"",popoverContent:{},popoverNode:{},showContextMenu:!1,contextMenuNode:{},menuOptions:[],isDragging:!1,originTransform:null,dragNodeFix:!1,destroyed:!1,actKey:el()?"metaKey":"ctrlKey",levelHeight:100,actNum:0,scriptNow:null,scriptInited:!1,canAct:!1,isKeyUp:!0,initTimes:0,resizeObserver:null,canvasElement:null,stage:yn(null),layer:yn(null),nodesGroup:yn({}),linksGroup:yn({}),grab:yn(null),simulation:yn(null),nodes:yn(null),links:yn(null),hoveredNode:yn(null),mouseDownNode:yn(null),selectionRect:null,selection:[],scale:Br,mousedownPos:null,mousedownNode:null,mouseupNode:null,dragLine:null,darkBgRect:null,inited:!1,hasSimulation:!1,nodesLength:0,ticking:!1,anim1:null,anim2:null,anim3:null}},computed:{isAutoTick(){var e;return((e=this.nodes)==null?void 0:e.length)<this.manualTickNumber},iconSizeComputed(){const e=To(this.iconSize);return this.nodeTypeList.forEach(t=>{e[t]=this.iconSize[t]*this.nodeTypeScale}),e},contextMenuNodes(){return this.contextMenuNode.id?this.selection.some(e=>e.id===this.contextMenuNode.id)?[...this.selection]:[this.contextMenuNode]:[]},showContextMenuFlag(){return this.requestGraphData?this.showContextMenu:!1}},watch:{data:{handler:function(){const e=this.nodesLength!==this.data.nodes.length;this.nodes=this.data.nodes,this.links=this.data.links,this.nodesLength=this.data.nodes.length,this.update(e)},deep:!0},moduleDetail:{handler:function(e){return at(this,null,function*(){e!=null&&e.nodes&&!this.iconAllLoaded&&(yield this.loadIcons(),this.initForceGraph(),setTimeout(()=>{this.update()},50))})},deep:!0,immediate:!0},darkMode:{handler:function(e){return at(this,null,function*(){const t=e?"dark":"light";setTimeout(()=>{this.update();const n=document.querySelectorAll(`.${this.uniqueClass}.render-container`);n!=null&&n.length&&(this.isThreatPath?n[0].setAttribute("data-theme",t):(n[0].setAttribute("data-theme",t),document.getElementsByClassName(this.uniqueClass+" render-container")[0].parentElement.parentElement.setAttribute("data-theme",t)))},200)})},immediate:!0}},created(){ls.setProject("QH_10542_1724").getTrack(),console.log("组件版本: "+(dy==null?void 0:dy.version)),this.isThreatPath||this.initKeyEvent(),this.uniqueClass="unique"+new Date().getTime()+Math.floor(Math.random()*1e5)},mounted(){return at(this,null,function*(){new Vle({appKey:"fe-force-graph",ratio:50}),this.initForceGraph(),cq(this.levelList),!this.isThreatPath&&(qs(wt,"buttonClick",e=>{Ni(e,"buttonClick msg"),this.handleContextMenuClick(e)}),qs(wt,"relationClick",e=>{this.handleContextMenuClick(e)}),qs(wt,"sendNodesRange",(e,t)=>{e!==void 0&&(this.nodesRange=e,this.updateNodeStyle())}))})},beforeUnmount(){Hs(wt,"buttonClick"),Hs(wt,"relationClick"),Hs(wt,"sendNodesRange"),this.unbindKeyEvent(),this.resetAll(),Ni("destroy")},methods:{initForceGraph(){return at(this,null,function*(){if(this.inited)return;const e=this.$refs.canvasContainer;let t=e.clientWidth,n=e.clientHeight;this.resizeObserver=new ResizeObserver(s=>{for(const o of s){if(t=o.contentRect.width,n=o.contentRect.height,Ni(`新宽度: ${t}px, 新高度: ${n}px`),t===0||n===0)return;this.stage.width(t),this.stage.height(n),this.layer&&this.layer.batchDraw(),this.hasSimulation&&this.updateSimulation()}}),this.resizeObserver.observe(e),document.addEventListener("click",this.hideContextMenu,!1),this.nodes=this.data.nodes,this.links=this.data.links,this.stage=new Ut.Stage({container:e,width:t,height:n,scaleX:Br,scaleY:Br}),this.layer=new Ut.Layer,this.grab=new Ut.Group({id:"grab",x:0,y:0}),this.layer.add(this.grab);const r=this.layer.getCanvas()._canvas;this.canvasElement=r,this.stage.on("mousemove",s=>{if(!this.mousedownNode||!s.evt[this.actKey]){if(this.resetMouseVars(),this.selectionRect&&s.evt.altKey){const o=this.stage.getPointerPosition(),a=(o.x-this.stage.x())/this.scale,l=(o.y-this.stage.y())/this.scale,c=a-this.selectionRect.x(),u=l-this.selectionRect.y();this.selectionRect.width(c),this.selectionRect.height(u),this.stage.batchDraw()}}else{const o=this.stage.getPointerPosition(),a=this.stage.scaleX(),l=(o.x-this.stage.x())/a,c=(o.y-this.stage.y())/a;this.dragLine.points([this.mousedownPos.x,this.mousedownPos.y,l,c]),this.layer.batchDraw()}}),this.stage.on("wheel",s=>{s.evt.preventDefault();const o=1.1,a=this.scale,l=s.evt.deltaY<0?a*o:a/o;this.scale=l;const c=this.stage.getPointerPosition(),u=this.stage.position(),d=c.x-(c.x-u.x)*(l/a),f=c.y-(c.y-u.y)*(l/a);this.stage.setAttrs({scaleX:l,scaleY:l,x:d,y:f}),this.layer.batchDraw()}),this.stage.on("mousedown",s=>{const o=s.target;if(o&&o.nodeType==="Stage"?this.stage.setDraggable(!0):this.stage.setDraggable(!1),s.evt.altKey){this.stage.setDraggable(!1);const a=this.stage.scaleX(),l=this.stage.getPointerPosition(),c=(l.x-this.stage.x())/a,u=(l.y-this.stage.y())/a;this.selectionRect=new Ut.Rect({x:c,y:u,width:0,height:0,stroke:"rgb(80, 80, 80)",strokeWidth:2}),this.layer.add(this.selectionRect),this.stage.batchDraw()}}),this.stage.on("mouseup",s=>{if(this.stage.setDraggable(!1),this.selectionRect&&s.evt.altKey){const o=this.selectionRect.x(),a=this.selectionRect.y(),l=this.selectionRect.width(),c=this.selectionRect.height();this.selection=this.nodes.filter(u=>{const d={x:u.x,y:u.y},f=Math.min(o,o+l),h=Math.max(o,o+l),g=Math.min(a,a+c),b=Math.max(a,a+c);return d.x>=f&&d.x<=h&&d.y>=g&&d.y<=b}),this.updateSelection(),this.selectionRect.destroy(),this.selectionRect=null}}),this.stage.on("contextmenu",this.handleGlobalContextMenu),this.stage.on("click",s=>{s.target&&s.target.nodeType==="Stage"&&this.handleDeselectNode(s)}),this.setSimulation(),this.stage.add(this.layer),this.stage.draw(),this.update(),this.inited=!0})},setSimulation(){var n;if(this.hasSimulation||!((n=this.nodes)!=null&&n.length))return;const e=this.stage.width()/(2*Br),t=this.stage.height()/(2*Br);this.hasSimulation=!0,this.simulation=kZ(this.nodes).force("link",_Z(this.links).id(r=>r.id).distance(this.linkDistance).strength(1)).force("charge",MZ().strength(this.strength)).force("x",FZ()).force("y",BZ()).force("center",O4(e,t)).alphaDecay(this.alphaDecay).alphaMin(this.alphaMin).stop(),this.nodeWidth&&this.simulation.force("collision",bZ().radius(this.nodeWidth/2)),this.isAutoTick?(this.simulation.alpha(1).restart(),this.simulation.on("tick",this.ticked)):(this.simulation.on("tick",null),this.sendManualTick()),this.simulation.on("end",()=>{Ni("simulation end time",Date.now()),this.isThreatPath&&this.centerAndZoom(1)})},sendManualTick(){var e;Ni("sendManualTick",(e=this.nodes)==null?void 0:e.length),!this.ticking&&(this.ticking=!0,this.doClearCanvas(),this.simulation.alphaDecay(this.alphaDecay*2),this.simulation.alphaMin(this.alphaMin*5),this.simulation.alpha(1).restart(),setTimeout(()=>{console.time("tick");for(let t=0,n=Math.ceil(Math.log(this.simulation.alphaMin())/Math.log(1-this.simulation.alphaDecay()));t<n;++t)Ni("tick"),this.simulation.tick();console.timeEnd("tick"),this.ticking=!1,this.update(),this.centerAndZoom()},1e3))},update(e=!1){return at(this,null,function*(){var t,n,r;!this.iconAllLoaded&&((n=(t=this.moduleDetail)==null?void 0:t.nodes)!=null&&n.length)&&(yield this.loadIcons()),!this.destroyed&&(r=this.nodes)!=null&&r.length&&(this.initScript(),Ni("update"),e&&this.updateSimulation(),this.doClearCanvas(),this.paintLinks(),this.paintNodes(),this.updateSelection(),this.ticked(),this.actNum===9&&setTimeout(()=>{this.centerAndZoom(.8)},200))})},doClearCanvas(){this.nodesGroup={},this.linksGroup={},this.layer.destroyChildren(),this.grab=new Ut.Group({id:"grab",x:0,y:0}),this.layer.add(this.grab)},paintNodes(){const e=this.stage.width()/2,t=this.stage.height()/2,n=this.selection.map(r=>r.id);this.nodes.forEach(r=>at(this,null,function*(){var _,w,x,C,S,A,O,R,N,k,L,F,G,V,ae,ce,U,J,Q,X,B,_e,he;const s=(w=(_=r.detail)==null?void 0:_.info)==null?void 0:w.icon_img;let o;r.type==="nodeType"?o=this.iconSizeComputed[r.icon]||this.iconSizeComputed.node_type:o=this.iconSize[r.icon]||this.iconSize[r.type]||24,r.startNode&&this.startNodeWidth&&(o=this.startNodeWidth);const a=((S=(C=(x=r==null?void 0:r.detail)==null?void 0:x.info)==null?void 0:C.basic)==null?void 0:S.level)||"",l=(R=(O=(A=r==null?void 0:r.detail)==null?void 0:A.info)==null?void 0:O.basic)==null?void 0:R.flag;let c;try{c=yield this.getNodeImage(r)}catch(ie){console.log(ie)}this.nodesGroup[r.id]&&((N=this.nodesGroup[r.id])==null||N.destroy());const u=new Ut.Group({name:"nodeGroup",opacity:1,id:`${r.id}`,x:r.x?r.x:e,y:r.y?r.y:t,draggable:!0,visible:r.show});if(n.includes(r.id)&&u.addName("isSelected"),r.startNode&&this.startNodeAnimation){const ie=Go(a,this.levelList,this.darkMode),oe=new Ut.Circle({x:0,y:0,radius:20,fill:ie,opacity:0}),Ce=new Ut.Circle({x:0,y:0,radius:20,fill:ie,opacity:0}),me=new Ut.Circle({x:0,y:0,radius:20,fill:ie,opacity:0});u.add(oe),u.add(Ce),u.add(me);const q=(Z,ve)=>new Ut.Animation(function(Oe){const Le=Oe.time;if(Le%ve/ve===0)return!1;const j=.5-.5*(Le%ve)/ve,K=40*(Le%ve)/ve;Z.radius(K||0),Z.opacity(j)},this.layer);(k=this.anim1)==null||k.stop(),(L=this.anim2)==null||L.stop(),(F=this.anim3)==null||F.stop(),this.anim1=q(oe,1500),this.anim2=q(Ce,1500),this.anim3=q(me,1500),(G=this.anim1)==null||G.start(),setTimeout(()=>{this.anim2.start()},500),setTimeout(()=>{this.anim3.start()},1e3)}else if(r.startNode&&!this.startNodeAnimation){const ie=Go(a,this.levelList,this.darkMode),oe=new Ut.Circle({x:0,y:0,radius:20,fill:ie,opacity:this.startNodeAnimation?0:.3});u.add(oe)}if(!s&&(r.type==="ip"||r.type==="internet"||r.type==="country"||r.type==="target_country")){const ie=Go(a,this.levelList,this.darkMode),oe=new Ut.Circle({x:0,y:0,fill:this.darkMode?"#182628":"#fff",radius:o/2,stroke:ie,strokeWidth:2});u.add(oe)}if(c){const ie=l||(ae=(V=r==null?void 0:r.detail)==null?void 0:V.info)!=null&&ae.inner_country?20:o,oe=c&&new Ut.Image({x:0,y:0,offsetX:ie/2,offsetY:ie/2,image:c,width:ie,height:ie,draggable:!1});u.add(oe)}if(!s&&r.detail&&r.type==="md5"){const ie=((J=(U=(ce=r.detail.info)==null?void 0:ce.basic)==null?void 0:U.file_type)==null?void 0:J.toUpperCase())||"MD5",oe=new Ut.Text({name:"md5Text",x:0,y:0,text:ie,fontSize:4,fontWeight:700,fontFamily:tue,fill:this.darkMode?"#182628":"#fff",align:"center",listening:!1});oe.x(oe.x()-oe.width()/2),u.add(oe)}const d=r.textProp||"name",f=d==="name"?((X=(Q=r==null?void 0:r.detail)==null?void 0:Q.info)==null?void 0:X.name)||r.name:r[d];let h=(f==null?void 0:f.length)>14&&!nue.includes(r.type)?f.slice(0,7)+"..."+f.slice(-7):f;h=bq(h);const g=new Ut.Text({offsetY:o/2,name:"konvaText",x:0,y:o+8,text:h,fontSize:12,fontFamily:"Calibri",fill:this.darkMode?"#cdd9da":"#000",align:"center",listening:!1,visible:!!r.textProp});g.x(g.x()-g.width()/2),u.add(g);const b=new Ut.Circle({name:"border",x:0,y:0,radius:o/2,fill:"#5c6271",opacity:.4,visible:!1});if(u.add(b),(_e=(B=r.detail)==null?void 0:B.tags)!=null&&_e.length){const ie=new Ut.Circle({x:((o/2||14)+5)*Math.sin(60*Math.PI/180),y:-((o/2||14)+5)*Math.cos(60*Math.PI/180),radius:3,fill:"#9300ff",listening:!1});u.add(ie)}if(r.type!=="nodeType"&&r.type!=="aggregation"){var y=new Ut.Circle({name:"collect",x:((o/2||14)+5)*Math.sin(0*Math.PI/180),y:-((o/2||14)+5)*Math.cos(0*Math.PI/180),radius:3,fill:"#ffad00",visible:!!r.collect});u.add(y)}if(r.label){const ie=new Ut.Circle({x:((o/2||14)+5)*Math.sin(30*Math.PI/180),y:-((o/2||14)+5)*Math.cos(30*Math.PI/180),radius:3,fill:"#0099ff",listening:!1});u.add(ie)}if(r.type==="nodeType"&&r.showTotal){const ie=(o/2||14)+5,oe=70*Math.PI/180,Ce=ie*Math.sin(oe),me=-ie*Math.cos(oe),q=new Ut.Circle({x:Ce,y:me,radius:10,fill:"#1890ff",stroke:"white",strokeWidth:2,listening:!1});u.add(q);const Z=new Ut.Text({x:Ce,y:me,text:`${((he=r==null?void 0:r.children)==null?void 0:he.length)||0}`,fontSize:10,fontFamily:"Calibri",fill:"#fff",align:"center",verticalAlign:"middle",listening:!1});Z.offsetX(Z.width()/2),Z.offsetY(Z.height()/2),u.add(Z)}u.on("dragstart",(ie,oe)=>{ie.evt&&ie.evt[this.actKey]||(this.isAutoTick&&this.simulation.alphaTarget(.3).restart(),this.isDragging=!0)}),u.on("dragmove",ie=>{if(!(ie.evt&&ie.evt[this.actKey])){var oe=this.simulation.nodes().find(Ce=>Ce.id===r.id);oe&&(oe.x=u.x(),oe.fx=u.x(),oe.y=u.y(),oe.fy=u.y(),this.links.forEach(Ce=>{const me=this.linksGroup[`${Ce.source.id}-${Ce.target.id}`],q=me==null?void 0:me.findOne(".konvaLine"),Z=me==null?void 0:me.findOne(".linkArrow"),ve=me==null?void 0:me.findOne(".edgeLabel");let Oe,Le,Ke,j;if(Ce.source.id===oe.id){if(!this.nodesGroup[Ce.target.id])return;Oe=oe.x,Le=this.nodesGroup[Ce.target.id].x(),Ke=oe.y,j=this.nodesGroup[Ce.target.id].y(),q.points([Oe,Ke,Le,j]);const K=P0(Oe,Ke,Le,j,fy);Z==null||Z.x(K==null?void 0:K.x),Z==null||Z.y(K==null?void 0:K.y),Z==null||Z.rotation(Math.atan2(j-Ke,Le-Oe)*(180/Math.PI))}else if(Ce.target.id===oe.id){if(!this.nodesGroup[Ce.source.id])return;Oe=this.nodesGroup[Ce.source.id].x()||0,Le=oe.x||0,Ke=this.nodesGroup[Ce.source.id].y()||0,j=oe.y||0,q.points([Oe,Ke,Le,j]);const K=P0(Oe,Ke,Le,j,fy);Z==null||Z.x(K==null?void 0:K.x),Z==null||Z.y(K==null?void 0:K.y),Z==null||Z.rotation(Math.atan2(j-Ke,Le-Oe)*(180/Math.PI))}if(ve&&(Ce.source.id===oe.id||Ce.target.id===oe.id)){ve.x((Oe+Le)/2),ve.y((Ke+j)/2),ve.offsetX(ve.getWidth()/2||0),ve.offsetY(ve.getHeight()/2+8||0);const K=Math.atan2(j-Ke,Le-Oe)*(180/Math.PI);Le<Oe?ve.rotation(K+180):ve.rotation(K)}}),this.layer.batchDraw())}}),u.on("dragend",ie=>{ie.evt&&ie.evt[this.actKey]||(this.isAutoTick&&this.simulation.alphaTarget(0),this.isDragging=!1)}),u.on("click",ie=>{ie.evt.detail===2?this.expandNodes(ie,r):ie.evt.detail===1&&ie.evt.button===0&&this.handleNodeClick(ie,r)}),u.on("contextmenu",ie=>{ie.cancelBubble=!0,ie.evt.preventDefault(),ie.evt.stopPropagation(),this.handleNodeContextMenu(ie,r,u)}),u.on("mouseup",ie=>this.handleNodeMouseUp(ie,r)),u.on("mousedown",ie=>this.handleNodeMouseDown(ie,r)),u.on("mouseenter",ie=>this.handleNodeMouseEnter(ie,r)),u.on("mouseleave",ie=>this.handleNodeMouseLeave(ie,r)),this.grab.add(u),this.nodesGroup[r.id]=u})),this.stage.batchDraw()},paintLinks(){const e=this.stage.width()/2,t=this.stage.height()/2;this.links.forEach(n=>{this.linksGroup[`${n.source.id}-${n.target.id}`]&&this.linksGroup[`${n.source.id}-${n.target.id}`].destroy();const r=new Ut.Group({opacity:1,id:`${n.source.id}-${n.target.id}`,visible:n.source.show&&n.target.show}),s=this.darkMode?"#445152":"#999",o=new Ut.Arrow({name:"linkArrow",pointerLength:10,pointerWidth:10,x:e,y:t,fill:s});r.add(o);const a=n.source.x||0,l=n.source.y||0,c=n.target.x||0,u=n.target.y||0,d=new Ut.Line({name:"konvaLine",id:`${n.source.id}-${n.target.id}`,points:[a,l,c,u],stroke:n.target.type==="org"?"#cf1322":s,strokeWidth:1,dash:n.diy===!0?[5,5]:null});if(n.edgeLabelProp){const f=n.edgeLabelProp.length>this.edgeLabelMaxLength?n.edgeLabelProp.substring(0,this.edgeLabelMaxLength)+"...":n.edgeLabelProp,h=new Ut.Text({name:"edgeLabel customEdgeLabel",x:(a+c)/2,y:(l+u)/2,text:f,fontSize:12,fill:this.darkMode?"#cdd9da":"#000"});r.add(h)}if(n.target.type==="nodeType"){const f=n.target.relay_name||n.target.name,h=new Ut.Text({name:"edgeLabel",x:(a+c)/2,y:(l+u)/2,text:f,fontSize:12,fill:this.darkMode?"#cdd9da":"#000"});r.add(h)}r.add(d),r.on("mouseenter",f=>this.handleLinkMouseEnter(f,n)),r.on("mouseleave",f=>this.handleLinkMouseLeave(f,n)),this.grab.add(r),r.moveToBottom(),this.linksGroup[`${n.source.id}-${n.target.id}`]=r}),this.stage.batchDraw()},updateSimulation(){var e,t;try{if(!this.simulation&&!this.hasSimulation){this.setSimulation();return}this.simulation.nodes(this.nodes),this.simulation.force("link").links(this.links),this.simulation.alpha(.4).restart(),this.history.layoutIndex===0?((e=this.nodes)==null?void 0:e.length)<this.manualTickNumber?this.simulation.on("tick",this.ticked):(this.simulation.on("tick",null),this.sendManualTick()):this.simulation.on("tick",this.ticked)}catch(n){console.log(n,"simulation-e1"),(t=this.simulation)==null||t.stop()}},ticked(){switch(Ni("ticked"),this.history.layoutIndex){case 0:this.forceLayout();break;case 1:this.treeLayout();break;default:this.forceLayout();break}},forceLayout(){var t;if(!this.nodes.length||!this.links.length)return;let e=!0;for(let n=0;n<this.links.length;n++){const r=this.links[n],s=this.linksGroup[`${r.source.id}-${r.target.id}`],o=s==null?void 0:s.findOne(".konvaLine"),a=s==null?void 0:s.findOne(".linkArrow"),l=s==null?void 0:s.findOne(".edgeLabel");let c=r.source.x,u=r.source.y,d=r.target.x,f=r.target.y;const h=d-c||1,g=f-u||1,b=Math.sqrt(h*h+g*g),y=h/b||1,_=g/b||1,w=r.source.type==="nodeType"?(this.iconSizeComputed[r.source.icon]||14)/2-1:(this.iconSize[r.target.type]||14)/2-1,x=r.target.type==="nodeType"?(this.iconSizeComputed[r.target.icon]||14)/2-1:(this.iconSize[r.target.type]||14)/2-1;if(c=c+w*y,u=u+w*_,d=d-x*y,f=f-x*_,isNaN(c)||isNaN(u)||isNaN(d)||isNaN(f)){e=!1;break}if(o==null||o.points([c,u,d,f]),a){const C=P0(c,u,d,f,fy);a==null||a.x((C==null?void 0:C.x)||0),a==null||a.y((C==null?void 0:C.y)||0),a==null||a.rotation(Math.atan2(f-u,d-c)*(180/Math.PI))}if(l){l.x((c+d)/2),l.y((u+f)/2),l.offsetX(l.getWidth()/2||0),l.offsetY(l.getHeight()/2+8||0);const C=Math.atan2(f-u,d-c)*(180/Math.PI);d<c?l.rotation(C+180):l.rotation(C)}}if(!e){Ni("请点击自动布局按钮"),this.resetLayout();return}for(let n=0;n<this.nodes.length;n++){const r=this.nodes[n];(t=this.nodesGroup[r.id])==null||t.position({x:r.x||0,y:r.y||0})}},selectEdgesByNode(e){const t=e.map(n=>n.id);this.links.forEach(n=>{const r=this.linksGroup[`${n.source.id}-${n.target.id}`];t.includes(n==null?void 0:n.target.id)||t.includes(n==null?void 0:n.source.id)?r==null||r.addName("isSelected"):r==null||r.removeName("isSelected")})},showKeyWay(e){if(e.length!==1){this.links.forEach(r=>{const s=this.linksGroup[`${r.source.id}-${r.target.id}`];s==null||s.removeName("keyed")}),this.history.resetKeyLinksAndNodes();return}const{keyLinks:t,keyNodeIds:n}=this.history.findKeyLinksAndNodes(e[0].id,!0);this.links.forEach(r=>{const s=t.find(a=>a.source.id===r.source.id&&a.target.id===r.target.id),o=this.linksGroup[`${r.source.id}-${r.target.id}`];s?o==null||o.addName("keyed"):o==null||o.removeName("keyed")}),this.nodes.forEach(r=>{const s=this.nodesGroup[r.id];n.includes(r.id)?s==null||s.addName("keyed"):s==null||s.removeName("keyed")})},updateNodeStyle(){if(!this.iconAllLoaded)return;let e;this.nodesRange&&this.history.keyNodeIds?e=[...this.nodesRange.map(t=>t.id),...this.history.keyNodeIds]:this.nodesRange?e=this.nodesRange.map(t=>t.id):this.history.keyNodeIds&&(e=this.history.keyNodeIds),setTimeout(()=>{this.highlightByRule(this.highlightRule,e),this.updateNodesStyleByName(),this.updateLinksStyleByName()},0)},updateNodesStyleByName(){this.nodes.forEach(e=>{const t=this.nodesGroup[e.id];if(!t)return;const n=t==null?void 0:t.findOne(".border"),r=t==null?void 0:t.findOne(".konvaText"),s=this.darkMode?"#cdd9da":"#000";t!=null&&t.hasName("lowlight")?t==null||t.opacity(.4):t==null||t.opacity(1),t!=null&&t.hasName("isSelected")?(t.scale({x:8/7,y:8/7}),n==null||n.visible(!0)):(t.scale({x:1,y:1}),n==null||n.visible(!1)),e.type!=="nodeType"&&(t!=null&&t.hasName("isSelected")?(r==null||r.visible(!0),r==null||r.fill("#007ee2")):(r==null||r.visible(!!e.textProp),r==null||r.fill(s)))}),this.layer.batchDraw()},updateLinksStyleByName(){this.links.forEach(e=>{const t=this.linksGroup[`${e.source.id}-${e.target.id}`];if(!t)return;const n=t.findOne(".konvaLine"),r=t.findOne(".edgeLabel"),s=t.findOne(".linkArrow");t!=null&&t.hasName("lowlight")?t==null||t.opacity(.4):t==null||t.opacity(1);const o=this.darkMode?"#445152":"#999";if(t.hasName("isSelected")||t.hasName("keyed")){const a=e.target.type==="org"?"#cf1322":"#007ee2";n.stroke(a),s.fill(a),n.strokeWidth(1),t==null||t.opacity(1),r==null||r.fill("#007ee2"),t.hasName("keyed")?n.strokeWidth(3):n.strokeWidth(1)}else{const a=e.target.type==="org"?"#cf1322":o;this.linksGroup[`${e.source.id}-${e.target.id}`].removeName("isSelected"),n.strokeWidth(1),n.stroke(a),s.fill(a),r==null||r.fill(this.darkMode?"#cdd9da":"#000")}}),this.layer.batchDraw()},handleTableSelect(e=[]){this.selection=this.nodes.filter(t=>{let n;return e.length>1?n=e.indexOf(t.id)>=0&&t.type!=="nodeType"&&t.type!=="aggregation":n=e.indexOf(t.id)>=0,n}),this.updateSelection()},resetAll(){var e,t;document.removeEventListener("click",this.hideContextMenu),(e=this.simulation)==null||e.stop(),this.simulation=null,this.hasSimulation=!1,this.mousedownNode=null,this.mousedownPos=null,this.mouseupNode=null,this.$refs.canvasContainer&&((t=this.resizeObserver)==null||t.unobserve(this.$refs.canvasContainer)),this.nodes=[],this.links=[],this.resizeObserver=null,this.destroyed=!0,this.history.destroy&&this.history.destroy()},unbindKeyEvent(){this.initKeyEvent(1)},initKeyEvent(e=0){if(e){document.removeEventListener("keydown",this.keyDown),document.removeEventListener("keyup",this.keyUp);return}document.addEventListener("keydown",this.keyDown),document.addEventListener("keyup",this.keyUp),this.isKeyUp=!0},keyDown(e){const t=e.keyCode,n=e[this.actKey],r=e.shiftKey;if(this.isKeyUp)switch(t){case 17:break;case 16:this.toggleZoom(!1);break;case 38:break;case 40:this.goAction();break;case 67:if(window.getSelection().toString())return;n&&this.copyNodeText(this.selection);break;case 89:n&&!el()&&this.$parent.historyForward();break;case 90:n&&r?this.$parent.historyForward():n&&this.$parent.historyBack();break;case 46:this.$parent.deleteNodes(this.selection);break}},keyUp(e){const t=e.keyCode,n=e.keyCode;if(el())switch(n){case 17:break;case 16:this.toggleZoom(!0);break}else switch(t){case 17:break;case 16:this.toggleZoom(!0);break}this.isKeyUp=!0},initScript(){var r,s,o,a,l,c;if(!this.enableScript||this.scriptInited)return;((o=(s=(r=this.history)==null?void 0:r.dataNow)==null?void 0:s.nodes)==null?void 0:o.length)>0&&(this.scriptInited=!0);const e=["193.36.119.50","6cd7b91212983cc557c6e3e671734ff9"];let t=null;if((c=(l=(a=this.history)==null?void 0:a.dataNow)==null?void 0:l.nodes)==null||c.some(u=>{const d=e.indexOf(u.id);return d>=0&&u.startNode===!0&&(t=d),!0}),t===null)return;const n=[[{node:"193.36.119.50"},{node:"6cd7b91212983cc557c6e3e671734ff9"},{node:"http://9d1109ab.privatedns.org/download/FirefoxSetup.dll"},{node:"94.237.81.57"},{node:"chart.expocasheuro.com"}],[{node:"6cd7b91212983cc557c6e3e671734ff9"},{node:"http://9d1109ab.privatedns.org/download/FirefoxSetup.dll"},{node:"94.237.81.57"},{node:"chart.expocasheuro.com"},{node:"183.246.177.59"},{node:"e7db5b09a39e324d36e937d89f98fdb9122cd859"}]];this.scriptNow=n[t],this.canAct=!!this.scriptNow},goAction(){if(!this.scriptNow||this.actNum>(this.scriptNow.length-1)*2)return;if(this.actNum===(this.scriptNow.length-1)*2){this.centerAndZoom(),this.actNum++;return}const e=this.scriptNow[Math.floor(this.actNum/2)+1];if(this.actNum%2===0){if(!this.history.dataNow.nodes.some(t=>t.id===e.node))return;this.handleTableSelect(e.node),this.nodesMoveToCenterView([e.node]),this.actNum++}else this.$parent.expandNodes(this.selection[0]),setTimeout(()=>{this.nodesMoveToCenterView([this.selection[0].id])},100),this.actNum++},nodesMoveToCenterView(e,t=.9){if(e.length===0)return;const n=[],r=this.nodes.filter(x=>e.indexOf(x.id)>=0);r==null||r.forEach(function(x,C){const S=this.nodesGroup[x.id];n.push({bounds:(S==null?void 0:S.getClientRect())||{},fx:x.x||0,fy:x.y||0})});const s=this.getBounds(n);this.originTransform=this.originTransform={scaleX:this.stage.scaleX(),scaleY:this.stage.scaleY(),x:this.stage.x(),y:this.stage.y()};const o=this.stage.width(),a=this.stage.height()/1.5,l=s.width,c=s.height;if(l===0||c===0)return;let u=t/Math.max(l/o,c/a);u=Math.min(u,Br)||Br,this.scale=u;const d=this.stage.width()/(2*u),f=this.stage.height()/(2*u),h=this.nodesGroup[e[0]],g=h==null?void 0:h.getClientRect(),b=g.x*u,y=g.y*u,_=d-b,w=f-y;this.stage.setAttrs({scaleX:u,scaleY:u,x:_||0,y:w||0}),this.layer.batchDraw()},getBounds(e){let t,n,r,s;return e.map(o=>{const a=o.bounds,l=a.x+o.fx,c=a.y+o.fy;t=Math.min(l,t)||l,n=Math.min(c,n)||c,r=Math.max(l+a.width,r)||l+a.width,s=Math.max(c+a.height,s)||c+a.height}),{x:t,y:n,width:r-t,height:s-n}},resetMouseVars(){var e;this.mousedownNode=null,this.mousedownPos=null,this.mouseupNode=null,(e=this.dragLine)==null||e.destroy(),Object.keys(this.nodesGroup).forEach(t=>{this.nodesGroup[t].draggable(!0)})},loadIcons(){return new Promise((e,t)=>{const n=[],r=[];for(const c in this.moduleDetail.plugs){const u=this.moduleDetail.plugs[c];u==null||u.map(d=>{d.children?r.push(...d.children):r.push(d)})}n.push(...r.map(c=>c.icon)),n.push(...this.moduleDetail.nodes.map(c=>c.name)),n.push("node_type"),n.push("node"),n.push("aggregation");const s=this;let o=0;const a=n.filter(c=>this.imgPath[`${s.prefix}d3svg1/${c}.svg`]);function l(c){return{}.VITE_SVG_TYPE==="base64"?TS(c):AS(c)}a.map(c=>{l(this.imgPath[`${s.prefix}d3svg1/${c}.svg`]).then(u=>{s.iconFiles[c]=u;const d=yq(u).width;this.iconSize[c]=this.nodeWidth?this.nodeWidth:d,o++,o===a.length&&(s.iconAllLoaded=!0,e())}).catch(u=>{console.log(u,"e"),t()})})})},toggleZoom(e){},handleNodeContextMenu(e,t){var n,r;e.evt&&e.evt[this.actKey]||(clearTimeout(this.popoverTimer),this.showPopover=!1,this.contextMenuId++,this.contextMenuNode=t,this.mousePosition.left=e.evt.clientX,this.mousePosition.top=e.evt.clientY,this.showContextMenu=!0,e.currentTarget.type==="aggregation"?this.menuOptions=Qce:this.menuOptions=(n=this.$parent.moduleDetail)!=null&&n.plugs[t.type]?Array.from((r=this.$parent.moduleDetail)==null?void 0:r.plugs[t.type]):[])},handleDeselectNode(e,t){Xe(this,"handle-select-node",{isSelected:!1,_node:it(t)}),this.selection.length&&(this.selection=[],this.updateSelection()),this.setHighlightRule({}),this.hideContextMenu()},setHighlightRule({prop:e,type:t,value:n}){this.highlightRule={prop:e,type:t,value:n},this.updateNodeStyle(),t||E8(".legend-filter .out-box").classed("active",!1)},updateSelection(){const e=this.selection.map(t=>t.id);this.nodes.forEach(t=>{var n,r;e.includes(t.id)?(n=this.nodesGroup[t.id])==null||n.addName("isSelected"):(r=this.nodesGroup[t.id])==null||r.removeName("isSelected")}),Xe(this,"updateSelection")},toggleLayout(e){this.history.layoutIndex=e,this.nodes.map(t=>{t.fx=t.fy=null}),this.updateSimulation(),this.ticked(),setTimeout(()=>{this.centerAndZoom()},200)},handleNodeClick(e,t){Fn({cId:"handleNodeClick",c:"点击节点"}),this.canAct&&(t.type==="org"?window.open("http://bs.safe.360.net/starmap","__blank"):t.type==="nodeType"&&t.id.indexOf("org")>=0&&window.open("http://bs.safe.360.net/orglist?snapshot=true","__blank1")),this.hideContextMenu();const n=this.selection.some(s=>s.id===t.id);if(e.evt.shiftKey){if(t.type==="nodeType"||this.selection.some(s=>s.type==="nodeType"))return;n?this.selection=this.selection.filter(s=>s.id!==t.id):this.selection=[...this.selection,t]}else n?this.selection=[]:this.selection=[t];const r=this.selection.some(s=>s.id===t.id);Xe(this,"handle-select-node",{isSelected:r,_node:t}),this.updateSelection(),this.setHighlightRule(this.highlightRule)},handleNodeMouseEnter(e,t){if(!this.showContextMenu&&!e.evt[this.actKey]){const n=e.target.width(),r=e.target.height(),s=e.target,o=s.getAbsolutePosition(),l=s.getStage().container().getBoundingClientRect(),c=o.x-n/2+l.left,u=o.y-r/2+l.top,d=c,f=u,h=d,g=d+n,b=f,y=f+r;this.hoverNodePosition={top:b,right:g,bottom:y,left:h,width:n,height:r},this.popoverType="node",this.popoverContent={[t.type]:t.id},this.popoverNode=t,this.popoverTimer&&clearTimeout(this.popoverTimer),this.popoverTimer=setTimeout(()=>{this.showPopover=!0},200)}},handleNodeMouseLeave(e,t){this.showContextMenu||(clearTimeout(this.popoverTimer),this.showPopover=!1)},handleNodeMouseUp(e,t){var n;e.evt[this.actKey]&&this.mousedownNode&&(this.dragLine&&((n=this.dragLine)==null||n.destroy()),this.mouseupNode=t,this.mouseupNode.id===this.mousedownNode.id||this.mouseupNode.type==="aggregation"||this.mousedownNode.type==="aggregation"||this.$parent.addLink(this.mousedownNode,this.mouseupNode)),this.resetMouseVars()},handleNodeMouseDown(e,t){if(e.evt[this.actKey]){this.mousedownNode=t,this.nodesGroup[t.id].draggable(!1);const n=this.stage.scaleX(),r=this.stage.getPointerPosition(),s=(r.x-this.stage.x())/n,o=(r.y-this.stage.y())/n;this.mousedownPos={x:s,y:o},this.dragLine=new Ut.Line({points:[s,o,s,o],stroke:"black",strokeWidth:1,dash:[5,5],opacity:.7,visible:!0}),this.layer.add(this.dragLine),this.stage.draw()}},handleLinkMouseEnter(e,t){if(t.target.type==="nodeType")return;const n=!!t.edgeLabelProp;let r;if(n?r=t.edgeLabelProp:r=t.target.relay_name||t.target.name,r.length<=this.edgeLabelMaxLength)return;const o=this.linksGroup[`${t.source.id}-${t.target.id}`].findOne(".edgeLabel"),a=t.source.x,l=t.source.y,c=t.target.x,u=t.target.y;o&&(o.text(r),o.x((a+c)/2),o.y((l+u)/2),o.offsetX(o.getWidth()/2||0),o.offsetY(o.getHeight()/2+8||0))},handleLinkMouseLeave(e,t){if(t.target.type==="nodeType")return;const n=!!t.edgeLabelProp;let r;if(n?r=t.edgeLabelProp:r=t.target.relay_name||t.target.name,r.length<=this.edgeLabelMaxLength)return;const o=this.linksGroup[`${t.source.id}-${t.target.id}`].findOne(".edgeLabel"),a=t.source.x,l=t.source.y,c=t.target.x,u=t.target.y;o&&(o.text(r.substring(0,this.edgeLabelMaxLength)+"..."),o.x((a+c)/2),o.y((l+u)/2),o.offsetX(o.getWidth()/2||0),o.offsetY(o.getHeight()/2+8||0))},treeLayout(){this.nodes.map(e=>{e.fx=e.pos,e.fy=e.levelNum*this.levelHeight}),this.forceLayout()},resetLayout(){this.simulation.stop(),this.nodes.map(e=>{delete e.vx,delete e.vy,delete e.x,delete e.y,delete e.fx,delete e.fy}),this.updateSimulation()},selectSingleEdgeNode(e){const t=[];this.links.map(n=>{n.source.id===e.id&&t.push(n.target.id)});for(let n=t.length-1;n>=0;n--){let r=0,s=0;const o=t[n];this.links.map(a=>{a.source.id===o&&r++,a.target.id===o&&s++}),r>=1&&t.splice(n,1),s>=2&&t.splice(n,1)}return t},selectChildren(e){const t=[];this.links.map(n=>{n.source.id===e.id&&t.push(n.target.id)}),this.handleTableSelect(t)},selectParents(e){const t=[];this.links.map(n=>{n.target.id===e.id&&t.push(n.source.id)}),this.handleTableSelect(t)},handleGlobalContextMenu(e){this.mousePosition.left=e.evt.clientX,this.mousePosition.top=e.evt.clientY,this.menuOptions=[],this.showContextMenu=!0,this.showPopover=!1,this.contextMenuNode={},e.evt.preventDefault()},hideContextMenu(){this.showContextMenu=!1,this.contextMenuNode={}},centerAndZoom(e=.7,t=!1){var d,f,h;if(this.originTransform={scaleX:this.stage.scaleX(),scaleY:this.stage.scaleY(),x:this.stage.x(),y:this.stage.y()},!this.grab)return;const n=this.stage.width(),r=this.stage.height(),s=this.grab.getClientRect(),o=s.width/this.scale,a=s.height/this.scale;if(o===0||a===0)return;let l=e/Math.max(o/n,a/r);if(l=t?l:Math.min(l,Br)||Br,!t&&l>Br)return;this.scale=l;const c=this.stage.width()/(2*l),u=this.stage.height()/(2*l);if((d=this.simulation)!=null&&d.force&&((f=this.simulation)==null||f.force("center",O4(c,u))),this.ticked(),this.stage.setAttrs({scaleX:l,scaleY:l,x:0,y:0}),this.layer.batchDraw(),this.history.layoutIndex===1){const g=this.grab.getClientRect(),b=(n-g.width)/2-g.x,y=(r-g.height)/2-g.y;this.stage.setAttrs({x:b,y}),this.layer.batchDraw(),(h=this.simulation)==null||h.stop()}},reset(){this.stage.setAttrs(this.originTransform)},handleContextMenuClick({nodes:e,api:t,dataApi:n}){if(this.requestGraphData){let r,s;const o={show_label:"label",all_show_label:"label",all_show_names:"name",show_names:"name"};switch(t&&t.name){case"edit_label":this.editLabel(e);break;case"single_edge_select":r=this.selectSingleEdgeNode(e[0]),this.selection=this.nodes.filter(a=>r.includes(a.id));break;case"hold_aggregation":s=this.selectSingleEdgeNode(e[0]),this.$parent.aggregationNodes(s,e[0]);break;case"release_aggregation":this.$parent.releaseAggregation(e[0]);break;case"show_label":case"show_names":e.map(a=>{a.textProp=o[t.name]}),this.update();break;case"all_show_label":case"all_show_names":this.nodes.map(a=>{a.textProp=o[t.name]}),this.update();break;case"un_show_names":case"un_show_label":e.map(a=>{a.textProp=null}),this.update();break;case"all_un_show_names":case"all_un_show_label":this.nodes.map(a=>{a.textProp=null}),this.update();break;case"all_show_edges_label":this.links.map(a=>{a.edgeLabelProp=a.edge_label}),this.update();break;case"all_hide_edges_label":this.links.map(a=>{a.edgeLabelProp=null}),this.update();break;case"copy":this.copyNodeText(e);break;case"node_star":e.map(a=>{this.starNode(a)});break;case"un_node_star":e.map(a=>{this.starNode(a,!1)});break;case"fix_nodes":e.map(a=>{this.toggleMove(a,!0)});break;case"un_fix_nodes":e.map(a=>{this.toggleMove(a,!1)}),this.updateSimulation();break;case"all_fix_nodes":this.fixAllNodes(!0);break;case"all_un_fix_nodes":this.fixAllNodes(!1);break;case"expand_node":e.map(a=>{this.$parent.expandNodes(a)});break;case"expand_part_node":e.map(a=>{this.$parent.expandNodes(a,n)});break;case"go_result":this.handleGoDetail(e);break;case"delete_node":this.$parent.deleteNodes(e);break;case"select_children":this.selectChildren(e[0]);break;case"select_parents":this.selectParents(e[0]);break;case"undo":this.$parent.historyBack();break;case"redo":this.$parent.historyForward();break;case"add_con_node":this.$parent.$refs.buttonList.addNode("diy",e[0]);break;case"add_link":this.$parent.$refs.buttonList.addNode("diy",e[0]);break;case"show_node":this.toggleShowNode(e[0],e[1],!0);break;case"hide_node":this.toggleShowNode(e[0],e[1],!1);break;case"show_nodes":this.toggleShowNodes(e,!0);break;case"hide_nodes":this.toggleShowNodes(e,!1);break;default:Xe(this,"custom-contextmenu-click",{eventName:t.name,customConfig:t.customConfig,nodes:e,allNodes:it(this.history.dataNow.nodes)})}this.hideContextMenu(),setTimeout(()=>{this.updateSelection()},400)}else dn({message:"无可操作权限",type:"warning"})},expandNodes(e,t){Fn({cId:"dblclick",c:"双击节点"}),this.requestGraphData?this.$parent.expandNodes(t):dn({message:"无可操作权限",type:"warning"})},toggleShowNode(e,t,n=!0){this.history.toggleShowNode(e,null,n),this.selection.filter(s=>s.show).length>0||this.handleTableSelect([]),setTimeout(this.updateNodeStyle,100)},toggleShowNodes(e,t=!0){e.forEach(n=>{this.history.toggleShowNode(n,null,t)}),setTimeout(this.updateNodeStyle,100)},copyNodeText(e){let t="";e.filter(n=>n.type!=="aggregation"&&n.type!=="nodeType").map(n=>{t=t+n.id+`
|
|
155
|
-
`}),t&&eue(t).then(()=>{dn({message:"复制成功",type:"success"})},n=>{console.log("copy---e",n)})},toggleMove(e,t){e.fx=t?e.x:null,e.fy=t?e.y:null},autoDisplay(){this.nodes.map(e=>{e.fx=null,e.fy=null})},editLabel(e){var t;_S.prompt("修改备注",{confirmButtonText:"确定",cancelButtonText:"取消",inputValue:(t=e[0])==null?void 0:t.label,inputPlaceholder:"请输入备注,最多20字",inputValidator:n=>n.length>20?"已超过20字":!0}).then(({value:n})=>{e.map(r=>{r.label=n,this.showLabel(r,"label")}),this.updateNodeStyle()}).catch(n=>{console.log(n)})},showLabel(e,t){e.textProp=t,this.update()},hideLabel(e,t){e.textProp=null,this.update()},safeGet(e,t){return!e||!t?void 0:t.split(".").reduce((s,o)=>s&&s[o]?s[o]:void 0,e)},fixAllNodes(e=!0){this.nodes.map(t=>{this.toggleMove(t,e)}),!e&&this.isAutoTick&&this.updateSimulation()},highlightByRule(e,t){if(!e.prop&&!t){this.nodes.forEach(l=>{const c=this.nodesGroup[l.id];c==null||c.removeName("lowlight")}),this.links.forEach(l=>{const c=this.linksGroup[`${l.source.id}-${l.target.id}`];c==null||c.removeName("lowlight")});return}const{type:n,prop:r,value:s}=e,o=this,a=[];this.nodes.forEach(l=>{const c=this.nodesGroup[l.id];r?n==="include"?s.includes(o.safeGet(l,r))&&o.inNodesRange(t,l)?(c==null||c.removeName("lowlight"),a.push(l)):c==null||c.addName("lowlight"):n==="equal"?o.safeGet(l,r)===s&&o.inNodesRange(t,l)?(c==null||c.removeName("lowlight"),a.push(l)):c==null||c.addName("lowlight"):n==="boolean"&&(A0(o.safeGet(l,r))&&o.inNodesRange(t,l)?(c==null||c.removeName("lowlight"),a.push(l)):c==null||c.addName("lowlight")):o.inNodesRange(t,l)?(c==null||c.removeName("lowlight"),a.push(l)):c==null||c.addName("lowlight")}),this.links.forEach(l=>{const c=this.linksGroup[`${l.source.id}-${l.target.id}`];a.some(d=>d.id===l.target.id)?c==null||c.removeName("lowlight"):c==null||c.addName("lowlight")})},handleCustomSelect(e){if(this.handleDeselectNode(),!e.prop)return;const{type:t,prop:n,value:r}=e,s=this;this.nodes.forEach(o=>{if(n&&t==="include"){let a;if(o.type==="nodeType"){const l=s.safeGet(o,"parents"),c=s.safeGet(o,"children"),u=l==null?void 0:l.some(f=>r.includes(f)),d=c==null?void 0:c.some(f=>r.includes(f));a=u&&d}(r.includes(s.safeGet(o,n))||a)&&this.selection.push(o)}}),this.updateSelection()},inNodesRange(e,t){return e?e.some(n=>n===t.id):!0},loadFlagFiles(e){return at(this,null,function*(){return new Promise(t=>{this.flagFiles[e]?t(this.flagFiles[e]):(this.flagFiles[e]=this.imgPath[`${this.prefix}d3svg1/flags/${e}.png`],t(this.flagFiles[e]))})})},getNodeImage(e){return at(this,null,function*(){var s,o,a,l,c,u,d,f,h,g,b,y;let t=null;const n=(a=(o=(s=e.detail)==null?void 0:s.info)==null?void 0:o.basic)==null?void 0:a.flag,r=(u=(c=(l=e==null?void 0:e.detail)==null?void 0:l.info)==null?void 0:c.basic)==null?void 0:u.level;if(e.detail&&((f=(d=e.detail)==null?void 0:d.info)!=null&&f.icon_img))try{t=yield Gs(e.detail.info.icon_img)}catch(_){console.log("loadCompleted error",_)}else if(e.detail&&((g=(h=e.detail)==null?void 0:h.info)!=null&&g.inner_img))try{t=yield Gs(e.detail.info.inner_img)}catch(_){console.log("loadCompleted error",_)}else if(e.type==="nodeType"||e.type==="aggregation"){if(e!=null&&e.icon_img)try{return t=yield Gs(e.icon_img),t}catch(w){console.log("loadCompleted error",w)}const _=e.icon||"node_type";if(Vi[_])return t=Vi[_],t;t=this.iconFiles[_]?this.iconFiles[_]:this.iconFiles.node_type,t=yield Gs("data:image/svg+xml,"+encodeURIComponent(t)),Vi[_]=t}else if(n&&(e.type==="ip"||e.type==="internet")){if(Vi[n])return t=Vi[n],t;yield this.loadFlagFiles(n),t=yield Gs(this.flagFiles[n]),Vi[n]=t}else if((y=(b=e.detail)==null?void 0:b.info)!=null&&y.inner_country&&(e.type==="country"||e.type==="target_country")){const _=e.detail.info.inner_country;if(Vi[_])return t=Vi[_],t;yield this.loadFlagFiles(_),t=yield Gs(this.flagFiles[_]),Vi[_]=t}else{const _=`${e.type||"node"}${r}${this.darkMode}`;if(Vi[_])return t=Vi[_],t;t=this.iconFiles[e.type]?this.iconFiles[e.type]:this.iconFiles.node;const w=Go(r,this.levelList,this.darkMode),x=this.darkMode?"#182628":"#fff";t=PS(t,w,x);try{t=yield Gs("data:image/svg+xml,"+encodeURIComponent(t))}catch(C){console.log(C)}Vi[_]=t}return t})},handleGoDetail(e){e.forEach(t=>{if(t.isCluster)return;const n=t.type,r=this.moduleDetail.config.jumpRule[n];if(r)if(n==="org"){const s=t.id.split("(")[0];s.indexOf("APT")>=0&&window.open(r.split("${id}").join(s),t.id)}else{let s=t.origin&&t.origin[0]||t.id;(n==="url"||n==="virus")&&(s=encodeURIComponent(s)),window.open(r.split("${id}").join(s),t.id)}})},starNode(e,t=!0){e.collect=t,this.update()},handleAddBlack(e){this.showBlackType=!0,this.node=e},changeVisible(e){this.showBlackType=e},zoomIn(){this.adjustZoom(1.1)},zoomOut(){this.adjustZoom(.909)},adjustZoom(e){const n=this.stage.scaleX()*e;this.scale=n;const r={x:this.stage.width()/2,y:this.stage.height()/2},s={x:this.stage.getPointerPosition().x-this.stage.x(),y:this.stage.getPointerPosition().y-this.stage.y()},o={x:-(s.x-r.x)*(e-1),y:-(s.y-r.y)*(e-1)};this.stage.setAttrs({x:this.stage.x()+o.x,y:this.stage.y()+o.y,scaleX:n,scaleY:n}),this.layer.batchDraw()},addNodesDetail(e){return at(this,null,function*(){const t=e.filter(s=>!s.detail&&s.noDetail!==!0&&s.type!=="aggregation"&&s.type!=="nodeType"),n={};t.map(s=>{n[s.type]?n[s.type].push(s):n[s.type]=[s]});const r=[];for(const s in n){const o=n[s],a={};o.map(l=>{l.origin&&(a[l.id]=l.origin)}),r.push(this.graphApi.getNodesDetail({api:this.moduleDetail.node_info[n[s][0].type],node_id:n[s].map(l=>l.id),origin:a}).then(l=>(l.data.records.map(u=>{const d=e.find(f=>f.id===u.info.id);d.detail=u}),Promise.resolve({}))))}})},addCanvasBg(){this.darkMode&&(this.darkBgRect=new Ut.Rect({x:0,y:0,width:this.stage.width()/this.scale,height:this.stage.height()/this.scale,fill:"#021212",stroke:"#021212",listening:!1,draggable:!1}),this.layer.add(this.darkBgRect),this.darkBgRect.moveToBottom(),this.stage.draw())},removeCanvasBg(){this.darkBgRect&&this.darkBgRect.destroy(),this.darkBgRect=null,this.stage.draw()}}},rue={class:"main-svg-box","element-loading-text":"布局中...","element-loading-background":"rgba(122, 122, 122)"},sue={ref:"canvasContainer",class:"canvas-container"};function oue(e,t,n,r,s,o){const a=We("popover"),l=We("node-contextmenu"),c=vS;return I(),z("div",{class:Y(["render-container",n.darkMode?"dark-theme "+s.uniqueClass:" "+s.uniqueClass])},[It((I(),z("div",rue,[H("div",sue,null,512)])),[[c,s.ticking]]),te(a,{"dark-mode":n.darkMode,"show-popover":s.showPopover&&!s.isDragging,"mouse-position":s.hoverNodePosition,"node-info":s.popoverNode,"module-detail":n.moduleDetail,type:s.popoverType,"custom-tooltip":n.customTooltip,history:n.history,data:n.history.dataNow},null,8,["dark-mode","show-popover","mouse-position","node-info","module-detail","type","custom-tooltip","history","data"]),n.isThreatPath?re("",!0):(I(),Ee(l,{key:0,show:o.showContextMenuFlag,axis:s.mousePosition,"node-info":o.contextMenuNodes,history:n.history,"menu-options":s.menuOptions,"module-detail":n.moduleDetail,onContextmenuClick:o.handleContextMenuClick},null,8,["show","axis","node-info","history","menu-options","module-detail","onContextmenuClick"]))],2)}const aue=ln(iue,[["render",oue]]),Age="",Pge="",Tge="",{toClipboard:C7}=Rf(),lue={name:"SnapShotDialog",components:{},mixins:[],props:{snapshot:{type:Object,default:()=>{}},graphApi:{type:Object,default:()=>{}}},data(){return{dialogVisible:!1,origin:window.location.origin,ruleForm:{radio:"0",event:"",group:"",graphDesc:""},rules:{event:[{required:!0,message:"请选择安全事件",trigger:"change"}],group:[{required:!1,message:"请选择团队",trigger:"change"}]},eventOptions:[{value:"",label:""}],groupOptions:[{value:"",label:""}],hostList:["https://sc.360.net","https://sc.b.qihoo.net","http://sec.test.safe.qihoo.net"],isInnerAccount:!1,visibleSuccess:!1,eventUrl:null}},computed:{},watch:{snapshot:{handler:function(e,t){e.name&&(this.ruleForm.graphDesc=e.name)},immediate:!0,deep:!0}},mounted(){this.graphApi.getReportList&&this.graphApi.getReportList().then(e=>{e.data!==null&&(this.eventOptions=[],e.data.map(t=>{this.eventOptions.push({label:t.title,value:t.report_id})}))}),this.graphApi.getGroupList&&this.graphApi.getGroupList().then(e=>{e.data!==null?(this.groupOptions=[],e.data.map(t=>{this.groupOptions.push({label:t.group_name,value:t.group_id})}),this.isInnerAccount=!0):this.isInnerAccount=!1})},updated(){},beforeUnmount(){},methods:{hanleClickCopy(e){C7(e).then(t=>dn({message:"复制成功",type:"success"}),t=>dn.error("复制失败"))},show(){this.dialogVisible=!0},hide(){this.dialogVisible=!1,this.resetForm("ruleForm")},submitForm(e){this.$refs[e].validate(t=>{if(t){const n=this.hostList.some(l=>l===this.origin);let r=null;n?this.origin===this.hostList[1]?r=`${this.hostList[0]}/graph?snapshot_id=${this.snapshot.snapshot_id}&vcode=${this.snapshot.vcode}`:r=`${this.origin}/graph?snapshot_id=${this.snapshot.snapshot_id}&vcode=${this.snapshot.vcode}`:r=`http://test.sec.360.net/graph?snapshot_id=${this.snapshot.snapshot_id}&vcode=${this.snapshot.vcode}`,this.eventUrl=window.location.origin+"/event/"+this.ruleForm.event;const s=this.snapshot.thumb;let o=null;this.groupOptions.map(l=>{l.value===this.ruleForm.group&&(o=l.label)});const a={report_id:this.ruleForm.event,group_id:this.ruleForm.group,content:s,graph_url:r,group_name:o,acl:parseInt(this.ruleForm.radio),head:this.ruleForm.graphDesc};this.graphApi.addGraph(a).then(l=>{l.code==="0"?(C7(this.eventUrl),dn({message:"分享成功! 分享事件地址已经复制",type:"success",showClose:!0,duration:5e3})):dn({message:"分享失败",type:"error"})}).catch(()=>{dn({message:"分享失败",type:"error"})}),this.resetForm(e),this.dialogVisible=!1}else return!1})},resetForm(e){this.$refs[e].resetFields(),this.snapshot.name=""}}},cue={class:"sharetoEvents"},uue={class:"lable-header"},due={class:"desc"},fue={key:0,class:"desc-font"},hue={key:1,class:"desc-font"},pue={class:"dialog-footer"};function gue(e,t,n,r,s,o){const a=f$,l=yf,c=bf,u=Um,d=jo,f=jm,h=$o,g=qc;return I(),z("div",cue,[te(g,{title:"分享到安全事件","append-to-body":"","close-on-click-modal":!1,width:"25%",modelValue:s.dialogVisible,"onUpdate:modelValue":t[6]||(t[6]=b=>s.dialogVisible=b),class:"el-dialog-graph"},{footer:ee(()=>[H("span",pue,[te(h,{type:"primary",onClick:t[5]||(t[5]=b=>o.submitForm("ruleForm"))},{default:ee(()=>t[9]||(t[9]=[Je("确认分享")])),_:1}),te(h,{onClick:o.hide},{default:ee(()=>t[10]||(t[10]=[Je("关闭")])),_:1},8,["onClick"])])]),default:ee(()=>[te(f,{ref:"ruleForm",model:s.ruleForm,rules:s.rules,"label-width":"100px",class:"demo-ruleForm"},{default:ee(()=>[H("div",uue,[te(a,{modelValue:s.ruleForm.radio,"onUpdate:modelValue":t[0]||(t[0]=b=>s.ruleForm.radio=b),class:"el-radio",label:"1",border:"",size:"medium"},{default:ee(()=>t[7]||(t[7]=[Je("付费可见")])),_:1},8,["modelValue"]),te(a,{modelValue:s.ruleForm.radio,"onUpdate:modelValue":t[1]||(t[1]=b=>s.ruleForm.radio=b),label:"0",border:"",size:"medium"},{default:ee(()=>t[8]||(t[8]=[Je("开放")])),_:1},8,["modelValue"]),H("div",due,[s.ruleForm.radio==="0"?(I(),z("span",fue,"该Graph内容对所有用户可见。")):(I(),z("span",hue,"该Graph内容对付费用户可见。"))])]),te(u,{label:"安全事件",prop:"event"},{default:ee(()=>[te(c,{modelValue:s.ruleForm.event,"onUpdate:modelValue":t[2]||(t[2]=b=>s.ruleForm.event=b),"popper-append-to-body":!1,filterable:"",placeholder:"请选择",class:"select-item"},{default:ee(()=>[(I(!0),z(qe,null,Tt(s.eventOptions,b=>(I(),Ee(l,{key:b.value,label:b.label,value:b.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),s.isInnerAccount?(I(),Ee(u,{key:0,label:"选择团队",prop:"group"},{default:ee(()=>[te(c,{modelValue:s.ruleForm.group,"onUpdate:modelValue":t[3]||(t[3]=b=>s.ruleForm.group=b),class:"select-item",filterable:"",placeholder:"请选择"},{default:ee(()=>[(I(!0),z(qe,null,Tt(s.groupOptions,b=>(I(),Ee(l,{key:b.value,label:b.label,value:b.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):re("",!0),te(u,{label:"Graph介绍",prop:"graphDesc"},{default:ee(()=>[te(d,{modelValue:s.ruleForm.graphDesc,"onUpdate:modelValue":t[4]||(t[4]=b=>s.ruleForm.graphDesc=b),type:"textarea",rows:2,placeholder:"请输入内容",maxlength:"50",clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"])])}const mue=ln(lue,[["render",gue]]),Oge="",{toClipboard:vue}=Rf(),bue={name:"SnapShotDialog",components:{ShareToSecurityEvents:mue},mixins:[],props:{graphUrlPath:{type:String,default:"/graph"},snapshot:{type:Object,default:()=>{}},graphApi:{type:Object,default:()=>{}}},data(){return{dialogVisible:!1,origin:window.location.origin,isInnerAccount:!1}},computed:{},watch:{},created(){},mounted(){qs(wt,"sharePermission",e=>{this.isInnerAccount=e})},updated(){},beforeUnmount(){Hs(wt,"sharePermission")},methods:{hanleClickCopy(e){vue(e).then(t=>dn({message:"复制成功",type:"success"}),t=>dn.error("复制失败"))},show(){this.dialogVisible=!0},hide(){this.dialogVisible=!1},shareToEvents(){this.dialogVisible=!1,this.$refs.sharetoevents.show()}}},yue={class:"snapshotdialog-container"},_ue={class:"dialog-footer"};function wue(e,t,n,r,s,o){const a=jo,l=I$,c=$o,u=qc,d=We("ShareToSecurityEvents");return I(),z("div",yue,[te(u,{title:"复制链接及提取码","append-to-body":"",modelValue:s.dialogVisible,"onUpdate:modelValue":t[2]||(t[2]=f=>s.dialogVisible=f),"close-on-click-modal":!1,class:"el-dialog-graph"},{footer:ee(()=>[H("span",_ue,[s.isInnerAccount?(I(),Ee(c,{key:0,type:"primary",onClick:t[0]||(t[0]=f=>o.shareToEvents())},{default:ee(()=>t[5]||(t[5]=[Je("分享到安全事件")])),_:1})):re("",!0),te(c,{type:"primary",onClick:t[1]||(t[1]=f=>o.hanleClickCopy(`${s.origin}${n.graphUrlPath}?snapshot_id=${n.snapshot.snapshot_id}&vcode=${n.snapshot.vcode}`))},{default:ee(()=>t[6]||(t[6]=[Je("复制链接及提取码")])),_:1}),te(c,{onClick:o.hide},{default:ee(()=>t[7]||(t[7]=[Je("关闭")])),_:1},8,["onClick"])])]),default:ee(()=>[te(a,{value:`${s.origin}${n.graphUrlPath}?snapshot_id=${n.snapshot.snapshot_id}`},{prepend:ee(()=>t[3]||(t[3]=[Je("链接地址:")])),_:1},8,["value"]),te(l),te(a,{value:n.snapshot.vcode},{prepend:ee(()=>t[4]||(t[4]=[Je("提取码:")])),_:1},8,["value"])]),_:1},8,["modelValue"]),te(d,{ref:"sharetoevents",snapshot:n.snapshot,"graph-api":n.graphApi},null,8,["snapshot","graph-api"])])}const Cue=ln(bue,[["render",wue]]),Nge="",Sue={name:"ForceGraphByCanvas",components:{Loading:Ma,ForceGraphSvgIcon:Ho,RenderByCanvas:aue,ButtonList:bY,SnapShotDialog:Cue,RightMenu:WG,Legend:GK,NodeVisibleControl:YK},mixins:[Or],provide:function(){return{history:this.history,hasLevel:this.hasLevel,levelList:this.levelList,levelMap:this.levelMap,getDarkMode:()=>this.darkMode,requestGraphData:this.requestGraphData,moduleDetail:()=>this.moduleDetail}},props:{showPoint:{type:Boolean,default:!0},isRenderStartNode:{type:Boolean,default:!0},isDefaultSelectStartNode:{type:Boolean,default:!0},isShowRightMenu:{type:Boolean,default:!0},hideButtonList:{type:Array,default:()=>[]},showTopSearch:{type:Boolean,default:!1},customContextMenuEvent:{type:Function},handleSelectNodeEvent:{type:Function},handleDataLoaded:{type:Function},graphApi:{type:Object,default:()=>{}},graphUrlPath:{type:String,default:"/graph"},snapshot_id:{type:String,default:""},vcode:{type:String,default:""},module:{type:String,default:""},startNode:{type:Array,default:()=>[]},enterStartNode:{type:Boolean,default:!1},hasLevel:{type:Boolean,default:!0},levelList:{type:Array,default:()=>[{level:"未知",levelName:"未知",className:"unknown",iconType:"",normalColor:"#666",darkColor:"#c6cdd5",dangerNumber:0},{level:"危险",levelName:"危险",className:"warn",iconType:"",normalColor:"#CF1322",darkColor:"#fb2400",dangerNumber:1},{level:"普通",levelName:"普通",className:"normal",iconType:"",normalColor:"#007EE2",darkColor:"#0094ff",dangerNumber:-1},{level:"安全",levelName:"安全",className:"safe",iconType:"",normalColor:"#009A75",darkColor:"#00da90",dangerNumber:-2}]},showLevelCount:{type:Boolean,default:!1},darkMode:{type:Boolean,default:!1},title:{type:String,default:""},isShowNodeMessage:{type:Boolean,default:!0},nodeWidth:{type:Number},startNodeWidth:{type:Number},linkDistance:{type:Number},strength:{type:Number},nodeTypeScale:{type:Number},singlesNodeMaxNum:{type:Number,default:100},startNodeAnimation:{type:Boolean,default:!0},customTooltip:{type:Function},enableScript:{type:Boolean,default:!1},edgeLabelMaxLength:{type:Number,default:10},hasNodeVisibleControl:{type:Boolean,default:!1}},emits:["sharePermission","custom-contextmenu-click","handle-select-node","handle-data-loaded","outdate"],data(){return{history:new oq({isShowNodeMessage:this.isShowNodeMessage}),isLoading:!1,bigLoading:!1,loadingInfo:"数据加载中",moduleDetail:{},contextMenuNode:{},contextMenuId:0,isDragging:!1,isCtrlDown:!1,selection:[],snapshot:{},inited:!1,outdateTime:0,fullScreen:!1,generateUniqueIndexNow:this.generateUniqueIndex(),screenHeight:0,margin:"0",requestGraphData:!0,nodeTypeList:[]}},computed:{topFrame(){return window.top.location===window.location},levelMap(){const e={};return this.levelList.forEach(t=>{e[t.level]=t}),e}},watch:{startNode:{handler:function(e,t){this.moduleDetail.module&&this.searchStartNode()},immediate:!0,deep:!0},screenHeight:{deep:!0,handler:function(){this.margin=this.changeMargin()}},graphApi:{handler:function(){this.$nextTick(()=>{this.initializeGraphApi()})},deep:!0,immediate:!0}},unmounted(){window.onresize=null},mounted(){return at(this,null,function*(){console.log('"2024/9/19 12:31:01"',"2024/9/19 12:31:01"),this.initializeGraphApi(),window.onresize=()=>{this.fullScreen=!!document.fullscreenElement,this.screenHeight=document.body.clientHeight},this.margin=this.changeMargin(),qs(wt,"emitDataLoaded",()=>{this.emitDataLoaded()})})},methods:{initializeGraphApi(){if(this.graphApi){if(this.snapshot_id)this.isLoading=!0,this.graphApi.getSnapshotDetail({snapshot_id:this.snapshot_id,vcode:this.vcode}).then(e=>{this.moduleDetail=e.data.config,this.history.initFromSnapshot(JSON.parse(e.data.data)),setTimeout(()=>{this.$refs.render.updateNodeStyle(),this.centerAndZoom(.8,!1)},1e3)}).catch(e=>{console.log(e,"e")}).finally(e=>{this.isLoading=!1});else if(this.module)this.initGraph();else{dn.error("请传入模块名称");return}this.graphApi.userInfo&&this.graphApi.userInfo().then(e=>{e.data!==null&&(Xe(wt,"sharePermission",e.data.access.graph_share),this.requestGraphData=e.data.access.request_graph_data)}).catch(e=>{this.onOutdate(e.res)})}},handleCustomContextMenuClick(e){this.customContextMenuEvent&&typeof this.customContextMenuEvent=="function"?this.customContextMenuEvent(it(e)):Xe(this,"custom-contextmenu-click",it(e))},handleSelectNode(e){this.handleSelectNodeEvent&&typeof this.handleSelectNodeEvent=="function"?this.handleSelectNodeEvent(it(e),it(this.history.dataNow)):Xe(this,"handle-select-node",it(e))},searchStartNode(){this.startNode.length>0&&!this.inited&&this.startNode.map(e=>{const t={type:e.type,id:e.id,startNode:!0};this.inited=!0,this.moduleDetail.nodes.findIndex(n=>e.type===n.name)>=0?this.addNewNodesAndExpand(t):(dn({message:"无相关数据",type:"warning"}),this.emitDataLoaded())})},initGraph(){return at(this,null,function*(){var e;Ni("initGraph"),(e=this.graphApi)==null||e.getGraphConfig({name:this.module}).then(t=>{const n=t.data,r=Of(n==null?void 0:n.node_info),s=n==null?void 0:n.nodes;s.forEach(a=>{a.name=a.name.toLowerCase()});const o=Of(n==null?void 0:n.plugs);n.node_info=r,n.nodes=s,n.plugs=o,this.moduleDetail=n,this.searchStartNode(),!this.inited&&this.enterStartNode&&this.$refs.buttonList.addNode("search")}).catch(t=>{this.onOutdate(t.res),this.emitDataLoaded(),console.log("e",t)})})},addNewNodesAndExpand(e){this.isLoading=!0,this.graphApi.getNodesDetail({api:this.moduleDetail.node_info[e.type],node_id:[e.id],nodeType:e.type,moduleDetail:this.moduleDetail}).then(t=>{var s,o,a;let n={id:(s=t.data.records[0])==null?void 0:s.info.id,type:(o=t.data.records[0])==null?void 0:o.info.type,startNode:!0,detail:t.data.records[0],group:e.id,name:((a=t.data.records[0])==null?void 0:a.info.name)||e.id};n=cs(n,this.moduleDetail.plugs);const r={addOne:{nodes:[n],links:[]}};this.isRenderStartNode&&(this.history.pushState(r),this.history.updateData(t.data.records,[e.id]),setTimeout(()=>{this.isDefaultSelectStartNode&&(this.handleTableSelect([e.id]),setTimeout(()=>{this.selection.length&&this.handleSelectNode({isSelected:!0,_node:this.selection[0]})},0))},500)),this.expandNodes(n)}).catch(t=>{console.log(t,"e"),this.emitDataLoaded(),this.onOutdate(t.res),dn({message:"无该节点信息",type:"warning"})}).finally(()=>{this.isLoading=!1})},onAction(e){this.history.pushState(e)},onOutdate(e){(e==null?void 0:e.code)==="AC100001"&&this.outdateTime<1&&(this.outdateTime++,Xe(this,"outdate"))},expandNodes(e,t){return at(this,null,function*(){if(!(e!=null&&e.type))return;const n=this.moduleDetail.plugs[e==null?void 0:e.type];let r=[];t?(r=Array.isArray(t)?[...t]:[t],e.apis===void 0&&(e.apis=[]),e.apis.push(...r)):(e.expand=1,e.apis=[],e.apis.push({namec:"拓线全部",value:0,name:"",flagSelect:!0}),n==null||n.map(u=>{u.children?r.push(...u.children):r.push(u)}));const s=r.map(u=>this.graphApi.getGraphRequest({api:u.name,node_id:e.id,origin:e.origin,nodeType:e.type,moduleDetail:this.moduleDetail}).then(d=>Promise.resolve(Be(we(we({},d),u),{api:u.name,apiC:u.relay_name,icon:u.icon,note_name:u.note_name,icon_img:u.icon_img,canLoop:u.canloop,showTotal:u.show_total}))).catch(d=>Promise.resolve(d)));this.isLoading=!0;let o;yield Promise.all(s).then(u=>{if(u.some(f=>{var h;return((h=f.res)==null?void 0:h.code)==="AC100001"})){this.onOutdate({code:"AC100001"});return}o=u.filter(f=>f.code==="0"||f.code===0)}).catch(u=>{console.log(u,"e")}).finally(u=>{this.isLoading=!1});const a=[];let l=[];if(o&&o.forEach(u=>{if(e.getData[u.api]=!0,this.history.dataNow.nodes.find(S=>S.id===e.id)&&(this.history.dataNow.nodes.find(S=>S.id===e.id).getData[u.api]=!0),!u.data)return;let d;const f=u.data.nodes.map(S=>(S.group=e.id+"-"+u.api,S.groupC=u.apiC,S=cs(S,this.moduleDetail.plugs),S)),h=e.id+"-"+u.api;let g={id:h,name:u.apiC,note_name:u.note_name,type:"nodeType",icon:u.icon,showTotal:u.showTotal,icon_img:u.icon_img};const C=u,{code:b,msg:y,data:_}=C,w=Es(C,["code","msg","data"]);g=we(we({},w),g);const x={source:e.id,target:h};if(g=cs(g,this.moduleDetail.plugs),this.nodeTypeList.push(u.icon||"node_type"),f.length>0&&this.isRenderStartNode){if(d=u.data.links.map(S=>{let A;if(S.source===e.id){const O=this.history.dataNow.nodes.filter(R=>R.id===S.target);if(O.length>0&&(A=this.findGrandSonNodeIds(O[0]).indexOf(S.source)>=0),!u.api.canLoop&&A)return;S.source=h}else S.target===e.id&&(S.target=h);return S.edgeLabelProp=S.edge_label,S}).filter(S=>S),d.length===0)return;d.push(x)}else d=u.data.links;if(this.isRenderStartNode&&f.length>=this.singlesNodeMaxNum){let S=null,A=null;const O=String(Math.floor(new Date().getTime()));S={id:O,list:f,type:"aggregation",name:"聚合",relationId:g.id},S=cs(S,this.moduleDetail.plugs),A={source:g.id,target:O,uniqueIndex:this.generateUniqueIndexNow()};const R={addOne:{nodes:[g,S],links:[x,A]},type:"aggregation"};this.history.pushState(R),this.getNodeDetail(S.list,S.id)}else d.length&&this.isRenderStartNode&&f.push(g),a.push(...f||[]),l.push(...d||[])}),!this.isRenderStartNode){const u={},d={},f=[];this.nodeTypeList.push("node_type"),l.forEach(h=>{const g=h.source+"-"+h.name;if(!u[g]){let b={id:g,name:h.name,type:"nodeType",icon:h.feature.icon};b=cs(b,this.moduleDetail.plugs),u[g]=b}d[g]?d[g].push(h):d[g]=[h]});for(const h in u)a.push(u[h]);for(const h in d)d[h].forEach(b=>{const y=Be(we({},b),{source:b.source,target:h}),_=Be(we({},b),{source:h,target:b.target});f.push(y),f.push(_)});l=f}l.map(u=>{u.uniqueIndex=this.generateUniqueIndexNow()});const c={addOne:{nodes:a,links:l}};(a.length>0||l.length>0)&&this.history.pushState(c),this.history.length===2&&setTimeout(()=>{this.centerAndZoom(.8,!1)},1e3),this.getNodeDetail(a)})},findGrandSonNodeIds(e){return this.history.dataNow.nodes.filter(r=>{var s;return((s=e.children)==null?void 0:s.indexOf(r.id))>=0}).reduce((r,s)=>(r.push(...s.children||[]),r),[])||[]},centerAndZoom(e,t){var n;(n=this.$refs.render)==null||n.centerAndZoom(e,t)},generateUniqueIndex(){let e=0;return function(){return e++}},reset(){this.$refs.render.reset()},getNodeDetail(e,t){const r=this.history.dataNow.nodes.filter(a=>e.findIndex(l=>l.id===a.id)>=0).filter(a=>!a.detail&&a.noDetail!==!0&&a.type!=="aggregation"&&a.type!=="nodeType"),s={};r.map(a=>{s[a.type]?s[a.type].push(a):s[a.type]=[a]});let o=Object.keys(s).length;for(const a in s){const l=s[a],c={};l.map(u=>{u.origin&&(c[u.id]=u.origin)}),this.graphApi.getNodesDetail({api:this.moduleDetail.node_info[s[a][0].type],node_id:s[a].map(u=>u.id),origin:c,nodeType:s[a][0].type,moduleDetail:this.moduleDetail}).then(u=>{const d=u.data.records;t?this.history.updateAggregationDetail(d,s[a].map(f=>f.id),t):this.history.updateData(d,s[a].map(f=>f.id))}).catch(u=>{this.onOutdate(u.res)}).finally(()=>{o=o-1,o===0&&(Ni(" 数据加载完"),this.emitDataLoaded())})}Object.keys(s).length||this.emitDataLoaded()},emitDataLoaded(){this.handleDataLoaded&&typeof this.handleDataLoaded=="function"?this.handleDataLoaded({dataNow:it(this.history.dataNow)}):Xe(this,"handle-data-loaded",{dataNow:it(this.history.dataNow)})},addNode({node:e,type:t,connectNode:n}){if(this.history.dataNow.nodes.findIndex(o=>o.id===e.id)>-1){dn({type:"warning",message:"该节点已存在,添加失败"});return}let s;if(t==="diy"&&e.type==="nodeType"){let o=Be(we({},e),{detail:null,diy:!0,group:e.id});o=cs(o,this.moduleDetail.plugs);const a=n?{source:n.id,target:e.id,uniqueIndex:this.generateUniqueIndexNow()}:null;s={addOne:{nodes:[o],links:a?[a]:[]}},this.history.pushState(s)}else t==="diy"?this.graphApi.getNodesDetail({api:this.moduleDetail.node_info[e.type],node_id:[e.id],nodeType:e.type,moduleDetail:this.moduleDetail}).then(o=>{var c,u,d;let a={id:(c=o.data.records[0])==null?void 0:c.info.id,type:(u=o.data.records[0])==null?void 0:u.info.type,detail:o.data.records[0],group:e.id,name:((d=o.data.records[0])==null?void 0:d.info.name)||e.id};a=cs(a,this.moduleDetail.plugs);const l=n?{source:n.id,target:e.id,uniqueIndex:this.generateUniqueIndexNow()}:null;s={addOne:{nodes:[a],links:l?[l]:[]}},this.history.pushState(s)}).catch(o=>{this.onOutdate(o.res);let a=Be(we({},e),{detail:null,diy:!0,group:e.id});a=cs(a,this.moduleDetail.plugs);const l=n?{source:n.id,target:e.id,uniqueIndex:this.generateUniqueIndexNow()}:null;s={addOne:{nodes:[a],links:l?[l]:[]}},this.history.pushState(s)}).finally(o=>{setTimeout(()=>{},500)}):this.addNewNodesAndExpand(e)},addLink(e,t){if(!([e,t].filter(o=>o.type==="nodeType").length===1))return;const r={source:e.id,target:t.id,uniqueIndex:this.generateUniqueIndexNow(),diy:!0};let s=!1;if(this.history.dataNow.links.map(o=>{o.source.id===e.id&&o.target.id===t.id&&(s=!0)}),!s){const o={addOne:{links:[r]}};this.onAction(o)}},expandSelectedNodes(e){e.map(t=>{this.expandNodes(t)})},handleTableSelect(e=[]){this.$refs.render.handleTableSelect(e)},updateSelection(){this.selection=this.$refs.render.selection,this.$refs.render.selectEdgesByNode(this.selection),this.$refs.render.showKeyWay(this.selection),this.$refs.render.updateNodeStyle()},aggregationNodes(e,t){if(e.length===0)return;const n=[];for(const a in this.history.dataNow.nodes)e.findIndex((c,u,d)=>c===this.history.dataNow.nodes[a].id)>=0&&n.push(JSON.parse(JSON.stringify(this.history.dataNow.nodes[a])));const r=String(Math.floor(new Date().getTime()));let s={id:r,list:n,type:"aggregation",name:"聚合",relationId:t.id};s=cs(s,this.moduleDetail.plugs);const o={addOne:{nodes:[s],links:[{source:t.id,target:r,uniqueIndex:this.generateUniqueIndexNow()}]},deleteOne:{nodes:n,links:n.map(a=>({source:t.id,target:a.id}))},type:"aggregation"};this.history.pushState(o),this.emitDataLoaded()},releaseAggregation(e){let t;if(e.type==="aggregation"&&(t=e),this.history.dataNow.links.map(n=>{n.source.id===e.id&&n.target.type==="aggregation"&&(t=t||n.target,n.source)}),t){const n={deleteOne:{nodes:[t],links:[{source:t.relationId,target:t.id}]},addOne:{nodes:t.list,links:t.list.map(r=>({source:t.relationId,target:r.id}))},type:"aggregation"};for(const r in this.history.dataNow.nodes)t.list.findIndex((o,a,l)=>o===this.history.dataNow.nodes[r].id)>=0&&(this.history.dataNow.nodes[r].aggregation=!1);this.history.pushState(n),this.emitDataLoaded()}},saveSnapshot(){return at(this,null,function*(){_S.prompt(null,"添加快照",{confirmButtonText:"确定",cancelButtonText:"取消",inputPattern:/^.{1,20}$/,inputPlaceholder:"请输入20字以内快照名称",inputErrorMessage:"请输入20字以内快照名称"}).then(t=>at(this,[t],function*({value:e}){this.bigLoading=!0,setTimeout(()=>at(this,null,function*(){try{const n=yield this.$refs.buttonList.svgToBlob(),r=new FormData;r.append("data",this.history.toString()),r.append("name",e),r.append("thumb",n),this.graphApi.addSnapshot1(r).then(s=>{this.snapshot=s.data,this.snapshot.name=e,this.$refs.snapshot.show()}).catch(s=>{this.onOutdate(s.res)}).finally(s=>{this.bigLoading=!1})}catch(n){this.bigLoading=!1,console.log(n)}}),100)})).catch(()=>{dn({type:"info",message:"取消输入"})})})},autoDisplay(){this.$refs.render.autoDisplay()},deleteNodes(e=this.selection){const t={deleteOne:{nodes:e}};this.history.pushState(t),this.emitDataLoaded();const n=e.map(r=>r.id);this.$refs.render.selection=this.selection.filter(r=>!n.includes(r.id)),setTimeout(()=>{this.updateSelection()},300)},historyForward(){this.history.forward(),setTimeout(()=>{this.updateSelection()},100)},historyBack(){this.history.back(),setTimeout(()=>{this.updateSelection()},100)},toggleFullScreen(){Fn({cId:"toggleFullScreen",c:"切换全屏"}),document.fullscreenElement?document.exitFullscreen&&document.exitFullscreen():this.$refs["force-d3-container"].requestFullscreen()},zoomView(e="in"){e==="in"?(Fn({cId:"zoomIn",c:"zoomIn"}),this.$refs.render.zoomIn()):(Fn({cId:"zoomOut",c:"zoomOut"}),this.$refs.render.zoomOut())},fitScreen(){var e;Fn({cId:"centerAndZoom",c:"centerAndZoom"}),(e=this.$refs.render)==null||e.centerAndZoom()},changeMargin(){let e=0;const t=document.body.clientHeight;return e=Math.floor(((t-50)/20-22)/2),e>8?"8px 0":e+"px 0"},handleHighLight(e,t,n){this.$refs.render.setHighlightRule({type:e,prop:t,value:n})},handleCustomSelect(e,t,n){this.$refs.render.handleCustomSelect({type:e,prop:t,value:n})},fixAllNodes(e){this.$refs.render.fixAllNodes(e)},toggleLayout(e){this.$refs.render.toggleLayout(e)},importCsvData(e){for(const t in e.nodes)delete e.nodes[t].vx,delete e.nodes[t].vy,delete e.nodes[t].x,delete e.nodes[t].y;this.history.dataNow=Object.assign({},e)},getCanvasStage(){var e;return(e=this.$refs.render)==null?void 0:e.stage},addCanvasBg(){var e;(e=this.$refs.render)==null||e.addCanvasBg()},removeCanvasBg(){var e;(e=this.$refs.render)==null||e.removeCanvasBg()},controlOperation(e){var t;(t=this.$refs.render)==null||t.handleContextMenuClick(e)}}},Eue={key:0,ref:"force-d3-container",class:"d3-container"},xue=["innerHTML"],Aue={class:"top-item"},Pue={class:"top-line"},Tue={key:1,class:"select-num"},Oue={class:"highlight"},Nue={class:"loading-container"},Iue={class:"corner-button-box"};function Rue(e,t,n,r,s,o){const a=We("ButtonList"),l=We("RenderByCanvas"),c=We("Loading"),u=Ft,d=We("Legend"),f=We("NodeVisibleControl"),h=We("force-graph-svg-icon"),g=fi,b=We("RightMenu"),y=We("SnapShotDialog"),_=vS;return n.graphApi?It((I(),z("div",Eue,[H("div",{class:Y(["graph-box",{"hide-right-menu":!n.isShowRightMenu}])},[n.title?(I(),z("div",{key:0,class:"safe-force-title",innerHTML:n.title},null,8,xue)):re("",!0),t[4]||(t[4]=H("div",{class:"top-line-bg"},null,-1)),H("div",Aue,[H("div",Pue,[te(a,{ref:"buttonList","hide-button-list":n.hideButtonList,selection:s.selection,history:s.history,"module-detail":s.moduleDetail,"request-graph-data":s.requestGraphData,"show-top-search":n.showTopSearch,onSaveSnapshot:o.saveSnapshot,onAddNodes:o.addNode,onAutoDisplay:o.autoDisplay,onDeleteNodes:o.deleteNodes,onFixNodes:o.fixAllNodes,onToggleLayout:o.toggleLayout,onImportCsvData:o.importCsvData},null,8,["hide-button-list","selection","history","module-detail","request-graph-data","show-top-search","onSaveSnapshot","onAddNodes","onAutoDisplay","onDeleteNodes","onFixNodes","onToggleLayout","onImportCsvData"])])]),te(l,{ref:"render","enable-script":n.enableScript,"module-detail":s.moduleDetail,history:s.history,"level-list":n.levelList,selection:s.selection,data:s.history.dataNow,"request-graph-data":s.requestGraphData,"dark-mode":n.darkMode,"node-type-scale":n.nodeTypeScale,"node-type-list":s.nodeTypeList,"link-distance":n.linkDistance,strength:n.strength,"node-width":n.nodeWidth,"start-node-width":n.startNodeWidth,"start-node-animation":n.startNodeAnimation,"custom-tooltip":n.customTooltip,"edge-label-max-length":n.edgeLabelMaxLength,onUpdateSelection:o.updateSelection,onOnaction:o.onAction,onHandleSelectNode:o.handleSelectNode,onCustomContextmenuClick:o.handleCustomContextMenuClick},null,8,["enable-script","module-detail","history","level-list","selection","data","request-graph-data","dark-mode","node-type-scale","node-type-list","link-distance","strength","node-width","start-node-width","start-node-animation","custom-tooltip","edge-label-max-length","onUpdateSelection","onOnaction","onHandleSelectNode","onCustomContextmenuClick"]),s.selection.length>0?(I(),z("p",Tue,[t[2]||(t[2]=Je(" 已选择")),H("span",Oue,Ie(s.selection.length),1),t[3]||(t[3]=Je("项 "))])):re("",!0),It(H("div",Nue,[H("span",null,Ie(s.loadingInfo),1),te(u,{class:"is-loading"},{default:ee(()=>[te(c)]),_:1})],512),[[wn,s.isLoading]]),te(d,{"show-point":n.showPoint,history:s.history,"module-detail":s.moduleDetail,"has-level":n.hasLevel,"show-level-count":n.showLevelCount,margin:s.margin,onHighLight:o.handleHighLight},null,8,["show-point","history","module-detail","has-level","show-level-count","margin","onHighLight"]),n.hasNodeVisibleControl?(I(),Ee(f,{key:2,history:s.history,"module-detail":s.moduleDetail},null,8,["history","module-detail"])):re("",!0),H("div",Iue,[!s.fullScreen&&o.topFrame?(I(),Ee(g,{key:0,content:"进入全屏",placement:"left","popper-class":"el-tooltip-gray"},{default:ee(()=>[te(h,{"icon-class":e.imgPath["./public/d3svg1/button18/full_button.svg"],alt:"",class:"corner-button",onClick:o.toggleFullScreen},null,8,["icon-class","onClick"])]),_:1})):re("",!0),s.fullScreen&&o.topFrame?(I(),Ee(g,{key:1,content:"退出全屏",placement:"left","popper-class":"el-tooltip-gray"},{default:ee(()=>[te(h,{"icon-class":e.imgPath["./public/d3svg1/button18/un_full_button.svg"],alt:"",class:"corner-button",onClick:o.toggleFullScreen},null,8,["icon-class","onClick"])]),_:1})):re("",!0),te(g,{content:"适应屏幕",placement:"left","popper-class":"el-tooltip-gray"},{default:ee(()=>[te(h,{"icon-class":e.imgPath["./public/d3svg1/button18/fit_button.svg"],alt:"",class:"corner-button",onClick:o.fitScreen},null,8,["icon-class","onClick"])]),_:1}),te(g,{content:"放大",placement:"left","popper-class":"el-tooltip-gray"},{default:ee(()=>[te(h,{"icon-class":e.imgPath["./public/d3svg1/button18/zoom_in_button.svg"],alt:"",class:"corner-button",onClick:t[0]||(t[0]=w=>o.zoomView("in"))},null,8,["icon-class"])]),_:1}),te(g,{content:"缩小",placement:"left","popper-class":"el-tooltip-gray"},{default:ee(()=>[te(h,{"icon-class":e.imgPath["./public/d3svg1/button18/zoom_out_button.svg"],alt:"",class:"corner-button",onClick:t[1]||(t[1]=w=>o.zoomView("out"))},null,8,["icon-class"])]),_:1})])],2),n.isShowRightMenu?(I(),Ee(b,{key:0,"graph-data":s.history.dataNow,"selected-nodes":s.selection,"request-graph-data":s.requestGraphData,onChangeBox:o.handleTableSelect},null,8,["graph-data","selected-nodes","request-graph-data","onChangeBox"])):re("",!0),te(y,{ref:"snapshot",snapshot:s.snapshot,"graph-api":n.graphApi,"graph-url-path":n.graphUrlPath},null,8,["snapshot","graph-api","graph-url-path"])])),[[_,s.bigLoading]]):re("",!0)}const S7=gO(ln(Sue,[["render",Rue]]),{shadowRoot:!1});return customElements.define("force-graph",S7),{GraphElement:S7}});
|