(function(mt,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],o):(mt=typeof globalThis<"u"?globalThis:mt||self,o(mt.MapSideBar={},mt.Vue))})(this,function(mt,o){"use strict";const Fy=e=>!e.getAttribute("aria-owns"),Ay=(e,t,n)=>{const{parentNode:r}=e;if(!r)return null;const a=r.querySelectorAll(n),i=Array.prototype.indexOf.call(a,e);return a[i+t]||null},yd=e=>{e&&(e.focus(),!Fy(e)&&e.click())},So=(e,t,{checkForDefaultPrevented:n=!0}={})=>a=>{const i=e==null?void 0:e(a);if(n===!1||!i)return t==null?void 0:t(a)};var Iy;const kt=typeof window<"u",Z_=e=>typeof e=="string",Dy=()=>{},Dp=kt&&((Iy=window==null?void 0:window.navigator)==null?void 0:Iy.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function hl(e){return typeof e=="function"?e():o.unref(e)}function J_(e){return e}function ml(e){return o.getCurrentScope()?(o.onScopeDispose(e),!0):!1}function Q_(e,t=!0){o.getCurrentInstance()?o.onMounted(e):t?e():o.nextTick(e)}function Vy(e,t,n={}){const{immediate:r=!0}=n,a=o.ref(!1);let i=null;function s(){i&&(clearTimeout(i),i=null)}function l(){a.value=!1,s()}function d(...c){s(),a.value=!0,i=setTimeout(()=>{a.value=!1,i=null,e(...c)},hl(t))}return r&&(a.value=!0,kt&&d()),ml(l),{isPending:o.readonly(a),start:d,stop:l}}function to(e){var t;const n=hl(e);return(t=n==null?void 0:n.$el)!=null?t:n}const gl=kt?window:void 0;function Fr(...e){let t,n,r,a;if(Z_(e[0])||Array.isArray(e[0])?([n,r,a]=e,t=gl):[t,n,r,a]=e,!t)return Dy;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},l=(u,f,h,m)=>(u.addEventListener(f,h,m),()=>u.removeEventListener(f,h,m)),d=o.watch(()=>[to(t),hl(a)],([u,f])=>{s(),u&&i.push(...n.flatMap(h=>r.map(m=>l(u,h,m,f))))},{immediate:!0,flush:"post"}),c=()=>{d(),s()};return ml(c),c}let Ry=!1;function eB(e,t,n={}){const{window:r=gl,ignore:a=[],capture:i=!0,detectIframe:s=!1}=n;if(!r)return;Dp&&!Ry&&(Ry=!0,Array.from(r.document.body.children).forEach(h=>h.addEventListener("click",Dy)));let l=!0;const d=h=>a.some(m=>{if(typeof m=="string")return Array.from(r.document.querySelectorAll(m)).some(p=>p===h.target||h.composedPath().includes(p));{const p=to(m);return p&&(h.target===p||h.composedPath().includes(p))}}),u=[Fr(r,"click",h=>{const m=to(e);if(!(!m||m===h.target||h.composedPath().includes(m))){if(h.detail===0&&(l=!d(h)),!l){l=!0;return}t(h)}},{passive:!0,capture:i}),Fr(r,"pointerdown",h=>{const m=to(e);m&&(l=!h.composedPath().includes(m)&&!d(h))},{passive:!0}),s&&Fr(r,"blur",h=>{var m;const p=to(e);((m=r.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(p!=null&&p.contains(r.document.activeElement))&&t(h)})].filter(Boolean);return()=>u.forEach(h=>h())}function Ly(e,t=!1){const n=o.ref(),r=()=>n.value=!!e();return r(),Q_(r,t),n}const My=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},zy="__vueuse_ssr_handlers__";My[zy]=My[zy]||{};function tB(e,t,{window:n=gl,initialValue:r=""}={}){const a=o.ref(r),i=o.computed(()=>{var s;return to(t)||((s=n==null?void 0:n.document)==null?void 0:s.documentElement)});return o.watch([i,()=>hl(e)],([s,l])=>{var d;if(s&&n){const c=(d=n.getComputedStyle(s).getPropertyValue(l))==null?void 0:d.trim();a.value=c||r}},{immediate:!0}),o.watch(a,s=>{var l;(l=i.value)!=null&&l.style&&i.value.style.setProperty(hl(e),s)}),a}var jy=Object.getOwnPropertySymbols,nB=Object.prototype.hasOwnProperty,rB=Object.prototype.propertyIsEnumerable,oB=(e,t)=>{var n={};for(var r in e)nB.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&jy)for(var r of jy(e))t.indexOf(r)<0&&rB.call(e,r)&&(n[r]=e[r]);return n};function no(e,t,n={}){const r=n,{window:a=gl}=r,i=oB(r,["window"]);let s;const l=Ly(()=>a&&"ResizeObserver"in a),d=()=>{s&&(s.disconnect(),s=void 0)},c=o.watch(()=>to(e),f=>{d(),l.value&&a&&f&&(s=new ResizeObserver(t),s.observe(f,i))},{immediate:!0,flush:"post"}),u=()=>{d(),c()};return ml(u),{isSupported:l,stop:u}}var Hy=Object.getOwnPropertySymbols,aB=Object.prototype.hasOwnProperty,iB=Object.prototype.propertyIsEnumerable,sB=(e,t)=>{var n={};for(var r in e)aB.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Hy)for(var r of Hy(e))t.indexOf(r)<0&&iB.call(e,r)&&(n[r]=e[r]);return n};function lB(e,t,n={}){const r=n,{window:a=gl}=r,i=sB(r,["window"]);let s;const l=Ly(()=>a&&"MutationObserver"in a),d=()=>{s&&(s.disconnect(),s=void 0)},c=o.watch(()=>to(e),f=>{d(),l.value&&a&&f&&(s=new MutationObserver(t),s.observe(f,i))},{immediate:!0}),u=()=>{d(),c()};return ml(u),{isSupported:l,stop:u}}var Uy;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Uy||(Uy={}));var cB=Object.defineProperty,qy=Object.getOwnPropertySymbols,dB=Object.prototype.hasOwnProperty,uB=Object.prototype.propertyIsEnumerable,Wy=(e,t,n)=>t in e?cB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fB=(e,t)=>{for(var n in t||(t={}))dB.call(t,n)&&Wy(e,n,t[n]);if(qy)for(var n of qy(t))uB.call(t,n)&&Wy(e,n,t[n]);return e};fB({linear:J_},{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]});const pB=()=>kt&&/firefox/i.test(window.navigator.userAgent);/** * @vue/shared v3.4.21 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const _o=()=>{},hB=Object.prototype.hasOwnProperty,Ky=(e,t)=>hB.call(e,t),Dn=Array.isArray,Jt=e=>typeof e=="function",zn=e=>typeof e=="string",sn=e=>e!==null&&typeof e=="object",mB=e=>(sn(e)||Jt(e))&&Jt(e.then)&&Jt(e.catch),gB=Object.prototype.toString,yB=e=>gB.call(e),Vp=e=>yB(e).slice(8,-1),Rp=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},vB=/-(\w)/g,bB=Rp(e=>e.replace(vB,(t,n)=>n?n.toUpperCase():"")),wB=/\B([A-Z])/g,xB=Rp(e=>e.replace(wB,"-$1").toLowerCase()),CB=Rp(e=>e.charAt(0).toUpperCase()+e.slice(1));var Gy=typeof global=="object"&&global&&global.Object===Object&&global,kB=typeof self=="object"&&self&&self.Object===Object&&self,Ar=Gy||kB||Function("return this")(),hr=Ar.Symbol,Xy=Object.prototype,EB=Xy.hasOwnProperty,SB=Xy.toString,yl=hr?hr.toStringTag:void 0;function _B(e){var t=EB.call(e,yl),n=e[yl];try{e[yl]=void 0;var r=!0}catch{}var a=SB.call(e);return r&&(t?e[yl]=n:delete e[yl]),a}var BB=Object.prototype,TB=BB.toString;function NB(e){return TB.call(e)}var OB="[object Null]",PB="[object Undefined]",Yy=hr?hr.toStringTag:void 0;function Gi(e){return e==null?e===void 0?PB:OB:Yy&&Yy in Object(e)?_B(e):NB(e)}function Qo(e){return e!=null&&typeof e=="object"}var $B="[object Symbol]";function vd(e){return typeof e=="symbol"||Qo(e)&&Gi(e)==$B}function FB(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n0){if(++t>=lT)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function fT(e){return function(){return e}}var bd=function(){try{var e=qa(Object,"defineProperty");return e({},"",{}),e}catch{}}(),pT=bd?function(e,t){return bd(e,"toString",{configurable:!0,enumerable:!1,value:fT(t),writable:!0})}:n1,hT=uT(pT);function mT(e,t){for(var n=-1,r=e==null?0:e.length;++n-1&&e%1==0&&e-1&&e%1==0&&e<=CT}function l1(e){return e!=null&&Up(e.length)&&!r1(e)}var kT=Object.prototype;function qp(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||kT;return e===n}function ET(e,t){for(var n=-1,r=Array(e);++n-1}function $N(e,t){var n=this.__data__,r=kd(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Bo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(l)?t>1?eh(l,t-1,n,r,a):Qp(a,l):a[a.length]=l}return a}function GN(e){var t=e==null?0:e.length;return t?eh(e,1):[]}function XN(e){return hT(xT(e,void 0,GN),e+"")}var w1=v1(Object.getPrototypeOf,Object);function ea(){if(!arguments.length)return[];var e=arguments[0];return mr(e)?e:[e]}function YN(){this.__data__=new Bo,this.size=0}function ZN(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function JN(e){return this.__data__.get(e)}function QN(e){return this.__data__.has(e)}var e8=200;function t8(e,t){var n=this.__data__;if(n instanceof Bo){var r=n.__data__;if(!wl||r.lengthl))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var f=-1,h=!0,m=n&AO?new Td:void 0;for(i.set(e,t),i.set(t,e);++f=t||E<0||f&&S>=i}function y(){var C=lh();if(v(C))return b(C);l=setTimeout(y,g(C))}function b(C){return l=void 0,h&&r?m(C):(r=a=void 0,s)}function x(){l!==void 0&&clearTimeout(l),c=0,r=d=a=l=void 0}function w(){return l===void 0?s:b(lh())}function k(){var C=lh(),E=v(C);if(r=arguments,a=this,d=C,E){if(l===void 0)return p(d);if(f)return clearTimeout(l),l=setTimeout(y,t),m(d)}return l===void 0&&(l=setTimeout(y,t)),s}return k.cancel=x,k.flush=w,k}function x6(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var a=r-1;return gT(e,y6(t),a)}var C6=1/0;function k6(e){var t=e==null?0:e.length;return t?eh(e,C6):[]}function Pd(e){for(var t=-1,n=e==null?0:e.length,r={};++te===void 0,ao=e=>typeof e=="boolean",pt=e=>typeof e=="number",ch=e=>!e&&e!==0||Dn(e)&&e.length===0||sn(e)&&!Object.keys(e).length,Ka=e=>typeof Element>"u"?!1:e instanceof Element,kl=e=>Cl(e),B6=e=>zn(e)?!Number.isNaN(Number(e)):!1,T6=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Q1=e=>CB(e),ev=e=>Object.keys(e);class tv extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function nv(e,t){throw new tv(`[${e}] ${t}`)}function Mt(e,t){if(process.env.NODE_ENV!=="production"){const n=zn(e)?new tv(`[${e}] ${t}`):e;console.warn(n)}}const N6="utils/dom/style",rv=(e="")=>e.split(" ").filter(t=>!!t.trim()),ov=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},dh=(e,t)=>{!e||!t.trim()||e.classList.add(...rv(t))},El=(e,t)=>{!e||!t.trim()||e.classList.remove(...rv(t))},Yi=(e,t)=>{var n;if(!kt||!e||!t)return"";let r=bB(t);r==="float"&&(r="cssFloat");try{const a=e.style[r];if(a)return a;const i=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return i?i[r]:""}catch{return e.style[r]}};function Zi(e,t="px"){if(!e)return"";if(pt(e)||B6(e))return`${e}${t}`;if(zn(e))return e;Mt(N6,"binding value must be a string or number")}let $d;const O6=e=>{var t;if(!kt)return 0;if($d!==void 0)return $d;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 a=document.createElement("div");a.style.width="100%",n.appendChild(a);const i=a.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),$d=r-i,$d};function av(e,t){if(!kt)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 a=t.offsetTop+n.reduce((d,c)=>d+c.offsetTop,0),i=a+t.offsetHeight,s=e.scrollTop,l=s+e.clientHeight;al&&(e.scrollTop=i-e.clientHeight)}/*! Element Plus Icons Vue v2.3.1 */var P6=o.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("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"})]))}}),uh=P6,$6=o.defineComponent({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),fh=$6,F6=o.defineComponent({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("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"})]))}}),Fd=F6,A6=o.defineComponent({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("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"})]))}}),I6=A6,D6=o.defineComponent({name:"Check",__name:"check",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("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"})]))}}),iv=D6,V6=o.defineComponent({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("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"}),o.createElementVNode("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"})]))}}),R6=V6,L6=o.defineComponent({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("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"}),o.createElementVNode("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"})]))}}),Ad=L6,M6=o.defineComponent({name:"Close",__name:"close",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("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"})]))}}),ph=M6,z6=o.defineComponent({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"})]))}}),j6=z6,H6=o.defineComponent({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),U6=H6,q6=o.defineComponent({name:"Delete",__name:"delete",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("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"})]))}}),sv=q6,W6=o.defineComponent({name:"Hide",__name:"hide",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("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"}),o.createElementVNode("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"})]))}}),K6=W6,G6=o.defineComponent({name:"Loading",__name:"loading",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("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"})]))}}),Id=G6,X6=o.defineComponent({name:"Location",__name:"location",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),o.createElementVNode("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),Y6=X6,Z6=o.defineComponent({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),lv=Z6,J6=o.defineComponent({name:"Notebook",__name:"notebook",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),o.createElementVNode("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32"})]))}}),Q6=J6,eP=o.defineComponent({name:"View",__name:"view",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("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"})]))}}),cv=eP,tP=o.defineComponent({name:"WarnTriangleFilled",__name:"warn-triangle-filled",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 1024 1024"},viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M928.99 755.83 574.6 203.25c-12.89-20.16-36.76-32.58-62.6-32.58s-49.71 12.43-62.6 32.58L95.01 755.83c-12.91 20.12-12.9 44.91.01 65.03 12.92 20.12 36.78 32.51 62.59 32.49h708.78c25.82.01 49.68-12.37 62.59-32.49 12.91-20.12 12.92-44.91.01-65.03M554.67 768h-85.33v-85.33h85.33zm0-426.67v298.66h-85.33V341.32z"})]))}}),nP=tP,rP=o.defineComponent({name:"Warning",__name:"warning",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"})]))}}),dv=rP;const uv="__epPropKey",Ae=e=>e,oP=e=>sn(e)&&!!e[uv],Dd=(e,t)=>{if(!sn(e)||oP(e))return e;const{values:n,required:r,default:a,type:i,validator:s}=e,d={type:i,required:!!r,validator:n||s?c=>{let u=!1,f=[];if(n&&(f=Array.from(n),Ky(e,"default")&&f.push(a),u||(u=f.includes(c))),s&&(u||(u=s(c))),!u&&f.length>0){const h=[...new Set(f)].map(m=>JSON.stringify(m)).join(", ");o.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(c)}.`)}return u}:void 0,[uv]:!0};return Ky(e,"default")&&(d.default=a),d},We=e=>Pd(Object.entries(e).map(([t,n])=>[t,Dd(n,t)])),gr=Ae([String,Object,Function]),fv={validating:Id,success:R6,error:Ad},zt=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},aP=(e,t)=>(e.install=n=>{n.directive(t,e)},e),Vr=e=>(e.install=_o,e),Qt={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"},At="update:modelValue",Ga="change",Vd=["","default","small","large"];var Rd=(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))(Rd||{});const pv=e=>[...new Set(e)],hv=e=>!e&&e!==0?[]:Array.isArray(e)?e:[e],iP=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),ta=e=>e,sP=["class","style"],lP=/^on[A-Z]/,cP=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=o.computed(()=>((n==null?void 0:n.value)||[]).concat(sP)),a=o.getCurrentInstance();return a?o.computed(()=>{var i;return Pd(Object.entries((i=a.proxy)==null?void 0:i.$attrs).filter(([s])=>!r.value.includes(s)&&!(t&&lP.test(s))))}):(Mt("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),o.computed(()=>({})))},Xa=({from:e,replacement:t,scope:n,version:r,ref:a,type:i="API"},s)=>{o.watch(()=>o.unref(s),l=>{l&&Mt(n,`[${i}] ${e} is about to be deprecated in version ${r}, please use ${t} instead. For more detail, please visit: ${a} `)},{immediate:!0})};var dP={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 uP=e=>(t,n)=>fP(t,n,o.unref(e)),fP=(e,t,n)=>No(n,e,e).replace(/\{(\w+)\}/g,(r,a)=>{var i;return`${(i=t==null?void 0:t[a])!=null?i:`{${a}}`}`}),pP=e=>{const t=o.computed(()=>o.unref(e).name),n=o.isRef(e)?e:o.ref(e);return{lang:t,locale:n,t:uP(e)}},mv=Symbol("localeContextKey"),yr=e=>{const t=e||o.inject(mv,o.ref());return pP(o.computed(()=>t.value||dP))},Sl="el",hP="is-",Ya=(e,t,n,r,a)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),r&&(i+=`__${r}`),a&&(i+=`--${a}`),i},gv=Symbol("namespaceContextKey"),hh=e=>{const t=e||(o.getCurrentInstance()?o.inject(gv,o.ref(Sl)):o.ref(Sl));return o.computed(()=>o.unref(t)||Sl)},Ue=(e,t)=>{const n=hh(t);return{namespace:n,b:(g="")=>Ya(n.value,e,g,"",""),e:g=>g?Ya(n.value,e,"",g,""):"",m:g=>g?Ya(n.value,e,"","",g):"",be:(g,v)=>g&&v?Ya(n.value,e,g,v,""):"",em:(g,v)=>g&&v?Ya(n.value,e,"",g,v):"",bm:(g,v)=>g&&v?Ya(n.value,e,g,"",v):"",bem:(g,v,y)=>g&&v&&y?Ya(n.value,e,g,v,y):"",is:(g,...v)=>{const y=v.length>=1?v[0]:!0;return g&&y?`${hP}${g}`:""},cssVar:g=>{const v={};for(const y in g)g[y]&&(v[`--${n.value}-${y}`]=g[y]);return v},cssVarName:g=>`--${n.value}-${g}`,cssVarBlock:g=>{const v={};for(const y in g)g[y]&&(v[`--${n.value}-${e}-${y}`]=g[y]);return v},cssVarBlockName:g=>`--${n.value}-${e}-${g}`}},mP=(e,t={})=>{o.isRef(e)||nv("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||Ue("popup"),r=o.computed(()=>n.bm("parent","hidden"));if(!kt||ov(document.body,r.value))return;let a=0,i=!1,s="0";const l=()=>{setTimeout(()=>{El(document==null?void 0:document.body,r.value),i&&document&&(document.body.style.width=s)},200)};o.watch(e,d=>{if(!d){l();return}i=!ov(document.body,r.value),i&&(s=document.body.style.width),a=O6(n.namespace.value);const c=document.documentElement.clientHeight0&&(c||u==="scroll")&&i&&(document.body.style.width=`calc(100% - ${a}px)`),dh(document.body,r.value)}),o.onScopeDispose(()=>l())},gP=Dd({type:Ae(Boolean),default:null}),yP=Dd({type:Ae(Function)}),vP=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],a={[e]:gP,[n]:yP};return{useModelToggle:({indicator:s,toggleReason:l,shouldHideWhenRouteChanges:d,shouldProceed:c,onShow:u,onHide:f})=>{const h=o.getCurrentInstance(),{emit:m}=h,p=h.props,g=o.computed(()=>Jt(p[n])),v=o.computed(()=>p[e]===null),y=E=>{s.value!==!0&&(s.value=!0,l&&(l.value=E),Jt(u)&&u(E))},b=E=>{s.value!==!1&&(s.value=!1,l&&(l.value=E),Jt(f)&&f(E))},x=E=>{if(p.disabled===!0||Jt(c)&&!c())return;const S=g.value&&kt;S&&m(t,!0),(v.value||!S)&&y(E)},w=E=>{if(p.disabled===!0||!kt)return;const S=g.value&&kt;S&&m(t,!1),(v.value||!S)&&b(E)},k=E=>{ao(E)&&(p.disabled&&E?g.value&&m(t,!1):s.value!==E&&(E?y():b()))},C=()=>{s.value?w():x()};return o.watch(()=>p[e],k),d&&h.appContext.config.globalProperties.$route!==void 0&&o.watch(()=>({...h.proxy.$route}),()=>{d.value&&s.value&&w()}),o.onMounted(()=>{k(p[e])}),{hide:w,show:x,toggle:C,hasUpdateHandler:g}},useModelToggleProps:a,useModelToggleEmits:r}},yv=e=>{const t=o.getCurrentInstance();return o.computed(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})};var jn="top",vr="bottom",br="right",Hn="left",mh="auto",_l=[jn,vr,br,Hn],Ji="start",Bl="end",bP="clippingParents",vv="viewport",Tl="popper",wP="reference",bv=_l.reduce(function(e,t){return e.concat([t+"-"+Ji,t+"-"+Bl])},[]),Nl=[].concat(_l,[mh]).reduce(function(e,t){return e.concat([t,t+"-"+Ji,t+"-"+Bl])},[]),xP="beforeRead",CP="read",kP="afterRead",EP="beforeMain",SP="main",_P="afterMain",BP="beforeWrite",TP="write",NP="afterWrite",OP=[xP,CP,kP,EP,SP,_P,BP,TP,NP];function io(e){return e?(e.nodeName||"").toLowerCase():null}function Rr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Qi(e){var t=Rr(e).Element;return e instanceof t||e instanceof Element}function wr(e){var t=Rr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function gh(e){if(typeof ShadowRoot>"u")return!1;var t=Rr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function PP(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},i=t.elements[n];!wr(i)||!io(i)||(Object.assign(i.style,r),Object.keys(a).forEach(function(s){var l=a[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function $P(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 a=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(d,c){return d[c]="",d},{});!wr(a)||!io(a)||(Object.assign(a.style,l),Object.keys(i).forEach(function(d){a.removeAttribute(d)}))})}}var wv={name:"applyStyles",enabled:!0,phase:"write",fn:PP,effect:$P,requires:["computeStyles"]};function so(e){return e.split("-")[0]}var Za=Math.max,Ld=Math.min,es=Math.round;function ts(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,a=1;if(wr(e)&&t){var i=e.offsetHeight,s=e.offsetWidth;s>0&&(r=es(n.width)/s||1),i>0&&(a=es(n.height)/i||1)}return{width:n.width/r,height:n.height/a,top:n.top/a,right:n.right/r,bottom:n.bottom/a,left:n.left/r,x:n.left/r,y:n.top/a}}function yh(e){var t=ts(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 xv(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&gh(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Po(e){return Rr(e).getComputedStyle(e)}function FP(e){return["table","td","th"].indexOf(io(e))>=0}function na(e){return((Qi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Md(e){return io(e)==="html"?e:e.assignedSlot||e.parentNode||(gh(e)?e.host:null)||na(e)}function Cv(e){return!wr(e)||Po(e).position==="fixed"?null:e.offsetParent}function AP(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&wr(e)){var r=Po(e);if(r.position==="fixed")return null}var a=Md(e);for(gh(a)&&(a=a.host);wr(a)&&["html","body"].indexOf(io(a))<0;){var i=Po(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function Ol(e){for(var t=Rr(e),n=Cv(e);n&&FP(n)&&Po(n).position==="static";)n=Cv(n);return n&&(io(n)==="html"||io(n)==="body"&&Po(n).position==="static")?t:n||AP(e)||t}function vh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Pl(e,t,n){return Za(e,Ld(t,n))}function IP(e,t,n){var r=Pl(e,t,n);return r>n?n:r}function kv(){return{top:0,right:0,bottom:0,left:0}}function Ev(e){return Object.assign({},kv(),e)}function Sv(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var DP=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Ev(typeof e!="number"?e:Sv(e,_l))};function VP(e){var t,n=e.state,r=e.name,a=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,l=so(n.placement),d=vh(l),c=[Hn,br].indexOf(l)>=0,u=c?"height":"width";if(!(!i||!s)){var f=DP(a.padding,n),h=yh(i),m=d==="y"?jn:Hn,p=d==="y"?vr:br,g=n.rects.reference[u]+n.rects.reference[d]-s[d]-n.rects.popper[u],v=s[d]-n.rects.reference[d],y=Ol(i),b=y?d==="y"?y.clientHeight||0:y.clientWidth||0:0,x=g/2-v/2,w=f[m],k=b-h[u]-f[p],C=b/2-h[u]/2+x,E=Pl(w,C,k),S=d;n.modifiersData[r]=(t={},t[S]=E,t.centerOffset=E-C,t)}}function RP(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||!xv(t.elements.popper,a)||(t.elements.arrow=a))}var LP={name:"arrow",enabled:!0,phase:"main",fn:VP,effect:RP,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ns(e){return e.split("-")[1]}var MP={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zP(e){var t=e.x,n=e.y,r=window,a=r.devicePixelRatio||1;return{x:es(t*a)/a||0,y:es(n*a)/a||0}}function _v(e){var t,n=e.popper,r=e.popperRect,a=e.placement,i=e.variation,s=e.offsets,l=e.position,d=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,h=s.x,m=h===void 0?0:h,p=s.y,g=p===void 0?0:p,v=typeof u=="function"?u({x:m,y:g}):{x:m,y:g};m=v.x,g=v.y;var y=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),x=Hn,w=jn,k=window;if(c){var C=Ol(n),E="clientHeight",S="clientWidth";if(C===Rr(n)&&(C=na(n),Po(C).position!=="static"&&l==="absolute"&&(E="scrollHeight",S="scrollWidth")),C=C,a===jn||(a===Hn||a===br)&&i===Bl){w=vr;var _=f&&C===k&&k.visualViewport?k.visualViewport.height:C[E];g-=_-r.height,g*=d?1:-1}if(a===Hn||(a===jn||a===vr)&&i===Bl){x=br;var O=f&&C===k&&k.visualViewport?k.visualViewport.width:C[S];m-=O-r.width,m*=d?1:-1}}var T=Object.assign({position:l},c&&MP),N=u===!0?zP({x:m,y:g}):{x:m,y:g};if(m=N.x,g=N.y,d){var F;return Object.assign({},T,(F={},F[w]=b?"0":"",F[x]=y?"0":"",F.transform=(k.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",F))}return Object.assign({},T,(t={},t[w]=b?g+"px":"",t[x]=y?m+"px":"",t.transform="",t))}function jP(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,d=l===void 0?!0:l,c={placement:so(t.placement),variation:ns(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,_v(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,_v(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Bv={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:jP,data:{}},zd={passive:!0};function HP(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,i=a===void 0?!0:a,s=r.resize,l=s===void 0?!0:s,d=Rr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,zd)}),l&&d.addEventListener("resize",n.update,zd),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,zd)}),l&&d.removeEventListener("resize",n.update,zd)}}var Tv={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:HP,data:{}},UP={left:"right",right:"left",bottom:"top",top:"bottom"};function jd(e){return e.replace(/left|right|bottom|top/g,function(t){return UP[t]})}var qP={start:"end",end:"start"};function Nv(e){return e.replace(/start|end/g,function(t){return qP[t]})}function bh(e){var t=Rr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function wh(e){return ts(na(e)).left+bh(e).scrollLeft}function WP(e){var t=Rr(e),n=na(e),r=t.visualViewport,a=n.clientWidth,i=n.clientHeight,s=0,l=0;return r&&(a=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,l=r.offsetTop)),{width:a,height:i,x:s+wh(e),y:l}}function KP(e){var t,n=na(e),r=bh(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=Za(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=Za(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-r.scrollLeft+wh(e),d=-r.scrollTop;return Po(a||n).direction==="rtl"&&(l+=Za(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:s,x:l,y:d}}function xh(e){var t=Po(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function Ov(e){return["html","body","#document"].indexOf(io(e))>=0?e.ownerDocument.body:wr(e)&&xh(e)?e:Ov(Md(e))}function $l(e,t){var n;t===void 0&&(t=[]);var r=Ov(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),i=Rr(r),s=a?[i].concat(i.visualViewport||[],xh(r)?r:[]):r,l=t.concat(s);return a?l:l.concat($l(Md(s)))}function Ch(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function GP(e){var t=ts(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 Pv(e,t){return t===vv?Ch(WP(e)):Qi(t)?GP(t):Ch(KP(na(e)))}function XP(e){var t=$l(Md(e)),n=["absolute","fixed"].indexOf(Po(e).position)>=0,r=n&&wr(e)?Ol(e):e;return Qi(r)?t.filter(function(a){return Qi(a)&&xv(a,r)&&io(a)!=="body"}):[]}function YP(e,t,n){var r=t==="clippingParents"?XP(e):[].concat(t),a=[].concat(r,[n]),i=a[0],s=a.reduce(function(l,d){var c=Pv(e,d);return l.top=Za(c.top,l.top),l.right=Ld(c.right,l.right),l.bottom=Ld(c.bottom,l.bottom),l.left=Za(c.left,l.left),l},Pv(e,i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function $v(e){var t=e.reference,n=e.element,r=e.placement,a=r?so(r):null,i=r?ns(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,d;switch(a){case jn:d={x:s,y:t.y-n.height};break;case vr:d={x:s,y:t.y+t.height};break;case br:d={x:t.x+t.width,y:l};break;case Hn:d={x:t.x-n.width,y:l};break;default:d={x:t.x,y:t.y}}var c=a?vh(a):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Ji:d[c]=d[c]-(t[u]/2-n[u]/2);break;case Bl:d[c]=d[c]+(t[u]/2-n[u]/2);break}}return d}function Fl(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,i=n.boundary,s=i===void 0?bP:i,l=n.rootBoundary,d=l===void 0?vv:l,c=n.elementContext,u=c===void 0?Tl:c,f=n.altBoundary,h=f===void 0?!1:f,m=n.padding,p=m===void 0?0:m,g=Ev(typeof p!="number"?p:Sv(p,_l)),v=u===Tl?wP:Tl,y=e.rects.popper,b=e.elements[h?v:u],x=YP(Qi(b)?b:b.contextElement||na(e.elements.popper),s,d),w=ts(e.elements.reference),k=$v({reference:w,element:y,strategy:"absolute",placement:a}),C=Ch(Object.assign({},y,k)),E=u===Tl?C:w,S={top:x.top-E.top+g.top,bottom:E.bottom-x.bottom+g.bottom,left:x.left-E.left+g.left,right:E.right-x.right+g.right},_=e.modifiersData.offset;if(u===Tl&&_){var O=_[a];Object.keys(S).forEach(function(T){var N=[br,vr].indexOf(T)>=0?1:-1,F=[jn,vr].indexOf(T)>=0?"y":"x";S[T]+=O[F]*N})}return S}function ZP(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,d=n.allowedAutoPlacements,c=d===void 0?Nl:d,u=ns(r),f=u?l?bv:bv.filter(function(p){return ns(p)===u}):_l,h=f.filter(function(p){return c.indexOf(p)>=0});h.length===0&&(h=f);var m=h.reduce(function(p,g){return p[g]=Fl(e,{placement:g,boundary:a,rootBoundary:i,padding:s})[so(g)],p},{});return Object.keys(m).sort(function(p,g){return m[p]-m[g]})}function JP(e){if(so(e)===mh)return[];var t=jd(e);return[Nv(e),t,Nv(t)]}function QP(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,i=a===void 0?!0:a,s=n.altAxis,l=s===void 0?!0:s,d=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,h=n.altBoundary,m=n.flipVariations,p=m===void 0?!0:m,g=n.allowedAutoPlacements,v=t.options.placement,y=so(v),b=y===v,x=d||(b||!p?[jd(v)]:JP(v)),w=[v].concat(x).reduce(function(le,de){return le.concat(so(de)===mh?ZP(t,{placement:de,boundary:u,rootBoundary:f,padding:c,flipVariations:p,allowedAutoPlacements:g}):de)},[]),k=t.rects.reference,C=t.rects.popper,E=new Map,S=!0,_=w[0],O=0;O=0,D=$?"width":"height",P=Fl(t,{placement:T,boundary:u,rootBoundary:f,altBoundary:h,padding:c}),V=$?F?br:Hn:F?vr:jn;k[D]>C[D]&&(V=jd(V));var I=jd(V),z=[];if(i&&z.push(P[N]<=0),l&&z.push(P[V]<=0,P[I]<=0),z.every(function(le){return le})){_=T,S=!1;break}E.set(T,z)}if(S)for(var G=p?3:1,q=function(le){var de=w.find(function(ne){var oe=E.get(ne);if(oe)return oe.slice(0,le).every(function(U){return U})});if(de)return _=de,"break"},X=G;X>0;X--){var te=q(X);if(te==="break")break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}}var e$={name:"flip",enabled:!0,phase:"main",fn:QP,requiresIfExists:["offset"],data:{_skip:!1}};function Fv(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 Av(e){return[jn,br,vr,Hn].some(function(t){return e[t]>=0})}function t$(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,s=Fl(t,{elementContext:"reference"}),l=Fl(t,{altBoundary:!0}),d=Fv(s,r),c=Fv(l,a,i),u=Av(d),f=Av(c);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}var n$={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:t$};function r$(e,t,n){var r=so(e),a=[Hn,jn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],l=i[1];return s=s||0,l=(l||0)*a,[Hn,br].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function o$(e){var t=e.state,n=e.options,r=e.name,a=n.offset,i=a===void 0?[0,0]:a,s=Nl.reduce(function(u,f){return u[f]=r$(f,t.rects,i),u},{}),l=s[t.placement],d=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}var a$={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:o$};function i$(e){var t=e.state,n=e.name;t.modifiersData[n]=$v({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Iv={name:"popperOffsets",enabled:!0,phase:"read",fn:i$,data:{}};function s$(e){return e==="x"?"y":"x"}function l$(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,i=a===void 0?!0:a,s=n.altAxis,l=s===void 0?!1:s,d=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,h=n.tether,m=h===void 0?!0:h,p=n.tetherOffset,g=p===void 0?0:p,v=Fl(t,{boundary:d,rootBoundary:c,padding:f,altBoundary:u}),y=so(t.placement),b=ns(t.placement),x=!b,w=vh(y),k=s$(w),C=t.modifiersData.popperOffsets,E=t.rects.reference,S=t.rects.popper,_=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,O=typeof _=="number"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(C){if(i){var F,$=w==="y"?jn:Hn,D=w==="y"?vr:br,P=w==="y"?"height":"width",V=C[w],I=V+v[$],z=V-v[D],G=m?-S[P]/2:0,q=b===Ji?E[P]:S[P],X=b===Ji?-S[P]:-E[P],te=t.elements.arrow,le=m&&te?yh(te):{width:0,height:0},de=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:kv(),ne=de[$],oe=de[D],U=Pl(0,E[P],le[P]),W=x?E[P]/2-G-U-ne-O.mainAxis:q-U-ne-O.mainAxis,Z=x?-E[P]/2+G+U+oe+O.mainAxis:X+U+oe+O.mainAxis,ue=t.elements.arrow&&Ol(t.elements.arrow),be=ue?w==="y"?ue.clientTop||0:ue.clientLeft||0:0,Be=(F=T==null?void 0:T[w])!=null?F:0,pe=V+W-Be-be,xe=V+Z-Be,ge=Pl(m?Ld(I,pe):I,V,m?Za(z,xe):z);C[w]=ge,N[w]=ge-V}if(l){var ke,Ne=w==="x"?jn:Hn,Ie=w==="x"?vr:br,Se=C[k],Re=k==="y"?"height":"width",Ve=Se+v[Ne],ze=Se-v[Ie],B=[jn,Hn].indexOf(y)!==-1,L=(ke=T==null?void 0:T[k])!=null?ke:0,Y=B?Ve:Se-E[Re]-S[Re]-L+O.altAxis,Q=B?Se+E[Re]+S[Re]-L-O.altAxis:ze,ee=m&&B?IP(Y,Se,Q):Pl(m?Y:Ve,Se,m?Q:ze);C[k]=ee,N[k]=ee-Se}t.modifiersData[r]=N}}var c$={name:"preventOverflow",enabled:!0,phase:"main",fn:l$,requiresIfExists:["offset"]};function d$(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function u$(e){return e===Rr(e)||!wr(e)?bh(e):d$(e)}function f$(e){var t=e.getBoundingClientRect(),n=es(t.width)/e.offsetWidth||1,r=es(t.height)/e.offsetHeight||1;return n!==1||r!==1}function p$(e,t,n){n===void 0&&(n=!1);var r=wr(t),a=wr(t)&&f$(t),i=na(t),s=ts(e,a),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&((io(t)!=="body"||xh(i))&&(l=u$(t)),wr(t)?(d=ts(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):i&&(d.x=wh(i))),{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function h$(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function a(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var d=t.get(l);d&&a(d)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||a(i)}),r}function m$(e){var t=h$(e);return OP.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function g$(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function y$(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Dv={placement:"bottom",modifiers:[],strategy:"absolute"};function Vv(){for(var e=arguments.length,t=new Array(e),n=0;n{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:d})=>{const c=C$(d);Object.assign(s.value,c)},requires:["computeStyles"]},a=o.computed(()=>{const{onFirstUpdate:d,placement:c,strategy:u,modifiers:f}=o.unref(n);return{onFirstUpdate:d,placement:c||"bottom",strategy:u||"absolute",modifiers:[...f||[],r,{name:"applyStyles",enabled:!1}]}}),i=o.shallowRef(),s=o.ref({styles:{popper:{position:o.unref(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=()=>{i.value&&(i.value.destroy(),i.value=void 0)};return o.watch(a,d=>{const c=o.unref(i);c&&c.setOptions(d)},{deep:!0}),o.watch([e,t],([d,c])=>{l(),!(!d||!c)&&(i.value=w$(d,c,o.unref(a)))}),o.onBeforeUnmount(()=>{l()}),{state:o.computed(()=>{var d;return{...((d=o.unref(i))==null?void 0:d.state)||{}}}),styles:o.computed(()=>o.unref(s).styles),attributes:o.computed(()=>o.unref(s).attributes),update:()=>{var d;return(d=o.unref(i))==null?void 0:d.update()},forceUpdate:()=>{var d;return(d=o.unref(i))==null?void 0:d.forceUpdate()},instanceRef:o.computed(()=>o.unref(i))}};function C$(e){const t=Object.keys(e.elements),n=Pd(t.map(a=>[a,e.styles[a]||{}])),r=Pd(t.map(a=>[a,e.attributes[a]]));return{styles:n,attributes:r}}const k$=e=>{if(!e)return{onClick:_o,onMousedown:_o,onMouseup:_o};let t=!1,n=!1;return{onClick:s=>{t&&n&&e(s),t=n=!1},onMousedown:s=>{t=s.target===s.currentTarget},onMouseup:s=>{n=s.target===s.currentTarget}}};function Rv(){let e;const t=(r,a)=>{n(),e=window.setTimeout(r,a)},n=()=>window.clearTimeout(e);return ml(()=>n()),{registerTimeout:t,cancelTimeout:n}}const Eh={prefix:Math.floor(Math.random()*1e4),current:0},E$=Symbol("elIdInjection"),Lv=()=>o.getCurrentInstance()?o.inject(E$,Eh):Eh,ra=e=>{const t=Lv();!kt&&t===Eh&&Mt("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed usage: app.provide(ID_INJECTION_KEY, { prefix: number, current: number, })`);const n=hh();return o.computed(()=>o.unref(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let rs=[];const Mv=e=>{const t=e;t.key===Qt.esc&&rs.forEach(n=>n(t))},S$=e=>{o.onMounted(()=>{rs.length===0&&document.addEventListener("keydown",Mv),kt&&rs.push(e)}),o.onBeforeUnmount(()=>{rs=rs.filter(t=>t!==e),rs.length===0&&kt&&document.removeEventListener("keydown",Mv)})};let zv;const jv=()=>{const e=hh(),t=Lv(),n=o.computed(()=>`${e.value}-popper-container-${t.prefix}`),r=o.computed(()=>`#${n.value}`);return{id:n,selector:r}},_$=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},B$=()=>{const{id:e,selector:t}=jv();return o.onBeforeMount(()=>{kt&&(process.env.NODE_ENV==="test"||!zv||!document.body.querySelector(t.value))&&(zv=_$(e.value))}),{id:e,selector:t}},T$=We({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),N$=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:a})=>{const{registerTimeout:i}=Rv(),{registerTimeout:s,cancelTimeout:l}=Rv();return{onOpen:u=>{i(()=>{r(u);const f=o.unref(n);pt(f)&&f>0&&s(()=>{a(u)},f)},o.unref(e))},onClose:u=>{l(),i(()=>{a(u)},o.unref(t))}}},Hv=Symbol("elForwardRef"),O$=e=>{const t=n=>{e.value=n};o.provide(Hv,{setForwardRef:t})},P$=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Uv={current:0},qv=o.ref(0),Wv=2e3,Kv=Symbol("elZIndexContextKey"),Gv=Symbol("zIndexContextKey"),Sh=e=>{const t=o.getCurrentInstance()?o.inject(Kv,Uv):Uv,n=e||(o.getCurrentInstance()?o.inject(Gv,void 0):void 0),r=o.computed(()=>{const s=o.unref(n);return pt(s)?s:Wv}),a=o.computed(()=>r.value+qv.value),i=()=>(t.current++,qv.value=t.current,a.value);return!kt&&!o.inject(Kv)&&Mt("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:r,currentZIndex:a,nextZIndex:i}};function $$(e){let t;function n(){if(e.value==null)return;const{selectionStart:a,selectionEnd:i,value:s}=e.value;if(a==null||i==null)return;const l=s.slice(0,Math.max(0,a)),d=s.slice(Math.max(0,i));t={selectionStart:a,selectionEnd:i,value:s,beforeTxt:l,afterTxt:d}}function r(){if(e.value==null||t==null)return;const{value:a}=e.value,{beforeTxt:i,afterTxt:s,selectionStart:l}=t;if(i==null||s==null||l==null)return;let d=a.length;if(a.endsWith(s))d=a.length-s.length;else if(a.startsWith(i))d=i.length;else{const c=i[l-1],u=a.indexOf(c,l-1);u!==-1&&(d=u+1)}e.value.setSelectionRange(d,d)}return[n,r]}const $o=Dd({type:String,values:Vd,required:!1}),Xv=Symbol("size"),Yv=()=>{const e=o.inject(Xv,{});return o.computed(()=>o.unref(e.size)||"")};function Zv(e,{beforeFocus:t,afterFocus:n,beforeBlur:r,afterBlur:a}={}){const i=o.getCurrentInstance(),{emit:s}=i,l=o.shallowRef(),d=o.ref(!1),c=h=>{Jt(t)&&t(h)||d.value||(d.value=!0,s("focus",h),n==null||n())},u=h=>{var m;Jt(r)&&r(h)||h.relatedTarget&&((m=l.value)!=null&&m.contains(h.relatedTarget))||(d.value=!1,s("blur",h),a==null||a())},f=()=>{var h,m;(h=l.value)!=null&&h.contains(document.activeElement)&&l.value!==document.activeElement||(m=e.value)==null||m.focus()};return o.watch(l,h=>{h&&h.setAttribute("tabindex","-1")}),Fr(l,"focus",c,!0),Fr(l,"blur",u,!0),Fr(l,"click",f,!0),process.env.NODE_ENV==="test"&&o.onMounted(()=>{const h=Ka(e.value)?e.value:document.querySelector("input,textarea");h&&(Fr(h,"focus",c,!0),Fr(h,"blur",u,!0))}),{isFocused:d,wrapperRef:l,handleFocus:c,handleBlur:u}}function _h({afterComposition:e,emit:t}){const n=o.ref(!1),r=l=>{t==null||t("compositionstart",l),n.value=!0},a=l=>{var d;t==null||t("compositionupdate",l);const c=(d=l.target)==null?void 0:d.value,u=c[c.length-1]||"";n.value=!iP(u)},i=l=>{t==null||t("compositionend",l),n.value&&(n.value=!1,o.nextTick(()=>e(l)))};return{isComposing:n,handleComposition:l=>{l.type==="compositionend"?i(l):a(l)},handleCompositionStart:r,handleCompositionUpdate:a,handleCompositionEnd:i}}const Jv=Symbol("emptyValuesContextKey"),F$="use-empty-values",A$=["",void 0,null],I$=void 0,Qv=We({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>Jt(e)?!e():!e}}),eb=(e,t)=>{const n=o.getCurrentInstance()?o.inject(Jv,o.ref({})):o.ref({}),r=o.computed(()=>e.emptyValues||n.value.emptyValues||A$),a=o.computed(()=>Jt(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:Jt(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:I$),i=s=>r.value.includes(s);return r.value.includes(a.value)||Mt(F$,"value-on-clear should be a value of empty-values"),{emptyValues:r,valueOnClear:a,isEmptyValue:i}},D$=We({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),oa=e=>J1(D$,e),tb=Symbol(),Hd=o.ref();function Ud(e,t=void 0){const n=o.getCurrentInstance()?o.inject(tb,Hd):Hd;return e?o.computed(()=>{var r,a;return(a=(r=n.value)==null?void 0:r[e])!=null?a:t}):n}function V$(e,t){const n=Ud(),r=Ue(e,o.computed(()=>{var l;return((l=n.value)==null?void 0:l.namespace)||Sl})),a=yr(o.computed(()=>{var l;return(l=n.value)==null?void 0:l.locale})),i=Sh(o.computed(()=>{var l;return((l=n.value)==null?void 0:l.zIndex)||Wv})),s=o.computed(()=>{var l;return o.unref(t)||((l=n.value)==null?void 0:l.size)||""});return R$(o.computed(()=>o.unref(n)||{})),{ns:r,locale:a,zIndex:i,size:s}}const R$=(e,t,n=!1)=>{var r;const a=!!o.getCurrentInstance(),i=a?Ud():void 0,s=(r=void 0)!=null?r:a?o.provide:void 0;if(!s){Mt("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const l=o.computed(()=>{const d=o.unref(e);return i!=null&&i.value?L$(i.value,d):d});return s(tb,l),s(mv,o.computed(()=>l.value.locale)),s(gv,o.computed(()=>l.value.namespace)),s(Gv,o.computed(()=>l.value.zIndex)),s(Xv,{size:o.computed(()=>l.value.size||"")}),s(Jv,o.computed(()=>({emptyValues:l.value.emptyValues,valueOnClear:l.value.valueOnClear}))),(n||!Hd.value)&&(Hd.value=l.value),l},L$=(e,t)=>{const n=[...new Set([...ev(e),...ev(t)])],r={};for(const a of n)r[a]=t[a]!==void 0?t[a]:e[a];return r};var qe=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n};const M$=We({size:{type:Ae([Number,String])},color:{type:String}}),z$=o.defineComponent({name:"ElIcon",inheritAttrs:!1}),j$=o.defineComponent({...z$,props:M$,setup(e){const t=e,n=Ue("icon"),r=o.computed(()=>{const{size:a,color:i}=t;return!a&&!i?{}:{fontSize:Oo(a)?void 0:Zi(a),"--color":i}});return(a,i)=>(o.openBlock(),o.createElementBlock("i",o.mergeProps({class:o.unref(n).b(),style:o.unref(r)},a.$attrs),[o.renderSlot(a.$slots,"default")],16))}});var H$=qe(j$,[["__file","icon.vue"]]);const St=zt(H$),Bh=Symbol("formContextKey"),qd=Symbol("formItemContextKey"),aa=(e,t={})=>{const n=o.ref(void 0),r=t.prop?n:yv("size"),a=t.global?n:Yv(),i=t.form?{size:void 0}:o.inject(Bh,void 0),s=t.formItem?{size:void 0}:o.inject(qd,void 0);return o.computed(()=>r.value||o.unref(e)||(s==null?void 0:s.size)||(i==null?void 0:i.size)||a.value||"")},Al=e=>{const t=yv("disabled"),n=o.inject(Bh,void 0);return o.computed(()=>t.value||o.unref(e)||(n==null?void 0:n.disabled)||!1)},ia=()=>{const e=o.inject(Bh,void 0),t=o.inject(qd,void 0);return{form:e,formItem:t}},Il=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=o.ref(!1)),r||(r=o.ref(!1));const a=o.ref();let i;const s=o.computed(()=>{var l;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((l=t.inputIds)==null?void 0:l.length)<=1)});return o.onMounted(()=>{i=o.watch([o.toRef(e,"id"),n],([l,d])=>{const c=l??(d?void 0:ra().value);c!==a.value&&(t!=null&&t.removeInputId&&(a.value&&t.removeInputId(a.value),!(r!=null&&r.value)&&!d&&c&&t.addInputId(c)),a.value=c)},{immediate:!0})}),o.onUnmounted(()=>{i&&i(),t!=null&&t.removeInputId&&a.value&&t.removeInputId(a.value)}),{isLabeledByFormItem:s,inputId:a}};let Lr;const U$=` height:0 !important; visibility:hidden !important; ${pB()?"":"overflow:hidden !important;"} position:absolute !important; z-index:-1000 !important; top:0 !important; right:0 !important; `,q$=["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 W$(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),a=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:q$.map(s=>`${s}:${t.getPropertyValue(s)}`).join(";"),paddingSize:r,borderSize:a,boxSizing:n}}function nb(e,t=1,n){var r;Lr||(Lr=document.createElement("textarea"),document.body.appendChild(Lr));const{paddingSize:a,borderSize:i,boxSizing:s,contextStyle:l}=W$(e);Lr.setAttribute("style",`${l};${U$}`),Lr.value=e.value||e.placeholder||"";let d=Lr.scrollHeight;const c={};s==="border-box"?d=d+i:s==="content-box"&&(d=d-a),Lr.value="";const u=Lr.scrollHeight-a;if(pt(t)){let f=u*t;s==="border-box"&&(f=f+a+i),d=Math.max(f,d),c.minHeight=`${f}px`}if(pt(n)){let f=u*n;s==="border-box"&&(f=f+a+i),d=Math.min(f,d)}return c.height=`${d}px`,(r=Lr.parentNode)==null||r.removeChild(Lr),Lr=void 0,c}const K$=We({id:{type:String,default:void 0},size:$o,disabled:Boolean,modelValue:{type:Ae([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:Ae([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:gr},prefixIcon:{type:gr},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Ae([Object,Array,String]),default:()=>ta({})},autofocus:Boolean,rows:{type:Number,default:2},...oa(["ariaLabel"])}),G$={[At]:e=>zn(e),input:e=>zn(e),change:e=>zn(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},X$=o.defineComponent({name:"ElInput",inheritAttrs:!1}),Y$=o.defineComponent({...X$,props:K$,emits:G$,setup(e,{expose:t,emit:n}){const r=e,a=o.useAttrs(),i=o.useSlots(),s=o.computed(()=>{const L={};return r.containerRole==="combobox"&&(L["aria-haspopup"]=a["aria-haspopup"],L["aria-owns"]=a["aria-owns"],L["aria-expanded"]=a["aria-expanded"]),L}),l=o.computed(()=>[r.type==="textarea"?v.b():g.b(),g.m(m.value),g.is("disabled",p.value),g.is("exceed",te.value),{[g.b("group")]:i.prepend||i.append,[g.m("prefix")]:i.prefix||r.prefixIcon,[g.m("suffix")]:i.suffix||r.suffixIcon||r.clearable||r.showPassword,[g.bm("suffix","password-clear")]:z.value&&G.value,[g.b("hidden")]:r.type==="hidden"},a.class]),d=o.computed(()=>[g.e("wrapper"),g.is("focus",_.value)]),c=cP({excludeKeys:o.computed(()=>Object.keys(s.value))}),{form:u,formItem:f}=ia(),{inputId:h}=Il(r,{formItemContext:f}),m=aa(),p=Al(),g=Ue("input"),v=Ue("textarea"),y=o.shallowRef(),b=o.shallowRef(),x=o.ref(!1),w=o.ref(!1),k=o.ref(),C=o.shallowRef(r.inputStyle),E=o.computed(()=>y.value||b.value),{wrapperRef:S,isFocused:_,handleFocus:O,handleBlur:T}=Zv(E,{beforeFocus(){return p.value},afterBlur(){var L;r.validateEvent&&((L=f==null?void 0:f.validate)==null||L.call(f,"blur").catch(Y=>Mt(Y)))}}),N=o.computed(()=>{var L;return(L=u==null?void 0:u.statusIcon)!=null?L:!1}),F=o.computed(()=>(f==null?void 0:f.validateState)||""),$=o.computed(()=>F.value&&fv[F.value]),D=o.computed(()=>w.value?cv:K6),P=o.computed(()=>[a.style]),V=o.computed(()=>[r.inputStyle,C.value,{resize:r.resize}]),I=o.computed(()=>Cl(r.modelValue)?"":String(r.modelValue)),z=o.computed(()=>r.clearable&&!p.value&&!r.readonly&&!!I.value&&(_.value||x.value)),G=o.computed(()=>r.showPassword&&!p.value&&!r.readonly&&!!I.value&&(!!I.value||_.value)),q=o.computed(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!p.value&&!r.readonly&&!r.showPassword),X=o.computed(()=>I.value.length),te=o.computed(()=>!!q.value&&X.value>Number(r.maxlength)),le=o.computed(()=>!!i.suffix||!!r.suffixIcon||z.value||r.showPassword||q.value||!!F.value&&N.value),[de,ne]=$$(y);no(b,L=>{if(W(),!q.value||r.resize!=="both")return;const Y=L[0],{width:Q}=Y.contentRect;k.value={right:`calc(100% - ${Q+15+6}px)`}});const oe=()=>{const{type:L,autosize:Y}=r;if(!(!kt||L!=="textarea"||!b.value))if(Y){const Q=sn(Y)?Y.minRows:void 0,ee=sn(Y)?Y.maxRows:void 0,he=nb(b.value,Q,ee);C.value={overflowY:"hidden",...he},o.nextTick(()=>{b.value.offsetHeight,C.value=he})}else C.value={minHeight:nb(b.value).minHeight}},W=(L=>{let Y=!1;return()=>{var Q;if(Y||!r.autosize)return;((Q=b.value)==null?void 0:Q.offsetParent)===null||(L(),Y=!0)}})(oe),Z=()=>{const L=E.value,Y=r.formatter?r.formatter(I.value):I.value;!L||L.value===Y||(L.value=Y)},ue=async L=>{de();let{value:Y}=L.target;if(r.formatter&&(Y=r.parser?r.parser(Y):Y),!Be.value){if(Y===I.value){Z();return}n(At,Y),n("input",Y),await o.nextTick(),Z(),ne()}},be=L=>{n("change",L.target.value)},{isComposing:Be,handleCompositionStart:pe,handleCompositionUpdate:xe,handleCompositionEnd:ge}=_h({emit:n,afterComposition:ue}),ke=()=>{w.value=!w.value,Ne()},Ne=async()=>{var L;await o.nextTick(),(L=E.value)==null||L.focus()},Ie=()=>{var L;return(L=E.value)==null?void 0:L.blur()},Se=L=>{x.value=!1,n("mouseleave",L)},Re=L=>{x.value=!0,n("mouseenter",L)},Ve=L=>{n("keydown",L)},ze=()=>{var L;(L=E.value)==null||L.select()},B=()=>{n(At,""),n("change",""),n("clear"),n("input","")};return o.watch(()=>r.modelValue,()=>{var L;o.nextTick(()=>oe()),r.validateEvent&&((L=f==null?void 0:f.validate)==null||L.call(f,"change").catch(Y=>Mt(Y)))}),o.watch(I,()=>Z()),o.watch(()=>r.type,async()=>{await o.nextTick(),Z(),oe()}),o.onMounted(()=>{!r.formatter&&r.parser&&Mt("ElInput","If you set the parser, you also need to set the formatter."),Z(),o.nextTick(oe)}),t({input:y,textarea:b,ref:E,textareaStyle:V,autosize:o.toRef(r,"autosize"),isComposing:Be,focus:Ne,blur:Ie,select:ze,clear:B,resizeTextarea:oe}),(L,Y)=>(o.openBlock(),o.createElementBlock("div",o.mergeProps(o.unref(s),{class:[o.unref(l),{[o.unref(g).bm("group","append")]:L.$slots.append,[o.unref(g).bm("group","prepend")]:L.$slots.prepend}],style:o.unref(P),role:L.containerRole,onMouseenter:Re,onMouseleave:Se}),[o.createCommentVNode(" input "),L.type!=="textarea"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createCommentVNode(" prepend slot "),L.$slots.prepend?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(o.unref(g).be("group","prepend"))},[o.renderSlot(L.$slots,"prepend")],2)):o.createCommentVNode("v-if",!0),o.createElementVNode("div",{ref_key:"wrapperRef",ref:S,class:o.normalizeClass(o.unref(d))},[o.createCommentVNode(" prefix slot "),L.$slots.prefix||L.prefixIcon?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(o.unref(g).e("prefix"))},[o.createElementVNode("span",{class:o.normalizeClass(o.unref(g).e("prefix-inner"))},[o.renderSlot(L.$slots,"prefix"),L.prefixIcon?(o.openBlock(),o.createBlock(o.unref(St),{key:0,class:o.normalizeClass(o.unref(g).e("icon"))},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(L.prefixIcon)))]),_:1},8,["class"])):o.createCommentVNode("v-if",!0)],2)],2)):o.createCommentVNode("v-if",!0),o.createElementVNode("input",o.mergeProps({id:o.unref(h),ref_key:"input",ref:y,class:o.unref(g).e("inner")},o.unref(c),{minlength:L.minlength,maxlength:L.maxlength,type:L.showPassword?w.value?"text":"password":L.type,disabled:o.unref(p),readonly:L.readonly,autocomplete:L.autocomplete,tabindex:L.tabindex,"aria-label":L.ariaLabel,placeholder:L.placeholder,style:L.inputStyle,form:L.form,autofocus:L.autofocus,onCompositionstart:o.unref(pe),onCompositionupdate:o.unref(xe),onCompositionend:o.unref(ge),onInput:ue,onChange:be,onKeydown:Ve}),null,16,["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","onCompositionstart","onCompositionupdate","onCompositionend"]),o.createCommentVNode(" suffix slot "),o.unref(le)?(o.openBlock(),o.createElementBlock("span",{key:1,class:o.normalizeClass(o.unref(g).e("suffix"))},[o.createElementVNode("span",{class:o.normalizeClass(o.unref(g).e("suffix-inner"))},[!o.unref(z)||!o.unref(G)||!o.unref(q)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.renderSlot(L.$slots,"suffix"),L.suffixIcon?(o.openBlock(),o.createBlock(o.unref(St),{key:0,class:o.normalizeClass(o.unref(g).e("icon"))},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(L.suffixIcon)))]),_:1},8,["class"])):o.createCommentVNode("v-if",!0)],64)):o.createCommentVNode("v-if",!0),o.unref(z)?(o.openBlock(),o.createBlock(o.unref(St),{key:1,class:o.normalizeClass([o.unref(g).e("icon"),o.unref(g).e("clear")]),onMousedown:o.withModifiers(o.unref(_o),["prevent"]),onClick:B},{default:o.withCtx(()=>[o.createVNode(o.unref(Ad))]),_:1},8,["class","onMousedown"])):o.createCommentVNode("v-if",!0),o.unref(G)?(o.openBlock(),o.createBlock(o.unref(St),{key:2,class:o.normalizeClass([o.unref(g).e("icon"),o.unref(g).e("password")]),onClick:ke},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(o.unref(D))))]),_:1},8,["class"])):o.createCommentVNode("v-if",!0),o.unref(q)?(o.openBlock(),o.createElementBlock("span",{key:3,class:o.normalizeClass(o.unref(g).e("count"))},[o.createElementVNode("span",{class:o.normalizeClass(o.unref(g).e("count-inner"))},o.toDisplayString(o.unref(X))+" / "+o.toDisplayString(L.maxlength),3)],2)):o.createCommentVNode("v-if",!0),o.unref(F)&&o.unref($)&&o.unref(N)?(o.openBlock(),o.createBlock(o.unref(St),{key:4,class:o.normalizeClass([o.unref(g).e("icon"),o.unref(g).e("validateIcon"),o.unref(g).is("loading",o.unref(F)==="validating")])},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(o.unref($))))]),_:1},8,["class"])):o.createCommentVNode("v-if",!0)],2)],2)):o.createCommentVNode("v-if",!0)],2),o.createCommentVNode(" append slot "),L.$slots.append?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(o.unref(g).be("group","append"))},[o.renderSlot(L.$slots,"append")],2)):o.createCommentVNode("v-if",!0)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createCommentVNode(" textarea "),o.createElementVNode("textarea",o.mergeProps({id:o.unref(h),ref_key:"textarea",ref:b,class:[o.unref(v).e("inner"),o.unref(g).is("focus",o.unref(_))]},o.unref(c),{minlength:L.minlength,maxlength:L.maxlength,tabindex:L.tabindex,disabled:o.unref(p),readonly:L.readonly,autocomplete:L.autocomplete,style:o.unref(V),"aria-label":L.ariaLabel,placeholder:L.placeholder,form:L.form,autofocus:L.autofocus,rows:L.rows,onCompositionstart:o.unref(pe),onCompositionupdate:o.unref(xe),onCompositionend:o.unref(ge),onInput:ue,onFocus:o.unref(O),onBlur:o.unref(T),onChange:be,onKeydown:Ve}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),o.unref(q)?(o.openBlock(),o.createElementBlock("span",{key:0,style:o.normalizeStyle(k.value),class:o.normalizeClass(o.unref(g).e("count"))},o.toDisplayString(o.unref(X))+" / "+o.toDisplayString(L.maxlength),7)):o.createCommentVNode("v-if",!0)],64))],16,["role"]))}});var Z$=qe(Y$,[["__file","input.vue"]]);const Wd=zt(Z$),os=4,J$={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"}},Q$=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),Th=Symbol("scrollbarContextKey"),eF=We({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),tF="Thumb";var rb=qe(o.defineComponent({__name:"thumb",props:eF,setup(e){const t=e,n=o.inject(Th),r=Ue("scrollbar");n||nv(tF,"can not inject scrollbar context");const a=o.ref(),i=o.ref(),s=o.ref({}),l=o.ref(!1);let d=!1,c=!1,u=kt?document.onselectstart:null;const f=o.computed(()=>J$[t.vertical?"vertical":"horizontal"]),h=o.computed(()=>Q$({size:t.size,move:t.move,bar:f.value})),m=o.computed(()=>a.value[f.value.offset]**2/n.wrapElement[f.value.scrollSize]/t.ratio/i.value[f.value.offset]),p=C=>{var E;if(C.stopPropagation(),C.ctrlKey||[1,2].includes(C.button))return;(E=window.getSelection())==null||E.removeAllRanges(),v(C);const S=C.currentTarget;S&&(s.value[f.value.axis]=S[f.value.offset]-(C[f.value.client]-S.getBoundingClientRect()[f.value.direction]))},g=C=>{if(!i.value||!a.value||!n.wrapElement)return;const E=Math.abs(C.target.getBoundingClientRect()[f.value.direction]-C[f.value.client]),S=i.value[f.value.offset]/2,_=(E-S)*100*m.value/a.value[f.value.offset];n.wrapElement[f.value.scroll]=_*n.wrapElement[f.value.scrollSize]/100},v=C=>{C.stopImmediatePropagation(),d=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",b),u=document.onselectstart,document.onselectstart=()=>!1},y=C=>{if(!a.value||!i.value||d===!1)return;const E=s.value[f.value.axis];if(!E)return;const S=(a.value.getBoundingClientRect()[f.value.direction]-C[f.value.client])*-1,_=i.value[f.value.offset]-E,O=(S-_)*100*m.value/a.value[f.value.offset];n.wrapElement[f.value.scroll]=O*n.wrapElement[f.value.scrollSize]/100},b=()=>{d=!1,s.value[f.value.axis]=0,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",b),k(),c&&(l.value=!1)},x=()=>{c=!1,l.value=!!t.size},w=()=>{c=!0,l.value=d};o.onBeforeUnmount(()=>{k(),document.removeEventListener("mouseup",b)});const k=()=>{document.onselectstart!==u&&(document.onselectstart=u)};return Fr(o.toRef(n,"scrollbarElement"),"mousemove",x),Fr(o.toRef(n,"scrollbarElement"),"mouseleave",w),(C,E)=>(o.openBlock(),o.createBlock(o.Transition,{name:o.unref(r).b("fade"),persisted:""},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",{ref_key:"instance",ref:a,class:o.normalizeClass([o.unref(r).e("bar"),o.unref(r).is(o.unref(f).key)]),onMousedown:g},[o.createElementVNode("div",{ref_key:"thumb",ref:i,class:o.normalizeClass(o.unref(r).e("thumb")),style:o.normalizeStyle(o.unref(h)),onMousedown:p},null,38)],34),[[o.vShow,C.always||l.value]])]),_:1},8,["name"]))}}),[["__file","thumb.vue"]]);const nF=We({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}});var rF=qe(o.defineComponent({__name:"bar",props:nF,setup(e,{expose:t}){const n=e,r=o.inject(Th),a=o.ref(0),i=o.ref(0),s=o.ref(""),l=o.ref(""),d=o.ref(1),c=o.ref(1);return t({handleScroll:h=>{if(h){const m=h.offsetHeight-os,p=h.offsetWidth-os;i.value=h.scrollTop*100/m*d.value,a.value=h.scrollLeft*100/p*c.value}},update:()=>{const h=r==null?void 0:r.wrapElement;if(!h)return;const m=h.offsetHeight-os,p=h.offsetWidth-os,g=m**2/h.scrollHeight,v=p**2/h.scrollWidth,y=Math.max(g,n.minSize),b=Math.max(v,n.minSize);d.value=g/(m-g)/(y/(m-y)),c.value=v/(p-v)/(b/(p-b)),l.value=y+os(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(rb,{move:a.value,ratio:c.value,size:s.value,always:h.always},null,8,["move","ratio","size","always"]),o.createVNode(rb,{move:i.value,ratio:d.value,size:l.value,vertical:"",always:h.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","bar.vue"]]);const oF=We({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:Ae([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,...oa(["ariaLabel","ariaOrientation"])}),aF={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(pt)},Nh="ElScrollbar",iF=o.defineComponent({name:Nh}),sF=o.defineComponent({...iF,props:oF,emits:aF,setup(e,{expose:t,emit:n}){const r=e,a=Ue("scrollbar");let i,s,l=0,d=0;const c=o.ref(),u=o.ref(),f=o.ref(),h=o.ref(),m=o.computed(()=>{const k={};return r.height&&(k.height=Zi(r.height)),r.maxHeight&&(k.maxHeight=Zi(r.maxHeight)),[r.wrapStyle,k]}),p=o.computed(()=>[r.wrapClass,a.e("wrap"),{[a.em("wrap","hidden-default")]:!r.native}]),g=o.computed(()=>[a.e("view"),r.viewClass]),v=()=>{var k;u.value&&((k=h.value)==null||k.handleScroll(u.value),l=u.value.scrollTop,d=u.value.scrollLeft,n("scroll",{scrollTop:u.value.scrollTop,scrollLeft:u.value.scrollLeft}))};function y(k,C){sn(k)?u.value.scrollTo(k):pt(k)&&pt(C)&&u.value.scrollTo(k,C)}const b=k=>{if(!pt(k)){Mt(Nh,"value must be a number");return}u.value.scrollTop=k},x=k=>{if(!pt(k)){Mt(Nh,"value must be a number");return}u.value.scrollLeft=k},w=()=>{var k;(k=h.value)==null||k.update()};return o.watch(()=>r.noresize,k=>{k?(i==null||i(),s==null||s()):({stop:i}=no(f,w),s=Fr("resize",w))},{immediate:!0}),o.watch(()=>[r.maxHeight,r.height],()=>{r.native||o.nextTick(()=>{var k;w(),u.value&&((k=h.value)==null||k.handleScroll(u.value))})}),o.provide(Th,o.reactive({scrollbarElement:c,wrapElement:u})),o.onActivated(()=>{u.value&&(u.value.scrollTop=l,u.value.scrollLeft=d)}),o.onMounted(()=>{r.native||o.nextTick(()=>{w()})}),o.onUpdated(()=>w()),t({wrapRef:u,update:w,scrollTo:y,setScrollTop:b,setScrollLeft:x,handleScroll:v}),(k,C)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"scrollbarRef",ref:c,class:o.normalizeClass(o.unref(a).b())},[o.createElementVNode("div",{ref_key:"wrapRef",ref:u,class:o.normalizeClass(o.unref(p)),style:o.normalizeStyle(o.unref(m)),tabindex:k.tabindex,onScroll:v},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(k.tag),{id:k.id,ref_key:"resizeRef",ref:f,class:o.normalizeClass(o.unref(g)),style:o.normalizeStyle(k.viewStyle),role:k.role,"aria-label":k.ariaLabel,"aria-orientation":k.ariaOrientation},{default:o.withCtx(()=>[o.renderSlot(k.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),k.native?o.createCommentVNode("v-if",!0):(o.openBlock(),o.createBlock(rF,{key:0,ref_key:"barRef",ref:h,always:k.always,"min-size":k.minSize},null,8,["always","min-size"]))],2))}});var lF=qe(sF,[["__file","scrollbar.vue"]]);const Oh=zt(lF),Ph=Symbol("popper"),ob=Symbol("popperContent"),ab=We({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),cF=o.defineComponent({name:"ElPopper",inheritAttrs:!1}),dF=o.defineComponent({...cF,props:ab,setup(e,{expose:t}){const n=e,r=o.ref(),a=o.ref(),i=o.ref(),s=o.ref(),l=o.computed(()=>n.role),d={triggerRef:r,popperInstanceRef:a,contentRef:i,referenceRef:s,role:l};return t(d),o.provide(Ph,d),(c,u)=>o.renderSlot(c.$slots,"default")}});var uF=qe(dF,[["__file","popper.vue"]]);const ib=We({arrowOffset:{type:Number,default:5}}),fF=o.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),pF=o.defineComponent({...fF,props:ib,setup(e,{expose:t}){const n=e,r=Ue("popper"),{arrowOffset:a,arrowRef:i,arrowStyle:s}=o.inject(ob,void 0);return o.watch(()=>n.arrowOffset,l=>{a.value=l}),o.onBeforeUnmount(()=>{i.value=void 0}),t({arrowRef:i}),(l,d)=>(o.openBlock(),o.createElementBlock("span",{ref_key:"arrowRef",ref:i,class:o.normalizeClass(o.unref(r).e("arrow")),style:o.normalizeStyle(o.unref(s)),"data-popper-arrow":""},null,6))}});var hF=qe(pF,[["__file","arrow.vue"]]);const $h="ElOnlyChild",mF=o.defineComponent({name:$h,setup(e,{slots:t,attrs:n}){var r;const a=o.inject(Hv),i=P$((r=a==null?void 0:a.setForwardRef)!=null?r:_o);return()=>{var s;const l=(s=t.default)==null?void 0:s.call(t,n);if(!l)return null;if(l.length>1)return Mt($h,"requires exact only one valid child."),null;const d=sb(l);return d?o.withDirectives(o.cloneVNode(d,n),[[i]]):(Mt($h,"no valid child node found"),null)}}});function sb(e){if(!e)return null;const t=e;for(const n of t){if(sn(n))switch(n.type){case o.Comment:continue;case o.Text:case"svg":return lb(n);case o.Fragment:return sb(n.children);default:return n}return lb(n)}return null}function lb(e){const t=Ue("only-child");return o.createVNode("span",{class:t.e("content")},[e])}const cb=We({virtualRef:{type:Ae(Object)},virtualTriggering:Boolean,onMouseenter:{type:Ae(Function)},onMouseleave:{type:Ae(Function)},onClick:{type:Ae(Function)},onKeydown:{type:Ae(Function)},onFocus:{type:Ae(Function)},onBlur:{type:Ae(Function)},onContextmenu:{type:Ae(Function)},id:String,open:Boolean}),gF=o.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),yF=o.defineComponent({...gF,props:cb,setup(e,{expose:t}){const n=e,{role:r,triggerRef:a}=o.inject(Ph,void 0);O$(a);const i=o.computed(()=>l.value?n.id:void 0),s=o.computed(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),l=o.computed(()=>{if(r&&r.value!=="tooltip")return r.value}),d=o.computed(()=>l.value?`${n.open}`:void 0);let c;const u=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return o.onMounted(()=>{o.watch(()=>n.virtualRef,f=>{f&&(a.value=to(f))},{immediate:!0}),o.watch(a,(f,h)=>{c==null||c(),c=void 0,Ka(f)&&(u.forEach(m=>{var p;const g=n[m];g&&(f.addEventListener(m.slice(2).toLowerCase(),g),(p=h==null?void 0:h.removeEventListener)==null||p.call(h,m.slice(2).toLowerCase(),g))}),c=o.watch([i,s,l,d],m=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((p,g)=>{Cl(m[g])?f.removeAttribute(p):f.setAttribute(p,m[g])})},{immediate:!0})),Ka(h)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(m=>h.removeAttribute(m))},{immediate:!0})}),o.onBeforeUnmount(()=>{if(c==null||c(),c=void 0,a.value&&Ka(a.value)){const f=a.value;u.forEach(h=>{const m=n[h];m&&f.removeEventListener(h.slice(2).toLowerCase(),m)}),a.value=void 0}}),t({triggerRef:a}),(f,h)=>f.virtualTriggering?o.createCommentVNode("v-if",!0):(o.openBlock(),o.createBlock(o.unref(mF),o.mergeProps({key:0},f.$attrs,{"aria-controls":o.unref(i),"aria-describedby":o.unref(s),"aria-expanded":o.unref(d),"aria-haspopup":o.unref(l)}),{default:o.withCtx(()=>[o.renderSlot(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var vF=qe(yF,[["__file","trigger.vue"]]);const Fh="focus-trap.focus-after-trapped",Ah="focus-trap.focus-after-released",bF="focus-trap.focusout-prevented",db={cancelable:!0,bubbles:!1},wF={cancelable:!0,bubbles:!1},ub="focusAfterTrapped",fb="focusAfterReleased",xF=Symbol("elFocusTrap"),Ih=o.ref(),Kd=o.ref(0),Dh=o.ref(0);let Gd=0;const pb=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},hb=(e,t)=>{for(const n of e)if(!CF(n,t))return n},CF=(e,t)=>{if(process.env.NODE_ENV==="test")return!1;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},kF=e=>{const t=pb(e),n=hb(t,e),r=hb(t.reverse(),e);return[n,r]},EF=e=>e instanceof HTMLInputElement&&"select"in e,sa=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),Dh.value=window.performance.now(),e!==n&&EF(e)&&t&&e.select()}};function mb(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const SF=()=>{let e=[];return{push:r=>{const a=e[0];a&&r!==a&&a.pause(),e=mb(e,r),e.unshift(r)},remove:r=>{var a,i;e=mb(e,r),(i=(a=e[0])==null?void 0:a.resume)==null||i.call(a)}}},_F=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(sa(r,t),document.activeElement!==n)return},gb=SF(),BF=()=>Kd.value>Dh.value,Xd=()=>{Ih.value="pointer",Kd.value=window.performance.now()},yb=()=>{Ih.value="keyboard",Kd.value=window.performance.now()},TF=()=>(o.onMounted(()=>{Gd===0&&(document.addEventListener("mousedown",Xd),document.addEventListener("touchstart",Xd),document.addEventListener("keydown",yb)),Gd++}),o.onBeforeUnmount(()=>{Gd--,Gd<=0&&(document.removeEventListener("mousedown",Xd),document.removeEventListener("touchstart",Xd),document.removeEventListener("keydown",yb))}),{focusReason:Ih,lastUserFocusTimestamp:Kd,lastAutomatedFocusTimestamp:Dh}),Yd=e=>new CustomEvent(bF,{...wF,detail:e}),NF=o.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[ub,fb,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=o.ref();let r,a;const{focusReason:i}=TF();S$(p=>{e.trapped&&!s.paused&&t("release-requested",p)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=p=>{if(!e.loop&&!e.trapped||s.paused)return;const{key:g,altKey:v,ctrlKey:y,metaKey:b,currentTarget:x,shiftKey:w}=p,{loop:k}=e,C=g===Qt.tab&&!v&&!y&&!b,E=document.activeElement;if(C&&E){const S=x,[_,O]=kF(S);if(_&&O){if(!w&&E===O){const N=Yd({focusReason:i.value});t("focusout-prevented",N),N.defaultPrevented||(p.preventDefault(),k&&sa(_,!0))}else if(w&&[_,S].includes(E)){const N=Yd({focusReason:i.value});t("focusout-prevented",N),N.defaultPrevented||(p.preventDefault(),k&&sa(O,!0))}}else if(E===S){const N=Yd({focusReason:i.value});t("focusout-prevented",N),N.defaultPrevented||p.preventDefault()}}};o.provide(xF,{focusTrapRef:n,onKeydown:l}),o.watch(()=>e.focusTrapEl,p=>{p&&(n.value=p)},{immediate:!0}),o.watch([n],([p],[g])=>{p&&(p.addEventListener("keydown",l),p.addEventListener("focusin",u),p.addEventListener("focusout",f)),g&&(g.removeEventListener("keydown",l),g.removeEventListener("focusin",u),g.removeEventListener("focusout",f))});const d=p=>{t(ub,p)},c=p=>t(fb,p),u=p=>{const g=o.unref(n);if(!g)return;const v=p.target,y=p.relatedTarget,b=v&&g.contains(v);e.trapped||y&&g.contains(y)||(r=y),b&&t("focusin",p),!s.paused&&e.trapped&&(b?a=v:sa(a,!0))},f=p=>{const g=o.unref(n);if(!(s.paused||!g))if(e.trapped){const v=p.relatedTarget;!Cl(v)&&!g.contains(v)&&setTimeout(()=>{if(!s.paused&&e.trapped){const y=Yd({focusReason:i.value});t("focusout-prevented",y),y.defaultPrevented||sa(a,!0)}},0)}else{const v=p.target;v&&g.contains(v)||t("focusout",p)}};async function h(){await o.nextTick();const p=o.unref(n);if(p){gb.push(s);const g=p.contains(document.activeElement)?r:document.activeElement;if(r=g,!p.contains(g)){const y=new Event(Fh,db);p.addEventListener(Fh,d),p.dispatchEvent(y),y.defaultPrevented||o.nextTick(()=>{let b=e.focusStartEl;zn(b)||(sa(b),document.activeElement!==b&&(b="first")),b==="first"&&_F(pb(p),!0),(document.activeElement===g||b==="container")&&sa(p)})}}}function m(){const p=o.unref(n);if(p){p.removeEventListener(Fh,d);const g=new CustomEvent(Ah,{...db,detail:{focusReason:i.value}});p.addEventListener(Ah,c),p.dispatchEvent(g),!g.defaultPrevented&&(i.value=="keyboard"||!BF()||p.contains(document.activeElement))&&sa(r??document.body),p.removeEventListener(Ah,c),gb.remove(s)}}return o.onMounted(()=>{e.trapped&&h(),o.watch(()=>e.trapped,p=>{p?h():m()})}),o.onBeforeUnmount(()=>{e.trapped&&m(),n.value&&(n.value.removeEventListener("keydown",l),n.value.removeEventListener("focusin",u),n.value.removeEventListener("focusout",f),n.value=void 0)}),{onKeydown:l}}});function OF(e,t,n,r,a,i){return o.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var vb=qe(NF,[["render",OF],["__file","focus-trap.vue"]]);const PF=["fixed","absolute"],$F=We({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Ae(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Nl,default:"bottom"},popperOptions:{type:Ae(Object),default:()=>({})},strategy:{type:String,values:PF,default:"absolute"}}),bb=We({...$F,id:String,style:{type:Ae([String,Array,Object])},className:{type:Ae([String,Array,Object])},effect:{type:Ae(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:Ae([String,Array,Object])},popperStyle:{type:Ae([String,Array,Object])},referenceEl:{type:Ae(Object)},triggerTargetEl:{type:Ae(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...oa(["ariaLabel"])}),FF={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},AF=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:a}=e,i={placement:n,strategy:r,...a,modifiers:[...DF(e),...t]};return VF(i,a==null?void 0:a.modifiers),i},IF=e=>{if(kt)return to(e)};function DF(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,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 VF(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const RF=0,LF=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:a}=o.inject(Ph,void 0),i=o.ref(),s=o.ref(),l=o.computed(()=>({name:"eventListeners",enabled:!!e.visible})),d=o.computed(()=>{var y;const b=o.unref(i),x=(y=o.unref(s))!=null?y:RF;return{name:"arrow",enabled:!Z1(b),options:{element:b,padding:x}}}),c=o.computed(()=>({onFirstUpdate:()=>{p()},...AF(e,[o.unref(d),o.unref(l)])})),u=o.computed(()=>IF(e.referenceEl)||o.unref(r)),{attributes:f,state:h,styles:m,update:p,forceUpdate:g,instanceRef:v}=x$(u,n,c);return o.watch(v,y=>t.value=y),o.onMounted(()=>{o.watch(()=>{var y;return(y=o.unref(u))==null?void 0:y.getBoundingClientRect()},()=>{p()})}),{attributes:f,arrowRef:i,contentRef:n,instanceRef:v,state:h,styles:m,role:a,forceUpdate:g,update:p}},MF=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:a}=Sh(),i=Ue("popper"),s=o.computed(()=>o.unref(t).popper),l=o.ref(pt(e.zIndex)?e.zIndex:a()),d=o.computed(()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass]),c=o.computed(()=>[{zIndex:o.unref(l)},o.unref(n).popper,e.popperStyle||{}]),u=o.computed(()=>r.value==="dialog"?"false":void 0),f=o.computed(()=>o.unref(n).arrow||{});return{ariaModal:u,arrowStyle:f,contentAttrs:s,contentClass:d,contentStyle:c,contentZIndex:l,updateZIndex:()=>{l.value=pt(e.zIndex)?e.zIndex:a()}}},zF=(e,t)=>{const n=o.ref(!1),r=o.ref();return{focusStartRef:r,trapped:n,onFocusAfterReleased:c=>{var u;((u=c.detail)==null?void 0:u.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:c=>{e.visible&&!n.value&&(c.target&&(r.value=c.target),n.value=!0)},onFocusoutPrevented:c=>{e.trapping||(c.detail.focusReason==="pointer"&&c.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},jF=o.defineComponent({name:"ElPopperContent"}),HF=o.defineComponent({...jF,props:bb,emits:FF,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:a,trapped:i,onFocusAfterReleased:s,onFocusAfterTrapped:l,onFocusInTrap:d,onFocusoutPrevented:c,onReleaseRequested:u}=zF(r,n),{attributes:f,arrowRef:h,contentRef:m,styles:p,instanceRef:g,role:v,update:y}=LF(r),{ariaModal:b,arrowStyle:x,contentAttrs:w,contentClass:k,contentStyle:C,updateZIndex:E}=MF(r,{styles:p,attributes:f,role:v}),S=o.inject(qd,void 0),_=o.ref();o.provide(ob,{arrowStyle:x,arrowRef:h,arrowOffset:_}),S&&o.provide(qd,{...S,addInputId:_o,removeInputId:_o});let O;const T=(F=!0)=>{y(),F&&E()},N=()=>{T(!1),r.visible&&r.focusOnShow?i.value=!0:r.visible===!1&&(i.value=!1)};return o.onMounted(()=>{o.watch(()=>r.triggerTargetEl,(F,$)=>{O==null||O(),O=void 0;const D=o.unref(F||m.value),P=o.unref($||m.value);Ka(D)&&(O=o.watch([v,()=>r.ariaLabel,b,()=>r.id],V=>{["role","aria-label","aria-modal","id"].forEach((I,z)=>{Cl(V[z])?D.removeAttribute(I):D.setAttribute(I,V[z])})},{immediate:!0})),P!==D&&Ka(P)&&["role","aria-label","aria-modal","id"].forEach(V=>{P.removeAttribute(V)})},{immediate:!0}),o.watch(()=>r.visible,N,{immediate:!0})}),o.onBeforeUnmount(()=>{O==null||O(),O=void 0}),t({popperContentRef:m,popperInstanceRef:g,updatePopper:T,contentStyle:C}),(F,$)=>(o.openBlock(),o.createElementBlock("div",o.mergeProps({ref_key:"contentRef",ref:m},o.unref(w),{style:o.unref(C),class:o.unref(k),tabindex:"-1",onMouseenter:D=>F.$emit("mouseenter",D),onMouseleave:D=>F.$emit("mouseleave",D)}),[o.createVNode(o.unref(vb),{trapped:o.unref(i),"trap-on-focus-in":!0,"focus-trap-el":o.unref(m),"focus-start-el":o.unref(a),onFocusAfterTrapped:o.unref(l),onFocusAfterReleased:o.unref(s),onFocusin:o.unref(d),onFocusoutPrevented:o.unref(c),onReleaseRequested:o.unref(u)},{default:o.withCtx(()=>[o.renderSlot(F.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var UF=qe(HF,[["__file","content.vue"]]);const qF=zt(uF),Vh=Symbol("elTooltip"),Un=We({...T$,...bb,appendTo:{type:Ae([String,Object])},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:Ae(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...oa(["ariaLabel"])}),Dl=We({...cb,disabled:Boolean,trigger:{type:Ae([String,Array]),default:"hover"},triggerKeys:{type:Ae(Array),default:()=>[Qt.enter,Qt.space]}}),{useModelToggleProps:WF,useModelToggleEmits:KF,useModelToggle:GF}=vP("visible"),XF=We({...ab,...WF,...Un,...Dl,...ib,showArrow:{type:Boolean,default:!0}}),YF=[...KF,"before-show","before-hide","show","hide","open","close"],ZF=(e,t)=>Dn(e)?e.includes(t):e===t,as=(e,t,n)=>r=>{ZF(o.unref(e),t)&&n(r)},JF=o.defineComponent({name:"ElTooltipTrigger"}),QF=o.defineComponent({...JF,props:Dl,setup(e,{expose:t}){const n=e,r=Ue("tooltip"),{controlled:a,id:i,open:s,onOpen:l,onClose:d,onToggle:c}=o.inject(Vh,void 0),u=o.ref(null),f=()=>{if(o.unref(a)||n.disabled)return!0},h=o.toRef(n,"trigger"),m=So(f,as(h,"hover",l)),p=So(f,as(h,"hover",d)),g=So(f,as(h,"click",w=>{w.button===0&&c(w)})),v=So(f,as(h,"focus",l)),y=So(f,as(h,"focus",d)),b=So(f,as(h,"contextmenu",w=>{w.preventDefault(),c(w)})),x=So(f,w=>{const{code:k}=w;n.triggerKeys.includes(k)&&(w.preventDefault(),c(w))});return t({triggerRef:u}),(w,k)=>(o.openBlock(),o.createBlock(o.unref(vF),{id:o.unref(i),"virtual-ref":w.virtualRef,open:o.unref(s),"virtual-triggering":w.virtualTriggering,class:o.normalizeClass(o.unref(r).e("trigger")),onBlur:o.unref(y),onClick:o.unref(g),onContextmenu:o.unref(b),onFocus:o.unref(v),onMouseenter:o.unref(m),onMouseleave:o.unref(p),onKeydown:o.unref(x)},{default:o.withCtx(()=>[o.renderSlot(w.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var eA=qe(QF,[["__file","trigger.vue"]]);const tA=We({to:{type:Ae([String,Object]),required:!0},disabled:Boolean});var nA=qe(o.defineComponent({__name:"teleport",props:tA,setup(e){return(t,n)=>t.disabled?o.renderSlot(t.$slots,"default",{key:0}):(o.openBlock(),o.createBlock(o.Teleport,{key:1,to:t.to},[o.renderSlot(t.$slots,"default")],8,["to"]))}}),[["__file","teleport.vue"]]);const wb=zt(nA),rA=o.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),oA=o.defineComponent({...rA,props:Un,setup(e,{expose:t}){const n=e,{selector:r}=jv(),a=Ue("tooltip"),i=o.ref(null);let s;const{controlled:l,id:d,open:c,trigger:u,onClose:f,onOpen:h,onShow:m,onHide:p,onBeforeShow:g,onBeforeHide:v}=o.inject(Vh,void 0),y=o.computed(()=>n.transition||`${a.namespace.value}-fade-in-linear`),b=o.computed(()=>process.env.NODE_ENV==="test"?!0:n.persistent);o.onBeforeUnmount(()=>{s==null||s()});const x=o.computed(()=>o.unref(b)?!0:o.unref(c)),w=o.computed(()=>n.disabled?!1:o.unref(c)),k=o.computed(()=>n.appendTo||r.value),C=o.computed(()=>{var P;return(P=n.style)!=null?P:{}}),E=o.ref(!0),S=()=>{p(),E.value=!0},_=()=>{if(o.unref(l))return!0},O=So(_,()=>{n.enterable&&o.unref(u)==="hover"&&h()}),T=So(_,()=>{o.unref(u)==="hover"&&f()}),N=()=>{var P,V;(V=(P=i.value)==null?void 0:P.updatePopper)==null||V.call(P),g==null||g()},F=()=>{v==null||v()},$=()=>{m(),s=eB(o.computed(()=>{var P;return(P=i.value)==null?void 0:P.popperContentRef}),()=>{if(o.unref(l))return;o.unref(u)!=="hover"&&f()})},D=()=>{n.virtualTriggering||f()};return o.watch(()=>o.unref(c),P=>{P?E.value=!1:s==null||s()},{flush:"post"}),o.watch(()=>n.content,()=>{var P,V;(V=(P=i.value)==null?void 0:P.updatePopper)==null||V.call(P)}),t({contentRef:i}),(P,V)=>(o.openBlock(),o.createBlock(o.unref(wb),{disabled:!P.teleported,to:o.unref(k)},{default:o.withCtx(()=>[o.createVNode(o.Transition,{name:o.unref(y),onAfterLeave:S,onBeforeEnter:N,onAfterEnter:$,onBeforeLeave:F},{default:o.withCtx(()=>[o.unref(x)?o.withDirectives((o.openBlock(),o.createBlock(o.unref(UF),o.mergeProps({key:0,id:o.unref(d),ref_key:"contentRef",ref:i},P.$attrs,{"aria-label":P.ariaLabel,"aria-hidden":E.value,"boundaries-padding":P.boundariesPadding,"fallback-placements":P.fallbackPlacements,"gpu-acceleration":P.gpuAcceleration,offset:P.offset,placement:P.placement,"popper-options":P.popperOptions,strategy:P.strategy,effect:P.effect,enterable:P.enterable,pure:P.pure,"popper-class":P.popperClass,"popper-style":[P.popperStyle,o.unref(C)],"reference-el":P.referenceEl,"trigger-target-el":P.triggerTargetEl,visible:o.unref(w),"z-index":P.zIndex,onMouseenter:o.unref(O),onMouseleave:o.unref(T),onBlur:D,onClose:o.unref(f)}),{default:o.withCtx(()=>[o.renderSlot(P.$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"])),[[o.vShow,o.unref(w)]]):o.createCommentVNode("v-if",!0)]),_:3},8,["name"])]),_:3},8,["disabled","to"]))}});var aA=qe(oA,[["__file","content.vue"]]);const iA=o.defineComponent({name:"ElTooltip"}),sA=o.defineComponent({...iA,props:XF,emits:YF,setup(e,{expose:t,emit:n}){const r=e;B$();const a=ra(),i=o.ref(),s=o.ref(),l=()=>{var y;const b=o.unref(i);b&&((y=b.popperInstanceRef)==null||y.update())},d=o.ref(!1),c=o.ref(),{show:u,hide:f,hasUpdateHandler:h}=GF({indicator:d,toggleReason:c}),{onOpen:m,onClose:p}=N$({showAfter:o.toRef(r,"showAfter"),hideAfter:o.toRef(r,"hideAfter"),autoClose:o.toRef(r,"autoClose"),open:u,close:f}),g=o.computed(()=>ao(r.visible)&&!h.value);o.provide(Vh,{controlled:g,id:a,open:o.readonly(d),trigger:o.toRef(r,"trigger"),onOpen:y=>{m(y)},onClose:y=>{p(y)},onToggle:y=>{o.unref(d)?p(y):m(y)},onShow:()=>{n("show",c.value)},onHide:()=>{n("hide",c.value)},onBeforeShow:()=>{n("before-show",c.value)},onBeforeHide:()=>{n("before-hide",c.value)},updatePopper:l}),o.watch(()=>r.disabled,y=>{y&&d.value&&(d.value=!1)});const v=y=>{var b,x;const w=(x=(b=s.value)==null?void 0:b.contentRef)==null?void 0:x.popperContentRef,k=(y==null?void 0:y.relatedTarget)||document.activeElement;return w&&w.contains(k)};return o.onDeactivated(()=>d.value&&f()),t({popperRef:i,contentRef:s,isFocusInsideContent:v,updatePopper:l,onOpen:m,onClose:p,hide:f}),(y,b)=>(o.openBlock(),o.createBlock(o.unref(qF),{ref_key:"popperRef",ref:i,role:y.role},{default:o.withCtx(()=>[o.createVNode(eA,{disabled:y.disabled,trigger:y.trigger,"trigger-keys":y.triggerKeys,"virtual-ref":y.virtualRef,"virtual-triggering":y.virtualTriggering},{default:o.withCtx(()=>[y.$slots.default?o.renderSlot(y.$slots,"default",{key:0}):o.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),o.createVNode(aA,{ref_key:"contentRef",ref:s,"aria-label":y.ariaLabel,"boundaries-padding":y.boundariesPadding,content:y.content,disabled:y.disabled,effect:y.effect,enterable:y.enterable,"fallback-placements":y.fallbackPlacements,"hide-after":y.hideAfter,"gpu-acceleration":y.gpuAcceleration,offset:y.offset,persistent:y.persistent,"popper-class":y.popperClass,"popper-style":y.popperStyle,placement:y.placement,"popper-options":y.popperOptions,pure:y.pure,"raw-content":y.rawContent,"reference-el":y.referenceEl,"trigger-target-el":y.triggerTargetEl,"show-after":y.showAfter,strategy:y.strategy,teleported:y.teleported,transition:y.transition,"virtual-triggering":y.virtualTriggering,"z-index":y.zIndex,"append-to":y.appendTo},{default:o.withCtx(()=>[o.renderSlot(y.$slots,"content",{},()=>[y.rawContent?(o.openBlock(),o.createElementBlock("span",{key:0,innerHTML:y.content},null,8,["innerHTML"])):(o.openBlock(),o.createElementBlock("span",{key:1},o.toDisplayString(y.content),1))]),y.showArrow?(o.openBlock(),o.createBlock(o.unref(hF),{key:0,"arrow-offset":y.arrowOffset},null,8,["arrow-offset"])):o.createCommentVNode("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 lA=qe(sA,[["__file","tooltip.vue"]]);const Zd=zt(lA),xb=Symbol("buttonGroupContextKey"),cA=(e,t)=>{Xa({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},o.computed(()=>e.type==="text"));const n=o.inject(xb,void 0),r=Ud("button"),{form:a}=ia(),i=aa(o.computed(()=>n==null?void 0:n.size)),s=Al(),l=o.ref(),d=o.useSlots(),c=o.computed(()=>e.type||(n==null?void 0:n.type)||""),u=o.computed(()=>{var p,g,v;return(v=(g=e.autoInsertSpace)!=null?g:(p=r.value)==null?void 0:p.autoInsertSpace)!=null?v:!1}),f=o.computed(()=>e.tag==="button"?{ariaDisabled:s.value||e.loading,disabled:s.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),h=o.computed(()=>{var p;const g=(p=d.default)==null?void 0:p.call(d);if(u.value&&(g==null?void 0:g.length)===1){const v=g[0];if((v==null?void 0:v.type)===o.Text){const y=v.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(y.trim())}}return!1});return{_disabled:s,_size:i,_type:c,_ref:l,_props:f,shouldAddSpace:h,handleClick:p=>{if(s.value||e.loading){p.stopPropagation();return}e.nativeType==="reset"&&(a==null||a.resetFields()),t("click",p)}}},Rh=We({size:$o,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:gr},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:gr,default:()=>Id},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:Ae([String,Object]),default:"button"}}),dA={click:e=>e instanceof MouseEvent};function dn(e,t){uA(e)&&(e="100%");var n=fA(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 Jd(e){return Math.min(1,Math.max(0,e))}function uA(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function fA(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Cb(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Qd(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ja(e){return e.length===1?"0"+e:String(e)}function pA(e,t,n){return{r:dn(e,255)*255,g:dn(t,255)*255,b:dn(n,255)*255}}function kb(e,t,n){e=dn(e,255),t=dn(t,255),n=dn(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),i=0,s=0,l=(r+a)/2;if(r===a)s=0,i=0;else{var d=r-a;switch(s=l>.5?d/(2-r-a):d/(r+a),r){case e:i=(t-n)/d+(t1&&(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 hA(e,t,n){var r,a,i;if(e=dn(e,360),t=dn(t,100),n=dn(n,100),t===0)a=n,i=n,r=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=Lh(l,s,e+1/3),a=Lh(l,s,e),i=Lh(l,s,e-1/3)}return{r:r*255,g:a*255,b:i*255}}function Eb(e,t,n){e=dn(e,255),t=dn(t,255),n=dn(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),i=0,s=r,l=r-a,d=r===0?0:l/r;if(r===a)i=0;else{switch(r){case e:i=(t-n)/l+(t>16,g:(e&65280)>>8,b:e&255}}var Mh={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 bA(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,i=null,s=!1,l=!1;return typeof e=="string"&&(e=CA(e)),typeof e=="object"&&(Fo(e.r)&&Fo(e.g)&&Fo(e.b)?(t=pA(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Fo(e.h)&&Fo(e.s)&&Fo(e.v)?(r=Qd(e.s),a=Qd(e.v),t=mA(e.h,r,a),s=!0,l="hsv"):Fo(e.h)&&Fo(e.s)&&Fo(e.l)&&(r=Qd(e.s),i=Qd(e.l),t=hA(e.h,r,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Cb(n),{ok:s,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 wA="[-\\+]?\\d+%?",xA="[-\\+]?\\d*\\.\\d+%?",la="(?:".concat(xA,")|(?:").concat(wA,")"),zh="[\\s|\\(]+(".concat(la,")[,|\\s]+(").concat(la,")[,|\\s]+(").concat(la,")\\s*\\)?"),jh="[\\s|\\(]+(".concat(la,")[,|\\s]+(").concat(la,")[,|\\s]+(").concat(la,")[,|\\s]+(").concat(la,")\\s*\\)?"),Mr={CSS_UNIT:new RegExp(la),rgb:new RegExp("rgb"+zh),rgba:new RegExp("rgba"+jh),hsl:new RegExp("hsl"+zh),hsla:new RegExp("hsla"+jh),hsv:new RegExp("hsv"+zh),hsva:new RegExp("hsva"+jh),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 CA(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Mh[e])e=Mh[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Mr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Mr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Mr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Mr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Mr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Mr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Mr.hex8.exec(e),n?{r:or(n[1]),g:or(n[2]),b:or(n[3]),a:_b(n[4]),format:t?"name":"hex8"}:(n=Mr.hex6.exec(e),n?{r:or(n[1]),g:or(n[2]),b:or(n[3]),format:t?"name":"hex"}:(n=Mr.hex4.exec(e),n?{r:or(n[1]+n[1]),g:or(n[2]+n[2]),b:or(n[3]+n[3]),a:_b(n[4]+n[4]),format:t?"name":"hex8"}:(n=Mr.hex3.exec(e),n?{r:or(n[1]+n[1]),g:or(n[2]+n[2]),b:or(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Fo(e){return!!Mr.CSS_UNIT.exec(String(e))}var kA=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=vA(t)),this.originalInput=t;var a=bA(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:a.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=a.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,a,i=t.r/255,s=t.g/255,l=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),s<=.03928?r=s/12.92:r=Math.pow((s+.055)/1.055,2.4),l<=.03928?a=l/12.92:a=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Cb(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=Eb(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=Eb(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=kb(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=kb(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Sb(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),gA(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(dn(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(dn(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="#"+Sb(this.r,this.g,this.b,!1),n=0,r=Object.entries(Mh);n=0,i=!n&&a&&(t.startsWith("hex")||t==="name");return i?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=Jd(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=Jd(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=Jd(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=Jd(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(),a=new e(t).toRgb(),i=n/100,s={r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b,a:(a.a-r.a)*i+r.a};return new e(s)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),a=360/n,i=[this];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,i.push(new e(r));return i},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,a=n.s,i=n.v,s=[],l=1/t;t--;)s.push(new e({h:r,s:a,v:i})),i=(i+l)%1;return s},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(),a=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a})},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,a=[this],i=360/t,s=1;s{let r={},a=e.color;if(a){const i=a.match(/var\((.*?)\)/);i&&(a=window.getComputedStyle(window.document.documentElement).getPropertyValue(i[1]));const s=new kA(a),l=e.dark?s.tint(20).toString():ca(s,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?ca(s,90):s.tint(90).toString(),"text-color":a,"border-color":e.dark?ca(s,50):s.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":a,"hover-border-color":a,"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?ca(s,90):s.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?ca(s,50):s.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?ca(s,80):s.tint(80).toString());else{const d=e.dark?ca(s,30):s.tint(30).toString(),c=s.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":a,"text-color":c,"border-color":a,"hover-bg-color":d,"hover-text-color":c,"hover-border-color":d,"active-bg-color":l,"active-border-color":l}),t.value){const u=e.dark?ca(s,50):s.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=u,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")]=u}}}return r})}const SA=o.defineComponent({name:"ElButton"}),_A=o.defineComponent({...SA,props:Rh,emits:dA,setup(e,{expose:t,emit:n}){const r=e,a=EA(r),i=Ue("button"),{_ref:s,_size:l,_type:d,_disabled:c,_props:u,shouldAddSpace:f,handleClick:h}=cA(r,n),m=o.computed(()=>[i.b(),i.m(d.value),i.m(l.value),i.is("disabled",c.value),i.is("loading",r.loading),i.is("plain",r.plain),i.is("round",r.round),i.is("circle",r.circle),i.is("text",r.text),i.is("link",r.link),i.is("has-bg",r.bg)]);return t({ref:s,size:l,type:d,disabled:c,shouldAddSpace:f}),(p,g)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(p.tag),o.mergeProps({ref_key:"_ref",ref:s},o.unref(u),{class:o.unref(m),style:o.unref(a),onClick:o.unref(h)}),{default:o.withCtx(()=>[p.loading?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[p.$slots.loading?o.renderSlot(p.$slots,"loading",{key:0}):(o.openBlock(),o.createBlock(o.unref(St),{key:1,class:o.normalizeClass(o.unref(i).is("loading"))},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(p.loadingIcon)))]),_:1},8,["class"]))],64)):p.icon||p.$slots.icon?(o.openBlock(),o.createBlock(o.unref(St),{key:1},{default:o.withCtx(()=>[p.icon?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(p.icon),{key:0})):o.renderSlot(p.$slots,"icon",{key:1})]),_:3})):o.createCommentVNode("v-if",!0),p.$slots.default?(o.openBlock(),o.createElementBlock("span",{key:2,class:o.normalizeClass({[o.unref(i).em("text","expand")]:o.unref(f)})},[o.renderSlot(p.$slots,"default")],2)):o.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var BA=qe(_A,[["__file","button.vue"]]);const TA={size:Rh.size,type:Rh.type},NA=o.defineComponent({name:"ElButtonGroup"}),OA=o.defineComponent({...NA,props:TA,setup(e){const t=e;o.provide(xb,o.reactive({size:o.toRef(t,"size"),type:o.toRef(t,"type")}));const n=Ue("button");return(r,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(o.unref(n).b("group"))},[o.renderSlot(r.$slots,"default")],2))}});var Bb=qe(OA,[["__file","button-group.vue"]]);const ar=zt(BA,{ButtonGroup:Bb});Vr(Bb);var PA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $A(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const da=new Map;if(kt){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of da.values())for(const{documentHandler:r}of n)r(t,e);e=void 0}})}function Tb(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:Ka(t.arg)&&n.push(t.arg),function(r,a){const i=t.instance.popperRef,s=r.target,l=a==null?void 0:a.target,d=!t||!t.instance,c=!s||!l,u=e.contains(s)||e.contains(l),f=e===s,h=n.length&&n.some(p=>p==null?void 0:p.contains(s))||n.length&&n.includes(l),m=i&&(i.contains(s)||i.contains(l));d||c||u||f||h||m||t.value(r,a)}}const Nb={beforeMount(e,t){da.has(e)||da.set(e,[]),da.get(e).push({documentHandler:Tb(e,t),bindingFn:t.value})},updated(e,t){da.has(e)||da.set(e,[]);const n=da.get(e),r=n.findIndex(i=>i.bindingFn===t.oldValue),a={documentHandler:Tb(e,t),bindingFn:t.value};r>=0?n.splice(r,1,a):n.push(a)},unmounted(e){da.delete(e)}},FA=We({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:Ae([String,Object,Array]),default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),AA=o.defineComponent({name:"ElCard"}),IA=o.defineComponent({...AA,props:FA,setup(e){const t=Ue("card");return(n,r)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass([o.unref(t).b(),o.unref(t).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(o.unref(t).e("header"))},[o.renderSlot(n.$slots,"header",{},()=>[o.createTextVNode(o.toDisplayString(n.header),1)])],2)):o.createCommentVNode("v-if",!0),o.createElementVNode("div",{class:o.normalizeClass([o.unref(t).e("body"),n.bodyClass]),style:o.normalizeStyle(n.bodyStyle)},[o.renderSlot(n.$slots,"default")],6),n.$slots.footer||n.footer?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(o.unref(t).e("footer"))},[o.renderSlot(n.$slots,"footer",{},()=>[o.createTextVNode(o.toDisplayString(n.footer),1)])],2)):o.createCommentVNode("v-if",!0)],2))}});var DA=qe(IA,[["__file","card.vue"]]);const Ob=zt(DA),Pb={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:$o,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...oa(["ariaControls"])},$b={[At]:e=>zn(e)||pt(e)||ao(e),change:e=>zn(e)||pt(e)||ao(e)},is=Symbol("checkboxGroupContextKey"),VA=({model:e,isChecked:t})=>{const n=o.inject(is,void 0),r=o.computed(()=>{var i,s;const l=(i=n==null?void 0:n.max)==null?void 0:i.value,d=(s=n==null?void 0:n.min)==null?void 0:s.value;return!Oo(l)&&e.value.length>=l&&!t.value||!Oo(d)&&e.value.length<=d&&t.value});return{isDisabled:Al(o.computed(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},RA=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:a,isLabeledByFormItem:i})=>{const s=o.inject(is,void 0),{formItem:l}=ia(),{emit:d}=o.getCurrentInstance();function c(p){var g,v,y,b;return[!0,e.trueValue,e.trueLabel].includes(p)?(v=(g=e.trueValue)!=null?g:e.trueLabel)!=null?v:!0:(b=(y=e.falseValue)!=null?y:e.falseLabel)!=null?b:!1}function u(p,g){d("change",c(p),g)}function f(p){if(n.value)return;const g=p.target;d("change",c(g.checked),p)}async function h(p){n.value||!r.value&&!a.value&&i.value&&(p.composedPath().some(y=>y.tagName==="LABEL")||(t.value=c([!1,e.falseValue,e.falseLabel].includes(t.value)),await o.nextTick(),u(t.value,p)))}const m=o.computed(()=>(s==null?void 0:s.validateEvent)||e.validateEvent);return o.watch(()=>e.modelValue,()=>{m.value&&(l==null||l.validate("change").catch(p=>Mt(p)))}),{handleChange:f,onClickRoot:h}},LA=e=>{const t=o.ref(!1),{emit:n}=o.getCurrentInstance(),r=o.inject(is,void 0),a=o.computed(()=>Oo(r)===!1),i=o.ref(!1),s=o.computed({get(){var l,d;return a.value?(l=r==null?void 0:r.modelValue)==null?void 0:l.value:(d=e.modelValue)!=null?d:t.value},set(l){var d,c;a.value&&Dn(l)?(i.value=((d=r==null?void 0:r.max)==null?void 0:d.value)!==void 0&&l.length>(r==null?void 0:r.max.value)&&l.length>s.value.length,i.value===!1&&((c=r==null?void 0:r.changeEvent)==null||c.call(r,l))):(n(At,l),t.value=l)}});return{model:s,isGroup:a,isLimitExceeded:i}},MA=(e,t,{model:n})=>{const r=o.inject(is,void 0),a=o.ref(!1),i=o.computed(()=>kl(e.value)?e.label:e.value),s=o.computed(()=>{const u=n.value;return ao(u)?u:Dn(u)?sn(i.value)?u.map(o.toRaw).some(f=>oo(f,i.value)):u.map(o.toRaw).includes(i.value):u!=null?u===e.trueValue||u===e.trueLabel:!!u}),l=aa(o.computed(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value}),{prop:!0}),d=aa(o.computed(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value})),c=o.computed(()=>!!t.default||!kl(i.value));return{checkboxButtonSize:l,isChecked:s,isFocused:a,checkboxSize:d,hasOwnLabel:c,actualValue:i}},Fb=(e,t)=>{const{formItem:n}=ia(),{model:r,isGroup:a,isLimitExceeded:i}=LA(e),{isFocused:s,isChecked:l,checkboxButtonSize:d,checkboxSize:c,hasOwnLabel:u,actualValue:f}=MA(e,t,{model:r}),{isDisabled:h}=VA({model:r,isChecked:l}),{inputId:m,isLabeledByFormItem:p}=Il(e,{formItemContext:n,disableIdGeneration:u,disableIdManagement:a}),{handleChange:g,onClickRoot:v}=RA(e,{model:r,isLimitExceeded:i,hasOwnLabel:u,isDisabled:h,isLabeledByFormItem:p});return(()=>{function b(){var x,w;Dn(r.value)&&!r.value.includes(f.value)?r.value.push(f.value):r.value=(w=(x=e.trueValue)!=null?x:e.trueLabel)!=null?w:!0}e.checked&&b()})(),Xa({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},o.computed(()=>a.value&&kl(e.value))),Xa({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},o.computed(()=>!!e.trueLabel)),Xa({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},o.computed(()=>!!e.falseLabel)),{inputId:m,isLabeledByFormItem:p,isChecked:l,isDisabled:h,isFocused:s,checkboxButtonSize:d,checkboxSize:c,hasOwnLabel:u,model:r,actualValue:f,handleChange:g,onClickRoot:v}},zA=o.defineComponent({name:"ElCheckbox"}),jA=o.defineComponent({...zA,props:Pb,emits:$b,setup(e){const t=e,n=o.useSlots(),{inputId:r,isLabeledByFormItem:a,isChecked:i,isDisabled:s,isFocused:l,checkboxSize:d,hasOwnLabel:c,model:u,actualValue:f,handleChange:h,onClickRoot:m}=Fb(t,n),p=Ue("checkbox"),g=o.computed(()=>[p.b(),p.m(d.value),p.is("disabled",s.value),p.is("bordered",t.border),p.is("checked",i.value)]),v=o.computed(()=>[p.e("input"),p.is("disabled",s.value),p.is("checked",i.value),p.is("indeterminate",t.indeterminate),p.is("focus",l.value)]);return(y,b)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(!o.unref(c)&&o.unref(a)?"span":"label"),{class:o.normalizeClass(o.unref(g)),"aria-controls":y.indeterminate?y.ariaControls:null,onClick:o.unref(m)},{default:o.withCtx(()=>{var x,w,k,C;return[o.createElementVNode("span",{class:o.normalizeClass(o.unref(v))},[y.trueValue||y.falseValue||y.trueLabel||y.falseLabel?o.withDirectives((o.openBlock(),o.createElementBlock("input",{key:0,id:o.unref(r),"onUpdate:modelValue":E=>o.isRef(u)?u.value=E:null,class:o.normalizeClass(o.unref(p).e("original")),type:"checkbox",indeterminate:y.indeterminate,name:y.name,tabindex:y.tabindex,disabled:o.unref(s),"true-value":(w=(x=y.trueValue)!=null?x:y.trueLabel)!=null?w:!0,"false-value":(C=(k=y.falseValue)!=null?k:y.falseLabel)!=null?C:!1,onChange:o.unref(h),onFocus:E=>l.value=!0,onBlur:E=>l.value=!1,onClick:o.withModifiers(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[o.vModelCheckbox,o.unref(u)]]):o.withDirectives((o.openBlock(),o.createElementBlock("input",{key:1,id:o.unref(r),"onUpdate:modelValue":E=>o.isRef(u)?u.value=E:null,class:o.normalizeClass(o.unref(p).e("original")),type:"checkbox",indeterminate:y.indeterminate,disabled:o.unref(s),value:o.unref(f),name:y.name,tabindex:y.tabindex,onChange:o.unref(h),onFocus:E=>l.value=!0,onBlur:E=>l.value=!1,onClick:o.withModifiers(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[o.vModelCheckbox,o.unref(u)]]),o.createElementVNode("span",{class:o.normalizeClass(o.unref(p).e("inner"))},null,2)],2),o.unref(c)?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(o.unref(p).e("label"))},[o.renderSlot(y.$slots,"default"),y.$slots.default?o.createCommentVNode("v-if",!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(y.label),1)],64))],2)):o.createCommentVNode("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var HA=qe(jA,[["__file","checkbox.vue"]]);const UA=o.defineComponent({name:"ElCheckboxButton"}),qA=o.defineComponent({...UA,props:Pb,emits:$b,setup(e){const t=e,n=o.useSlots(),{isFocused:r,isChecked:a,isDisabled:i,checkboxButtonSize:s,model:l,actualValue:d,handleChange:c}=Fb(t,n),u=o.inject(is,void 0),f=Ue("checkbox"),h=o.computed(()=>{var p,g,v,y;const b=(g=(p=u==null?void 0:u.fill)==null?void 0:p.value)!=null?g:"";return{backgroundColor:b,borderColor:b,color:(y=(v=u==null?void 0:u.textColor)==null?void 0:v.value)!=null?y:"",boxShadow:b?`-1px 0 0 0 ${b}`:void 0}}),m=o.computed(()=>[f.b("button"),f.bm("button",s.value),f.is("disabled",i.value),f.is("checked",a.value),f.is("focus",r.value)]);return(p,g)=>{var v,y,b,x;return o.openBlock(),o.createElementBlock("label",{class:o.normalizeClass(o.unref(m))},[p.trueValue||p.falseValue||p.trueLabel||p.falseLabel?o.withDirectives((o.openBlock(),o.createElementBlock("input",{key:0,"onUpdate:modelValue":w=>o.isRef(l)?l.value=w:null,class:o.normalizeClass(o.unref(f).be("button","original")),type:"checkbox",name:p.name,tabindex:p.tabindex,disabled:o.unref(i),"true-value":(y=(v=p.trueValue)!=null?v:p.trueLabel)!=null?y:!0,"false-value":(x=(b=p.falseValue)!=null?b:p.falseLabel)!=null?x:!1,onChange:o.unref(c),onFocus:w=>r.value=!0,onBlur:w=>r.value=!1,onClick:o.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[o.vModelCheckbox,o.unref(l)]]):o.withDirectives((o.openBlock(),o.createElementBlock("input",{key:1,"onUpdate:modelValue":w=>o.isRef(l)?l.value=w:null,class:o.normalizeClass(o.unref(f).be("button","original")),type:"checkbox",name:p.name,tabindex:p.tabindex,disabled:o.unref(i),value:o.unref(d),onChange:o.unref(c),onFocus:w=>r.value=!0,onBlur:w=>r.value=!1,onClick:o.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[o.vModelCheckbox,o.unref(l)]]),p.$slots.default||p.label?(o.openBlock(),o.createElementBlock("span",{key:2,class:o.normalizeClass(o.unref(f).be("button","inner")),style:o.normalizeStyle(o.unref(a)?o.unref(h):void 0)},[o.renderSlot(p.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(p.label),1)])],6)):o.createCommentVNode("v-if",!0)],2)}}});var Ab=qe(qA,[["__file","checkbox-button.vue"]]);const WA=We({modelValue:{type:Ae(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:$o,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...oa(["ariaLabel"])}),KA={[At]:e=>Dn(e),change:e=>Dn(e)},GA=o.defineComponent({name:"ElCheckboxGroup"}),XA=o.defineComponent({...GA,props:WA,emits:KA,setup(e,{emit:t}){const n=e,r=Ue("checkbox"),{formItem:a}=ia(),{inputId:i,isLabeledByFormItem:s}=Il(n,{formItemContext:a}),l=async c=>{t(At,c),await o.nextTick(),t("change",c)},d=o.computed({get(){return n.modelValue},set(c){l(c)}});return o.provide(is,{...J1(o.toRefs(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:d,changeEvent:l}),o.watch(()=>n.modelValue,()=>{n.validateEvent&&(a==null||a.validate("change").catch(c=>Mt(c)))}),(c,u)=>{var f;return o.openBlock(),o.createBlock(o.resolveDynamicComponent(c.tag),{id:o.unref(i),class:o.normalizeClass(o.unref(r).b("group")),role:"group","aria-label":o.unref(s)?void 0:c.ariaLabel||"checkbox-group","aria-labelledby":o.unref(s)?(f=o.unref(a))==null?void 0:f.labelId:void 0},{default:o.withCtx(()=>[o.renderSlot(c.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var Ib=qe(XA,[["__file","checkbox-group.vue"]]);const YA=zt(HA,{CheckboxButton:Ab,CheckboxGroup:Ib});Vr(Ab),Vr(Ib);const Db=We({modelValue:{type:[String,Number,Boolean],default:void 0},size:$o,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),ZA=We({...Db,border:Boolean}),Vb={[At]:e=>zn(e)||pt(e)||ao(e),[Ga]:e=>zn(e)||pt(e)||ao(e)},Rb=Symbol("radioGroupKey"),Lb=(e,t)=>{const n=o.ref(),r=o.inject(Rb,void 0),a=o.computed(()=>!!r),i=o.computed(()=>kl(e.value)?e.label:e.value),s=o.computed({get(){return a.value?r.modelValue:e.modelValue},set(f){a.value?r.changeEvent(f):t&&t(At,f),n.value.checked=e.modelValue===i.value}}),l=aa(o.computed(()=>r==null?void 0:r.size)),d=Al(o.computed(()=>r==null?void 0:r.disabled)),c=o.ref(!1),u=o.computed(()=>d.value||a.value&&s.value!==i.value?-1:0);return Xa({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},o.computed(()=>a.value&&kl(e.value))),{radioRef:n,isGroup:a,radioGroup:r,focus:c,size:l,disabled:d,tabIndex:u,modelValue:s,actualValue:i}},JA=o.defineComponent({name:"ElRadio"}),QA=o.defineComponent({...JA,props:ZA,emits:Vb,setup(e,{emit:t}){const n=e,r=Ue("radio"),{radioRef:a,radioGroup:i,focus:s,size:l,disabled:d,modelValue:c,actualValue:u}=Lb(n,t);function f(){o.nextTick(()=>t("change",c.value))}return(h,m)=>{var p;return o.openBlock(),o.createElementBlock("label",{class:o.normalizeClass([o.unref(r).b(),o.unref(r).is("disabled",o.unref(d)),o.unref(r).is("focus",o.unref(s)),o.unref(r).is("bordered",h.border),o.unref(r).is("checked",o.unref(c)===o.unref(u)),o.unref(r).m(o.unref(l))])},[o.createElementVNode("span",{class:o.normalizeClass([o.unref(r).e("input"),o.unref(r).is("disabled",o.unref(d)),o.unref(r).is("checked",o.unref(c)===o.unref(u))])},[o.withDirectives(o.createElementVNode("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":g=>o.isRef(c)?c.value=g:null,class:o.normalizeClass(o.unref(r).e("original")),value:o.unref(u),name:h.name||((p=o.unref(i))==null?void 0:p.name),disabled:o.unref(d),checked:o.unref(c)===o.unref(u),type:"radio",onFocus:g=>s.value=!0,onBlur:g=>s.value=!1,onChange:f,onClick:o.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[o.vModelRadio,o.unref(c)]]),o.createElementVNode("span",{class:o.normalizeClass(o.unref(r).e("inner"))},null,2)],2),o.createElementVNode("span",{class:o.normalizeClass(o.unref(r).e("label")),onKeydown:o.withModifiers(()=>{},["stop"])},[o.renderSlot(h.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(h.label),1)])],42,["onKeydown"])],2)}}});var eI=qe(QA,[["__file","radio.vue"]]);const tI=We({...Db}),nI=o.defineComponent({name:"ElRadioButton"}),rI=o.defineComponent({...nI,props:tI,setup(e){const t=e,n=Ue("radio"),{radioRef:r,focus:a,size:i,disabled:s,modelValue:l,radioGroup:d,actualValue:c}=Lb(t),u=o.computed(()=>({backgroundColor:(d==null?void 0:d.fill)||"",borderColor:(d==null?void 0:d.fill)||"",boxShadow:d!=null&&d.fill?`-1px 0 0 0 ${d.fill}`:"",color:(d==null?void 0:d.textColor)||""}));return(f,h)=>{var m;return o.openBlock(),o.createElementBlock("label",{class:o.normalizeClass([o.unref(n).b("button"),o.unref(n).is("active",o.unref(l)===o.unref(c)),o.unref(n).is("disabled",o.unref(s)),o.unref(n).is("focus",o.unref(a)),o.unref(n).bm("button",o.unref(i))])},[o.withDirectives(o.createElementVNode("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":p=>o.isRef(l)?l.value=p:null,class:o.normalizeClass(o.unref(n).be("button","original-radio")),value:o.unref(c),type:"radio",name:f.name||((m=o.unref(d))==null?void 0:m.name),disabled:o.unref(s),onFocus:p=>a.value=!0,onBlur:p=>a.value=!1,onClick:o.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[o.vModelRadio,o.unref(l)]]),o.createElementVNode("span",{class:o.normalizeClass(o.unref(n).be("button","inner")),style:o.normalizeStyle(o.unref(l)===o.unref(c)?o.unref(u):{}),onKeydown:o.withModifiers(()=>{},["stop"])},[o.renderSlot(f.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(f.label),1)])],46,["onKeydown"])],2)}}});var Mb=qe(rI,[["__file","radio-button.vue"]]);const oI=We({id:{type:String,default:void 0},size:$o,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},...oa(["ariaLabel"])}),aI=Vb,iI=o.defineComponent({name:"ElRadioGroup"}),sI=o.defineComponent({...iI,props:oI,emits:aI,setup(e,{emit:t}){const n=e,r=Ue("radio"),a=ra(),i=o.ref(),{formItem:s}=ia(),{inputId:l,isLabeledByFormItem:d}=Il(n,{formItemContext:s}),c=f=>{t(At,f),o.nextTick(()=>t("change",f))};o.onMounted(()=>{const f=i.value.querySelectorAll("[type=radio]"),h=f[0];!Array.from(f).some(m=>m.checked)&&h&&(h.tabIndex=0)});const u=o.computed(()=>n.name||a.value);return o.provide(Rb,o.reactive({...o.toRefs(n),changeEvent:c,name:u})),o.watch(()=>n.modelValue,()=>{n.validateEvent&&(s==null||s.validate("change").catch(f=>Mt(f)))}),(f,h)=>(o.openBlock(),o.createElementBlock("div",{id:o.unref(l),ref_key:"radioGroupRef",ref:i,class:o.normalizeClass(o.unref(r).b("group")),role:"radiogroup","aria-label":o.unref(d)?void 0:f.ariaLabel||"radio-group","aria-labelledby":o.unref(d)?o.unref(s).labelId:void 0},[o.renderSlot(f.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}});var zb=qe(sI,[["__file","radio-group.vue"]]);const lI=zt(eI,{RadioButton:Mb,RadioGroup:zb});Vr(zb),Vr(Mb);var cI=o.defineComponent({name:"NodeContent",setup(){return{ns:Ue("cascader-node")}},render(){const{ns:e}=this,{node:t,panel:n}=this.$parent,{data:r,label:a}=t,{renderLabelFn:i}=n;return o.h("span",{class:e.e("label")},i?i({node:t,data:r}):a)}});const Hh=Symbol(),dI=o.defineComponent({name:"ElCascaderNode",components:{ElCheckbox:YA,ElRadio:lI,NodeContent:cI,ElIcon:St,Check:iv,Loading:Id,ArrowRight:Fd},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=o.inject(Hh),r=Ue("cascader-node"),a=o.computed(()=>n.isHoverMenu),i=o.computed(()=>n.config.multiple),s=o.computed(()=>n.config.checkStrictly),l=o.computed(()=>{var C;return(C=n.checkedNodes[0])==null?void 0:C.uid}),d=o.computed(()=>e.node.isDisabled),c=o.computed(()=>e.node.isLeaf),u=o.computed(()=>s.value&&!c.value||!d.value),f=o.computed(()=>m(n.expandingNode)),h=o.computed(()=>s.value&&n.checkedNodes.some(m)),m=C=>{var E;const{level:S,uid:_}=e.node;return((E=C==null?void 0:C.pathNodes[S-1])==null?void 0:E.uid)===_},p=()=>{f.value||n.expandNode(e.node)},g=C=>{const{node:E}=e;C!==E.checked&&n.handleCheckChange(E,C)},v=()=>{n.lazyLoad(e.node,()=>{c.value||p()})},y=C=>{a.value&&(b(),!c.value&&t("expand",C))},b=()=>{const{node:C}=e;!u.value||C.loading||(C.loaded?p():v())},x=()=>{a.value&&!c.value||(c.value&&!d.value&&!s.value&&!i.value?k(!0):b())},w=C=>{s.value?(g(C),e.node.loaded&&p()):k(C)},k=C=>{e.node.loaded?(g(C),!s.value&&p()):v()};return{panel:n,isHoverMenu:a,multiple:i,checkStrictly:s,checkedNodeId:l,isDisabled:d,isLeaf:c,expandable:u,inExpandingPath:f,inCheckedPath:h,ns:r,handleHoverExpand:y,handleExpand:b,handleClick:x,handleCheck:k,handleSelectCheck:w}}});function uI(e,t,n,r,a,i){const s=o.resolveComponent("el-checkbox"),l=o.resolveComponent("el-radio"),d=o.resolveComponent("check"),c=o.resolveComponent("el-icon"),u=o.resolveComponent("node-content"),f=o.resolveComponent("loading"),h=o.resolveComponent("arrow-right");return o.openBlock(),o.createElementBlock("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!e.isLeaf,"aria-owns":e.isLeaf?null:e.menuId,"aria-expanded":e.inExpandingPath,tabindex:e.expandable?-1:void 0,class:o.normalizeClass([e.ns.b(),e.ns.is("selectable",e.checkStrictly),e.ns.is("active",e.node.checked),e.ns.is("disabled",!e.expandable),e.inExpandingPath&&"in-active-path",e.inCheckedPath&&"in-checked-path"]),onMouseenter:e.handleHoverExpand,onFocus:e.handleHoverExpand,onClick:e.handleClick},[o.createCommentVNode(" prefix "),e.multiple?(o.openBlock(),o.createBlock(s,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:o.withModifiers(()=>{},["stop"]),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onClick","onUpdate:modelValue"])):e.checkStrictly?(o.openBlock(),o.createBlock(l,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:o.withModifiers(()=>{},["stop"])},{default:o.withCtx(()=>[o.createCommentVNode(` Add an empty element to avoid render label, do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485 `),o.createElementVNode("span")]),_:1},8,["model-value","label","disabled","onUpdate:modelValue","onClick"])):e.isLeaf&&e.node.checked?(o.openBlock(),o.createBlock(c,{key:2,class:o.normalizeClass(e.ns.e("prefix"))},{default:o.withCtx(()=>[o.createVNode(d)]),_:1},8,["class"])):o.createCommentVNode("v-if",!0),o.createCommentVNode(" content "),o.createVNode(u),o.createCommentVNode(" postfix "),e.isLeaf?o.createCommentVNode("v-if",!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:3},[e.node.loading?(o.openBlock(),o.createBlock(c,{key:0,class:o.normalizeClass([e.ns.is("loading"),e.ns.e("postfix")])},{default:o.withCtx(()=>[o.createVNode(f)]),_:1},8,["class"])):(o.openBlock(),o.createBlock(c,{key:1,class:o.normalizeClass(["arrow-right",e.ns.e("postfix")])},{default:o.withCtx(()=>[o.createVNode(h)]),_:1},8,["class"]))],64))],42,["id","aria-haspopup","aria-owns","aria-expanded","tabindex","onMouseenter","onFocus","onClick"])}var fI=qe(dI,[["render",uI],["__file","node.vue"]]);const pI=o.defineComponent({name:"ElCascaderMenu",components:{Loading:Id,ElIcon:St,ElScrollbar:Oh,ElCascaderNode:fI},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=o.getCurrentInstance(),n=Ue("cascader-menu"),{t:r}=yr(),a=ra();let i=null,s=null;const l=o.inject(Hh),d=o.ref(null),c=o.computed(()=>!e.nodes.length),u=o.computed(()=>!l.initialLoaded),f=o.computed(()=>`${a.value}-${e.index}`),h=v=>{i=v.target},m=v=>{if(!(!l.isHoverMenu||!i||!d.value))if(i.contains(v.target)){p();const y=t.vnode.el,{left:b}=y.getBoundingClientRect(),{offsetWidth:x,offsetHeight:w}=y,k=v.clientX-b,C=i.offsetTop,E=C+i.offsetHeight;d.value.innerHTML=` `}else s||(s=window.setTimeout(g,l.config.hoverThreshold))},p=()=>{s&&(clearTimeout(s),s=null)},g=()=>{d.value&&(d.value.innerHTML="",p())};return{ns:n,panel:l,hoverZone:d,isEmpty:c,isLoading:u,menuId:f,t:r,handleExpand:h,handleMouseMove:m,clearHoverZone:g}}});function hI(e,t,n,r,a,i){const s=o.resolveComponent("el-cascader-node"),l=o.resolveComponent("loading"),d=o.resolveComponent("el-icon"),c=o.resolveComponent("el-scrollbar");return o.openBlock(),o.createBlock(c,{key:e.menuId,tag:"ul",role:"menu",class:o.normalizeClass(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:o.withCtx(()=>{var u;return[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.nodes,f=>(o.openBlock(),o.createBlock(s,{key:f.uid,node:f,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(e.ns.e("empty-text"))},[o.createVNode(d,{size:"14",class:o.normalizeClass(e.ns.is("loading"))},{default:o.withCtx(()=>[o.createVNode(l)]),_:1},8,["class"]),o.createTextVNode(" "+o.toDisplayString(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(e.ns.e("empty-text"))},[o.renderSlot(e.$slots,"empty",{},()=>[o.createTextVNode(o.toDisplayString(e.t("el.cascader.noData")),1)])],2)):(u=e.panel)!=null&&u.isHoverMenu?(o.openBlock(),o.createElementBlock("svg",{key:2,ref:"hoverZone",class:o.normalizeClass(e.ns.e("hover-zone"))},null,2)):o.createCommentVNode("v-if",!0)]}),_:3},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var mI=qe(pI,[["render",hI],["__file","menu.vue"]]);let gI=0;const yI=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};class ss{constructor(t,n,r,a=!1){this.data=t,this.config=n,this.parent=r,this.root=a,this.uid=gI++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:i,label:s,children:l}=n,d=t[l],c=yI(this);this.level=a?0:r?r.level+1:1,this.value=t[i],this.label=t[s],this.pathNodes=c,this.pathValues=c.map(u=>u.value),this.pathLabels=c.map(u=>u.label),this.childrenData=d,this.children=(d||[]).map(u=>new ss(u,n,this)),this.loaded=!n.lazy||this.isLeaf||!ch(d)}get isDisabled(){const{data:t,parent:n,config:r}=this,{disabled:a,checkStrictly:i}=r;return(Jt(a)?a(t,this):!!t[a])||!i&&(n==null?void 0:n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:r,loaded:a}=this,{lazy:i,leaf:s}=n,l=Jt(s)?s(t,this):t[s];return Oo(l)?i&&!a?!1:!(Array.isArray(r)&&r.length):!!l}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:r}=this,a=new ss(t,this.config,this);return Array.isArray(n)?n.push(t):this.childrenData=[t],r.push(a),a}calcText(t,n){const r=t?this.pathLabels.join(n):this.label;return this.text=r,r}broadcast(t,...n){const r=`onParent${Q1(t)}`;this.children.forEach(a=>{a&&(a.broadcast(t,...n),a[r]&&a[r](...n))})}emit(t,...n){const{parent:r}=this,a=`onChild${Q1(t)}`;r&&(r[a]&&r[a](...n),r.emit(t,...n))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(a=>!a.isDisabled),r=n.length?n.every(a=>a.checked):!1;this.setCheckState(r)}setCheckState(t){const n=this.children.length,r=this.children.reduce((a,i)=>{const s=i.checked?1:i.indeterminate?.5:0;return a+s},0);this.checked=this.loaded&&this.children.filter(a=>!a.isDisabled).every(a=>a.loaded&&a.checked)&&t,this.indeterminate=this.loaded&&r!==n&&r>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:r}=this.config;n||!r?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}}const Uh=(e,t)=>e.reduce((n,r)=>(r.isLeaf?n.push(r):(!t&&n.push(r),n=n.concat(Uh(r.children,t))),n),[]);class jb{constructor(t,n){this.config=n;const r=(t||[]).map(a=>new ss(a,this.config));this.nodes=r,this.allNodes=Uh(r,!1),this.leafNodes=Uh(r,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const r=n?n.appendChild(t):new ss(t,this.config);n||this.nodes.push(r),this.allNodes.push(r),r.isLeaf&&this.leafNodes.push(r)}appendNodes(t,n){t.forEach(r=>this.appendNode(r,n))}getNodeByValue(t,n=!1){return!t&&t!==0?null:this.getFlattedNodes(n).find(a=>oo(a.value,t)||oo(a.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:r,level:a})=>oo(t.value,r)&&t.level===a)||null}}const Hb=We({modelValue:{type:Ae([Number,String,Array])},options:{type:Ae(Array),default:()=>[]},props:{type:Ae(Object),default:()=>({})}}),vI={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:_o,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},bI=e=>o.computed(()=>({...vI,...e.props})),Ub=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},wI=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():Fy(e)&&e.click()},xI=(e,t)=>{const n=t.slice(0),r=n.map(i=>i.uid),a=e.reduce((i,s)=>{const l=r.indexOf(s.uid);return l>-1&&(i.push(s),n.splice(l,1),r.splice(l,1)),i},[]);return a.push(...n),a},CI=o.defineComponent({name:"ElCascaderPanel",components:{ElCascaderMenu:mI},props:{...Hb,border:{type:Boolean,default:!0},renderLabel:Function},emits:[At,Ga,"close","expand-change"],setup(e,{emit:t,slots:n}){let r=!1;const a=Ue("cascader"),i=bI(e);let s=null;const l=o.ref(!0),d=o.ref([]),c=o.ref(null),u=o.ref([]),f=o.ref(null),h=o.ref([]),m=o.computed(()=>i.value.expandTrigger==="hover"),p=o.computed(()=>e.renderLabel||n.default),g=()=>{const{options:N}=e,F=i.value;r=!1,s=new jb(N,F),u.value=[s.getNodes()],F.lazy&&ch(e.options)?(l.value=!1,v(void 0,$=>{$&&(s=new jb($,F),u.value=[s.getNodes()]),l.value=!0,S(!1,!0)})):S(!1,!0)},v=(N,F)=>{const $=i.value;N=N||new ss({},$,void 0,!0),N.loading=!0;const D=P=>{const V=N,I=V.root?null:V;P&&(s==null||s.appendNodes(P,I)),V.loading=!1,V.loaded=!0,V.childrenData=V.childrenData||[],F&&F(P)};$.lazyLoad(N,D)},y=(N,F)=>{var $;const{level:D}=N,P=u.value.slice(0,D);let V;N.isLeaf?V=N.pathNodes[D-2]:(V=N,P.push(N.children)),(($=f.value)==null?void 0:$.uid)!==(V==null?void 0:V.uid)&&(f.value=N,u.value=P,!F&&t("expand-change",(N==null?void 0:N.pathValues)||[]))},b=(N,F,$=!0)=>{const{checkStrictly:D,multiple:P}=i.value,V=h.value[0];r=!0,!P&&(V==null||V.doCheck(!1)),N.doCheck(F),E(),$&&!P&&!D&&t("close"),!$&&!P&&!D&&x(N)},x=N=>{N&&(N=N.parent,x(N),N&&y(N))},w=N=>s==null?void 0:s.getFlattedNodes(N),k=N=>{var F;return(F=w(N))==null?void 0:F.filter($=>$.checked!==!1)},C=()=>{h.value.forEach(N=>N.doCheck(!1)),E(),u.value=u.value.slice(0,1),f.value=null,t("expand-change",[])},E=()=>{var N;const{checkStrictly:F,multiple:$}=i.value,D=h.value,P=k(!F),V=xI(D,P),I=V.map(z=>z.valueByOption);h.value=V,c.value=$?I:(N=I[0])!=null?N:null},S=(N=!1,F=!1)=>{const{modelValue:$}=e,{lazy:D,multiple:P,checkStrictly:V}=i.value,I=!V;if(!(!l.value||r||!F&&oo($,c.value)))if(D&&!N){const G=pv(k6(hv($))).map(q=>s==null?void 0:s.getNodeByValue(q)).filter(q=>!!q&&!q.loaded&&!q.loading);G.length?G.forEach(q=>{v(q,()=>S(!1,F))}):S(!0,F)}else{const z=P?hv($):[$],G=pv(z.map(q=>s==null?void 0:s.getNodeByValue(q,I)));_(G,F),c.value=z1($)}},_=(N,F=!0)=>{const{checkStrictly:$}=i.value,D=h.value,P=N.filter(z=>!!z&&($||z.isLeaf)),V=s==null?void 0:s.getSameNode(f.value),I=F&&V||P[0];I?I.pathNodes.forEach(z=>y(z,!0)):f.value=null,D.forEach(z=>z.doCheck(!1)),o.reactive(P).forEach(z=>z.doCheck(!0)),h.value=P,o.nextTick(O)},O=()=>{kt&&d.value.forEach(N=>{const F=N==null?void 0:N.$el;if(F){const $=F.querySelector(`.${a.namespace.value}-scrollbar__wrap`),D=F.querySelector(`.${a.b("node")}.${a.is("active")}`)||F.querySelector(`.${a.b("node")}.in-active-path`);av($,D)}})},T=N=>{const F=N.target,{code:$}=N;switch($){case Qt.up:case Qt.down:{N.preventDefault();const D=$===Qt.up?-1:1;yd(Ay(F,D,`.${a.b("node")}[tabindex="-1"]`));break}case Qt.left:{N.preventDefault();const D=d.value[Ub(F)-1],P=D==null?void 0:D.$el.querySelector(`.${a.b("node")}[aria-expanded="true"]`);yd(P);break}case Qt.right:{N.preventDefault();const D=d.value[Ub(F)+1],P=D==null?void 0:D.$el.querySelector(`.${a.b("node")}[tabindex="-1"]`);yd(P);break}case Qt.enter:wI(F);break}};return o.provide(Hh,o.reactive({config:i,expandingNode:f,checkedNodes:h,isHoverMenu:m,initialLoaded:l,renderLabelFn:p,lazyLoad:v,expandNode:y,handleCheckChange:b})),o.watch([i,()=>e.options],g,{deep:!0,immediate:!0}),o.watch(()=>e.modelValue,()=>{r=!1,S()},{deep:!0}),o.watch(()=>c.value,N=>{oo(N,e.modelValue)||(t(At,N),t(Ga,N))}),o.onBeforeUpdate(()=>d.value=[]),o.onMounted(()=>!ch(e.modelValue)&&S()),{ns:a,menuList:d,menus:u,checkedNodes:h,handleKeyDown:T,handleCheckChange:b,getFlattedNodes:w,getCheckedNodes:k,clearCheckedNodes:C,calculateCheckedValue:E,scrollToExpandingNode:O}}});function kI(e,t,n,r,a,i){const s=o.resolveComponent("el-cascader-menu");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:e.handleKeyDown},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.menus,(l,d)=>(o.openBlock(),o.createBlock(s,{key:d,ref_for:!0,ref:c=>e.menuList[d]=c,index:d,nodes:[...l]},{empty:o.withCtx(()=>[o.renderSlot(e.$slots,"empty")]),_:2},1032,["index","nodes"]))),128))],42,["onKeydown"])}var EI=qe(CI,[["render",kI],["__file","index.vue"]]);const SI=zt(EI),Vl=We({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:Vd},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),_I={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},BI=o.defineComponent({name:"ElTag"}),TI=o.defineComponent({...BI,props:Vl,emits:_I,setup(e,{emit:t}){const n=e,r=aa(),a=Ue("tag"),i=o.computed(()=>{const{type:c,hit:u,effect:f,closable:h,round:m}=n;return[a.b(),a.is("closable",h),a.m(c||"primary"),a.m(r.value),a.m(f),a.is("hit",u),a.is("round",m)]}),s=c=>{t("close",c)},l=c=>{t("click",c)},d=c=>{c.component.subTree.component.bum=null};return(c,u)=>c.disableTransitions?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(o.unref(i)),style:o.normalizeStyle({backgroundColor:c.color}),onClick:l},[o.createElementVNode("span",{class:o.normalizeClass(o.unref(a).e("content"))},[o.renderSlot(c.$slots,"default")],2),c.closable?(o.openBlock(),o.createBlock(o.unref(St),{key:0,class:o.normalizeClass(o.unref(a).e("close")),onClick:o.withModifiers(s,["stop"])},{default:o.withCtx(()=>[o.createVNode(o.unref(ph))]),_:1},8,["class","onClick"])):o.createCommentVNode("v-if",!0)],6)):(o.openBlock(),o.createBlock(o.Transition,{key:1,name:`${o.unref(a).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:d},{default:o.withCtx(()=>[o.createElementVNode("span",{class:o.normalizeClass(o.unref(i)),style:o.normalizeStyle({backgroundColor:c.color}),onClick:l},[o.createElementVNode("span",{class:o.normalizeClass(o.unref(a).e("content"))},[o.renderSlot(c.$slots,"default")],2),c.closable?(o.openBlock(),o.createBlock(o.unref(St),{key:0,class:o.normalizeClass(o.unref(a).e("close")),onClick:o.withModifiers(s,["stop"])},{default:o.withCtx(()=>[o.createVNode(o.unref(ph))]),_:1},8,["class","onClick"])):o.createCommentVNode("v-if",!0)],6)]),_:3},8,["name"]))}});var NI=qe(TI,[["__file","tag.vue"]]);const ls=zt(NI),OI=We({...Hb,size:$o,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:Ae(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:Ae(Function),default:()=>!0},placement:{type:Ae(String),values:Nl,default:"bottom-start"},fallbackPlacements:{type:Ae(Array),default:["bottom-start","bottom","top-start","top","right","left"]},popperClass:{type:String,default:""},teleported:Un.teleported,tagType:{...Vl.type,default:"info"},tagEffect:{...Vl.effect,default:"light"},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...Qv}),PI={[At]:e=>!0,[Ga]:e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,visibleChange:e=>ao(e),expandChange:e=>!!e,removeTag:e=>!!e},$I=o.defineComponent({name:"ElCascader"}),FI=o.defineComponent({...$I,props:OI,emits:PI,setup(e,{expose:t,emit:n}){const r=e,a={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:K})=>{const{modifiersData:fe,placement:ie}=K;["right","left","bottom","top"].includes(ie)||(fe.arrow.x=35)},requires:["arrow"]}]},i=o.useAttrs();let s=0,l=0;const d=Ue("cascader"),c=Ue("input"),{t:u}=yr(),{form:f,formItem:h}=ia(),{valueOnClear:m}=eb(r),{isComposing:p,handleComposition:g}=_h({afterComposition(K){var fe;const ie=(fe=K.target)==null?void 0:fe.value;Fe(ie)}}),v=o.ref(null),y=o.ref(null),b=o.ref(null),x=o.ref(null),w=o.ref(null),k=o.ref(!1),C=o.ref(!1),E=o.ref(!1),S=o.ref(!1),_=o.ref(""),O=o.ref(""),T=o.ref([]),N=o.ref([]),F=o.ref([]),$=o.computed(()=>i.style),D=o.computed(()=>r.disabled||(f==null?void 0:f.disabled)),P=o.computed(()=>r.placeholder||u("el.cascader.placeholder")),V=o.computed(()=>O.value||T.value.length>0||p.value?"":P.value),I=aa(),z=o.computed(()=>["small"].includes(I.value)?"small":"default"),G=o.computed(()=>!!r.props.multiple),q=o.computed(()=>!r.filterable||G.value),X=o.computed(()=>G.value?O.value:_.value),te=o.computed(()=>{var K;return((K=x.value)==null?void 0:K.checkedNodes)||[]}),le=o.computed(()=>!r.clearable||D.value||E.value||!C.value?!1:!!te.value.length),de=o.computed(()=>{const{showAllLevels:K,separator:fe}=r,ie=te.value;return ie.length?G.value?"":ie[0].calcText(K,fe):""}),ne=o.computed(()=>(h==null?void 0:h.validateState)||""),oe=o.computed({get(){return z1(r.modelValue)},set(K){const fe=K??m.value;n(At,fe),n(Ga,fe),r.validateEvent&&(h==null||h.validate("change").catch(ie=>Mt(ie)))}}),U=o.computed(()=>[d.b(),d.m(I.value),d.is("disabled",D.value),i.class]),W=o.computed(()=>[c.e("icon"),"icon-arrow-down",d.is("reverse",k.value)]),Z=o.computed(()=>d.is("focus",k.value||S.value)),ue=o.computed(()=>{var K,fe;return(fe=(K=v.value)==null?void 0:K.popperRef)==null?void 0:fe.contentRef}),be=K=>{var fe,ie,we;D.value||(K=K??!k.value,K!==k.value&&(k.value=K,(ie=(fe=y.value)==null?void 0:fe.input)==null||ie.setAttribute("aria-expanded",`${K}`),K?(Be(),o.nextTick((we=x.value)==null?void 0:we.scrollToExpandingNode)):r.filterable&&L(),n("visibleChange",K)))},Be=()=>{o.nextTick(()=>{var K;(K=v.value)==null||K.updatePopper()})},pe=()=>{E.value=!1},xe=K=>{const{showAllLevels:fe,separator:ie}=r;return{node:K,key:K.uid,text:K.calcText(fe,ie),hitState:!1,closable:!D.value&&!K.isDisabled,isCollapseTag:!1}},ge=K=>{var fe;const ie=K.node;ie.doCheck(!1),(fe=x.value)==null||fe.calculateCheckedValue(),n("removeTag",ie.valueByOption)},ke=()=>{if(!G.value)return;const K=te.value,fe=[],ie=[];if(K.forEach(we=>ie.push(xe(we))),N.value=ie,K.length){K.slice(0,r.maxCollapseTags).forEach(Qe=>fe.push(xe(Qe)));const we=K.slice(r.maxCollapseTags),nt=we.length;nt&&(r.collapseTags?fe.push({key:-1,text:`+ ${nt}`,closable:!1,isCollapseTag:!0}):we.forEach(Qe=>fe.push(xe(Qe))))}T.value=fe},Ne=()=>{var K,fe;const{filterMethod:ie,showAllLevels:we,separator:nt}=r,Qe=(fe=(K=x.value)==null?void 0:K.getFlattedNodes(!r.props.checkStrictly))==null?void 0:fe.filter(lt=>lt.isDisabled?!1:(lt.calcText(we,nt),ie(lt,X.value)));G.value&&(T.value.forEach(lt=>{lt.hitState=!1}),N.value.forEach(lt=>{lt.hitState=!1})),E.value=!0,F.value=Qe,Be()},Ie=()=>{var K;let fe;E.value&&w.value?fe=w.value.$el.querySelector(`.${d.e("suggestion-item")}`):fe=(K=x.value)==null?void 0:K.$el.querySelector(`.${d.b("node")}[tabindex="-1"]`),fe&&(fe.focus(),!E.value&&fe.click())},Se=()=>{var K,fe;const ie=(K=y.value)==null?void 0:K.input,we=b.value,nt=(fe=w.value)==null?void 0:fe.$el;if(!(!kt||!ie)){if(nt){const Qe=nt.querySelector(`.${d.e("suggestion-list")}`);Qe.style.minWidth=`${ie.offsetWidth}px`}if(we){const{offsetHeight:Qe}=we,lt=T.value.length>0?`${Math.max(Qe+6,s)}px`:`${s}px`;ie.style.height=lt,Be()}}},Re=K=>{var fe;return(fe=x.value)==null?void 0:fe.getCheckedNodes(K)},Ve=K=>{Be(),n("expandChange",K)},ze=K=>{if(!p.value)switch(K.code){case Qt.enter:be();break;case Qt.down:be(!0),o.nextTick(Ie),K.preventDefault();break;case Qt.esc:k.value===!0&&(K.preventDefault(),K.stopPropagation(),be(!1));break;case Qt.tab:be(!1);break}},B=()=>{var K;(K=x.value)==null||K.clearCheckedNodes(),!k.value&&r.filterable&&L(),be(!1),n("clear")},L=()=>{const{value:K}=de;_.value=K,O.value=K},Y=K=>{var fe,ie;const{checked:we}=K;G.value?(fe=x.value)==null||fe.handleCheckChange(K,!we,!1):(!we&&((ie=x.value)==null||ie.handleCheckChange(K,!0,!1)),be(!1))},Q=K=>{const fe=K.target,{code:ie}=K;switch(ie){case Qt.up:case Qt.down:{const we=ie===Qt.up?-1:1;yd(Ay(fe,we,`.${d.e("suggestion-item")}[tabindex="-1"]`));break}case Qt.enter:fe.click();break}},ee=()=>{const K=T.value,fe=K[K.length-1];l=O.value?0:l+1,!(!fe||!l||r.collapseTags&&K.length>1)&&(fe.hitState?ge(fe):fe.hitState=!0)},he=K=>{const fe=K.target,ie=d.e("search-input");fe.className===ie&&(S.value=!0),n("focus",K)},ae=K=>{S.value=!1,n("blur",K)},ye=Y1(()=>{const{value:K}=X;if(!K)return;const fe=r.beforeFilter(K);mB(fe)?fe.then(Ne).catch(()=>{}):fe!==!1?Ne():pe()},r.debounce),Fe=(K,fe)=>{!k.value&&be(!0),!(fe!=null&&fe.isComposing)&&(K?ye():pe())},De=K=>Number.parseFloat(tB(c.cssVarName("input-height"),K).value)-2;return o.watch(E,Be),o.watch([te,D,()=>r.collapseTags],ke),o.watch(T,()=>{o.nextTick(()=>Se())}),o.watch(I,async()=>{await o.nextTick();const K=y.value.input;s=De(K)||s,Se()}),o.watch(de,L,{immediate:!0}),o.onMounted(()=>{const K=y.value.input,fe=De(K);s=K.offsetHeight||fe,no(K,Se)}),t({getCheckedNodes:Re,cascaderPanelRef:x,togglePopperVisible:be,contentRef:ue,presentText:de}),(K,fe)=>(o.openBlock(),o.createBlock(o.unref(Zd),{ref_key:"tooltipRef",ref:v,visible:k.value,teleported:K.teleported,"popper-class":[o.unref(d).e("dropdown"),K.popperClass],"popper-options":a,"fallback-placements":K.fallbackPlacements,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:K.placement,transition:`${o.unref(d).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:K.persistent,onHide:pe},{default:o.withCtx(()=>[o.withDirectives((o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(o.unref(U)),style:o.normalizeStyle(o.unref($)),onClick:()=>be(o.unref(q)?void 0:!0),onKeydown:ze,onMouseenter:ie=>C.value=!0,onMouseleave:ie=>C.value=!1},[o.createVNode(o.unref(Wd),{ref_key:"input",ref:y,modelValue:_.value,"onUpdate:modelValue":ie=>_.value=ie,placeholder:o.unref(V),readonly:o.unref(q),disabled:o.unref(D),"validate-event":!1,size:o.unref(I),class:o.normalizeClass(o.unref(Z)),tabindex:o.unref(G)&&K.filterable&&!o.unref(D)?-1:void 0,onCompositionstart:o.unref(g),onCompositionupdate:o.unref(g),onCompositionend:o.unref(g),onFocus:he,onBlur:ae,onInput:Fe},{suffix:o.withCtx(()=>[o.unref(le)?(o.openBlock(),o.createBlock(o.unref(St),{key:"clear",class:o.normalizeClass([o.unref(c).e("icon"),"icon-circle-close"]),onClick:o.withModifiers(B,["stop"])},{default:o.withCtx(()=>[o.createVNode(o.unref(Ad))]),_:1},8,["class","onClick"])):(o.openBlock(),o.createBlock(o.unref(St),{key:"arrow-down",class:o.normalizeClass(o.unref(W)),onClick:o.withModifiers(ie=>be(),["stop"])},{default:o.withCtx(()=>[o.createVNode(o.unref(uh))]),_:1},8,["class","onClick"]))]),_:1},8,["modelValue","onUpdate:modelValue","placeholder","readonly","disabled","size","class","tabindex","onCompositionstart","onCompositionupdate","onCompositionend"]),o.unref(G)?(o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"tagWrapper",ref:b,class:o.normalizeClass([o.unref(d).e("tags"),o.unref(d).is("validate",!!o.unref(ne))])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(T.value,ie=>(o.openBlock(),o.createBlock(o.unref(ls),{key:ie.key,type:K.tagType,size:o.unref(z),effect:K.tagEffect,hit:ie.hitState,closable:ie.closable,"disable-transitions":"",onClose:we=>ge(ie)},{default:o.withCtx(()=>[ie.isCollapseTag===!1?(o.openBlock(),o.createElementBlock("span",{key:0},o.toDisplayString(ie.text),1)):(o.openBlock(),o.createBlock(o.unref(Zd),{key:1,disabled:k.value||!K.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:o.withCtx(()=>[o.createElementVNode("span",null,o.toDisplayString(ie.text),1)]),content:o.withCtx(()=>[o.createElementVNode("div",{class:o.normalizeClass(o.unref(d).e("collapse-tags"))},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(N.value.slice(K.maxCollapseTags),(we,nt)=>(o.openBlock(),o.createElementBlock("div",{key:nt,class:o.normalizeClass(o.unref(d).e("collapse-tag"))},[(o.openBlock(),o.createBlock(o.unref(ls),{key:we.key,class:"in-tooltip",type:K.tagType,size:o.unref(z),effect:K.tagEffect,hit:we.hitState,closable:we.closable,"disable-transitions":"",onClose:Qe=>ge(we)},{default:o.withCtx(()=>[o.createElementVNode("span",null,o.toDisplayString(we.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","effect","hit","closable","onClose"]))),128)),K.filterable&&!o.unref(D)?o.withDirectives((o.openBlock(),o.createElementBlock("input",{key:0,"onUpdate:modelValue":ie=>O.value=ie,type:"text",class:o.normalizeClass(o.unref(d).e("search-input")),placeholder:o.unref(de)?"":o.unref(P),onInput:ie=>Fe(O.value,ie),onClick:o.withModifiers(ie=>be(!0),["stop"]),onKeydown:o.withKeys(ee,["delete"]),onCompositionstart:o.unref(g),onCompositionupdate:o.unref(g),onCompositionend:o.unref(g),onFocus:he,onBlur:ae},null,42,["onUpdate:modelValue","placeholder","onInput","onClick","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend"])),[[o.vModelText,O.value]]):o.createCommentVNode("v-if",!0)],2)):o.createCommentVNode("v-if",!0)],46,["onClick","onMouseenter","onMouseleave"])),[[o.unref(Nb),()=>be(!1),o.unref(ue)]])]),content:o.withCtx(()=>[o.withDirectives(o.createVNode(o.unref(SI),{ref_key:"cascaderPanelRef",ref:x,modelValue:o.unref(oe),"onUpdate:modelValue":ie=>o.isRef(oe)?oe.value=ie:null,options:K.options,props:r.props,border:!1,"render-label":K.$slots.default,onExpandChange:Ve,onClose:ie=>K.$nextTick(()=>be(!1))},{empty:o.withCtx(()=>[o.renderSlot(K.$slots,"empty")]),_:3},8,["modelValue","onUpdate:modelValue","options","props","render-label","onClose"]),[[o.vShow,!E.value]]),K.filterable?o.withDirectives((o.openBlock(),o.createBlock(o.unref(Oh),{key:0,ref_key:"suggestionPanel",ref:w,tag:"ul",class:o.normalizeClass(o.unref(d).e("suggestion-panel")),"view-class":o.unref(d).e("suggestion-list"),onKeydown:Q},{default:o.withCtx(()=>[F.value.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(F.value,ie=>(o.openBlock(),o.createElementBlock("li",{key:ie.uid,class:o.normalizeClass([o.unref(d).e("suggestion-item"),o.unref(d).is("checked",ie.checked)]),tabindex:-1,onClick:we=>Y(ie)},[o.createElementVNode("span",null,o.toDisplayString(ie.text),1),ie.checked?(o.openBlock(),o.createBlock(o.unref(St),{key:0},{default:o.withCtx(()=>[o.createVNode(o.unref(iv))]),_:1})):o.createCommentVNode("v-if",!0)],10,["onClick"]))),128)):o.renderSlot(K.$slots,"empty",{key:1},()=>[o.createElementVNode("li",{class:o.normalizeClass(o.unref(d).e("empty-text"))},o.toDisplayString(o.unref(u)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[o.vShow,E.value]]):o.createCommentVNode("v-if",!0)]),_:3},8,["visible","teleported","popper-class","fallback-placements","placement","transition","persistent"]))}});var AI=qe(FI,[["__file","cascader.vue"]]);const qb=zt(AI),Wb=Symbol("rowContextKey"),II=We({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:["start","center","end","space-around","space-between","space-evenly"],default:"start"},align:{type:String,values:["top","middle","bottom"]}}),DI=o.defineComponent({name:"ElRow"}),VI=o.defineComponent({...DI,props:II,setup(e){const t=e,n=Ue("row"),r=o.computed(()=>t.gutter);o.provide(Wb,{gutter:r});const a=o.computed(()=>{const s={};return t.gutter&&(s.marginRight=s.marginLeft=`-${t.gutter/2}px`),s}),i=o.computed(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(s,l)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(s.tag),{class:o.normalizeClass(o.unref(i)),style:o.normalizeStyle(o.unref(a))},{default:o.withCtx(()=>[o.renderSlot(s.$slots,"default")]),_:3},8,["class","style"]))}});var RI=qe(VI,[["__file","row.vue"]]);const Kb=zt(RI),LI=We({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:Ae([Number,Object]),default:()=>ta({})},sm:{type:Ae([Number,Object]),default:()=>ta({})},md:{type:Ae([Number,Object]),default:()=>ta({})},lg:{type:Ae([Number,Object]),default:()=>ta({})},xl:{type:Ae([Number,Object]),default:()=>ta({})}}),MI=o.defineComponent({name:"ElCol"}),zI=o.defineComponent({...MI,props:LI,setup(e){const t=e,{gutter:n}=o.inject(Wb,{gutter:o.computed(()=>0)}),r=Ue("col"),a=o.computed(()=>{const s={};return n.value&&(s.paddingLeft=s.paddingRight=`${n.value/2}px`),s}),i=o.computed(()=>{const s=[];return["span","offset","pull","push"].forEach(c=>{const u=t[c];pt(u)&&(c==="span"?s.push(r.b(`${t[c]}`)):u>0&&s.push(r.b(`${c}-${t[c]}`)))}),["xs","sm","md","lg","xl"].forEach(c=>{pt(t[c])?s.push(r.b(`${c}-${t[c]}`)):sn(t[c])&&Object.entries(t[c]).forEach(([u,f])=>{s.push(u!=="span"?r.b(`${c}-${u}-${f}`):r.b(`${c}-${f}`))})}),n.value&&s.push(r.is("guttered")),[r.b(),s]});return(s,l)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(s.tag),{class:o.normalizeClass(o.unref(i)),style:o.normalizeStyle(o.unref(a))},{default:o.withCtx(()=>[o.renderSlot(s.$slots,"default")]),_:3},8,["class","style"]))}});var jI=qe(zI,[["__file","col.vue"]]);const Gb=zt(jI),HI=o.defineComponent({name:"ElContainer"}),UI=o.defineComponent({...HI,props:{direction:{type:String}},setup(e){const t=e,n=o.useSlots(),r=Ue("container"),a=o.computed(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(s=>{const l=s.type.name;return l==="ElHeader"||l==="ElFooter"}):!1);return(i,s)=>(o.openBlock(),o.createElementBlock("section",{class:o.normalizeClass([o.unref(r).b(),o.unref(r).is("vertical",o.unref(a))])},[o.renderSlot(i.$slots,"default")],2))}});var qI=qe(UI,[["__file","container.vue"]]);const WI=o.defineComponent({name:"ElAside"}),KI=o.defineComponent({...WI,props:{width:{type:String,default:null}},setup(e){const t=e,n=Ue("aside"),r=o.computed(()=>t.width?n.cssVarBlock({width:t.width}):{});return(a,i)=>(o.openBlock(),o.createElementBlock("aside",{class:o.normalizeClass(o.unref(n).b()),style:o.normalizeStyle(o.unref(r))},[o.renderSlot(a.$slots,"default")],6))}});var Xb=qe(KI,[["__file","aside.vue"]]);const GI=o.defineComponent({name:"ElFooter"}),XI=o.defineComponent({...GI,props:{height:{type:String,default:null}},setup(e){const t=e,n=Ue("footer"),r=o.computed(()=>t.height?n.cssVarBlock({height:t.height}):{});return(a,i)=>(o.openBlock(),o.createElementBlock("footer",{class:o.normalizeClass(o.unref(n).b()),style:o.normalizeStyle(o.unref(r))},[o.renderSlot(a.$slots,"default")],6))}});var Yb=qe(XI,[["__file","footer.vue"]]);const YI=o.defineComponent({name:"ElHeader"}),ZI=o.defineComponent({...YI,props:{height:{type:String,default:null}},setup(e){const t=e,n=Ue("header"),r=o.computed(()=>t.height?n.cssVarBlock({height:t.height}):{});return(a,i)=>(o.openBlock(),o.createElementBlock("header",{class:o.normalizeClass(o.unref(n).b()),style:o.normalizeStyle(o.unref(r))},[o.renderSlot(a.$slots,"default")],6))}});var Zb=qe(ZI,[["__file","header.vue"]]);const JI=o.defineComponent({name:"ElMain"}),QI=o.defineComponent({...JI,setup(e){const t=Ue("main");return(n,r)=>(o.openBlock(),o.createElementBlock("main",{class:o.normalizeClass(o.unref(t).b())},[o.renderSlot(n.$slots,"default")],2))}});var Jb=qe(QI,[["__file","main.vue"]]);const e9=zt(qI,{Aside:Xb,Footer:Yb,Header:Zb,Main:Jb});Vr(Xb),Vr(Yb),Vr(Zb),Vr(Jb);const t9=We({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:Ae([String,Array,Object])},zIndex:{type:Ae([String,Number])}}),n9={click:e=>e instanceof MouseEvent},r9="overlay";var o9=o.defineComponent({name:"ElOverlay",props:t9,emits:n9,setup(e,{slots:t,emit:n}){const r=Ue(r9),a=d=>{n("click",d)},{onClick:i,onMousedown:s,onMouseup:l}=k$(e.customMaskEvent?void 0:a);return()=>e.mask?o.createVNode("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:s,onMouseup:l},[o.renderSlot(t,"default")],Rd.STYLE|Rd.CLASS|Rd.PROPS,["onClick","onMouseup","onMousedown"]):o.h("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[o.renderSlot(t,"default")])}});const a9=o9,i9=We({center:Boolean,alignCenter:Boolean,closeIcon:{type:gr},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),s9=We({...i9,appendToBody:Boolean,appendTo:{type:Ae([String,Object]),default:"body"},beforeClose:{type:Ae(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"}}),l9={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[At]:e=>ao(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},c9=(e,t)=>{var n;const a=o.getCurrentInstance().emit,{nextZIndex:i}=Sh();let s="";const l=ra(),d=ra(),c=o.ref(!1),u=o.ref(!1),f=o.ref(!1),h=o.ref((n=e.zIndex)!=null?n:i());let m,p;const g=Ud("namespace",Sl),v=o.computed(()=>{const D={},P=`--${g.value}-dialog`;return e.fullscreen||(e.top&&(D[`${P}-margin-top`]=e.top),e.width&&(D[`${P}-width`]=Zi(e.width))),D}),y=o.computed(()=>e.alignCenter?{display:"flex"}:{});function b(){a("opened")}function x(){a("closed"),a(At,!1),e.destroyOnClose&&(f.value=!1)}function w(){a("close")}function k(){p==null||p(),m==null||m(),e.openDelay&&e.openDelay>0?{stop:m}=Vy(()=>_(),e.openDelay):_()}function C(){m==null||m(),p==null||p(),e.closeDelay&&e.closeDelay>0?{stop:p}=Vy(()=>O(),e.closeDelay):O()}function E(){function D(P){P||(u.value=!0,c.value=!1)}e.beforeClose?e.beforeClose(D):C()}function S(){e.closeOnClickModal&&E()}function _(){kt&&(c.value=!0)}function O(){c.value=!1}function T(){a("openAutoFocus")}function N(){a("closeAutoFocus")}function F(D){var P;((P=D.detail)==null?void 0:P.focusReason)==="pointer"&&D.preventDefault()}e.lockScroll&&mP(c);function $(){e.closeOnPressEscape&&E()}return o.watch(()=>e.modelValue,D=>{D?(u.value=!1,k(),f.value=!0,h.value=Z1(e.zIndex)?i():h.value++,o.nextTick(()=>{a("open"),t.value&&(t.value.scrollTop=0)})):c.value&&C()}),o.watch(()=>e.fullscreen,D=>{t.value&&(D?(s=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=s)}),o.onMounted(()=>{e.modelValue&&(c.value=!0,f.value=!0,k())}),{afterEnter:b,afterLeave:x,beforeLeave:w,handleClose:E,onModalClick:S,close:C,doClose:O,onOpenAutoFocus:T,onCloseAutoFocus:N,onCloseRequested:$,onFocusoutPrevented:F,titleId:l,bodyId:d,closed:u,style:v,overlayDialogStyle:y,rendered:f,visible:c,zIndex:h}},d9=We({...s9,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),u9=l9,f9=o.defineComponent({name:"ElDrawer",inheritAttrs:!1}),p9=o.defineComponent({...f9,props:d9,emits:u9,setup(e,{expose:t}){const n=e,r=o.useSlots();Xa({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},o.computed(()=>!!r.title));const a=o.ref(),i=o.ref(),s=Ue("drawer"),{t:l}=yr(),{afterEnter:d,afterLeave:c,beforeLeave:u,visible:f,rendered:h,titleId:m,bodyId:p,zIndex:g,onModalClick:v,onOpenAutoFocus:y,onCloseAutoFocus:b,onFocusoutPrevented:x,onCloseRequested:w,handleClose:k}=c9(n,a),C=o.computed(()=>n.direction==="rtl"||n.direction==="ltr"),E=o.computed(()=>Zi(n.size));return t({handleClose:k,afterEnter:d,afterLeave:c}),(S,_)=>(o.openBlock(),o.createBlock(o.unref(wb),{to:S.appendTo,disabled:S.appendTo!=="body"?!1:!S.appendToBody},{default:o.withCtx(()=>[o.createVNode(o.Transition,{name:o.unref(s).b("fade"),onAfterEnter:o.unref(d),onAfterLeave:o.unref(c),onBeforeLeave:o.unref(u),persisted:""},{default:o.withCtx(()=>[o.withDirectives(o.createVNode(o.unref(a9),{mask:S.modal,"overlay-class":S.modalClass,"z-index":o.unref(g),onClick:o.unref(v)},{default:o.withCtx(()=>[o.createVNode(o.unref(vb),{loop:"",trapped:o.unref(f),"focus-trap-el":a.value,"focus-start-el":i.value,onFocusAfterTrapped:o.unref(y),onFocusAfterReleased:o.unref(b),onFocusoutPrevented:o.unref(x),onReleaseRequested:o.unref(w)},{default:o.withCtx(()=>[o.createElementVNode("div",o.mergeProps({ref_key:"drawerRef",ref:a,"aria-modal":"true","aria-label":S.title||void 0,"aria-labelledby":S.title?void 0:o.unref(m),"aria-describedby":o.unref(p)},S.$attrs,{class:[o.unref(s).b(),S.direction,o.unref(f)&&"open"],style:o.unref(C)?"width: "+o.unref(E):"height: "+o.unref(E),role:"dialog",onClick:o.withModifiers(()=>{},["stop"])}),[o.createElementVNode("span",{ref_key:"focusStartRef",ref:i,class:o.normalizeClass(o.unref(s).e("sr-focus")),tabindex:"-1"},null,2),S.withHeader?(o.openBlock(),o.createElementBlock("header",{key:0,class:o.normalizeClass(o.unref(s).e("header"))},[S.$slots.title?o.renderSlot(S.$slots,"title",{key:1},()=>[o.createCommentVNode(" DEPRECATED SLOT ")]):o.renderSlot(S.$slots,"header",{key:0,close:o.unref(k),titleId:o.unref(m),titleClass:o.unref(s).e("title")},()=>[S.$slots.title?o.createCommentVNode("v-if",!0):(o.openBlock(),o.createElementBlock("span",{key:0,id:o.unref(m),role:"heading","aria-level":S.headerAriaLevel,class:o.normalizeClass(o.unref(s).e("title"))},o.toDisplayString(S.title),11,["id","aria-level"]))]),S.showClose?(o.openBlock(),o.createElementBlock("button",{key:2,"aria-label":o.unref(l)("el.drawer.close"),class:o.normalizeClass(o.unref(s).e("close-btn")),type:"button",onClick:o.unref(k)},[o.createVNode(o.unref(St),{class:o.normalizeClass(o.unref(s).e("close"))},{default:o.withCtx(()=>[o.createVNode(o.unref(ph))]),_:1},8,["class"])],10,["aria-label","onClick"])):o.createCommentVNode("v-if",!0)],2)):o.createCommentVNode("v-if",!0),o.unref(h)?(o.openBlock(),o.createElementBlock("div",{key:1,id:o.unref(p),class:o.normalizeClass(o.unref(s).e("body"))},[o.renderSlot(S.$slots,"default")],10,["id"])):o.createCommentVNode("v-if",!0),S.$slots.footer?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(o.unref(s).e("footer"))},[o.renderSlot(S.$slots,"footer")],2)):o.createCommentVNode("v-if",!0)],16,["aria-label","aria-labelledby","aria-describedby","onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[o.vShow,o.unref(f)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var h9=qe(p9,[["__file","drawer.vue"]]);const qh=zt(h9),m9=o.defineComponent({inheritAttrs:!1});function g9(e,t,n,r,a,i){return o.renderSlot(e.$slots,"default")}var y9=qe(m9,[["render",g9],["__file","collection.vue"]]);const v9=o.defineComponent({name:"ElCollectionItem",inheritAttrs:!1});function b9(e,t,n,r,a,i){return o.renderSlot(e.$slots,"default")}var w9=qe(v9,[["render",b9],["__file","collection-item.vue"]]);const x9="data-el-collection-item",C9=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),a=Symbol(n),i={...y9,name:t,setup(){const l=o.ref(null),d=new Map,c=()=>{const u=o.unref(l);if(!u)return[];const f=Array.from(u.querySelectorAll(`[${x9}]`));return[...d.values()].sort((m,p)=>f.indexOf(m.ref)-f.indexOf(p.ref))};o.provide(r,{itemMap:d,getItems:c,collectionRef:l})}},s={...w9,name:n,setup(l,{attrs:d}){const c=o.ref(null),u=o.inject(r,void 0);o.provide(a,{collectionItemRef:c}),o.onMounted(()=>{const f=o.unref(c);f&&u.itemMap.set(f,{ref:f,...d})}),o.onBeforeUnmount(()=>{const f=o.unref(c);u.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:i,ElCollectionItem:s}},Wh=We({trigger:Dl.trigger,effect:{...Un.effect,default:"light"},type:{type:Ae(String)},placement:{type:Ae(String),default:"bottom"},popperOptions:{type:Ae(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:Ae([Number,String]),default:0},maxHeight:{type:Ae([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,default:"menu"},buttonProps:{type:Ae(Object)},teleported:Un.teleported});We({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:gr}}),We({onKeydown:{type:Ae(Function)}}),C9("Dropdown");const Qb=Symbol("elPaginationKey"),k9=We({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:gr}}),E9={click:e=>e instanceof MouseEvent},S9=o.defineComponent({name:"ElPaginationPrev"}),_9=o.defineComponent({...S9,props:k9,emits:E9,setup(e){const t=e,{t:n}=yr(),r=o.computed(()=>t.disabled||t.currentPage<=1);return(a,i)=>(o.openBlock(),o.createElementBlock("button",{type:"button",class:"btn-prev",disabled:o.unref(r),"aria-label":a.prevText||o.unref(n)("el.pagination.prev"),"aria-disabled":o.unref(r),onClick:s=>a.$emit("click",s)},[a.prevText?(o.openBlock(),o.createElementBlock("span",{key:0},o.toDisplayString(a.prevText),1)):(o.openBlock(),o.createBlock(o.unref(St),{key:1},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(a.prevIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var B9=qe(_9,[["__file","prev.vue"]]);const T9=We({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:gr}}),N9=o.defineComponent({name:"ElPaginationNext"}),O9=o.defineComponent({...N9,props:T9,emits:["click"],setup(e){const t=e,{t:n}=yr(),r=o.computed(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(a,i)=>(o.openBlock(),o.createElementBlock("button",{type:"button",class:"btn-next",disabled:o.unref(r),"aria-label":a.nextText||o.unref(n)("el.pagination.next"),"aria-disabled":o.unref(r),onClick:s=>a.$emit("click",s)},[a.nextText?(o.openBlock(),o.createElementBlock("span",{key:0},o.toDisplayString(a.nextText),1)):(o.openBlock(),o.createBlock(o.unref(St),{key:1},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(a.nextIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var P9=qe(O9,[["__file","next.vue"]]);const e2=Symbol("ElSelectGroup"),eu=Symbol("ElSelect");function $9(e,t){const n=o.inject(eu),r=o.inject(e2,{disabled:!1}),a=o.computed(()=>u(ea(n.props.modelValue),e.value)),i=o.computed(()=>{var m;if(n.props.multiple){const p=ea((m=n.props.modelValue)!=null?m:[]);return!a.value&&p.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),s=o.computed(()=>e.label||(sn(e.value)?"":e.value)),l=o.computed(()=>e.value||e.label||""),d=o.computed(()=>e.disabled||t.groupDisabled||i.value),c=o.getCurrentInstance(),u=(m=[],p)=>{if(sn(e.value)){const g=n.props.valueKey;return m&&m.some(v=>o.toRaw(No(v,g))===No(p,g))}else return m&&m.includes(p)},f=()=>{!e.disabled&&!r.disabled&&(n.states.hoveringIndex=n.optionsArray.indexOf(c.proxy))},h=m=>{const p=new RegExp(T6(m),"i");t.visible=p.test(s.value)||e.created};return o.watch(()=>s.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),o.watch(()=>e.value,(m,p)=>{const{remote:g,valueKey:v}=n.props;if(m!==p&&(n.onOptionDestroy(p,c.proxy),n.onOptionCreate(c.proxy)),!e.created&&!g){if(v&&sn(m)&&sn(p)&&m[v]===p[v])return;n.setSelected()}}),o.watch(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0}),{select:n,currentLabel:s,currentValue:l,itemSelected:a,isDisabled:d,hoverItem:f,updateOption:h}}const F9=o.defineComponent({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=Ue("select"),n=ra(),r=o.computed(()=>[t.be("dropdown","item"),t.is("disabled",o.unref(l)),t.is("selected",o.unref(s)),t.is("hovering",o.unref(h))]),a=o.reactive({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:i,itemSelected:s,isDisabled:l,select:d,hoverItem:c,updateOption:u}=$9(e,a),{visible:f,hover:h}=o.toRefs(a),m=o.getCurrentInstance().proxy;d.onOptionCreate(m),o.onBeforeUnmount(()=>{const g=m.value,{selected:v}=d.states,b=(d.props.multiple?v:[v]).some(x=>x.value===m.value);o.nextTick(()=>{d.states.cachedOptions.get(g)===m&&!b&&d.states.cachedOptions.delete(g)}),d.onOptionDestroy(g,m)});function p(){l.value||d.handleOptionSelect(m)}return{ns:t,id:n,containerKls:r,currentLabel:i,itemSelected:s,isDisabled:l,select:d,hoverItem:c,updateOption:u,visible:f,hover:h,selectOptionClick:p,states:a}}});function A9(e,t,n,r,a,i){return o.withDirectives((o.openBlock(),o.createElementBlock("li",{id:e.id,class:o.normalizeClass(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:e.hoverItem,onClick:o.withModifiers(e.selectOptionClick,["stop"])},[o.renderSlot(e.$slots,"default",{},()=>[o.createElementVNode("span",null,o.toDisplayString(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMouseenter","onClick"])),[[o.vShow,e.visible]])}var Kh=qe(F9,[["render",A9],["__file","option.vue"]]);const I9=o.defineComponent({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=o.inject(eu),t=Ue("select"),n=o.computed(()=>e.props.popperClass),r=o.computed(()=>e.props.multiple),a=o.computed(()=>e.props.fitInputWidth),i=o.ref("");function s(){var l;i.value=`${(l=e.selectRef)==null?void 0:l.offsetWidth}px`}return o.onMounted(()=>{s(),no(e.selectRef,s)}),{ns:t,minWidth:i,popperClass:n,isMultiple:r,isFitInputWidth:a}}});function D9(e,t,n,r,a,i){return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:o.normalizeStyle({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(e.ns.be("dropdown","header"))},[o.renderSlot(e.$slots,"header")],2)):o.createCommentVNode("v-if",!0),o.renderSlot(e.$slots,"default"),e.$slots.footer?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(e.ns.be("dropdown","footer"))},[o.renderSlot(e.$slots,"footer")],2)):o.createCommentVNode("v-if",!0)],6)}var V9=qe(I9,[["render",D9],["__file","select-dropdown.vue"]]);const R9=11,L9=(e,t)=>{const{t:n}=yr(),r=ra(),a=Ue("select"),i=Ue("input"),s=o.reactive({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=o.ref(null),d=o.ref(null),c=o.ref(null),u=o.ref(null),f=o.ref(null),h=o.ref(null),m=o.ref(null),p=o.ref(null),g=o.ref(null),v=o.ref(null),y=o.ref(null),b=o.ref(null),{isComposing:x,handleCompositionStart:w,handleCompositionUpdate:k,handleCompositionEnd:C}=_h({afterComposition:j=>Q(j)}),{wrapperRef:E,isFocused:S}=Zv(f,{beforeFocus(){return P.value},afterFocus(){e.automaticDropdown&&!_.value&&(_.value=!0,s.menuVisibleOnFocus=!0)},beforeBlur(j){var re,_e;return((re=c.value)==null?void 0:re.isFocusInsideContent(j))||((_e=u.value)==null?void 0:_e.isFocusInsideContent(j))},afterBlur(){_.value=!1,s.menuVisibleOnFocus=!1}}),_=o.ref(!1),O=o.ref(),{form:T,formItem:N}=ia(),{inputId:F}=Il(e,{formItemContext:N}),{valueOnClear:$,isEmptyValue:D}=eb(e),P=o.computed(()=>e.disabled||(T==null?void 0:T.disabled)),V=o.computed(()=>Dn(e.modelValue)?e.modelValue.length>0:!D(e.modelValue)),I=o.computed(()=>e.clearable&&!P.value&&s.inputHovering&&V.value),z=o.computed(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),G=o.computed(()=>a.is("reverse",z.value&&_.value)),q=o.computed(()=>(N==null?void 0:N.validateState)||""),X=o.computed(()=>fv[q.value]),te=o.computed(()=>e.remote?300:0),le=o.computed(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&!s.inputValue&&s.options.size===0?!1:e.filterable&&s.inputValue&&s.options.size>0&&de.value===0?e.noMatchText||n("el.select.noMatch"):s.options.size===0?e.noDataText||n("el.select.noData"):null),de=o.computed(()=>ne.value.filter(j=>j.visible).length),ne=o.computed(()=>{const j=Array.from(s.options.values()),re=[];return s.optionValues.forEach(_e=>{const Le=j.findIndex(Lt=>Lt.value===_e);Le>-1&&re.push(j[Le])}),re.length>=j.length?re:j}),oe=o.computed(()=>Array.from(s.cachedOptions.values())),U=o.computed(()=>{const j=ne.value.filter(re=>!re.created).some(re=>re.currentLabel===s.inputValue);return e.filterable&&e.allowCreate&&s.inputValue!==""&&!j}),W=()=>{e.filterable&&Jt(e.filterMethod)||e.filterable&&e.remote&&Jt(e.remoteMethod)||ne.value.forEach(j=>{var re;(re=j.updateOption)==null||re.call(j,s.inputValue)})},Z=aa(),ue=o.computed(()=>["small"].includes(Z.value)?"small":"default"),be=o.computed({get(){return _.value&&le.value!==!1},set(j){_.value=j}}),Be=o.computed(()=>{if(e.multiple&&!Oo(e.modelValue))return ea(e.modelValue).length===0&&!s.inputValue;const j=Dn(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||Oo(j)?!s.inputValue:!0}),pe=o.computed(()=>{var j;const re=(j=e.placeholder)!=null?j:n("el.select.placeholder");return e.multiple||!V.value?re:s.selectedLabel}),xe=o.computed(()=>Dp?null:"mouseenter");o.watch(()=>e.modelValue,(j,re)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(s.inputValue="",ge("")),Ne(),!oo(j,re)&&e.validateEvent&&(N==null||N.validate("change").catch(_e=>Mt(_e)))},{flush:"post",deep:!0}),o.watch(()=>_.value,j=>{j?ge(s.inputValue):(s.inputValue="",s.previousQuery=null,s.isBeforeHide=!0),t("visible-change",j)}),o.watch(()=>s.options.entries(),()=>{var j;if(!kt)return;const re=((j=l.value)==null?void 0:j.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!Oo(e.modelValue)||!Array.from(re).includes(document.activeElement))&&Ne(),e.defaultFirstOption&&(e.filterable||e.remote)&&de.value&&ke()},{flush:"post"}),o.watch(()=>s.hoveringIndex,j=>{pt(j)&&j>-1?O.value=ne.value[j]||{}:O.value={},ne.value.forEach(re=>{re.hover=O.value===re})}),o.watchEffect(()=>{s.isBeforeHide||W()});const ge=j=>{s.previousQuery===j||x.value||(s.previousQuery=j,e.filterable&&Jt(e.filterMethod)?e.filterMethod(j):e.filterable&&e.remote&&Jt(e.remoteMethod)&&e.remoteMethod(j),e.defaultFirstOption&&(e.filterable||e.remote)&&de.value?o.nextTick(ke):o.nextTick(Se))},ke=()=>{const j=ne.value.filter(Le=>Le.visible&&!Le.disabled&&!Le.states.groupDisabled),re=j.find(Le=>Le.created),_e=j[0];s.hoveringIndex=fe(ne.value,re||_e)},Ne=()=>{if(e.multiple)s.selectedLabel="";else{const re=Dn(e.modelValue)?e.modelValue[0]:e.modelValue,_e=Ie(re);s.selectedLabel=_e.currentLabel,s.selected=[_e];return}const j=[];Oo(e.modelValue)||ea(e.modelValue).forEach(re=>{j.push(Ie(re))}),s.selected=j},Ie=j=>{let re;const _e=Vp(j).toLowerCase()==="object",Le=Vp(j).toLowerCase()==="null",Lt=Vp(j).toLowerCase()==="undefined";for(let Yt=s.cachedOptions.size-1;Yt>=0;Yt--){const Pt=oe.value[Yt];if(_e?No(Pt.value,e.valueKey)===No(j,e.valueKey):Pt.value===j){re={value:j,currentLabel:Pt.currentLabel,get isDisabled(){return Pt.isDisabled}};break}}if(re)return re;const kn=_e?j.label:!Le&&!Lt?j:"";return{value:j,currentLabel:kn}},Se=()=>{s.hoveringIndex=ne.value.findIndex(j=>s.selected.some(re=>Rt(re)===Rt(j)))},Re=()=>{s.selectionWidth=d.value.getBoundingClientRect().width},Ve=()=>{s.calculatorWidth=h.value.getBoundingClientRect().width},ze=()=>{s.collapseItemWidth=y.value.getBoundingClientRect().width},B=()=>{var j,re;(re=(j=c.value)==null?void 0:j.updatePopper)==null||re.call(j)},L=()=>{var j,re;(re=(j=u.value)==null?void 0:j.updatePopper)==null||re.call(j)},Y=()=>{s.inputValue.length>0&&!_.value&&(_.value=!0),ge(s.inputValue)},Q=j=>{if(s.inputValue=j.target.value,e.remote)ee();else return Y()},ee=Y1(()=>{Y()},te.value),he=j=>{oo(e.modelValue,j)||t(Ga,j)},ae=j=>x6(j,re=>!s.disabledOptions.has(re)),ye=j=>{if(e.multiple&&j.code!==Qt.delete&&j.target.value.length<=0){const re=ea(e.modelValue).slice(),_e=ae(re);if(_e<0)return;const Le=re[_e];re.splice(_e,1),t(At,re),he(re),t("remove-tag",Le)}},Fe=(j,re)=>{const _e=s.selected.indexOf(re);if(_e>-1&&!P.value){const Le=ea(e.modelValue).slice();Le.splice(_e,1),t(At,Le),he(Le),t("remove-tag",re.value)}j.stopPropagation(),ft()},De=j=>{j.stopPropagation();const re=e.multiple?[]:$.value;if(e.multiple)for(const _e of s.selected)_e.isDisabled&&re.push(_e.value);t(At,re),he(re),s.hoveringIndex=-1,_.value=!1,t("clear"),ft()},K=j=>{var re;if(e.multiple){const _e=ea((re=e.modelValue)!=null?re:[]).slice(),Le=fe(_e,j.value);Le>-1?_e.splice(Le,1):(e.multipleLimit<=0||_e.length{ie(j)})},fe=(j=[],re)=>{if(!sn(re))return j.indexOf(re);const _e=e.valueKey;let Le=-1;return j.some((Lt,kn)=>o.toRaw(No(Lt,_e))===No(re,_e)?(Le=kn,!0):!1),Le},ie=j=>{var re,_e,Le,Lt,kn;const An=Dn(j)?j[0]:j;let Yt=null;if(An!=null&&An.value){const Pt=ne.value.filter(Eo=>Eo.value===An.value);Pt.length>0&&(Yt=Pt[0].$el)}if(c.value&&Yt){const Pt=(Lt=(Le=(_e=(re=c.value)==null?void 0:re.popperRef)==null?void 0:_e.contentRef)==null?void 0:Le.querySelector)==null?void 0:Lt.call(Le,`.${a.be("dropdown","wrap")}`);Pt&&av(Pt,Yt)}(kn=b.value)==null||kn.handleScroll()},we=j=>{s.options.set(j.value,j),s.cachedOptions.set(j.value,j),j.disabled&&s.disabledOptions.set(j.value,j)},nt=(j,re)=>{s.options.get(j)===re&&s.options.delete(j)},Qe=o.computed(()=>{var j,re;return(re=(j=c.value)==null?void 0:j.popperRef)==null?void 0:re.contentRef}),lt=()=>{s.isBeforeHide=!1,o.nextTick(()=>ie(s.selected))},ft=()=>{var j;(j=f.value)==null||j.focus()},yt=()=>{var j;(j=f.value)==null||j.blur()},Kt=j=>{De(j)},Tt=()=>{_.value=!1,S.value&&yt()},Nt=()=>{s.inputValue.length>0?s.inputValue="":_.value=!1},Gt=()=>{P.value||(Dp&&(s.inputHovering=!0),s.menuVisibleOnFocus?s.menuVisibleOnFocus=!1:_.value=!_.value)},Xt=()=>{_.value?ne.value[s.hoveringIndex]&&K(ne.value[s.hoveringIndex]):Gt()},Rt=j=>sn(j.value)?No(j.value,e.valueKey):j.value,$n=o.computed(()=>ne.value.filter(j=>j.visible).every(j=>j.disabled)),xn=o.computed(()=>e.multiple?e.collapseTags?s.selected.slice(0,e.maxCollapseTags):s.selected:[]),Cn=o.computed(()=>e.multiple?e.collapseTags?s.selected.slice(e.maxCollapseTags):[]:[]),vt=j=>{if(!_.value){_.value=!0;return}if(!(s.options.size===0||s.filteredOptionsCount===0||x.value)&&!$n.value){j==="next"?(s.hoveringIndex++,s.hoveringIndex===s.options.size&&(s.hoveringIndex=0)):j==="prev"&&(s.hoveringIndex--,s.hoveringIndex<0&&(s.hoveringIndex=s.options.size-1));const re=ne.value[s.hoveringIndex];(re.disabled===!0||re.states.groupDisabled===!0||!re.visible)&&vt(j),o.nextTick(()=>ie(O.value))}},Ot=()=>{if(!d.value)return 0;const j=window.getComputedStyle(d.value);return Number.parseFloat(j.gap||"6px")},Vt=o.computed(()=>{const j=Ot();return{maxWidth:`${y.value&&e.maxCollapseTags===1?s.selectionWidth-s.collapseItemWidth-j:s.selectionWidth}px`}}),Fn=o.computed(()=>({maxWidth:`${s.selectionWidth}px`})),ko=o.computed(()=>({width:`${Math.max(s.calculatorWidth,R9)}px`}));return no(d,Re),no(h,Ve),no(g,B),no(E,B),no(v,L),no(y,ze),o.onMounted(()=>{Ne()}),{inputId:F,contentId:r,nsSelect:a,nsInput:i,states:s,isFocused:S,expanded:_,optionsArray:ne,hoverOption:O,selectSize:Z,filteredOptionsCount:de,resetCalculatorWidth:Ve,updateTooltip:B,updateTagTooltip:L,debouncedOnInputChange:ee,onInput:Q,deletePrevTag:ye,deleteTag:Fe,deleteSelected:De,handleOptionSelect:K,scrollToOption:ie,hasModelValue:V,shouldShowPlaceholder:Be,currentPlaceholder:pe,mouseEnterEventName:xe,showClose:I,iconComponent:z,iconReverse:G,validateState:q,validateIcon:X,showNewOption:U,updateOptions:W,collapseTagSize:ue,setSelected:Ne,selectDisabled:P,emptyText:le,handleCompositionStart:w,handleCompositionUpdate:k,handleCompositionEnd:C,onOptionCreate:we,onOptionDestroy:nt,handleMenuEnter:lt,focus:ft,blur:yt,handleClearClick:Kt,handleClickOutside:Tt,handleEsc:Nt,toggleMenu:Gt,selectOption:Xt,getValueKey:Rt,navigateOptions:vt,dropdownMenuVisible:be,showTagList:xn,collapseTagList:Cn,tagStyle:Vt,collapseTagStyle:Fn,inputStyle:ko,popperRef:Qe,inputRef:f,tooltipRef:c,tagTooltipRef:u,calculatorRef:h,prefixRef:m,suffixRef:p,selectRef:l,wrapperRef:E,selectionRef:d,scrollbarRef:b,menuRef:g,tagMenuRef:v,collapseItemRef:y}};var M9=o.defineComponent({name:"ElOptions",setup(e,{slots:t}){const n=o.inject(eu);let r=[];return()=>{var a,i;const s=(a=t.default)==null?void 0:a.call(t),l=[];function d(c){Dn(c)&&c.forEach(u=>{var f,h,m,p;const g=(f=(u==null?void 0:u.type)||{})==null?void 0:f.name;g==="ElOptionGroup"?d(!zn(u.children)&&!Dn(u.children)&&Jt((h=u.children)==null?void 0:h.default)?(m=u.children)==null?void 0:m.default():u.children):g==="ElOption"?l.push((p=u.props)==null?void 0:p.value):Dn(u.children)&&d(u.children)})}return s.length&&d((i=s[0])==null?void 0:i.children),oo(l,r)||(r=l,n&&(n.states.optionValues=l)),s}}});const z9=We({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:$o,effect:{type:Ae(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Ae(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:Un.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:gr,default:Ad},fitInputWidth:Boolean,suffixIcon:{type:gr,default:uh},tagType:{...Vl.type,default:"info"},tagEffect:{...Vl.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,placement:{type:Ae(String),values:Nl,default:"bottom-start"},fallbackPlacements:{type:Ae(Array),default:["bottom-start","top-start","right","left"]},appendTo:String,...Qv,...oa(["ariaLabel"])}),t2="ElSelect",j9=o.defineComponent({name:t2,componentName:t2,components:{ElSelectMenu:V9,ElOption:Kh,ElOptions:M9,ElTag:ls,ElScrollbar:Oh,ElTooltip:Zd,ElIcon:St},directives:{ClickOutside:Nb},props:z9,emits:[At,Ga,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=o.computed(()=>{const{modelValue:i,multiple:s}=e,l=s?[]:void 0;return Dn(i)?s?i:l:s?l:i}),r=o.reactive({...o.toRefs(e),modelValue:n}),a=L9(r,t);return o.provide(eu,o.reactive({props:r,states:a.states,optionsArray:a.optionsArray,handleOptionSelect:a.handleOptionSelect,onOptionCreate:a.onOptionCreate,onOptionDestroy:a.onOptionDestroy,selectRef:a.selectRef,setSelected:a.setSelected})),{...a,modelValue:n}}});function H9(e,t,n,r,a,i){const s=o.resolveComponent("el-tag"),l=o.resolveComponent("el-tooltip"),d=o.resolveComponent("el-icon"),c=o.resolveComponent("el-option"),u=o.resolveComponent("el-options"),f=o.resolveComponent("el-scrollbar"),h=o.resolveComponent("el-select-menu"),m=o.resolveDirective("click-outside");return o.withDirectives((o.openBlock(),o.createElementBlock("div",{ref:"selectRef",class:o.normalizeClass([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[o.toHandlerKey(e.mouseEnterEventName)]:p=>e.states.inputHovering=!0,onMouseleave:p=>e.states.inputHovering=!1},[o.createVNode(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,"append-to":e.appendTo,onBeforeShow:e.handleMenuEnter,onHide:p=>e.states.isBeforeHide=!1},{default:o.withCtx(()=>{var p;return[o.createElementVNode("div",{ref:"wrapperRef",class:o.normalizeClass([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:o.withModifiers(e.toggleMenu,["prevent"])},[e.$slots.prefix?(o.openBlock(),o.createElementBlock("div",{key:0,ref:"prefixRef",class:o.normalizeClass(e.nsSelect.e("prefix"))},[o.renderSlot(e.$slots,"prefix")],2)):o.createCommentVNode("v-if",!0),o.createElementVNode("div",{ref:"selectionRef",class:o.normalizeClass([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?o.renderSlot(e.$slots,"tag",{key:0},()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.showTagList,g=>(o.openBlock(),o.createElementBlock("div",{key:e.getValueKey(g),class:o.normalizeClass(e.nsSelect.e("selected-item"))},[o.createVNode(s,{closable:!e.selectDisabled&&!g.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:o.normalizeStyle(e.tagStyle),onClose:v=>e.deleteTag(v,g)},{default:o.withCtx(()=>[o.createElementVNode("span",{class:o.normalizeClass(e.nsSelect.e("tags-text"))},[o.renderSlot(e.$slots,"label",{label:g.currentLabel,value:g.value},()=>[o.createTextVNode(o.toDisplayString(g.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(o.openBlock(),o.createBlock(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:o.withCtx(()=>[o.createElementVNode("div",{ref:"collapseItemRef",class:o.normalizeClass(e.nsSelect.e("selected-item"))},[o.createVNode(s,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:o.normalizeStyle(e.collapseTagStyle)},{default:o.withCtx(()=>[o.createElementVNode("span",{class:o.normalizeClass(e.nsSelect.e("tags-text"))}," + "+o.toDisplayString(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:o.withCtx(()=>[o.createElementVNode("div",{ref:"tagMenuRef",class:o.normalizeClass(e.nsSelect.e("selection"))},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.collapseTagList,g=>(o.openBlock(),o.createElementBlock("div",{key:e.getValueKey(g),class:o.normalizeClass(e.nsSelect.e("selected-item"))},[o.createVNode(s,{class:"in-tooltip",closable:!e.selectDisabled&&!g.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:v=>e.deleteTag(v,g)},{default:o.withCtx(()=>[o.createElementVNode("span",{class:o.normalizeClass(e.nsSelect.e("tags-text"))},[o.renderSlot(e.$slots,"label",{label:g.currentLabel,value:g.value},()=>[o.createTextVNode(o.toDisplayString(g.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):o.createCommentVNode("v-if",!0)]):o.createCommentVNode("v-if",!0),e.selectDisabled?o.createCommentVNode("v-if",!0):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[o.withDirectives(o.createElementVNode("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":g=>e.states.inputValue=g,type:"text",name:e.name,class:o.normalizeClass([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:o.normalizeStyle(e.inputStyle),role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((p=e.hoverOption)==null?void 0:p.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[o.withKeys(o.withModifiers(g=>e.navigateOptions("next"),["stop","prevent"]),["down"]),o.withKeys(o.withModifiers(g=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),o.withKeys(o.withModifiers(e.handleEsc,["stop","prevent"]),["esc"]),o.withKeys(o.withModifiers(e.selectOption,["stop","prevent"]),["enter"]),o.withKeys(o.withModifiers(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:o.withModifiers(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"]),[[o.vModelText,e.states.inputValue]]),e.filterable?(o.openBlock(),o.createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:o.normalizeClass(e.nsSelect.e("input-calculator")),textContent:o.toDisplayString(e.states.inputValue)},null,10,["textContent"])):o.createCommentVNode("v-if",!0)],2)),e.shouldShowPlaceholder?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?o.renderSlot(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[o.createElementVNode("span",null,o.toDisplayString(e.currentPlaceholder),1)]):(o.openBlock(),o.createElementBlock("span",{key:1},o.toDisplayString(e.currentPlaceholder),1))],2)):o.createCommentVNode("v-if",!0)],2),o.createElementVNode("div",{ref:"suffixRef",class:o.normalizeClass(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(o.openBlock(),o.createBlock(d,{key:0,class:o.normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):o.createCommentVNode("v-if",!0),e.showClose&&e.clearIcon?(o.openBlock(),o.createBlock(d,{key:1,class:o.normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.clearIcon)))]),_:1},8,["class","onClick"])):o.createCommentVNode("v-if",!0),e.validateState&&e.validateIcon?(o.openBlock(),o.createBlock(d,{key:2,class:o.normalizeClass([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.validateIcon)))]),_:1},8,["class"])):o.createCommentVNode("v-if",!0)],2)],10,["onClick"])]}),content:o.withCtx(()=>[o.createVNode(h,{ref:"menuRef"},{default:o.withCtx(()=>[e.$slots.header?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(e.nsSelect.be("dropdown","header")),onClick:o.withModifiers(()=>{},["stop"])},[o.renderSlot(e.$slots,"header")],10,["onClick"])):o.createCommentVNode("v-if",!0),o.withDirectives(o.createVNode(f,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:o.normalizeClass([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:o.withCtx(()=>[e.showNewOption?(o.openBlock(),o.createBlock(c,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):o.createCommentVNode("v-if",!0),o.createVNode(u,null,{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[o.vShow,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(e.nsSelect.be("dropdown","loading"))},[o.renderSlot(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(e.nsSelect.be("dropdown","empty"))},[o.renderSlot(e.$slots,"empty",{},()=>[o.createElementVNode("span",null,o.toDisplayString(e.emptyText),1)])],2)):o.createCommentVNode("v-if",!0),e.$slots.footer?(o.openBlock(),o.createElementBlock("div",{key:3,class:o.normalizeClass(e.nsSelect.be("dropdown","footer")),onClick:o.withModifiers(()=>{},["stop"])},[o.renderSlot(e.$slots,"footer")],10,["onClick"])):o.createCommentVNode("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","append-to","onBeforeShow","onHide"])],16,["onMouseleave"])),[[m,e.handleClickOutside,e.popperRef]])}var U9=qe(j9,[["render",H9],["__file","select.vue"]]);const q9=o.defineComponent({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Ue("select"),n=o.ref(null),r=o.getCurrentInstance(),a=o.ref([]);o.provide(e2,o.reactive({...o.toRefs(e)}));const i=o.computed(()=>a.value.some(c=>c.visible===!0)),s=c=>{var u,f;return((u=c.type)==null?void 0:u.name)==="ElOption"&&!!((f=c.component)!=null&&f.proxy)},l=c=>{const u=ea(c),f=[];return u.forEach(h=>{var m,p;s(h)?f.push(h.component.proxy):(m=h.children)!=null&&m.length?f.push(...l(h.children)):(p=h.component)!=null&&p.subTree&&f.push(...l(h.component.subTree))}),f},d=()=>{a.value=l(r.subTree)};return o.onMounted(()=>{d()}),lB(n,d,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:i,ns:t}}});function W9(e,t,n,r,a,i){return o.withDirectives((o.openBlock(),o.createElementBlock("ul",{ref:"groupRef",class:o.normalizeClass(e.ns.be("group","wrap"))},[o.createElementVNode("li",{class:o.normalizeClass(e.ns.be("group","title"))},o.toDisplayString(e.label),3),o.createElementVNode("li",null,[o.createElementVNode("ul",{class:o.normalizeClass(e.ns.b("group"))},[o.renderSlot(e.$slots,"default")],2)])],2)),[[o.vShow,e.visible]])}var n2=qe(q9,[["render",W9],["__file","option-group.vue"]]);const Rl=zt(U9,{Option:Kh,OptionGroup:n2}),tu=Vr(Kh);Vr(n2);const Gh=()=>o.inject(Qb,{}),K9=We({pageSize:{type:Number,required:!0},pageSizes:{type:Ae(Array),default:()=>ta([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:Vd},appendSizeTo:String}),G9=o.defineComponent({name:"ElPaginationSizes"}),X9=o.defineComponent({...G9,props:K9,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:r}=yr(),a=Ue("pagination"),i=Gh(),s=o.ref(n.pageSize);o.watch(()=>n.pageSizes,(c,u)=>{if(!oo(c,u)&&Array.isArray(c)){const f=c.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",f)}}),o.watch(()=>n.pageSize,c=>{s.value=c});const l=o.computed(()=>n.pageSizes);function d(c){var u;c!==s.value&&(s.value=c,(u=i.handleSizeChange)==null||u.call(i,Number(c)))}return(c,u)=>(o.openBlock(),o.createElementBlock("span",{class:o.normalizeClass(o.unref(a).e("sizes"))},[o.createVNode(o.unref(Rl),{"model-value":s.value,disabled:c.disabled,"popper-class":c.popperClass,size:c.size,teleported:c.teleported,"validate-event":!1,"append-to":c.appendSizeTo,onChange:d},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(l),f=>(o.openBlock(),o.createBlock(o.unref(tu),{key:f,value:f,label:f+o.unref(r)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported","append-to"])],2))}});var Y9=qe(X9,[["__file","sizes.vue"]]);const Z9=We({size:{type:String,values:Vd}}),J9=o.defineComponent({name:"ElPaginationJumper"}),Q9=o.defineComponent({...J9,props:Z9,setup(e){const{t}=yr(),n=Ue("pagination"),{pageCount:r,disabled:a,currentPage:i,changeEvent:s}=Gh(),l=o.ref(),d=o.computed(()=>{var f;return(f=l.value)!=null?f:i==null?void 0:i.value});function c(f){l.value=f?+f:""}function u(f){f=Math.trunc(+f),s==null||s(f),l.value=void 0}return(f,h)=>(o.openBlock(),o.createElementBlock("span",{class:o.normalizeClass(o.unref(n).e("jump")),disabled:o.unref(a)},[o.createElementVNode("span",{class:o.normalizeClass([o.unref(n).e("goto")])},o.toDisplayString(o.unref(t)("el.pagination.goto")),3),o.createVNode(o.unref(Wd),{size:f.size,class:o.normalizeClass([o.unref(n).e("editor"),o.unref(n).is("in-pagination")]),min:1,max:o.unref(r),disabled:o.unref(a),"model-value":o.unref(d),"validate-event":!1,"aria-label":o.unref(t)("el.pagination.page"),type:"number","onUpdate:modelValue":c,onChange:u},null,8,["size","class","max","disabled","model-value","aria-label"]),o.createElementVNode("span",{class:o.normalizeClass([o.unref(n).e("classifier")])},o.toDisplayString(o.unref(t)("el.pagination.pageClassifier")),3)],10,["disabled"]))}});var eD=qe(Q9,[["__file","jumper.vue"]]);const tD=We({total:{type:Number,default:1e3}}),nD=o.defineComponent({name:"ElPaginationTotal"}),rD=o.defineComponent({...nD,props:tD,setup(e){const{t}=yr(),n=Ue("pagination"),{disabled:r}=Gh();return(a,i)=>(o.openBlock(),o.createElementBlock("span",{class:o.normalizeClass(o.unref(n).e("total")),disabled:o.unref(r)},o.toDisplayString(o.unref(t)("el.pagination.total",{total:a.total})),11,["disabled"]))}});var oD=qe(rD,[["__file","total.vue"]]);const aD=We({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),iD=o.defineComponent({name:"ElPaginationPager"}),sD=o.defineComponent({...iD,props:aD,emits:["change"],setup(e,{emit:t}){const n=e,r=Ue("pager"),a=Ue("icon"),{t:i}=yr(),s=o.ref(!1),l=o.ref(!1),d=o.ref(!1),c=o.ref(!1),u=o.ref(!1),f=o.ref(!1),h=o.computed(()=>{const w=n.pagerCount,k=(w-1)/2,C=Number(n.currentPage),E=Number(n.pageCount);let S=!1,_=!1;E>w&&(C>w-k&&(S=!0),C["more","btn-quickprev",a.b(),r.is("disabled",n.disabled)]),p=o.computed(()=>["more","btn-quicknext",a.b(),r.is("disabled",n.disabled)]),g=o.computed(()=>n.disabled?-1:0);o.watchEffect(()=>{const w=(n.pagerCount-1)/2;s.value=!1,l.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-w&&(s.value=!0),n.currentPageE&&(C=E)),C!==S&&t("change",C)}return(w,k)=>(o.openBlock(),o.createElementBlock("ul",{class:o.normalizeClass(o.unref(r).b()),onClick:x,onKeyup:o.withKeys(b,["enter"])},[w.pageCount>0?(o.openBlock(),o.createElementBlock("li",{key:0,class:o.normalizeClass([[o.unref(r).is("active",w.currentPage===1),o.unref(r).is("disabled",w.disabled)],"number"]),"aria-current":w.currentPage===1,"aria-label":o.unref(i)("el.pagination.currentPage",{pager:1}),tabindex:o.unref(g)}," 1 ",10,["aria-current","aria-label","tabindex"])):o.createCommentVNode("v-if",!0),s.value?(o.openBlock(),o.createElementBlock("li",{key:1,class:o.normalizeClass(o.unref(m)),tabindex:o.unref(g),"aria-label":o.unref(i)("el.pagination.prevPages",{pager:w.pagerCount-2}),onMouseenter:C=>v(!0),onMouseleave:C=>d.value=!1,onFocus:C=>y(!0),onBlur:C=>u.value=!1},[(d.value||u.value)&&!w.disabled?(o.openBlock(),o.createBlock(o.unref(j6),{key:0})):(o.openBlock(),o.createBlock(o.unref(lv),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):o.createCommentVNode("v-if",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(h),C=>(o.openBlock(),o.createElementBlock("li",{key:C,class:o.normalizeClass([[o.unref(r).is("active",w.currentPage===C),o.unref(r).is("disabled",w.disabled)],"number"]),"aria-current":w.currentPage===C,"aria-label":o.unref(i)("el.pagination.currentPage",{pager:C}),tabindex:o.unref(g)},o.toDisplayString(C),11,["aria-current","aria-label","tabindex"]))),128)),l.value?(o.openBlock(),o.createElementBlock("li",{key:2,class:o.normalizeClass(o.unref(p)),tabindex:o.unref(g),"aria-label":o.unref(i)("el.pagination.nextPages",{pager:w.pagerCount-2}),onMouseenter:C=>v(),onMouseleave:C=>c.value=!1,onFocus:C=>y(),onBlur:C=>f.value=!1},[(c.value||f.value)&&!w.disabled?(o.openBlock(),o.createBlock(o.unref(U6),{key:0})):(o.openBlock(),o.createBlock(o.unref(lv),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):o.createCommentVNode("v-if",!0),w.pageCount>1?(o.openBlock(),o.createElementBlock("li",{key:3,class:o.normalizeClass([[o.unref(r).is("active",w.currentPage===w.pageCount),o.unref(r).is("disabled",w.disabled)],"number"]),"aria-current":w.currentPage===w.pageCount,"aria-label":o.unref(i)("el.pagination.currentPage",{pager:w.pageCount}),tabindex:o.unref(g)},o.toDisplayString(w.pageCount),11,["aria-current","aria-label","tabindex"])):o.createCommentVNode("v-if",!0)],42,["onKeyup"]))}});var lD=qe(sD,[["__file","pager.vue"]]);const Vn=e=>typeof e!="number",cD=We({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>pt(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:Ae(Array),default:()=>ta([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:gr,default:()=>fh},nextText:{type:String,default:""},nextIcon:{type:gr,default:()=>Fd},teleported:{type:Boolean,default:!0},small:Boolean,size:$o,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean,appendSizeTo:String}),dD={"update:current-page":e=>pt(e),"update:page-size":e=>pt(e),"size-change":e=>pt(e),change:(e,t)=>pt(e)&&pt(t),"current-change":e=>pt(e),"prev-click":e=>pt(e),"next-click":e=>pt(e)},r2="ElPagination";var uD=o.defineComponent({name:r2,props:cD,emits:dD,setup(e,{emit:t,slots:n}){const{t:r}=yr(),a=Ue("pagination"),i=o.getCurrentInstance().vnode.props||{},s=Yv(),l=o.computed(()=>{var k;return e.small?"small":(k=e.size)!=null?k:s.value});Xa({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},o.computed(()=>!!e.small));const d="onUpdate:currentPage"in i||"onUpdate:current-page"in i||"onCurrentChange"in i,c="onUpdate:pageSize"in i||"onUpdate:page-size"in i||"onSizeChange"in i,u=o.computed(()=>{if(Vn(e.total)&&Vn(e.pageCount)||!Vn(e.currentPage)&&!d)return!1;if(e.layout.includes("sizes")){if(Vn(e.pageCount)){if(!Vn(e.total)&&!Vn(e.pageSize)&&!c)return!1}else if(!c)return!1}return!0}),f=o.ref(Vn(e.defaultPageSize)?10:e.defaultPageSize),h=o.ref(Vn(e.defaultCurrentPage)?1:e.defaultCurrentPage),m=o.computed({get(){return Vn(e.pageSize)?f.value:e.pageSize},set(k){Vn(e.pageSize)&&(f.value=k),c&&(t("update:page-size",k),t("size-change",k))}}),p=o.computed(()=>{let k=0;return Vn(e.pageCount)?Vn(e.total)||(k=Math.max(1,Math.ceil(e.total/m.value))):k=e.pageCount,k}),g=o.computed({get(){return Vn(e.currentPage)?h.value:e.currentPage},set(k){let C=k;k<1?C=1:k>p.value&&(C=p.value),Vn(e.currentPage)&&(h.value=C),d&&(t("update:current-page",C),t("current-change",C))}});o.watch(p,k=>{g.value>k&&(g.value=k)}),o.watch([g,m],k=>{t("change",...k)},{flush:"post"});function v(k){g.value=k}function y(k){m.value=k;const C=p.value;g.value>C&&(g.value=C)}function b(){e.disabled||(g.value-=1,t("prev-click",g.value))}function x(){e.disabled||(g.value+=1,t("next-click",g.value))}function w(k,C){k&&(k.props||(k.props={}),k.props.class=[k.props.class,C].join(" "))}return o.provide(Qb,{pageCount:p,disabled:o.computed(()=>e.disabled),currentPage:g,changeEvent:v,handleSizeChange:y}),()=>{var k,C;if(!u.value)return Mt(r2,r("el.pagination.deprecationWarning")),null;if(!e.layout||e.hideOnSinglePage&&p.value<=1)return null;const E=[],S=[],_=o.h("div",{class:a.e("rightwrapper")},S),O={prev:o.h(B9,{disabled:e.disabled,currentPage:g.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:b}),jumper:o.h(eD,{size:l.value}),pager:o.h(lD,{currentPage:g.value,pageCount:p.value,pagerCount:e.pagerCount,onChange:v,disabled:e.disabled}),next:o.h(P9,{disabled:e.disabled,currentPage:g.value,pageCount:p.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:x}),sizes:o.h(Y9,{pageSize:m.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:l.value,appendSizeTo:e.appendSizeTo}),slot:(C=(k=n==null?void 0:n.default)==null?void 0:k.call(n))!=null?C:null,total:o.h(oD,{total:Vn(e.total)?0:e.total})},T=e.layout.split(",").map(F=>F.trim());let N=!1;return T.forEach(F=>{if(F==="->"){N=!0;return}N?S.push(O[F]):E.push(O[F])}),w(E[0],a.is("first")),w(E[E.length-1],a.is("last")),N&&S.length>0&&(w(S[0],a.is("first")),w(S[S.length-1],a.is("last")),E.push(_)),o.h("div",{class:[a.b(),a.is("background",e.background),a.m(l.value)]},E)}}});const o2=zt(uD),fD=We({trigger:Dl.trigger,placement:Wh.placement,disabled:Dl.disabled,visible:Un.visible,transition:Un.transition,popperOptions:Wh.popperOptions,tabindex:Wh.tabindex,content:Un.content,popperStyle:Un.popperStyle,popperClass:Un.popperClass,enterable:{...Un.enterable,default:!0},effect:{...Un.effect,default:"light"},teleported:Un.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}}),pD={"update:visible":e=>ao(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},hD="onUpdate:visible",mD=o.defineComponent({name:"ElPopover"}),gD=o.defineComponent({...mD,props:fD,emits:pD,setup(e,{expose:t,emit:n}){const r=e,a=o.computed(()=>r[hD]),i=Ue("popover"),s=o.ref(),l=o.computed(()=>{var v;return(v=o.unref(s))==null?void 0:v.popperRef}),d=o.computed(()=>[{width:Zi(r.width)},r.popperStyle]),c=o.computed(()=>[i.b(),r.popperClass,{[i.m("plain")]:!!r.content}]),u=o.computed(()=>r.transition===`${i.namespace.value}-fade-in-linear`),f=()=>{var v;(v=s.value)==null||v.hide()},h=()=>{n("before-enter")},m=()=>{n("before-leave")},p=()=>{n("after-enter")},g=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:l,hide:f}),(v,y)=>(o.openBlock(),o.createBlock(o.unref(Zd),o.mergeProps({ref_key:"tooltipRef",ref:s},v.$attrs,{trigger:v.trigger,placement:v.placement,disabled:v.disabled,visible:v.visible,transition:v.transition,"popper-options":v.popperOptions,tabindex:v.tabindex,content:v.content,offset:v.offset,"show-after":v.showAfter,"hide-after":v.hideAfter,"auto-close":v.autoClose,"show-arrow":v.showArrow,"aria-label":v.title,effect:v.effect,enterable:v.enterable,"popper-class":o.unref(c),"popper-style":o.unref(d),teleported:v.teleported,persistent:v.persistent,"gpu-acceleration":o.unref(u),"onUpdate:visible":o.unref(a),onBeforeShow:h,onBeforeHide:m,onShow:p,onHide:g}),{content:o.withCtx(()=>[v.title?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(o.unref(i).e("title")),role:"title"},o.toDisplayString(v.title),3)):o.createCommentVNode("v-if",!0),o.renderSlot(v.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(v.content),1)])]),default:o.withCtx(()=>[v.$slots.reference?o.renderSlot(v.$slots,"reference",{key:0}):o.createCommentVNode("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 yD=qe(gD,[["__file","popover.vue"]]);const a2=(e,t)=>{const n=t.arg||t.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=e)};var vD={mounted(e,t){a2(e,t)},updated(e,t){a2(e,t)}};const bD=aP(vD,"popover"),Xh=zt(yD,{directive:bD});function wD(e){let t;const n=o.ref(!1),r=o.reactive({...e,originalPosition:"",originalOverflow:"",visible:!1});function a(h){r.text=h}function i(){const h=r.parent,m=f.ns;if(!h.vLoadingAddClassList){let p=h.getAttribute("loading-number");p=Number.parseInt(p)-1,p?h.setAttribute("loading-number",p.toString()):(El(h,m.bm("parent","relative")),h.removeAttribute("loading-number")),El(h,m.bm("parent","hidden"))}s(),u.unmount()}function s(){var h,m;(m=(h=f.$el)==null?void 0:h.parentNode)==null||m.removeChild(f.$el)}function l(){var h;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=setTimeout(d,400),r.visible=!1,(h=e.closed)==null||h.call(e))}function d(){if(!n.value)return;const h=r.parent;n.value=!1,h.vLoadingAddClassList=void 0,i()}const c=o.defineComponent({name:"ElLoading",setup(h,{expose:m}){const{ns:p,zIndex:g}=V$("loading");return m({ns:p,zIndex:g}),()=>{const v=r.spinner||r.svg,y=o.h("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...v?{innerHTML:v}:{}},[o.h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),b=r.text?o.h("p",{class:p.b("text")},[r.text]):void 0;return o.h(o.Transition,{name:p.b("fade"),onAfterLeave:d},{default:o.withCtx(()=>[o.withDirectives(o.createVNode("div",{style:{backgroundColor:r.background||""},class:[p.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[o.h("div",{class:p.b("spinner")},[y,b])]),[[o.vShow,r.visible]])])})}}}),u=o.createApp(c),f=u.mount(document.createElement("div"));return{...o.toRefs(r),setText:a,removeElLoadingChild:s,close:l,handleAfterLeave:d,vm:f,get $el(){return f.$el}}}let nu;const xD=function(e={}){if(!kt)return;const t=CD(e);if(t.fullscreen&&nu)return nu;const n=wD({...t,closed:()=>{var a;(a=t.closed)==null||a.call(t),t.fullscreen&&(nu=void 0)}});kD(t,t.parent,n),i2(t,t.parent,n),t.parent.vLoadingAddClassList=()=>i2(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),o.nextTick(()=>n.visible.value=t.visible),t.fullscreen&&(nu=n),n},CD=e=>{var t,n,r,a;let i;return zn(e.target)?i=(t=document.querySelector(e.target))!=null?t:document.body:i=e.target||document.body,{parent:i===document.body||e.body?document.body:i,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:i===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(r=e.lock)!=null?r:!1,customClass:e.customClass||"",visible:(a=e.visible)!=null?a:!0,beforeClose:e.beforeClose,closed:e.closed,target:i}},kD=async(e,t,n)=>{const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,a={};if(e.fullscreen)n.originalPosition.value=Yi(document.body,"position"),n.originalOverflow.value=Yi(document.body,"overflow"),a.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=Yi(document.body,"position"),await o.nextTick();for(const i of["top","left"]){const s=i==="top"?"scrollTop":"scrollLeft";a[i]=`${e.target.getBoundingClientRect()[i]+document.body[s]+document.documentElement[s]-Number.parseInt(Yi(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])a[i]=`${e.target.getBoundingClientRect()[i]}px`}else n.originalPosition.value=Yi(t,"position");for(const[i,s]of Object.entries(a))n.$el.style[i]=s},i2=(e,t,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?El(t,r.bm("parent","relative")):dh(t,r.bm("parent","relative")),e.fullscreen&&e.lock?dh(t,r.bm("parent","hidden")):El(t,r.bm("parent","hidden"))},ru=Symbol("ElLoading"),s2=(e,t)=>{var n,r,a,i;const s=t.instance,l=h=>sn(t.value)?t.value[h]:void 0,d=h=>{const m=zn(h)&&(s==null?void 0:s[h])||h;return m&&o.ref(m)},c=h=>d(l(h)||e.getAttribute(`element-loading-${xB(h)}`)),u=(n=l("fullscreen"))!=null?n:t.modifiers.fullscreen,f={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:u,target:(r=l("target"))!=null?r:u?void 0:e,body:(a=l("body"))!=null?a:t.modifiers.body,lock:(i=l("lock"))!=null?i:t.modifiers.lock};e[ru]={options:f,instance:xD(f)}},ED=(e,t)=>{for(const n of Object.keys(t))o.isRef(t[n])&&(t[n].value=e[n])},ou={mounted(e,t){t.value&&s2(e,t)},updated(e,t){const n=e[ru];t.oldValue!==t.value&&(t.value&&!t.oldValue?s2(e,t):t.value&&t.oldValue?sn(t.value)&&ED(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[ru])==null||t.instance.close(),e[ru]=null}},zr=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},SD={name:"BadgesGroup",components:{Button:ar},props:{additionalLinks:{type:Array,default:()=>[]},datasetBiolucida:{type:Object,default:()=>({})},entry:{type:Object,default:()=>({})}},data:function(){return{categories:{All:{size:1},Dataset:{size:1}},active:"All"}},methods:{addToCategories:function(e,t){e&&e.length>0&&(this.categories[t]={size:e.length},this.categories.All.size+=e.length)},addSimulationsToCategories:function(e){e&&e.length>0&&(this.categories.Simulations={size:1},this.categories.All.size+=1)},categoryClicked:function(e){this.active=e,this.$emit("categoryChanged",e)}},watch:{datasetBiolucida:{deep:!0,immediate:!0,handler:function(e){"dataset_images"in e&&this.addToCategories(e.dataset_images,"Images")}},entry:{deep:!0,immediate:!0,handler:function(){this.addToCategories(this.entry.scaffolds,"Scaffolds"),this.addToCategories(this.entry.segmentation,"Segmentations"),this.addToCategories(this.entry.plots,"Plots"),this.addSimulationsToCategories(this.entry.simulation)}}}},_D=e=>(o.pushScopeId("data-v-da8a77c1"),e=e(),o.popScopeId(),e),BD={key:0,class:"container",ref:"container"},TD=_D(()=>o.createElementVNode("div",null,"View data types:",-1));function ND(e,t,n,r,a,i){const s=ar;return e.categories.All.size>1?(o.openBlock(),o.createElementBlock("div",BD,[TD,(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.categories,(l,d)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[l.size>0?(o.openBlock(),o.createBlock(s,{class:o.normalizeClass([{active:d==e.active},"tag-button"]),onClick:c=>i.categoryClicked(d),size:"small",key:d},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(d+" ("+l.size+")"),1)]),_:2},1032,["class","onClick"])):o.createCommentVNode("",!0)],64))),256))],512)):o.createCommentVNode("",!0)}const l2=zr(SD,[["render",ND],["__scopeId","data-v-da8a77c1"]]);function c2(e,t){return function(){return e.apply(t,arguments)}}const{toString:OD}=Object.prototype,{getPrototypeOf:Yh}=Object,au=(e=>t=>{const n=OD.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),jr=e=>(e=e.toLowerCase(),t=>au(t)===e),iu=e=>t=>typeof t===e,{isArray:cs}=Array,Ll=iu("undefined");function PD(e){return e!==null&&!Ll(e)&&e.constructor!==null&&!Ll(e.constructor)&&ir(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const d2=jr("ArrayBuffer");function $D(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&d2(e.buffer),t}const FD=iu("string"),ir=iu("function"),u2=iu("number"),su=e=>e!==null&&typeof e=="object",AD=e=>e===!0||e===!1,lu=e=>{if(au(e)!=="object")return!1;const t=Yh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ID=jr("Date"),DD=jr("File"),VD=jr("Blob"),RD=jr("FileList"),LD=e=>su(e)&&ir(e.pipe),MD=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ir(e.append)&&((t=au(e))==="formdata"||t==="object"&&ir(e.toString)&&e.toString()==="[object FormData]"))},zD=jr("URLSearchParams"),[jD,HD,UD,qD]=["ReadableStream","Request","Response","Headers"].map(jr),WD=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ml(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),cs(e))for(r=0,a=e.length;r0;)if(a=n[r],t===a.toLowerCase())return a;return null}const Qa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,p2=e=>!Ll(e)&&e!==Qa;function Zh(){const{caseless:e}=p2(this)&&this||{},t={},n=(r,a)=>{const i=e&&f2(t,a)||a;lu(t[i])&&lu(r)?t[i]=Zh(t[i],r):lu(r)?t[i]=Zh({},r):cs(r)?t[i]=r.slice():t[i]=r};for(let r=0,a=arguments.length;r(Ml(t,(a,i)=>{n&&ir(a)?e[i]=c2(a,n):e[i]=a},{allOwnKeys:r}),e),GD=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),XD=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},YD=(e,t,n,r)=>{let a,i,s;const l={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)s=a[i],(!r||r(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&Yh(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ZD=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},JD=e=>{if(!e)return null;if(cs(e))return e;let t=e.length;if(!u2(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},QD=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Yh(Uint8Array)),eV=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},tV=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},nV=jr("HTMLFormElement"),rV=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),h2=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),oV=jr("RegExp"),m2=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ml(n,(a,i)=>{let s;(s=t(a,i,e))!==!1&&(r[i]=s||a)}),Object.defineProperties(e,r)},aV=e=>{m2(e,(t,n)=>{if(ir(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(ir(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},iV=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return cs(e)?r(e):r(String(e).split(t)),n},sV=()=>{},lV=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Jh="abcdefghijklmnopqrstuvwxyz",g2="0123456789",y2={DIGIT:g2,ALPHA:Jh,ALPHA_DIGIT:Jh+Jh.toUpperCase()+g2},cV=(e=16,t=y2.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function dV(e){return!!(e&&ir(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const uV=e=>{const t=new Array(10),n=(r,a)=>{if(su(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[a]=r;const i=cs(r)?[]:{};return Ml(r,(s,l)=>{const d=n(s,a+1);!Ll(d)&&(i[l]=d)}),t[a]=void 0,i}}return r};return n(e,0)},fV=jr("AsyncFunction"),pV=e=>e&&(su(e)||ir(e))&&ir(e.then)&&ir(e.catch),v2=((e,t)=>e?setImmediate:t?((n,r)=>(Qa.addEventListener("message",({source:a,data:i})=>{a===Qa&&i===n&&r.length&&r.shift()()},!1),a=>{r.push(a),Qa.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",ir(Qa.postMessage)),hV=typeof queueMicrotask<"u"?queueMicrotask.bind(Qa):typeof process<"u"&&process.nextTick||v2,ce={isArray:cs,isArrayBuffer:d2,isBuffer:PD,isFormData:MD,isArrayBufferView:$D,isString:FD,isNumber:u2,isBoolean:AD,isObject:su,isPlainObject:lu,isReadableStream:jD,isRequest:HD,isResponse:UD,isHeaders:qD,isUndefined:Ll,isDate:ID,isFile:DD,isBlob:VD,isRegExp:oV,isFunction:ir,isStream:LD,isURLSearchParams:zD,isTypedArray:QD,isFileList:RD,forEach:Ml,merge:Zh,extend:KD,trim:WD,stripBOM:GD,inherits:XD,toFlatObject:YD,kindOf:au,kindOfTest:jr,endsWith:ZD,toArray:JD,forEachEntry:eV,matchAll:tV,isHTMLForm:nV,hasOwnProperty:h2,hasOwnProp:h2,reduceDescriptors:m2,freezeMethods:aV,toObjectSet:iV,toCamelCase:rV,noop:sV,toFiniteNumber:lV,findKey:f2,global:Qa,isContextDefined:p2,ALPHABET:y2,generateString:cV,isSpecCompliantForm:dV,toJSONObject:uV,isAsyncFn:fV,isThenable:pV,setImmediate:v2,asap:hV};function Ze(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a)}ce.inherits(Ze,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ce.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const b2=Ze.prototype,w2={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{w2[e]={value:e}}),Object.defineProperties(Ze,w2),Object.defineProperty(b2,"isAxiosError",{value:!0}),Ze.from=(e,t,n,r,a,i)=>{const s=Object.create(b2);return ce.toFlatObject(e,s,function(d){return d!==Error.prototype},l=>l!=="isAxiosError"),Ze.call(s,e.message,t,n,r,a),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const mV=null;function Qh(e){return ce.isPlainObject(e)||ce.isArray(e)}function x2(e){return ce.endsWith(e,"[]")?e.slice(0,-2):e}function C2(e,t,n){return e?e.concat(t).map(function(a,i){return a=x2(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function gV(e){return ce.isArray(e)&&!e.some(Qh)}const yV=ce.toFlatObject(ce,{},null,function(t){return/^is[A-Z]/.test(t)});function cu(e,t,n){if(!ce.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ce.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,v){return!ce.isUndefined(v[g])});const r=n.metaTokens,a=n.visitor||u,i=n.dots,s=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&ce.isSpecCompliantForm(t);if(!ce.isFunction(a))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(ce.isDate(p))return p.toISOString();if(!d&&ce.isBlob(p))throw new Ze("Blob is not supported. Use a Buffer instead.");return ce.isArrayBuffer(p)||ce.isTypedArray(p)?d&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,g,v){let y=p;if(p&&!v&&typeof p=="object"){if(ce.endsWith(g,"{}"))g=r?g:g.slice(0,-2),p=JSON.stringify(p);else if(ce.isArray(p)&&gV(p)||(ce.isFileList(p)||ce.endsWith(g,"[]"))&&(y=ce.toArray(p)))return g=x2(g),y.forEach(function(x,w){!(ce.isUndefined(x)||x===null)&&t.append(s===!0?C2([g],w,i):s===null?g:g+"[]",c(x))}),!1}return Qh(p)?!0:(t.append(C2(v,g,i),c(p)),!1)}const f=[],h=Object.assign(yV,{defaultVisitor:u,convertValue:c,isVisitable:Qh});function m(p,g){if(!ce.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(p),ce.forEach(p,function(y,b){(!(ce.isUndefined(y)||y===null)&&a.call(t,y,ce.isString(b)?b.trim():b,g,h))===!0&&m(y,g?g.concat(b):[b])}),f.pop()}}if(!ce.isObject(e))throw new TypeError("data must be an object");return m(e),t}function k2(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function em(e,t){this._pairs=[],e&&cu(e,this,t)}const E2=em.prototype;E2.append=function(t,n){this._pairs.push([t,n])},E2.toString=function(t){const n=t?function(r){return t.call(this,r,k2)}:k2;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function vV(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function S2(e,t,n){if(!t)return e;const r=n&&n.encode||vV,a=n&&n.serialize;let i;if(a?i=a(t,n):i=ce.isURLSearchParams(t)?t.toString():new em(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class _2{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ce.forEach(this.handlers,function(r){r!==null&&t(r)})}}const B2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},bV={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:em,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},tm=typeof window<"u"&&typeof document<"u",wV=(e=>tm&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),xV=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",CV=tm&&window.location.href||"http://localhost",Hr={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:tm,hasStandardBrowserEnv:wV,hasStandardBrowserWebWorkerEnv:xV,origin:CV},Symbol.toStringTag,{value:"Module"})),...bV};function kV(e,t){return cu(e,new Hr.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,i){return Hr.isNode&&ce.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function EV(e){return ce.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function SV(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r=n.length;return s=!s&&ce.isArray(a)?a.length:s,d?(ce.hasOwnProp(a,s)?a[s]=[a[s],r]:a[s]=r,!l):((!a[s]||!ce.isObject(a[s]))&&(a[s]=[]),t(n,r,a[s],i)&&ce.isArray(a[s])&&(a[s]=SV(a[s])),!l)}if(ce.isFormData(e)&&ce.isFunction(e.entries)){const n={};return ce.forEachEntry(e,(r,a)=>{t(EV(r),a,n,0)}),n}return null}function _V(e,t,n){if(ce.isString(e))try{return(t||JSON.parse)(e),ce.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const zl={transitional:B2,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=ce.isObject(t);if(i&&ce.isHTMLForm(t)&&(t=new FormData(t)),ce.isFormData(t))return a?JSON.stringify(T2(t)):t;if(ce.isArrayBuffer(t)||ce.isBuffer(t)||ce.isStream(t)||ce.isFile(t)||ce.isBlob(t)||ce.isReadableStream(t))return t;if(ce.isArrayBufferView(t))return t.buffer;if(ce.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return kV(t,this.formSerializer).toString();if((l=ce.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return cu(l?{"files[]":t}:t,d&&new d,this.formSerializer)}}return i||a?(n.setContentType("application/json",!1),_V(t)):t}],transformResponse:[function(t){const n=this.transitional||zl.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(ce.isResponse(t)||ce.isReadableStream(t))return t;if(t&&ce.isString(t)&&(r&&!this.responseType||a)){const s=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?Ze.from(l,Ze.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Hr.classes.FormData,Blob:Hr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ce.forEach(["delete","get","head","post","put","patch"],e=>{zl.headers[e]={}});const BV=ce.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),TV=e=>{const t={};let n,r,a;return e&&e.split(` `).forEach(function(s){a=s.indexOf(":"),n=s.substring(0,a).trim().toLowerCase(),r=s.substring(a+1).trim(),!(!n||t[n]&&BV[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},N2=Symbol("internals");function jl(e){return e&&String(e).trim().toLowerCase()}function du(e){return e===!1||e==null?e:ce.isArray(e)?e.map(du):String(e)}function NV(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const OV=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function nm(e,t,n,r,a){if(ce.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!ce.isString(t)){if(ce.isString(r))return t.indexOf(r)!==-1;if(ce.isRegExp(r))return r.test(t)}}function PV(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function $V(e,t){const n=ce.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,i,s){return this[r].call(this,t,a,i,s)},configurable:!0})})}class qn{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(l,d,c){const u=jl(d);if(!u)throw new Error("header name must be a non-empty string");const f=ce.findKey(a,u);(!f||a[f]===void 0||c===!0||c===void 0&&a[f]!==!1)&&(a[f||d]=du(l))}const s=(l,d)=>ce.forEach(l,(c,u)=>i(c,u,d));if(ce.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(ce.isString(t)&&(t=t.trim())&&!OV(t))s(TV(t),n);else if(ce.isHeaders(t))for(const[l,d]of t.entries())i(d,l,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=jl(t),t){const r=ce.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return NV(a);if(ce.isFunction(n))return n.call(this,a,r);if(ce.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=jl(t),t){const r=ce.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||nm(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(s){if(s=jl(s),s){const l=ce.findKey(r,s);l&&(!n||nm(r,r[l],l,n))&&(delete r[l],a=!0)}}return ce.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!t||nm(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return ce.forEach(this,(a,i)=>{const s=ce.findKey(r,i);if(s){n[s]=du(a),delete n[i];return}const l=t?PV(i):String(i).trim();l!==i&&delete n[i],n[l]=du(a),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ce.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&ce.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[N2]=this[N2]={accessors:{}}).accessors,a=this.prototype;function i(s){const l=jl(s);r[l]||($V(a,s),r[l]=!0)}return ce.isArray(t)?t.forEach(i):i(t),this}}qn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ce.reduceDescriptors(qn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),ce.freezeMethods(qn);function rm(e,t){const n=this||zl,r=t||n,a=qn.from(r.headers);let i=r.data;return ce.forEach(e,function(l){i=l.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function O2(e){return!!(e&&e.__CANCEL__)}function ds(e,t,n){Ze.call(this,e??"canceled",Ze.ERR_CANCELED,t,n),this.name="CanceledError"}ce.inherits(ds,Ze,{__CANCEL__:!0});function P2(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ze("Request failed with status code "+n.status,[Ze.ERR_BAD_REQUEST,Ze.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function FV(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function AV(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,s;return t=t!==void 0?t:1e3,function(d){const c=Date.now(),u=r[i];s||(s=c),n[a]=d,r[a]=c;let f=i,h=0;for(;f!==a;)h+=n[f++],f=f%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),c-s{n=u,a=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),f=u-n;f>=r?s(c,u):(a=c,i||(i=setTimeout(()=>{i=null,s(a)},r-f)))},()=>a&&s(a)]}const uu=(e,t,n=3)=>{let r=0;const a=AV(50,250);return IV(i=>{const s=i.loaded,l=i.lengthComputable?i.total:void 0,d=s-r,c=a(d),u=s<=l;r=s;const f={loaded:s,total:l,progress:l?s/l:void 0,bytes:d,rate:c||void 0,estimated:c&&l&&u?(l-s)/c:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},$2=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},F2=e=>(...t)=>ce.asap(()=>e(...t)),DV=Hr.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function a(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(s){const l=ce.isString(s)?a(s):s;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}(),VV=Hr.hasStandardBrowserEnv?{write(e,t,n,r,a,i){const s=[e+"="+encodeURIComponent(t)];ce.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),ce.isString(r)&&s.push("path="+r),ce.isString(a)&&s.push("domain="+a),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function RV(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function LV(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function A2(e,t){return e&&!RV(t)?LV(e,t):t}const I2=e=>e instanceof qn?{...e}:e;function ei(e,t){t=t||{};const n={};function r(c,u,f){return ce.isPlainObject(c)&&ce.isPlainObject(u)?ce.merge.call({caseless:f},c,u):ce.isPlainObject(u)?ce.merge({},u):ce.isArray(u)?u.slice():u}function a(c,u,f){if(ce.isUndefined(u)){if(!ce.isUndefined(c))return r(void 0,c,f)}else return r(c,u,f)}function i(c,u){if(!ce.isUndefined(u))return r(void 0,u)}function s(c,u){if(ce.isUndefined(u)){if(!ce.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function l(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const d={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(c,u)=>a(I2(c),I2(u),!0)};return ce.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=d[u]||a,h=f(e[u],t[u],u);ce.isUndefined(h)&&f!==l||(n[u]=h)}),n}const D2=e=>{const t=ei({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:i,headers:s,auth:l}=t;t.headers=s=qn.from(s),t.url=S2(A2(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let d;if(ce.isFormData(n)){if(Hr.hasStandardBrowserEnv||Hr.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((d=s.getContentType())!==!1){const[c,...u]=d?d.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Hr.hasStandardBrowserEnv&&(r&&ce.isFunction(r)&&(r=r(t)),r||r!==!1&&DV(t.url))){const c=a&&i&&VV.read(i);c&&s.set(a,c)}return t},MV=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const a=D2(e);let i=a.data;const s=qn.from(a.headers).normalize();let{responseType:l,onUploadProgress:d,onDownloadProgress:c}=a,u,f,h,m,p;function g(){m&&m(),p&&p(),a.cancelToken&&a.cancelToken.unsubscribe(u),a.signal&&a.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(a.method.toUpperCase(),a.url,!0),v.timeout=a.timeout;function y(){if(!v)return;const x=qn.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),k={data:!l||l==="text"||l==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:x,config:e,request:v};P2(function(E){n(E),g()},function(E){r(E),g()},k),v=null}"onloadend"in v?v.onloadend=y:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(y)},v.onabort=function(){v&&(r(new Ze("Request aborted",Ze.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new Ze("Network Error",Ze.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let w=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const k=a.transitional||B2;a.timeoutErrorMessage&&(w=a.timeoutErrorMessage),r(new Ze(w,k.clarifyTimeoutError?Ze.ETIMEDOUT:Ze.ECONNABORTED,e,v)),v=null},i===void 0&&s.setContentType(null),"setRequestHeader"in v&&ce.forEach(s.toJSON(),function(w,k){v.setRequestHeader(k,w)}),ce.isUndefined(a.withCredentials)||(v.withCredentials=!!a.withCredentials),l&&l!=="json"&&(v.responseType=a.responseType),c&&([h,p]=uu(c,!0),v.addEventListener("progress",h)),d&&v.upload&&([f,m]=uu(d),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",m)),(a.cancelToken||a.signal)&&(u=x=>{v&&(r(!x||x.type?new ds(null,e,v):x),v.abort(),v=null)},a.cancelToken&&a.cancelToken.subscribe(u),a.signal&&(a.signal.aborted?u():a.signal.addEventListener("abort",u)));const b=FV(a.url);if(b&&Hr.protocols.indexOf(b)===-1){r(new Ze("Unsupported protocol "+b+":",Ze.ERR_BAD_REQUEST,e));return}v.send(i||null)})},zV=(e,t)=>{let n=new AbortController,r;const a=function(d){if(!r){r=!0,s();const c=d instanceof Error?d:this.reason;n.abort(c instanceof Ze?c:new ds(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{a(new Ze(`timeout ${t} of ms exceeded`,Ze.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(d=>{d&&(d.removeEventListener?d.removeEventListener("abort",a):d.unsubscribe(a))}),e=null)};e.forEach(d=>d&&d.addEventListener&&d.addEventListener("abort",a));const{signal:l}=n;return l.unsubscribe=s,[l,()=>{i&&clearTimeout(i),i=null}]},jV=function*(e,t){let n=e.byteLength;if(n{const i=HV(e,t,a);let s=0,l,d=c=>{l||(l=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:f}=await i.next();if(u){d(),c.close();return}let h=f.byteLength;if(n){let m=s+=h;n(m)}c.enqueue(new Uint8Array(f))}catch(u){throw d(u),u}},cancel(c){return d(c),i.return()}},{highWaterMark:2})},fu=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",R2=fu&&typeof ReadableStream=="function",om=fu&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),L2=(e,...t)=>{try{return!!e(...t)}catch{return!1}},UV=R2&&L2(()=>{let e=!1;const t=new Request(Hr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),M2=64*1024,am=R2&&L2(()=>ce.isReadableStream(new Response("").body)),pu={stream:am&&(e=>e.body)};fu&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!pu[t]&&(pu[t]=ce.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Ze(`Response type '${t}' is not supported`,Ze.ERR_NOT_SUPPORT,r)})})})(new Response);const qV=async e=>{if(e==null)return 0;if(ce.isBlob(e))return e.size;if(ce.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(ce.isArrayBufferView(e)||ce.isArrayBuffer(e))return e.byteLength;if(ce.isURLSearchParams(e)&&(e=e+""),ce.isString(e))return(await om(e)).byteLength},WV=async(e,t)=>{const n=ce.toFiniteNumber(e.getContentLength());return n??qV(t)},im={http:mV,xhr:MV,fetch:fu&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:i,timeout:s,onDownloadProgress:l,onUploadProgress:d,responseType:c,headers:u,withCredentials:f="same-origin",fetchOptions:h}=D2(e);c=c?(c+"").toLowerCase():"text";let[m,p]=a||i||s?zV([a,i],s):[],g,v;const y=()=>{!g&&setTimeout(()=>{m&&m.unsubscribe()}),g=!0};let b;try{if(d&&UV&&n!=="get"&&n!=="head"&&(b=await WV(u,r))!==0){let C=new Request(t,{method:"POST",body:r,duplex:"half"}),E;if(ce.isFormData(r)&&(E=C.headers.get("content-type"))&&u.setContentType(E),C.body){const[S,_]=$2(b,uu(F2(d)));r=V2(C.body,M2,S,_,om)}}ce.isString(f)||(f=f?"include":"omit"),v=new Request(t,{...h,signal:m,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:f});let x=await fetch(v);const w=am&&(c==="stream"||c==="response");if(am&&(l||w)){const C={};["status","statusText","headers"].forEach(O=>{C[O]=x[O]});const E=ce.toFiniteNumber(x.headers.get("content-length")),[S,_]=l&&$2(E,uu(F2(l),!0))||[];x=new Response(V2(x.body,M2,S,()=>{_&&_(),w&&y()},om),C)}c=c||"text";let k=await pu[ce.findKey(pu,c)||"text"](x,e);return!w&&y(),p&&p(),await new Promise((C,E)=>{P2(C,E,{data:k,headers:qn.from(x.headers),status:x.status,statusText:x.statusText,config:e,request:v})})}catch(x){throw y(),x&&x.name==="TypeError"&&/fetch/i.test(x.message)?Object.assign(new Ze("Network Error",Ze.ERR_NETWORK,e,v),{cause:x.cause||x}):Ze.from(x,x&&x.code,e,v)}})};ce.forEach(im,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const z2=e=>`- ${e}`,KV=e=>ce.isFunction(e)||e===null||e===!1,j2={getAdapter:e=>{e=ce.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let i=0;i`adapter ${l} `+(d===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since : `+i.map(z2).join(` `):" "+z2(i[0]):"as no adapter specified";throw new Ze("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:im};function sm(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ds(null,e)}function H2(e){return sm(e),e.headers=qn.from(e.headers),e.data=rm.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),j2.getAdapter(e.adapter||zl.adapter)(e).then(function(r){return sm(e),r.data=rm.call(e,e.transformResponse,r),r.headers=qn.from(r.headers),r},function(r){return O2(r)||(sm(e),r&&r.response&&(r.response.data=rm.call(e,e.transformResponse,r.response),r.response.headers=qn.from(r.response.headers))),Promise.reject(r)})}const U2="1.7.4",lm={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{lm[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const q2={};lm.transitional=function(t,n,r){function a(i,s){return"[Axios v"+U2+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,l)=>{if(t===!1)throw new Ze(a(s," has been removed"+(n?" in "+n:"")),Ze.ERR_DEPRECATED);return n&&!q2[s]&&(q2[s]=!0,console.warn(a(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,l):!0}};function GV(e,t,n){if(typeof e!="object")throw new Ze("options must be an object",Ze.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],s=t[i];if(s){const l=e[i],d=l===void 0||s(l,i,e);if(d!==!0)throw new Ze("option "+i+" must be "+d,Ze.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ze("Unknown option "+i,Ze.ERR_BAD_OPTION)}}const cm={assertOptions:GV,validators:lm},ua=cm.validators;class ti{constructor(t){this.defaults=t,this.interceptors={request:new _2,response:new _2}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ei(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&cm.assertOptions(r,{silentJSONParsing:ua.transitional(ua.boolean),forcedJSONParsing:ua.transitional(ua.boolean),clarifyTimeoutError:ua.transitional(ua.boolean)},!1),a!=null&&(ce.isFunction(a)?n.paramsSerializer={serialize:a}:cm.assertOptions(a,{encode:ua.function,serialize:ua.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&ce.merge(i.common,i[n.method]);i&&ce.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=qn.concat(s,i);const l=[];let d=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(d=d&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,f=0,h;if(!d){const p=[H2.bind(this),void 0];for(p.unshift.apply(p,l),p.push.apply(p,c),h=p.length,u=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const s=new Promise(l=>{r.subscribe(l),i=l}).then(a);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,l){r.reason||(r.reason=new ds(i,s,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new dm(function(a){t=a}),cancel:t}}}function XV(e){return function(n){return e.apply(null,n)}}function YV(e){return ce.isObject(e)&&e.isAxiosError===!0}const um={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(um).forEach(([e,t])=>{um[t]=e});function W2(e){const t=new ti(e),n=c2(ti.prototype.request,t);return ce.extend(n,ti.prototype,t,{allOwnKeys:!0}),ce.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return W2(ei(e,a))},n}const jt=W2(zl);jt.Axios=ti,jt.CanceledError=ds,jt.CancelToken=dm,jt.isCancel=O2,jt.VERSION=U2,jt.toFormData=cu,jt.AxiosError=Ze,jt.Cancel=jt.CanceledError,jt.all=function(t){return Promise.all(t)},jt.spread=XV,jt.isAxiosError=YV,jt.mergeConfig=ei,jt.AxiosHeaders=qn,jt.formToJSON=e=>T2(ce.isHTMLForm(e)?new FormData(e):e),jt.getAdapter=j2.getAdapter,jt.HttpStatusCode=um,jt.default=jt;const ZV="data:image/svg+xml,%3csvg%20id='logo-sparc-wave-primary'%20data-name='logo-sparc-wave-primary'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20400%20190.5854'%3e%3cdefs%3e%3clinearGradient%20id='linear-gradient'%20y1='96.3505'%20x2='400'%20y2='96.3505'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%230b00bf'/%3e%3cstop%20offset='1'%20stop-color='%23bc00fc'/%3e%3c/linearGradient%3e%3c/defs%3e%3ctitle%3eSPARC%20Logo%3c/title%3e%3cpath%20d='M396.6976,128.6248l-146.2735-3.38a6.5358,6.5358,0,0,0-6.1378,3.9236l-.0612.1407-13.673,31.4482L202.9416,9.5333l-.01-.0685a8.9823,8.9823,0,0,0-17.6624-.0114L163.673,125.3819,3.298,129.2886a3.38,3.38,0,0,0,.0269,6.7592L169.34,138.7635a6.5939,6.5939,0,0,0,6.5373-5.1457l.0571-.2546,17.8534-79.5649L221.26,185.1237l.0256.1243A6.7593,6.7593,0,0,0,234.092,186.52L254.9005,138.66l141.7971-3.2762a3.3805,3.3805,0,0,0,0-6.7592Z'%20style='fill:url(%23linear-gradient)'/%3e%3cpath%20d='M25.6793,0C41.3957,0,51.057,10.0926,51.057,26.0972v9.5162H36.2053V26.0972c0-7.3532-3.8945-11.8219-10.526-11.8219-6.7768,0-10.6691,4.4687-10.6691,11.8219,0,3.8945,1.2982,7.3533,5.4786,11.3908l19.754,18.601C46.5861,62.1441,52.21,68.7778,52.21,79.88c0,16.0047-9.95,26.0973-25.9543,26.0973C10.108,105.9776.1585,95.885.1585,79.88V70.362H15.01V79.88c0,7.3533,4.0375,11.822,11.2455,11.822,7.065,0,11.1025-4.4687,11.1025-11.822,0-4.4709-2.1628-8.6514-6.0551-12.2576L11.1158,48.7357C3.043,41.2372.1585,34.8939.1585,25.666.1585,10.0926,9.82,0,25.6793,0Z'%20style='fill:%230e0e19'/%3e%3cpath%20d='M99.7971,69.7856v35.1821H84.9454V1.01h25.3755c16.0047,0,26.0973,10.0926,26.0973,26.0973V43.6883c0,16.15-10.0926,26.0973-26.0973,26.0973Zm10.3808-13.9849c7.2081,0,11.3908-4.3257,11.3908-11.6789V26.6759c0-7.21-4.1827-11.6811-11.3908-11.6811H99.7971V55.8007Z'%20style='fill:%230e0e19'/%3e%3cpath%20d='M278.5812,108.147H263.73V4.1893h26.0972c16.0047,0,26.0973,10.0926,26.0973,26.0972v14.13c0,9.95-4.3257,17.7363-11.3908,22.205,4.1827,12.6889,10.0926,29.9917,13.8418,41.5254h-15.14L290.6914,70.3708h-12.11Zm11.1-51.7632c7.21,0,11.3907-4.3257,11.3907-11.5338V29.8553c0-7.21-4.18-11.6812-11.3907-11.6812h-11.1v38.21Z'%20style='fill:%230e0e19'/%3e%3cpath%20d='M399.844,73.5414V83.06c0,16.0047-9.9474,26.0973-25.9521,26.0973-16.15,0-26.0972-10.0926-26.0972-26.0973V29.2766c0-16.0046,9.9473-26.0972,26.0972-26.0972,16.0047,0,25.9521,10.0926,25.9521,26.0972v9.5161h-14.85V29.2766c0-7.3532-4.0374-11.822-11.1025-11.822-7.21,0-11.2477,4.4688-11.2477,11.822V83.06c0,7.3533,4.0375,11.822,11.2477,11.822,7.0651,0,11.1025-4.4687,11.1025-11.822V73.5414Z'%20style='fill:%230e0e19'/%3e%3c/svg%3e",JV={data(){return{defaultImg:ZV}},methods:{async getRequest(e,t,n){return await jt({method:"get",url:e,params:t,timeout:n})},getS3FilePath(e,t,n){const r=encodeURIComponent(n);return`${e}/${t}/files/${r}`},findEntryWithPathInArray(e,t){if(t&&e){for(let n=0;n0){let a;if(e&&t){const i=this.findEntryWithPathInArray(t,e.datacite.isSourceOf.path[0]);i&&(a=this.findEntryWithPathInArray(n,i.datacite.isSourceOf.path[0]))}if(a)return a;if(r{let s=t.find(d=>d.id===n.id);const l=i.name;l&&(s.title=l)},i=>(i.message.includes("timeout")&&i.message.includes("exceeded")&&n.fetchAttempts<3&&(n.fetchAttempts+=1,this.getImageInfoFromBiolucida(e,t,n)),Promise.reject("Maximum iterations reached.")))}}},fm=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},QV={class:"indicator-container"},eR=["onClick"],tR={__name:"IndexIndicator",props:{count:{type:Number,default:0},current:{type:Number,default:0}},emits:["clicked"],setup(e,{emit:t}){const n=t;return(r,a)=>(o.openBlock(),o.createElementBlock("div",QV,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.count,(i,s)=>(o.openBlock(),o.createElementBlock("div",{key:"indicator_"+i,class:o.normalizeClass(["indicator",{active:e.current===s}]),onClick:l=>n("clicked",s)},null,10,eR))),128))]))}},nR=fm(tR,[["__scopeId","data-v-afcfce15"]]),Ao=(e,t,{checkForDefaultPrevented:n=!0}={})=>r=>{const a=e==null?void 0:e(r);if(n===!1||!a)return t==null?void 0:t(r)};var K2;const sr=typeof window<"u",rR=e=>typeof e=="string",G2=()=>{},oR=sr&&((K2=window==null?void 0:window.navigator)==null?void 0:K2.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function X2(e){return typeof e=="function"?e():o.unref(e)}function aR(e){return e}function Y2(e){return o.getCurrentScope()?(o.onScopeDispose(e),!0):!1}function ni(e){var t;const n=X2(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Z2=sr?window:void 0;function pm(...e){let t,n,r,a;if(rR(e[0])||Array.isArray(e[0])?([n,r,a]=e,t=Z2):[t,n,r,a]=e,!t)return G2;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},l=(u,f,h,m)=>(u.addEventListener(f,h,m),()=>u.removeEventListener(f,h,m)),d=o.watch(()=>[ni(t),X2(a)],([u,f])=>{s(),u&&i.push(...n.flatMap(h=>r.map(m=>l(u,h,m,f))))},{immediate:!0,flush:"post"}),c=()=>{d(),s()};return Y2(c),c}let J2=!1;function iR(e,t,n={}){const{window:r=Z2,ignore:a=[],capture:i=!0,detectIframe:s=!1}=n;if(!r)return;oR&&!J2&&(J2=!0,Array.from(r.document.body.children).forEach(u=>u.addEventListener("click",G2)));let l=!0;const d=u=>a.some(f=>{if(typeof f=="string")return Array.from(r.document.querySelectorAll(f)).some(h=>h===u.target||u.composedPath().includes(h));{const h=ni(f);return h&&(u.target===h||u.composedPath().includes(h))}}),c=[pm(r,"click",u=>{const f=ni(e);if(!(!f||f===u.target||u.composedPath().includes(f))){if(u.detail===0&&(l=!d(u)),!l){l=!0;return}t(u)}},{passive:!0,capture:i}),pm(r,"pointerdown",u=>{const f=ni(e);f&&(l=!u.composedPath().includes(f)&&!d(u))},{passive:!0}),s&&pm(r,"blur",u=>{var f;const h=ni(e);((f=r.document.activeElement)==null?void 0:f.tagName)==="IFRAME"&&!(h!=null&&h.contains(r.document.activeElement))&&t(u)})].filter(Boolean);return()=>c.forEach(u=>u())}const Q2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ew="__vueuse_ssr_handlers__";Q2[ew]=Q2[ew]||{};var tw;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(tw||(tw={}));var sR=Object.defineProperty,nw=Object.getOwnPropertySymbols,lR=Object.prototype.hasOwnProperty,cR=Object.prototype.propertyIsEnumerable,rw=(e,t,n)=>t in e?sR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dR=(e,t)=>{for(var n in t||(t={}))lR.call(t,n)&&rw(e,n,t[n]);if(nw)for(var n of nw(t))cR.call(t,n)&&rw(e,n,t[n]);return e};dR({linear:aR},{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]});/** * @vue/shared v3.4.21 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const hu=()=>{},uR=Object.prototype.hasOwnProperty,ow=(e,t)=>uR.call(e,t),fR=Array.isArray,Hl=e=>typeof e=="function",us=e=>typeof e=="string",Ul=e=>e!==null&&typeof e=="object",aw=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},pR=/-(\w)/g,hR=aw(e=>e.replace(pR,(t,n)=>n?n.toUpperCase():"")),mR=/\B([A-Z])/g,gR=aw(e=>e.replace(mR,"-$1").toLowerCase());var yR=typeof global=="object"&&global&&global.Object===Object&&global,vR=typeof self=="object"&&self&&self.Object===Object&&self,hm=yR||vR||Function("return this")(),fa=hm.Symbol,iw=Object.prototype,bR=iw.hasOwnProperty,wR=iw.toString,ql=fa?fa.toStringTag:void 0;function xR(e){var t=bR.call(e,ql),n=e[ql];try{e[ql]=void 0;var r=!0}catch{}var a=wR.call(e);return r&&(t?e[ql]=n:delete e[ql]),a}var CR=Object.prototype,kR=CR.toString;function ER(e){return kR.call(e)}var SR="[object Null]",_R="[object Undefined]",sw=fa?fa.toStringTag:void 0;function mm(e){return e==null?e===void 0?_R:SR:sw&&sw in Object(e)?xR(e):ER(e)}function gm(e){return e!=null&&typeof e=="object"}var BR="[object Symbol]";function ym(e){return typeof e=="symbol"||gm(e)&&mm(e)==BR}function TR(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n0){if(++t>=YR)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function eL(e){return function(){return e}}var gu=function(){try{var e=bm(Object,"defineProperty");return e({},"",{}),e}catch{}}(),tL=gu?function(e,t){return gu(e,"toString",{configurable:!0,enumerable:!1,value:eL(t),writable:!0})}:OR,nL=QR(tL),rL=9007199254740991,oL=/^(?:0|[1-9]\d*)$/;function fw(e,t){var n=typeof e;return t=t??rL,!!t&&(n=="number"||n!="symbol"&&oL.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=dL}var fL="[object Arguments]";function mw(e){return gm(e)&&mm(e)==fL}var gw=Object.prototype,pL=gw.hasOwnProperty,hL=gw.propertyIsEnumerable,yw=mw(function(){return arguments}())?mw:function(e){return gm(e)&&pL.call(e,"callee")&&!hL.call(e,"callee")},mL=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gL=/^\w*$/;function yL(e,t){if(Wl(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||ym(e)?!0:gL.test(e)||!mL.test(e)||t!=null&&e in Object(t)}var Kl=bm(Object,"create");function vL(){this.__data__=Kl?Kl(null):{},this.size=0}function bL(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var wL="__lodash_hash_undefined__",xL=Object.prototype,CL=xL.hasOwnProperty;function kL(e){var t=this.__data__;if(Kl){var n=t[e];return n===wL?void 0:n}return CL.call(t,e)?t[e]:void 0}var EL=Object.prototype,SL=EL.hasOwnProperty;function _L(e){var t=this.__data__;return Kl?t[e]!==void 0:SL.call(t,e)}var BL="__lodash_hash_undefined__";function TL(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Kl&&t===void 0?BL:t,this}function ri(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1}function IL(e,t){var n=this.__data__,r=yu(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function fs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++te===void 0,Em=e=>typeof e=="boolean",Gl=e=>typeof e=="number",Xl=e=>typeof Element>"u"?!1:e instanceof Element,fM=e=>us(e)?!Number.isNaN(Number(e)):!1,ww=e=>Object.keys(e);class pM extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function ai(e,t){if(process.env.NODE_ENV!=="production"){const n=us(e)?new pM(`[${e}] ${t}`):e;console.warn(n)}}const hM="utils/dom/style",xw=(e="")=>e.split(" ").filter(t=>!!t.trim()),Cw=(e,t)=>{!e||!t.trim()||e.classList.add(...xw(t))},wu=(e,t)=>{!e||!t.trim()||e.classList.remove(...xw(t))},Yl=(e,t)=>{var n;if(!sr||!e||!t)return"";let r=hR(t);r==="float"&&(r="cssFloat");try{const a=e.style[r];if(a)return a;const i=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return i?i[r]:""}catch{return e.style[r]}};function kw(e,t="px"){if(!e)return"";if(Gl(e)||fM(e))return`${e}${t}`;if(us(e))return e;ai(hM,"binding value must be a string or number")}/*! Element Plus Icons Vue v2.3.1 */var mM=o.defineComponent({name:"Loading",__name:"loading",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("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"})]))}}),gM=mM;const Ew="__epPropKey",tt=e=>e,yM=e=>Ul(e)&&!!e[Ew],xu=(e,t)=>{if(!Ul(e)||yM(e))return e;const{values:n,required:r,default:a,type:i,validator:s}=e,l={type:i,required:!!r,validator:n||s?d=>{let c=!1,u=[];if(n&&(u=Array.from(n),ow(e,"default")&&u.push(a),c||(c=u.includes(d))),s&&(c||(c=s(d))),!c&&u.length>0){const f=[...new Set(u)].map(h=>JSON.stringify(h)).join(", ");o.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${f}], got value ${JSON.stringify(d)}.`)}return c}:void 0,[Ew]:!0};return ow(e,"default")&&(l.default=a),l},en=e=>Cm(Object.entries(e).map(([t,n])=>[t,xu(n,t)])),Sm=tt([String,Object,Function]),ii=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},vM=(e,t)=>(e.install=n=>{n.directive(t,e)},e),bM=e=>(e.install=hu,e),Cu={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"},wM=["","default","small","large"],xM=({from:e,replacement:t,scope:n,version:r,ref:a,type:i="API"},s)=>{o.watch(()=>o.unref(s),l=>{l&&ai(n,`[${i}] ${e} is about to be deprecated in version ${r}, please use ${t} instead. For more detail, please visit: ${a} `)},{immediate:!0})};var CM={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 kM=e=>(t,n)=>EM(t,n,o.unref(e)),EM=(e,t,n)=>ZL(n,e,e).replace(/\{(\w+)\}/g,(r,a)=>{var i;return`${(i=t==null?void 0:t[a])!=null?i:`{${a}}`}`}),SM=e=>{const t=o.computed(()=>o.unref(e).name),n=o.isRef(e)?e:o.ref(e);return{lang:t,locale:n,t:kM(e)}},Sw=Symbol("localeContextKey"),_M=e=>{const t=e||o.inject(Sw,o.ref());return SM(o.computed(()=>t.value||CM))},ku="el",BM="is-",si=(e,t,n,r,a)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),r&&(i+=`__${r}`),a&&(i+=`--${a}`),i},_w=Symbol("namespaceContextKey"),_m=e=>{const t=e||(o.getCurrentInstance()?o.inject(_w,o.ref(ku)):o.ref(ku));return o.computed(()=>o.unref(t)||ku)},xr=(e,t)=>{const n=_m(t);return{namespace:n,b:(r="")=>si(n.value,e,r,"",""),e:r=>r?si(n.value,e,"",r,""):"",m:r=>r?si(n.value,e,"","",r):"",be:(r,a)=>r&&a?si(n.value,e,r,a,""):"",em:(r,a)=>r&&a?si(n.value,e,"",r,a):"",bm:(r,a)=>r&&a?si(n.value,e,r,"",a):"",bem:(r,a,i)=>r&&a&&i?si(n.value,e,r,a,i):"",is:(r,...a)=>{const i=a.length>=1?a[0]:!0;return r&&i?`${BM}${r}`:""},cssVar:r=>{const a={};for(const i in r)r[i]&&(a[`--${n.value}-${i}`]=r[i]);return a},cssVarName:r=>`--${n.value}-${r}`,cssVarBlock:r=>{const a={};for(const i in r)r[i]&&(a[`--${n.value}-${e}-${i}`]=r[i]);return a},cssVarBlockName:r=>`--${n.value}-${e}-${r}`}},TM=xu({type:tt(Boolean),default:null}),NM=xu({type:tt(Function)}),OM=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],a={[e]:TM,[n]:NM};return{useModelToggle:({indicator:i,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:d,onShow:c,onHide:u})=>{const f=o.getCurrentInstance(),{emit:h}=f,m=f.props,p=o.computed(()=>Hl(m[n])),g=o.computed(()=>m[e]===null),v=C=>{i.value!==!0&&(i.value=!0,s&&(s.value=C),Hl(c)&&c(C))},y=C=>{i.value!==!1&&(i.value=!1,s&&(s.value=C),Hl(u)&&u(C))},b=C=>{if(m.disabled===!0||Hl(d)&&!d())return;const E=p.value&&sr;E&&h(t,!0),(g.value||!E)&&v(C)},x=C=>{if(m.disabled===!0||!sr)return;const E=p.value&&sr;E&&h(t,!1),(g.value||!E)&&y(C)},w=C=>{Em(C)&&(m.disabled&&C?p.value&&h(t,!1):i.value!==C&&(C?v():y()))},k=()=>{i.value?x():b()};return o.watch(()=>m[e],w),l&&f.appContext.config.globalProperties.$route!==void 0&&o.watch(()=>({...f.proxy.$route}),()=>{l.value&&i.value&&x()}),o.onMounted(()=>{w(m[e])}),{hide:x,show:b,toggle:k,hasUpdateHandler:p}},useModelToggleProps:a,useModelToggleEmits:r}},Bw=e=>{const t=o.getCurrentInstance();return o.computed(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})};var Wn="top",Cr="bottom",kr="right",Kn="left",Bm="auto",Zl=[Wn,Cr,kr,Kn],ps="start",Jl="end",PM="clippingParents",Tw="viewport",Ql="popper",$M="reference",Nw=Zl.reduce(function(e,t){return e.concat([t+"-"+ps,t+"-"+Jl])},[]),Tm=[].concat(Zl,[Bm]).reduce(function(e,t){return e.concat([t,t+"-"+ps,t+"-"+Jl])},[]),FM="beforeRead",AM="read",IM="afterRead",DM="beforeMain",VM="main",RM="afterMain",LM="beforeWrite",MM="write",zM="afterWrite",jM=[FM,AM,IM,DM,VM,RM,LM,MM,zM];function lo(e){return e?(e.nodeName||"").toLowerCase():null}function Ur(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function hs(e){var t=Ur(e).Element;return e instanceof t||e instanceof Element}function Er(e){var t=Ur(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Nm(e){if(typeof ShadowRoot>"u")return!1;var t=Ur(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function HM(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},i=t.elements[n];!Er(i)||!lo(i)||(Object.assign(i.style,r),Object.keys(a).forEach(function(s){var l=a[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function UM(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 a=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(d,c){return d[c]="",d},{});!Er(a)||!lo(a)||(Object.assign(a.style,l),Object.keys(i).forEach(function(d){a.removeAttribute(d)}))})}}var Ow={name:"applyStyles",enabled:!0,phase:"write",fn:HM,effect:UM,requires:["computeStyles"]};function co(e){return e.split("-")[0]}var li=Math.max,Eu=Math.min,ms=Math.round;function gs(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,a=1;if(Er(e)&&t){var i=e.offsetHeight,s=e.offsetWidth;s>0&&(r=ms(n.width)/s||1),i>0&&(a=ms(n.height)/i||1)}return{width:n.width/r,height:n.height/a,top:n.top/a,right:n.right/r,bottom:n.bottom/a,left:n.left/r,x:n.left/r,y:n.top/a}}function Om(e){var t=gs(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 Pw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Nm(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Io(e){return Ur(e).getComputedStyle(e)}function qM(e){return["table","td","th"].indexOf(lo(e))>=0}function pa(e){return((hs(e)?e.ownerDocument:e.document)||window.document).documentElement}function Su(e){return lo(e)==="html"?e:e.assignedSlot||e.parentNode||(Nm(e)?e.host:null)||pa(e)}function $w(e){return!Er(e)||Io(e).position==="fixed"?null:e.offsetParent}function WM(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Er(e)){var r=Io(e);if(r.position==="fixed")return null}var a=Su(e);for(Nm(a)&&(a=a.host);Er(a)&&["html","body"].indexOf(lo(a))<0;){var i=Io(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function ec(e){for(var t=Ur(e),n=$w(e);n&&qM(n)&&Io(n).position==="static";)n=$w(n);return n&&(lo(n)==="html"||lo(n)==="body"&&Io(n).position==="static")?t:n||WM(e)||t}function Pm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function tc(e,t,n){return li(e,Eu(t,n))}function KM(e,t,n){var r=tc(e,t,n);return r>n?n:r}function Fw(){return{top:0,right:0,bottom:0,left:0}}function Aw(e){return Object.assign({},Fw(),e)}function Iw(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var GM=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Aw(typeof e!="number"?e:Iw(e,Zl))};function XM(e){var t,n=e.state,r=e.name,a=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,l=co(n.placement),d=Pm(l),c=[Kn,kr].indexOf(l)>=0,u=c?"height":"width";if(!(!i||!s)){var f=GM(a.padding,n),h=Om(i),m=d==="y"?Wn:Kn,p=d==="y"?Cr:kr,g=n.rects.reference[u]+n.rects.reference[d]-s[d]-n.rects.popper[u],v=s[d]-n.rects.reference[d],y=ec(i),b=y?d==="y"?y.clientHeight||0:y.clientWidth||0:0,x=g/2-v/2,w=f[m],k=b-h[u]-f[p],C=b/2-h[u]/2+x,E=tc(w,C,k),S=d;n.modifiersData[r]=(t={},t[S]=E,t.centerOffset=E-C,t)}}function YM(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||!Pw(t.elements.popper,a)||(t.elements.arrow=a))}var ZM={name:"arrow",enabled:!0,phase:"main",fn:XM,effect:YM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ys(e){return e.split("-")[1]}var JM={top:"auto",right:"auto",bottom:"auto",left:"auto"};function QM(e){var t=e.x,n=e.y,r=window,a=r.devicePixelRatio||1;return{x:ms(t*a)/a||0,y:ms(n*a)/a||0}}function Dw(e){var t,n=e.popper,r=e.popperRect,a=e.placement,i=e.variation,s=e.offsets,l=e.position,d=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,h=s.x,m=h===void 0?0:h,p=s.y,g=p===void 0?0:p,v=typeof u=="function"?u({x:m,y:g}):{x:m,y:g};m=v.x,g=v.y;var y=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),x=Kn,w=Wn,k=window;if(c){var C=ec(n),E="clientHeight",S="clientWidth";if(C===Ur(n)&&(C=pa(n),Io(C).position!=="static"&&l==="absolute"&&(E="scrollHeight",S="scrollWidth")),C=C,a===Wn||(a===Kn||a===kr)&&i===Jl){w=Cr;var _=f&&C===k&&k.visualViewport?k.visualViewport.height:C[E];g-=_-r.height,g*=d?1:-1}if(a===Kn||(a===Wn||a===Cr)&&i===Jl){x=kr;var O=f&&C===k&&k.visualViewport?k.visualViewport.width:C[S];m-=O-r.width,m*=d?1:-1}}var T=Object.assign({position:l},c&&JM),N=u===!0?QM({x:m,y:g}):{x:m,y:g};if(m=N.x,g=N.y,d){var F;return Object.assign({},T,(F={},F[w]=b?"0":"",F[x]=y?"0":"",F.transform=(k.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",F))}return Object.assign({},T,(t={},t[w]=b?g+"px":"",t[x]=y?m+"px":"",t.transform="",t))}function ez(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,d=l===void 0?!0:l,c={placement:co(t.placement),variation:ys(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Dw(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Dw(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Vw={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ez,data:{}},_u={passive:!0};function tz(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,i=a===void 0?!0:a,s=r.resize,l=s===void 0?!0:s,d=Ur(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,_u)}),l&&d.addEventListener("resize",n.update,_u),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,_u)}),l&&d.removeEventListener("resize",n.update,_u)}}var Rw={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:tz,data:{}},nz={left:"right",right:"left",bottom:"top",top:"bottom"};function Bu(e){return e.replace(/left|right|bottom|top/g,function(t){return nz[t]})}var rz={start:"end",end:"start"};function Lw(e){return e.replace(/start|end/g,function(t){return rz[t]})}function $m(e){var t=Ur(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Fm(e){return gs(pa(e)).left+$m(e).scrollLeft}function oz(e){var t=Ur(e),n=pa(e),r=t.visualViewport,a=n.clientWidth,i=n.clientHeight,s=0,l=0;return r&&(a=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,l=r.offsetTop)),{width:a,height:i,x:s+Fm(e),y:l}}function az(e){var t,n=pa(e),r=$m(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=li(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=li(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-r.scrollLeft+Fm(e),d=-r.scrollTop;return Io(a||n).direction==="rtl"&&(l+=li(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:s,x:l,y:d}}function Am(e){var t=Io(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function Mw(e){return["html","body","#document"].indexOf(lo(e))>=0?e.ownerDocument.body:Er(e)&&Am(e)?e:Mw(Su(e))}function nc(e,t){var n;t===void 0&&(t=[]);var r=Mw(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),i=Ur(r),s=a?[i].concat(i.visualViewport||[],Am(r)?r:[]):r,l=t.concat(s);return a?l:l.concat(nc(Su(s)))}function Im(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function iz(e){var t=gs(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 zw(e,t){return t===Tw?Im(oz(e)):hs(t)?iz(t):Im(az(pa(e)))}function sz(e){var t=nc(Su(e)),n=["absolute","fixed"].indexOf(Io(e).position)>=0,r=n&&Er(e)?ec(e):e;return hs(r)?t.filter(function(a){return hs(a)&&Pw(a,r)&&lo(a)!=="body"}):[]}function lz(e,t,n){var r=t==="clippingParents"?sz(e):[].concat(t),a=[].concat(r,[n]),i=a[0],s=a.reduce(function(l,d){var c=zw(e,d);return l.top=li(c.top,l.top),l.right=Eu(c.right,l.right),l.bottom=Eu(c.bottom,l.bottom),l.left=li(c.left,l.left),l},zw(e,i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function jw(e){var t=e.reference,n=e.element,r=e.placement,a=r?co(r):null,i=r?ys(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,d;switch(a){case Wn:d={x:s,y:t.y-n.height};break;case Cr:d={x:s,y:t.y+t.height};break;case kr:d={x:t.x+t.width,y:l};break;case Kn:d={x:t.x-n.width,y:l};break;default:d={x:t.x,y:t.y}}var c=a?Pm(a):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case ps:d[c]=d[c]-(t[u]/2-n[u]/2);break;case Jl:d[c]=d[c]+(t[u]/2-n[u]/2);break}}return d}function rc(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,i=n.boundary,s=i===void 0?PM:i,l=n.rootBoundary,d=l===void 0?Tw:l,c=n.elementContext,u=c===void 0?Ql:c,f=n.altBoundary,h=f===void 0?!1:f,m=n.padding,p=m===void 0?0:m,g=Aw(typeof p!="number"?p:Iw(p,Zl)),v=u===Ql?$M:Ql,y=e.rects.popper,b=e.elements[h?v:u],x=lz(hs(b)?b:b.contextElement||pa(e.elements.popper),s,d),w=gs(e.elements.reference),k=jw({reference:w,element:y,strategy:"absolute",placement:a}),C=Im(Object.assign({},y,k)),E=u===Ql?C:w,S={top:x.top-E.top+g.top,bottom:E.bottom-x.bottom+g.bottom,left:x.left-E.left+g.left,right:E.right-x.right+g.right},_=e.modifiersData.offset;if(u===Ql&&_){var O=_[a];Object.keys(S).forEach(function(T){var N=[kr,Cr].indexOf(T)>=0?1:-1,F=[Wn,Cr].indexOf(T)>=0?"y":"x";S[T]+=O[F]*N})}return S}function cz(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,d=n.allowedAutoPlacements,c=d===void 0?Tm:d,u=ys(r),f=u?l?Nw:Nw.filter(function(p){return ys(p)===u}):Zl,h=f.filter(function(p){return c.indexOf(p)>=0});h.length===0&&(h=f);var m=h.reduce(function(p,g){return p[g]=rc(e,{placement:g,boundary:a,rootBoundary:i,padding:s})[co(g)],p},{});return Object.keys(m).sort(function(p,g){return m[p]-m[g]})}function dz(e){if(co(e)===Bm)return[];var t=Bu(e);return[Lw(e),t,Lw(t)]}function uz(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,i=a===void 0?!0:a,s=n.altAxis,l=s===void 0?!0:s,d=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,h=n.altBoundary,m=n.flipVariations,p=m===void 0?!0:m,g=n.allowedAutoPlacements,v=t.options.placement,y=co(v),b=y===v,x=d||(b||!p?[Bu(v)]:dz(v)),w=[v].concat(x).reduce(function(le,de){return le.concat(co(de)===Bm?cz(t,{placement:de,boundary:u,rootBoundary:f,padding:c,flipVariations:p,allowedAutoPlacements:g}):de)},[]),k=t.rects.reference,C=t.rects.popper,E=new Map,S=!0,_=w[0],O=0;O=0,D=$?"width":"height",P=rc(t,{placement:T,boundary:u,rootBoundary:f,altBoundary:h,padding:c}),V=$?F?kr:Kn:F?Cr:Wn;k[D]>C[D]&&(V=Bu(V));var I=Bu(V),z=[];if(i&&z.push(P[N]<=0),l&&z.push(P[V]<=0,P[I]<=0),z.every(function(le){return le})){_=T,S=!1;break}E.set(T,z)}if(S)for(var G=p?3:1,q=function(le){var de=w.find(function(ne){var oe=E.get(ne);if(oe)return oe.slice(0,le).every(function(U){return U})});if(de)return _=de,"break"},X=G;X>0;X--){var te=q(X);if(te==="break")break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}}var fz={name:"flip",enabled:!0,phase:"main",fn:uz,requiresIfExists:["offset"],data:{_skip:!1}};function Hw(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 Uw(e){return[Wn,kr,Cr,Kn].some(function(t){return e[t]>=0})}function pz(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,s=rc(t,{elementContext:"reference"}),l=rc(t,{altBoundary:!0}),d=Hw(s,r),c=Hw(l,a,i),u=Uw(d),f=Uw(c);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}var hz={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:pz};function mz(e,t,n){var r=co(e),a=[Kn,Wn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],l=i[1];return s=s||0,l=(l||0)*a,[Kn,kr].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function gz(e){var t=e.state,n=e.options,r=e.name,a=n.offset,i=a===void 0?[0,0]:a,s=Tm.reduce(function(u,f){return u[f]=mz(f,t.rects,i),u},{}),l=s[t.placement],d=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}var yz={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:gz};function vz(e){var t=e.state,n=e.name;t.modifiersData[n]=jw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var qw={name:"popperOffsets",enabled:!0,phase:"read",fn:vz,data:{}};function bz(e){return e==="x"?"y":"x"}function wz(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,i=a===void 0?!0:a,s=n.altAxis,l=s===void 0?!1:s,d=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,h=n.tether,m=h===void 0?!0:h,p=n.tetherOffset,g=p===void 0?0:p,v=rc(t,{boundary:d,rootBoundary:c,padding:f,altBoundary:u}),y=co(t.placement),b=ys(t.placement),x=!b,w=Pm(y),k=bz(w),C=t.modifiersData.popperOffsets,E=t.rects.reference,S=t.rects.popper,_=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,O=typeof _=="number"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(C){if(i){var F,$=w==="y"?Wn:Kn,D=w==="y"?Cr:kr,P=w==="y"?"height":"width",V=C[w],I=V+v[$],z=V-v[D],G=m?-S[P]/2:0,q=b===ps?E[P]:S[P],X=b===ps?-S[P]:-E[P],te=t.elements.arrow,le=m&&te?Om(te):{width:0,height:0},de=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Fw(),ne=de[$],oe=de[D],U=tc(0,E[P],le[P]),W=x?E[P]/2-G-U-ne-O.mainAxis:q-U-ne-O.mainAxis,Z=x?-E[P]/2+G+U+oe+O.mainAxis:X+U+oe+O.mainAxis,ue=t.elements.arrow&&ec(t.elements.arrow),be=ue?w==="y"?ue.clientTop||0:ue.clientLeft||0:0,Be=(F=T==null?void 0:T[w])!=null?F:0,pe=V+W-Be-be,xe=V+Z-Be,ge=tc(m?Eu(I,pe):I,V,m?li(z,xe):z);C[w]=ge,N[w]=ge-V}if(l){var ke,Ne=w==="x"?Wn:Kn,Ie=w==="x"?Cr:kr,Se=C[k],Re=k==="y"?"height":"width",Ve=Se+v[Ne],ze=Se-v[Ie],B=[Wn,Kn].indexOf(y)!==-1,L=(ke=T==null?void 0:T[k])!=null?ke:0,Y=B?Ve:Se-E[Re]-S[Re]-L+O.altAxis,Q=B?Se+E[Re]+S[Re]-L-O.altAxis:ze,ee=m&&B?KM(Y,Se,Q):tc(m?Y:Ve,Se,m?Q:ze);C[k]=ee,N[k]=ee-Se}t.modifiersData[r]=N}}var xz={name:"preventOverflow",enabled:!0,phase:"main",fn:wz,requiresIfExists:["offset"]};function Cz(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function kz(e){return e===Ur(e)||!Er(e)?$m(e):Cz(e)}function Ez(e){var t=e.getBoundingClientRect(),n=ms(t.width)/e.offsetWidth||1,r=ms(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Sz(e,t,n){n===void 0&&(n=!1);var r=Er(t),a=Er(t)&&Ez(t),i=pa(t),s=gs(e,a),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&((lo(t)!=="body"||Am(i))&&(l=kz(t)),Er(t)?(d=gs(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):i&&(d.x=Fm(i))),{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function _z(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function a(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var d=t.get(l);d&&a(d)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||a(i)}),r}function Bz(e){var t=_z(e);return jM.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function Tz(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Nz(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Ww={placement:"bottom",modifiers:[],strategy:"absolute"};function Kw(){for(var e=arguments.length,t=new Array(e),n=0;n{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:d})=>{const c=Az(d);Object.assign(s.value,c)},requires:["computeStyles"]},a=o.computed(()=>{const{onFirstUpdate:d,placement:c,strategy:u,modifiers:f}=o.unref(n);return{onFirstUpdate:d,placement:c||"bottom",strategy:u||"absolute",modifiers:[...f||[],r,{name:"applyStyles",enabled:!1}]}}),i=o.shallowRef(),s=o.ref({styles:{popper:{position:o.unref(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=()=>{i.value&&(i.value.destroy(),i.value=void 0)};return o.watch(a,d=>{const c=o.unref(i);c&&c.setOptions(d)},{deep:!0}),o.watch([e,t],([d,c])=>{l(),!(!d||!c)&&(i.value=$z(d,c,o.unref(a)))}),o.onBeforeUnmount(()=>{l()}),{state:o.computed(()=>{var d;return{...((d=o.unref(i))==null?void 0:d.state)||{}}}),styles:o.computed(()=>o.unref(s).styles),attributes:o.computed(()=>o.unref(s).attributes),update:()=>{var d;return(d=o.unref(i))==null?void 0:d.update()},forceUpdate:()=>{var d;return(d=o.unref(i))==null?void 0:d.forceUpdate()},instanceRef:o.computed(()=>o.unref(i))}};function Az(e){const t=Object.keys(e.elements),n=Cm(t.map(a=>[a,e.styles[a]||{}])),r=Cm(t.map(a=>[a,e.attributes[a]]));return{styles:n,attributes:r}}function Gw(){let e;const t=(r,a)=>{n(),e=window.setTimeout(r,a)},n=()=>window.clearTimeout(e);return Y2(()=>n()),{registerTimeout:t,cancelTimeout:n}}const Vm={prefix:Math.floor(Math.random()*1e4),current:0},Iz=Symbol("elIdInjection"),Xw=()=>o.getCurrentInstance()?o.inject(Iz,Vm):Vm,Dz=e=>{const t=Xw();!sr&&t===Vm&&ai("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed usage: app.provide(ID_INJECTION_KEY, { prefix: number, current: number, })`);const n=_m();return o.computed(()=>o.unref(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let vs=[];const Yw=e=>{const t=e;t.key===Cu.esc&&vs.forEach(n=>n(t))},Vz=e=>{o.onMounted(()=>{vs.length===0&&document.addEventListener("keydown",Yw),sr&&vs.push(e)}),o.onBeforeUnmount(()=>{vs=vs.filter(t=>t!==e),vs.length===0&&sr&&document.removeEventListener("keydown",Yw)})};let Zw;const Jw=()=>{const e=_m(),t=Xw(),n=o.computed(()=>`${e.value}-popper-container-${t.prefix}`),r=o.computed(()=>`#${n.value}`);return{id:n,selector:r}},Rz=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},Lz=()=>{const{id:e,selector:t}=Jw();return o.onBeforeMount(()=>{sr&&(process.env.NODE_ENV==="test"||!Zw||!document.body.querySelector(t.value))&&(Zw=Rz(e.value))}),{id:e,selector:t}},Mz=en({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),zz=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:a})=>{const{registerTimeout:i}=Gw(),{registerTimeout:s,cancelTimeout:l}=Gw();return{onOpen:d=>{i(()=>{r(d);const c=o.unref(n);Gl(c)&&c>0&&s(()=>{a(d)},c)},o.unref(e))},onClose:d=>{l(),i(()=>{a(d)},o.unref(t))}}},Qw=Symbol("elForwardRef"),jz=e=>{o.provide(Qw,{setForwardRef:t=>{e.value=t}})},Hz=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),ex={current:0},tx=o.ref(0),nx=2e3,rx=Symbol("elZIndexContextKey"),ox=Symbol("zIndexContextKey"),ax=e=>{const t=o.getCurrentInstance()?o.inject(rx,ex):ex,n=e||(o.getCurrentInstance()?o.inject(ox,void 0):void 0),r=o.computed(()=>{const s=o.unref(n);return Gl(s)?s:nx}),a=o.computed(()=>r.value+tx.value),i=()=>(t.current++,tx.value=t.current,a.value);return!sr&&!o.inject(rx)&&ai("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:r,currentZIndex:a,nextZIndex:i}},Uz=xu({type:String,values:wM,required:!1}),ix=Symbol("size"),qz=()=>{const e=o.inject(ix,{});return o.computed(()=>o.unref(e.size)||"")},Wz=Symbol("emptyValuesContextKey");en({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>Hl(e)?!e():!e}});const Kz=en({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),sx=e=>dM(Kz,e),lx=Symbol(),Tu=o.ref();function Rm(e,t=void 0){const n=o.getCurrentInstance()?o.inject(lx,Tu):Tu;return e?o.computed(()=>{var r,a;return(a=(r=n.value)==null?void 0:r[e])!=null?a:t}):n}function Gz(e,t){const n=Rm(),r=xr(e,o.computed(()=>{var l;return((l=n.value)==null?void 0:l.namespace)||ku})),a=_M(o.computed(()=>{var l;return(l=n.value)==null?void 0:l.locale})),i=ax(o.computed(()=>{var l;return((l=n.value)==null?void 0:l.zIndex)||nx})),s=o.computed(()=>{var l;return o.unref(t)||((l=n.value)==null?void 0:l.size)||""});return Xz(o.computed(()=>o.unref(n)||{})),{ns:r,locale:a,zIndex:i,size:s}}const Xz=(e,t,n=!1)=>{var r;const a=!!o.getCurrentInstance(),i=a?Rm():void 0,s=(r=void 0)!=null?r:a?o.provide:void 0;if(!s){ai("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const l=o.computed(()=>{const d=o.unref(e);return i!=null&&i.value?Yz(i.value,d):d});return s(lx,l),s(Sw,o.computed(()=>l.value.locale)),s(_w,o.computed(()=>l.value.namespace)),s(ox,o.computed(()=>l.value.zIndex)),s(ix,{size:o.computed(()=>l.value.size||"")}),s(Wz,o.computed(()=>({emptyValues:l.value.emptyValues,valueOnClear:l.value.valueOnClear}))),(n||!Tu.value)&&(Tu.value=l.value),l},Yz=(e,t)=>{const n=[...new Set([...ww(e),...ww(t)])],r={};for(const a of n)r[a]=t[a]!==void 0?t[a]:e[a];return r};var En=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n};const Zz=en({size:{type:tt([Number,String])},color:{type:String}}),Jz=o.defineComponent({name:"ElIcon",inheritAttrs:!1}),Qz=o.defineComponent({...Jz,props:Zz,setup(e){const t=e,n=xr("icon"),r=o.computed(()=>{const{size:a,color:i}=t;return!a&&!i?{}:{fontSize:uM(a)?void 0:kw(a),"--color":i}});return(a,i)=>(o.openBlock(),o.createElementBlock("i",o.mergeProps({class:o.unref(n).b(),style:o.unref(r)},a.$attrs),[o.renderSlot(a.$slots,"default")],16))}});var e7=En(Qz,[["__file","icon.vue"]]);const cx=ii(e7),Lm=Symbol("formContextKey"),Nu=Symbol("formItemContextKey"),t7=(e,t={})=>{const n=o.ref(void 0),r=t.prop?n:Bw("size"),a=t.global?n:qz(),i=t.form?{size:void 0}:o.inject(Lm,void 0),s=t.formItem?{size:void 0}:o.inject(Nu,void 0);return o.computed(()=>r.value||o.unref(e)||(s==null?void 0:s.size)||(i==null?void 0:i.size)||a.value||"")},dx=e=>{const t=Bw("disabled"),n=o.inject(Lm,void 0);return o.computed(()=>t.value||o.unref(e)||(n==null?void 0:n.disabled)||!1)},n7=()=>{const e=o.inject(Lm,void 0),t=o.inject(Nu,void 0);return{form:e,formItem:t}},Mm=Symbol("popper"),ux=Symbol("popperContent"),r7=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],fx=en({role:{type:String,values:r7,default:"tooltip"}}),o7=o.defineComponent({name:"ElPopper",inheritAttrs:!1}),a7=o.defineComponent({...o7,props:fx,setup(e,{expose:t}){const n=e,r=o.ref(),a=o.ref(),i=o.ref(),s=o.ref(),l=o.computed(()=>n.role),d={triggerRef:r,popperInstanceRef:a,contentRef:i,referenceRef:s,role:l};return t(d),o.provide(Mm,d),(c,u)=>o.renderSlot(c.$slots,"default")}});var i7=En(a7,[["__file","popper.vue"]]);const px=en({arrowOffset:{type:Number,default:5}}),s7=o.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),l7=o.defineComponent({...s7,props:px,setup(e,{expose:t}){const n=e,r=xr("popper"),{arrowOffset:a,arrowRef:i,arrowStyle:s}=o.inject(ux,void 0);return o.watch(()=>n.arrowOffset,l=>{a.value=l}),o.onBeforeUnmount(()=>{i.value=void 0}),t({arrowRef:i}),(l,d)=>(o.openBlock(),o.createElementBlock("span",{ref_key:"arrowRef",ref:i,class:o.normalizeClass(o.unref(r).e("arrow")),style:o.normalizeStyle(o.unref(s)),"data-popper-arrow":""},null,6))}});var c7=En(l7,[["__file","arrow.vue"]]);const zm="ElOnlyChild",d7=o.defineComponent({name:zm,setup(e,{slots:t,attrs:n}){var r;const a=o.inject(Qw),i=Hz((r=a==null?void 0:a.setForwardRef)!=null?r:hu);return()=>{var s;const l=(s=t.default)==null?void 0:s.call(t,n);if(!l)return null;if(l.length>1)return ai(zm,"requires exact only one valid child."),null;const d=hx(l);return d?o.withDirectives(o.cloneVNode(d,n),[[i]]):(ai(zm,"no valid child node found"),null)}}});function hx(e){if(!e)return null;const t=e;for(const n of t){if(Ul(n))switch(n.type){case o.Comment:continue;case o.Text:case"svg":return mx(n);case o.Fragment:return hx(n.children);default:return n}return mx(n)}return null}function mx(e){const t=xr("only-child");return o.createVNode("span",{class:t.e("content")},[e])}const gx=en({virtualRef:{type:tt(Object)},virtualTriggering:Boolean,onMouseenter:{type:tt(Function)},onMouseleave:{type:tt(Function)},onClick:{type:tt(Function)},onKeydown:{type:tt(Function)},onFocus:{type:tt(Function)},onBlur:{type:tt(Function)},onContextmenu:{type:tt(Function)},id:String,open:Boolean}),u7=o.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),f7=o.defineComponent({...u7,props:gx,setup(e,{expose:t}){const n=e,{role:r,triggerRef:a}=o.inject(Mm,void 0);jz(a);const i=o.computed(()=>l.value?n.id:void 0),s=o.computed(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),l=o.computed(()=>{if(r&&r.value!=="tooltip")return r.value}),d=o.computed(()=>l.value?`${n.open}`:void 0);let c;const u=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return o.onMounted(()=>{o.watch(()=>n.virtualRef,f=>{f&&(a.value=ni(f))},{immediate:!0}),o.watch(a,(f,h)=>{c==null||c(),c=void 0,Xl(f)&&(u.forEach(m=>{var p;const g=n[m];g&&(f.addEventListener(m.slice(2).toLowerCase(),g),(p=h==null?void 0:h.removeEventListener)==null||p.call(h,m.slice(2).toLowerCase(),g))}),c=o.watch([i,s,l,d],m=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((p,g)=>{km(m[g])?f.removeAttribute(p):f.setAttribute(p,m[g])})},{immediate:!0})),Xl(h)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(m=>h.removeAttribute(m))},{immediate:!0})}),o.onBeforeUnmount(()=>{if(c==null||c(),c=void 0,a.value&&Xl(a.value)){const f=a.value;u.forEach(h=>{const m=n[h];m&&f.removeEventListener(h.slice(2).toLowerCase(),m)}),a.value=void 0}}),t({triggerRef:a}),(f,h)=>f.virtualTriggering?o.createCommentVNode("v-if",!0):(o.openBlock(),o.createBlock(o.unref(d7),o.mergeProps({key:0},f.$attrs,{"aria-controls":o.unref(i),"aria-describedby":o.unref(s),"aria-expanded":o.unref(d),"aria-haspopup":o.unref(l)}),{default:o.withCtx(()=>[o.renderSlot(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var p7=En(f7,[["__file","trigger.vue"]]);const jm="focus-trap.focus-after-trapped",Hm="focus-trap.focus-after-released",h7="focus-trap.focusout-prevented",yx={cancelable:!0,bubbles:!1},m7={cancelable:!0,bubbles:!1},vx="focusAfterTrapped",bx="focusAfterReleased",g7=Symbol("elFocusTrap"),Um=o.ref(),Ou=o.ref(0),qm=o.ref(0);let Pu=0;const wx=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},xx=(e,t)=>{for(const n of e)if(!y7(n,t))return n},y7=(e,t)=>{if(process.env.NODE_ENV==="test")return!1;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},v7=e=>{const t=wx(e),n=xx(t,e),r=xx(t.reverse(),e);return[n,r]},b7=e=>e instanceof HTMLInputElement&&"select"in e,ha=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),qm.value=window.performance.now(),e!==n&&b7(e)&&t&&e.select()}};function Cx(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const w7=()=>{let e=[];return{push:t=>{const n=e[0];n&&t!==n&&n.pause(),e=Cx(e,t),e.unshift(t)},remove:t=>{var n,r;e=Cx(e,t),(r=(n=e[0])==null?void 0:n.resume)==null||r.call(n)}}},x7=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(ha(r,t),document.activeElement!==n)return},kx=w7(),C7=()=>Ou.value>qm.value,$u=()=>{Um.value="pointer",Ou.value=window.performance.now()},Ex=()=>{Um.value="keyboard",Ou.value=window.performance.now()},k7=()=>(o.onMounted(()=>{Pu===0&&(document.addEventListener("mousedown",$u),document.addEventListener("touchstart",$u),document.addEventListener("keydown",Ex)),Pu++}),o.onBeforeUnmount(()=>{Pu--,Pu<=0&&(document.removeEventListener("mousedown",$u),document.removeEventListener("touchstart",$u),document.removeEventListener("keydown",Ex))}),{focusReason:Um,lastUserFocusTimestamp:Ou,lastAutomatedFocusTimestamp:qm}),Fu=e=>new CustomEvent(h7,{...m7,detail:e}),E7=o.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[vx,bx,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=o.ref();let r,a;const{focusReason:i}=k7();Vz(p=>{e.trapped&&!s.paused&&t("release-requested",p)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=p=>{if(!e.loop&&!e.trapped||s.paused)return;const{key:g,altKey:v,ctrlKey:y,metaKey:b,currentTarget:x,shiftKey:w}=p,{loop:k}=e,C=g===Cu.tab&&!v&&!y&&!b,E=document.activeElement;if(C&&E){const S=x,[_,O]=v7(S);if(_&&O){if(!w&&E===O){const T=Fu({focusReason:i.value});t("focusout-prevented",T),T.defaultPrevented||(p.preventDefault(),k&&ha(_,!0))}else if(w&&[_,S].includes(E)){const T=Fu({focusReason:i.value});t("focusout-prevented",T),T.defaultPrevented||(p.preventDefault(),k&&ha(O,!0))}}else if(E===S){const T=Fu({focusReason:i.value});t("focusout-prevented",T),T.defaultPrevented||p.preventDefault()}}};o.provide(g7,{focusTrapRef:n,onKeydown:l}),o.watch(()=>e.focusTrapEl,p=>{p&&(n.value=p)},{immediate:!0}),o.watch([n],([p],[g])=>{p&&(p.addEventListener("keydown",l),p.addEventListener("focusin",u),p.addEventListener("focusout",f)),g&&(g.removeEventListener("keydown",l),g.removeEventListener("focusin",u),g.removeEventListener("focusout",f))});const d=p=>{t(vx,p)},c=p=>t(bx,p),u=p=>{const g=o.unref(n);if(!g)return;const v=p.target,y=p.relatedTarget,b=v&&g.contains(v);e.trapped||y&&g.contains(y)||(r=y),b&&t("focusin",p),!s.paused&&e.trapped&&(b?a=v:ha(a,!0))},f=p=>{const g=o.unref(n);if(!(s.paused||!g))if(e.trapped){const v=p.relatedTarget;!km(v)&&!g.contains(v)&&setTimeout(()=>{if(!s.paused&&e.trapped){const y=Fu({focusReason:i.value});t("focusout-prevented",y),y.defaultPrevented||ha(a,!0)}},0)}else{const v=p.target;v&&g.contains(v)||t("focusout",p)}};async function h(){await o.nextTick();const p=o.unref(n);if(p){kx.push(s);const g=p.contains(document.activeElement)?r:document.activeElement;if(r=g,!p.contains(g)){const v=new Event(jm,yx);p.addEventListener(jm,d),p.dispatchEvent(v),v.defaultPrevented||o.nextTick(()=>{let y=e.focusStartEl;us(y)||(ha(y),document.activeElement!==y&&(y="first")),y==="first"&&x7(wx(p),!0),(document.activeElement===g||y==="container")&&ha(p)})}}}function m(){const p=o.unref(n);if(p){p.removeEventListener(jm,d);const g=new CustomEvent(Hm,{...yx,detail:{focusReason:i.value}});p.addEventListener(Hm,c),p.dispatchEvent(g),!g.defaultPrevented&&(i.value=="keyboard"||!C7()||p.contains(document.activeElement))&&ha(r??document.body),p.removeEventListener(Hm,c),kx.remove(s)}}return o.onMounted(()=>{e.trapped&&h(),o.watch(()=>e.trapped,p=>{p?h():m()})}),o.onBeforeUnmount(()=>{e.trapped&&m(),n.value&&(n.value.removeEventListener("keydown",l),n.value.removeEventListener("focusin",u),n.value.removeEventListener("focusout",f),n.value=void 0)}),{onKeydown:l}}});function S7(e,t,n,r,a,i){return o.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var _7=En(E7,[["render",S7],["__file","focus-trap.vue"]]);const B7=["fixed","absolute"],T7=en({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:tt(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Tm,default:"bottom"},popperOptions:{type:tt(Object),default:()=>({})},strategy:{type:String,values:B7,default:"absolute"}}),Sx=en({...T7,id:String,style:{type:tt([String,Array,Object])},className:{type:tt([String,Array,Object])},effect:{type:tt(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:tt([String,Array,Object])},popperStyle:{type:tt([String,Array,Object])},referenceEl:{type:tt(Object)},triggerTargetEl:{type:tt(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...sx(["ariaLabel"])}),N7={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},O7=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:a}=e,i={placement:n,strategy:r,...a,modifiers:[...$7(e),...t]};return F7(i,a==null?void 0:a.modifiers),i},P7=e=>{if(sr)return ni(e)};function $7(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,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 F7(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const A7=0,I7=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:a}=o.inject(Mm,void 0),i=o.ref(),s=o.ref(),l=o.computed(()=>({name:"eventListeners",enabled:!!e.visible})),d=o.computed(()=>{var y;const b=o.unref(i),x=(y=o.unref(s))!=null?y:A7;return{name:"arrow",enabled:!iM(b),options:{element:b,padding:x}}}),c=o.computed(()=>({onFirstUpdate:()=>{p()},...O7(e,[o.unref(d),o.unref(l)])})),u=o.computed(()=>P7(e.referenceEl)||o.unref(r)),{attributes:f,state:h,styles:m,update:p,forceUpdate:g,instanceRef:v}=Fz(u,n,c);return o.watch(v,y=>t.value=y),o.onMounted(()=>{o.watch(()=>{var y;return(y=o.unref(u))==null?void 0:y.getBoundingClientRect()},()=>{p()})}),{attributes:f,arrowRef:i,contentRef:n,instanceRef:v,state:h,styles:m,role:a,forceUpdate:g,update:p}},D7=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:a}=ax(),i=xr("popper"),s=o.computed(()=>o.unref(t).popper),l=o.ref(Gl(e.zIndex)?e.zIndex:a()),d=o.computed(()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass]),c=o.computed(()=>[{zIndex:o.unref(l)},o.unref(n).popper,e.popperStyle||{}]),u=o.computed(()=>r.value==="dialog"?"false":void 0),f=o.computed(()=>o.unref(n).arrow||{});return{ariaModal:u,arrowStyle:f,contentAttrs:s,contentClass:d,contentStyle:c,contentZIndex:l,updateZIndex:()=>{l.value=Gl(e.zIndex)?e.zIndex:a()}}},V7=(e,t)=>{const n=o.ref(!1),r=o.ref();return{focusStartRef:r,trapped:n,onFocusAfterReleased:a=>{var i;((i=a.detail)==null?void 0:i.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:a=>{e.visible&&!n.value&&(a.target&&(r.value=a.target),n.value=!0)},onFocusoutPrevented:a=>{e.trapping||(a.detail.focusReason==="pointer"&&a.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},R7=o.defineComponent({name:"ElPopperContent"}),L7=o.defineComponent({...R7,props:Sx,emits:N7,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:a,trapped:i,onFocusAfterReleased:s,onFocusAfterTrapped:l,onFocusInTrap:d,onFocusoutPrevented:c,onReleaseRequested:u}=V7(r,n),{attributes:f,arrowRef:h,contentRef:m,styles:p,instanceRef:g,role:v,update:y}=I7(r),{ariaModal:b,arrowStyle:x,contentAttrs:w,contentClass:k,contentStyle:C,updateZIndex:E}=D7(r,{styles:p,attributes:f,role:v}),S=o.inject(Nu,void 0),_=o.ref();o.provide(ux,{arrowStyle:x,arrowRef:h,arrowOffset:_}),S&&o.provide(Nu,{...S,addInputId:hu,removeInputId:hu});let O;const T=(F=!0)=>{y(),F&&E()},N=()=>{T(!1),r.visible&&r.focusOnShow?i.value=!0:r.visible===!1&&(i.value=!1)};return o.onMounted(()=>{o.watch(()=>r.triggerTargetEl,(F,$)=>{O==null||O(),O=void 0;const D=o.unref(F||m.value),P=o.unref($||m.value);Xl(D)&&(O=o.watch([v,()=>r.ariaLabel,b,()=>r.id],V=>{["role","aria-label","aria-modal","id"].forEach((I,z)=>{km(V[z])?D.removeAttribute(I):D.setAttribute(I,V[z])})},{immediate:!0})),P!==D&&Xl(P)&&["role","aria-label","aria-modal","id"].forEach(V=>{P.removeAttribute(V)})},{immediate:!0}),o.watch(()=>r.visible,N,{immediate:!0})}),o.onBeforeUnmount(()=>{O==null||O(),O=void 0}),t({popperContentRef:m,popperInstanceRef:g,updatePopper:T,contentStyle:C}),(F,$)=>(o.openBlock(),o.createElementBlock("div",o.mergeProps({ref_key:"contentRef",ref:m},o.unref(w),{style:o.unref(C),class:o.unref(k),tabindex:"-1",onMouseenter:D=>F.$emit("mouseenter",D),onMouseleave:D=>F.$emit("mouseleave",D)}),[o.createVNode(o.unref(_7),{trapped:o.unref(i),"trap-on-focus-in":!0,"focus-trap-el":o.unref(m),"focus-start-el":o.unref(a),onFocusAfterTrapped:o.unref(l),onFocusAfterReleased:o.unref(s),onFocusin:o.unref(d),onFocusoutPrevented:o.unref(c),onReleaseRequested:o.unref(u)},{default:o.withCtx(()=>[o.renderSlot(F.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var M7=En(L7,[["__file","content.vue"]]);const z7=ii(i7),Wm=Symbol("elTooltip"),Sr=en({...Mz,...Sx,appendTo:{type:tt([String,Object])},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:tt(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...sx(["ariaLabel"])}),oc=en({...gx,disabled:Boolean,trigger:{type:tt([String,Array]),default:"hover"},triggerKeys:{type:tt(Array),default:()=>[Cu.enter,Cu.space]}}),{useModelToggleProps:j7,useModelToggleEmits:H7,useModelToggle:U7}=OM("visible"),q7=en({...fx,...j7,...Sr,...oc,...px,showArrow:{type:Boolean,default:!0}}),W7=[...H7,"before-show","before-hide","show","hide","open","close"],K7=(e,t)=>fR(e)?e.includes(t):e===t,bs=(e,t,n)=>r=>{K7(o.unref(e),t)&&n(r)},G7=o.defineComponent({name:"ElTooltipTrigger"}),X7=o.defineComponent({...G7,props:oc,setup(e,{expose:t}){const n=e,r=xr("tooltip"),{controlled:a,id:i,open:s,onOpen:l,onClose:d,onToggle:c}=o.inject(Wm,void 0),u=o.ref(null),f=()=>{if(o.unref(a)||n.disabled)return!0},h=o.toRef(n,"trigger"),m=Ao(f,bs(h,"hover",l)),p=Ao(f,bs(h,"hover",d)),g=Ao(f,bs(h,"click",w=>{w.button===0&&c(w)})),v=Ao(f,bs(h,"focus",l)),y=Ao(f,bs(h,"focus",d)),b=Ao(f,bs(h,"contextmenu",w=>{w.preventDefault(),c(w)})),x=Ao(f,w=>{const{code:k}=w;n.triggerKeys.includes(k)&&(w.preventDefault(),c(w))});return t({triggerRef:u}),(w,k)=>(o.openBlock(),o.createBlock(o.unref(p7),{id:o.unref(i),"virtual-ref":w.virtualRef,open:o.unref(s),"virtual-triggering":w.virtualTriggering,class:o.normalizeClass(o.unref(r).e("trigger")),onBlur:o.unref(y),onClick:o.unref(g),onContextmenu:o.unref(b),onFocus:o.unref(v),onMouseenter:o.unref(m),onMouseleave:o.unref(p),onKeydown:o.unref(x)},{default:o.withCtx(()=>[o.renderSlot(w.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var Y7=En(X7,[["__file","trigger.vue"]]);const Z7=en({to:{type:tt([String,Object]),required:!0},disabled:Boolean});var J7=En(o.defineComponent({__name:"teleport",props:Z7,setup(e){return(t,n)=>t.disabled?o.renderSlot(t.$slots,"default",{key:0}):(o.openBlock(),o.createBlock(o.Teleport,{key:1,to:t.to},[o.renderSlot(t.$slots,"default")],8,["to"]))}}),[["__file","teleport.vue"]]);const Q7=ii(J7),ej=o.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),tj=o.defineComponent({...ej,props:Sr,setup(e,{expose:t}){const n=e,{selector:r}=Jw(),a=xr("tooltip"),i=o.ref(null);let s;const{controlled:l,id:d,open:c,trigger:u,onClose:f,onOpen:h,onShow:m,onHide:p,onBeforeShow:g,onBeforeHide:v}=o.inject(Wm,void 0),y=o.computed(()=>n.transition||`${a.namespace.value}-fade-in-linear`),b=o.computed(()=>process.env.NODE_ENV==="test"?!0:n.persistent);o.onBeforeUnmount(()=>{s==null||s()});const x=o.computed(()=>o.unref(b)?!0:o.unref(c)),w=o.computed(()=>n.disabled?!1:o.unref(c)),k=o.computed(()=>n.appendTo||r.value),C=o.computed(()=>{var P;return(P=n.style)!=null?P:{}}),E=o.ref(!0),S=()=>{p(),E.value=!0},_=()=>{if(o.unref(l))return!0},O=Ao(_,()=>{n.enterable&&o.unref(u)==="hover"&&h()}),T=Ao(_,()=>{o.unref(u)==="hover"&&f()}),N=()=>{var P,V;(V=(P=i.value)==null?void 0:P.updatePopper)==null||V.call(P),g==null||g()},F=()=>{v==null||v()},$=()=>{m(),s=iR(o.computed(()=>{var P;return(P=i.value)==null?void 0:P.popperContentRef}),()=>{o.unref(l)||o.unref(u)!=="hover"&&f()})},D=()=>{n.virtualTriggering||f()};return o.watch(()=>o.unref(c),P=>{P?E.value=!1:s==null||s()},{flush:"post"}),o.watch(()=>n.content,()=>{var P,V;(V=(P=i.value)==null?void 0:P.updatePopper)==null||V.call(P)}),t({contentRef:i}),(P,V)=>(o.openBlock(),o.createBlock(o.unref(Q7),{disabled:!P.teleported,to:o.unref(k)},{default:o.withCtx(()=>[o.createVNode(o.Transition,{name:o.unref(y),onAfterLeave:S,onBeforeEnter:N,onAfterEnter:$,onBeforeLeave:F},{default:o.withCtx(()=>[o.unref(x)?o.withDirectives((o.openBlock(),o.createBlock(o.unref(M7),o.mergeProps({key:0,id:o.unref(d),ref_key:"contentRef",ref:i},P.$attrs,{"aria-label":P.ariaLabel,"aria-hidden":E.value,"boundaries-padding":P.boundariesPadding,"fallback-placements":P.fallbackPlacements,"gpu-acceleration":P.gpuAcceleration,offset:P.offset,placement:P.placement,"popper-options":P.popperOptions,strategy:P.strategy,effect:P.effect,enterable:P.enterable,pure:P.pure,"popper-class":P.popperClass,"popper-style":[P.popperStyle,o.unref(C)],"reference-el":P.referenceEl,"trigger-target-el":P.triggerTargetEl,visible:o.unref(w),"z-index":P.zIndex,onMouseenter:o.unref(O),onMouseleave:o.unref(T),onBlur:D,onClose:o.unref(f)}),{default:o.withCtx(()=>[o.renderSlot(P.$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"])),[[o.vShow,o.unref(w)]]):o.createCommentVNode("v-if",!0)]),_:3},8,["name"])]),_:3},8,["disabled","to"]))}});var nj=En(tj,[["__file","content.vue"]]);const rj=o.defineComponent({name:"ElTooltip"}),oj=o.defineComponent({...rj,props:q7,emits:W7,setup(e,{expose:t,emit:n}){const r=e;Lz();const a=Dz(),i=o.ref(),s=o.ref(),l=()=>{var y;const b=o.unref(i);b&&((y=b.popperInstanceRef)==null||y.update())},d=o.ref(!1),c=o.ref(),{show:u,hide:f,hasUpdateHandler:h}=U7({indicator:d,toggleReason:c}),{onOpen:m,onClose:p}=zz({showAfter:o.toRef(r,"showAfter"),hideAfter:o.toRef(r,"hideAfter"),autoClose:o.toRef(r,"autoClose"),open:u,close:f}),g=o.computed(()=>Em(r.visible)&&!h.value);o.provide(Wm,{controlled:g,id:a,open:o.readonly(d),trigger:o.toRef(r,"trigger"),onOpen:y=>{m(y)},onClose:y=>{p(y)},onToggle:y=>{o.unref(d)?p(y):m(y)},onShow:()=>{n("show",c.value)},onHide:()=>{n("hide",c.value)},onBeforeShow:()=>{n("before-show",c.value)},onBeforeHide:()=>{n("before-hide",c.value)},updatePopper:l}),o.watch(()=>r.disabled,y=>{y&&d.value&&(d.value=!1)});const v=y=>{var b,x;const w=(x=(b=s.value)==null?void 0:b.contentRef)==null?void 0:x.popperContentRef,k=(y==null?void 0:y.relatedTarget)||document.activeElement;return w&&w.contains(k)};return o.onDeactivated(()=>d.value&&f()),t({popperRef:i,contentRef:s,isFocusInsideContent:v,updatePopper:l,onOpen:m,onClose:p,hide:f}),(y,b)=>(o.openBlock(),o.createBlock(o.unref(z7),{ref_key:"popperRef",ref:i,role:y.role},{default:o.withCtx(()=>[o.createVNode(Y7,{disabled:y.disabled,trigger:y.trigger,"trigger-keys":y.triggerKeys,"virtual-ref":y.virtualRef,"virtual-triggering":y.virtualTriggering},{default:o.withCtx(()=>[y.$slots.default?o.renderSlot(y.$slots,"default",{key:0}):o.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),o.createVNode(nj,{ref_key:"contentRef",ref:s,"aria-label":y.ariaLabel,"boundaries-padding":y.boundariesPadding,content:y.content,disabled:y.disabled,effect:y.effect,enterable:y.enterable,"fallback-placements":y.fallbackPlacements,"hide-after":y.hideAfter,"gpu-acceleration":y.gpuAcceleration,offset:y.offset,persistent:y.persistent,"popper-class":y.popperClass,"popper-style":y.popperStyle,placement:y.placement,"popper-options":y.popperOptions,pure:y.pure,"raw-content":y.rawContent,"reference-el":y.referenceEl,"trigger-target-el":y.triggerTargetEl,"show-after":y.showAfter,strategy:y.strategy,teleported:y.teleported,transition:y.transition,"virtual-triggering":y.virtualTriggering,"z-index":y.zIndex,"append-to":y.appendTo},{default:o.withCtx(()=>[o.renderSlot(y.$slots,"content",{},()=>[y.rawContent?(o.openBlock(),o.createElementBlock("span",{key:0,innerHTML:y.content},null,8,["innerHTML"])):(o.openBlock(),o.createElementBlock("span",{key:1},o.toDisplayString(y.content),1))]),y.showArrow?(o.openBlock(),o.createBlock(o.unref(c7),{key:0,"arrow-offset":y.arrowOffset},null,8,["arrow-offset"])):o.createCommentVNode("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 aj=En(oj,[["__file","tooltip.vue"]]);const ij=ii(aj),_x=Symbol("buttonGroupContextKey"),sj=(e,t)=>{xM({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},o.computed(()=>e.type==="text"));const n=o.inject(_x,void 0),r=Rm("button"),{form:a}=n7(),i=t7(o.computed(()=>n==null?void 0:n.size)),s=dx(),l=o.ref(),d=o.useSlots(),c=o.computed(()=>e.type||(n==null?void 0:n.type)||""),u=o.computed(()=>{var m,p,g;return(g=(p=e.autoInsertSpace)!=null?p:(m=r.value)==null?void 0:m.autoInsertSpace)!=null?g:!1}),f=o.computed(()=>e.tag==="button"?{ariaDisabled:s.value||e.loading,disabled:s.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),h=o.computed(()=>{var m;const p=(m=d.default)==null?void 0:m.call(d);if(u.value&&(p==null?void 0:p.length)===1){const g=p[0];if((g==null?void 0:g.type)===o.Text){const v=g.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(v.trim())}}return!1});return{_disabled:s,_size:i,_type:c,_ref:l,_props:f,shouldAddSpace:h,handleClick:m=>{if(s.value||e.loading){m.stopPropagation();return}e.nativeType==="reset"&&(a==null||a.resetFields()),t("click",m)}}},lj=["default","primary","success","warning","info","danger","text",""],cj=["button","submit","reset"],Km=en({size:Uz,disabled:Boolean,type:{type:String,values:lj,default:""},icon:{type:Sm},nativeType:{type:String,values:cj,default:"button"},loading:Boolean,loadingIcon:{type:Sm,default:()=>gM},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:tt([String,Object]),default:"button"}}),dj={click:e=>e instanceof MouseEvent};function un(e,t){uj(e)&&(e="100%");var n=fj(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 Au(e){return Math.min(1,Math.max(0,e))}function uj(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function fj(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Bx(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Iu(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ci(e){return e.length===1?"0"+e:String(e)}function pj(e,t,n){return{r:un(e,255)*255,g:un(t,255)*255,b:un(n,255)*255}}function Tx(e,t,n){e=un(e,255),t=un(t,255),n=un(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),i=0,s=0,l=(r+a)/2;if(r===a)s=0,i=0;else{var d=r-a;switch(s=l>.5?d/(2-r-a):d/(r+a),r){case e:i=(t-n)/d+(t1&&(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 hj(e,t,n){var r,a,i;if(e=un(e,360),t=un(t,100),n=un(n,100),t===0)a=n,i=n,r=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=Gm(l,s,e+1/3),a=Gm(l,s,e),i=Gm(l,s,e-1/3)}return{r:r*255,g:a*255,b:i*255}}function Nx(e,t,n){e=un(e,255),t=un(t,255),n=un(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),i=0,s=r,l=r-a,d=r===0?0:l/r;if(r===a)i=0;else{switch(r){case e:i=(t-n)/l+(t>16,g:(e&65280)>>8,b:e&255}}var Xm={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 bj(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,i=null,s=!1,l=!1;return typeof e=="string"&&(e=Cj(e)),typeof e=="object"&&(Do(e.r)&&Do(e.g)&&Do(e.b)?(t=pj(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Do(e.h)&&Do(e.s)&&Do(e.v)?(r=Iu(e.s),a=Iu(e.v),t=mj(e.h,r,a),s=!0,l="hsv"):Do(e.h)&&Do(e.s)&&Do(e.l)&&(r=Iu(e.s),i=Iu(e.l),t=hj(e.h,r,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Bx(n),{ok:s,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 wj="[-\\+]?\\d+%?",xj="[-\\+]?\\d*\\.\\d+%?",ma="(?:".concat(xj,")|(?:").concat(wj,")"),Ym="[\\s|\\(]+(".concat(ma,")[,|\\s]+(").concat(ma,")[,|\\s]+(").concat(ma,")\\s*\\)?"),Zm="[\\s|\\(]+(".concat(ma,")[,|\\s]+(").concat(ma,")[,|\\s]+(").concat(ma,")[,|\\s]+(").concat(ma,")\\s*\\)?"),qr={CSS_UNIT:new RegExp(ma),rgb:new RegExp("rgb"+Ym),rgba:new RegExp("rgba"+Zm),hsl:new RegExp("hsl"+Ym),hsla:new RegExp("hsla"+Zm),hsv:new RegExp("hsv"+Ym),hsva:new RegExp("hsva"+Zm),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 Cj(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Xm[e])e=Xm[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=qr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=qr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=qr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=qr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=qr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=qr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=qr.hex8.exec(e),n?{r:lr(n[1]),g:lr(n[2]),b:lr(n[3]),a:Px(n[4]),format:t?"name":"hex8"}:(n=qr.hex6.exec(e),n?{r:lr(n[1]),g:lr(n[2]),b:lr(n[3]),format:t?"name":"hex"}:(n=qr.hex4.exec(e),n?{r:lr(n[1]+n[1]),g:lr(n[2]+n[2]),b:lr(n[3]+n[3]),a:Px(n[4]+n[4]),format:t?"name":"hex8"}:(n=qr.hex3.exec(e),n?{r:lr(n[1]+n[1]),g:lr(n[2]+n[2]),b:lr(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Do(e){return!!qr.CSS_UNIT.exec(String(e))}var kj=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=vj(t)),this.originalInput=t;var a=bj(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:a.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=a.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,a,i=t.r/255,s=t.g/255,l=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),s<=.03928?r=s/12.92:r=Math.pow((s+.055)/1.055,2.4),l<=.03928?a=l/12.92:a=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Bx(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=Nx(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=Nx(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Tx(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=Tx(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Ox(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),gj(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(un(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(un(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="#"+Ox(this.r,this.g,this.b,!1),n=0,r=Object.entries(Xm);n=0,i=!n&&a&&(t.startsWith("hex")||t==="name");return i?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=Au(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=Au(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=Au(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=Au(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(),a=new e(t).toRgb(),i=n/100,s={r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b,a:(a.a-r.a)*i+r.a};return new e(s)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),a=360/n,i=[this];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,i.push(new e(r));return i},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,a=n.s,i=n.v,s=[],l=1/t;t--;)s.push(new e({h:r,s:a,v:i})),i=(i+l)%1;return s},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(),a=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a})},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,a=[this],i=360/t,s=1;s{let r={},a=e.color;if(a){const i=a.match(/var\((.*?)\)/);i&&(a=window.getComputedStyle(window.document.documentElement).getPropertyValue(i[1]));const s=new kj(a),l=e.dark?s.tint(20).toString():ga(s,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?ga(s,90):s.tint(90).toString(),"text-color":a,"border-color":e.dark?ga(s,50):s.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":a,"hover-border-color":a,"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?ga(s,90):s.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?ga(s,50):s.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?ga(s,80):s.tint(80).toString());else{const d=e.dark?ga(s,30):s.tint(30).toString(),c=s.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":a,"text-color":c,"border-color":a,"hover-bg-color":d,"hover-text-color":c,"hover-border-color":d,"active-bg-color":l,"active-border-color":l}),t.value){const u=e.dark?ga(s,50):s.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=u,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")]=u}}}return r})}const Sj=o.defineComponent({name:"ElButton"}),_j=o.defineComponent({...Sj,props:Km,emits:dj,setup(e,{expose:t,emit:n}){const r=e,a=Ej(r),i=xr("button"),{_ref:s,_size:l,_type:d,_disabled:c,_props:u,shouldAddSpace:f,handleClick:h}=sj(r,n),m=o.computed(()=>[i.b(),i.m(d.value),i.m(l.value),i.is("disabled",c.value),i.is("loading",r.loading),i.is("plain",r.plain),i.is("round",r.round),i.is("circle",r.circle),i.is("text",r.text),i.is("link",r.link),i.is("has-bg",r.bg)]);return t({ref:s,size:l,type:d,disabled:c,shouldAddSpace:f}),(p,g)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(p.tag),o.mergeProps({ref_key:"_ref",ref:s},o.unref(u),{class:o.unref(m),style:o.unref(a),onClick:o.unref(h)}),{default:o.withCtx(()=>[p.loading?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[p.$slots.loading?o.renderSlot(p.$slots,"loading",{key:0}):(o.openBlock(),o.createBlock(o.unref(cx),{key:1,class:o.normalizeClass(o.unref(i).is("loading"))},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(p.loadingIcon)))]),_:1},8,["class"]))],64)):p.icon||p.$slots.icon?(o.openBlock(),o.createBlock(o.unref(cx),{key:1},{default:o.withCtx(()=>[p.icon?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(p.icon),{key:0})):o.renderSlot(p.$slots,"icon",{key:1})]),_:3})):o.createCommentVNode("v-if",!0),p.$slots.default?(o.openBlock(),o.createElementBlock("span",{key:2,class:o.normalizeClass({[o.unref(i).em("text","expand")]:o.unref(f)})},[o.renderSlot(p.$slots,"default")],2)):o.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var Bj=En(_j,[["__file","button.vue"]]);const Tj={size:Km.size,type:Km.type},Nj=o.defineComponent({name:"ElButtonGroup"}),Oj=o.defineComponent({...Nj,props:Tj,setup(e){const t=e;o.provide(_x,o.reactive({size:o.toRef(t,"size"),type:o.toRef(t,"type")}));const n=xr("button");return(r,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(o.unref(n).b("group"))},[o.renderSlot(r.$slots,"default")],2))}});var $x=En(Oj,[["__file","button-group.vue"]]);const Pj=ii(Bj,{ButtonGroup:$x});bM($x);const $j=en({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:tt([String,Object,Array]),default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),Fj=o.defineComponent({name:"ElCard"}),Aj=o.defineComponent({...Fj,props:$j,setup(e){const t=xr("card");return(n,r)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass([o.unref(t).b(),o.unref(t).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(o.unref(t).e("header"))},[o.renderSlot(n.$slots,"header",{},()=>[o.createTextVNode(o.toDisplayString(n.header),1)])],2)):o.createCommentVNode("v-if",!0),o.createElementVNode("div",{class:o.normalizeClass([o.unref(t).e("body"),n.bodyClass]),style:o.normalizeStyle(n.bodyStyle)},[o.renderSlot(n.$slots,"default")],6),n.$slots.footer||n.footer?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(o.unref(t).e("footer"))},[o.renderSlot(n.$slots,"footer",{},()=>[o.createTextVNode(o.toDisplayString(n.footer),1)])],2)):o.createCommentVNode("v-if",!0)],2))}});var Ij=En(Aj,[["__file","card.vue"]]);const Dj=ii(Ij),Vj=o.defineComponent({inheritAttrs:!1});function Rj(e,t,n,r,a,i){return o.renderSlot(e.$slots,"default")}var Lj=En(Vj,[["render",Rj],["__file","collection.vue"]]);const Mj=o.defineComponent({name:"ElCollectionItem",inheritAttrs:!1});function zj(e,t,n,r,a,i){return o.renderSlot(e.$slots,"default")}var jj=En(Mj,[["render",zj],["__file","collection-item.vue"]]);const Hj="data-el-collection-item",Uj=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),a=Symbol(n),i={...Lj,name:t,setup(){const l=o.ref(null),d=new Map;o.provide(r,{itemMap:d,getItems:()=>{const c=o.unref(l);if(!c)return[];const u=Array.from(c.querySelectorAll(`[${Hj}]`));return[...d.values()].sort((f,h)=>u.indexOf(f.ref)-u.indexOf(h.ref))},collectionRef:l})}},s={...jj,name:n,setup(l,{attrs:d}){const c=o.ref(null),u=o.inject(r,void 0);o.provide(a,{collectionItemRef:c}),o.onMounted(()=>{const f=o.unref(c);f&&u.itemMap.set(f,{ref:f,...d})}),o.onBeforeUnmount(()=>{const f=o.unref(c);u.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:i,ElCollectionItem:s}},Jm=en({trigger:oc.trigger,effect:{...Sr.effect,default:"light"},type:{type:tt(String)},placement:{type:tt(String),default:"bottom"},popperOptions:{type:tt(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:tt([Number,String]),default:0},maxHeight:{type:tt([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,default:"menu"},buttonProps:{type:tt(Object)},teleported:Sr.teleported});en({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Sm}}),en({onKeydown:{type:tt(Function)}}),Uj("Dropdown");const qj=en({trigger:oc.trigger,placement:Jm.placement,disabled:oc.disabled,visible:Sr.visible,transition:Sr.transition,popperOptions:Jm.popperOptions,tabindex:Jm.tabindex,content:Sr.content,popperStyle:Sr.popperStyle,popperClass:Sr.popperClass,enterable:{...Sr.enterable,default:!0},effect:{...Sr.effect,default:"light"},teleported:Sr.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}}),Wj={"update:visible":e=>Em(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},Kj="onUpdate:visible",Gj=o.defineComponent({name:"ElPopover"}),Xj=o.defineComponent({...Gj,props:qj,emits:Wj,setup(e,{expose:t,emit:n}){const r=e,a=o.computed(()=>r[Kj]),i=xr("popover"),s=o.ref(),l=o.computed(()=>{var v;return(v=o.unref(s))==null?void 0:v.popperRef}),d=o.computed(()=>[{width:kw(r.width)},r.popperStyle]),c=o.computed(()=>[i.b(),r.popperClass,{[i.m("plain")]:!!r.content}]),u=o.computed(()=>r.transition===`${i.namespace.value}-fade-in-linear`),f=()=>{var v;(v=s.value)==null||v.hide()},h=()=>{n("before-enter")},m=()=>{n("before-leave")},p=()=>{n("after-enter")},g=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:l,hide:f}),(v,y)=>(o.openBlock(),o.createBlock(o.unref(ij),o.mergeProps({ref_key:"tooltipRef",ref:s},v.$attrs,{trigger:v.trigger,placement:v.placement,disabled:v.disabled,visible:v.visible,transition:v.transition,"popper-options":v.popperOptions,tabindex:v.tabindex,content:v.content,offset:v.offset,"show-after":v.showAfter,"hide-after":v.hideAfter,"auto-close":v.autoClose,"show-arrow":v.showArrow,"aria-label":v.title,effect:v.effect,enterable:v.enterable,"popper-class":o.unref(c),"popper-style":o.unref(d),teleported:v.teleported,persistent:v.persistent,"gpu-acceleration":o.unref(u),"onUpdate:visible":o.unref(a),onBeforeShow:h,onBeforeHide:m,onShow:p,onHide:g}),{content:o.withCtx(()=>[v.title?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(o.unref(i).e("title")),role:"title"},o.toDisplayString(v.title),3)):o.createCommentVNode("v-if",!0),o.renderSlot(v.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(v.content),1)])]),default:o.withCtx(()=>[v.$slots.reference?o.renderSlot(v.$slots,"reference",{key:0}):o.createCommentVNode("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 Yj=En(Xj,[["__file","popover.vue"]]);const Fx=(e,t)=>{const n=t.arg||t.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=e)};var Zj={mounted(e,t){Fx(e,t)},updated(e,t){Fx(e,t)}};const Jj="popover",Qj=vM(Zj,Jj),eH=ii(Yj,{directive:Qj});function tH(e){let t;const n=o.ref(!1),r=o.reactive({...e,originalPosition:"",originalOverflow:"",visible:!1});function a(h){r.text=h}function i(){const h=r.parent,m=f.ns;if(!h.vLoadingAddClassList){let p=h.getAttribute("loading-number");p=Number.parseInt(p)-1,p?h.setAttribute("loading-number",p.toString()):(wu(h,m.bm("parent","relative")),h.removeAttribute("loading-number")),wu(h,m.bm("parent","hidden"))}s(),u.unmount()}function s(){var h,m;(m=(h=f.$el)==null?void 0:h.parentNode)==null||m.removeChild(f.$el)}function l(){var h;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=setTimeout(d,400),r.visible=!1,(h=e.closed)==null||h.call(e))}function d(){if(!n.value)return;const h=r.parent;n.value=!1,h.vLoadingAddClassList=void 0,i()}const c=o.defineComponent({name:"ElLoading",setup(h,{expose:m}){const{ns:p,zIndex:g}=Gz("loading");return m({ns:p,zIndex:g}),()=>{const v=r.spinner||r.svg,y=o.h("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...v?{innerHTML:v}:{}},[o.h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),b=r.text?o.h("p",{class:p.b("text")},[r.text]):void 0;return o.h(o.Transition,{name:p.b("fade"),onAfterLeave:d},{default:o.withCtx(()=>[o.withDirectives(o.createVNode("div",{style:{backgroundColor:r.background||""},class:[p.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[o.h("div",{class:p.b("spinner")},[y,b])]),[[o.vShow,r.visible]])])})}}}),u=o.createApp(c),f=u.mount(document.createElement("div"));return{...o.toRefs(r),setText:a,removeElLoadingChild:s,close:l,handleAfterLeave:d,vm:f,get $el(){return f.$el}}}let Du;const nH=function(e={}){if(!sr)return;const t=rH(e);if(t.fullscreen&&Du)return Du;const n=tH({...t,closed:()=>{var a;(a=t.closed)==null||a.call(t),t.fullscreen&&(Du=void 0)}});oH(t,t.parent,n),Ax(t,t.parent,n),t.parent.vLoadingAddClassList=()=>Ax(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),o.nextTick(()=>n.visible.value=t.visible),t.fullscreen&&(Du=n),n},rH=e=>{var t,n,r,a;let i;return us(e.target)?i=(t=document.querySelector(e.target))!=null?t:document.body:i=e.target||document.body,{parent:i===document.body||e.body?document.body:i,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:i===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(r=e.lock)!=null?r:!1,customClass:e.customClass||"",visible:(a=e.visible)!=null?a:!0,beforeClose:e.beforeClose,closed:e.closed,target:i}},oH=async(e,t,n)=>{const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,a={};if(e.fullscreen)n.originalPosition.value=Yl(document.body,"position"),n.originalOverflow.value=Yl(document.body,"overflow"),a.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=Yl(document.body,"position"),await o.nextTick();for(const i of["top","left"]){const s=i==="top"?"scrollTop":"scrollLeft";a[i]=`${e.target.getBoundingClientRect()[i]+document.body[s]+document.documentElement[s]-Number.parseInt(Yl(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])a[i]=`${e.target.getBoundingClientRect()[i]}px`}else n.originalPosition.value=Yl(t,"position");for(const[i,s]of Object.entries(a))n.$el.style[i]=s},Ax=(e,t,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?wu(t,r.bm("parent","relative")):Cw(t,r.bm("parent","relative")),e.fullscreen&&e.lock?Cw(t,r.bm("parent","hidden")):wu(t,r.bm("parent","hidden"))},Vu=Symbol("ElLoading"),Ix=(e,t)=>{var n,r,a,i;const s=t.instance,l=h=>Ul(t.value)?t.value[h]:void 0,d=h=>{const m=us(h)&&(s==null?void 0:s[h])||h;return m&&o.ref(m)},c=h=>d(l(h)||e.getAttribute(`element-loading-${gR(h)}`)),u=(n=l("fullscreen"))!=null?n:t.modifiers.fullscreen,f={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:u,target:(r=l("target"))!=null?r:u?void 0:e,body:(a=l("body"))!=null?a:t.modifiers.body,lock:(i=l("lock"))!=null?i:t.modifiers.lock};e[Vu]={options:f,instance:nH(f)}},aH=(e,t)=>{for(const n of Object.keys(t))o.isRef(t[n])&&(t[n].value=e[n])},iH={mounted(e,t){t.value&&Ix(e,t)},updated(e,t){const n=e[Vu];t.oldValue!==t.value&&(t.value&&!t.oldValue?Ix(e,t):t.value&&t.oldValue?Ul(t.value)&&aH(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[Vu])==null||t.instance.close(),e[Vu]=null}};function Dx(e,t){return function(){return e.apply(t,arguments)}}const{toString:sH}=Object.prototype,{getPrototypeOf:Qm}=Object,Ru=(e=>t=>{const n=sH.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Wr=e=>(e=e.toLowerCase(),t=>Ru(t)===e),Lu=e=>t=>typeof t===e,{isArray:ws}=Array,ac=Lu("undefined");function lH(e){return e!==null&&!ac(e)&&e.constructor!==null&&!ac(e.constructor)&&cr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Vx=Wr("ArrayBuffer");function cH(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Vx(e.buffer),t}const dH=Lu("string"),cr=Lu("function"),Rx=Lu("number"),Mu=e=>e!==null&&typeof e=="object",uH=e=>e===!0||e===!1,zu=e=>{if(Ru(e)!=="object")return!1;const t=Qm(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},fH=Wr("Date"),pH=Wr("File"),hH=Wr("Blob"),mH=Wr("FileList"),gH=e=>Mu(e)&&cr(e.pipe),yH=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||cr(e.append)&&((t=Ru(e))==="formdata"||t==="object"&&cr(e.toString)&&e.toString()==="[object FormData]"))},vH=Wr("URLSearchParams"),[bH,wH,xH,CH]=["ReadableStream","Request","Response","Headers"].map(Wr),kH=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ic(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),ws(e))for(r=0,a=e.length;r0;)if(a=n[r],t===a.toLowerCase())return a;return null}const di=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Mx=e=>!ac(e)&&e!==di;function e0(){const{caseless:e}=Mx(this)&&this||{},t={},n=(r,a)=>{const i=e&&Lx(t,a)||a;zu(t[i])&&zu(r)?t[i]=e0(t[i],r):zu(r)?t[i]=e0({},r):ws(r)?t[i]=r.slice():t[i]=r};for(let r=0,a=arguments.length;r(ic(t,(a,i)=>{n&&cr(a)?e[i]=Dx(a,n):e[i]=a},{allOwnKeys:r}),e),SH=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),_H=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},BH=(e,t,n,r)=>{let a,i,s;const l={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)s=a[i],(!r||r(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&Qm(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},TH=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},NH=e=>{if(!e)return null;if(ws(e))return e;let t=e.length;if(!Rx(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},OH=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Qm(Uint8Array)),PH=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const a=r.value;t.call(e,a[0],a[1])}},$H=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},FH=Wr("HTMLFormElement"),AH=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,r){return n.toUpperCase()+r}),zx=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),IH=Wr("RegExp"),jx=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ic(n,(a,i)=>{let s;(s=t(a,i,e))!==!1&&(r[i]=s||a)}),Object.defineProperties(e,r)},DH=e=>{jx(e,(t,n)=>{if(cr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(cr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},VH=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return ws(e)?r(e):r(String(e).split(t)),n},RH=()=>{},LH=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,t0="abcdefghijklmnopqrstuvwxyz",Hx="0123456789",Ux={DIGIT:Hx,ALPHA:t0,ALPHA_DIGIT:t0+t0.toUpperCase()+Hx},MH=(e=16,t=Ux.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function zH(e){return!!(e&&cr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const jH=e=>{const t=new Array(10),n=(r,a)=>{if(Mu(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[a]=r;const i=ws(r)?[]:{};return ic(r,(s,l)=>{const d=n(s,a+1);!ac(d)&&(i[l]=d)}),t[a]=void 0,i}}return r};return n(e,0)},HH=Wr("AsyncFunction"),UH=e=>e&&(Mu(e)||cr(e))&&cr(e.then)&&cr(e.catch),qx=((e,t)=>e?setImmediate:t?((n,r)=>(di.addEventListener("message",({source:a,data:i})=>{a===di&&i===n&&r.length&&r.shift()()},!1),a=>{r.push(a),di.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",cr(di.postMessage)),qH=typeof queueMicrotask<"u"?queueMicrotask.bind(di):typeof process<"u"&&process.nextTick||qx,se={isArray:ws,isArrayBuffer:Vx,isBuffer:lH,isFormData:yH,isArrayBufferView:cH,isString:dH,isNumber:Rx,isBoolean:uH,isObject:Mu,isPlainObject:zu,isReadableStream:bH,isRequest:wH,isResponse:xH,isHeaders:CH,isUndefined:ac,isDate:fH,isFile:pH,isBlob:hH,isRegExp:IH,isFunction:cr,isStream:gH,isURLSearchParams:vH,isTypedArray:OH,isFileList:mH,forEach:ic,merge:e0,extend:EH,trim:kH,stripBOM:SH,inherits:_H,toFlatObject:BH,kindOf:Ru,kindOfTest:Wr,endsWith:TH,toArray:NH,forEachEntry:PH,matchAll:$H,isHTMLForm:FH,hasOwnProperty:zx,hasOwnProp:zx,reduceDescriptors:jx,freezeMethods:DH,toObjectSet:VH,toCamelCase:AH,noop:RH,toFiniteNumber:LH,findKey:Lx,global:di,isContextDefined:Mx,ALPHABET:Ux,generateString:MH,isSpecCompliantForm:zH,toJSONObject:jH,isAsyncFn:HH,isThenable:UH,setImmediate:qx,asap:qH};function Je(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a,this.status=a.status?a.status:null)}se.inherits(Je,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:se.toJSONObject(this.config),code:this.code,status:this.status}}});const Wx=Je.prototype,Kx={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Kx[e]={value:e}}),Object.defineProperties(Je,Kx),Object.defineProperty(Wx,"isAxiosError",{value:!0}),Je.from=(e,t,n,r,a,i)=>{const s=Object.create(Wx);return se.toFlatObject(e,s,function(l){return l!==Error.prototype},l=>l!=="isAxiosError"),Je.call(s,e.message,t,n,r,a),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const WH=null;function n0(e){return se.isPlainObject(e)||se.isArray(e)}function Gx(e){return se.endsWith(e,"[]")?e.slice(0,-2):e}function Xx(e,t,n){return e?e.concat(t).map(function(r,a){return r=Gx(r),!n&&a?"["+r+"]":r}).join(n?".":""):t}function KH(e){return se.isArray(e)&&!e.some(n0)}const GH=se.toFlatObject(se,{},null,function(e){return/^is[A-Z]/.test(e)});function ju(e,t,n){if(!se.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=se.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,p){return!se.isUndefined(p[m])});const r=n.metaTokens,a=n.visitor||c,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&se.isSpecCompliantForm(t);if(!se.isFunction(a))throw new TypeError("visitor must be a function");function d(m){if(m===null)return"";if(se.isDate(m))return m.toISOString();if(!l&&se.isBlob(m))throw new Je("Blob is not supported. Use a Buffer instead.");return se.isArrayBuffer(m)||se.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,p,g){let v=m;if(m&&!g&&typeof m=="object"){if(se.endsWith(p,"{}"))p=r?p:p.slice(0,-2),m=JSON.stringify(m);else if(se.isArray(m)&&KH(m)||(se.isFileList(m)||se.endsWith(p,"[]"))&&(v=se.toArray(m)))return p=Gx(p),v.forEach(function(y,b){!(se.isUndefined(y)||y===null)&&t.append(s===!0?Xx([p],b,i):s===null?p:p+"[]",d(y))}),!1}return n0(m)?!0:(t.append(Xx(g,p,i),d(m)),!1)}const u=[],f=Object.assign(GH,{defaultVisitor:c,convertValue:d,isVisitable:n0});function h(m,p){if(!se.isUndefined(m)){if(u.indexOf(m)!==-1)throw Error("Circular reference detected in "+p.join("."));u.push(m),se.forEach(m,function(g,v){(!(se.isUndefined(g)||g===null)&&a.call(t,g,se.isString(v)?v.trim():v,p,f))===!0&&h(g,p?p.concat(v):[v])}),u.pop()}}if(!se.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Yx(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function r0(e,t){this._pairs=[],e&&ju(e,this,t)}const Zx=r0.prototype;Zx.append=function(e,t){this._pairs.push([e,t])},Zx.toString=function(e){const t=e?function(n){return e.call(this,n,Yx)}:Yx;return this._pairs.map(function(n){return t(n[0])+"="+t(n[1])},"").join("&")};function XH(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Jx(e,t,n){if(!t)return e;const r=n&&n.encode||XH,a=n&&n.serialize;let i;if(a?i=a(t,n):i=se.isURLSearchParams(t)?t.toString():new r0(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}let Qx=class{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){se.forEach(this.handlers,function(n){n!==null&&t(n)})}};const eC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},YH=typeof URLSearchParams<"u"?URLSearchParams:r0,ZH=typeof FormData<"u"?FormData:null,JH=typeof Blob<"u"?Blob:null,QH={isBrowser:!0,classes:{URLSearchParams:YH,FormData:ZH,Blob:JH},protocols:["http","https","file","blob","url","data"]},o0=typeof window<"u"&&typeof document<"u",a0=typeof navigator=="object"&&navigator||void 0,eU=o0&&(!a0||["ReactNative","NativeScript","NS"].indexOf(a0.product)<0),tU=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",nU=o0&&window.location.href||"http://localhost",rU=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:o0,hasStandardBrowserEnv:eU,hasStandardBrowserWebWorkerEnv:tU,navigator:a0,origin:nU},Symbol.toStringTag,{value:"Module"})),Gn={...rU,...QH};function oU(e,t){return ju(e,new Gn.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,i){return Gn.isNode&&se.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function aU(e){return se.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function iU(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r=n.length;return s=!s&&se.isArray(a)?a.length:s,d?(se.hasOwnProp(a,s)?a[s]=[a[s],r]:a[s]=r,!l):((!a[s]||!se.isObject(a[s]))&&(a[s]=[]),t(n,r,a[s],i)&&se.isArray(a[s])&&(a[s]=iU(a[s])),!l)}if(se.isFormData(e)&&se.isFunction(e.entries)){const n={};return se.forEachEntry(e,(r,a)=>{t(aU(r),a,n,0)}),n}return null}function sU(e,t,n){if(se.isString(e))try{return(t||JSON.parse)(e),se.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const sc={transitional:eC,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,a=se.isObject(e);if(a&&se.isHTMLForm(e)&&(e=new FormData(e)),se.isFormData(e))return r?JSON.stringify(tC(e)):e;if(se.isArrayBuffer(e)||se.isBuffer(e)||se.isStream(e)||se.isFile(e)||se.isBlob(e)||se.isReadableStream(e))return e;if(se.isArrayBufferView(e))return e.buffer;if(se.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return oU(e,this.formSerializer).toString();if((i=se.isFileList(e))||n.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return ju(i?{"files[]":e}:e,s&&new s,this.formSerializer)}}return a||r?(t.setContentType("application/json",!1),sU(e)):e}],transformResponse:[function(e){const t=this.transitional||sc.transitional,n=t&&t.forcedJSONParsing,r=this.responseType==="json";if(se.isResponse(e)||se.isReadableStream(e))return e;if(e&&se.isString(e)&&(n&&!this.responseType||r)){const a=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(i){if(a)throw i.name==="SyntaxError"?Je.from(i,Je.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Gn.classes.FormData,Blob:Gn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};se.forEach(["delete","get","head","post","put","patch"],e=>{sc.headers[e]={}});const lU=se.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),cU=e=>{const t={};let n,r,a;return e&&e.split(` `).forEach(function(i){a=i.indexOf(":"),n=i.substring(0,a).trim().toLowerCase(),r=i.substring(a+1).trim(),!(!n||t[n]&&lU[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},nC=Symbol("internals");function lc(e){return e&&String(e).trim().toLowerCase()}function Hu(e){return e===!1||e==null?e:se.isArray(e)?e.map(Hu):String(e)}function dU(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const uU=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function i0(e,t,n,r,a){if(se.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!se.isString(t)){if(se.isString(r))return t.indexOf(r)!==-1;if(se.isRegExp(r))return r.test(t)}}function fU(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function pU(e,t){const n=se.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,i,s){return this[r].call(this,t,a,i,s)},configurable:!0})})}class Xn{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(l,d,c){const u=lc(d);if(!u)throw new Error("header name must be a non-empty string");const f=se.findKey(a,u);(!f||a[f]===void 0||c===!0||c===void 0&&a[f]!==!1)&&(a[f||d]=Hu(l))}const s=(l,d)=>se.forEach(l,(c,u)=>i(c,u,d));if(se.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(se.isString(t)&&(t=t.trim())&&!uU(t))s(cU(t),n);else if(se.isHeaders(t))for(const[l,d]of t.entries())i(d,l,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=lc(t),t){const r=se.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return dU(a);if(se.isFunction(n))return n.call(this,a,r);if(se.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=lc(t),t){const r=se.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||i0(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(s){if(s=lc(s),s){const l=se.findKey(r,s);l&&(!n||i0(r,r[l],l,n))&&(delete r[l],a=!0)}}return se.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!t||i0(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return se.forEach(this,(a,i)=>{const s=se.findKey(r,i);if(s){n[s]=Hu(a),delete n[i];return}const l=t?fU(i):String(i).trim();l!==i&&delete n[i],n[l]=Hu(a),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return se.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&se.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const n=(this[nC]=this[nC]={accessors:{}}).accessors,r=this.prototype;function a(i){const s=lc(i);n[s]||(pU(r,i),n[s]=!0)}return se.isArray(t)?t.forEach(a):a(t),this}}Xn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),se.reduceDescriptors(Xn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),se.freezeMethods(Xn);function s0(e,t){const n=this||sc,r=t||n,a=Xn.from(r.headers);let i=r.data;return se.forEach(e,function(s){i=s.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function rC(e){return!!(e&&e.__CANCEL__)}function xs(e,t,n){Je.call(this,e??"canceled",Je.ERR_CANCELED,t,n),this.name="CanceledError"}se.inherits(xs,Je,{__CANCEL__:!0});function oC(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Je("Request failed with status code "+n.status,[Je.ERR_BAD_REQUEST,Je.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function hU(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function mU(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const d=Date.now(),c=r[i];s||(s=d),n[a]=l,r[a]=d;let u=i,f=0;for(;u!==a;)f+=n[u++],u=u%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),d-s{n=d,a=null,i&&(clearTimeout(i),i=null),e.apply(null,l)};return[(...l)=>{const d=Date.now(),c=d-n;c>=r?s(l,d):(a=l,i||(i=setTimeout(()=>{i=null,s(a)},r-c)))},()=>a&&s(a)]}const Uu=(e,t,n=3)=>{let r=0;const a=mU(50,250);return gU(i=>{const s=i.loaded,l=i.lengthComputable?i.total:void 0,d=s-r,c=a(d),u=s<=l;r=s;const f={loaded:s,total:l,progress:l?s/l:void 0,bytes:d,rate:c||void 0,estimated:c&&l&&u?(l-s)/c:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},aC=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},iC=e=>(...t)=>se.asap(()=>e(...t)),yU=Gn.hasStandardBrowserEnv?function(){const e=Gn.navigator&&/(msie|trident)/i.test(Gn.navigator.userAgent),t=document.createElement("a");let n;function r(a){let i=a;return e&&(t.setAttribute("href",i),i=t.href),t.setAttribute("href",i),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(a){const i=se.isString(a)?r(a):a;return i.protocol===n.protocol&&i.host===n.host}}():function(){return function(){return!0}}(),vU=Gn.hasStandardBrowserEnv?{write(e,t,n,r,a,i){const s=[e+"="+encodeURIComponent(t)];se.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),se.isString(r)&&s.push("path="+r),se.isString(a)&&s.push("domain="+a),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function bU(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function wU(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function sC(e,t){return e&&!bU(t)?wU(e,t):t}const lC=e=>e instanceof Xn?{...e}:e;function ui(e,t){t=t||{};const n={};function r(c,u,f){return se.isPlainObject(c)&&se.isPlainObject(u)?se.merge.call({caseless:f},c,u):se.isPlainObject(u)?se.merge({},u):se.isArray(u)?u.slice():u}function a(c,u,f){if(se.isUndefined(u)){if(!se.isUndefined(c))return r(void 0,c,f)}else return r(c,u,f)}function i(c,u){if(!se.isUndefined(u))return r(void 0,u)}function s(c,u){if(se.isUndefined(u)){if(!se.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function l(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const d={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(c,u)=>a(lC(c),lC(u),!0)};return se.forEach(Object.keys(Object.assign({},e,t)),function(c){const u=d[c]||a,f=u(e[c],t[c],c);se.isUndefined(f)&&u!==l||(n[c]=f)}),n}const cC=e=>{const t=ui({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:i,headers:s,auth:l}=t;t.headers=s=Xn.from(s),t.url=Jx(sC(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let d;if(se.isFormData(n)){if(Gn.hasStandardBrowserEnv||Gn.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((d=s.getContentType())!==!1){const[c,...u]=d?d.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Gn.hasStandardBrowserEnv&&(r&&se.isFunction(r)&&(r=r(t)),r||r!==!1&&yU(t.url))){const c=a&&i&&vU.read(i);c&&s.set(a,c)}return t},xU=typeof XMLHttpRequest<"u",CU=xU&&function(e){return new Promise(function(t,n){const r=cC(e);let a=r.data;const i=Xn.from(r.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:d}=r,c,u,f,h,m;function p(){h&&h(),m&&m(),r.cancelToken&&r.cancelToken.unsubscribe(c),r.signal&&r.signal.removeEventListener("abort",c)}let g=new XMLHttpRequest;g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout;function v(){if(!g)return;const b=Xn.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),x={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:b,config:e,request:g};oC(function(w){t(w),p()},function(w){n(w),p()},x),g=null}"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(v)},g.onabort=function(){g&&(n(new Je("Request aborted",Je.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new Je("Network Error",Je.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let b=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const x=r.transitional||eC;r.timeoutErrorMessage&&(b=r.timeoutErrorMessage),n(new Je(b,x.clarifyTimeoutError?Je.ETIMEDOUT:Je.ECONNABORTED,e,g)),g=null},a===void 0&&i.setContentType(null),"setRequestHeader"in g&&se.forEach(i.toJSON(),function(b,x){g.setRequestHeader(x,b)}),se.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),s&&s!=="json"&&(g.responseType=r.responseType),d&&([f,m]=Uu(d,!0),g.addEventListener("progress",f)),l&&g.upload&&([u,h]=Uu(l),g.upload.addEventListener("progress",u),g.upload.addEventListener("loadend",h)),(r.cancelToken||r.signal)&&(c=b=>{g&&(n(!b||b.type?new xs(null,e,g):b),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(c),r.signal&&(r.signal.aborted?c():r.signal.addEventListener("abort",c)));const y=hU(r.url);if(y&&Gn.protocols.indexOf(y)===-1){n(new Je("Unsupported protocol "+y+":",Je.ERR_BAD_REQUEST,e));return}g.send(a||null)})},kU=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,a;const i=function(c){if(!a){a=!0,l();const u=c instanceof Error?c:this.reason;r.abort(u instanceof Je?u:new xs(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,i(new Je(`timeout ${t} of ms exceeded`,Je.ETIMEDOUT))},t);const l=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:d}=r;return d.unsubscribe=()=>se.asap(l),d}},EU=function*(e,t){let n=e.byteLength;if(n{const a=SU(e,t);let i=0,s,l=d=>{s||(s=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:c,value:u}=await a.next();if(c){l(),d.close();return}let f=u.byteLength;if(n){let h=i+=f;n(h)}d.enqueue(new Uint8Array(u))}catch(c){throw l(c),c}},cancel(d){return l(d),a.return()}},{highWaterMark:2})},qu=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",uC=qu&&typeof ReadableStream=="function",BU=qu&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),fC=(e,...t)=>{try{return!!e(...t)}catch{return!1}},TU=uC&&fC(()=>{let e=!1;const t=new Request(Gn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),pC=64*1024,l0=uC&&fC(()=>se.isReadableStream(new Response("").body)),Wu={stream:l0&&(e=>e.body)};qu&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Wu[t]&&(Wu[t]=se.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Je(`Response type '${t}' is not supported`,Je.ERR_NOT_SUPPORT,r)})})})(new Response);const NU=async e=>{if(e==null)return 0;if(se.isBlob(e))return e.size;if(se.isSpecCompliantForm(e))return(await new Request(Gn.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(se.isArrayBufferView(e)||se.isArrayBuffer(e))return e.byteLength;if(se.isURLSearchParams(e)&&(e=e+""),se.isString(e))return(await BU(e)).byteLength},OU=async(e,t)=>se.toFiniteNumber(e.getContentLength())??NU(t),PU=qu&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:i,timeout:s,onDownloadProgress:l,onUploadProgress:d,responseType:c,headers:u,withCredentials:f="same-origin",fetchOptions:h}=cC(e);c=c?(c+"").toLowerCase():"text";let m=kU([a,i&&i.toAbortSignal()],s),p;const g=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let v;try{if(d&&TU&&n!=="get"&&n!=="head"&&(v=await OU(u,r))!==0){let k=new Request(t,{method:"POST",body:r,duplex:"half"}),C;if(se.isFormData(r)&&(C=k.headers.get("content-type"))&&u.setContentType(C),k.body){const[E,S]=aC(v,Uu(iC(d)));r=dC(k.body,pC,E,S)}}se.isString(f)||(f=f?"include":"omit");const y="credentials"in Request.prototype;p=new Request(t,{...h,signal:m,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:y?f:void 0});let b=await fetch(p);const x=l0&&(c==="stream"||c==="response");if(l0&&(l||x&&g)){const k={};["status","statusText","headers"].forEach(_=>{k[_]=b[_]});const C=se.toFiniteNumber(b.headers.get("content-length")),[E,S]=l&&aC(C,Uu(iC(l),!0))||[];b=new Response(dC(b.body,pC,E,()=>{S&&S(),g&&g()}),k)}c=c||"text";let w=await Wu[se.findKey(Wu,c)||"text"](b,e);return!x&&g&&g(),await new Promise((k,C)=>{oC(k,C,{data:w,headers:Xn.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:p})})}catch(y){throw g&&g(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new Je("Network Error",Je.ERR_NETWORK,e,p),{cause:y.cause||y}):Je.from(y,y&&y.code,e,p)}}),c0={http:WH,xhr:CU,fetch:PU};se.forEach(c0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const hC=e=>`- ${e}`,$U=e=>se.isFunction(e)||e===null||e===!1,mC={getAdapter:e=>{e=se.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let i=0;i`adapter ${l} `+(d===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since : `+i.map(hC).join(` `):" "+hC(i[0]):"as no adapter specified";throw new Je("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:c0};function d0(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xs(null,e)}function gC(e){return d0(e),e.headers=Xn.from(e.headers),e.data=s0.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),mC.getAdapter(e.adapter||sc.adapter)(e).then(function(t){return d0(e),t.data=s0.call(e,e.transformResponse,t),t.headers=Xn.from(t.headers),t},function(t){return rC(t)||(d0(e),t&&t.response&&(t.response.data=s0.call(e,e.transformResponse,t.response),t.response.headers=Xn.from(t.response.headers))),Promise.reject(t)})}const yC="1.7.7",u0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{u0[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const vC={};u0.transitional=function(e,t,n){function r(a,i){return"[Axios v"+yC+"] Transitional option '"+a+"'"+i+(n?". "+n:"")}return(a,i,s)=>{if(e===!1)throw new Je(r(i," has been removed"+(t?" in "+t:"")),Je.ERR_DEPRECATED);return t&&!vC[i]&&(vC[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(a,i,s):!0}};function FU(e,t,n){if(typeof e!="object")throw new Je("options must be an object",Je.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],s=t[i];if(s){const l=e[i],d=l===void 0||s(l,i,e);if(d!==!0)throw new Je("option "+i+" must be "+d,Je.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Je("Unknown option "+i,Je.ERR_BAD_OPTION)}}const f0={assertOptions:FU,validators:u0},ya=f0.validators;class fi{constructor(t){this.defaults=t,this.interceptors={request:new Qx,response:new Qx}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ui(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&f0.assertOptions(r,{silentJSONParsing:ya.transitional(ya.boolean),forcedJSONParsing:ya.transitional(ya.boolean),clarifyTimeoutError:ya.transitional(ya.boolean)},!1),a!=null&&(se.isFunction(a)?n.paramsSerializer={serialize:a}:f0.assertOptions(a,{encode:ya.function,serialize:ya.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&se.merge(i.common,i[n.method]);i&&se.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=Xn.concat(s,i);const l=[];let d=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(d=d&&p.synchronous,l.unshift(p.fulfilled,p.rejected))});const c=[];this.interceptors.response.forEach(function(p){c.push(p.fulfilled,p.rejected)});let u,f=0,h;if(!d){const p=[gC.bind(this),void 0];for(p.unshift.apply(p,l),p.push.apply(p,c),h=p.length,u=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const s=new Promise(l=>{r.subscribe(l),i=l}).then(a);return s.cancel=function(){r.unsubscribe(i)},s},t(function(a,i,s){r.reason||(r.reason=new xs(a,i,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new p0(function(n){t=n}),cancel:t}}}function AU(e){return function(t){return e.apply(null,t)}}function IU(e){return se.isObject(e)&&e.isAxiosError===!0}const h0={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(h0).forEach(([e,t])=>{h0[t]=e});function bC(e){const t=new fi(e),n=Dx(fi.prototype.request,t);return se.extend(n,fi.prototype,t,{allOwnKeys:!0}),se.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return bC(ui(e,r))},n}const Ht=bC(sc);Ht.Axios=fi,Ht.CanceledError=xs,Ht.CancelToken=p0,Ht.isCancel=rC,Ht.VERSION=yC,Ht.toFormData=ju,Ht.AxiosError=Je,Ht.Cancel=Ht.CanceledError,Ht.all=function(e){return Promise.all(e)},Ht.spread=AU,Ht.isAxiosError=IU,Ht.mergeConfig=ui,Ht.AxiosHeaders=Xn,Ht.formToJSON=e=>tC(se.isHTMLForm(e)?new FormData(e):e),Ht.getAdapter=mC.getAdapter,Ht.HttpStatusCode=h0,Ht.default=Ht;const DU="data:image/svg+xml,%3csvg%20id='logo-sparc-wave-primary'%20data-name='logo-sparc-wave-primary'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20400%20190.5854'%3e%3cdefs%3e%3clinearGradient%20id='linear-gradient'%20y1='96.3505'%20x2='400'%20y2='96.3505'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%230b00bf'/%3e%3cstop%20offset='1'%20stop-color='%23bc00fc'/%3e%3c/linearGradient%3e%3c/defs%3e%3ctitle%3eSPARC%20Logo%3c/title%3e%3cpath%20d='M396.6976,128.6248l-146.2735-3.38a6.5358,6.5358,0,0,0-6.1378,3.9236l-.0612.1407-13.673,31.4482L202.9416,9.5333l-.01-.0685a8.9823,8.9823,0,0,0-17.6624-.0114L163.673,125.3819,3.298,129.2886a3.38,3.38,0,0,0,.0269,6.7592L169.34,138.7635a6.5939,6.5939,0,0,0,6.5373-5.1457l.0571-.2546,17.8534-79.5649L221.26,185.1237l.0256.1243A6.7593,6.7593,0,0,0,234.092,186.52L254.9005,138.66l141.7971-3.2762a3.3805,3.3805,0,0,0,0-6.7592Z'%20style='fill:url(%23linear-gradient)'/%3e%3cpath%20d='M25.6793,0C41.3957,0,51.057,10.0926,51.057,26.0972v9.5162H36.2053V26.0972c0-7.3532-3.8945-11.8219-10.526-11.8219-6.7768,0-10.6691,4.4687-10.6691,11.8219,0,3.8945,1.2982,7.3533,5.4786,11.3908l19.754,18.601C46.5861,62.1441,52.21,68.7778,52.21,79.88c0,16.0047-9.95,26.0973-25.9543,26.0973C10.108,105.9776.1585,95.885.1585,79.88V70.362H15.01V79.88c0,7.3533,4.0375,11.822,11.2455,11.822,7.065,0,11.1025-4.4687,11.1025-11.822,0-4.4709-2.1628-8.6514-6.0551-12.2576L11.1158,48.7357C3.043,41.2372.1585,34.8939.1585,25.666.1585,10.0926,9.82,0,25.6793,0Z'%20style='fill:%230e0e19'/%3e%3cpath%20d='M99.7971,69.7856v35.1821H84.9454V1.01h25.3755c16.0047,0,26.0973,10.0926,26.0973,26.0973V43.6883c0,16.15-10.0926,26.0973-26.0973,26.0973Zm10.3808-13.9849c7.2081,0,11.3908-4.3257,11.3908-11.6789V26.6759c0-7.21-4.1827-11.6811-11.3908-11.6811H99.7971V55.8007Z'%20style='fill:%230e0e19'/%3e%3cpath%20d='M278.5812,108.147H263.73V4.1893h26.0972c16.0047,0,26.0973,10.0926,26.0973,26.0972v14.13c0,9.95-4.3257,17.7363-11.3908,22.205,4.1827,12.6889,10.0926,29.9917,13.8418,41.5254h-15.14L290.6914,70.3708h-12.11Zm11.1-51.7632c7.21,0,11.3907-4.3257,11.3907-11.5338V29.8553c0-7.21-4.18-11.6812-11.3907-11.6812h-11.1v38.21Z'%20style='fill:%230e0e19'/%3e%3cpath%20d='M399.844,73.5414V83.06c0,16.0047-9.9474,26.0973-25.9521,26.0973-16.15,0-26.0972-10.0926-26.0972-26.0973V29.2766c0-16.0046,9.9473-26.0972,26.0972-26.0972,16.0047,0,25.9521,10.0926,25.9521,26.0972v9.5161h-14.85V29.2766c0-7.3532-4.0374-11.822-11.1025-11.822-7.21,0-11.2477,4.4688-11.2477,11.822V83.06c0,7.3533,4.0375,11.822,11.2477,11.822,7.0651,0,11.1025-4.4687,11.1025-11.822V73.5414Z'%20style='fill:%230e0e19'/%3e%3c/svg%3e";function VU(){const e=DU;async function t(n,r,a){return await Ht({method:"get",url:n,params:r,timeout:a})}return{defaultImg:e,getRequest:t}}const RU=["src"],LU=["src"],MU={key:1,class:"details"},zU={key:0},jU={class:"title text-placeholder"},HU={__name:"Card",props:{data:{type:Object,required:!0},width:{type:Number,default:3},height:{type:Number,default:3},showCardDetails:{type:Boolean},bodyStyle:{type:Object,default:()=>({padding:"20px",background:"#ffffff"})},imageStyle:{type:Object,default:()=>({})},imageContainerStyle:{type:Object,default:()=>({})},shadow:{type:String,default:"always"}},emits:["card-clicked","datalink-clicked"],setup(e,{emit:t}){function n(y){let b;try{b=new URL(y)}catch{return!1}return b.protocol==="http:"||b.protocol==="https:"}const{defaultImg:r,getRequest:a}=VU(),i=o.ref();o.ref(null),o.ref(4);const s=o.ref(void 0),l=o.ref(!1),d=o.ref(!1),c=o.ref(!1),u=e,f=t,h=o.computed(()=>u.data.title&&((s?s.value:!1)||l.value)&&(u.data.link||u.data.userData));o.computed(()=>showCardDetails?height*.525:height),o.computed(()=>width-2*m),o.computed(()=>height*.237);const m=o.computed(()=>height*.076);o.computed(()=>showCardDetails?height*.525:height),o.watch(()=>u.data,()=>{s.value=void 0,l.value=!1,c.value=!1,d.value=!1,u.data.thumbnail?n(u.data.thumbnail)&&u.data.mimetype?g(u.data.thumbnail,{fetchAttempts:0}):s.value=u.data.thumbnail:l.value=!0,o.nextTick(()=>{v()})},{immediate:!0}),o.onUpdated(()=>{o.nextTick(()=>{v()})});function p(){if(u.data.link){const y=document.createElement("a");y.href=u.data.link,y.target="_blank",document.body.appendChild(y),y.click(),f("datalink-clicked",u.data.link),y.remove()}u.data.userData&&f("card-clicked",u.data.userData)}function g(y,b){a(y,{},11e3).then(x=>{let w=x.data;typeof w=="string"&&w.startsWith("data:")?s.value=x.data:u.data.mimetype?s.value=`data:${u.data.mimetype};base64,${x.data}`:s.value=x.data},x=>{x.message.includes("timeout")&&x.message.includes("exceeded")&&b.fetchAttempts<3?(b.fetchAttempts+=1,g(y,b)):l.value=!0})}function v(){if(u.data.hideTitle)d.value=!0,c.value=!0;else{const y=i;y&&y.offsetParent?(c.value=!0,y.offsetWidth>=y.scrollWidth?d.value=!0:d.value=!1):u.data.title.length>20?d.value=!1:d.value=!0}}return(y,b)=>{const x=eH,w=Pj,k=Dj,C=iH;return o.openBlock(),o.createBlock(k,{shadow:e.shadow,"body-style":e.bodyStyle,style:o.normalizeStyle({padding:"0px",maxWidth:e.width+"rem"}),class:"card"},{default:o.withCtx(()=>[o.withDirectives((o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",{class:"cursor-pointer",style:o.normalizeStyle(e.imageContainerStyle),onClick:o.withModifiers(p,["prevent"])},[l.value?(o.openBlock(),o.createElementBlock("img",{key:0,src:o.unref(r),style:o.normalizeStyle(e.imageStyle)},null,12,RU)):(o.openBlock(),o.createElementBlock("img",{key:1,src:s.value,alt:"thumbnail loading ...",style:o.normalizeStyle(e.imageStyle)},null,12,LU))],4),o.createCommentVNode("",!0),e.showCardDetails?(o.openBlock(),o.createElementBlock("div",MU,[e.data.hideType?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("p",zU,[o.createElementVNode("b",null,o.toDisplayString(e.data.type),1)])),o.createVNode(x,{"virtual-ref":i.value,disabled:d.value,content:e.data.title,placement:"top",trigger:"hover","popper-class":"gallery-popper","virtual-triggering":""},null,8,["virtual-ref","disabled","content"]),o.withDirectives(o.createElementVNode("p",{ref_key:"titleText",ref:i,class:"title"},o.toDisplayString(e.data.title),513),[[o.vShow,!e.data.hideTitle]]),o.withDirectives(o.createElementVNode("p",jU,null,512),[[o.vShow,e.data.hideTitle]]),o.createVNode(w,{class:"button",onClick:o.withModifiers(p,["prevent"]),size:"large"},{default:o.withCtx(()=>[o.createTextVNode(" View "+o.toDisplayString(e.data.type),1)]),_:1})])):o.createCommentVNode("",!0)])),[[C,!h.value]])]),_:1},8,["shadow","body-style","style"])}}},UU=fm(HU,[["__scopeId","data-v-8306387d"]]),Ku=e=>(o.pushScopeId("data-v-e745b327"),e=e(),o.popScopeId(),e),qU={ref:"myButton",class:"gallery"},WU={class:"gallery-strip"},KU=Ku(()=>o.createElementVNode("span",{class:"progress-button"},"‹",-1)),GU=[KU],XU={key:1,style:{width:"2rem"}},YU=Ku(()=>o.createElementVNode("div",{class:"filler"},null,-1)),ZU={class:"card-line"},JU=Ku(()=>o.createElementVNode("div",{class:"filler"},null,-1)),QU=Ku(()=>o.createElementVNode("span",{class:"progress-button"},"›",-1)),eq=[QU],tq={key:3,style:{width:"2rem"}},nq={__name:"Gallery",props:{items:{type:Array,default:()=>[]},maxWidth:{type:Number,default:3},cardWidth:{type:Number,default:13.8},showIndicatorBar:{type:Boolean,default:!0},highlightActive:{type:Boolean,default:!0},showCardDetails:{type:Boolean,default:!0},bodyStyle:{type:Object,default:()=>({padding:"20px",background:"#ffffff"})},bottomSpacer:{type:Object,default:()=>({minHeight:"4rem"})},imageContainerStyle:{type:Object,default:()=>({})},imageStyle:{type:Object,default:()=>({})},metaData:{type:Object,default:()=>({datasetVersion:-1,datasetId:-1})},description:{type:String,default:""},shadow:{type:String,default:"always"}},emits:["card-clicked","datalink-clicked"],setup(e,{expose:t,emit:n}){function r(S){return typeof window<"u"?S*parseFloat(window.getComputedStyle(document.documentElement).fontSize):S*16}const a=e,i=n,s=o.ref(0),l=o.ref(0),d=o.ref(2),c=o.ref(2),u=o.computed(()=>a.items.length),f=o.computed(()=>l.value>0),h=o.computed(()=>l.value.78*a.cardWidth);o.computed(()=>u.value*(a.cardWidth+.25)-.25);const p=o.computed(()=>{const S=r(.5),_=r(2),O=r(a.cardWidth),T=(a.maxWidth-2*_-2*S)/(1.1*O);return Math.max(1,Math.floor(T))}),g=o.computed(()=>{const S=r(1),_=a.maxWidth/(S*u.value);return a.showIndicatorBar&&_>.1&&u.value>1}),v=o.computed(()=>{const S=Math.floor(p.value/2);let _=l.value-S;return _<0?_=0:_+p.value>u.value&&(_=u.value-p.value),_}),y=o.computed(()=>{let S=[];for(let _=0;_(o.openBlock(),o.createElementBlock("div",qU,[o.createElementVNode("div",WU,[e.items.length>1?(o.openBlock(),o.createElementBlock("a",{key:0,href:"#",class:o.normalizeClass(["oval","prev",{disabled:!f.value}]),onClick:o.withModifiers(C,["prevent"])},GU,2)):(o.openBlock(),o.createElementBlock("div",XU)),YU,o.createElementVNode("div",ZU,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(y.value,(O,T)=>(o.openBlock(),o.createElementBlock("span",{key:"card_"+T,class:o.normalizeClass(["key-image-span",{active:w(T)}])},[O?(o.openBlock(),o.createBlock(UU,{key:0,data:O,"body-style":e.bodyStyle,"image-container-style":e.imageContainerStyle,"image-style":e.imageStyle,width:e.cardWidth,height:m.value,shadow:e.shadow,"show-card-details":e.showCardDetails,onCardClicked:b,onDatalinkClicked:x},null,8,["data","body-style","image-container-style","image-style","width","height","shadow","show-card-details"])):o.createCommentVNode("",!0)],2))),128))]),JU,e.items.length>1?(o.openBlock(),o.createElementBlock("a",{key:2,href:"#",class:o.normalizeClass(["oval","next",{disabled:!h.value}]),onClick:o.withModifiers(k,["prevent"])},eq,2)):(o.openBlock(),o.createElementBlock("div",tq))]),o.createElementVNode("div",{style:o.normalizeStyle(e.bottomSpacer)},null,4),g.value?(o.openBlock(),o.createBlock(nR,{key:0,count:u.value,current:l.value,onClicked:E},null,8,["count","current"])):o.createCommentVNode("",!0)],512))}},rq=fm(nq,[["__scopeId","data-v-e745b327"]]),oq={name:"S3Bucket",data(){return{s3Bucket:void 0,s3Prefix:""}},methods:{updateS3Bucket:function(e){if(this.s3Bucket=void 0,e){const t=e.split("//")[1];if(t){this.s3Bucket=t.split("/")[0];const n=t.indexOf("/");this.s3Prefix=t.substring(n+1);return}}},getS3Args:function(){return this.s3Bucket?`?s3BucketName=${this.s3Bucket}`:""},getS3Prefix:function(){return this.s3Prefix}}},Gu=e=>e.split("\\").pop().split("/").pop(),cc=function(e){return e.replace(/\b\w/g,t=>t.toUpperCase())},aq={name:"ImageGallery",components:{Gallery:rq},mixins:[JV,oq],props:{datasetBiolucida:{type:Object,default:()=>({})},envVars:{type:Object,default:()=>{}},label:{type:String,default:""},plots:{type:Array,default:()=>[]},datasetId:{type:Number,default:-1},datasetVersion:{type:Number,default:-1},datasetThumbnail:{type:String,default:""},category:{type:String,default:"All"},entry:{type:Object,default:()=>({})}},data(){return{currentIndex:0,ro:null,maxWidth:3,items:{Dataset:[],Images:[],Scaffolds:[],Segmentations:[],Simulations:[],Videos:[],Plots:[]},bodyStyle:{padding:"0px",background:"#ffffff"},imageContainerStyle:{width:"160px",height:"160px",display:"flex",alignItems:"center",justifyContent:"center"},imageStyle:{maxWidth:"160px",maxHeight:"160px"},shadow:"never",bottomSpacer:{minHeight:"0rem"},resetIndex:!1}},methods:{cardClicked:function(e){this.$emit("card-clicked",e)},datalinkClicked:function(e){this.$emit("datalink-clicked",e)},createSciCurnchItems:function(){this.updateS3Bucket(this.entry.s3uri),this.createDatasetItem(),this.createScaffoldItems(),this.createSimulationItems(),this.createPlotItems(),this.createSegmentationItems()},createDatasetItem:function(){const e=`${this.envVars.ROOT_URL}/datasets/${this.datasetId}?type=dataset`;this.datasetThumbnail&&this.items.Dataset.push({id:-1,title:" ",type:`Dataset ${this.datasetId}`,thumbnail:this.datasetThumbnail,link:e,hideType:!0,hideTitle:!0})},createImageItems:function(){this.entry.images&&this.entry.images.forEach(e=>{const t=e.dataset.path,n=e.identifier,r=`${this.envVars.ROOT_URL}/datasets/imageviewer?dataset_id=${this.datasetId}&dataset_version=${this.datasetVersion}&file_path=${t}&mimetype=${e.mimetype.name}`;this.items.Images.push({id:n,title:Gu(t),type:"Image",link:r,hideType:!0})})},createPlotItems:function(){this.entry.plots&&this.entry.plots.forEach(e=>{const t=e.dataset.path,n=e.identifier,r=this.getThumbnailForPlot(e,this.entry.thumbnails);let a,i="";r&&(a=this.getImageURL(this.envVars.API_LOCATION,{id:n,prefix:this.getS3Prefix(),file_path:r.dataset.path,s3Bucket:this.s3Bucket}),i=r.mimetype.name);const s=e.datacite,l=`${this.envVars.API_LOCATION}/s3-resource/${this.getS3Prefix()}files/`,d=l+e.dataset.path+this.getS3Args();let c={};try{c=JSON.parse(s.supplemental_json_metadata.description)}catch(m){console.warn(m)}let u=[];s.isDescribedBy&&u.push({url:l+s.isDescribedBy.path});const f={dataSource:{url:d},metadata:c,supplementalData:u};let h={label:cc(this.label),resource:f,s3uri:this.entry.s3uri,title:"View plot",type:"Plot",discoverId:this.discoverId,version:this.datasetVersion};this.items.Plots.push({id:n,title:Gu(t),type:"Plot",thumbnail:a,userData:h,hideType:!0,mimetype:i})})},createScaffoldItems:function(){if(this.entry.scaffolds){let e=0;this.entry.scaffolds.forEach((t,n)=>{const r=t.dataset.path,a=t.identifier,i=this.getThumbnailForScaffold(t,this.entry.scaffoldViews,this.entry.thumbnails,e);let s="",l;i&&(l=this.getImageURL(this.envVars.API_LOCATION,{id:a,prefix:this.getS3Prefix(),file_path:i.dataset.path,s3Bucket:this.s3Bucket}),s=i.mimetype.name);let d={label:cc(this.label),resource:`${this.envVars.API_LOCATION}s3-resource/${this.getS3Prefix()}files/${r}${this.getS3Args()}`,title:"View 3D scaffold",type:"Scaffold",discoverId:this.datasetId,apiLocation:this.envVars.API_LOCATION,version:this.datasetVersion,banner:this.datasetThumbnail,s3uri:this.entry.s3uri,contextCardUrl:this.getContextCardUrl(n)};this.items.Scaffolds.push({id:a,title:Gu(r),type:"Scaffold",thumbnail:l,userData:d,hideType:!0,mimetype:s})})}},createSegmentationItems:function(){this.entry.segmentation&&this.entry.segmentation.forEach(e=>{const t=e.id;let n=e.dataset.path;n=n.replaceAll(" ","_"),n=n.replaceAll(",","_");const a={share_link:`${this.envVars.NL_LINK_PREFIX}/dataviewer?datasetId=${this.datasetId}&version=${this.datasetVersion}&path=files/${n}`};let i={label:cc(this.label),resource:a,datasetId:this.datasetId,s3uri:this.entry.s3uri,title:"View segmentation",type:"Segmentation"};const s=this.getSegmentationThumbnailURL(this.envVars.API_LOCATION,{id:t,datasetId:this.datasetId,datasetVersion:this.datasetVersion,segmentationFilePath:n,s3Bucket:this.s3Bucket});this.items.Segmentations.push({id:t,title:Gu(n),type:"Segmentation",thumbnail:s,userData:i,hideType:!0,mimetype:"image/png"})})},createSimulationItems:function(){if(this.entry.simulation&&this.entry.simulation.length>0){let e={label:void 0,apiLocation:this.envVars.API_LOCATION,s3uri:this.entry.s3uri,version:this.datasetVersion,title:"View simulation",type:"Simulation",name:this.entry.name,description:this.entry.description,discoverId:this.datasetId,dataset:`${this.envVars.ROOT_URL}/datasets/${this.datasetId}?type=dataset`};this.items.Simulations.push({id:"simulation",title:" ",type:"Simulation",hideType:!0,hideTitle:!0,userData:e})}},createVideoItems:function(){this.entry.videos&&this.entry.videos.forEach(e=>{const t=this.getS3FilePath(this.datasetId,this.datasetVersion,e.dataset.path),n=`${this.envVars.ROOT_URL}/datasets/videoviewer?dataset_version=${this.datasetVersion}&dataset_id=${this.datasetId}&file_path=${t}&mimetype=${e.mimetype.name}`;this.items.Videos.push({title:e.name,type:"Video",thumbnail:this.defaultVideoImg,hideType:!0,link:n})})},onResize:function(){this.maxWidth=this.$el.clientWidth},getContextCardUrl:function(e){if(!(!this.entry.contextualInformation||this.entry.contextualInformation.length==0)){let t=this.entry["abi-contextual-information"].length==this.entry.scaffolds.length?e:0;return`${this.envVars.API_LOCATION}s3-resource/${this.getS3Prefix()}files/${this.entry.contextualInformation[t]}${this.getS3Args()}`}},getImageURL:function(e,t){let n=`${e}/s3-resource/${t.prefix}files/${t.file_path}?encodeBase64=true`;return t.s3Bucket&&(n=n+`&s3BucketName=${t.s3Bucket}`),n}},computed:{galleryItems(){this.resetIndex&&this.$refs.gallery.indicatorClicked(0);let e=[...this.items.Dataset];if(this.category==="All"){for(const[t,n]of Object.entries(this.items))t!=="Dataset"&&(e=e.concat(n));return e}else return[...this.items[this.category]]}},created:function(){this.createSciCurnchItems()},watch:{category:function(){this.resetIndex=!0},galleryItems:function(){this.resetIndex=!1},datasetBiolucida:{deep:!0,immediate:!0,handler:function(e){let t=[];"dataset_images"in e&&t.push(...Array.from(e.dataset_images,n=>{const r=this.getThumbnailURLFromBiolucida(this.envVars.API_LOCATION,{id:n.image_id}),a={share_link:n.share_link,id:n.image_id,itemId:n.sourcepkg_id};let i={label:cc(this.label),resource:a,datasetId:this.datasetId,title:"View image",name:cc(this.label),type:"Biolucida"};return{id:n.image_id,title:"Image",type:"Image",thumbnail:r,userData:i,mimetype:"image/png",hideType:!0}})),this.items.Images=t}}},mounted(){this.ro=new ResizeObserver(this.onResize).observe(this.$el)},unmounted(){delete this.ro}},iq={class:"full-size"};function sq(e,t,n,r,a,i){const s=o.resolveComponent("Gallery");return o.openBlock(),o.createElementBlock("div",iq,[o.createVNode(s,{bottomSpacer:a.bottomSpacer,cardWidth:10,items:i.galleryItems,"max-width":a.maxWidth,"show-indicator-bar":!1,"show-card-details":!0,"highlight-active":!1,"image-style":a.imageStyle,"image-container-style":a.imageContainerStyle,"body-style":a.bodyStyle,shadow:a.shadow,onCardClicked:i.cardClicked,onDatalinkClicked:i.datalinkClicked,ref:"gallery"},null,8,["bottomSpacer","items","max-width","image-style","image-container-style","body-style","shadow","onCardClicked","onDatalinkClicked"])])}const wC=zr(aq,[["render",sq],["__scopeId","data-v-7e45605c"]]);function lq(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&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(a){a(n)}),(r=e.get("*"))&&r.slice().map(function(a){a(t,n)})}}}const Ut=new lq,Xu={"homo sapiens":"Human","rattus norvegicus":"Rat","mus musculus":"Mouse","sus scrofa domesticus":"Pig","sus scrofa":"Boar","felis catus":"Cat"},xC="data:image/svg+xml,%3csvg%20width='429'%20height='238'%20viewBox='0%200%20429%20238'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3emissing-image-4x3%3c/title%3e%3cg%20fill-rule='nonzero'%20fill='none'%3e%3cpath%20d='M0%200h429v238H0z'%20fill='%23F0F1F2'/%3e%3cpath%20d='M160.875%2079v77.7h107.25V79h-107.25zm101.888%204.9v39.8l-28.85-26.1-28.744%2026.8-14.693-13.7-24.239%2022.7V83.9h96.525zm-96.525%2056.5l24.345-22.7%2036.358%2033.9h-60.704v-11.2zm68.21%2011.3l-25.525-23.8%2024.99-23.3%2028.85%2026.1v21h-28.314z'%20fill='%23DCDDDF'/%3e%3c/g%3e%3c/svg%3e";var cq=Object.defineProperty,dq=(e,t,n)=>t in e?cq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,uo=(e,t,n)=>dq(e,typeof t!="symbol"?t+"":t,n);const Vo=(e,t,{checkForDefaultPrevented:n=!0}={})=>r=>{const a=e==null?void 0:e(r);if(n===!1||!a)return t==null?void 0:t(r)};var CC;const qt=typeof window<"u",uq=e=>typeof e=="string",kC=()=>{},m0=qt&&((CC=window==null?void 0:window.navigator)==null?void 0:CC.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function EC(e){return typeof e=="function"?e():o.unref(e)}function fq(e){return e}function Yu(e){return o.getCurrentScope()?(o.onScopeDispose(e),!0):!1}function pq(e,t=!0){o.getCurrentInstance()?o.onMounted(e):t?e():o.nextTick(e)}function Ro(e){var t;const n=EC(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Zu=qt?window:void 0;function _r(...e){let t,n,r,a;if(uq(e[0])||Array.isArray(e[0])?([n,r,a]=e,t=Zu):[t,n,r,a]=e,!t)return kC;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},l=(u,f,h,m)=>(u.addEventListener(f,h,m),()=>u.removeEventListener(f,h,m)),d=o.watch(()=>[Ro(t),EC(a)],([u,f])=>{s(),u&&i.push(...n.flatMap(h=>r.map(m=>l(u,h,m,f))))},{immediate:!0,flush:"post"}),c=()=>{d(),s()};return Yu(c),c}let SC=!1;function hq(e,t,n={}){const{window:r=Zu,ignore:a=[],capture:i=!0,detectIframe:s=!1}=n;if(!r)return;m0&&!SC&&(SC=!0,Array.from(r.document.body.children).forEach(u=>u.addEventListener("click",kC)));let l=!0;const d=u=>a.some(f=>{if(typeof f=="string")return Array.from(r.document.querySelectorAll(f)).some(h=>h===u.target||u.composedPath().includes(h));{const h=Ro(f);return h&&(u.target===h||u.composedPath().includes(h))}}),c=[_r(r,"click",u=>{const f=Ro(e);if(!(!f||f===u.target||u.composedPath().includes(f))){if(u.detail===0&&(l=!d(u)),!l){l=!0;return}t(u)}},{passive:!0,capture:i}),_r(r,"pointerdown",u=>{const f=Ro(e);f&&(l=!u.composedPath().includes(f)&&!d(u))},{passive:!0}),s&&_r(r,"blur",u=>{var f;const h=Ro(e);((f=r.document.activeElement)==null?void 0:f.tagName)==="IFRAME"&&!(h!=null&&h.contains(r.document.activeElement))&&t(u)})].filter(Boolean);return()=>c.forEach(u=>u())}function _C(e,t=!1){const n=o.ref(),r=()=>n.value=!!e();return r(),pq(r,t),n}const BC=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},TC="__vueuse_ssr_handlers__";BC[TC]=BC[TC]||{};var NC=Object.getOwnPropertySymbols,mq=Object.prototype.hasOwnProperty,gq=Object.prototype.propertyIsEnumerable,yq=(e,t)=>{var n={};for(var r in e)mq.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&NC)for(var r of NC(e))t.indexOf(r)<0&&gq.call(e,r)&&(n[r]=e[r]);return n};function Lo(e,t,n={}){const r=n,{window:a=Zu}=r,i=yq(r,["window"]);let s;const l=_C(()=>a&&"ResizeObserver"in a),d=()=>{s&&(s.disconnect(),s=void 0)},c=o.watch(()=>Ro(e),f=>{d(),l.value&&a&&f&&(s=new ResizeObserver(t),s.observe(f,i))},{immediate:!0,flush:"post"}),u=()=>{d(),c()};return Yu(u),{isSupported:l,stop:u}}var OC=Object.getOwnPropertySymbols,vq=Object.prototype.hasOwnProperty,bq=Object.prototype.propertyIsEnumerable,wq=(e,t)=>{var n={};for(var r in e)vq.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&OC)for(var r of OC(e))t.indexOf(r)<0&&bq.call(e,r)&&(n[r]=e[r]);return n};function xq(e,t,n={}){const r=n,{window:a=Zu}=r,i=wq(r,["window"]);let s;const l=_C(()=>a&&"MutationObserver"in a),d=()=>{s&&(s.disconnect(),s=void 0)},c=o.watch(()=>Ro(e),f=>{d(),l.value&&a&&f&&(s=new MutationObserver(t),s.observe(f,i))},{immediate:!0}),u=()=>{d(),c()};return Yu(u),{isSupported:l,stop:u}}var PC;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(PC||(PC={}));var Cq=Object.defineProperty,$C=Object.getOwnPropertySymbols,kq=Object.prototype.hasOwnProperty,Eq=Object.prototype.propertyIsEnumerable,FC=(e,t,n)=>t in e?Cq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sq=(e,t)=>{for(var n in t||(t={}))kq.call(t,n)&&FC(e,n,t[n]);if($C)for(var n of $C(t))Eq.call(t,n)&&FC(e,n,t[n]);return e};Sq({linear:fq},{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]});const _q=()=>qt&&/firefox/i.test(window.navigator.userAgent),g0=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}};/** * @vue/shared v3.4.27 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const dc=()=>{},Bq=Object.prototype.hasOwnProperty,pi=(e,t)=>Bq.call(e,t),Yn=Array.isArray,Rn=e=>typeof e=="function",Sn=e=>typeof e=="string",fn=e=>e!==null&&typeof e=="object",Tq=Object.prototype.toString,Nq=e=>Tq.call(e),y0=e=>Nq(e).slice(8,-1),AC=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Oq=/-(\w)/g,Pq=AC(e=>e.replace(Oq,(t,n)=>n?n.toUpperCase():"")),$q=/\B([A-Z])/g,Fq=AC(e=>e.replace($q,"-$1").toLowerCase());var IC=typeof global=="object"&&global&&global.Object===Object&&global,Aq=typeof self=="object"&&self&&self.Object===Object&&self,fo=IC||Aq||Function("return this")(),po=fo.Symbol,DC=Object.prototype,Iq=DC.hasOwnProperty,Dq=DC.toString,uc=po?po.toStringTag:void 0;function Vq(e){var t=Iq.call(e,uc),n=e[uc];try{e[uc]=void 0;var r=!0}catch{}var a=Dq.call(e);return r&&(t?e[uc]=n:delete e[uc]),a}var Rq=Object.prototype,Lq=Rq.toString;function Mq(e){return Lq.call(e)}var zq="[object Null]",jq="[object Undefined]",VC=po?po.toStringTag:void 0;function Cs(e){return e==null?e===void 0?jq:zq:VC&&VC in Object(e)?Vq(e):Mq(e)}function ks(e){return e!=null&&typeof e=="object"}var Hq="[object Symbol]";function Ju(e){return typeof e=="symbol"||ks(e)&&Cs(e)==Hq}function Uq(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n0){if(++t>=yW)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function xW(e){return function(){return e}}var Qu=function(){try{var e=mi(Object,"defineProperty");return e({},"",{}),e}catch{}}(),CW=Qu?function(e,t){return Qu(e,"toString",{configurable:!0,enumerable:!1,value:xW(t),writable:!0})}:HC,kW=wW(CW);function EW(e,t,n,r){e.length;for(var a=n+1;a--;)if(t(e[a],a,e))return a;return-1}var SW=9007199254740991,_W=/^(?:0|[1-9]\d*)$/;function w0(e,t){var n=typeof e;return t=t??SW,!!t&&(n=="number"||n!="symbol"&&_W.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=$W}function FW(e){return e!=null&&C0(e.length)&&!UC(e)}var AW=Object.prototype;function IW(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||AW;return e===n}function DW(e,t){for(var n=-1,r=Array(e);++n-1}function HK(e,t){var n=this.__data__,r=ef(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Mo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++tl))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var f=-1,h=!0,m=n&$G?new rf:void 0;for(i.set(e,t),i.set(t,e);++f=t||E<0||f&&S>=i}function y(){var C=F0();if(v(C))return b(C);l=setTimeout(y,g(C))}function b(C){return l=void 0,h&&r?m(C):(r=a=void 0,s)}function x(){l!==void 0&&clearTimeout(l),c=0,r=d=a=l=void 0}function w(){return l===void 0?s:b(F0())}function k(){var C=F0(),E=v(C);if(r=arguments,a=this,d=C,E){if(l===void 0)return p(d);if(f)return clearTimeout(l),l=setTimeout(y,t),m(d)}return l===void 0&&(l=setTimeout(y,t)),s}return k.cancel=x,k.flush=w,k}function bX(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var a=r-1;return EW(e,mX(t),a)}function sf(e){for(var t=-1,n=e==null?0:e.length,r={};++te===void 0,Es=e=>typeof e=="boolean",pn=e=>typeof e=="number",yi=e=>typeof Element>"u"?!1:e instanceof Element,cf=e=>xa(e),EX=e=>Sn(e)?!Number.isNaN(Number(e)):!1,SX=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),kk=e=>Object.keys(e);class Ek extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function _X(e,t){throw new Ek(`[${e}] ${t}`)}function Wt(e,t){if(process.env.NODE_ENV!=="production"){const n=Sn(e)?new Ek(`[${e}] ${t}`):e;console.warn(n)}}const BX="utils/dom/style",Sk=(e="")=>e.split(" ").filter(t=>!!t.trim()),A0=(e,t)=>{!e||!t.trim()||e.classList.add(...Sk(t))},vi=(e,t)=>{!e||!t.trim()||e.classList.remove(...Sk(t))},gc=(e,t)=>{var n;if(!qt||!e||!t)return"";let r=Pq(t);r==="float"&&(r="cssFloat");try{const a=e.style[r];if(a)return a;const i=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return i?i[r]:""}catch{return e.style[r]}};function Ss(e,t="px"){if(!e)return"";if(pn(e)||EX(e))return`${e}${t}`;if(Sn(e))return e;Wt(BX,"binding value must be a string or number")}function TX(e,t){if(!qt)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 a=t.offsetTop+n.reduce((d,c)=>d+c.offsetTop,0),i=a+t.offsetHeight,s=e.scrollTop,l=s+e.clientHeight;al&&(e.scrollTop=i-e.clientHeight)}/*! Element Plus Icons Vue v2.3.1 */var NX=o.defineComponent({name:"Aim",__name:"aim",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("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"}),o.createElementVNode("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32m0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32M96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32m576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32"})]))}}),OX=NX,PX=o.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("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"})]))}}),I0=PX,$X=o.defineComponent({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("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"})]))}}),FX=$X,AX=o.defineComponent({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),IX=AX,DX=o.defineComponent({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("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"}),o.createElementVNode("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"})]))}}),VX=DX,RX=o.defineComponent({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("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"}),o.createElementVNode("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"})]))}}),D0=RX,LX=o.defineComponent({name:"Close",__name:"close",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("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"})]))}}),df=LX,MX=o.defineComponent({name:"CopyDocument",__name:"copy-document",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64z"}),o.createElementVNode("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64"})]))}}),zX=MX,jX=o.defineComponent({name:"Delete",__name:"delete",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("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"})]))}}),HX=jX,UX=o.defineComponent({name:"Edit",__name:"edit",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),o.createElementVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),qX=UX,WX=o.defineComponent({name:"Finished",__name:"finished",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M280.768 753.728 691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2l203.968 152.96zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64z"})]))}}),KX=WX,GX=o.defineComponent({name:"Hide",__name:"hide",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("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"}),o.createElementVNode("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"})]))}}),XX=GX,YX=o.defineComponent({name:"Loading",__name:"loading",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("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"})]))}}),V0=YX,ZX=o.defineComponent({name:"Lock",__name:"lock",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),o.createElementVNode("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m192-160v-64a192 192 0 1 0-384 0v64zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64"})]))}}),JX=ZX,QX=o.defineComponent({name:"Unlock",__name:"unlock",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),o.createElementVNode("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m178.304-295.296A192.064 192.064 0 0 0 320 320v64h352l96 38.4V448H256V320a256 256 0 0 1 493.76-95.104z"})]))}}),eY=QX,tY=o.defineComponent({name:"View",__name:"view",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("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"})]))}}),nY=tY,rY=o.defineComponent({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("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"})]))}}),oY=rY,aY=o.defineComponent({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[o.createElementVNode("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 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),iY=aY;const _k="__epPropKey",je=e=>e,sY=e=>fn(e)&&!!e[_k],uf=(e,t)=>{if(!fn(e)||sY(e))return e;const{values:n,required:r,default:a,type:i,validator:s}=e,l={type:i,required:!!r,validator:n||s?d=>{let c=!1,u=[];if(n&&(u=Array.from(n),pi(e,"default")&&u.push(a),c||(c=u.includes(d))),s&&(c||(c=s(d))),!c&&u.length>0){const f=[...new Set(u)].map(h=>JSON.stringify(h)).join(", ");o.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${f}], got value ${JSON.stringify(d)}.`)}return c}:void 0,[_k]:!0};return pi(e,"default")&&(l.default=a),l},ct=e=>sf(Object.entries(e).map(([t,n])=>[t,uf(n,t)])),ka=je([String,Object,Function]),Bk={validating:V0,success:VX,error:D0},ln=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},lY=(e,t)=>(e.install=n=>{n.directive(t,e)},e),Uo=e=>(e.install=dc,e),tn={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"},hn="update:modelValue",R0="change",Tk=["","default","small","large"],cY=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),_s=e=>e,dY=["class","style"],uY=/^on[A-Z]/,fY=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=o.computed(()=>((n==null?void 0:n.value)||[]).concat(dY)),a=o.getCurrentInstance();return a?o.computed(()=>{var i;return sf(Object.entries((i=a.proxy)==null?void 0:i.$attrs).filter(([s])=>!r.value.includes(s)&&!(t&&uY.test(s))))}):(Wt("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),o.computed(()=>({})))},ff=({from:e,replacement:t,scope:n,version:r,ref:a,type:i="API"},s)=>{o.watch(()=>o.unref(s),l=>{l&&Wt(n,`[${i}] ${e} is about to be deprecated in version ${r}, please use ${t} instead. For more detail, please visit: ${a} `)},{immediate:!0})};var pY={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 hY=e=>(t,n)=>mY(t,n,o.unref(e)),mY=(e,t,n)=>jo(n,e,e).replace(/\{(\w+)\}/g,(r,a)=>{var i;return`${(i=t==null?void 0:t[a])!=null?i:`{${a}}`}`}),gY=e=>{const t=o.computed(()=>o.unref(e).name),n=o.isRef(e)?e:o.ref(e);return{lang:t,locale:n,t:hY(e)}},Nk=Symbol("localeContextKey"),yc=e=>{const t=e||o.inject(Nk,o.ref());return gY(o.computed(()=>t.value||pY))},pf="el",yY="is-",bi=(e,t,n,r,a)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),r&&(i+=`__${r}`),a&&(i+=`--${a}`),i},Ok=Symbol("namespaceContextKey"),L0=e=>{const t=e||(o.getCurrentInstance()?o.inject(Ok,o.ref(pf)):o.ref(pf));return o.computed(()=>o.unref(t)||pf)},Ye=(e,t)=>{const n=L0(t);return{namespace:n,b:(r="")=>bi(n.value,e,r,"",""),e:r=>r?bi(n.value,e,"",r,""):"",m:r=>r?bi(n.value,e,"","",r):"",be:(r,a)=>r&&a?bi(n.value,e,r,a,""):"",em:(r,a)=>r&&a?bi(n.value,e,"",r,a):"",bm:(r,a)=>r&&a?bi(n.value,e,r,"",a):"",bem:(r,a,i)=>r&&a&&i?bi(n.value,e,r,a,i):"",is:(r,...a)=>{const i=a.length>=1?a[0]:!0;return r&&i?`${yY}${r}`:""},cssVar:r=>{const a={};for(const i in r)r[i]&&(a[`--${n.value}-${i}`]=r[i]);return a},cssVarName:r=>`--${n.value}-${r}`,cssVarBlock:r=>{const a={};for(const i in r)r[i]&&(a[`--${n.value}-${e}-${i}`]=r[i]);return a},cssVarBlockName:r=>`--${n.value}-${e}-${r}`}},vY=uf({type:je(Boolean),default:null}),bY=uf({type:je(Function)}),wY=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],a={[e]:vY,[n]:bY};return{useModelToggle:({indicator:i,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:d,onShow:c,onHide:u})=>{const f=o.getCurrentInstance(),{emit:h}=f,m=f.props,p=o.computed(()=>Rn(m[n])),g=o.computed(()=>m[e]===null),v=C=>{i.value!==!0&&(i.value=!0,s&&(s.value=C),Rn(c)&&c(C))},y=C=>{i.value!==!1&&(i.value=!1,s&&(s.value=C),Rn(u)&&u(C))},b=C=>{if(m.disabled===!0||Rn(d)&&!d())return;const E=p.value&&qt;E&&h(t,!0),(g.value||!E)&&v(C)},x=C=>{if(m.disabled===!0||!qt)return;const E=p.value&&qt;E&&h(t,!1),(g.value||!E)&&y(C)},w=C=>{Es(C)&&(m.disabled&&C?p.value&&h(t,!1):i.value!==C&&(C?v():y()))},k=()=>{i.value?x():b()};return o.watch(()=>m[e],w),l&&f.appContext.config.globalProperties.$route!==void 0&&o.watch(()=>({...f.proxy.$route}),()=>{l.value&&i.value&&x()}),o.onMounted(()=>{w(m[e])}),{hide:x,show:b,toggle:k,hasUpdateHandler:p}},useModelToggleProps:a,useModelToggleEmits:r}},Pk=e=>{const t=o.getCurrentInstance();return o.computed(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})};var Zn="top",Br="bottom",Tr="right",Jn="left",M0="auto",vc=[Zn,Br,Tr,Jn],Bs="start",bc="end",xY="clippingParents",$k="viewport",wc="popper",CY="reference",Fk=vc.reduce(function(e,t){return e.concat([t+"-"+Bs,t+"-"+bc])},[]),hf=[].concat(vc,[M0]).reduce(function(e,t){return e.concat([t,t+"-"+Bs,t+"-"+bc])},[]),kY="beforeRead",EY="read",SY="afterRead",_Y="beforeMain",BY="main",TY="afterMain",NY="beforeWrite",OY="write",PY="afterWrite",$Y=[kY,EY,SY,_Y,BY,TY,NY,OY,PY];function ho(e){return e?(e.nodeName||"").toLowerCase():null}function Gr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ts(e){var t=Gr(e).Element;return e instanceof t||e instanceof Element}function Nr(e){var t=Gr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function z0(e){if(typeof ShadowRoot>"u")return!1;var t=Gr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function FY(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},i=t.elements[n];!Nr(i)||!ho(i)||(Object.assign(i.style,r),Object.keys(a).forEach(function(s){var l=a[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function AY(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 a=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(d,c){return d[c]="",d},{});!Nr(a)||!ho(a)||(Object.assign(a.style,l),Object.keys(i).forEach(function(d){a.removeAttribute(d)}))})}}var Ak={name:"applyStyles",enabled:!0,phase:"write",fn:FY,effect:AY,requires:["computeStyles"]};function mo(e){return e.split("-")[0]}var wi=Math.max,mf=Math.min,Ns=Math.round;function Os(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,a=1;if(Nr(e)&&t){var i=e.offsetHeight,s=e.offsetWidth;s>0&&(r=Ns(n.width)/s||1),i>0&&(a=Ns(n.height)/i||1)}return{width:n.width/r,height:n.height/a,top:n.top/a,right:n.right/r,bottom:n.bottom/a,left:n.left/r,x:n.left/r,y:n.top/a}}function j0(e){var t=Os(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 Ik(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&z0(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function qo(e){return Gr(e).getComputedStyle(e)}function IY(e){return["table","td","th"].indexOf(ho(e))>=0}function Ea(e){return((Ts(e)?e.ownerDocument:e.document)||window.document).documentElement}function gf(e){return ho(e)==="html"?e:e.assignedSlot||e.parentNode||(z0(e)?e.host:null)||Ea(e)}function Dk(e){return!Nr(e)||qo(e).position==="fixed"?null:e.offsetParent}function DY(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Nr(e)){var r=qo(e);if(r.position==="fixed")return null}var a=gf(e);for(z0(a)&&(a=a.host);Nr(a)&&["html","body"].indexOf(ho(a))<0;){var i=qo(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function xc(e){for(var t=Gr(e),n=Dk(e);n&&IY(n)&&qo(n).position==="static";)n=Dk(n);return n&&(ho(n)==="html"||ho(n)==="body"&&qo(n).position==="static")?t:n||DY(e)||t}function H0(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Cc(e,t,n){return wi(e,mf(t,n))}function VY(e,t,n){var r=Cc(e,t,n);return r>n?n:r}function Vk(){return{top:0,right:0,bottom:0,left:0}}function Rk(e){return Object.assign({},Vk(),e)}function Lk(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var RY=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Rk(typeof e!="number"?e:Lk(e,vc))};function LY(e){var t,n=e.state,r=e.name,a=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,l=mo(n.placement),d=H0(l),c=[Jn,Tr].indexOf(l)>=0,u=c?"height":"width";if(!(!i||!s)){var f=RY(a.padding,n),h=j0(i),m=d==="y"?Zn:Jn,p=d==="y"?Br:Tr,g=n.rects.reference[u]+n.rects.reference[d]-s[d]-n.rects.popper[u],v=s[d]-n.rects.reference[d],y=xc(i),b=y?d==="y"?y.clientHeight||0:y.clientWidth||0:0,x=g/2-v/2,w=f[m],k=b-h[u]-f[p],C=b/2-h[u]/2+x,E=Cc(w,C,k),S=d;n.modifiersData[r]=(t={},t[S]=E,t.centerOffset=E-C,t)}}function MY(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||!Ik(t.elements.popper,a)||(t.elements.arrow=a))}var zY={name:"arrow",enabled:!0,phase:"main",fn:LY,effect:MY,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ps(e){return e.split("-")[1]}var jY={top:"auto",right:"auto",bottom:"auto",left:"auto"};function HY(e){var t=e.x,n=e.y,r=window,a=r.devicePixelRatio||1;return{x:Ns(t*a)/a||0,y:Ns(n*a)/a||0}}function Mk(e){var t,n=e.popper,r=e.popperRect,a=e.placement,i=e.variation,s=e.offsets,l=e.position,d=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,h=s.x,m=h===void 0?0:h,p=s.y,g=p===void 0?0:p,v=typeof u=="function"?u({x:m,y:g}):{x:m,y:g};m=v.x,g=v.y;var y=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),x=Jn,w=Zn,k=window;if(c){var C=xc(n),E="clientHeight",S="clientWidth";if(C===Gr(n)&&(C=Ea(n),qo(C).position!=="static"&&l==="absolute"&&(E="scrollHeight",S="scrollWidth")),C=C,a===Zn||(a===Jn||a===Tr)&&i===bc){w=Br;var _=f&&C===k&&k.visualViewport?k.visualViewport.height:C[E];g-=_-r.height,g*=d?1:-1}if(a===Jn||(a===Zn||a===Br)&&i===bc){x=Tr;var O=f&&C===k&&k.visualViewport?k.visualViewport.width:C[S];m-=O-r.width,m*=d?1:-1}}var T=Object.assign({position:l},c&&jY),N=u===!0?HY({x:m,y:g}):{x:m,y:g};if(m=N.x,g=N.y,d){var F;return Object.assign({},T,(F={},F[w]=b?"0":"",F[x]=y?"0":"",F.transform=(k.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",F))}return Object.assign({},T,(t={},t[w]=b?g+"px":"",t[x]=y?m+"px":"",t.transform="",t))}function UY(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,d=l===void 0?!0:l,c={placement:mo(t.placement),variation:Ps(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Mk(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Mk(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var zk={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:UY,data:{}},yf={passive:!0};function qY(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,i=a===void 0?!0:a,s=r.resize,l=s===void 0?!0:s,d=Gr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,yf)}),l&&d.addEventListener("resize",n.update,yf),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,yf)}),l&&d.removeEventListener("resize",n.update,yf)}}var jk={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:qY,data:{}},WY={left:"right",right:"left",bottom:"top",top:"bottom"};function vf(e){return e.replace(/left|right|bottom|top/g,function(t){return WY[t]})}var KY={start:"end",end:"start"};function Hk(e){return e.replace(/start|end/g,function(t){return KY[t]})}function U0(e){var t=Gr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function q0(e){return Os(Ea(e)).left+U0(e).scrollLeft}function GY(e){var t=Gr(e),n=Ea(e),r=t.visualViewport,a=n.clientWidth,i=n.clientHeight,s=0,l=0;return r&&(a=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,l=r.offsetTop)),{width:a,height:i,x:s+q0(e),y:l}}function XY(e){var t,n=Ea(e),r=U0(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=wi(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=wi(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-r.scrollLeft+q0(e),d=-r.scrollTop;return qo(a||n).direction==="rtl"&&(l+=wi(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:s,x:l,y:d}}function W0(e){var t=qo(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function Uk(e){return["html","body","#document"].indexOf(ho(e))>=0?e.ownerDocument.body:Nr(e)&&W0(e)?e:Uk(gf(e))}function kc(e,t){var n;t===void 0&&(t=[]);var r=Uk(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),i=Gr(r),s=a?[i].concat(i.visualViewport||[],W0(r)?r:[]):r,l=t.concat(s);return a?l:l.concat(kc(gf(s)))}function K0(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function YY(e){var t=Os(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 qk(e,t){return t===$k?K0(GY(e)):Ts(t)?YY(t):K0(XY(Ea(e)))}function ZY(e){var t=kc(gf(e)),n=["absolute","fixed"].indexOf(qo(e).position)>=0,r=n&&Nr(e)?xc(e):e;return Ts(r)?t.filter(function(a){return Ts(a)&&Ik(a,r)&&ho(a)!=="body"}):[]}function JY(e,t,n){var r=t==="clippingParents"?ZY(e):[].concat(t),a=[].concat(r,[n]),i=a[0],s=a.reduce(function(l,d){var c=qk(e,d);return l.top=wi(c.top,l.top),l.right=mf(c.right,l.right),l.bottom=mf(c.bottom,l.bottom),l.left=wi(c.left,l.left),l},qk(e,i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Wk(e){var t=e.reference,n=e.element,r=e.placement,a=r?mo(r):null,i=r?Ps(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,d;switch(a){case Zn:d={x:s,y:t.y-n.height};break;case Br:d={x:s,y:t.y+t.height};break;case Tr:d={x:t.x+t.width,y:l};break;case Jn:d={x:t.x-n.width,y:l};break;default:d={x:t.x,y:t.y}}var c=a?H0(a):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Bs:d[c]=d[c]-(t[u]/2-n[u]/2);break;case bc:d[c]=d[c]+(t[u]/2-n[u]/2);break}}return d}function Ec(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,i=n.boundary,s=i===void 0?xY:i,l=n.rootBoundary,d=l===void 0?$k:l,c=n.elementContext,u=c===void 0?wc:c,f=n.altBoundary,h=f===void 0?!1:f,m=n.padding,p=m===void 0?0:m,g=Rk(typeof p!="number"?p:Lk(p,vc)),v=u===wc?CY:wc,y=e.rects.popper,b=e.elements[h?v:u],x=JY(Ts(b)?b:b.contextElement||Ea(e.elements.popper),s,d),w=Os(e.elements.reference),k=Wk({reference:w,element:y,strategy:"absolute",placement:a}),C=K0(Object.assign({},y,k)),E=u===wc?C:w,S={top:x.top-E.top+g.top,bottom:E.bottom-x.bottom+g.bottom,left:x.left-E.left+g.left,right:E.right-x.right+g.right},_=e.modifiersData.offset;if(u===wc&&_){var O=_[a];Object.keys(S).forEach(function(T){var N=[Tr,Br].indexOf(T)>=0?1:-1,F=[Zn,Br].indexOf(T)>=0?"y":"x";S[T]+=O[F]*N})}return S}function QY(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,d=n.allowedAutoPlacements,c=d===void 0?hf:d,u=Ps(r),f=u?l?Fk:Fk.filter(function(p){return Ps(p)===u}):vc,h=f.filter(function(p){return c.indexOf(p)>=0});h.length===0&&(h=f);var m=h.reduce(function(p,g){return p[g]=Ec(e,{placement:g,boundary:a,rootBoundary:i,padding:s})[mo(g)],p},{});return Object.keys(m).sort(function(p,g){return m[p]-m[g]})}function eZ(e){if(mo(e)===M0)return[];var t=vf(e);return[Hk(e),t,Hk(t)]}function tZ(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,i=a===void 0?!0:a,s=n.altAxis,l=s===void 0?!0:s,d=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,h=n.altBoundary,m=n.flipVariations,p=m===void 0?!0:m,g=n.allowedAutoPlacements,v=t.options.placement,y=mo(v),b=y===v,x=d||(b||!p?[vf(v)]:eZ(v)),w=[v].concat(x).reduce(function(le,de){return le.concat(mo(de)===M0?QY(t,{placement:de,boundary:u,rootBoundary:f,padding:c,flipVariations:p,allowedAutoPlacements:g}):de)},[]),k=t.rects.reference,C=t.rects.popper,E=new Map,S=!0,_=w[0],O=0;O=0,D=$?"width":"height",P=Ec(t,{placement:T,boundary:u,rootBoundary:f,altBoundary:h,padding:c}),V=$?F?Tr:Jn:F?Br:Zn;k[D]>C[D]&&(V=vf(V));var I=vf(V),z=[];if(i&&z.push(P[N]<=0),l&&z.push(P[V]<=0,P[I]<=0),z.every(function(le){return le})){_=T,S=!1;break}E.set(T,z)}if(S)for(var G=p?3:1,q=function(le){var de=w.find(function(ne){var oe=E.get(ne);if(oe)return oe.slice(0,le).every(function(U){return U})});if(de)return _=de,"break"},X=G;X>0;X--){var te=q(X);if(te==="break")break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}}var nZ={name:"flip",enabled:!0,phase:"main",fn:tZ,requiresIfExists:["offset"],data:{_skip:!1}};function Kk(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 Gk(e){return[Zn,Tr,Br,Jn].some(function(t){return e[t]>=0})}function rZ(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,s=Ec(t,{elementContext:"reference"}),l=Ec(t,{altBoundary:!0}),d=Kk(s,r),c=Kk(l,a,i),u=Gk(d),f=Gk(c);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}var oZ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:rZ};function aZ(e,t,n){var r=mo(e),a=[Jn,Zn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],l=i[1];return s=s||0,l=(l||0)*a,[Jn,Tr].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function iZ(e){var t=e.state,n=e.options,r=e.name,a=n.offset,i=a===void 0?[0,0]:a,s=hf.reduce(function(u,f){return u[f]=aZ(f,t.rects,i),u},{}),l=s[t.placement],d=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}var sZ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:iZ};function lZ(e){var t=e.state,n=e.name;t.modifiersData[n]=Wk({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Xk={name:"popperOffsets",enabled:!0,phase:"read",fn:lZ,data:{}};function cZ(e){return e==="x"?"y":"x"}function dZ(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,i=a===void 0?!0:a,s=n.altAxis,l=s===void 0?!1:s,d=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,h=n.tether,m=h===void 0?!0:h,p=n.tetherOffset,g=p===void 0?0:p,v=Ec(t,{boundary:d,rootBoundary:c,padding:f,altBoundary:u}),y=mo(t.placement),b=Ps(t.placement),x=!b,w=H0(y),k=cZ(w),C=t.modifiersData.popperOffsets,E=t.rects.reference,S=t.rects.popper,_=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,O=typeof _=="number"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(C){if(i){var F,$=w==="y"?Zn:Jn,D=w==="y"?Br:Tr,P=w==="y"?"height":"width",V=C[w],I=V+v[$],z=V-v[D],G=m?-S[P]/2:0,q=b===Bs?E[P]:S[P],X=b===Bs?-S[P]:-E[P],te=t.elements.arrow,le=m&&te?j0(te):{width:0,height:0},de=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Vk(),ne=de[$],oe=de[D],U=Cc(0,E[P],le[P]),W=x?E[P]/2-G-U-ne-O.mainAxis:q-U-ne-O.mainAxis,Z=x?-E[P]/2+G+U+oe+O.mainAxis:X+U+oe+O.mainAxis,ue=t.elements.arrow&&xc(t.elements.arrow),be=ue?w==="y"?ue.clientTop||0:ue.clientLeft||0:0,Be=(F=T==null?void 0:T[w])!=null?F:0,pe=V+W-Be-be,xe=V+Z-Be,ge=Cc(m?mf(I,pe):I,V,m?wi(z,xe):z);C[w]=ge,N[w]=ge-V}if(l){var ke,Ne=w==="x"?Zn:Jn,Ie=w==="x"?Br:Tr,Se=C[k],Re=k==="y"?"height":"width",Ve=Se+v[Ne],ze=Se-v[Ie],B=[Zn,Jn].indexOf(y)!==-1,L=(ke=T==null?void 0:T[k])!=null?ke:0,Y=B?Ve:Se-E[Re]-S[Re]-L+O.altAxis,Q=B?Se+E[Re]+S[Re]-L-O.altAxis:ze,ee=m&&B?VY(Y,Se,Q):Cc(m?Y:Ve,Se,m?Q:ze);C[k]=ee,N[k]=ee-Se}t.modifiersData[r]=N}}var uZ={name:"preventOverflow",enabled:!0,phase:"main",fn:dZ,requiresIfExists:["offset"]};function fZ(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function pZ(e){return e===Gr(e)||!Nr(e)?U0(e):fZ(e)}function hZ(e){var t=e.getBoundingClientRect(),n=Ns(t.width)/e.offsetWidth||1,r=Ns(t.height)/e.offsetHeight||1;return n!==1||r!==1}function mZ(e,t,n){n===void 0&&(n=!1);var r=Nr(t),a=Nr(t)&&hZ(t),i=Ea(t),s=Os(e,a),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&((ho(t)!=="body"||W0(i))&&(l=pZ(t)),Nr(t)?(d=Os(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):i&&(d.x=q0(i))),{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function gZ(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function a(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var d=t.get(l);d&&a(d)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||a(i)}),r}function yZ(e){var t=gZ(e);return $Y.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function vZ(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function bZ(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Yk={placement:"bottom",modifiers:[],strategy:"absolute"};function Zk(){for(var e=arguments.length,t=new Array(e),n=0;n{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:d})=>{const c=EZ(d);Object.assign(s.value,c)},requires:["computeStyles"]},a=o.computed(()=>{const{onFirstUpdate:d,placement:c,strategy:u,modifiers:f}=o.unref(n);return{onFirstUpdate:d,placement:c||"bottom",strategy:u||"absolute",modifiers:[...f||[],r,{name:"applyStyles",enabled:!1}]}}),i=o.shallowRef(),s=o.ref({styles:{popper:{position:o.unref(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=()=>{i.value&&(i.value.destroy(),i.value=void 0)};return o.watch(a,d=>{const c=o.unref(i);c&&c.setOptions(d)},{deep:!0}),o.watch([e,t],([d,c])=>{l(),!(!d||!c)&&(i.value=CZ(d,c,o.unref(a)))}),o.onBeforeUnmount(()=>{l()}),{state:o.computed(()=>{var d;return{...((d=o.unref(i))==null?void 0:d.state)||{}}}),styles:o.computed(()=>o.unref(s).styles),attributes:o.computed(()=>o.unref(s).attributes),update:()=>{var d;return(d=o.unref(i))==null?void 0:d.update()},forceUpdate:()=>{var d;return(d=o.unref(i))==null?void 0:d.forceUpdate()},instanceRef:o.computed(()=>o.unref(i))}};function EZ(e){const t=Object.keys(e.elements),n=sf(t.map(a=>[a,e.styles[a]||{}])),r=sf(t.map(a=>[a,e.attributes[a]]));return{styles:n,attributes:r}}function Jk(){let e;const t=(r,a)=>{n(),e=window.setTimeout(r,a)},n=()=>window.clearTimeout(e);return Yu(()=>n()),{registerTimeout:t,cancelTimeout:n}}const X0={prefix:Math.floor(Math.random()*1e4),current:0},SZ=Symbol("elIdInjection"),Qk=()=>o.getCurrentInstance()?o.inject(SZ,X0):X0,bf=e=>{const t=Qk();!qt&&t===X0&&Wt("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed usage: app.provide(ID_INJECTION_KEY, { prefix: number, current: number, })`);const n=L0();return o.computed(()=>o.unref(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let $s=[];const eE=e=>{const t=e;t.key===tn.esc&&$s.forEach(n=>n(t))},_Z=e=>{o.onMounted(()=>{$s.length===0&&document.addEventListener("keydown",eE),qt&&$s.push(e)}),o.onBeforeUnmount(()=>{$s=$s.filter(t=>t!==e),$s.length===0&&qt&&document.removeEventListener("keydown",eE)})};let tE;const nE=()=>{const e=L0(),t=Qk(),n=o.computed(()=>`${e.value}-popper-container-${t.prefix}`),r=o.computed(()=>`#${n.value}`);return{id:n,selector:r}},BZ=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},TZ=()=>{const{id:e,selector:t}=nE();return o.onBeforeMount(()=>{qt&&(process.env.NODE_ENV==="test"||!tE||!document.body.querySelector(t.value))&&(tE=BZ(e.value))}),{id:e,selector:t}},NZ=ct({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),OZ=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:a})=>{const{registerTimeout:i}=Jk(),{registerTimeout:s,cancelTimeout:l}=Jk();return{onOpen:d=>{i(()=>{r(d);const c=o.unref(n);pn(c)&&c>0&&s(()=>{a(d)},c)},o.unref(e))},onClose:d=>{l(),i(()=>{a(d)},o.unref(t))}}},rE=Symbol("elForwardRef"),PZ=e=>{o.provide(rE,{setForwardRef:t=>{e.value=t}})},$Z=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),oE={current:0},aE=o.ref(0),iE=2e3,sE=Symbol("elZIndexContextKey"),lE=Symbol("zIndexContextKey"),cE=e=>{const t=o.getCurrentInstance()?o.inject(sE,oE):oE,n=e||(o.getCurrentInstance()?o.inject(lE,void 0):void 0),r=o.computed(()=>{const s=o.unref(n);return pn(s)?s:iE}),a=o.computed(()=>r.value+aE.value),i=()=>(t.current++,aE.value=t.current,a.value);return!qt&&!o.inject(sE)&&Wt("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:r,currentZIndex:a,nextZIndex:i}};function FZ(e){let t;function n(){if(e.value==null)return;const{selectionStart:a,selectionEnd:i,value:s}=e.value;if(a==null||i==null)return;const l=s.slice(0,Math.max(0,a)),d=s.slice(Math.max(0,i));t={selectionStart:a,selectionEnd:i,value:s,beforeTxt:l,afterTxt:d}}function r(){if(e.value==null||t==null)return;const{value:a}=e.value,{beforeTxt:i,afterTxt:s,selectionStart:l}=t;if(i==null||s==null||l==null)return;let d=a.length;if(a.endsWith(s))d=a.length-s.length;else if(a.startsWith(i))d=i.length;else{const c=i[l-1],u=a.indexOf(c,l-1);u!==-1&&(d=u+1)}e.value.setSelectionRange(d,d)}return[n,r]}const Fs=uf({type:String,values:Tk,required:!1}),dE=Symbol("size"),AZ=()=>{const e=o.inject(dE,{});return o.computed(()=>o.unref(e.size)||"")};function Y0(e,{beforeFocus:t,afterFocus:n,beforeBlur:r,afterBlur:a}={}){const i=o.getCurrentInstance(),{emit:s}=i,l=o.shallowRef(),d=o.ref(!1),c=h=>{Rn(t)&&t(h)||d.value||(d.value=!0,s("focus",h),n==null||n())},u=h=>{var m;Rn(r)&&r(h)||h.relatedTarget&&(m=l.value)!=null&&m.contains(h.relatedTarget)||(d.value=!1,s("blur",h),a==null||a())},f=()=>{var h,m;(h=l.value)!=null&&h.contains(document.activeElement)&&l.value!==document.activeElement||(m=e.value)==null||m.focus()};return o.watch(l,h=>{h&&h.setAttribute("tabindex","-1")}),_r(l,"focus",c,!0),_r(l,"blur",u,!0),_r(l,"click",f,!0),process.env.NODE_ENV==="test"&&o.onMounted(()=>{const h=yi(e.value)?e.value:document.querySelector("input,textarea");h&&(_r(h,"focus",c,!0),_r(h,"blur",u,!0))}),{isFocused:d,wrapperRef:l,handleFocus:c,handleBlur:u}}function uE({afterComposition:e,emit:t}){const n=o.ref(!1),r=s=>{t==null||t("compositionstart",s),n.value=!0},a=s=>{var l;t==null||t("compositionupdate",s);const d=(l=s.target)==null?void 0:l.value,c=d[d.length-1]||"";n.value=!cY(c)},i=s=>{t==null||t("compositionend",s),n.value&&(n.value=!1,o.nextTick(()=>e(s)))};return{isComposing:n,handleComposition:s=>{s.type==="compositionend"?i(s):a(s)},handleCompositionStart:r,handleCompositionUpdate:a,handleCompositionEnd:i}}const fE=Symbol("emptyValuesContextKey"),IZ="use-empty-values",DZ=["",void 0,null],VZ=void 0,RZ=ct({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>Rn(e)?!e():!e}}),LZ=(e,t)=>{const n=o.getCurrentInstance()?o.inject(fE,o.ref({})):o.ref({}),r=o.computed(()=>e.emptyValues||n.value.emptyValues||DZ),a=o.computed(()=>Rn(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:Rn(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:VZ),i=s=>r.value.includes(s);return r.value.includes(a.value)||Wt(IZ,"value-on-clear should be a value of empty-values"),{emptyValues:r,valueOnClear:a,isEmptyValue:i}},MZ=ct({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Sa=e=>Ck(MZ,e),pE=Symbol(),wf=o.ref();function Z0(e,t=void 0){const n=o.getCurrentInstance()?o.inject(pE,wf):wf;return e?o.computed(()=>{var r,a;return(a=(r=n.value)==null?void 0:r[e])!=null?a:t}):n}function zZ(e,t){const n=Z0(),r=Ye(e,o.computed(()=>{var l;return((l=n.value)==null?void 0:l.namespace)||pf})),a=yc(o.computed(()=>{var l;return(l=n.value)==null?void 0:l.locale})),i=cE(o.computed(()=>{var l;return((l=n.value)==null?void 0:l.zIndex)||iE})),s=o.computed(()=>{var l;return o.unref(t)||((l=n.value)==null?void 0:l.size)||""});return jZ(o.computed(()=>o.unref(n)||{})),{ns:r,locale:a,zIndex:i,size:s}}const jZ=(e,t,n=!1)=>{var r;const a=!!o.getCurrentInstance(),i=a?Z0():void 0,s=(r=void 0)!=null?r:a?o.provide:void 0;if(!s){Wt("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const l=o.computed(()=>{const d=o.unref(e);return i!=null&&i.value?HZ(i.value,d):d});return s(pE,l),s(Nk,o.computed(()=>l.value.locale)),s(Ok,o.computed(()=>l.value.namespace)),s(lE,o.computed(()=>l.value.zIndex)),s(dE,{size:o.computed(()=>l.value.size||"")}),s(fE,o.computed(()=>({emptyValues:l.value.emptyValues,valueOnClear:l.value.valueOnClear}))),(n||!wf.value)&&(wf.value=l.value),l},HZ=(e,t)=>{const n=[...new Set([...kk(e),...kk(t)])],r={};for(const a of n)r[a]=t[a]!==void 0?t[a]:e[a];return r};var Ge=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n};const UZ=ct({size:{type:je([Number,String])},color:{type:String}}),qZ=o.defineComponent({name:"ElIcon",inheritAttrs:!1}),WZ=o.defineComponent({...qZ,props:UZ,setup(e){const t=e,n=Ye("icon"),r=o.computed(()=>{const{size:a,color:i}=t;return!a&&!i?{}:{fontSize:Ca(a)?void 0:Ss(a),"--color":i}});return(a,i)=>(o.openBlock(),o.createElementBlock("i",o.mergeProps({class:o.unref(n).b(),style:o.unref(r)},a.$attrs),[o.renderSlot(a.$slots,"default")],16))}});var KZ=Ge(WZ,[["__file","icon.vue"]]);const _n=ln(KZ),J0=Symbol("formContextKey"),Sc=Symbol("formItemContextKey"),xi=(e,t={})=>{const n=o.ref(void 0),r=t.prop?n:Pk("size"),a=t.global?n:AZ(),i=t.form?{size:void 0}:o.inject(J0,void 0),s=t.formItem?{size:void 0}:o.inject(Sc,void 0);return o.computed(()=>r.value||o.unref(e)||(s==null?void 0:s.size)||(i==null?void 0:i.size)||a.value||"")},_c=e=>{const t=Pk("disabled"),n=o.inject(J0,void 0);return o.computed(()=>t.value||o.unref(e)||(n==null?void 0:n.disabled)||!1)},Ci=()=>{const e=o.inject(J0,void 0),t=o.inject(Sc,void 0);return{form:e,formItem:t}},Bc=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=o.ref(!1)),r||(r=o.ref(!1));const a=o.ref();let i;const s=o.computed(()=>{var l;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((l=t.inputIds)==null?void 0:l.length)<=1)});return o.onMounted(()=>{i=o.watch([o.toRef(e,"id"),n],([l,d])=>{const c=l??(d?void 0:bf().value);c!==a.value&&(t!=null&&t.removeInputId&&(a.value&&t.removeInputId(a.value),!(r!=null&&r.value)&&!d&&c&&t.addInputId(c)),a.value=c)},{immediate:!0})}),o.onUnmounted(()=>{i&&i(),t!=null&&t.removeInputId&&a.value&&t.removeInputId(a.value)}),{isLabeledByFormItem:s,inputId:a}};let Xr;const GZ=` height:0 !important; visibility:hidden !important; ${_q()?"":"overflow:hidden !important;"} position:absolute !important; z-index:-1000 !important; top:0 !important; right:0 !important; `,XZ=["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 YZ(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),a=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:XZ.map(i=>`${i}:${t.getPropertyValue(i)}`).join(";"),paddingSize:r,borderSize:a,boxSizing:n}}function hE(e,t=1,n){var r;Xr||(Xr=document.createElement("textarea"),document.body.appendChild(Xr));const{paddingSize:a,borderSize:i,boxSizing:s,contextStyle:l}=YZ(e);Xr.setAttribute("style",`${l};${GZ}`),Xr.value=e.value||e.placeholder||"";let d=Xr.scrollHeight;const c={};s==="border-box"?d=d+i:s==="content-box"&&(d=d-a),Xr.value="";const u=Xr.scrollHeight-a;if(pn(t)){let f=u*t;s==="border-box"&&(f=f+a+i),d=Math.max(f,d),c.minHeight=`${f}px`}if(pn(n)){let f=u*n;s==="border-box"&&(f=f+a+i),d=Math.min(f,d)}return c.height=`${d}px`,(r=Xr.parentNode)==null||r.removeChild(Xr),Xr=void 0,c}const ZZ=ct({id:{type:String,default:void 0},size:Fs,disabled:Boolean,modelValue:{type:je([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:je([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:ka},prefixIcon:{type:ka},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:je([Object,Array,String]),default:()=>_s({})},autofocus:Boolean,rows:{type:Number,default:2},...Sa(["ariaLabel"])}),JZ={[hn]:e=>Sn(e),input:e=>Sn(e),change:e=>Sn(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},QZ=o.defineComponent({name:"ElInput",inheritAttrs:!1}),eJ=o.defineComponent({...QZ,props:ZZ,emits:JZ,setup(e,{expose:t,emit:n}){const r=e,a=o.useAttrs(),i=o.useSlots(),s=o.computed(()=>{const B={};return r.containerRole==="combobox"&&(B["aria-haspopup"]=a["aria-haspopup"],B["aria-owns"]=a["aria-owns"],B["aria-expanded"]=a["aria-expanded"]),B}),l=o.computed(()=>[r.type==="textarea"?v.b():g.b(),g.m(m.value),g.is("disabled",p.value),g.is("exceed",te.value),{[g.b("group")]:i.prepend||i.append,[g.m("prefix")]:i.prefix||r.prefixIcon,[g.m("suffix")]:i.suffix||r.suffixIcon||r.clearable||r.showPassword,[g.bm("suffix","password-clear")]:z.value&&G.value,[g.b("hidden")]:r.type==="hidden"},a.class]),d=o.computed(()=>[g.e("wrapper"),g.is("focus",_.value)]),c=fY({excludeKeys:o.computed(()=>Object.keys(s.value))}),{form:u,formItem:f}=Ci(),{inputId:h}=Bc(r,{formItemContext:f}),m=xi(),p=_c(),g=Ye("input"),v=Ye("textarea"),y=o.shallowRef(),b=o.shallowRef(),x=o.ref(!1),w=o.ref(!1),k=o.ref(),C=o.shallowRef(r.inputStyle),E=o.computed(()=>y.value||b.value),{wrapperRef:S,isFocused:_,handleFocus:O,handleBlur:T}=Y0(E,{beforeFocus(){return p.value},afterBlur(){var B;r.validateEvent&&((B=f==null?void 0:f.validate)==null||B.call(f,"blur").catch(L=>Wt(L)))}}),N=o.computed(()=>{var B;return(B=u==null?void 0:u.statusIcon)!=null?B:!1}),F=o.computed(()=>(f==null?void 0:f.validateState)||""),$=o.computed(()=>F.value&&Bk[F.value]),D=o.computed(()=>w.value?nY:XX),P=o.computed(()=>[a.style]),V=o.computed(()=>[r.inputStyle,C.value,{resize:r.resize}]),I=o.computed(()=>xa(r.modelValue)?"":String(r.modelValue)),z=o.computed(()=>r.clearable&&!p.value&&!r.readonly&&!!I.value&&(_.value||x.value)),G=o.computed(()=>r.showPassword&&!p.value&&!r.readonly&&!!I.value&&(!!I.value||_.value)),q=o.computed(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!p.value&&!r.readonly&&!r.showPassword),X=o.computed(()=>I.value.length),te=o.computed(()=>!!q.value&&X.value>Number(r.maxlength)),le=o.computed(()=>!!i.suffix||!!r.suffixIcon||z.value||r.showPassword||q.value||!!F.value&&N.value),[de,ne]=FZ(y);Lo(b,B=>{if(U(),!q.value||r.resize!=="both")return;const L=B[0],{width:Y}=L.contentRect;k.value={right:`calc(100% - ${Y+15+6}px)`}});const oe=()=>{const{type:B,autosize:L}=r;if(!(!qt||B!=="textarea"||!b.value))if(L){const Y=fn(L)?L.minRows:void 0,Q=fn(L)?L.maxRows:void 0,ee=hE(b.value,Y,Q);C.value={overflowY:"hidden",...ee},o.nextTick(()=>{b.value.offsetHeight,C.value=ee})}else C.value={minHeight:hE(b.value).minHeight}},U=(B=>{let L=!1;return()=>{var Y;L||!r.autosize||((Y=b.value)==null?void 0:Y.offsetParent)===null||(B(),L=!0)}})(oe),W=()=>{const B=E.value,L=r.formatter?r.formatter(I.value):I.value;!B||B.value===L||(B.value=L)},Z=async B=>{de();let{value:L}=B.target;if(r.formatter&&(L=r.parser?r.parser(L):L),!be.value){if(L===I.value){W();return}n(hn,L),n("input",L),await o.nextTick(),W(),ne()}},ue=B=>{n("change",B.target.value)},{isComposing:be,handleCompositionStart:Be,handleCompositionUpdate:pe,handleCompositionEnd:xe}=uE({emit:n,afterComposition:Z}),ge=()=>{w.value=!w.value,ke()},ke=async()=>{var B;await o.nextTick(),(B=E.value)==null||B.focus()},Ne=()=>{var B;return(B=E.value)==null?void 0:B.blur()},Ie=B=>{x.value=!1,n("mouseleave",B)},Se=B=>{x.value=!0,n("mouseenter",B)},Re=B=>{n("keydown",B)},Ve=()=>{var B;(B=E.value)==null||B.select()},ze=()=>{n(hn,""),n("change",""),n("clear"),n("input","")};return o.watch(()=>r.modelValue,()=>{var B;o.nextTick(()=>oe()),r.validateEvent&&((B=f==null?void 0:f.validate)==null||B.call(f,"change").catch(L=>Wt(L)))}),o.watch(I,()=>W()),o.watch(()=>r.type,async()=>{await o.nextTick(),W(),oe()}),o.onMounted(()=>{!r.formatter&&r.parser&&Wt("ElInput","If you set the parser, you also need to set the formatter."),W(),o.nextTick(oe)}),t({input:y,textarea:b,ref:E,textareaStyle:V,autosize:o.toRef(r,"autosize"),isComposing:be,focus:ke,blur:Ne,select:Ve,clear:ze,resizeTextarea:oe}),(B,L)=>(o.openBlock(),o.createElementBlock("div",o.mergeProps(o.unref(s),{class:[o.unref(l),{[o.unref(g).bm("group","append")]:B.$slots.append,[o.unref(g).bm("group","prepend")]:B.$slots.prepend}],style:o.unref(P),role:B.containerRole,onMouseenter:Se,onMouseleave:Ie}),[o.createCommentVNode(" input "),B.type!=="textarea"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createCommentVNode(" prepend slot "),B.$slots.prepend?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(o.unref(g).be("group","prepend"))},[o.renderSlot(B.$slots,"prepend")],2)):o.createCommentVNode("v-if",!0),o.createElementVNode("div",{ref_key:"wrapperRef",ref:S,class:o.normalizeClass(o.unref(d))},[o.createCommentVNode(" prefix slot "),B.$slots.prefix||B.prefixIcon?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(o.unref(g).e("prefix"))},[o.createElementVNode("span",{class:o.normalizeClass(o.unref(g).e("prefix-inner"))},[o.renderSlot(B.$slots,"prefix"),B.prefixIcon?(o.openBlock(),o.createBlock(o.unref(_n),{key:0,class:o.normalizeClass(o.unref(g).e("icon"))},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(B.prefixIcon)))]),_:1},8,["class"])):o.createCommentVNode("v-if",!0)],2)],2)):o.createCommentVNode("v-if",!0),o.createElementVNode("input",o.mergeProps({id:o.unref(h),ref_key:"input",ref:y,class:o.unref(g).e("inner")},o.unref(c),{minlength:B.minlength,maxlength:B.maxlength,type:B.showPassword?w.value?"text":"password":B.type,disabled:o.unref(p),readonly:B.readonly,autocomplete:B.autocomplete,tabindex:B.tabindex,"aria-label":B.ariaLabel,placeholder:B.placeholder,style:B.inputStyle,form:B.form,autofocus:B.autofocus,onCompositionstart:o.unref(Be),onCompositionupdate:o.unref(pe),onCompositionend:o.unref(xe),onInput:Z,onChange:ue,onKeydown:Re}),null,16,["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","onCompositionstart","onCompositionupdate","onCompositionend"]),o.createCommentVNode(" suffix slot "),o.unref(le)?(o.openBlock(),o.createElementBlock("span",{key:1,class:o.normalizeClass(o.unref(g).e("suffix"))},[o.createElementVNode("span",{class:o.normalizeClass(o.unref(g).e("suffix-inner"))},[!o.unref(z)||!o.unref(G)||!o.unref(q)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.renderSlot(B.$slots,"suffix"),B.suffixIcon?(o.openBlock(),o.createBlock(o.unref(_n),{key:0,class:o.normalizeClass(o.unref(g).e("icon"))},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(B.suffixIcon)))]),_:1},8,["class"])):o.createCommentVNode("v-if",!0)],64)):o.createCommentVNode("v-if",!0),o.unref(z)?(o.openBlock(),o.createBlock(o.unref(_n),{key:1,class:o.normalizeClass([o.unref(g).e("icon"),o.unref(g).e("clear")]),onMousedown:o.withModifiers(o.unref(dc),["prevent"]),onClick:ze},{default:o.withCtx(()=>[o.createVNode(o.unref(D0))]),_:1},8,["class","onMousedown"])):o.createCommentVNode("v-if",!0),o.unref(G)?(o.openBlock(),o.createBlock(o.unref(_n),{key:2,class:o.normalizeClass([o.unref(g).e("icon"),o.unref(g).e("password")]),onClick:ge},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(o.unref(D))))]),_:1},8,["class"])):o.createCommentVNode("v-if",!0),o.unref(q)?(o.openBlock(),o.createElementBlock("span",{key:3,class:o.normalizeClass(o.unref(g).e("count"))},[o.createElementVNode("span",{class:o.normalizeClass(o.unref(g).e("count-inner"))},o.toDisplayString(o.unref(X))+" / "+o.toDisplayString(B.maxlength),3)],2)):o.createCommentVNode("v-if",!0),o.unref(F)&&o.unref($)&&o.unref(N)?(o.openBlock(),o.createBlock(o.unref(_n),{key:4,class:o.normalizeClass([o.unref(g).e("icon"),o.unref(g).e("validateIcon"),o.unref(g).is("loading",o.unref(F)==="validating")])},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(o.unref($))))]),_:1},8,["class"])):o.createCommentVNode("v-if",!0)],2)],2)):o.createCommentVNode("v-if",!0)],2),o.createCommentVNode(" append slot "),B.$slots.append?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(o.unref(g).be("group","append"))},[o.renderSlot(B.$slots,"append")],2)):o.createCommentVNode("v-if",!0)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createCommentVNode(" textarea "),o.createElementVNode("textarea",o.mergeProps({id:o.unref(h),ref_key:"textarea",ref:b,class:[o.unref(v).e("inner"),o.unref(g).is("focus",o.unref(_))]},o.unref(c),{minlength:B.minlength,maxlength:B.maxlength,tabindex:B.tabindex,disabled:o.unref(p),readonly:B.readonly,autocomplete:B.autocomplete,style:o.unref(V),"aria-label":B.ariaLabel,placeholder:B.placeholder,form:B.form,autofocus:B.autofocus,rows:B.rows,onCompositionstart:o.unref(Be),onCompositionupdate:o.unref(pe),onCompositionend:o.unref(xe),onInput:Z,onFocus:o.unref(O),onBlur:o.unref(T),onChange:ue,onKeydown:Re}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),o.unref(q)?(o.openBlock(),o.createElementBlock("span",{key:0,style:o.normalizeStyle(k.value),class:o.normalizeClass(o.unref(g).e("count"))},o.toDisplayString(o.unref(X))+" / "+o.toDisplayString(B.maxlength),7)):o.createCommentVNode("v-if",!0)],64))],16,["role"]))}});var tJ=Ge(eJ,[["__file","input.vue"]]);const xf=ln(tJ),As=4,nJ={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"}},rJ=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),Q0=Symbol("scrollbarContextKey"),oJ=ct({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),aJ="Thumb";var mE=Ge(o.defineComponent({__name:"thumb",props:oJ,setup(e){const t=e,n=o.inject(Q0),r=Ye("scrollbar");n||_X(aJ,"can not inject scrollbar context");const a=o.ref(),i=o.ref(),s=o.ref({}),l=o.ref(!1);let d=!1,c=!1,u=qt?document.onselectstart:null;const f=o.computed(()=>nJ[t.vertical?"vertical":"horizontal"]),h=o.computed(()=>rJ({size:t.size,move:t.move,bar:f.value})),m=o.computed(()=>a.value[f.value.offset]**2/n.wrapElement[f.value.scrollSize]/t.ratio/i.value[f.value.offset]),p=C=>{var E;if(C.stopPropagation(),C.ctrlKey||[1,2].includes(C.button))return;(E=window.getSelection())==null||E.removeAllRanges(),v(C);const S=C.currentTarget;S&&(s.value[f.value.axis]=S[f.value.offset]-(C[f.value.client]-S.getBoundingClientRect()[f.value.direction]))},g=C=>{if(!i.value||!a.value||!n.wrapElement)return;const E=Math.abs(C.target.getBoundingClientRect()[f.value.direction]-C[f.value.client]),S=i.value[f.value.offset]/2,_=(E-S)*100*m.value/a.value[f.value.offset];n.wrapElement[f.value.scroll]=_*n.wrapElement[f.value.scrollSize]/100},v=C=>{C.stopImmediatePropagation(),d=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",b),u=document.onselectstart,document.onselectstart=()=>!1},y=C=>{if(!a.value||!i.value||d===!1)return;const E=s.value[f.value.axis];if(!E)return;const S=(a.value.getBoundingClientRect()[f.value.direction]-C[f.value.client])*-1,_=i.value[f.value.offset]-E,O=(S-_)*100*m.value/a.value[f.value.offset];n.wrapElement[f.value.scroll]=O*n.wrapElement[f.value.scrollSize]/100},b=()=>{d=!1,s.value[f.value.axis]=0,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",b),k(),c&&(l.value=!1)},x=()=>{c=!1,l.value=!!t.size},w=()=>{c=!0,l.value=d};o.onBeforeUnmount(()=>{k(),document.removeEventListener("mouseup",b)});const k=()=>{document.onselectstart!==u&&(document.onselectstart=u)};return _r(o.toRef(n,"scrollbarElement"),"mousemove",x),_r(o.toRef(n,"scrollbarElement"),"mouseleave",w),(C,E)=>(o.openBlock(),o.createBlock(o.Transition,{name:o.unref(r).b("fade"),persisted:""},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",{ref_key:"instance",ref:a,class:o.normalizeClass([o.unref(r).e("bar"),o.unref(r).is(o.unref(f).key)]),onMousedown:g},[o.createElementVNode("div",{ref_key:"thumb",ref:i,class:o.normalizeClass(o.unref(r).e("thumb")),style:o.normalizeStyle(o.unref(h)),onMousedown:p},null,38)],34),[[o.vShow,C.always||l.value]])]),_:1},8,["name"]))}}),[["__file","thumb.vue"]]);const iJ=ct({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}});var sJ=Ge(o.defineComponent({__name:"bar",props:iJ,setup(e,{expose:t}){const n=e,r=o.inject(Q0),a=o.ref(0),i=o.ref(0),s=o.ref(""),l=o.ref(""),d=o.ref(1),c=o.ref(1);return t({handleScroll:u=>{if(u){const f=u.offsetHeight-As,h=u.offsetWidth-As;i.value=u.scrollTop*100/f*d.value,a.value=u.scrollLeft*100/h*c.value}},update:()=>{const u=r==null?void 0:r.wrapElement;if(!u)return;const f=u.offsetHeight-As,h=u.offsetWidth-As,m=f**2/u.scrollHeight,p=h**2/u.scrollWidth,g=Math.max(m,n.minSize),v=Math.max(p,n.minSize);d.value=m/(f-m)/(g/(f-g)),c.value=p/(h-p)/(v/(h-v)),l.value=g+As(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(mE,{move:a.value,ratio:c.value,size:s.value,always:u.always},null,8,["move","ratio","size","always"]),o.createVNode(mE,{move:i.value,ratio:d.value,size:l.value,vertical:"",always:u.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","bar.vue"]]);const lJ=ct({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:je([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,...Sa(["ariaLabel","ariaOrientation"])}),cJ={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(pn)},eg="ElScrollbar",dJ=o.defineComponent({name:eg}),uJ=o.defineComponent({...dJ,props:lJ,emits:cJ,setup(e,{expose:t,emit:n}){const r=e,a=Ye("scrollbar");let i,s,l=0,d=0;const c=o.ref(),u=o.ref(),f=o.ref(),h=o.ref(),m=o.computed(()=>{const k={};return r.height&&(k.height=Ss(r.height)),r.maxHeight&&(k.maxHeight=Ss(r.maxHeight)),[r.wrapStyle,k]}),p=o.computed(()=>[r.wrapClass,a.e("wrap"),{[a.em("wrap","hidden-default")]:!r.native}]),g=o.computed(()=>[a.e("view"),r.viewClass]),v=()=>{var k;u.value&&((k=h.value)==null||k.handleScroll(u.value),l=u.value.scrollTop,d=u.value.scrollLeft,n("scroll",{scrollTop:u.value.scrollTop,scrollLeft:u.value.scrollLeft}))};function y(k,C){fn(k)?u.value.scrollTo(k):pn(k)&&pn(C)&&u.value.scrollTo(k,C)}const b=k=>{if(!pn(k)){Wt(eg,"value must be a number");return}u.value.scrollTop=k},x=k=>{if(!pn(k)){Wt(eg,"value must be a number");return}u.value.scrollLeft=k},w=()=>{var k;(k=h.value)==null||k.update()};return o.watch(()=>r.noresize,k=>{k?(i==null||i(),s==null||s()):({stop:i}=Lo(f,w),s=_r("resize",w))},{immediate:!0}),o.watch(()=>[r.maxHeight,r.height],()=>{r.native||o.nextTick(()=>{var k;w(),u.value&&((k=h.value)==null||k.handleScroll(u.value))})}),o.provide(Q0,o.reactive({scrollbarElement:c,wrapElement:u})),o.onActivated(()=>{u.value&&(u.value.scrollTop=l,u.value.scrollLeft=d)}),o.onMounted(()=>{r.native||o.nextTick(()=>{w()})}),o.onUpdated(()=>w()),t({wrapRef:u,update:w,scrollTo:y,setScrollTop:b,setScrollLeft:x,handleScroll:v}),(k,C)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"scrollbarRef",ref:c,class:o.normalizeClass(o.unref(a).b())},[o.createElementVNode("div",{ref_key:"wrapRef",ref:u,class:o.normalizeClass(o.unref(p)),style:o.normalizeStyle(o.unref(m)),tabindex:k.tabindex,onScroll:v},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(k.tag),{id:k.id,ref_key:"resizeRef",ref:f,class:o.normalizeClass(o.unref(g)),style:o.normalizeStyle(k.viewStyle),role:k.role,"aria-label":k.ariaLabel,"aria-orientation":k.ariaOrientation},{default:o.withCtx(()=>[o.renderSlot(k.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),k.native?o.createCommentVNode("v-if",!0):(o.openBlock(),o.createBlock(sJ,{key:0,ref_key:"barRef",ref:h,always:k.always,"min-size":k.minSize},null,8,["always","min-size"]))],2))}});var fJ=Ge(uJ,[["__file","scrollbar.vue"]]);const pJ=ln(fJ),tg=Symbol("popper"),gE=Symbol("popperContent"),hJ=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],yE=ct({role:{type:String,values:hJ,default:"tooltip"}}),mJ=o.defineComponent({name:"ElPopper",inheritAttrs:!1}),gJ=o.defineComponent({...mJ,props:yE,setup(e,{expose:t}){const n=e,r=o.ref(),a=o.ref(),i=o.ref(),s=o.ref(),l=o.computed(()=>n.role),d={triggerRef:r,popperInstanceRef:a,contentRef:i,referenceRef:s,role:l};return t(d),o.provide(tg,d),(c,u)=>o.renderSlot(c.$slots,"default")}});var yJ=Ge(gJ,[["__file","popper.vue"]]);const vE=ct({arrowOffset:{type:Number,default:5}}),vJ=o.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),bJ=o.defineComponent({...vJ,props:vE,setup(e,{expose:t}){const n=e,r=Ye("popper"),{arrowOffset:a,arrowRef:i,arrowStyle:s}=o.inject(gE,void 0);return o.watch(()=>n.arrowOffset,l=>{a.value=l}),o.onBeforeUnmount(()=>{i.value=void 0}),t({arrowRef:i}),(l,d)=>(o.openBlock(),o.createElementBlock("span",{ref_key:"arrowRef",ref:i,class:o.normalizeClass(o.unref(r).e("arrow")),style:o.normalizeStyle(o.unref(s)),"data-popper-arrow":""},null,6))}});var wJ=Ge(bJ,[["__file","arrow.vue"]]);const ng="ElOnlyChild",xJ=o.defineComponent({name:ng,setup(e,{slots:t,attrs:n}){var r;const a=o.inject(rE),i=$Z((r=a==null?void 0:a.setForwardRef)!=null?r:dc);return()=>{var s;const l=(s=t.default)==null?void 0:s.call(t,n);if(!l)return null;if(l.length>1)return Wt(ng,"requires exact only one valid child."),null;const d=bE(l);return d?o.withDirectives(o.cloneVNode(d,n),[[i]]):(Wt(ng,"no valid child node found"),null)}}});function bE(e){if(!e)return null;const t=e;for(const n of t){if(fn(n))switch(n.type){case o.Comment:continue;case o.Text:case"svg":return wE(n);case o.Fragment:return bE(n.children);default:return n}return wE(n)}return null}function wE(e){const t=Ye("only-child");return o.createVNode("span",{class:t.e("content")},[e])}const xE=ct({virtualRef:{type:je(Object)},virtualTriggering:Boolean,onMouseenter:{type:je(Function)},onMouseleave:{type:je(Function)},onClick:{type:je(Function)},onKeydown:{type:je(Function)},onFocus:{type:je(Function)},onBlur:{type:je(Function)},onContextmenu:{type:je(Function)},id:String,open:Boolean}),CJ=o.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),kJ=o.defineComponent({...CJ,props:xE,setup(e,{expose:t}){const n=e,{role:r,triggerRef:a}=o.inject(tg,void 0);PZ(a);const i=o.computed(()=>l.value?n.id:void 0),s=o.computed(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),l=o.computed(()=>{if(r&&r.value!=="tooltip")return r.value}),d=o.computed(()=>l.value?`${n.open}`:void 0);let c;const u=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return o.onMounted(()=>{o.watch(()=>n.virtualRef,f=>{f&&(a.value=Ro(f))},{immediate:!0}),o.watch(a,(f,h)=>{c==null||c(),c=void 0,yi(f)&&(u.forEach(m=>{var p;const g=n[m];g&&(f.addEventListener(m.slice(2).toLowerCase(),g),(p=h==null?void 0:h.removeEventListener)==null||p.call(h,m.slice(2).toLowerCase(),g))}),c=o.watch([i,s,l,d],m=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((p,g)=>{xa(m[g])?f.removeAttribute(p):f.setAttribute(p,m[g])})},{immediate:!0})),yi(h)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(m=>h.removeAttribute(m))},{immediate:!0})}),o.onBeforeUnmount(()=>{if(c==null||c(),c=void 0,a.value&&yi(a.value)){const f=a.value;u.forEach(h=>{const m=n[h];m&&f.removeEventListener(h.slice(2).toLowerCase(),m)}),a.value=void 0}}),t({triggerRef:a}),(f,h)=>f.virtualTriggering?o.createCommentVNode("v-if",!0):(o.openBlock(),o.createBlock(o.unref(xJ),o.mergeProps({key:0},f.$attrs,{"aria-controls":o.unref(i),"aria-describedby":o.unref(s),"aria-expanded":o.unref(d),"aria-haspopup":o.unref(l)}),{default:o.withCtx(()=>[o.renderSlot(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var EJ=Ge(kJ,[["__file","trigger.vue"]]);const rg="focus-trap.focus-after-trapped",og="focus-trap.focus-after-released",SJ="focus-trap.focusout-prevented",CE={cancelable:!0,bubbles:!1},_J={cancelable:!0,bubbles:!1},kE="focusAfterTrapped",EE="focusAfterReleased",BJ=Symbol("elFocusTrap"),ag=o.ref(),Cf=o.ref(0),ig=o.ref(0);let kf=0;const SE=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},_E=(e,t)=>{for(const n of e)if(!TJ(n,t))return n},TJ=(e,t)=>{if(process.env.NODE_ENV==="test")return!1;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},NJ=e=>{const t=SE(e),n=_E(t,e),r=_E(t.reverse(),e);return[n,r]},OJ=e=>e instanceof HTMLInputElement&&"select"in e,_a=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),ig.value=window.performance.now(),e!==n&&OJ(e)&&t&&e.select()}};function BE(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const PJ=()=>{let e=[];return{push:t=>{const n=e[0];n&&t!==n&&n.pause(),e=BE(e,t),e.unshift(t)},remove:t=>{var n,r;e=BE(e,t),(r=(n=e[0])==null?void 0:n.resume)==null||r.call(n)}}},$J=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(_a(r,t),document.activeElement!==n)return},TE=PJ(),FJ=()=>Cf.value>ig.value,Ef=()=>{ag.value="pointer",Cf.value=window.performance.now()},NE=()=>{ag.value="keyboard",Cf.value=window.performance.now()},AJ=()=>(o.onMounted(()=>{kf===0&&(document.addEventListener("mousedown",Ef),document.addEventListener("touchstart",Ef),document.addEventListener("keydown",NE)),kf++}),o.onBeforeUnmount(()=>{kf--,kf<=0&&(document.removeEventListener("mousedown",Ef),document.removeEventListener("touchstart",Ef),document.removeEventListener("keydown",NE))}),{focusReason:ag,lastUserFocusTimestamp:Cf,lastAutomatedFocusTimestamp:ig}),Sf=e=>new CustomEvent(SJ,{..._J,detail:e}),IJ=o.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[kE,EE,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=o.ref();let r,a;const{focusReason:i}=AJ();_Z(p=>{e.trapped&&!s.paused&&t("release-requested",p)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=p=>{if(!e.loop&&!e.trapped||s.paused)return;const{key:g,altKey:v,ctrlKey:y,metaKey:b,currentTarget:x,shiftKey:w}=p,{loop:k}=e,C=g===tn.tab&&!v&&!y&&!b,E=document.activeElement;if(C&&E){const S=x,[_,O]=NJ(S);if(_&&O){if(!w&&E===O){const T=Sf({focusReason:i.value});t("focusout-prevented",T),T.defaultPrevented||(p.preventDefault(),k&&_a(_,!0))}else if(w&&[_,S].includes(E)){const T=Sf({focusReason:i.value});t("focusout-prevented",T),T.defaultPrevented||(p.preventDefault(),k&&_a(O,!0))}}else if(E===S){const T=Sf({focusReason:i.value});t("focusout-prevented",T),T.defaultPrevented||p.preventDefault()}}};o.provide(BJ,{focusTrapRef:n,onKeydown:l}),o.watch(()=>e.focusTrapEl,p=>{p&&(n.value=p)},{immediate:!0}),o.watch([n],([p],[g])=>{p&&(p.addEventListener("keydown",l),p.addEventListener("focusin",u),p.addEventListener("focusout",f)),g&&(g.removeEventListener("keydown",l),g.removeEventListener("focusin",u),g.removeEventListener("focusout",f))});const d=p=>{t(kE,p)},c=p=>t(EE,p),u=p=>{const g=o.unref(n);if(!g)return;const v=p.target,y=p.relatedTarget,b=v&&g.contains(v);e.trapped||y&&g.contains(y)||(r=y),b&&t("focusin",p),!s.paused&&e.trapped&&(b?a=v:_a(a,!0))},f=p=>{const g=o.unref(n);if(!(s.paused||!g))if(e.trapped){const v=p.relatedTarget;!xa(v)&&!g.contains(v)&&setTimeout(()=>{if(!s.paused&&e.trapped){const y=Sf({focusReason:i.value});t("focusout-prevented",y),y.defaultPrevented||_a(a,!0)}},0)}else{const v=p.target;v&&g.contains(v)||t("focusout",p)}};async function h(){await o.nextTick();const p=o.unref(n);if(p){TE.push(s);const g=p.contains(document.activeElement)?r:document.activeElement;if(r=g,!p.contains(g)){const v=new Event(rg,CE);p.addEventListener(rg,d),p.dispatchEvent(v),v.defaultPrevented||o.nextTick(()=>{let y=e.focusStartEl;Sn(y)||(_a(y),document.activeElement!==y&&(y="first")),y==="first"&&$J(SE(p),!0),(document.activeElement===g||y==="container")&&_a(p)})}}}function m(){const p=o.unref(n);if(p){p.removeEventListener(rg,d);const g=new CustomEvent(og,{...CE,detail:{focusReason:i.value}});p.addEventListener(og,c),p.dispatchEvent(g),!g.defaultPrevented&&(i.value=="keyboard"||!FJ()||p.contains(document.activeElement))&&_a(r??document.body),p.removeEventListener(og,c),TE.remove(s)}}return o.onMounted(()=>{e.trapped&&h(),o.watch(()=>e.trapped,p=>{p?h():m()})}),o.onBeforeUnmount(()=>{e.trapped&&m(),n.value&&(n.value.removeEventListener("keydown",l),n.value.removeEventListener("focusin",u),n.value.removeEventListener("focusout",f),n.value=void 0)}),{onKeydown:l}}});function DJ(e,t,n,r,a,i){return o.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var VJ=Ge(IJ,[["render",DJ],["__file","focus-trap.vue"]]);const RJ=["fixed","absolute"],LJ=ct({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:je(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:hf,default:"bottom"},popperOptions:{type:je(Object),default:()=>({})},strategy:{type:String,values:RJ,default:"absolute"}}),OE=ct({...LJ,id:String,style:{type:je([String,Array,Object])},className:{type:je([String,Array,Object])},effect:{type:je(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:je([String,Array,Object])},popperStyle:{type:je([String,Array,Object])},referenceEl:{type:je(Object)},triggerTargetEl:{type:je(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...Sa(["ariaLabel"])}),MJ={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},zJ=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:a}=e,i={placement:n,strategy:r,...a,modifiers:[...HJ(e),...t]};return UJ(i,a==null?void 0:a.modifiers),i},jJ=e=>{if(qt)return Ro(e)};function HJ(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,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 UJ(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const qJ=0,WJ=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:a}=o.inject(tg,void 0),i=o.ref(),s=o.ref(),l=o.computed(()=>({name:"eventListeners",enabled:!!e.visible})),d=o.computed(()=>{var y;const b=o.unref(i),x=(y=o.unref(s))!=null?y:qJ;return{name:"arrow",enabled:!wX(b),options:{element:b,padding:x}}}),c=o.computed(()=>({onFirstUpdate:()=>{p()},...zJ(e,[o.unref(d),o.unref(l)])})),u=o.computed(()=>jJ(e.referenceEl)||o.unref(r)),{attributes:f,state:h,styles:m,update:p,forceUpdate:g,instanceRef:v}=kZ(u,n,c);return o.watch(v,y=>t.value=y),o.onMounted(()=>{o.watch(()=>{var y;return(y=o.unref(u))==null?void 0:y.getBoundingClientRect()},()=>{p()})}),{attributes:f,arrowRef:i,contentRef:n,instanceRef:v,state:h,styles:m,role:a,forceUpdate:g,update:p}},KJ=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:a}=cE(),i=Ye("popper"),s=o.computed(()=>o.unref(t).popper),l=o.ref(pn(e.zIndex)?e.zIndex:a()),d=o.computed(()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass]),c=o.computed(()=>[{zIndex:o.unref(l)},o.unref(n).popper,e.popperStyle||{}]),u=o.computed(()=>r.value==="dialog"?"false":void 0),f=o.computed(()=>o.unref(n).arrow||{});return{ariaModal:u,arrowStyle:f,contentAttrs:s,contentClass:d,contentStyle:c,contentZIndex:l,updateZIndex:()=>{l.value=pn(e.zIndex)?e.zIndex:a()}}},GJ=(e,t)=>{const n=o.ref(!1),r=o.ref();return{focusStartRef:r,trapped:n,onFocusAfterReleased:a=>{var i;((i=a.detail)==null?void 0:i.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:a=>{e.visible&&!n.value&&(a.target&&(r.value=a.target),n.value=!0)},onFocusoutPrevented:a=>{e.trapping||(a.detail.focusReason==="pointer"&&a.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},XJ=o.defineComponent({name:"ElPopperContent"}),YJ=o.defineComponent({...XJ,props:OE,emits:MJ,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:a,trapped:i,onFocusAfterReleased:s,onFocusAfterTrapped:l,onFocusInTrap:d,onFocusoutPrevented:c,onReleaseRequested:u}=GJ(r,n),{attributes:f,arrowRef:h,contentRef:m,styles:p,instanceRef:g,role:v,update:y}=WJ(r),{ariaModal:b,arrowStyle:x,contentAttrs:w,contentClass:k,contentStyle:C,updateZIndex:E}=KJ(r,{styles:p,attributes:f,role:v}),S=o.inject(Sc,void 0),_=o.ref();o.provide(gE,{arrowStyle:x,arrowRef:h,arrowOffset:_}),S&&o.provide(Sc,{...S,addInputId:dc,removeInputId:dc});let O;const T=(F=!0)=>{y(),F&&E()},N=()=>{T(!1),r.visible&&r.focusOnShow?i.value=!0:r.visible===!1&&(i.value=!1)};return o.onMounted(()=>{o.watch(()=>r.triggerTargetEl,(F,$)=>{O==null||O(),O=void 0;const D=o.unref(F||m.value),P=o.unref($||m.value);yi(D)&&(O=o.watch([v,()=>r.ariaLabel,b,()=>r.id],V=>{["role","aria-label","aria-modal","id"].forEach((I,z)=>{xa(V[z])?D.removeAttribute(I):D.setAttribute(I,V[z])})},{immediate:!0})),P!==D&&yi(P)&&["role","aria-label","aria-modal","id"].forEach(V=>{P.removeAttribute(V)})},{immediate:!0}),o.watch(()=>r.visible,N,{immediate:!0})}),o.onBeforeUnmount(()=>{O==null||O(),O=void 0}),t({popperContentRef:m,popperInstanceRef:g,updatePopper:T,contentStyle:C}),(F,$)=>(o.openBlock(),o.createElementBlock("div",o.mergeProps({ref_key:"contentRef",ref:m},o.unref(w),{style:o.unref(C),class:o.unref(k),tabindex:"-1",onMouseenter:D=>F.$emit("mouseenter",D),onMouseleave:D=>F.$emit("mouseleave",D)}),[o.createVNode(o.unref(VJ),{trapped:o.unref(i),"trap-on-focus-in":!0,"focus-trap-el":o.unref(m),"focus-start-el":o.unref(a),onFocusAfterTrapped:o.unref(l),onFocusAfterReleased:o.unref(s),onFocusin:o.unref(d),onFocusoutPrevented:o.unref(c),onReleaseRequested:o.unref(u)},{default:o.withCtx(()=>[o.renderSlot(F.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var ZJ=Ge(YJ,[["__file","content.vue"]]);const JJ=ln(yJ),sg=Symbol("elTooltip"),Qn=ct({...NZ,...OE,appendTo:{type:je([String,Object])},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:je(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...Sa(["ariaLabel"])}),Tc=ct({...xE,disabled:Boolean,trigger:{type:je([String,Array]),default:"hover"},triggerKeys:{type:je(Array),default:()=>[tn.enter,tn.space]}}),{useModelToggleProps:QJ,useModelToggleEmits:eQ,useModelToggle:tQ}=wY("visible"),nQ=ct({...yE,...QJ,...Qn,...Tc,...vE,showArrow:{type:Boolean,default:!0}}),rQ=[...eQ,"before-show","before-hide","show","hide","open","close"],oQ=(e,t)=>Yn(e)?e.includes(t):e===t,Is=(e,t,n)=>r=>{oQ(o.unref(e),t)&&n(r)},aQ=o.defineComponent({name:"ElTooltipTrigger"}),iQ=o.defineComponent({...aQ,props:Tc,setup(e,{expose:t}){const n=e,r=Ye("tooltip"),{controlled:a,id:i,open:s,onOpen:l,onClose:d,onToggle:c}=o.inject(sg,void 0),u=o.ref(null),f=()=>{if(o.unref(a)||n.disabled)return!0},h=o.toRef(n,"trigger"),m=Vo(f,Is(h,"hover",l)),p=Vo(f,Is(h,"hover",d)),g=Vo(f,Is(h,"click",w=>{w.button===0&&c(w)})),v=Vo(f,Is(h,"focus",l)),y=Vo(f,Is(h,"focus",d)),b=Vo(f,Is(h,"contextmenu",w=>{w.preventDefault(),c(w)})),x=Vo(f,w=>{const{code:k}=w;n.triggerKeys.includes(k)&&(w.preventDefault(),c(w))});return t({triggerRef:u}),(w,k)=>(o.openBlock(),o.createBlock(o.unref(EJ),{id:o.unref(i),"virtual-ref":w.virtualRef,open:o.unref(s),"virtual-triggering":w.virtualTriggering,class:o.normalizeClass(o.unref(r).e("trigger")),onBlur:o.unref(y),onClick:o.unref(g),onContextmenu:o.unref(b),onFocus:o.unref(v),onMouseenter:o.unref(m),onMouseleave:o.unref(p),onKeydown:o.unref(x)},{default:o.withCtx(()=>[o.renderSlot(w.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var sQ=Ge(iQ,[["__file","trigger.vue"]]);const lQ=ct({to:{type:je([String,Object]),required:!0},disabled:Boolean});var cQ=Ge(o.defineComponent({__name:"teleport",props:lQ,setup(e){return(t,n)=>t.disabled?o.renderSlot(t.$slots,"default",{key:0}):(o.openBlock(),o.createBlock(o.Teleport,{key:1,to:t.to},[o.renderSlot(t.$slots,"default")],8,["to"]))}}),[["__file","teleport.vue"]]);const dQ=ln(cQ),uQ=o.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),fQ=o.defineComponent({...uQ,props:Qn,setup(e,{expose:t}){const n=e,{selector:r}=nE(),a=Ye("tooltip"),i=o.ref(null);let s;const{controlled:l,id:d,open:c,trigger:u,onClose:f,onOpen:h,onShow:m,onHide:p,onBeforeShow:g,onBeforeHide:v}=o.inject(sg,void 0),y=o.computed(()=>n.transition||`${a.namespace.value}-fade-in-linear`),b=o.computed(()=>process.env.NODE_ENV==="test"?!0:n.persistent);o.onBeforeUnmount(()=>{s==null||s()});const x=o.computed(()=>o.unref(b)?!0:o.unref(c)),w=o.computed(()=>n.disabled?!1:o.unref(c)),k=o.computed(()=>n.appendTo||r.value),C=o.computed(()=>{var P;return(P=n.style)!=null?P:{}}),E=o.ref(!0),S=()=>{p(),E.value=!0},_=()=>{if(o.unref(l))return!0},O=Vo(_,()=>{n.enterable&&o.unref(u)==="hover"&&h()}),T=Vo(_,()=>{o.unref(u)==="hover"&&f()}),N=()=>{var P,V;(V=(P=i.value)==null?void 0:P.updatePopper)==null||V.call(P),g==null||g()},F=()=>{v==null||v()},$=()=>{m(),s=hq(o.computed(()=>{var P;return(P=i.value)==null?void 0:P.popperContentRef}),()=>{o.unref(l)||o.unref(u)!=="hover"&&f()})},D=()=>{n.virtualTriggering||f()};return o.watch(()=>o.unref(c),P=>{P?E.value=!1:s==null||s()},{flush:"post"}),o.watch(()=>n.content,()=>{var P,V;(V=(P=i.value)==null?void 0:P.updatePopper)==null||V.call(P)}),t({contentRef:i}),(P,V)=>(o.openBlock(),o.createBlock(o.unref(dQ),{disabled:!P.teleported,to:o.unref(k)},{default:o.withCtx(()=>[o.createVNode(o.Transition,{name:o.unref(y),onAfterLeave:S,onBeforeEnter:N,onAfterEnter:$,onBeforeLeave:F},{default:o.withCtx(()=>[o.unref(x)?o.withDirectives((o.openBlock(),o.createBlock(o.unref(ZJ),o.mergeProps({key:0,id:o.unref(d),ref_key:"contentRef",ref:i},P.$attrs,{"aria-label":P.ariaLabel,"aria-hidden":E.value,"boundaries-padding":P.boundariesPadding,"fallback-placements":P.fallbackPlacements,"gpu-acceleration":P.gpuAcceleration,offset:P.offset,placement:P.placement,"popper-options":P.popperOptions,strategy:P.strategy,effect:P.effect,enterable:P.enterable,pure:P.pure,"popper-class":P.popperClass,"popper-style":[P.popperStyle,o.unref(C)],"reference-el":P.referenceEl,"trigger-target-el":P.triggerTargetEl,visible:o.unref(w),"z-index":P.zIndex,onMouseenter:o.unref(O),onMouseleave:o.unref(T),onBlur:D,onClose:o.unref(f)}),{default:o.withCtx(()=>[o.renderSlot(P.$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"])),[[o.vShow,o.unref(w)]]):o.createCommentVNode("v-if",!0)]),_:3},8,["name"])]),_:3},8,["disabled","to"]))}});var pQ=Ge(fQ,[["__file","content.vue"]]);const hQ=o.defineComponent({name:"ElTooltip"}),mQ=o.defineComponent({...hQ,props:nQ,emits:rQ,setup(e,{expose:t,emit:n}){const r=e;TZ();const a=bf(),i=o.ref(),s=o.ref(),l=()=>{var y;const b=o.unref(i);b&&((y=b.popperInstanceRef)==null||y.update())},d=o.ref(!1),c=o.ref(),{show:u,hide:f,hasUpdateHandler:h}=tQ({indicator:d,toggleReason:c}),{onOpen:m,onClose:p}=OZ({showAfter:o.toRef(r,"showAfter"),hideAfter:o.toRef(r,"hideAfter"),autoClose:o.toRef(r,"autoClose"),open:u,close:f}),g=o.computed(()=>Es(r.visible)&&!h.value);o.provide(sg,{controlled:g,id:a,open:o.readonly(d),trigger:o.toRef(r,"trigger"),onOpen:y=>{m(y)},onClose:y=>{p(y)},onToggle:y=>{o.unref(d)?p(y):m(y)},onShow:()=>{n("show",c.value)},onHide:()=>{n("hide",c.value)},onBeforeShow:()=>{n("before-show",c.value)},onBeforeHide:()=>{n("before-hide",c.value)},updatePopper:l}),o.watch(()=>r.disabled,y=>{y&&d.value&&(d.value=!1)});const v=y=>{var b,x;const w=(x=(b=s.value)==null?void 0:b.contentRef)==null?void 0:x.popperContentRef,k=(y==null?void 0:y.relatedTarget)||document.activeElement;return w&&w.contains(k)};return o.onDeactivated(()=>d.value&&f()),t({popperRef:i,contentRef:s,isFocusInsideContent:v,updatePopper:l,onOpen:m,onClose:p,hide:f}),(y,b)=>(o.openBlock(),o.createBlock(o.unref(JJ),{ref_key:"popperRef",ref:i,role:y.role},{default:o.withCtx(()=>[o.createVNode(sQ,{disabled:y.disabled,trigger:y.trigger,"trigger-keys":y.triggerKeys,"virtual-ref":y.virtualRef,"virtual-triggering":y.virtualTriggering},{default:o.withCtx(()=>[y.$slots.default?o.renderSlot(y.$slots,"default",{key:0}):o.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),o.createVNode(pQ,{ref_key:"contentRef",ref:s,"aria-label":y.ariaLabel,"boundaries-padding":y.boundariesPadding,content:y.content,disabled:y.disabled,effect:y.effect,enterable:y.enterable,"fallback-placements":y.fallbackPlacements,"hide-after":y.hideAfter,"gpu-acceleration":y.gpuAcceleration,offset:y.offset,persistent:y.persistent,"popper-class":y.popperClass,"popper-style":y.popperStyle,placement:y.placement,"popper-options":y.popperOptions,pure:y.pure,"raw-content":y.rawContent,"reference-el":y.referenceEl,"trigger-target-el":y.triggerTargetEl,"show-after":y.showAfter,strategy:y.strategy,teleported:y.teleported,transition:y.transition,"virtual-triggering":y.virtualTriggering,"z-index":y.zIndex,"append-to":y.appendTo},{default:o.withCtx(()=>[o.renderSlot(y.$slots,"content",{},()=>[y.rawContent?(o.openBlock(),o.createElementBlock("span",{key:0,innerHTML:y.content},null,8,["innerHTML"])):(o.openBlock(),o.createElementBlock("span",{key:1},o.toDisplayString(y.content),1))]),y.showArrow?(o.openBlock(),o.createBlock(o.unref(wJ),{key:0,"arrow-offset":y.arrowOffset},null,8,["arrow-offset"])):o.createCommentVNode("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 gQ=Ge(mQ,[["__file","tooltip.vue"]]);const Nc=ln(gQ),PE=Symbol("buttonGroupContextKey"),yQ=(e,t)=>{ff({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},o.computed(()=>e.type==="text"));const n=o.inject(PE,void 0),r=Z0("button"),{form:a}=Ci(),i=xi(o.computed(()=>n==null?void 0:n.size)),s=_c(),l=o.ref(),d=o.useSlots(),c=o.computed(()=>e.type||(n==null?void 0:n.type)||""),u=o.computed(()=>{var m,p,g;return(g=(p=e.autoInsertSpace)!=null?p:(m=r.value)==null?void 0:m.autoInsertSpace)!=null?g:!1}),f=o.computed(()=>e.tag==="button"?{ariaDisabled:s.value||e.loading,disabled:s.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),h=o.computed(()=>{var m;const p=(m=d.default)==null?void 0:m.call(d);if(u.value&&(p==null?void 0:p.length)===1){const g=p[0];if((g==null?void 0:g.type)===o.Text){const v=g.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(v.trim())}}return!1});return{_disabled:s,_size:i,_type:c,_ref:l,_props:f,shouldAddSpace:h,handleClick:m=>{if(s.value||e.loading){m.stopPropagation();return}e.nativeType==="reset"&&(a==null||a.resetFields()),t("click",m)}}},vQ=["default","primary","success","warning","info","danger","text",""],bQ=["button","submit","reset"],lg=ct({size:Fs,disabled:Boolean,type:{type:String,values:vQ,default:""},icon:{type:ka},nativeType:{type:String,values:bQ,default:"button"},loading:Boolean,loadingIcon:{type:ka,default:()=>V0},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:je([String,Object]),default:"button"}}),wQ={click:e=>e instanceof MouseEvent};function mn(e,t){xQ(e)&&(e="100%");var n=CQ(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 _f(e){return Math.min(1,Math.max(0,e))}function xQ(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function CQ(e){return typeof e=="string"&&e.indexOf("%")!==-1}function $E(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Bf(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ki(e){return e.length===1?"0"+e:String(e)}function kQ(e,t,n){return{r:mn(e,255)*255,g:mn(t,255)*255,b:mn(n,255)*255}}function FE(e,t,n){e=mn(e,255),t=mn(t,255),n=mn(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),i=0,s=0,l=(r+a)/2;if(r===a)s=0,i=0;else{var d=r-a;switch(s=l>.5?d/(2-r-a):d/(r+a),r){case e:i=(t-n)/d+(t1&&(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 EQ(e,t,n){var r,a,i;if(e=mn(e,360),t=mn(t,100),n=mn(n,100),t===0)a=n,i=n,r=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=cg(l,s,e+1/3),a=cg(l,s,e),i=cg(l,s,e-1/3)}return{r:r*255,g:a*255,b:i*255}}function AE(e,t,n){e=mn(e,255),t=mn(t,255),n=mn(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),i=0,s=r,l=r-a,d=r===0?0:l/r;if(r===a)i=0;else{switch(r){case e:i=(t-n)/l+(t>16,g:(e&65280)>>8,b:e&255}}var dg={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 NQ(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,i=null,s=!1,l=!1;return typeof e=="string"&&(e=$Q(e)),typeof e=="object"&&(Wo(e.r)&&Wo(e.g)&&Wo(e.b)?(t=kQ(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Wo(e.h)&&Wo(e.s)&&Wo(e.v)?(r=Bf(e.s),a=Bf(e.v),t=SQ(e.h,r,a),s=!0,l="hsv"):Wo(e.h)&&Wo(e.s)&&Wo(e.l)&&(r=Bf(e.s),i=Bf(e.l),t=EQ(e.h,r,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=$E(n),{ok:s,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 OQ="[-\\+]?\\d+%?",PQ="[-\\+]?\\d*\\.\\d+%?",Ba="(?:".concat(PQ,")|(?:").concat(OQ,")"),ug="[\\s|\\(]+(".concat(Ba,")[,|\\s]+(").concat(Ba,")[,|\\s]+(").concat(Ba,")\\s*\\)?"),fg="[\\s|\\(]+(".concat(Ba,")[,|\\s]+(").concat(Ba,")[,|\\s]+(").concat(Ba,")[,|\\s]+(").concat(Ba,")\\s*\\)?"),Yr={CSS_UNIT:new RegExp(Ba),rgb:new RegExp("rgb"+ug),rgba:new RegExp("rgba"+fg),hsl:new RegExp("hsl"+ug),hsla:new RegExp("hsla"+fg),hsv:new RegExp("hsv"+ug),hsva:new RegExp("hsva"+fg),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 $Q(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(dg[e])e=dg[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Yr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Yr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Yr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Yr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Yr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Yr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Yr.hex8.exec(e),n?{r:dr(n[1]),g:dr(n[2]),b:dr(n[3]),a:DE(n[4]),format:t?"name":"hex8"}:(n=Yr.hex6.exec(e),n?{r:dr(n[1]),g:dr(n[2]),b:dr(n[3]),format:t?"name":"hex"}:(n=Yr.hex4.exec(e),n?{r:dr(n[1]+n[1]),g:dr(n[2]+n[2]),b:dr(n[3]+n[3]),a:DE(n[4]+n[4]),format:t?"name":"hex8"}:(n=Yr.hex3.exec(e),n?{r:dr(n[1]+n[1]),g:dr(n[2]+n[2]),b:dr(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Wo(e){return!!Yr.CSS_UNIT.exec(String(e))}var FQ=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=TQ(t)),this.originalInput=t;var a=NQ(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:a.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=a.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,a,i=t.r/255,s=t.g/255,l=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),s<=.03928?r=s/12.92:r=Math.pow((s+.055)/1.055,2.4),l<=.03928?a=l/12.92:a=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=$E(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=AE(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=AE(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=FE(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=FE(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),IE(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),_Q(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(mn(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(mn(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="#"+IE(this.r,this.g,this.b,!1),n=0,r=Object.entries(dg);n=0,i=!n&&a&&(t.startsWith("hex")||t==="name");return i?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=_f(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=_f(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=_f(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=_f(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(),a=new e(t).toRgb(),i=n/100,s={r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b,a:(a.a-r.a)*i+r.a};return new e(s)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),a=360/n,i=[this];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,i.push(new e(r));return i},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,a=n.s,i=n.v,s=[],l=1/t;t--;)s.push(new e({h:r,s:a,v:i})),i=(i+l)%1;return s},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(),a=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a})},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,a=[this],i=360/t,s=1;s{let r={},a=e.color;if(a){const i=a.match(/var\((.*?)\)/);i&&(a=window.getComputedStyle(window.document.documentElement).getPropertyValue(i[1]));const s=new FQ(a),l=e.dark?s.tint(20).toString():Ta(s,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?Ta(s,90):s.tint(90).toString(),"text-color":a,"border-color":e.dark?Ta(s,50):s.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":a,"hover-border-color":a,"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?Ta(s,90):s.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?Ta(s,50):s.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?Ta(s,80):s.tint(80).toString());else{const d=e.dark?Ta(s,30):s.tint(30).toString(),c=s.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":a,"text-color":c,"border-color":a,"hover-bg-color":d,"hover-text-color":c,"hover-border-color":d,"active-bg-color":l,"active-border-color":l}),t.value){const u=e.dark?Ta(s,50):s.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=u,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")]=u}}}return r})}const IQ=o.defineComponent({name:"ElButton"}),DQ=o.defineComponent({...IQ,props:lg,emits:wQ,setup(e,{expose:t,emit:n}){const r=e,a=AQ(r),i=Ye("button"),{_ref:s,_size:l,_type:d,_disabled:c,_props:u,shouldAddSpace:f,handleClick:h}=yQ(r,n),m=o.computed(()=>[i.b(),i.m(d.value),i.m(l.value),i.is("disabled",c.value),i.is("loading",r.loading),i.is("plain",r.plain),i.is("round",r.round),i.is("circle",r.circle),i.is("text",r.text),i.is("link",r.link),i.is("has-bg",r.bg)]);return t({ref:s,size:l,type:d,disabled:c,shouldAddSpace:f}),(p,g)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(p.tag),o.mergeProps({ref_key:"_ref",ref:s},o.unref(u),{class:o.unref(m),style:o.unref(a),onClick:o.unref(h)}),{default:o.withCtx(()=>[p.loading?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[p.$slots.loading?o.renderSlot(p.$slots,"loading",{key:0}):(o.openBlock(),o.createBlock(o.unref(_n),{key:1,class:o.normalizeClass(o.unref(i).is("loading"))},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(p.loadingIcon)))]),_:1},8,["class"]))],64)):p.icon||p.$slots.icon?(o.openBlock(),o.createBlock(o.unref(_n),{key:1},{default:o.withCtx(()=>[p.icon?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(p.icon),{key:0})):o.renderSlot(p.$slots,"icon",{key:1})]),_:3})):o.createCommentVNode("v-if",!0),p.$slots.default?(o.openBlock(),o.createElementBlock("span",{key:2,class:o.normalizeClass({[o.unref(i).em("text","expand")]:o.unref(f)})},[o.renderSlot(p.$slots,"default")],2)):o.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var VQ=Ge(DQ,[["__file","button.vue"]]);const RQ={size:lg.size,type:lg.type},LQ=o.defineComponent({name:"ElButtonGroup"}),MQ=o.defineComponent({...LQ,props:RQ,setup(e){const t=e;o.provide(PE,o.reactive({size:o.toRef(t,"size"),type:o.toRef(t,"type")}));const n=Ye("button");return(r,a)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(o.unref(n).b("group"))},[o.renderSlot(r.$slots,"default")],2))}});var VE=Ge(MQ,[["__file","button-group.vue"]]);const Ei=ln(VQ,{ButtonGroup:VE});Uo(VE);const Na=new Map;if(qt){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of Na.values())for(const{documentHandler:r}of n)r(t,e);e=void 0}})}function RE(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:yi(t.arg)&&n.push(t.arg),function(r,a){const i=t.instance.popperRef,s=r.target,l=a==null?void 0:a.target,d=!t||!t.instance,c=!s||!l,u=e.contains(s)||e.contains(l),f=e===s,h=n.length&&n.some(p=>p==null?void 0:p.contains(s))||n.length&&n.includes(l),m=i&&(i.contains(s)||i.contains(l));d||c||u||f||h||m||t.value(r,a)}}const LE={beforeMount(e,t){Na.has(e)||Na.set(e,[]),Na.get(e).push({documentHandler:RE(e,t),bindingFn:t.value})},updated(e,t){Na.has(e)||Na.set(e,[]);const n=Na.get(e),r=n.findIndex(i=>i.bindingFn===t.oldValue),a={documentHandler:RE(e,t),bindingFn:t.value};r>=0?n.splice(r,1,a):n.push(a)},unmounted(e){Na.delete(e)}},zQ=ct({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:je([String,Object,Array]),default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),jQ=o.defineComponent({name:"ElCard"}),HQ=o.defineComponent({...jQ,props:zQ,setup(e){const t=Ye("card");return(n,r)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass([o.unref(t).b(),o.unref(t).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(o.unref(t).e("header"))},[o.renderSlot(n.$slots,"header",{},()=>[o.createTextVNode(o.toDisplayString(n.header),1)])],2)):o.createCommentVNode("v-if",!0),o.createElementVNode("div",{class:o.normalizeClass([o.unref(t).e("body"),n.bodyClass]),style:o.normalizeStyle(n.bodyStyle)},[o.renderSlot(n.$slots,"default")],6),n.$slots.footer||n.footer?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(o.unref(t).e("footer"))},[o.renderSlot(n.$slots,"footer",{},()=>[o.createTextVNode(o.toDisplayString(n.footer),1)])],2)):o.createCommentVNode("v-if",!0)],2))}});var UQ=Ge(HQ,[["__file","card.vue"]]);ln(UQ);const ME={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:Fs,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...Sa(["ariaControls"])},zE={[hn]:e=>Sn(e)||pn(e)||Es(e),change:e=>Sn(e)||pn(e)||Es(e)},Ds=Symbol("checkboxGroupContextKey"),qQ=({model:e,isChecked:t})=>{const n=o.inject(Ds,void 0),r=o.computed(()=>{var a,i;const s=(a=n==null?void 0:n.max)==null?void 0:a.value,l=(i=n==null?void 0:n.min)==null?void 0:i.value;return!Ca(s)&&e.value.length>=s&&!t.value||!Ca(l)&&e.value.length<=l&&t.value});return{isDisabled:_c(o.computed(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},WQ=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:a,isLabeledByFormItem:i})=>{const s=o.inject(Ds,void 0),{formItem:l}=Ci(),{emit:d}=o.getCurrentInstance();function c(p){var g,v,y,b;return[!0,e.trueValue,e.trueLabel].includes(p)?(v=(g=e.trueValue)!=null?g:e.trueLabel)!=null?v:!0:(b=(y=e.falseValue)!=null?y:e.falseLabel)!=null?b:!1}function u(p,g){d("change",c(p),g)}function f(p){if(n.value)return;const g=p.target;d("change",c(g.checked),p)}async function h(p){n.value||!r.value&&!a.value&&i.value&&(p.composedPath().some(g=>g.tagName==="LABEL")||(t.value=c([!1,e.falseValue,e.falseLabel].includes(t.value)),await o.nextTick(),u(t.value,p)))}const m=o.computed(()=>(s==null?void 0:s.validateEvent)||e.validateEvent);return o.watch(()=>e.modelValue,()=>{m.value&&(l==null||l.validate("change").catch(p=>Wt(p)))}),{handleChange:f,onClickRoot:h}},KQ=e=>{const t=o.ref(!1),{emit:n}=o.getCurrentInstance(),r=o.inject(Ds,void 0),a=o.computed(()=>Ca(r)===!1),i=o.ref(!1),s=o.computed({get(){var l,d;return a.value?(l=r==null?void 0:r.modelValue)==null?void 0:l.value:(d=e.modelValue)!=null?d:t.value},set(l){var d,c;a.value&&Yn(l)?(i.value=((d=r==null?void 0:r.max)==null?void 0:d.value)!==void 0&&l.length>(r==null?void 0:r.max.value)&&l.length>s.value.length,i.value===!1&&((c=r==null?void 0:r.changeEvent)==null||c.call(r,l))):(n(hn,l),t.value=l)}});return{model:s,isGroup:a,isLimitExceeded:i}},GQ=(e,t,{model:n})=>{const r=o.inject(Ds,void 0),a=o.ref(!1),i=o.computed(()=>cf(e.value)?e.label:e.value),s=o.computed(()=>{const u=n.value;return Es(u)?u:Yn(u)?fn(i.value)?u.map(o.toRaw).some(f=>lf(f,i.value)):u.map(o.toRaw).includes(i.value):u!=null?u===e.trueValue||u===e.trueLabel:!!u}),l=xi(o.computed(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value}),{prop:!0}),d=xi(o.computed(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value})),c=o.computed(()=>!!t.default||!cf(i.value));return{checkboxButtonSize:l,isChecked:s,isFocused:a,checkboxSize:d,hasOwnLabel:c,actualValue:i}},jE=(e,t)=>{const{formItem:n}=Ci(),{model:r,isGroup:a,isLimitExceeded:i}=KQ(e),{isFocused:s,isChecked:l,checkboxButtonSize:d,checkboxSize:c,hasOwnLabel:u,actualValue:f}=GQ(e,t,{model:r}),{isDisabled:h}=qQ({model:r,isChecked:l}),{inputId:m,isLabeledByFormItem:p}=Bc(e,{formItemContext:n,disableIdGeneration:u,disableIdManagement:a}),{handleChange:g,onClickRoot:v}=WQ(e,{model:r,isLimitExceeded:i,hasOwnLabel:u,isDisabled:h,isLabeledByFormItem:p});return(()=>{function y(){var b,x;Yn(r.value)&&!r.value.includes(f.value)?r.value.push(f.value):r.value=(x=(b=e.trueValue)!=null?b:e.trueLabel)!=null?x:!0}e.checked&&y()})(),ff({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},o.computed(()=>a.value&&cf(e.value))),ff({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},o.computed(()=>!!e.trueLabel)),ff({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},o.computed(()=>!!e.falseLabel)),{inputId:m,isLabeledByFormItem:p,isChecked:l,isDisabled:h,isFocused:s,checkboxButtonSize:d,checkboxSize:c,hasOwnLabel:u,model:r,actualValue:f,handleChange:g,onClickRoot:v}},XQ=o.defineComponent({name:"ElCheckbox"}),YQ=o.defineComponent({...XQ,props:ME,emits:zE,setup(e){const t=e,n=o.useSlots(),{inputId:r,isLabeledByFormItem:a,isChecked:i,isDisabled:s,isFocused:l,checkboxSize:d,hasOwnLabel:c,model:u,actualValue:f,handleChange:h,onClickRoot:m}=jE(t,n),p=Ye("checkbox"),g=o.computed(()=>[p.b(),p.m(d.value),p.is("disabled",s.value),p.is("bordered",t.border),p.is("checked",i.value)]),v=o.computed(()=>[p.e("input"),p.is("disabled",s.value),p.is("checked",i.value),p.is("indeterminate",t.indeterminate),p.is("focus",l.value)]);return(y,b)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(!o.unref(c)&&o.unref(a)?"span":"label"),{class:o.normalizeClass(o.unref(g)),"aria-controls":y.indeterminate?y.ariaControls:null,onClick:o.unref(m)},{default:o.withCtx(()=>{var x,w,k,C;return[o.createElementVNode("span",{class:o.normalizeClass(o.unref(v))},[y.trueValue||y.falseValue||y.trueLabel||y.falseLabel?o.withDirectives((o.openBlock(),o.createElementBlock("input",{key:0,id:o.unref(r),"onUpdate:modelValue":E=>o.isRef(u)?u.value=E:null,class:o.normalizeClass(o.unref(p).e("original")),type:"checkbox",indeterminate:y.indeterminate,name:y.name,tabindex:y.tabindex,disabled:o.unref(s),"true-value":(w=(x=y.trueValue)!=null?x:y.trueLabel)!=null?w:!0,"false-value":(C=(k=y.falseValue)!=null?k:y.falseLabel)!=null?C:!1,onChange:o.unref(h),onFocus:E=>l.value=!0,onBlur:E=>l.value=!1,onClick:o.withModifiers(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[o.vModelCheckbox,o.unref(u)]]):o.withDirectives((o.openBlock(),o.createElementBlock("input",{key:1,id:o.unref(r),"onUpdate:modelValue":E=>o.isRef(u)?u.value=E:null,class:o.normalizeClass(o.unref(p).e("original")),type:"checkbox",indeterminate:y.indeterminate,disabled:o.unref(s),value:o.unref(f),name:y.name,tabindex:y.tabindex,onChange:o.unref(h),onFocus:E=>l.value=!0,onBlur:E=>l.value=!1,onClick:o.withModifiers(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[o.vModelCheckbox,o.unref(u)]]),o.createElementVNode("span",{class:o.normalizeClass(o.unref(p).e("inner"))},null,2)],2),o.unref(c)?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(o.unref(p).e("label"))},[o.renderSlot(y.$slots,"default"),y.$slots.default?o.createCommentVNode("v-if",!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(y.label),1)],64))],2)):o.createCommentVNode("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var ZQ=Ge(YQ,[["__file","checkbox.vue"]]);const JQ=o.defineComponent({name:"ElCheckboxButton"}),QQ=o.defineComponent({...JQ,props:ME,emits:zE,setup(e){const t=e,n=o.useSlots(),{isFocused:r,isChecked:a,isDisabled:i,checkboxButtonSize:s,model:l,actualValue:d,handleChange:c}=jE(t,n),u=o.inject(Ds,void 0),f=Ye("checkbox"),h=o.computed(()=>{var p,g,v,y;const b=(g=(p=u==null?void 0:u.fill)==null?void 0:p.value)!=null?g:"";return{backgroundColor:b,borderColor:b,color:(y=(v=u==null?void 0:u.textColor)==null?void 0:v.value)!=null?y:"",boxShadow:b?`-1px 0 0 0 ${b}`:void 0}}),m=o.computed(()=>[f.b("button"),f.bm("button",s.value),f.is("disabled",i.value),f.is("checked",a.value),f.is("focus",r.value)]);return(p,g)=>{var v,y,b,x;return o.openBlock(),o.createElementBlock("label",{class:o.normalizeClass(o.unref(m))},[p.trueValue||p.falseValue||p.trueLabel||p.falseLabel?o.withDirectives((o.openBlock(),o.createElementBlock("input",{key:0,"onUpdate:modelValue":w=>o.isRef(l)?l.value=w:null,class:o.normalizeClass(o.unref(f).be("button","original")),type:"checkbox",name:p.name,tabindex:p.tabindex,disabled:o.unref(i),"true-value":(y=(v=p.trueValue)!=null?v:p.trueLabel)!=null?y:!0,"false-value":(x=(b=p.falseValue)!=null?b:p.falseLabel)!=null?x:!1,onChange:o.unref(c),onFocus:w=>r.value=!0,onBlur:w=>r.value=!1,onClick:o.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[o.vModelCheckbox,o.unref(l)]]):o.withDirectives((o.openBlock(),o.createElementBlock("input",{key:1,"onUpdate:modelValue":w=>o.isRef(l)?l.value=w:null,class:o.normalizeClass(o.unref(f).be("button","original")),type:"checkbox",name:p.name,tabindex:p.tabindex,disabled:o.unref(i),value:o.unref(d),onChange:o.unref(c),onFocus:w=>r.value=!0,onBlur:w=>r.value=!1,onClick:o.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[o.vModelCheckbox,o.unref(l)]]),p.$slots.default||p.label?(o.openBlock(),o.createElementBlock("span",{key:2,class:o.normalizeClass(o.unref(f).be("button","inner")),style:o.normalizeStyle(o.unref(a)?o.unref(h):void 0)},[o.renderSlot(p.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(p.label),1)])],6)):o.createCommentVNode("v-if",!0)],2)}}});var HE=Ge(QQ,[["__file","checkbox-button.vue"]]);const eee=ct({modelValue:{type:je(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Fs,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...Sa(["ariaLabel"])}),tee={[hn]:e=>Yn(e),change:e=>Yn(e)},nee=o.defineComponent({name:"ElCheckboxGroup"}),ree=o.defineComponent({...nee,props:eee,emits:tee,setup(e,{emit:t}){const n=e,r=Ye("checkbox"),{formItem:a}=Ci(),{inputId:i,isLabeledByFormItem:s}=Bc(n,{formItemContext:a}),l=async c=>{t(hn,c),await o.nextTick(),t("change",c)},d=o.computed({get(){return n.modelValue},set(c){l(c)}});return o.provide(Ds,{...Ck(o.toRefs(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:d,changeEvent:l}),o.watch(()=>n.modelValue,()=>{n.validateEvent&&(a==null||a.validate("change").catch(c=>Wt(c)))}),(c,u)=>{var f;return o.openBlock(),o.createBlock(o.resolveDynamicComponent(c.tag),{id:o.unref(i),class:o.normalizeClass(o.unref(r).b("group")),role:"group","aria-label":o.unref(s)?void 0:c.ariaLabel||"checkbox-group","aria-labelledby":o.unref(s)?(f=o.unref(a))==null?void 0:f.labelId:void 0},{default:o.withCtx(()=>[o.renderSlot(c.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var UE=Ge(ree,[["__file","checkbox-group.vue"]]);const oee=ln(ZQ,{CheckboxButton:HE,CheckboxGroup:UE});Uo(HE),Uo(UE);const pg=ct({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:Tk},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),aee={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},iee=o.defineComponent({name:"ElTag"}),see=o.defineComponent({...iee,props:pg,emits:aee,setup(e,{emit:t}){const n=e,r=xi(),a=Ye("tag"),i=o.computed(()=>{const{type:c,hit:u,effect:f,closable:h,round:m}=n;return[a.b(),a.is("closable",h),a.m(c||"primary"),a.m(r.value),a.m(f),a.is("hit",u),a.is("round",m)]}),s=c=>{t("close",c)},l=c=>{t("click",c)},d=c=>{c.component.subTree.component.bum=null};return(c,u)=>c.disableTransitions?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(o.unref(i)),style:o.normalizeStyle({backgroundColor:c.color}),onClick:l},[o.createElementVNode("span",{class:o.normalizeClass(o.unref(a).e("content"))},[o.renderSlot(c.$slots,"default")],2),c.closable?(o.openBlock(),o.createBlock(o.unref(_n),{key:0,class:o.normalizeClass(o.unref(a).e("close")),onClick:o.withModifiers(s,["stop"])},{default:o.withCtx(()=>[o.createVNode(o.unref(df))]),_:1},8,["class","onClick"])):o.createCommentVNode("v-if",!0)],6)):(o.openBlock(),o.createBlock(o.Transition,{key:1,name:`${o.unref(a).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:d},{default:o.withCtx(()=>[o.createElementVNode("span",{class:o.normalizeClass(o.unref(i)),style:o.normalizeStyle({backgroundColor:c.color}),onClick:l},[o.createElementVNode("span",{class:o.normalizeClass(o.unref(a).e("content"))},[o.renderSlot(c.$slots,"default")],2),c.closable?(o.openBlock(),o.createBlock(o.unref(_n),{key:0,class:o.normalizeClass(o.unref(a).e("close")),onClick:o.withModifiers(s,["stop"])},{default:o.withCtx(()=>[o.createVNode(o.unref(df))]),_:1},8,["class","onClick"])):o.createCommentVNode("v-if",!0)],6)]),_:3},8,["name"]))}});var lee=Ge(see,[["__file","tag.vue"]]);const cee=ln(lee),qE=Symbol("rowContextKey"),dee=["start","center","end","space-around","space-between","space-evenly"],uee=["top","middle","bottom"],fee=ct({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:dee,default:"start"},align:{type:String,values:uee}}),pee=o.defineComponent({name:"ElRow"}),hee=o.defineComponent({...pee,props:fee,setup(e){const t=e,n=Ye("row"),r=o.computed(()=>t.gutter);o.provide(qE,{gutter:r});const a=o.computed(()=>{const s={};return t.gutter&&(s.marginRight=s.marginLeft=`-${t.gutter/2}px`),s}),i=o.computed(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(s,l)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(s.tag),{class:o.normalizeClass(o.unref(i)),style:o.normalizeStyle(o.unref(a))},{default:o.withCtx(()=>[o.renderSlot(s.$slots,"default")]),_:3},8,["class","style"]))}});var mee=Ge(hee,[["__file","row.vue"]]);const WE=ln(mee),gee=ct({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:je([Number,Object]),default:()=>_s({})},sm:{type:je([Number,Object]),default:()=>_s({})},md:{type:je([Number,Object]),default:()=>_s({})},lg:{type:je([Number,Object]),default:()=>_s({})},xl:{type:je([Number,Object]),default:()=>_s({})}}),yee=o.defineComponent({name:"ElCol"}),vee=o.defineComponent({...yee,props:gee,setup(e){const t=e,{gutter:n}=o.inject(qE,{gutter:o.computed(()=>0)}),r=Ye("col"),a=o.computed(()=>{const s={};return n.value&&(s.paddingLeft=s.paddingRight=`${n.value/2}px`),s}),i=o.computed(()=>{const s=[];return["span","offset","pull","push"].forEach(l=>{const d=t[l];pn(d)&&(l==="span"?s.push(r.b(`${t[l]}`)):d>0&&s.push(r.b(`${l}-${t[l]}`)))}),["xs","sm","md","lg","xl"].forEach(l=>{pn(t[l])?s.push(r.b(`${l}-${t[l]}`)):fn(t[l])&&Object.entries(t[l]).forEach(([d,c])=>{s.push(d!=="span"?r.b(`${l}-${d}-${c}`):r.b(`${l}-${c}`))})}),n.value&&s.push(r.is("guttered")),[r.b(),s]});return(s,l)=>(o.openBlock(),o.createBlock(o.resolveDynamicComponent(s.tag),{class:o.normalizeClass(o.unref(i)),style:o.normalizeStyle(o.unref(a))},{default:o.withCtx(()=>[o.renderSlot(s.$slots,"default")]),_:3},8,["class","style"]))}});var bee=Ge(vee,[["__file","col.vue"]]);const hg=ln(bee),wee=o.defineComponent({name:"ElCollapseTransition"}),xee=o.defineComponent({...wee,setup(e){const t=Ye("collapse-transition"),n=a=>{a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom},r={beforeEnter(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.style.height&&(a.dataset.elExistsHeight=a.style.height),a.style.maxHeight=0,a.style.paddingTop=0,a.style.paddingBottom=0},enter(a){requestAnimationFrame(()=>{a.dataset.oldOverflow=a.style.overflow,a.dataset.elExistsHeight?a.style.maxHeight=a.dataset.elExistsHeight:a.scrollHeight!==0?a.style.maxHeight=`${a.scrollHeight}px`:a.style.maxHeight=0,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom,a.style.overflow="hidden"})},afterEnter(a){a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow},enterCancelled(a){n(a)},beforeLeave(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.dataset.oldOverflow=a.style.overflow,a.style.maxHeight=`${a.scrollHeight}px`,a.style.overflow="hidden"},leave(a){a.scrollHeight!==0&&(a.style.maxHeight=0,a.style.paddingTop=0,a.style.paddingBottom=0)},afterLeave(a){n(a)},leaveCancelled(a){n(a)}};return(a,i)=>(o.openBlock(),o.createBlock(o.Transition,o.mergeProps({name:o.unref(t).b()},o.toHandlers(r)),{default:o.withCtx(()=>[o.renderSlot(a.$slots,"default")]),_:3},16,["name"]))}});var Cee=Ge(xee,[["__file","collapse-transition.vue"]]);const kee=ln(Cee),Eee=ct({color:{type:je(Object),required:!0},vertical:{type:Boolean,default:!1}});let mg=!1;function Oc(e,t){if(!qt)return;const n=function(i){var s;(s=t.drag)==null||s.call(t,i)},r=function(i){var s;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,mg=!1,(s=t.end)==null||s.call(t,i)},a=function(i){var s;mg||(i.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),mg=!0,(s=t.start)==null||s.call(t,i))};e.addEventListener("mousedown",a),e.addEventListener("touchstart",a,{passive:!1})}const See=e=>{const t=o.getCurrentInstance(),{t:n}=yc(),r=o.shallowRef(),a=o.shallowRef(),i=o.computed(()=>e.color.get("alpha")),s=o.computed(()=>n("el.colorpicker.alphaLabel"));function l(f){var h;f.target!==r.value&&d(f),(h=r.value)==null||h.focus()}function d(f){if(!a.value||!r.value)return;const h=t.vnode.el.getBoundingClientRect(),{clientX:m,clientY:p}=g0(f);if(e.vertical){let g=p-h.top;g=Math.max(r.value.offsetHeight/2,g),g=Math.min(g,h.height-r.value.offsetHeight/2),e.color.set("alpha",Math.round((g-r.value.offsetHeight/2)/(h.height-r.value.offsetHeight)*100))}else{let g=m-h.left;g=Math.max(r.value.offsetWidth/2,g),g=Math.min(g,h.width-r.value.offsetWidth/2),e.color.set("alpha",Math.round((g-r.value.offsetWidth/2)/(h.width-r.value.offsetWidth)*100))}}function c(f){const{code:h,shiftKey:m}=f,p=m?10:1;switch(h){case tn.left:case tn.down:f.preventDefault(),f.stopPropagation(),u(-p);break;case tn.right:case tn.up:f.preventDefault(),f.stopPropagation(),u(p);break}}function u(f){let h=i.value+f;h=h<0?0:h>100?100:h,e.color.set("alpha",h)}return{thumb:r,bar:a,alpha:i,alphaLabel:s,handleDrag:d,handleClick:l,handleKeydown:c}},_ee=(e,{bar:t,thumb:n,handleDrag:r})=>{const a=o.getCurrentInstance(),i=Ye("color-alpha-slider"),s=o.ref(0),l=o.ref(0),d=o.ref();function c(){if(!n.value||e.vertical)return 0;const b=a.vnode.el,x=e.color.get("alpha");return b?Math.round(x*(b.offsetWidth-n.value.offsetWidth/2)/100):0}function u(){if(!n.value)return 0;const b=a.vnode.el;if(!e.vertical)return 0;const x=e.color.get("alpha");return b?Math.round(x*(b.offsetHeight-n.value.offsetHeight/2)/100):0}function f(){if(e.color&&e.color.value){const{r:b,g:x,b:w}=e.color.toRgb();return`linear-gradient(to right, rgba(${b}, ${x}, ${w}, 0) 0%, rgba(${b}, ${x}, ${w}, 1) 100%)`}return""}function h(){s.value=c(),l.value=u(),d.value=f()}o.onMounted(()=>{if(!t.value||!n.value)return;const b={drag:x=>{r(x)},end:x=>{r(x)}};Oc(t.value,b),Oc(n.value,b),h()}),o.watch(()=>e.color.get("alpha"),()=>h()),o.watch(()=>e.color.value,()=>h());const m=o.computed(()=>[i.b(),i.is("vertical",e.vertical)]),p=o.computed(()=>i.e("bar")),g=o.computed(()=>i.e("thumb")),v=o.computed(()=>({background:d.value})),y=o.computed(()=>({left:Ss(s.value),top:Ss(l.value)}));return{rootKls:m,barKls:p,barStyle:v,thumbKls:g,thumbStyle:y,update:h}},Bee="ElColorAlphaSlider",Tee=o.defineComponent({name:Bee}),Nee=o.defineComponent({...Tee,props:Eee,setup(e,{expose:t}){const n=e,{alpha:r,alphaLabel:a,bar:i,thumb:s,handleDrag:l,handleClick:d,handleKeydown:c}=See(n),{rootKls:u,barKls:f,barStyle:h,thumbKls:m,thumbStyle:p,update:g}=_ee(n,{bar:i,thumb:s,handleDrag:l});return t({update:g,bar:i,thumb:s}),(v,y)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(o.unref(u))},[o.createElementVNode("div",{ref_key:"bar",ref:i,class:o.normalizeClass(o.unref(f)),style:o.normalizeStyle(o.unref(h)),onClick:o.unref(d)},null,14,["onClick"]),o.createElementVNode("div",{ref_key:"thumb",ref:s,class:o.normalizeClass(o.unref(m)),style:o.normalizeStyle(o.unref(p)),"aria-label":o.unref(a),"aria-valuenow":o.unref(r),"aria-orientation":v.vertical?"vertical":"horizontal","aria-valuemin":"0","aria-valuemax":"100",role:"slider",tabindex:"0",onKeydown:o.unref(c)},null,46,["aria-label","aria-valuenow","aria-orientation","onKeydown"])],2))}});var Oee=Ge(Nee,[["__file","alpha-slider.vue"]]);const Pee=o.defineComponent({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=Ye("color-hue-slider"),n=o.getCurrentInstance(),r=o.ref(),a=o.ref(),i=o.ref(0),s=o.ref(0),l=o.computed(()=>e.color.get("hue"));o.watch(()=>l.value,()=>{h()});function d(m){m.target!==r.value&&c(m)}function c(m){if(!a.value||!r.value)return;const p=n.vnode.el.getBoundingClientRect(),{clientX:g,clientY:v}=g0(m);let y;if(e.vertical){let b=v-p.top;b=Math.min(b,p.height-r.value.offsetHeight/2),b=Math.max(r.value.offsetHeight/2,b),y=Math.round((b-r.value.offsetHeight/2)/(p.height-r.value.offsetHeight)*360)}else{let b=g-p.left;b=Math.min(b,p.width-r.value.offsetWidth/2),b=Math.max(r.value.offsetWidth/2,b),y=Math.round((b-r.value.offsetWidth/2)/(p.width-r.value.offsetWidth)*360)}e.color.set("hue",y)}function u(){if(!r.value)return 0;const m=n.vnode.el;if(e.vertical)return 0;const p=e.color.get("hue");return m?Math.round(p*(m.offsetWidth-r.value.offsetWidth/2)/360):0}function f(){if(!r.value)return 0;const m=n.vnode.el;if(!e.vertical)return 0;const p=e.color.get("hue");return m?Math.round(p*(m.offsetHeight-r.value.offsetHeight/2)/360):0}function h(){i.value=u(),s.value=f()}return o.onMounted(()=>{if(!a.value||!r.value)return;const m={drag:p=>{c(p)},end:p=>{c(p)}};Oc(a.value,m),Oc(r.value,m),h()}),{bar:a,thumb:r,thumbLeft:i,thumbTop:s,hueValue:l,handleClick:d,update:h,ns:t}}});function $ee(e,t,n,r,a,i){return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass([e.ns.b(),e.ns.is("vertical",e.vertical)])},[o.createElementVNode("div",{ref:"bar",class:o.normalizeClass(e.ns.e("bar")),onClick:e.handleClick},null,10,["onClick"]),o.createElementVNode("div",{ref:"thumb",class:o.normalizeClass(e.ns.e("thumb")),style:o.normalizeStyle({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var Fee=Ge(Pee,[["render",$ee],["__file","hue-slider.vue"]]);const Aee=ct({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:Fs,popperClass:{type:String,default:""},tabindex:{type:[String,Number],default:0},teleported:Qn.teleported,predefine:{type:je(Array)},validateEvent:{type:Boolean,default:!0},...Sa(["ariaLabel"])}),Iee={[hn]:e=>Sn(e)||xa(e),[R0]:e=>Sn(e)||xa(e),activeChange:e=>Sn(e)||xa(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},KE=Symbol("colorPickerContextKey"),GE=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},Dee=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},Vee=function(e){return typeof e=="string"&&e.includes("%")},Vs=function(e,t){Dee(e)&&(e="100%");const n=Vee(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),n&&(e=Number.parseInt(`${e*t}`,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},XE={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Tf=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${XE[t]||t}${XE[n]||n}`},YE=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${Tf(e)}${Tf(t)}${Tf(n)}`},gg={A:10,B:11,C:12,D:13,E:14,F:15},Si=function(e){return e.length===2?(gg[e[0].toUpperCase()]||+e[0])*16+(gg[e[1].toUpperCase()]||+e[1]):gg[e[1].toUpperCase()]||+e[1]},Ree=function(e,t,n){t=t/100,n=n/100;let r=t;const a=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,r*=a<=1?a:2-a;const i=(n+t)/2,s=n===0?2*r/(a+r):2*t/(n+t);return{h:e,s:s*100,v:i*100}},ZE=(e,t,n)=>{e=Vs(e,255),t=Vs(t,255),n=Vs(n,255);const r=Math.max(e,t,n),a=Math.min(e,t,n);let i;const s=r,l=r-a,d=r===0?0:l/r;if(r===a)i=0;else{switch(r){case e:{i=(t-n)/l+(t{this._hue=Math.max(0,Math.min(360,r)),this._saturation=Math.max(0,Math.min(100,a)),this._value=Math.max(0,Math.min(100,i)),this.doOnChange()};if(t.includes("hsl")){const r=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(a=>a!=="").map((a,i)=>i>2?Number.parseFloat(a):Number.parseInt(a,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:a,s:i,v:s}=Ree(r[0],r[1],r[2]);n(a,i,s)}}else if(t.includes("hsv")){const r=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(a=>a!=="").map((a,i)=>i>2?Number.parseFloat(a):Number.parseInt(a,10));r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3&&n(r[0],r[1],r[2])}else if(t.includes("rgb")){const r=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(a=>a!=="").map((a,i)=>i>2?Number.parseFloat(a):Number.parseInt(a,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:a,s:i,v:s}=ZE(r[0],r[1],r[2]);n(a,i,s)}}else if(t.includes("#")){const r=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(r))return;let a,i,s;r.length===3?(a=Si(r[0]+r[0]),i=Si(r[1]+r[1]),s=Si(r[2]+r[2])):(r.length===6||r.length===8)&&(a=Si(r.slice(0,2)),i=Si(r.slice(2,4)),s=Si(r.slice(4,6))),r.length===8?this._alpha=Si(r.slice(6))/255*100:(r.length===3||r.length===6)&&(this._alpha=100);const{h:l,s:d,v:c}=ZE(a,i,s);n(l,d,c)}}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:n,_value:r,_alpha:a,format:i}=this;if(this.enableAlpha)switch(i){case"hsl":{const s=GE(t,n/100,r/100);this.value=`hsla(${t}, ${Math.round(s[1]*100)}%, ${Math.round(s[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${t}, ${Math.round(n)}%, ${Math.round(r)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${YE(Pc(t,n,r))}${Tf(a*255/100)}`;break}default:{const{r:s,g:l,b:d}=Pc(t,n,r);this.value=`rgba(${s}, ${l}, ${d}, ${this.get("alpha")/100})`}}else switch(i){case"hsl":{const s=GE(t,n/100,r/100);this.value=`hsl(${t}, ${Math.round(s[1]*100)}%, ${Math.round(s[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(n)}%, ${Math.round(r)}%)`;break}case"rgb":{const{r:s,g:l,b:d}=Pc(t,n,r);this.value=`rgb(${s}, ${l}, ${d})`;break}default:this.value=YE(Pc(t,n,r))}}}const Lee=o.defineComponent({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0},enableAlpha:{type:Boolean,required:!0}},setup(e){const t=Ye("color-predefine"),{currentColor:n}=o.inject(KE),r=o.ref(i(e.colors,e.color));o.watch(()=>n.value,s=>{const l=new $c;l.fromString(s),r.value.forEach(d=>{d.selected=l.compare(d)})}),o.watchEffect(()=>{r.value=i(e.colors,e.color)});function a(s){e.color.fromString(e.colors[s])}function i(s,l){return s.map(d=>{const c=new $c;return c.enableAlpha=e.enableAlpha,c.format="rgba",c.fromString(d),c.selected=c.value===l.value,c})}return{rgbaColors:r,handleSelect:a,ns:t}}});function Mee(e,t,n,r,a,i){return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(e.ns.b())},[o.createElementVNode("div",{class:o.normalizeClass(e.ns.e("colors"))},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.rgbaColors,(s,l)=>(o.openBlock(),o.createElementBlock("div",{key:e.colors[l],class:o.normalizeClass([e.ns.e("color-selector"),e.ns.is("alpha",s._alpha<100),{selected:s.selected}]),onClick:d=>e.handleSelect(l)},[o.createElementVNode("div",{style:o.normalizeStyle({backgroundColor:s.value})},null,4)],10,["onClick"]))),128))],2)],2)}var zee=Ge(Lee,[["render",Mee],["__file","predefine.vue"]]);const jee=o.defineComponent({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=Ye("color-svpanel"),n=o.getCurrentInstance(),r=o.ref(0),a=o.ref(0),i=o.ref("hsl(0, 100%, 50%)"),s=o.computed(()=>{const c=e.color.get("hue"),u=e.color.get("value");return{hue:c,value:u}});function l(){const c=e.color.get("saturation"),u=e.color.get("value"),f=n.vnode.el,{clientWidth:h,clientHeight:m}=f;a.value=c*h/100,r.value=(100-u)*m/100,i.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function d(c){const u=n.vnode.el.getBoundingClientRect(),{clientX:f,clientY:h}=g0(c);let m=f-u.left,p=h-u.top;m=Math.max(0,m),m=Math.min(m,u.width),p=Math.max(0,p),p=Math.min(p,u.height),a.value=m,r.value=p,e.color.set({saturation:m/u.width*100,value:100-p/u.height*100})}return o.watch(()=>s.value,()=>{l()}),o.onMounted(()=>{Oc(n.vnode.el,{drag:c=>{d(c)},end:c=>{d(c)}}),l()}),{cursorTop:r,cursorLeft:a,background:i,colorValue:s,handleDrag:d,update:l,ns:t}}});function Hee(e,t,n,r,a,i){return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(e.ns.b()),style:o.normalizeStyle({backgroundColor:e.background})},[o.createElementVNode("div",{class:o.normalizeClass(e.ns.e("white"))},null,2),o.createElementVNode("div",{class:o.normalizeClass(e.ns.e("black"))},null,2),o.createElementVNode("div",{class:o.normalizeClass(e.ns.e("cursor")),style:o.normalizeStyle({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},[o.createElementVNode("div")],6)],6)}var Uee=Ge(jee,[["render",Hee],["__file","sv-panel.vue"]]);const qee=o.defineComponent({name:"ElColorPicker"}),Wee=o.defineComponent({...qee,props:Aee,emits:Iee,setup(e,{expose:t,emit:n}){const r=e,{t:a}=yc(),i=Ye("color"),{formItem:s}=Ci(),l=xi(),d=_c(),{inputId:c,isLabeledByFormItem:u}=Bc(r,{formItemContext:s}),f=o.ref(),h=o.ref(),m=o.ref(),p=o.ref(),g=o.ref(),v=o.ref(),{isFocused:y,handleFocus:b,handleBlur:x}=Y0(g,{beforeFocus(){return d.value},beforeBlur(W){var Z;return(Z=p.value)==null?void 0:Z.isFocusInsideContent(W)},afterBlur(){D(!1),z()}});let w=!0;const k=o.reactive(new $c({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue})),C=o.ref(!1),E=o.ref(!1),S=o.ref(""),_=o.computed(()=>!r.modelValue&&!E.value?"transparent":$(k,r.showAlpha)),O=o.computed(()=>!r.modelValue&&!E.value?"":k.value),T=o.computed(()=>u.value?void 0:r.ariaLabel||a("el.colorpicker.defaultLabel")),N=o.computed(()=>u.value?s==null?void 0:s.labelId:void 0),F=o.computed(()=>[i.b("picker"),i.is("disabled",d.value),i.bm("picker",l.value),i.is("focused",y.value)]);function $(W,Z){if(!(W instanceof $c))throw new TypeError("color should be instance of _color Class");const{r:ue,g:be,b:Be}=W.toRgb();return Z?`rgba(${ue}, ${be}, ${Be}, ${W.get("alpha")/100})`:`rgb(${ue}, ${be}, ${Be})`}function D(W){C.value=W}const P=xk(D,100,{leading:!0});function V(){d.value||D(!0)}function I(){P(!1),z()}function z(){o.nextTick(()=>{r.modelValue?k.fromString(r.modelValue):(k.value="",o.nextTick(()=>{E.value=!1}))})}function G(){d.value||P(!C.value)}function q(){k.fromString(S.value)}function X(){const W=k.value;n(hn,W),n("change",W),r.validateEvent&&(s==null||s.validate("change").catch(Z=>Wt(Z))),P(!1),o.nextTick(()=>{const Z=new $c({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});k.compare(Z)||z()})}function te(){P(!1),n(hn,null),n("change",null),r.modelValue!==null&&r.validateEvent&&(s==null||s.validate("change").catch(W=>Wt(W))),z()}function le(){C.value&&(I(),y.value&&oe())}function de(W){W.preventDefault(),W.stopPropagation(),D(!1),z()}function ne(W){switch(W.code){case tn.enter:case tn.space:W.preventDefault(),W.stopPropagation(),V(),v.value.focus();break;case tn.esc:de(W);break}}function oe(){g.value.focus()}function U(){g.value.blur()}return o.onMounted(()=>{r.modelValue&&(S.value=O.value)}),o.watch(()=>r.modelValue,W=>{W?W&&W!==k.value&&(w=!1,k.fromString(W)):E.value=!1}),o.watch(()=>[r.colorFormat,r.showAlpha],()=>{k.enableAlpha=r.showAlpha,k.format=r.colorFormat||k.format,k.doOnChange(),n(hn,k.value)}),o.watch(()=>O.value,W=>{S.value=W,w&&n("activeChange",W),w=!0}),o.watch(()=>k.value,()=>{!r.modelValue&&!E.value&&(E.value=!0)}),o.watch(()=>C.value,()=>{o.nextTick(()=>{var W,Z,ue;(W=f.value)==null||W.update(),(Z=h.value)==null||Z.update(),(ue=m.value)==null||ue.update()})}),o.provide(KE,{currentColor:O}),t({color:k,show:V,hide:I,focus:oe,blur:U}),(W,Z)=>(o.openBlock(),o.createBlock(o.unref(Nc),{ref_key:"popper",ref:p,visible:C.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[o.unref(i).be("picker","panel"),o.unref(i).b("dropdown"),W.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",teleported:W.teleported,transition:`${o.unref(i).namespace.value}-zoom-in-top`,persistent:"",onHide:ue=>D(!1)},{content:o.withCtx(()=>[o.withDirectives((o.openBlock(),o.createElementBlock("div",{onKeydown:o.withKeys(de,["esc"])},[o.createElementVNode("div",{class:o.normalizeClass(o.unref(i).be("dropdown","main-wrapper"))},[o.createVNode(Fee,{ref_key:"hue",ref:f,class:"hue-slider",color:o.unref(k),vertical:""},null,8,["color"]),o.createVNode(Uee,{ref_key:"sv",ref:h,color:o.unref(k)},null,8,["color"])],2),W.showAlpha?(o.openBlock(),o.createBlock(Oee,{key:0,ref_key:"alpha",ref:m,color:o.unref(k)},null,8,["color"])):o.createCommentVNode("v-if",!0),W.predefine?(o.openBlock(),o.createBlock(zee,{key:1,ref:"predefine","enable-alpha":W.showAlpha,color:o.unref(k),colors:W.predefine},null,8,["enable-alpha","color","colors"])):o.createCommentVNode("v-if",!0),o.createElementVNode("div",{class:o.normalizeClass(o.unref(i).be("dropdown","btns"))},[o.createElementVNode("span",{class:o.normalizeClass(o.unref(i).be("dropdown","value"))},[o.createVNode(o.unref(xf),{ref_key:"inputRef",ref:v,modelValue:S.value,"onUpdate:modelValue":ue=>S.value=ue,"validate-event":!1,size:"small",onKeyup:o.withKeys(q,["enter"]),onBlur:q},null,8,["modelValue","onUpdate:modelValue","onKeyup"])],2),o.createVNode(o.unref(Ei),{class:o.normalizeClass(o.unref(i).be("dropdown","link-btn")),text:"",size:"small",onClick:te},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(a)("el.colorpicker.clear")),1)]),_:1},8,["class"]),o.createVNode(o.unref(Ei),{plain:"",size:"small",class:o.normalizeClass(o.unref(i).be("dropdown","btn")),onClick:X},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(a)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)],40,["onKeydown"])),[[o.unref(LE),le]])]),default:o.withCtx(()=>[o.createElementVNode("div",o.mergeProps({id:o.unref(c),ref_key:"triggerRef",ref:g},W.$attrs,{class:o.unref(F),role:"button","aria-label":o.unref(T),"aria-labelledby":o.unref(N),"aria-description":o.unref(a)("el.colorpicker.description",{color:W.modelValue||""}),"aria-disabled":o.unref(d),tabindex:o.unref(d)?-1:W.tabindex,onKeydown:ne,onFocus:o.unref(b),onBlur:o.unref(x)}),[o.unref(d)?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(o.unref(i).be("picker","mask"))},null,2)):o.createCommentVNode("v-if",!0),o.createElementVNode("div",{class:o.normalizeClass(o.unref(i).be("picker","trigger")),onClick:G},[o.createElementVNode("span",{class:o.normalizeClass([o.unref(i).be("picker","color"),o.unref(i).is("alpha",W.showAlpha)])},[o.createElementVNode("span",{class:o.normalizeClass(o.unref(i).be("picker","color-inner")),style:o.normalizeStyle({backgroundColor:o.unref(_)})},[o.withDirectives(o.createVNode(o.unref(_n),{class:o.normalizeClass([o.unref(i).be("picker","icon"),o.unref(i).is("icon-arrow-down")])},{default:o.withCtx(()=>[o.createVNode(o.unref(I0))]),_:1},8,["class"]),[[o.vShow,W.modelValue||E.value]]),o.withDirectives(o.createVNode(o.unref(_n),{class:o.normalizeClass([o.unref(i).be("picker","empty"),o.unref(i).is("icon-close")])},{default:o.withCtx(()=>[o.createVNode(o.unref(df))]),_:1},8,["class"]),[[o.vShow,!W.modelValue&&!E.value]])],6)],2)],2)],16,["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex","onFocus","onBlur"])]),_:1},8,["visible","popper-class","teleported","transition","onHide"]))}});var Kee=Ge(Wee,[["__file","color-picker.vue"]]);ln(Kee);const Gee=o.defineComponent({name:"ElContainer"}),Xee=o.defineComponent({...Gee,props:{direction:{type:String}},setup(e){const t=e,n=o.useSlots(),r=Ye("container"),a=o.computed(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(i=>{const s=i.type.name;return s==="ElHeader"||s==="ElFooter"}):!1);return(i,s)=>(o.openBlock(),o.createElementBlock("section",{class:o.normalizeClass([o.unref(r).b(),o.unref(r).is("vertical",o.unref(a))])},[o.renderSlot(i.$slots,"default")],2))}});var Yee=Ge(Xee,[["__file","container.vue"]]);const Zee=o.defineComponent({name:"ElAside"}),Jee=o.defineComponent({...Zee,props:{width:{type:String,default:null}},setup(e){const t=e,n=Ye("aside"),r=o.computed(()=>t.width?n.cssVarBlock({width:t.width}):{});return(a,i)=>(o.openBlock(),o.createElementBlock("aside",{class:o.normalizeClass(o.unref(n).b()),style:o.normalizeStyle(o.unref(r))},[o.renderSlot(a.$slots,"default")],6))}});var JE=Ge(Jee,[["__file","aside.vue"]]);const Qee=o.defineComponent({name:"ElFooter"}),ete=o.defineComponent({...Qee,props:{height:{type:String,default:null}},setup(e){const t=e,n=Ye("footer"),r=o.computed(()=>t.height?n.cssVarBlock({height:t.height}):{});return(a,i)=>(o.openBlock(),o.createElementBlock("footer",{class:o.normalizeClass(o.unref(n).b()),style:o.normalizeStyle(o.unref(r))},[o.renderSlot(a.$slots,"default")],6))}});var QE=Ge(ete,[["__file","footer.vue"]]);const tte=o.defineComponent({name:"ElHeader"}),nte=o.defineComponent({...tte,props:{height:{type:String,default:null}},setup(e){const t=e,n=Ye("header"),r=o.computed(()=>t.height?n.cssVarBlock({height:t.height}):{});return(a,i)=>(o.openBlock(),o.createElementBlock("header",{class:o.normalizeClass(o.unref(n).b()),style:o.normalizeStyle(o.unref(r))},[o.renderSlot(a.$slots,"default")],6))}});var eS=Ge(nte,[["__file","header.vue"]]);const rte=o.defineComponent({name:"ElMain"}),ote=o.defineComponent({...rte,setup(e){const t=Ye("main");return(n,r)=>(o.openBlock(),o.createElementBlock("main",{class:o.normalizeClass(o.unref(t).b())},[o.renderSlot(n.$slots,"default")],2))}});var tS=Ge(ote,[["__file","main.vue"]]);const nS=ln(Yee,{Aside:JE,Footer:QE,Header:eS,Main:tS});Uo(JE),Uo(QE);const rS=Uo(eS),yg=Uo(tS),ate=o.defineComponent({inheritAttrs:!1});function ite(e,t,n,r,a,i){return o.renderSlot(e.$slots,"default")}var ste=Ge(ate,[["render",ite],["__file","collection.vue"]]);const lte=o.defineComponent({name:"ElCollectionItem",inheritAttrs:!1});function cte(e,t,n,r,a,i){return o.renderSlot(e.$slots,"default")}var dte=Ge(lte,[["render",cte],["__file","collection-item.vue"]]);const ute="data-el-collection-item",fte=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),a=Symbol(n),i={...ste,name:t,setup(){const l=o.ref(null),d=new Map;o.provide(r,{itemMap:d,getItems:()=>{const c=o.unref(l);if(!c)return[];const u=Array.from(c.querySelectorAll(`[${ute}]`));return[...d.values()].sort((f,h)=>u.indexOf(f.ref)-u.indexOf(h.ref))},collectionRef:l})}},s={...dte,name:n,setup(l,{attrs:d}){const c=o.ref(null),u=o.inject(r,void 0);o.provide(a,{collectionItemRef:c}),o.onMounted(()=>{const f=o.unref(c);f&&u.itemMap.set(f,{ref:f,...d})}),o.onBeforeUnmount(()=>{const f=o.unref(c);u.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:i,ElCollectionItem:s}},vg=ct({trigger:Tc.trigger,effect:{...Qn.effect,default:"light"},type:{type:je(String)},placement:{type:je(String),default:"bottom"},popperOptions:{type:je(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:je([Number,String]),default:0},maxHeight:{type:je([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,default:"menu"},buttonProps:{type:je(Object)},teleported:Qn.teleported});ct({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:ka}}),ct({onKeydown:{type:je(Function)}}),fte("Dropdown");const oS=Symbol("ElSelectGroup"),Fc=Symbol("ElSelect");function pte(e,t){const n=o.inject(Fc),r=o.inject(oS,{disabled:!1}),a=o.computed(()=>u(ba(n.props.modelValue),e.value)),i=o.computed(()=>{var m;if(n.props.multiple){const p=ba((m=n.props.modelValue)!=null?m:[]);return!a.value&&p.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),s=o.computed(()=>e.label||(fn(e.value)?"":e.value)),l=o.computed(()=>e.value||e.label||""),d=o.computed(()=>e.disabled||t.groupDisabled||i.value),c=o.getCurrentInstance(),u=(m=[],p)=>{if(fn(e.value)){const g=n.props.valueKey;return m&&m.some(v=>o.toRaw(jo(v,g))===jo(p,g))}else return m&&m.includes(p)},f=()=>{!e.disabled&&!r.disabled&&(n.states.hoveringIndex=n.optionsArray.indexOf(c.proxy))},h=m=>{const p=new RegExp(SX(m),"i");t.visible=p.test(s.value)||e.created};return o.watch(()=>s.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),o.watch(()=>e.value,(m,p)=>{const{remote:g,valueKey:v}=n.props;if(m!==p&&(n.onOptionDestroy(p,c.proxy),n.onOptionCreate(c.proxy)),!e.created&&!g){if(v&&fn(m)&&fn(p)&&m[v]===p[v])return;n.setSelected()}}),o.watch(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0}),{select:n,currentLabel:s,currentValue:l,itemSelected:a,isDisabled:d,hoverItem:f,updateOption:h}}const hte=o.defineComponent({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=Ye("select"),n=bf(),r=o.computed(()=>[t.be("dropdown","item"),t.is("disabled",o.unref(l)),t.is("selected",o.unref(s)),t.is("hovering",o.unref(h))]),a=o.reactive({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:i,itemSelected:s,isDisabled:l,select:d,hoverItem:c,updateOption:u}=pte(e,a),{visible:f,hover:h}=o.toRefs(a),m=o.getCurrentInstance().proxy;d.onOptionCreate(m),o.onBeforeUnmount(()=>{const g=m.value,{selected:v}=d.states,y=(d.props.multiple?v:[v]).some(b=>b.value===m.value);o.nextTick(()=>{d.states.cachedOptions.get(g)===m&&!y&&d.states.cachedOptions.delete(g)}),d.onOptionDestroy(g,m)});function p(){l.value||d.handleOptionSelect(m)}return{ns:t,id:n,containerKls:r,currentLabel:i,itemSelected:s,isDisabled:l,select:d,hoverItem:c,updateOption:u,visible:f,hover:h,selectOptionClick:p,states:a}}});function mte(e,t,n,r,a,i){return o.withDirectives((o.openBlock(),o.createElementBlock("li",{id:e.id,class:o.normalizeClass(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:e.hoverItem,onClick:o.withModifiers(e.selectOptionClick,["stop"])},[o.renderSlot(e.$slots,"default",{},()=>[o.createElementVNode("span",null,o.toDisplayString(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMouseenter","onClick"])),[[o.vShow,e.visible]])}var bg=Ge(hte,[["render",mte],["__file","option.vue"]]);const gte=o.defineComponent({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=o.inject(Fc),t=Ye("select"),n=o.computed(()=>e.props.popperClass),r=o.computed(()=>e.props.multiple),a=o.computed(()=>e.props.fitInputWidth),i=o.ref("");function s(){var l;i.value=`${(l=e.selectRef)==null?void 0:l.offsetWidth}px`}return o.onMounted(()=>{s(),Lo(e.selectRef,s)}),{ns:t,minWidth:i,popperClass:n,isMultiple:r,isFitInputWidth:a}}});function yte(e,t,n,r,a,i){return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:o.normalizeStyle({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(e.ns.be("dropdown","header"))},[o.renderSlot(e.$slots,"header")],2)):o.createCommentVNode("v-if",!0),o.renderSlot(e.$slots,"default"),e.$slots.footer?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(e.ns.be("dropdown","footer"))},[o.renderSlot(e.$slots,"footer")],2)):o.createCommentVNode("v-if",!0)],6)}var vte=Ge(gte,[["render",yte],["__file","select-dropdown.vue"]]);const bte=11,wte=(e,t)=>{const{t:n}=yc(),r=bf(),a=Ye("select"),i=Ye("input"),s=o.reactive({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=o.ref(null),d=o.ref(null),c=o.ref(null),u=o.ref(null),f=o.ref(null),h=o.ref(null),m=o.ref(null),p=o.ref(null),g=o.ref(null),v=o.ref(null),y=o.ref(null),b=o.ref(null),{isComposing:x,handleCompositionStart:w,handleCompositionUpdate:k,handleCompositionEnd:C}=uE({afterComposition:j=>Q(j)}),{wrapperRef:E,isFocused:S}=Y0(f,{beforeFocus(){return P.value},afterFocus(){e.automaticDropdown&&!_.value&&(_.value=!0,s.menuVisibleOnFocus=!0)},beforeBlur(j){var re,_e;return((re=c.value)==null?void 0:re.isFocusInsideContent(j))||((_e=u.value)==null?void 0:_e.isFocusInsideContent(j))},afterBlur(){_.value=!1,s.menuVisibleOnFocus=!1}}),_=o.ref(!1),O=o.ref(),{form:T,formItem:N}=Ci(),{inputId:F}=Bc(e,{formItemContext:N}),{valueOnClear:$,isEmptyValue:D}=LZ(e),P=o.computed(()=>e.disabled||(T==null?void 0:T.disabled)),V=o.computed(()=>Yn(e.modelValue)?e.modelValue.length>0:!D(e.modelValue)),I=o.computed(()=>e.clearable&&!P.value&&s.inputHovering&&V.value),z=o.computed(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),G=o.computed(()=>a.is("reverse",z.value&&_.value)),q=o.computed(()=>(N==null?void 0:N.validateState)||""),X=o.computed(()=>Bk[q.value]),te=o.computed(()=>e.remote?300:0),le=o.computed(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&!s.inputValue&&s.options.size===0?!1:e.filterable&&s.inputValue&&s.options.size>0&&de.value===0?e.noMatchText||n("el.select.noMatch"):s.options.size===0?e.noDataText||n("el.select.noData"):null),de=o.computed(()=>ne.value.filter(j=>j.visible).length),ne=o.computed(()=>{const j=Array.from(s.options.values()),re=[];return s.optionValues.forEach(_e=>{const Le=j.findIndex(Lt=>Lt.value===_e);Le>-1&&re.push(j[Le])}),re.length>=j.length?re:j}),oe=o.computed(()=>Array.from(s.cachedOptions.values())),U=o.computed(()=>{const j=ne.value.filter(re=>!re.created).some(re=>re.currentLabel===s.inputValue);return e.filterable&&e.allowCreate&&s.inputValue!==""&&!j}),W=()=>{e.filterable&&Rn(e.filterMethod)||e.filterable&&e.remote&&Rn(e.remoteMethod)||ne.value.forEach(j=>{var re;(re=j.updateOption)==null||re.call(j,s.inputValue)})},Z=xi(),ue=o.computed(()=>["small"].includes(Z.value)?"small":"default"),be=o.computed({get(){return _.value&&le.value!==!1},set(j){_.value=j}}),Be=o.computed(()=>{if(e.multiple&&!Ca(e.modelValue))return ba(e.modelValue).length===0&&!s.inputValue;const j=Yn(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||Ca(j)?!s.inputValue:!0}),pe=o.computed(()=>{var j;const re=(j=e.placeholder)!=null?j:n("el.select.placeholder");return e.multiple||!V.value?re:s.selectedLabel}),xe=o.computed(()=>m0?null:"mouseenter");o.watch(()=>e.modelValue,(j,re)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(s.inputValue="",ge("")),Ne(),!lf(j,re)&&e.validateEvent&&(N==null||N.validate("change").catch(_e=>Wt(_e)))},{flush:"post",deep:!0}),o.watch(()=>_.value,j=>{j?ge(s.inputValue):(s.inputValue="",s.previousQuery=null,s.isBeforeHide=!0),t("visible-change",j)}),o.watch(()=>s.options.entries(),()=>{var j;if(!qt)return;const re=((j=l.value)==null?void 0:j.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!Ca(e.modelValue)||!Array.from(re).includes(document.activeElement))&&Ne(),e.defaultFirstOption&&(e.filterable||e.remote)&&de.value&&ke()},{flush:"post"}),o.watch(()=>s.hoveringIndex,j=>{pn(j)&&j>-1?O.value=ne.value[j]||{}:O.value={},ne.value.forEach(re=>{re.hover=O.value===re})}),o.watchEffect(()=>{s.isBeforeHide||W()});const ge=j=>{s.previousQuery===j||x.value||(s.previousQuery=j,e.filterable&&Rn(e.filterMethod)?e.filterMethod(j):e.filterable&&e.remote&&Rn(e.remoteMethod)&&e.remoteMethod(j),e.defaultFirstOption&&(e.filterable||e.remote)&&de.value?o.nextTick(ke):o.nextTick(Se))},ke=()=>{const j=ne.value.filter(Le=>Le.visible&&!Le.disabled&&!Le.states.groupDisabled),re=j.find(Le=>Le.created),_e=j[0];s.hoveringIndex=fe(ne.value,re||_e)},Ne=()=>{if(e.multiple)s.selectedLabel="";else{const re=Yn(e.modelValue)?e.modelValue[0]:e.modelValue,_e=Ie(re);s.selectedLabel=_e.currentLabel,s.selected=[_e];return}const j=[];Ca(e.modelValue)||ba(e.modelValue).forEach(re=>{j.push(Ie(re))}),s.selected=j},Ie=j=>{let re;const _e=y0(j).toLowerCase()==="object",Le=y0(j).toLowerCase()==="null",Lt=y0(j).toLowerCase()==="undefined";for(let An=s.cachedOptions.size-1;An>=0;An--){const Yt=oe.value[An];if(_e?jo(Yt.value,e.valueKey)===jo(j,e.valueKey):Yt.value===j){re={value:j,currentLabel:Yt.currentLabel,get isDisabled(){return Yt.isDisabled}};break}}if(re)return re;const kn=_e?j.label:!Le&&!Lt?j:"";return{value:j,currentLabel:kn}},Se=()=>{s.hoveringIndex=ne.value.findIndex(j=>s.selected.some(re=>Rt(re)===Rt(j)))},Re=()=>{s.selectionWidth=d.value.getBoundingClientRect().width},Ve=()=>{s.calculatorWidth=h.value.getBoundingClientRect().width},ze=()=>{s.collapseItemWidth=y.value.getBoundingClientRect().width},B=()=>{var j,re;(re=(j=c.value)==null?void 0:j.updatePopper)==null||re.call(j)},L=()=>{var j,re;(re=(j=u.value)==null?void 0:j.updatePopper)==null||re.call(j)},Y=()=>{s.inputValue.length>0&&!_.value&&(_.value=!0),ge(s.inputValue)},Q=j=>{if(s.inputValue=j.target.value,e.remote)ee();else return Y()},ee=xk(()=>{Y()},te.value),he=j=>{lf(e.modelValue,j)||t(R0,j)},ae=j=>bX(j,re=>!s.disabledOptions.has(re)),ye=j=>{if(e.multiple&&j.code!==tn.delete&&j.target.value.length<=0){const re=ba(e.modelValue).slice(),_e=ae(re);if(_e<0)return;const Le=re[_e];re.splice(_e,1),t(hn,re),he(re),t("remove-tag",Le)}},Fe=(j,re)=>{const _e=s.selected.indexOf(re);if(_e>-1&&!P.value){const Le=ba(e.modelValue).slice();Le.splice(_e,1),t(hn,Le),he(Le),t("remove-tag",re.value)}j.stopPropagation(),ft()},De=j=>{j.stopPropagation();const re=e.multiple?[]:$.value;if(e.multiple)for(const _e of s.selected)_e.isDisabled&&re.push(_e.value);t(hn,re),he(re),s.hoveringIndex=-1,_.value=!1,t("clear"),ft()},K=j=>{var re;if(e.multiple){const _e=ba((re=e.modelValue)!=null?re:[]).slice(),Le=fe(_e,j.value);Le>-1?_e.splice(Le,1):(e.multipleLimit<=0||_e.length{ie(j)})},fe=(j=[],re)=>{if(!fn(re))return j.indexOf(re);const _e=e.valueKey;let Le=-1;return j.some((Lt,kn)=>o.toRaw(jo(Lt,_e))===jo(re,_e)?(Le=kn,!0):!1),Le},ie=j=>{var re,_e,Le,Lt,kn;const An=Yn(j)?j[0]:j;let Yt=null;if(An!=null&&An.value){const Pt=ne.value.filter(Eo=>Eo.value===An.value);Pt.length>0&&(Yt=Pt[0].$el)}if(c.value&&Yt){const Pt=(Lt=(Le=(_e=(re=c.value)==null?void 0:re.popperRef)==null?void 0:_e.contentRef)==null?void 0:Le.querySelector)==null?void 0:Lt.call(Le,`.${a.be("dropdown","wrap")}`);Pt&&TX(Pt,Yt)}(kn=b.value)==null||kn.handleScroll()},we=j=>{s.options.set(j.value,j),s.cachedOptions.set(j.value,j),j.disabled&&s.disabledOptions.set(j.value,j)},nt=(j,re)=>{s.options.get(j)===re&&s.options.delete(j)},Qe=o.computed(()=>{var j,re;return(re=(j=c.value)==null?void 0:j.popperRef)==null?void 0:re.contentRef}),lt=()=>{s.isBeforeHide=!1,o.nextTick(()=>ie(s.selected))},ft=()=>{var j;(j=f.value)==null||j.focus()},yt=()=>{var j;(j=f.value)==null||j.blur()},Kt=j=>{De(j)},Tt=()=>{_.value=!1,S.value&&yt()},Nt=()=>{s.inputValue.length>0?s.inputValue="":_.value=!1},Gt=()=>{P.value||(m0&&(s.inputHovering=!0),s.menuVisibleOnFocus?s.menuVisibleOnFocus=!1:_.value=!_.value)},Xt=()=>{_.value?ne.value[s.hoveringIndex]&&K(ne.value[s.hoveringIndex]):Gt()},Rt=j=>fn(j.value)?jo(j.value,e.valueKey):j.value,$n=o.computed(()=>ne.value.filter(j=>j.visible).every(j=>j.disabled)),xn=o.computed(()=>e.multiple?e.collapseTags?s.selected.slice(0,e.maxCollapseTags):s.selected:[]),Cn=o.computed(()=>e.multiple?e.collapseTags?s.selected.slice(e.maxCollapseTags):[]:[]),vt=j=>{if(!_.value){_.value=!0;return}if(!(s.options.size===0||s.filteredOptionsCount===0||x.value)&&!$n.value){j==="next"?(s.hoveringIndex++,s.hoveringIndex===s.options.size&&(s.hoveringIndex=0)):j==="prev"&&(s.hoveringIndex--,s.hoveringIndex<0&&(s.hoveringIndex=s.options.size-1));const re=ne.value[s.hoveringIndex];(re.disabled===!0||re.states.groupDisabled===!0||!re.visible)&&vt(j),o.nextTick(()=>ie(O.value))}},Ot=()=>{if(!d.value)return 0;const j=window.getComputedStyle(d.value);return Number.parseFloat(j.gap||"6px")},Vt=o.computed(()=>{const j=Ot();return{maxWidth:`${y.value&&e.maxCollapseTags===1?s.selectionWidth-s.collapseItemWidth-j:s.selectionWidth}px`}}),Fn=o.computed(()=>({maxWidth:`${s.selectionWidth}px`})),ko=o.computed(()=>({width:`${Math.max(s.calculatorWidth,bte)}px`}));return Lo(d,Re),Lo(h,Ve),Lo(g,B),Lo(E,B),Lo(v,L),Lo(y,ze),o.onMounted(()=>{Ne()}),{inputId:F,contentId:r,nsSelect:a,nsInput:i,states:s,isFocused:S,expanded:_,optionsArray:ne,hoverOption:O,selectSize:Z,filteredOptionsCount:de,resetCalculatorWidth:Ve,updateTooltip:B,updateTagTooltip:L,debouncedOnInputChange:ee,onInput:Q,deletePrevTag:ye,deleteTag:Fe,deleteSelected:De,handleOptionSelect:K,scrollToOption:ie,hasModelValue:V,shouldShowPlaceholder:Be,currentPlaceholder:pe,mouseEnterEventName:xe,showClose:I,iconComponent:z,iconReverse:G,validateState:q,validateIcon:X,showNewOption:U,updateOptions:W,collapseTagSize:ue,setSelected:Ne,selectDisabled:P,emptyText:le,handleCompositionStart:w,handleCompositionUpdate:k,handleCompositionEnd:C,onOptionCreate:we,onOptionDestroy:nt,handleMenuEnter:lt,focus:ft,blur:yt,handleClearClick:Kt,handleClickOutside:Tt,handleEsc:Nt,toggleMenu:Gt,selectOption:Xt,getValueKey:Rt,navigateOptions:vt,dropdownMenuVisible:be,showTagList:xn,collapseTagList:Cn,tagStyle:Vt,collapseTagStyle:Fn,inputStyle:ko,popperRef:Qe,inputRef:f,tooltipRef:c,tagTooltipRef:u,calculatorRef:h,prefixRef:m,suffixRef:p,selectRef:l,wrapperRef:E,selectionRef:d,scrollbarRef:b,menuRef:g,tagMenuRef:v,collapseItemRef:y}};var xte=o.defineComponent({name:"ElOptions",setup(e,{slots:t}){const n=o.inject(Fc);let r=[];return()=>{var a,i;const s=(a=t.default)==null?void 0:a.call(t),l=[];function d(c){Yn(c)&&c.forEach(u=>{var f,h,m,p;const g=(f=(u==null?void 0:u.type)||{})==null?void 0:f.name;g==="ElOptionGroup"?d(!Sn(u.children)&&!Yn(u.children)&&Rn((h=u.children)==null?void 0:h.default)?(m=u.children)==null?void 0:m.default():u.children):g==="ElOption"?l.push((p=u.props)==null?void 0:p.value):Yn(u.children)&&d(u.children)})}return s.length&&d((i=s[0])==null?void 0:i.children),lf(l,r)||(r=l,n&&(n.states.optionValues=l)),s}}});const Cte=ct({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:Fs,effect:{type:je(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:je(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:Qn.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:ka,default:D0},fitInputWidth:Boolean,suffixIcon:{type:ka,default:I0},tagType:{...pg.type,default:"info"},tagEffect:{...pg.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,placement:{type:je(String),values:hf,default:"bottom-start"},fallbackPlacements:{type:je(Array),default:["bottom-start","top-start","right","left"]},appendTo:String,...RZ,...Sa(["ariaLabel"])}),aS="ElSelect",kte=o.defineComponent({name:aS,componentName:aS,components:{ElSelectMenu:vte,ElOption:bg,ElOptions:xte,ElTag:cee,ElScrollbar:pJ,ElTooltip:Nc,ElIcon:_n},directives:{ClickOutside:LE},props:Cte,emits:[hn,R0,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=o.computed(()=>{const{modelValue:i,multiple:s}=e,l=s?[]:void 0;return Yn(i)?s?i:l:s?l:i}),r=o.reactive({...o.toRefs(e),modelValue:n}),a=wte(r,t);return o.provide(Fc,o.reactive({props:r,states:a.states,optionsArray:a.optionsArray,handleOptionSelect:a.handleOptionSelect,onOptionCreate:a.onOptionCreate,onOptionDestroy:a.onOptionDestroy,selectRef:a.selectRef,setSelected:a.setSelected})),{...a,modelValue:n}}});function Ete(e,t,n,r,a,i){const s=o.resolveComponent("el-tag"),l=o.resolveComponent("el-tooltip"),d=o.resolveComponent("el-icon"),c=o.resolveComponent("el-option"),u=o.resolveComponent("el-options"),f=o.resolveComponent("el-scrollbar"),h=o.resolveComponent("el-select-menu"),m=o.resolveDirective("click-outside");return o.withDirectives((o.openBlock(),o.createElementBlock("div",{ref:"selectRef",class:o.normalizeClass([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[o.toHandlerKey(e.mouseEnterEventName)]:p=>e.states.inputHovering=!0,onMouseleave:p=>e.states.inputHovering=!1},[o.createVNode(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,"append-to":e.appendTo,onBeforeShow:e.handleMenuEnter,onHide:p=>e.states.isBeforeHide=!1},{default:o.withCtx(()=>{var p;return[o.createElementVNode("div",{ref:"wrapperRef",class:o.normalizeClass([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:o.withModifiers(e.toggleMenu,["prevent"])},[e.$slots.prefix?(o.openBlock(),o.createElementBlock("div",{key:0,ref:"prefixRef",class:o.normalizeClass(e.nsSelect.e("prefix"))},[o.renderSlot(e.$slots,"prefix")],2)):o.createCommentVNode("v-if",!0),o.createElementVNode("div",{ref:"selectionRef",class:o.normalizeClass([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?o.renderSlot(e.$slots,"tag",{key:0},()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.showTagList,g=>(o.openBlock(),o.createElementBlock("div",{key:e.getValueKey(g),class:o.normalizeClass(e.nsSelect.e("selected-item"))},[o.createVNode(s,{closable:!e.selectDisabled&&!g.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:o.normalizeStyle(e.tagStyle),onClose:v=>e.deleteTag(v,g)},{default:o.withCtx(()=>[o.createElementVNode("span",{class:o.normalizeClass(e.nsSelect.e("tags-text"))},[o.renderSlot(e.$slots,"label",{label:g.currentLabel,value:g.value},()=>[o.createTextVNode(o.toDisplayString(g.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(o.openBlock(),o.createBlock(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:o.withCtx(()=>[o.createElementVNode("div",{ref:"collapseItemRef",class:o.normalizeClass(e.nsSelect.e("selected-item"))},[o.createVNode(s,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:o.normalizeStyle(e.collapseTagStyle)},{default:o.withCtx(()=>[o.createElementVNode("span",{class:o.normalizeClass(e.nsSelect.e("tags-text"))}," + "+o.toDisplayString(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:o.withCtx(()=>[o.createElementVNode("div",{ref:"tagMenuRef",class:o.normalizeClass(e.nsSelect.e("selection"))},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.collapseTagList,g=>(o.openBlock(),o.createElementBlock("div",{key:e.getValueKey(g),class:o.normalizeClass(e.nsSelect.e("selected-item"))},[o.createVNode(s,{class:"in-tooltip",closable:!e.selectDisabled&&!g.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:v=>e.deleteTag(v,g)},{default:o.withCtx(()=>[o.createElementVNode("span",{class:o.normalizeClass(e.nsSelect.e("tags-text"))},[o.renderSlot(e.$slots,"label",{label:g.currentLabel,value:g.value},()=>[o.createTextVNode(o.toDisplayString(g.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):o.createCommentVNode("v-if",!0)]):o.createCommentVNode("v-if",!0),e.selectDisabled?o.createCommentVNode("v-if",!0):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[o.withDirectives(o.createElementVNode("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":g=>e.states.inputValue=g,type:"text",name:e.name,class:o.normalizeClass([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:o.normalizeStyle(e.inputStyle),role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((p=e.hoverOption)==null?void 0:p.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[o.withKeys(o.withModifiers(g=>e.navigateOptions("next"),["stop","prevent"]),["down"]),o.withKeys(o.withModifiers(g=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),o.withKeys(o.withModifiers(e.handleEsc,["stop","prevent"]),["esc"]),o.withKeys(o.withModifiers(e.selectOption,["stop","prevent"]),["enter"]),o.withKeys(o.withModifiers(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:o.withModifiers(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"]),[[o.vModelText,e.states.inputValue]]),e.filterable?(o.openBlock(),o.createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:o.normalizeClass(e.nsSelect.e("input-calculator")),textContent:o.toDisplayString(e.states.inputValue)},null,10,["textContent"])):o.createCommentVNode("v-if",!0)],2)),e.shouldShowPlaceholder?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?o.renderSlot(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[o.createElementVNode("span",null,o.toDisplayString(e.currentPlaceholder),1)]):(o.openBlock(),o.createElementBlock("span",{key:1},o.toDisplayString(e.currentPlaceholder),1))],2)):o.createCommentVNode("v-if",!0)],2),o.createElementVNode("div",{ref:"suffixRef",class:o.normalizeClass(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(o.openBlock(),o.createBlock(d,{key:0,class:o.normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):o.createCommentVNode("v-if",!0),e.showClose&&e.clearIcon?(o.openBlock(),o.createBlock(d,{key:1,class:o.normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.clearIcon)))]),_:1},8,["class","onClick"])):o.createCommentVNode("v-if",!0),e.validateState&&e.validateIcon?(o.openBlock(),o.createBlock(d,{key:2,class:o.normalizeClass([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.validateIcon)))]),_:1},8,["class"])):o.createCommentVNode("v-if",!0)],2)],10,["onClick"])]}),content:o.withCtx(()=>[o.createVNode(h,{ref:"menuRef"},{default:o.withCtx(()=>[e.$slots.header?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(e.nsSelect.be("dropdown","header")),onClick:o.withModifiers(()=>{},["stop"])},[o.renderSlot(e.$slots,"header")],10,["onClick"])):o.createCommentVNode("v-if",!0),o.withDirectives(o.createVNode(f,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:o.normalizeClass([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:o.withCtx(()=>[e.showNewOption?(o.openBlock(),o.createBlock(c,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):o.createCommentVNode("v-if",!0),o.createVNode(u,null,{default:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[o.vShow,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(e.nsSelect.be("dropdown","loading"))},[o.renderSlot(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(e.nsSelect.be("dropdown","empty"))},[o.renderSlot(e.$slots,"empty",{},()=>[o.createElementVNode("span",null,o.toDisplayString(e.emptyText),1)])],2)):o.createCommentVNode("v-if",!0),e.$slots.footer?(o.openBlock(),o.createElementBlock("div",{key:3,class:o.normalizeClass(e.nsSelect.be("dropdown","footer")),onClick:o.withModifiers(()=>{},["stop"])},[o.renderSlot(e.$slots,"footer")],10,["onClick"])):o.createCommentVNode("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","append-to","onBeforeShow","onHide"])],16,["onMouseleave"])),[[m,e.handleClickOutside,e.popperRef]])}var Ste=Ge(kte,[["render",Ete],["__file","select.vue"]]);const _te=o.defineComponent({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Ye("select"),n=o.ref(null),r=o.getCurrentInstance(),a=o.ref([]);o.provide(oS,o.reactive({...o.toRefs(e)}));const i=o.computed(()=>a.value.some(c=>c.visible===!0)),s=c=>{var u,f;return((u=c.type)==null?void 0:u.name)==="ElOption"&&!!((f=c.component)!=null&&f.proxy)},l=c=>{const u=ba(c),f=[];return u.forEach(h=>{var m,p;s(h)?f.push(h.component.proxy):(m=h.children)!=null&&m.length?f.push(...l(h.children)):(p=h.component)!=null&&p.subTree&&f.push(...l(h.component.subTree))}),f},d=()=>{a.value=l(r.subTree)};return o.onMounted(()=>{d()}),xq(n,d,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:i,ns:t}}});function Bte(e,t,n,r,a,i){return o.withDirectives((o.openBlock(),o.createElementBlock("ul",{ref:"groupRef",class:o.normalizeClass(e.ns.be("group","wrap"))},[o.createElementVNode("li",{class:o.normalizeClass(e.ns.be("group","title"))},o.toDisplayString(e.label),3),o.createElementVNode("li",null,[o.createElementVNode("ul",{class:o.normalizeClass(e.ns.b("group"))},[o.renderSlot(e.$slots,"default")],2)])],2)),[[o.vShow,e.visible]])}var iS=Ge(_te,[["render",Bte],["__file","option-group.vue"]]);const Tte=ln(Ste,{Option:bg,OptionGroup:iS}),Nte=Uo(bg);Uo(iS);const Ote=ct({trigger:Tc.trigger,placement:vg.placement,disabled:Tc.disabled,visible:Qn.visible,transition:Qn.transition,popperOptions:vg.popperOptions,tabindex:vg.tabindex,content:Qn.content,popperStyle:Qn.popperStyle,popperClass:Qn.popperClass,enterable:{...Qn.enterable,default:!0},effect:{...Qn.effect,default:"light"},teleported:Qn.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}}),Pte={"update:visible":e=>Es(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},$te="onUpdate:visible",Fte=o.defineComponent({name:"ElPopover"}),Ate=o.defineComponent({...Fte,props:Ote,emits:Pte,setup(e,{expose:t,emit:n}){const r=e,a=o.computed(()=>r[$te]),i=Ye("popover"),s=o.ref(),l=o.computed(()=>{var v;return(v=o.unref(s))==null?void 0:v.popperRef}),d=o.computed(()=>[{width:Ss(r.width)},r.popperStyle]),c=o.computed(()=>[i.b(),r.popperClass,{[i.m("plain")]:!!r.content}]),u=o.computed(()=>r.transition===`${i.namespace.value}-fade-in-linear`),f=()=>{var v;(v=s.value)==null||v.hide()},h=()=>{n("before-enter")},m=()=>{n("before-leave")},p=()=>{n("after-enter")},g=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:l,hide:f}),(v,y)=>(o.openBlock(),o.createBlock(o.unref(Nc),o.mergeProps({ref_key:"tooltipRef",ref:s},v.$attrs,{trigger:v.trigger,placement:v.placement,disabled:v.disabled,visible:v.visible,transition:v.transition,"popper-options":v.popperOptions,tabindex:v.tabindex,content:v.content,offset:v.offset,"show-after":v.showAfter,"hide-after":v.hideAfter,"auto-close":v.autoClose,"show-arrow":v.showArrow,"aria-label":v.title,effect:v.effect,enterable:v.enterable,"popper-class":o.unref(c),"popper-style":o.unref(d),teleported:v.teleported,persistent:v.persistent,"gpu-acceleration":o.unref(u),"onUpdate:visible":o.unref(a),onBeforeShow:h,onBeforeHide:m,onShow:p,onHide:g}),{content:o.withCtx(()=>[v.title?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(o.unref(i).e("title")),role:"title"},o.toDisplayString(v.title),3)):o.createCommentVNode("v-if",!0),o.renderSlot(v.$slots,"default",{},()=>[o.createTextVNode(o.toDisplayString(v.content),1)])]),default:o.withCtx(()=>[v.$slots.reference?o.renderSlot(v.$slots,"reference",{key:0}):o.createCommentVNode("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 Ite=Ge(Ate,[["__file","popover.vue"]]);const sS=(e,t)=>{const n=t.arg||t.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=e)};var Dte={mounted(e,t){sS(e,t)},updated(e,t){sS(e,t)}};const Vte="popover",Rte=lY(Dte,Vte);ln(Ite,{directive:Rte});const Rs="$treeNodeId",lS=function(e,t){!t||t[Rs]||Object.defineProperty(t,Rs,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},wg=function(e,t){return e?t[e]:t[Rs]},xg=(e,t,n)=>{const r=e.value.currentNode;n();const a=e.value.currentNode;r!==a&&t("current-change",a?a.data:null,a)},Cg=e=>{let t=!0,n=!0,r=!0;for(let a=0,i=e.length;a"u"){const i=r[t];return i===void 0?"":i}};let Lte=0;class _i{constructor(t){this.id=Lte++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in t)pi(t,n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const n=t.props;if(n&&typeof n.isLeaf<"u"){const i=Nf(this,"isLeaf");typeof i=="boolean"&&(this.isLeafByUser=i)}if(t.lazy!==!0&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&!this.isLeafByUser&&this.expand(),Array.isArray(this.data)||lS(this,this.data),!this.data)return;const r=t.defaultExpandedKeys,a=t.key;a&&r&&r.includes(this.key)&&this.expand(null,t.autoExpandParent),a&&t.currentNodeKey!==void 0&&this.key===t.currentNodeKey&&(t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(t){Array.isArray(t)||lS(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Array.isArray(this.data)?n=this.data:n=Nf(this,"children")||[];for(let r=0,a=n.length;r-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(r=>r===t||n&&r.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,r){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof _i)){if(!r){const a=this.getChildren(!0);a.includes(t.data)||(typeof n>"u"||n<0?a.push(t.data):a.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=o.reactive(new _i(t)),t instanceof _i&&t.initialize()}t.level=this.level+1,typeof n>"u"||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let r;n&&(r=this.childNodes.indexOf(n)),this.insertChild(t,r)}insertAfter(t,n){let r;n&&(r=this.childNodes.indexOf(n),r!==-1&&(r+=1)),this.insertChild(t,r)}removeChild(t){const n=this.getChildren()||[],r=n.indexOf(t.data);r>-1&&n.splice(r,1);const a=this.childNodes.indexOf(t);a>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(a,1)),this.updateLeafState()}removeChildByData(t){let n=null;for(let r=0;r{if(n){let a=this.parent;for(;a.level>0;)a.expanded=!0,a=a.parent}this.expanded=!0,t&&t(),this.childNodes.forEach(a=>{a.canFocus=!0})};this.shouldLoadData()?this.loadData(a=>{Array.isArray(a)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||Ac(this),r())}):r()}doCreateChildren(t,n={}){t.forEach(r=>{this.insertChild(Object.assign({data:r},n),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(t=>{t.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0;return}this.isLeaf=!1}setChecked(t,n,r,a){if(this.indeterminate=t==="half",this.checked=t===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:s,allWithoutDisable:l}=Cg(this.childNodes);!this.isLeaf&&!s&&l&&(this.checked=!1,t=!1);const d=()=>{if(n){const c=this.childNodes;for(let h=0,m=c.length;h{d(),Ac(this)},{checked:t!==!1});return}else d()}const i=this.parent;!i||i.level===0||r||Ac(i)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const r=this.store.props;let a="children";return r&&(a=r.children||"children"),n[a]===void 0&&(n[a]=null),t&&!n[a]&&(n[a]=[]),n[a]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(i=>i.data),r={},a=[];t.forEach((i,s)=>{const l=i[Rs];l&&n.findIndex(d=>d[Rs]===l)>=0?r[l]={index:s,data:i}:a.push({index:s,data:i})}),this.store.lazy||n.forEach(i=>{r[i[Rs]]||this.removeChildByData(i)}),a.forEach(({index:i,data:s})=>{this.insertChild({data:s},i)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const r=i=>{this.childNodes=[],this.doCreateChildren(i,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,i)},a=()=>{this.loading=!1};this.store.load(this,r,a)}else t&&t.call(this)}eachNode(t){const n=[this];for(;n.length;){const r=n.shift();n.unshift(...r.childNodes),t(r)}}reInitChecked(){this.store.checkStrictly||Ac(this)}}class Mte{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const n in t)pi(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new _i({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(t){const n=this.filterNodeMethod,r=this.lazy,a=function(i){const s=i.root?i.root.childNodes:i.childNodes;if(s.forEach(l=>{l.visible=n.call(l,t,l.data,l),a(l)}),!i.visible&&s.length){let l=!0;l=!s.some(d=>d.visible),i.root?i.root.visible=l===!1:i.visible=l===!1}t&&i.visible&&!i.isLeaf&&(!r||i.loaded)&&i.expand()};a(this)}setData(t){t!==this.root.data?(this.nodesMap={},this.root.setData(t),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(t){if(t instanceof _i)return t;const n=fn(t)?wg(this.key,t):t;return this.nodesMap[n]||null}insertBefore(t,n){const r=this.getNode(n);r.parent.insertBefore({data:t},r)}insertAfter(t,n){const r=this.getNode(n);r.parent.insertAfter({data:t},r)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const r=cf(n)?this.root:this.getNode(n);r&&r.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(r=>{const a=n[r];a&&a.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){(this.defaultCheckedKeys||[]).includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const n=this.key;!t||!t.data||(n?t.key!==void 0&&(this.nodesMap[t.key]=t):this.nodesMap[t.id]=t)}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(n=>{this.deregisterNode(n)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const r=[],a=function(i){(i.root?i.root.childNodes:i.childNodes).forEach(s=>{(s.checked||n&&s.indeterminate)&&(!t||t&&s.isLeaf)&&r.push(s.data),a(s)})};return a(this),r}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(r){(r.root?r.root.childNodes:r.childNodes).forEach(a=>{a.indeterminate&&t.push(a.data),n(a)})};return n(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],n=this.nodesMap;for(const r in n)pi(n,r)&&t.push(n[r]);return t}updateChildren(t,n){const r=this.nodesMap[t];if(!r)return;const a=r.childNodes;for(let i=a.length-1;i>=0;i--){const s=a[i];this.remove(s.data)}for(let i=0,s=n.length;id.level-c.level),i=Object.create(null),s=Object.keys(r);a.forEach(d=>d.setChecked(!1,!1));const l=d=>{d.childNodes.forEach(c=>{var u;i[c.data[t]]=!0,(u=c.childNodes)!=null&&u.length&&l(c)})};for(let d=0,c=a.length;d{p.isLeaf||p.setChecked(!1,!1),h(p)})};h(u)}}}setCheckedNodes(t,n=!1){const r=this.key,a={};t.forEach(i=>{a[(i||{})[r]]=!0}),this._setCheckedKeys(r,n,a)}setCheckedKeys(t,n=!1){this.defaultCheckedKeys=t;const r=this.key,a={};t.forEach(i=>{a[i]=!0}),this._setCheckedKeys(r,n,a)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(n=>{const r=this.getNode(n);r&&r.expand(null,this.autoExpandParent)})}setChecked(t,n,r){const a=this.getNode(t);a&&a.setChecked(!!n,r)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,n=!0){const r=t[this.key],a=this.nodesMap[r];this.setCurrentNode(a),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(t,n=!0){if(t==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const r=this.getNode(t);r&&(this.setCurrentNode(r),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const zte=o.defineComponent({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=Ye("tree"),n=o.inject("NodeInstance"),r=o.inject("RootTree");return()=>{const a=e.node,{data:i,store:s}=a;return e.renderContent?e.renderContent(o.h,{_self:n,node:a,data:i,store:s}):o.renderSlot(r.ctx.slots,"default",{node:a,data:i},()=>[o.h("span",{class:t.be("node","label")},[a.label])])}}});var jte=Ge(zte,[["__file","tree-node-content.vue"]]);function cS(e){const t=o.inject("TreeNodeMap",null),n={treeNodeExpand:r=>{e.node!==r&&e.node.collapse()},children:[]};return t&&t.children.push(n),o.provide("TreeNodeMap",n),{broadcastExpanded:r=>{if(e.accordion)for(const a of n.children)a.treeNodeExpand(r)}}}const dS=Symbol("dragEvents");function Hte({props:e,ctx:t,el$:n,dropIndicator$:r,store:a}){const i=Ye("tree"),s=o.ref({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return o.provide(dS,{treeNodeDragStart:({event:l,treeNode:d})=>{if(typeof e.allowDrag=="function"&&!e.allowDrag(d.node))return l.preventDefault(),!1;l.dataTransfer.effectAllowed="move";try{l.dataTransfer.setData("text/plain","")}catch{}s.value.draggingNode=d,t.emit("node-drag-start",d.node,l)},treeNodeDragOver:({event:l,treeNode:d})=>{const c=d,u=s.value.dropNode;u&&u.node.id!==c.node.id&&vi(u.$el,i.is("drop-inner"));const f=s.value.draggingNode;if(!f||!c)return;let h=!0,m=!0,p=!0,g=!0;typeof e.allowDrop=="function"&&(h=e.allowDrop(f.node,c.node,"prev"),g=m=e.allowDrop(f.node,c.node,"inner"),p=e.allowDrop(f.node,c.node,"next")),l.dataTransfer.dropEffect=m||h||p?"move":"none",(h||m||p)&&(u==null?void 0:u.node.id)!==c.node.id&&(u&&t.emit("node-drag-leave",f.node,u.node,l),t.emit("node-drag-enter",f.node,c.node,l)),h||m||p?s.value.dropNode=c:s.value.dropNode=null,c.node.nextSibling===f.node&&(p=!1),c.node.previousSibling===f.node&&(h=!1),c.node.contains(f.node,!1)&&(m=!1),(f.node===c.node||f.node.contains(c.node))&&(h=!1,m=!1,p=!1);const v=c.$el.querySelector(`.${i.be("node","content")}`).getBoundingClientRect(),y=n.value.getBoundingClientRect();let b;const x=h?m?.25:p?.45:1:-1,w=p?m?.75:h?.55:0:1;let k=-9999;const C=l.clientY-v.top;Cv.height*w?b="after":m?b="inner":b="none";const E=c.$el.querySelector(`.${i.be("node","expand-icon")}`).getBoundingClientRect(),S=r.value;b==="before"?k=E.top-y.top:b==="after"&&(k=E.bottom-y.top),S.style.top=`${k}px`,S.style.left=`${E.right-y.left}px`,b==="inner"?A0(c.$el,i.is("drop-inner")):vi(c.$el,i.is("drop-inner")),s.value.showDropIndicator=b==="before"||b==="after",s.value.allowDrop=s.value.showDropIndicator||g,s.value.dropType=b,t.emit("node-drag-over",f.node,c.node,l)},treeNodeDragEnd:l=>{const{draggingNode:d,dropType:c,dropNode:u}=s.value;if(l.preventDefault(),l.dataTransfer&&(l.dataTransfer.dropEffect="move"),d&&u){const f={data:d.node.data};c!=="none"&&d.node.remove(),c==="before"?u.node.parent.insertBefore(f,u.node):c==="after"?u.node.parent.insertAfter(f,u.node):c==="inner"&&u.node.insertChild(f),c!=="none"&&(a.value.registerNode(f),a.value.key&&d.node.eachNode(h=>{var m;(m=a.value.nodesMap[h.data[a.value.key]])==null||m.setChecked(h.checked,!a.value.checkStrictly)})),vi(u.$el,i.is("drop-inner")),t.emit("node-drag-end",d.node,u.node,c,l),c!=="none"&&t.emit("node-drop",d.node,u.node,c,l)}d&&!u&&t.emit("node-drag-end",d.node,null,c,l),s.value.showDropIndicator=!1,s.value.draggingNode=null,s.value.dropNode=null,s.value.allowDrop=!0}}),{dragState:s}}const Ute=o.defineComponent({name:"ElTreeNode",components:{ElCollapseTransition:kee,ElCheckbox:oee,NodeContent:jte,ElIcon:_n,Loading:V0},props:{node:{type:_i,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const n=Ye("tree"),{broadcastExpanded:r}=cS(e),a=o.inject("RootTree"),i=o.ref(!1),s=o.ref(!1),l=o.ref(null),d=o.ref(null),c=o.ref(null),u=o.inject(dS),f=o.getCurrentInstance();o.provide("NodeInstance",f),a||Wt("Tree","Can not find node's tree."),e.node.expanded&&(i.value=!0,s.value=!0);const h=a.props.props.children||"children";o.watch(()=>{const w=e.node.data[h];return w&&[...w]},()=>{e.node.updateChildren()}),o.watch(()=>e.node.indeterminate,w=>{g(e.node.checked,w)}),o.watch(()=>e.node.checked,w=>{g(w,e.node.indeterminate)}),o.watch(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),o.watch(()=>e.node.expanded,w=>{o.nextTick(()=>i.value=w),w&&(s.value=!0)});const m=w=>wg(a.props.nodeKey,w.data),p=w=>{const k=e.props.class;if(!k)return{};let C;if(Rn(k)){const{data:E}=w;C=k(E,w)}else C=k;return Sn(C)?{[C]:!0}:C},g=(w,k)=>{(l.value!==w||d.value!==k)&&a.ctx.emit("check-change",e.node.data,w,k),l.value=w,d.value=k},v=w=>{xg(a.store,a.ctx.emit,()=>a.store.value.setCurrentNode(e.node)),a.currentNode.value=e.node,a.props.expandOnClickNode&&b(),a.props.checkOnClickNode&&!e.node.disabled&&x(null,{target:{checked:!e.node.checked}}),a.ctx.emit("node-click",e.node.data,e.node,f,w)},y=w=>{a.instance.vnode.props.onNodeContextmenu&&(w.stopPropagation(),w.preventDefault()),a.ctx.emit("node-contextmenu",w,e.node.data,e.node,f)},b=()=>{e.node.isLeaf||(i.value?(a.ctx.emit("node-collapse",e.node.data,e.node,f),e.node.collapse()):e.node.expand(()=>{t.emit("node-expand",e.node.data,e.node,f)}))},x=(w,k)=>{e.node.setChecked(k.target.checked,!a.props.checkStrictly),o.nextTick(()=>{const C=a.store.value;a.ctx.emit("check",e.node.data,{checkedNodes:C.getCheckedNodes(),checkedKeys:C.getCheckedKeys(),halfCheckedNodes:C.getHalfCheckedNodes(),halfCheckedKeys:C.getHalfCheckedKeys()})})};return{ns:n,node$:c,tree:a,expanded:i,childNodeRendered:s,oldChecked:l,oldIndeterminate:d,getNodeKey:m,getNodeClass:p,handleSelectChange:g,handleClick:v,handleContextMenu:y,handleExpandIconClick:b,handleCheckChange:x,handleChildNodeExpand:(w,k,C)=>{r(k),a.ctx.emit("node-expand",w,k,C)},handleDragStart:w=>{a.props.draggable&&u.treeNodeDragStart({event:w,treeNode:e})},handleDragOver:w=>{w.preventDefault(),a.props.draggable&&u.treeNodeDragOver({event:w,treeNode:{$el:c.value,node:e.node}})},handleDrop:w=>{w.preventDefault()},handleDragEnd:w=>{a.props.draggable&&u.treeNodeDragEnd(w)},CaretRight:IX}}});function qte(e,t,n,r,a,i){const s=o.resolveComponent("el-icon"),l=o.resolveComponent("el-checkbox"),d=o.resolveComponent("loading"),c=o.resolveComponent("node-content"),u=o.resolveComponent("el-tree-node"),f=o.resolveComponent("el-collapse-transition");return o.withDirectives((o.openBlock(),o.createElementBlock("div",{ref:"node$",class:o.normalizeClass([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:o.withModifiers(e.handleClick,["stop"]),onContextmenu:e.handleContextMenu,onDragstart:o.withModifiers(e.handleDragStart,["stop"]),onDragover:o.withModifiers(e.handleDragOver,["stop"]),onDragend:o.withModifiers(e.handleDragEnd,["stop"]),onDrop:o.withModifiers(e.handleDrop,["stop"])},[o.createElementVNode("div",{class:o.normalizeClass(e.ns.be("node","content")),style:o.normalizeStyle({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(o.openBlock(),o.createBlock(s,{key:0,class:o.normalizeClass([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:o.withModifiers(e.handleExpandIconClick,["stop"])},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):o.createCommentVNode("v-if",!0),e.showCheckbox?(o.openBlock(),o.createBlock(l,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:o.withModifiers(()=>{},["stop"]),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onClick","onChange"])):o.createCommentVNode("v-if",!0),e.node.loading?(o.openBlock(),o.createBlock(s,{key:2,class:o.normalizeClass([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:o.withCtx(()=>[o.createVNode(d)]),_:1},8,["class"])):o.createCommentVNode("v-if",!0),o.createVNode(c,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),o.createVNode(f,null,{default:o.withCtx(()=>[!e.renderAfterExpand||e.childNodeRendered?o.withDirectives((o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.node.childNodes,h=>(o.openBlock(),o.createBlock(u,{key:e.getNodeKey(h),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:h,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,["aria-expanded"])),[[o.vShow,e.expanded]]):o.createCommentVNode("v-if",!0)]),_:1})],42,["aria-expanded","aria-disabled","aria-checked","draggable","data-key","onClick","onContextmenu","onDragstart","onDragover","onDragend","onDrop"])),[[o.vShow,e.node.visible]])}var Wte=Ge(Ute,[["render",qte],["__file","tree-node.vue"]]);function Kte({el$:e},t){const n=Ye("tree"),r=o.shallowRef([]),a=o.shallowRef([]);o.onMounted(()=>{i()}),o.onUpdated(()=>{r.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),a.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),o.watch(a,s=>{s.forEach(l=>{l.setAttribute("tabindex","-1")})}),_r(e,"keydown",s=>{const l=s.target;if(!l.className.includes(n.b("node")))return;const d=s.code;r.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const c=r.value.indexOf(l);let u;if([tn.up,tn.down].includes(d)){if(s.preventDefault(),d===tn.up){u=c===-1?0:c!==0?c-1:r.value.length-1;const h=u;for(;!t.value.getNode(r.value[u].dataset.key).canFocus;){if(u--,u===h){u=-1;break}u<0&&(u=r.value.length-1)}}else{u=c===-1?0:c=r.value.length&&(u=0)}}u!==-1&&r.value[u].focus()}[tn.left,tn.right].includes(d)&&(s.preventDefault(),l.click());const f=l.querySelector('[type="checkbox"]');[tn.enter,tn.space].includes(d)&&f&&(s.preventDefault(),f.click())});const i=()=>{var s;r.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),a.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const l=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(l.length){l[0].setAttribute("tabindex","0");return}(s=r.value[0])==null||s.setAttribute("tabindex","0")}}const Gte=o.defineComponent({name:"ElTree",components:{ElTreeNode:Wte},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:ka}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:n}=yc(),r=Ye("tree"),a=o.inject(Fc,null),i=o.ref(new Mte({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));i.value.initialize();const s=o.ref(i.value.root),l=o.ref(null),d=o.ref(null),c=o.ref(null),{broadcastExpanded:u}=cS(e),{dragState:f}=Hte({props:e,ctx:t,el$:d,dropIndicator$:c,store:i});Kte({el$:d},i);const h=o.computed(()=>{const{childNodes:I}=s.value,z=a?a.hasFilteredOptions!==0:!1;return(!I||I.length===0||I.every(({visible:G})=>!G))&&!z});o.watch(()=>e.currentNodeKey,I=>{i.value.setCurrentNodeKey(I)}),o.watch(()=>e.defaultCheckedKeys,I=>{i.value.setDefaultCheckedKey(I)}),o.watch(()=>e.defaultExpandedKeys,I=>{i.value.setDefaultExpandedKeys(I)}),o.watch(()=>e.data,I=>{i.value.setData(I)},{deep:!0}),o.watch(()=>e.checkStrictly,I=>{i.value.checkStrictly=I});const m=I=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");i.value.filter(I)},p=I=>wg(e.nodeKey,I.data),g=I=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const z=i.value.getNode(I);if(!z)return[];const G=[z.data];let q=z.parent;for(;q&&q!==s.value;)G.push(q.data),q=q.parent;return G.reverse()},v=(I,z)=>i.value.getCheckedNodes(I,z),y=I=>i.value.getCheckedKeys(I),b=()=>{const I=i.value.getCurrentNode();return I?I.data:null},x=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const I=b();return I?I[e.nodeKey]:null},w=(I,z)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");i.value.setCheckedNodes(I,z)},k=(I,z)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");i.value.setCheckedKeys(I,z)},C=(I,z,G)=>{i.value.setChecked(I,z,G)},E=()=>i.value.getHalfCheckedNodes(),S=()=>i.value.getHalfCheckedKeys(),_=(I,z=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");xg(i,t.emit,()=>{u(I),i.value.setUserCurrentNode(I,z)})},O=(I,z=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");xg(i,t.emit,()=>{u(),i.value.setCurrentNodeKey(I,z)})},T=I=>i.value.getNode(I),N=I=>{i.value.remove(I)},F=(I,z)=>{i.value.append(I,z)},$=(I,z)=>{i.value.insertBefore(I,z)},D=(I,z)=>{i.value.insertAfter(I,z)},P=(I,z,G)=>{u(z),t.emit("node-expand",I,z,G)},V=(I,z)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");i.value.updateChildren(I,z)};return o.provide("RootTree",{ctx:t,props:e,store:i,root:s,currentNode:l,instance:o.getCurrentInstance()}),o.provide(Sc,void 0),{ns:r,store:i,root:s,currentNode:l,dragState:f,el$:d,dropIndicator$:c,isEmpty:h,filter:m,getNodeKey:p,getNodePath:g,getCheckedNodes:v,getCheckedKeys:y,getCurrentNode:b,getCurrentKey:x,setCheckedNodes:w,setCheckedKeys:k,setChecked:C,getHalfCheckedNodes:E,getHalfCheckedKeys:S,setCurrentNode:_,setCurrentKey:O,t:n,getNode:T,remove:N,append:F,insertBefore:$,insertAfter:D,handleNodeExpand:P,updateKeyChildren:V}}});function Xte(e,t,n,r,a,i){const s=o.resolveComponent("el-tree-node");return o.openBlock(),o.createElementBlock("div",{ref:"el$",class:o.normalizeClass([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.root.childNodes,l=>(o.openBlock(),o.createBlock(s,{key:e.getNodeKey(l),node:l,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(e.ns.e("empty-block"))},[o.renderSlot(e.$slots,"empty",{},()=>{var l;return[o.createElementVNode("span",{class:o.normalizeClass(e.ns.e("empty-text"))},o.toDisplayString((l=e.emptyText)!=null?l:e.t("el.tree.emptyText")),3)]})],2)):o.createCommentVNode("v-if",!0),o.withDirectives(o.createElementVNode("div",{ref:"dropIndicator$",class:o.normalizeClass(e.ns.e("drop-indicator"))},null,2),[[o.vShow,e.dragState.showDropIndicator]])],2)}var Yte=Ge(Gte,[["render",Xte],["__file","tree.vue"]]);ln(Yte);function Zte(e){let t;const n=o.ref(!1),r=o.reactive({...e,originalPosition:"",originalOverflow:"",visible:!1});function a(h){r.text=h}function i(){const h=r.parent,m=f.ns;if(!h.vLoadingAddClassList){let p=h.getAttribute("loading-number");p=Number.parseInt(p)-1,p?h.setAttribute("loading-number",p.toString()):(vi(h,m.bm("parent","relative")),h.removeAttribute("loading-number")),vi(h,m.bm("parent","hidden"))}s(),u.unmount()}function s(){var h,m;(m=(h=f.$el)==null?void 0:h.parentNode)==null||m.removeChild(f.$el)}function l(){var h;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=setTimeout(d,400),r.visible=!1,(h=e.closed)==null||h.call(e))}function d(){if(!n.value)return;const h=r.parent;n.value=!1,h.vLoadingAddClassList=void 0,i()}const c=o.defineComponent({name:"ElLoading",setup(h,{expose:m}){const{ns:p,zIndex:g}=zZ("loading");return m({ns:p,zIndex:g}),()=>{const v=r.spinner||r.svg,y=o.h("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...v?{innerHTML:v}:{}},[o.h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),b=r.text?o.h("p",{class:p.b("text")},[r.text]):void 0;return o.h(o.Transition,{name:p.b("fade"),onAfterLeave:d},{default:o.withCtx(()=>[o.withDirectives(o.createVNode("div",{style:{backgroundColor:r.background||""},class:[p.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[o.h("div",{class:p.b("spinner")},[y,b])]),[[o.vShow,r.visible]])])})}}}),u=o.createApp(c),f=u.mount(document.createElement("div"));return{...o.toRefs(r),setText:a,removeElLoadingChild:s,close:l,handleAfterLeave:d,vm:f,get $el(){return f.$el}}}let Of;const Jte=function(e={}){if(!qt)return;const t=Qte(e);if(t.fullscreen&&Of)return Of;const n=Zte({...t,closed:()=>{var a;(a=t.closed)==null||a.call(t),t.fullscreen&&(Of=void 0)}});ene(t,t.parent,n),uS(t,t.parent,n),t.parent.vLoadingAddClassList=()=>uS(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),o.nextTick(()=>n.visible.value=t.visible),t.fullscreen&&(Of=n),n},Qte=e=>{var t,n,r,a;let i;return Sn(e.target)?i=(t=document.querySelector(e.target))!=null?t:document.body:i=e.target||document.body,{parent:i===document.body||e.body?document.body:i,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:i===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(r=e.lock)!=null?r:!1,customClass:e.customClass||"",visible:(a=e.visible)!=null?a:!0,beforeClose:e.beforeClose,closed:e.closed,target:i}},ene=async(e,t,n)=>{const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,a={};if(e.fullscreen)n.originalPosition.value=gc(document.body,"position"),n.originalOverflow.value=gc(document.body,"overflow"),a.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=gc(document.body,"position"),await o.nextTick();for(const i of["top","left"]){const s=i==="top"?"scrollTop":"scrollLeft";a[i]=`${e.target.getBoundingClientRect()[i]+document.body[s]+document.documentElement[s]-Number.parseInt(gc(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])a[i]=`${e.target.getBoundingClientRect()[i]}px`}else n.originalPosition.value=gc(t,"position");for(const[i,s]of Object.entries(a))n.$el.style[i]=s},uS=(e,t,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?vi(t,r.bm("parent","relative")):A0(t,r.bm("parent","relative")),e.fullscreen&&e.lock?A0(t,r.bm("parent","hidden")):vi(t,r.bm("parent","hidden"))},Pf=Symbol("ElLoading"),fS=(e,t)=>{var n,r,a,i;const s=t.instance,l=h=>fn(t.value)?t.value[h]:void 0,d=h=>{const m=Sn(h)&&(s==null?void 0:s[h])||h;return m&&o.ref(m)},c=h=>d(l(h)||e.getAttribute(`element-loading-${Fq(h)}`)),u=(n=l("fullscreen"))!=null?n:t.modifiers.fullscreen,f={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:u,target:(r=l("target"))!=null?r:u?void 0:e,body:(a=l("body"))!=null?a:t.modifiers.body,lock:(i=l("lock"))!=null?i:t.modifiers.lock};e[Pf]={options:f,instance:Jte(f)}},tne=(e,t)=>{for(const n of Object.keys(t))o.isRef(t[n])&&(t[n].value=e[n])},nne={mounted(e,t){t.value&&fS(e,t)},updated(e,t){const n=e[Pf];t.oldValue!==t.value&&(t.value&&!t.oldValue?fS(e,t):t.value&&t.oldValue?fn(t.value)&&tne(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[Pf])==null||t.instance.close(),e[Pf]=null}},$f=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},rne={name:"AnnotationPopup",props:{annotationEntry:{type:Object}},inject:["$annotator","userApiKey"],data:function(){return{displayPair:{"Feature ID":"featureId",Tooltip:"label",Models:"models",Name:"name",Resource:"resourceId"},editing:!1,evidencePrefixes:["","DOI:","PMID:"],evidencePrefix:"",evidence:[],authenticated:!1,newEvidence:"",comment:"",prevSubs:[],showSubmissions:!0,errorMessage:"",creator:void 0}},computed:{isEditable:function(){return this.annotationEntry.resourceId&&this.annotationEntry.featureId},isPositionUpdated:function(){return this.annotationEntry.resourceId&&this.annotationEntry.type==="updated"&&this.annotationEntry.positionUpdated},isDeleted:function(){return this.annotationEntry.resourceId&&this.annotationEntry.type==="deleted"}},methods:{evidenceEntered:function(e){e&&(this.evidence.push(this.evidencePrefix+e),this.newEvidence="")},formatTime:function(e){const t={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"};return new Date(e).toLocaleDateString(void 0,t)},updatePrevSubmissions:function(){var e;this.$annotator&&this.authenticated&&this.annotationEntry.resourceId&&this.annotationEntry.featureId&&((e=this.$annotator)==null||e.itemAnnotations(this.userApiKey,this.annotationEntry.resourceId,this.annotationEntry.featureId).then(t=>{this.prevSubs=t}).catch(t=>{console.log(t)}))},submit:function(){var e;if(this.annotationEntry.type==="updated"&&this.annotationEntry.positionUpdated?this.comment=this.comment?`Position Updated: ${this.comment}`:"Position Updated":this.annotationEntry.type==="deleted"&&(this.comment=this.comment?`Feature Deleted: ${this.comment}`:"Feature Deleted"),(this.evidence.length>0||this.comment)&&this.annotationEntry.resourceId&&this.annotationEntry.featureId){const t=[];this.evidence.forEach(r=>{if(r.includes("DOI:")){const a=r.replace("DOI:","https://doi.org/");t.push(new URL(a))}else if(r.includes("PMID:")){const a=r.replace("PMID:","https://pubmed.ncbi.nlm.nih.gov/");t.push(new URL(a))}else t.push(r)});const n={resource:this.annotationEntry.resourceId,item:Object.assign({id:this.annotationEntry.featureId},Object.fromEntries(Object.entries(this.annotationEntry).filter(([r])=>["label","models"].includes(r)))),body:{evidence:t,comment:this.comment},feature:this.annotationEntry.feature};Object.assign(n.body,this.annotationEntry.body),this.annotationEntry.type==="deleted"&&(n.feature=void 0),this.creator&&(n.creator=this.creator),(e=this.$annotator)==null||e.addAnnotation(this.userApiKey,n).then(()=>{this.$emit("annotation",n),this.errorMessage="",this.resetSubmission(),this.updatePrevSubmissions()}).catch(()=>{this.errorMessage="There is a problem with the submission, please try again later"})}},removeEvidence:function(e){this.evidence.splice(e,1)},resetSubmission:function(){this.editing=!1,this.evidence=[],this.newFeature="",this.comment=""}},watch:{annotationEntry:{handler:function(e,t){e!==t&&(this.resetSubmission(),this.updatePrevSubmissions())},immediate:!1,deep:!1}},mounted:function(){var e;(e=this.$annotator)==null||e.authenticate(this.userApiKey).then(t=>{t.name&&t.email&&t.canUpdate?(this.creator=t,t.orcid||(this.creator.orcid="0000-0000-0000-0000"),this.authenticated=!0,this.updatePrevSubmissions()):this.errorMessage=""})}},Bi=e=>(o.pushScopeId("data-v-9930ef40"),e=e(),o.popScopeId(),e),one={class:"block"},ane=Bi(()=>o.createElementVNode("div",{class:"title"},"Feature Annotations",-1)),ine=Bi(()=>o.createElementVNode("strong",{class:"sub-title"},"Previous submissions:",-1)),sne=Bi(()=>o.createElementVNode("strong",null,"Evidence: ",-1)),lne=["href"],cne=Bi(()=>o.createElementVNode("strong",null,"Comment: ",-1)),dne=Bi(()=>o.createElementVNode("strong",{class:"sub-title"},"Suggest changes:",-1)),une=Bi(()=>o.createElementVNode("strong",null,"Evidence:",-1)),fne=Bi(()=>o.createElementVNode("strong",null,"Comment:",-1)),pne={class:"sub-title"};function hne(e,t,n,r,a,i){const s=WE,l=FX,d=_n,c=I0,u=qX,f=HX,h=KX,m=hg,p=df,g=Nte,v=Tte,y=xf,b=Ei,x=yg;return o.openBlock(),o.createBlock(x,{class:"main"},{default:o.withCtx(()=>[o.createElementVNode("div",one,[o.createVNode(s,{class:"info-field"},{default:o.withCtx(()=>[ane]),_:1}),n.annotationEntry?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.displayPair,(w,k)=>o.withDirectives((o.openBlock(),o.createBlock(s,{class:"dialog-text",key:w},{default:o.withCtx(()=>[o.createElementVNode("strong",null,o.toDisplayString(k)+": ",1),o.createTextVNode(" "+o.toDisplayString(n.annotationEntry[w]),1)]),_:2},1024)),[[o.vShow,n.annotationEntry[w]]])),128)),e.prevSubs.length>0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.withDirectives(o.createElementVNode("div",{class:"hide",onClick:t[0]||(t[0]=w=>e.showSubmissions=!1)},[o.createTextVNode(" Hide previous submissions "),o.createVNode(d,null,{default:o.withCtx(()=>[o.createVNode(l)]),_:1})],512),[[o.vShow,e.showSubmissions]]),o.withDirectives(o.createElementVNode("div",{class:"hide",onClick:t[1]||(t[1]=w=>e.showSubmissions=!0)},[o.createTextVNode(" Show previous "+o.toDisplayString(e.prevSubs.length)+" submission(s) ",1),o.createVNode(d,null,{default:o.withCtx(()=>[o.createVNode(c)]),_:1})],512),[[o.vShow,!e.showSubmissions]]),e.showSubmissions?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(s,{class:"dialog-spacer"}),o.createVNode(s,{class:"dialog-text"},{default:o.withCtx(()=>[ine]),_:1}),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.prevSubs,(w,k)=>(o.openBlock(),o.createElementBlock("div",{class:"entry",key:k},[o.createVNode(s,{class:"dialog-text"},{default:o.withCtx(()=>[o.createElementVNode("strong",null,o.toDisplayString(i.formatTime(w.created)),1),o.createTextVNode(" "+o.toDisplayString(w.creator.name),1)]),_:2},1024),o.createVNode(s,{class:"dialog-text"},{default:o.withCtx(()=>[sne,(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(w.body.evidence,C=>(o.openBlock(),o.createBlock(s,{key:C,class:"dialog-text"},{default:o.withCtx(()=>[o.createElementVNode("a",{href:C,target:"_blank"},o.toDisplayString(C),9,lne)]),_:2},1024))),128))]),_:2},1024),o.createVNode(s,{class:"dialog-text"},{default:o.withCtx(()=>[cne,o.createTextVNode(" "+o.toDisplayString(w.body.comment),1)]),_:2},1024)]))),128))],64)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0),e.authenticated?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[i.isEditable?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(s,{class:"dialog-spacer"}),e.editing?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createVNode(s,{class:"dialog-text"},{default:o.withCtx(()=>[dne]),_:1}),i.isDeleted?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(s,{class:"dialog-text"},{default:o.withCtx(()=>[une]),_:1}),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.evidence,(w,k)=>(o.openBlock(),o.createBlock(s,{key:w},{default:o.withCtx(()=>[o.createVNode(m,{span:20},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.evidence[k]),1)]),_:2},1024),o.createVNode(m,{span:4},{default:o.withCtx(()=>[o.createVNode(d,{class:"standard-icon"},{default:o.withCtx(()=>[o.createVNode(p,{onClick:C=>i.removeEvidence(k)},null,8,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024))),128)),o.createVNode(s,null,{default:o.withCtx(()=>[o.createVNode(y,{size:"small",placeholder:"Enter",modelValue:e.newEvidence,"onUpdate:modelValue":t[4]||(t[4]=w=>e.newEvidence=w),onChange:t[5]||(t[5]=w=>i.evidenceEntered(w))},{prepend:o.withCtx(()=>[o.createVNode(v,{teleported:!1,modelValue:e.evidencePrefix,"onUpdate:modelValue":t[3]||(t[3]=w=>e.evidencePrefix=w),placeholder:"No Prefix",class:"select-box","popper-class":"flatmap_dropdown"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.evidencePrefixes,w=>(o.openBlock(),o.createBlock(g,{key:w,label:w,value:w},{default:o.withCtx(()=>[o.createVNode(s,null,{default:o.withCtx(()=>[o.createVNode(m,{span:12},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(w),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])]),_:1})],64)),o.createVNode(s,null,{default:o.withCtx(()=>[fne]),_:1}),o.createVNode(s,{class:"dialog-text"},{default:o.withCtx(()=>[o.createVNode(y,{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"Enter",modelValue:e.comment,"onUpdate:modelValue":t[6]||(t[6]=w=>e.comment=w)},null,8,["modelValue"])]),_:1}),o.createVNode(s,{class:"dialog-text"},{default:o.withCtx(()=>[o.createVNode(b,{class:"button",type:"primary",plain:"",onClick:i.submit},{default:o.withCtx(()=>[o.createTextVNode(" Submit ")]),_:1},8,["onClick"])]),_:1})],64)):(o.openBlock(),o.createBlock(s,{key:0},{default:o.withCtx(()=>[o.createVNode(d,{class:"standard-icon"},{default:o.withCtx(()=>[o.createVNode(u,{onClick:t[2]||(t[2]=w=>e.editing=!0)})]),_:1}),i.isDeleted?(o.openBlock(),o.createBlock(d,{key:0,class:"standard-icon"},{default:o.withCtx(()=>[o.createVNode(f,{onClick:i.submit},null,8,["onClick"])]),_:1})):i.isPositionUpdated?(o.openBlock(),o.createBlock(d,{key:1,class:"standard-icon"},{default:o.withCtx(()=>[o.createVNode(h,{onClick:i.submit},null,8,["onClick"])]),_:1})):o.createCommentVNode("",!0)]),_:1})),e.errorMessage?(o.openBlock(),o.createBlock(s,{key:2,class:"dialog-text"},{default:o.withCtx(()=>[o.createElementVNode("strong",pne,o.toDisplayString(e.errorMessage),1)]),_:1})):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0)])]),_:1})}const mne=$f(rne,[["render",hne],["__scopeId","data-v-9930ef40"]]),gne={name:"CreateTooltipContent",components:{Button:Ei,Col:hg,Container:nS,Header:rS,Input:xf,Main:yg},props:{createData:{type:Object}},watch:{"createData.shape":{handler:function(e,t){this.group=e,t!==void 0&&this.$emit("cancel-create")},immediate:!0}},computed:{confirmText:function(){return this.createData.editingIndex>-1?"Edit":"Confirm"}},data:function(){return{group:"default",region:"",showPoint:!1}},methods:{confirm:function(){this.$emit("confirm-create",{region:"__annotation/"+this.region,group:this.group,shape:this.createData.shape,editingIndex:this.createData.editingIndex}),this.group=this.createData.shape},cancel:function(){this.$emit("cancel-create")}}},yne=e=>(o.pushScopeId("data-v-d61c5879"),e=e(),o.popScopeId(),e),vne=yne(()=>o.createElementVNode("span",{class:"create-text"}," Primitives will be created in the __annotation region ",-1));function bne(e,t,n,r,a,i){const s=rS,l=hg,d=WE,c=xf,u=Ei,f=yg,h=nS;return o.openBlock(),o.createBlock(h,{class:"create-container"},{default:o.withCtx(()=>[o.createVNode(s,{height:"30px",class:"header"},{default:o.withCtx(()=>[o.createElementVNode("div",null,"Create "+o.toDisplayString(n.createData.shape),1)]),_:1}),o.createVNode(f,{class:"slides-block"},{default:o.withCtx(()=>[vne,o.withDirectives(o.createVNode(d,{class:"row"},{default:o.withCtx(()=>[o.createVNode(l,{offset:0,span:8},{default:o.withCtx(()=>[o.createTextVNode(" Position: ")]),_:1}),o.createVNode(l,{offset:0,span:16},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.createData.points,({value:m,i:p})=>(o.openBlock(),o.createBlock(d,{key:p,class:"value"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(p),1)]),_:2},1024))),128))]),_:1})]),_:1},512),[[o.vShow,e.showPoint]]),o.createVNode(d,{class:"row"},{default:o.withCtx(()=>[o.createVNode(l,{offset:0,span:8},{default:o.withCtx(()=>[o.createTextVNode(" Region: ")]),_:1}),o.createVNode(l,{offset:0,span:16},{default:o.withCtx(()=>[o.createVNode(c,{modelValue:e.region,"onUpdate:modelValue":t[0]||(t[0]=m=>e.region=m),placeholder:"__annotation",size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),o.createVNode(d,{class:"row"},{default:o.withCtx(()=>[o.createVNode(l,{offset:0,span:8},{default:o.withCtx(()=>[o.createTextVNode(" Group: ")]),_:1}),o.createVNode(l,{offset:0,span:16},{default:o.withCtx(()=>[o.createVNode(c,{modelValue:e.group,"onUpdate:modelValue":t[1]||(t[1]=m=>e.group=m),placeholder:n.createData.shape,size:"small"},null,8,["modelValue","placeholder"])]),_:1})]),_:1}),o.createVNode(d,null,{default:o.withCtx(()=>[o.createVNode(l,{offset:0,span:12},{default:o.withCtx(()=>[o.createVNode(u,{type:"primary",plain:"",onClick:i.confirm},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(i.confirmText),1)]),_:1},8,["onClick"])]),_:1}),o.createVNode(l,{offset:0,span:12},{default:o.withCtx(()=>[o.createVNode(u,{type:"primary",plain:"",onClick:i.cancel},{default:o.withCtx(()=>[o.createTextVNode(" Cancel ")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1})}const wne=$f(gne,[["render",bne],["__scopeId","data-v-d61c5879"]]);function nn(e){"@babel/helpers - typeof";return nn=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},nn(e)}function kg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xne(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(d){throw d},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,l;return{s:function(){n=n.call(e)},n:function(){var d=n.next();return i=d.done,d},e:function(d){s=!0,l=d},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(s)throw l}}}}var rn=typeof window>"u"?null:window,yS=rn?rn.navigator:null;rn&&rn.document;var Sne=nn(""),vS=nn({}),_ne=nn(function(){}),Bne=typeof HTMLElement>"u"?"undefined":nn(HTMLElement),Ic=function(e){return e&&e.instanceString&&$t(e.instanceString)?e.instanceString():null},Me=function(e){return e!=null&&nn(e)==Sne},$t=function(e){return e!=null&&nn(e)===_ne},gt=function(e){return!ur(e)&&(Array.isArray?Array.isArray(e):e!=null&&e instanceof Array)},ot=function(e){return e!=null&&nn(e)===vS&&!gt(e)&&e.constructor===Object},Tne=function(e){return e!=null&&nn(e)===vS},Ee=function(e){return e!=null&&nn(e)===nn(1)&&!isNaN(e)},Nne=function(e){return Ee(e)&&Math.floor(e)===e},Ff=function(e){if(Bne!=="undefined")return e!=null&&e instanceof HTMLElement},ur=function(e){return Dc(e)||bS(e)},Dc=function(e){return Ic(e)==="collection"&&e._private.single},bS=function(e){return Ic(e)==="collection"&&!e._private.single},Sg=function(e){return Ic(e)==="core"},wS=function(e){return Ic(e)==="stylesheet"},One=function(e){return Ic(e)==="event"},Oa=function(e){return e==null?!0:!!(e===""||e.match(/^\s+$/))},Pne=function(e){return typeof HTMLElement>"u"?!1:e instanceof HTMLElement},$ne=function(e){return ot(e)&&Ee(e.x1)&&Ee(e.x2)&&Ee(e.y1)&&Ee(e.y2)},Fne=function(e){return Tne(e)&&$t(e.then)},Ane=function(){return yS&&yS.userAgent.match(/msie|trident|edge/i)},Vc=function(e,t){t||(t=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var r=[],a=0;at?1:0},zne=function(e,t){return-1*kS(e,t)},He=Object.assign!=null?Object.assign.bind(Object):function(e){for(var t=arguments,n=1;n1&&(g-=1),g<1/6?m+(p-m)*6*g:g<1/2?p:g<2/3?m+(p-m)*(2/3-g)*6:m}var u=new RegExp("^"+Vne+"$").exec(e);if(u){if(n=parseInt(u[1]),n<0?n=(360- -1*n%360)%360:n>360&&(n=n%360),n/=360,r=parseFloat(u[2]),r<0||r>100||(r=r/100,a=parseFloat(u[3]),a<0||a>100)||(a=a/100,i=u[4],i!==void 0&&(i=parseFloat(i),i<0||i>1)))return;if(r===0)s=l=d=Math.round(a*255);else{var f=a<.5?a*(1+r):a+r-a*r,h=2*a-f;s=Math.round(255*c(h,f,n+1/3)),l=Math.round(255*c(h,f,n)),d=Math.round(255*c(h,f,n-1/3))}t=[s,l,d,i]}return t},Une=function(e){var t,n=new RegExp("^"+Ine+"$").exec(e);if(n){t=[];for(var r=[],a=1;a<=3;a++){var i=n[a];if(i[i.length-1]==="%"&&(r[a]=!0),i=parseFloat(i),r[a]&&(i=i/100*255),i<0||i>255)return;t.push(Math.floor(i))}var s=r[1]||r[2]||r[3],l=r[1]&&r[2]&&r[3];if(s&&!l)return;var d=n[4];if(d!==void 0){if(d=parseFloat(d),d<0||d>1)return;t.push(d)}}return t},qne=function(e){return Kne[e.toLowerCase()]},Wne=function(e){return(gt(e)?e:null)||qne(e)||jne(e)||Une(e)||Hne(e)},Kne={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},ES=function(e){for(var t=e.map,n=e.keys,r=n.length,a=0;a=t||E<0||f&&S>=i}function y(){var C=Bg();if(v(C))return b(C);l=setTimeout(y,g(C))}function b(C){return l=void 0,h&&r?m(C):(r=a=void 0,s)}function x(){l!==void 0&&clearTimeout(l),c=0,r=d=a=l=void 0}function w(){return l===void 0?s:b(Bg())}function k(){var C=Bg(),E=v(C);if(r=arguments,a=this,d=C,E){if(l===void 0)return p(d);if(f)return clearTimeout(l),l=setTimeout(y,t),m(d)}return l===void 0&&(l=setTimeout(y,t)),s}return k.cancel=x,k.flush=w,k}var Df=Pre,Tg=rn?rn.performance:null,PS=Tg&&Tg.now?function(){return Tg.now()}:function(){return Date.now()},$re=function(){if(rn){if(rn.requestAnimationFrame)return function(e){rn.requestAnimationFrame(e)};if(rn.mozRequestAnimationFrame)return function(e){rn.mozRequestAnimationFrame(e)};if(rn.webkitRequestAnimationFrame)return function(e){rn.webkitRequestAnimationFrame(e)};if(rn.msRequestAnimationFrame)return function(e){rn.msRequestAnimationFrame(e)}}return function(e){e&&setTimeout(function(){e(PS())},1e3/60)}}(),Vf=function(e){return $re(e)},Ko=PS,Ms=9261,$S=65599,zc=5381,FS=function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ms,n=t,r;r=e.next(),!r.done;)n=n*$S+r.value|0;return n},jc=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ms;return t*$S+e|0},Hc=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zc;return(t<<5)+t+e|0},Fre=function(e,t){return e*2097152+t},Pa=function(e){return e[0]*2097152+e[1]},Rf=function(e,t){return[jc(e[0],t[0]),Hc(e[1],t[1])]},Are=function(e,t){var n={value:0,done:!1},r=0,a=e.length,i={next:function(){return r=0;r--)e[r]===t&&e.splice(r,1)},Pg=function(e){e.splice(0,e.length)},zre=function(e,t){for(var n=0;n"u"?"undefined":nn(Set))!==Hre?Set:Ure,Mf=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0||t===void 0||!Sg(e)){It("An element must have a core reference and parameters set");return}var r=t.group;if(r==null&&(t.data&&t.data.source!=null&&t.data.target!=null?r="edges":r="nodes"),r!=="nodes"&&r!=="edges"){It("An element must be of type `nodes` or `edges`; you specified `"+r+"`");return}this.length=1,this[0]=this;var a=this._private={cy:e,single:!0,data:t.data||{},position:t.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:r,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!t.selected,selectable:t.selectable===void 0?!0:!!t.selectable,locked:!!t.locked,grabbed:!1,grabbable:t.grabbable===void 0?!0:!!t.grabbable,pannable:t.pannable===void 0?r==="edges":!!t.pannable,active:!1,classes:new zs,animation:{current:[],queue:[]},rscratch:{},scratch:t.scratch||{},edges:[],children:[],parent:t.parent&&t.parent.isNode()?t.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(a.position.x==null&&(a.position.x=0),a.position.y==null&&(a.position.y=0),t.renderedPosition){var i=t.renderedPosition,s=e.pan(),l=e.zoom();a.position={x:(i.x-s.x)/l,y:(i.y-s.y)/l}}var d=[];gt(t.classes)?d=t.classes:Me(t.classes)&&(d=t.classes.split(/\s+/));for(var c=0,u=d.length;cb?1:0},u=function(y,b,x,w,k){var C;if(x==null&&(x=0),k==null&&(k=r),x<0)throw new Error("lo must be non-negative");for(w==null&&(w=y.length);xO;0<=O?_++:_--)S.push(_);return S}).apply(this).reverse(),E=[],w=0,k=C.length;wT;0<=T?++S:--S)N.push(s(y,x));return N},g=function(y,b,x,w){var k,C,E;for(w==null&&(w=r),k=y[x];x>b;){if(E=x-1>>1,C=y[E],w(k,C)<0){y[x]=C,x=E;continue}break}return y[x]=k},v=function(y,b,x){var w,k,C,E,S;for(x==null&&(x=r),k=y.length,S=b,C=y[b],w=2*b+1;w0;){var k=y.pop(),C=g(k),E=k.id();if(f[E]=C,C!==1/0)for(var S=k.neighborhood().intersect(m),_=0;_0)for(P.unshift(D);u[I];){var z=u[I];P.unshift(z.edge),P.unshift(z.node),V=z.node,I=V.id()}return s.spawn(P)}}}},Gre={kruskal:function(e){e=e||function(b){return 1};for(var t=this.byGroup(),n=t.nodes,r=t.edges,a=n.length,i=new Array(a),s=n,l=function(b){for(var x=0;x0;){if(w(),C++,x===c){for(var E=[],S=a,_=c,O=v[_];E.unshift(S),O!=null&&E.unshift(O),S=g[_],S!=null;)_=S.id(),O=v[_];return{found:!0,distance:u[x],path:this.spawn(E),steps:C}}h[x]=!0;for(var T=b._private.edges,N=0;NO&&(m[_]=O,y[_]=S,b[_]=w),!a){var T=S*c+E;!a&&m[T]>O&&(m[T]=O,y[T]=E,b[T]=w)}}}for(var N=0;N1&&arguments[1]!==void 0?arguments[1]:i,Ne=b(ge),Ie=[],Se=Ne;;){if(Se==null)return t.spawn();var Re=y(Se),Ve=Re.edge,ze=Re.pred;if(Ie.unshift(Se[0]),Se.same(ke)&&Ie.length>0)break;Ve!=null&&Ie.unshift(Ve),Se=ze}return l.spawn(Ie)},k=0;k=0;c--){var u=d[c],f=u[1],h=u[2];(t[f]===s&&t[h]===l||t[f]===l&&t[h]===s)&&d.splice(c,1)}for(var m=0;mr;){var a=Math.floor(Math.random()*t.length);t=noe(a,e,t),n--}return t},roe={kargerStein:function(){var e=this,t=this.byGroup(),n=t.nodes,r=t.edges;r.unmergeBy(function(V){return V.isLoop()});var a=n.length,i=r.length,s=Math.ceil(Math.pow(Math.log(a)/Math.LN2,2)),l=Math.floor(a/toe);if(a<2){It("At least 2 nodes are required for Karger-Stein algorithm");return}for(var d=[],c=0;c1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,r=1/0,a=t;a1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,r=-1/0,a=t;a1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,r=0,a=0,i=t;i1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.length,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;r?e=e.slice(t,n):(n0&&e.splice(0,t));for(var s=0,l=e.length-1;l>=0;l--){var d=e[l];i?isFinite(d)||(e[l]=-1/0,s++):e.splice(l,1)}a&&e.sort(function(f,h){return f-h});var c=e.length,u=Math.floor(c/2);return c%2!==0?e[u+1+s]:(e[u-1+s]+e[u+s])/2},coe=function(e){return Math.PI*e/180},jf=function(e,t){return Math.atan2(t,e)-Math.PI/2},Fg=Math.log2||function(e){return Math.log(e)/Math.log(2)},HS=function(e){return e>0?1:e<0?-1:0},Oi=function(e,t){return Math.sqrt(Pi(e,t))},Pi=function(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r},doe=function(e){for(var t=e.length,n=0,r=0;r=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(e.w!=null&&e.h!=null&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},foe=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},poe=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},hoe=function(e,t,n){return{x1:e.x1+t,x2:e.x2+t,y1:e.y1+n,y2:e.y2+n,w:e.w,h:e.h}},US=function(e,t){e.x1=Math.min(e.x1,t.x1),e.x2=Math.max(e.x2,t.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,t.y1),e.y2=Math.max(e.y2,t.y2),e.h=e.y2-e.y1},moe=function(e,t,n){e.x1=Math.min(e.x1,t),e.x2=Math.max(e.x2,t),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,n),e.y2=Math.max(e.y2,n),e.h=e.y2-e.y1},Hf=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.x1-=t,e.x2+=t,e.y1-=t,e.y2+=t,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},Uf=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],n,r,a,i;if(t.length===1)n=r=a=i=t[0];else if(t.length===2)n=a=t[0],i=r=t[1];else if(t.length===4){var s=Zr(t,4);n=s[0],r=s[1],a=s[2],i=s[3]}return e.x1-=i,e.x2+=r,e.y1-=n,e.y2+=a,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},qS=function(e,t){e.x1=t.x1,e.y1=t.y1,e.x2=t.x2,e.y2=t.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},Ag=function(e,t){return!(e.x1>t.x2||t.x1>e.x2||e.x2t.y2||t.y1>e.y2)},Us=function(e,t,n){return e.x1<=t&&t<=e.x2&&e.y1<=n&&n<=e.y2},goe=function(e,t){return Us(e,t.x,t.y)},WS=function(e,t){return Us(e,t.x1,t.y1)&&Us(e,t.x2,t.y2)},KS=function(e,t,n,r,a,i,s){var l=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"auto",d=l==="auto"?Fi(a,i):l,c=a/2,u=i/2;d=Math.min(d,c,u);var f=d!==c,h=d!==u,m;if(f){var p=n-c+d-s,g=r-u-s,v=n+c-d+s,y=g;if(m=Aa(e,t,n,r,p,g,v,y,!1),m.length>0)return m}if(h){var b=n+c+s,x=r-u+d-s,w=b,k=r+u-d+s;if(m=Aa(e,t,n,r,b,x,w,k,!1),m.length>0)return m}if(f){var C=n-c+d-s,E=r+u+s,S=n+c-d+s,_=E;if(m=Aa(e,t,n,r,C,E,S,_,!1),m.length>0)return m}if(h){var O=n-c-s,T=r-u+d-s,N=O,F=r+u-d+s;if(m=Aa(e,t,n,r,O,T,N,F,!1),m.length>0)return m}var $;{var D=n-c+d,P=r-u+d;if($=Kc(e,t,n,r,D,P,d+s),$.length>0&&$[0]<=D&&$[1]<=P)return[$[0],$[1]]}{var V=n+c-d,I=r-u+d;if($=Kc(e,t,n,r,V,I,d+s),$.length>0&&$[0]>=V&&$[1]<=I)return[$[0],$[1]]}{var z=n+c-d,G=r+u-d;if($=Kc(e,t,n,r,z,G,d+s),$.length>0&&$[0]>=z&&$[1]>=G)return[$[0],$[1]]}{var q=n-c+d,X=r+u-d;if($=Kc(e,t,n,r,q,X,d+s),$.length>0&&$[0]<=q&&$[1]>=X)return[$[0],$[1]]}return[]},yoe=function(e,t,n,r,a,i,s){var l=s,d=Math.min(n,a),c=Math.max(n,a),u=Math.min(r,i),f=Math.max(r,i);return d-l<=e&&e<=c+l&&u-l<=t&&t<=f+l},voe=function(e,t,n,r,a,i,s,l,d){var c={x1:Math.min(n,s,a)-d,x2:Math.max(n,s,a)+d,y1:Math.min(r,l,i)-d,y2:Math.max(r,l,i)+d};return!(ec.x2||tc.y2)},boe=function(e,t,n,r){n-=r;var a=t*t-4*e*n;if(a<0)return[];var i=Math.sqrt(a),s=2*e,l=(-t+i)/s,d=(-t-i)/s;return[l,d]},woe=function(e,t,n,r,a){var i=1e-5;e===0&&(e=i),t/=e,n/=e,r/=e;var s,l,d,c,u,f,h,m;if(l=(3*n-t*t)/9,d=-(27*r)+t*(9*n-2*(t*t)),d/=54,s=l*l*l+d*d,a[1]=0,h=t/3,s>0){u=d+Math.sqrt(s),u=u<0?-Math.pow(-u,1/3):Math.pow(u,1/3),f=d-Math.sqrt(s),f=f<0?-Math.pow(-f,1/3):Math.pow(f,1/3),a[0]=-h+u+f,h+=(u+f)/2,a[4]=a[2]=-h,h=Math.sqrt(3)*(-f+u)/2,a[3]=h,a[5]=-h;return}if(a[5]=a[3]=0,s===0){m=d<0?-Math.pow(-d,1/3):Math.pow(d,1/3),a[0]=-h+2*m,a[4]=a[2]=-(m+h);return}l=-l,c=l*l*l,c=Math.acos(d/Math.sqrt(c)),m=2*Math.sqrt(l),a[0]=-h+m*Math.cos(c/3),a[2]=-h+m*Math.cos((c+2*Math.PI)/3),a[4]=-h+m*Math.cos((c+4*Math.PI)/3)},xoe=function(e,t,n,r,a,i,s,l){var d=1*n*n-4*n*a+2*n*s+4*a*a-4*a*s+s*s+r*r-4*r*i+2*r*l+4*i*i-4*i*l+l*l,c=1*9*n*a-3*n*n-3*n*s-6*a*a+3*a*s+9*r*i-3*r*r-3*r*l-6*i*i+3*i*l,u=1*3*n*n-6*n*a+n*s-n*e+2*a*a+2*a*e-s*e+3*r*r-6*r*i+r*l-r*t+2*i*i+2*i*t-l*t,f=1*n*a-n*n+n*e-a*e+r*i-r*r+r*t-i*t,h=[];woe(d,c,u,f,h);for(var m=1e-7,p=[],g=0;g<6;g+=2)Math.abs(h[g+1])=0&&h[g]<=1&&p.push(h[g]);p.push(1),p.push(0);for(var v=-1,y,b,x,w=0;w=0?xd?(e-a)*(e-a)+(t-i)*(t-i):c-f},tr=function(e,t,n){for(var r,a,i,s,l,d=0,c=0;c=e&&e>=i||r<=e&&e<=i)l=(e-r)/(i-r)*(s-a)+a,l>t&&d++;else continue;return d%2!==0},Go=function(e,t,n,r,a,i,s,l,d){var c=new Array(n.length),u;l[0]!=null?(u=Math.atan(l[1]/l[0]),l[0]<0?u=u+Math.PI/2:u=-u-Math.PI/2):u=l;for(var f=Math.cos(-u),h=Math.sin(-u),m=0;m0){var g=Wf(c,-d);p=qf(g)}else p=c;return tr(e,t,p)},koe=function(e,t,n,r,a,i,s,l){for(var d=new Array(n.length*2),c=0;c=0&&g<=1&&y.push(g),v>=0&&v<=1&&y.push(v),y.length===0)return[];var b=y[0]*l[0]+e,x=y[0]*l[1]+t;if(y.length>1){if(y[0]==y[1])return[b,x];var w=y[1]*l[0]+e,k=y[1]*l[1]+t;return[b,x,w,k]}else return[b,x]},Ig=function(e,t,n){return t<=e&&e<=n||n<=e&&e<=t?e:e<=t&&t<=n||n<=t&&t<=e?t:n},Aa=function(e,t,n,r,a,i,s,l,d){var c=e-a,u=n-e,f=s-a,h=t-i,m=r-t,p=l-i,g=f*h-p*c,v=u*h-m*c,y=p*u-f*m;if(y!==0){var b=g/y,x=v/y,w=.001,k=0-w,C=1+w;return k<=b&&b<=C&&k<=x&&x<=C?[e+b*u,t+b*m]:d?[e+b*u,t+b*m]:[]}else return g===0||v===0?Ig(e,n,s)===s?[s,l]:Ig(e,n,a)===a?[a,i]:Ig(a,s,n)===n?[n,r]:[]:[]},Gc=function(e,t,n,r,a,i,s,l){var d=[],c,u=new Array(n.length),f=!0;i==null&&(f=!1);var h;if(f){for(var m=0;m0){var p=Wf(u,-l);h=qf(p)}else h=u}else h=n;for(var g,v,y,b,x=0;x2){for(var m=[c[0],c[1]],p=Math.pow(m[0]-e,2)+Math.pow(m[1]-t,2),g=1;gc&&(c=b)},get:function(y){return d[y]}},f=0;f0?$=F.edgesTo(N)[0]:$=N.edgesTo(F)[0];var D=r($);N=N.id(),C[N]>C[O]+D&&(C[N]=C[O]+D,E.nodes.indexOf(N)<0?E.push(N):E.updateItem(N),k[N]=0,w[N]=[]),C[N]==C[O]+D&&(k[N]=k[N]+k[O],w[N].push(O))}else for(var P=0;P0;){for(var G=x.pop(),q=0;q0&&s.push(n[l]);s.length!==0&&a.push(r.collection(s))}return a},Loe=function(e,t){for(var n=0;n5&&arguments[5]!==void 0?arguments[5]:joe,s=r,l,d,c=0;c=2?Xc(e,t,n,0,n3,Hoe):Xc(e,t,n,0,t3)},squaredEuclidean:function(e,t,n){return Xc(e,t,n,0,n3)},manhattan:function(e,t,n){return Xc(e,t,n,0,t3)},max:function(e,t,n){return Xc(e,t,n,-1/0,Uoe)}};Ks["squared-euclidean"]=Ks.squaredEuclidean,Ks.squaredeuclidean=Ks.squaredEuclidean;function Gf(e,t,n,r,a,i){var s;return $t(e)?s=e:s=Ks[e]||Ks.euclidean,t===0&&$t(e)?s(a,i):s(t,n,r,a,i)}var qoe=gn({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),Mg=function(e){return qoe(e)},Xf=function(e,t,n,r,a){var i=a!=="kMedoids",s=i?function(u){return n[u]}:function(u){return r[u](n)},l=function(u){return r[u](t)},d=n,c=t;return Gf(e,r.length,s,l,d,c)},zg=function(e,t,n){for(var r=n.length,a=new Array(r),i=new Array(r),s=new Array(t),l=null,d=0;dn)return!1}return!0},Goe=function(e,t,n){for(var r=0;rs&&(s=t[d][c],l=c);a[l].push(e[d])}for(var u=0;u=a.threshold||a.mode==="dendrogram"&&e.length===1)return!1;var m=t[i],p=t[r[i]],g;a.mode==="dendrogram"?g={left:m,right:p,key:m.key}:g={value:m.value.concat(p.value),key:m.key},e[m.index]=g,e.splice(p.index,1),t[m.key]=g;for(var v=0;vn[p.key][y.key]&&(l=n[p.key][y.key])):a.linkage==="max"?(l=n[m.key][y.key],n[m.key][y.key]0&&r.push(a);return r},d3=function(e,t,n){for(var r=[],a=0;as&&(i=d,s=t[a*e+d])}i>0&&r.push(i)}for(var c=0;cd&&(l=c,d=u)}n[a]=i[l]}return r=d3(e,t,n),r},u3=function(e){for(var t=this.cy(),n=this.nodes(),r=lae(e),a={},i=0;i=O?(T=O,O=F,N=$):F>T&&(T=F);for(var D=0;D0?1:0;C[S%r.minIterations*s+q]=X,G+=X}if(G>0&&(S>=r.minIterations-1||S==r.maxIterations-1)){for(var te=0,le=0;le1||k>1)&&(s=!0),u[b]=[],y.outgoers().forEach(function(E){E.isEdge()&&u[b].push(E.id())})}else f[b]=[void 0,y.target().id()]}):i.forEach(function(y){var b=y.id();if(y.isNode()){var x=y.degree(!0);x%2&&(l?d?s=!0:d=b:l=b),u[b]=[],y.connectedEdges().forEach(function(w){return u[b].push(w.id())})}else f[b]=[y.source().id(),y.target().id()]});var h={found:!1,trail:void 0};if(s)return h;if(d&&l)if(a){if(c&&d!=c)return h;c=d}else{if(c&&d!=c&&l!=c)return h;c||(c=d)}else c||(c=i[0].id());var m=function(y){for(var b=y,x=[y],w,k,C;u[b].length;)w=u[b].shift(),k=f[w][0],C=f[w][1],b!=C?(u[C]=u[C].filter(function(E){return E!=w}),b=C):!a&&b!=k&&(u[k]=u[k].filter(function(E){return E!=w}),b=k),x.unshift(w),x.unshift(b);return x},p=[],g=[];for(g=m(c);g.length!=1;)u[g[0]].length==0?(p.unshift(i.getElementById(g.shift())),p.unshift(i.getElementById(g.shift()))):g=m(g.shift()).concat(g);p.unshift(i.getElementById(g.shift()));for(var v in u)if(u[v].length)return h;return h.found=!0,h.trail=this.spawn(p,!0),h}},Zf=function(){var e=this,t={},n=0,r=0,a=[],i=[],s={},l=function(u,f){for(var h=i.length-1,m=[],p=e.spawn();i[h].x!=u||i[h].y!=f;)m.push(i.pop().edge),h--;m.push(i.pop().edge),m.forEach(function(g){var v=g.connectedNodes().intersection(e);p.merge(g),v.forEach(function(y){var b=y.id(),x=y.connectedEdges().intersection(e);p.merge(y),t[b].cutVertex?p.merge(x.filter(function(w){return w.isLoop()})):p.merge(x)})}),a.push(p)},d=function u(f,h,m){f===m&&(r+=1),t[h]={id:n,low:n++,cutVertex:!1};var p=e.getElementById(h).connectedEdges().intersection(e);if(p.size()===0)a.push(e.spawn(e.getElementById(h)));else{var g,v,y,b;p.forEach(function(x){g=x.source().id(),v=x.target().id(),y=g===h?v:g,y!==m&&(b=x.id(),s[b]||(s[b]=!0,i.push({x:h,y,edge:x})),y in t?t[h].low=Math.min(t[h].low,t[y].id):(u(f,y,h),t[h].low=Math.min(t[h].low,t[y].low),t[h].id<=t[y].low&&(t[h].cutVertex=!0,l(h,y))))})}};e.forEach(function(u){if(u.isNode()){var f=u.id();f in t||(r=0,d(f,f),t[f].cutVertex=r>1)}});var c=Object.keys(t).filter(function(u){return t[u].cutVertex}).map(function(u){return e.getElementById(u)});return{cut:e.spawn(c),components:a}},gae={hopcroftTarjanBiconnected:Zf,htbc:Zf,htb:Zf,hopcroftTarjanBiconnectedComponents:Zf},Jf=function(){var e=this,t={},n=0,r=[],a=[],i=e.spawn(e),s=function l(d){a.push(d),t[d]={index:n,low:n++,explored:!1};var c=e.getElementById(d).connectedEdges().intersection(e);if(c.forEach(function(p){var g=p.target().id();g!==d&&(g in t||l(g),t[g].explored||(t[d].low=Math.min(t[d].low,t[g].low)))}),t[d].index===t[d].low){for(var u=e.spawn();;){var f=a.pop();if(u.merge(e.getElementById(f)),t[f].low=t[d].index,t[f].explored=!0,f===d)break}var h=u.edgesWith(u),m=u.merge(h);r.push(m),i=i.difference(m)}};return e.forEach(function(l){if(l.isNode()){var d=l.id();d in t||s(d)}}),{cut:i,components:r}},yae={tarjanStronglyConnected:Jf,tsc:Jf,tscc:Jf,tarjanStronglyConnectedComponents:Jf},f3={};[Uc,Kre,Gre,Yre,Jre,eoe,roe,Toe,qs,Ws,Lg,zoe,eae,iae,pae,mae,gae,yae].forEach(function(e){He(f3,e)});/*! Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com) Licensed under The MIT License (http://opensource.org/licenses/MIT) */var p3=0,h3=1,m3=2,Xo=function e(t){if(!(this instanceof e))return new e(t);this.id="Thenable/1.0.7",this.state=p3,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof t=="function"&&t.call(this,this.fulfill.bind(this),this.reject.bind(this))};Xo.prototype={fulfill:function(e){return g3(this,h3,"fulfillValue",e)},reject:function(e){return g3(this,m3,"rejectReason",e)},then:function(e,t){var n=this,r=new Xo;return n.onFulfilled.push(b3(e,r,"fulfill")),n.onRejected.push(b3(t,r,"reject")),y3(n),r.proxy}};var g3=function(e,t,n,r){return e.state===p3&&(e.state=t,e[n]=r,y3(e)),e},y3=function(e){e.state===h3?v3(e,"onFulfilled",e.fulfillValue):e.state===m3&&v3(e,"onRejected",e.rejectReason)},v3=function(e,t,n){if(e[t].length!==0){var r=e[t];e[t]=[];var a=function(){for(var i=0;i0}},clearQueue:function(){return function(){var e=this,t=e.length!==void 0,n=t?e:[e],r=this._private.cy||this;if(!r.styleEnabled())return this;for(var a=0;a-1}var Eie=kie;function Sie(e,t){var n=this.__data__,r=ep(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var _ie=Sie;function Ys(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e0&&this.spawn(r).updateStyle().emit("class"),t},addClass:function(e){return this.toggleClass(e,!0)},hasClass:function(e){var t=this[0];return t!=null&&t._private.classes.has(e)},toggleClass:function(e,t){gt(e)||(e=e.match(/\S+/g)||[]);for(var n=this,r=t===void 0,a=[],i=0,s=n.length;i0&&this.spawn(a).updateStyle().emit("class"),n},removeClass:function(e){return this.toggleClass(e,!1)},flashClass:function(e,t){var n=this;if(t==null)t=250;else if(t===0)return n;return n.addClass(e),setTimeout(function(){n.removeClass(e)},t),n}};np.className=np.classNames=np.classes;var at={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:on,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};at.variable="(?:[\\w-.]|(?:\\\\"+at.metaChar+"))+",at.className="(?:[\\w-]|(?:\\\\"+at.metaChar+"))+",at.value=at.string+"|"+at.number,at.id=at.variable,function(){var e,t,n;for(e=at.comparatorOp.split("|"),n=0;n=0)&&t!=="="&&(at.comparatorOp+="|\\!"+t)}();var ht=function(){return{checks:[]}},Pe={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},Kg=[{selector:":selected",matches:function(e){return e.selected()}},{selector:":unselected",matches:function(e){return!e.selected()}},{selector:":selectable",matches:function(e){return e.selectable()}},{selector:":unselectable",matches:function(e){return!e.selectable()}},{selector:":locked",matches:function(e){return e.locked()}},{selector:":unlocked",matches:function(e){return!e.locked()}},{selector:":visible",matches:function(e){return e.visible()}},{selector:":hidden",matches:function(e){return!e.visible()}},{selector:":transparent",matches:function(e){return e.transparent()}},{selector:":grabbed",matches:function(e){return e.grabbed()}},{selector:":free",matches:function(e){return!e.grabbed()}},{selector:":removed",matches:function(e){return e.removed()}},{selector:":inside",matches:function(e){return!e.removed()}},{selector:":grabbable",matches:function(e){return e.grabbable()}},{selector:":ungrabbable",matches:function(e){return!e.grabbable()}},{selector:":animated",matches:function(e){return e.animated()}},{selector:":unanimated",matches:function(e){return!e.animated()}},{selector:":parent",matches:function(e){return e.isParent()}},{selector:":childless",matches:function(e){return e.isChildless()}},{selector:":child",matches:function(e){return e.isChild()}},{selector:":orphan",matches:function(e){return e.isOrphan()}},{selector:":nonorphan",matches:function(e){return e.isChild()}},{selector:":compound",matches:function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()}},{selector:":loop",matches:function(e){return e.isLoop()}},{selector:":simple",matches:function(e){return e.isSimple()}},{selector:":active",matches:function(e){return e.active()}},{selector:":inactive",matches:function(e){return!e.active()}},{selector:":backgrounding",matches:function(e){return e.backgrounding()}},{selector:":nonbackgrounding",matches:function(e){return!e.backgrounding()}}].sort(function(e,t){return zne(e.selector,t.selector)}),Ose=function(){for(var e={},t,n=0;n0&&c.edgeCount>0)return dt("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(c.edgeCount>1)return dt("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;c.edgeCount===1&&dt("The selector `"+e+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},Dse=function(){if(this.toStringCache!=null)return this.toStringCache;for(var e=function(d){return d??""},t=function(d){return Me(d)?'"'+d+'"':e(d)},n=function(d){return" "+d+" "},r=function(d,c){var u=d.type,f=d.value;switch(u){case Pe.GROUP:{var h=e(f);return h.substring(0,h.length-1)}case Pe.DATA_COMPARE:{var m=d.field,p=d.operator;return"["+m+n(e(p))+t(f)+"]"}case Pe.DATA_BOOL:{var g=d.operator,v=d.field;return"["+e(g)+v+"]"}case Pe.DATA_EXIST:{var y=d.field;return"["+y+"]"}case Pe.META_COMPARE:{var b=d.operator,x=d.field;return"[["+x+n(e(b))+t(f)+"]]"}case Pe.STATE:return f;case Pe.ID:return"#"+f;case Pe.CLASS:return"."+f;case Pe.PARENT:case Pe.CHILD:return a(d.parent,c)+n(">")+a(d.child,c);case Pe.ANCESTOR:case Pe.DESCENDANT:return a(d.ancestor,c)+" "+a(d.descendant,c);case Pe.COMPOUND_SPLIT:{var w=a(d.left,c),k=a(d.subject,c),C=a(d.right,c);return w+(w.length>0?" ":"")+k+C}case Pe.TRUE:return""}},a=function(d,c){return d.checks.reduce(function(u,f,h){return u+(c===d&&h===0?"$":"")+r(f,c)},"")},i="",s=0;s1&&s=0&&(t=t.replace("!",""),u=!0),t.indexOf("@")>=0&&(t=t.replace("@",""),c=!0),(a||s||c)&&(l=!a&&!i?"":""+e,d=""+n),c&&(e=l=l.toLowerCase(),n=d=d.toLowerCase()),t){case"*=":r=l.indexOf(d)>=0;break;case"$=":r=l.indexOf(d,l.length-d.length)>=0;break;case"^=":r=l.indexOf(d)===0;break;case"=":r=e===n;break;case">":f=!0,r=e>n;break;case">=":f=!0,r=e>=n;break;case"<":f=!0,r=e0;){var u=a.shift();t(u),i.add(u.id()),l&&r(a,i,u)}return e}function F3(e,t,n){if(n.isParent())for(var r=n._private.children,a=0;a1&&arguments[1]!==void 0?arguments[1]:!0;return Yg(this,e,t,F3)};function A3(e,t,n){if(n.isChild()){var r=n._private.parent;t.has(r.id())||e.push(r)}}Qs.forEachUp=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Yg(this,e,t,A3)};function Use(e,t,n){A3(e,t,n),F3(e,t,n)}Qs.forEachUpAndDown=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Yg(this,e,t,Use)},Qs.ancestors=Qs.parents;var Zc,I3;Zc=I3={data:ut.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:ut.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:ut.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:ut.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:ut.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:ut.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}},Zc.attr=Zc.data,Zc.removeAttr=Zc.removeData;var qse=I3,rp={};function Zg(e){return function(t){var n=this;if(t===void 0&&(t=!0),n.length!==0)if(n.isNode()&&!n.removed()){for(var r=0,a=n[0],i=a._private.edges,s=0;st}),minIndegree:el("indegree",function(e,t){return et}),minOutdegree:el("outdegree",function(e,t){return et})}),He(rp,{totalDegree:function(e){for(var t=0,n=this.nodes(),r=0;r0,f=u;u&&(c=c[0]);var h=f?c.position():{x:0,y:0};t!==void 0?d.position(e,t+h[e]):a!==void 0&&d.position({x:a.x+h.x,y:a.y+h.y})}else{var m=n.position(),p=s?n.parent():null,g=p&&p.length>0,v=g;g&&(p=p[0]);var y=v?p.position():{x:0,y:0};return a={x:m.x-y.x,y:m.y-y.y},e===void 0?a:a[e]}else if(!i)return;return this}},Qr.modelPosition=Qr.point=Qr.position,Qr.modelPositions=Qr.points=Qr.positions,Qr.renderedPoint=Qr.renderedPosition,Qr.relativePoint=Qr.relativePosition;var Wse=D3,tl,La;tl=La={},La.renderedBoundingBox=function(e){var t=this.boundingBox(e),n=this.cy(),r=n.zoom(),a=n.pan(),i=t.x1*r+a.x,s=t.x2*r+a.x,l=t.y1*r+a.y,d=t.y2*r+a.y;return{x1:i,x2:s,y1:l,y2:d,w:s-i,h:d-l}},La.dirtyCompoundBoundsCache=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=this.cy();return!t.styleEnabled()||!t.hasCompoundNodes()?this:(this.forEachUp(function(n){if(n.isParent()){var r=n._private;r.compoundBoundsClean=!1,r.bbCache=null,e||n.emitAndNotify("bounds")}}),this)},La.updateCompoundBounds=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=this.cy();if(!t.styleEnabled()||!t.hasCompoundNodes())return this;if(!e&&t.batching())return this;function n(s){if(!s.isParent())return;var l=s._private,d=s.children(),c=s.pstyle("compound-sizing-wrt-labels").value==="include",u={width:{val:s.pstyle("min-width").pfValue,left:s.pstyle("min-width-bias-left"),right:s.pstyle("min-width-bias-right")},height:{val:s.pstyle("min-height").pfValue,top:s.pstyle("min-height-bias-top"),bottom:s.pstyle("min-height-bias-bottom")}},f=d.boundingBox({includeLabels:c,includeOverlays:!1,useCache:!1}),h=l.position;(f.w===0||f.h===0)&&(f={w:s.pstyle("width").pfValue,h:s.pstyle("height").pfValue},f.x1=h.x-f.w/2,f.x2=h.x+f.w/2,f.y1=h.y-f.h/2,f.y2=h.y+f.h/2);function m(_,O,T){var N=0,F=0,$=O+T;return _>0&&$>0&&(N=O/$*_,F=T/$*_),{biasDiff:N,biasComplementDiff:F}}function p(_,O,T,N){if(T.units==="%")switch(N){case"width":return _>0?T.pfValue*_:0;case"height":return O>0?T.pfValue*O:0;case"average":return _>0&&O>0?T.pfValue*(_+O)/2:0;case"min":return _>0&&O>0?_>O?T.pfValue*O:T.pfValue*_:0;case"max":return _>0&&O>0?_>O?T.pfValue*_:T.pfValue*O:0;default:return 0}else return T.units==="px"?T.pfValue:0}var g=u.width.left.value;u.width.left.units==="px"&&u.width.val>0&&(g=g*100/u.width.val);var v=u.width.right.value;u.width.right.units==="px"&&u.width.val>0&&(v=v*100/u.width.val);var y=u.height.top.value;u.height.top.units==="px"&&u.height.val>0&&(y=y*100/u.height.val);var b=u.height.bottom.value;u.height.bottom.units==="px"&&u.height.val>0&&(b=b*100/u.height.val);var x=m(u.width.val-f.w,g,v),w=x.biasDiff,k=x.biasComplementDiff,C=m(u.height.val-f.h,y,b),E=C.biasDiff,S=C.biasComplementDiff;l.autoPadding=p(f.w,f.h,s.pstyle("padding"),s.pstyle("padding-relative-to").value),l.autoWidth=Math.max(f.w,u.width.val),h.x=(-w+f.x1+f.x2+k)/2,l.autoHeight=Math.max(f.h,u.height.val),h.y=(-E+f.y1+f.y2+S)/2}for(var r=0;re.x2?r:e.x2,e.y1=ne.y2?a:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},Ii=function(e,t){return t==null?e:eo(e,t.x1,t.y1,t.x2,t.y2)},Jc=function(e,t,n){return Jr(e,t,n)},op=function(e,t,n){if(!t.cy().headless()){var r=t._private,a=r.rstyle,i=a.arrowWidth/2,s=t.pstyle(n+"-arrow-shape").value,l,d;if(s!=="none"){n==="source"?(l=a.srcX,d=a.srcY):n==="target"?(l=a.tgtX,d=a.tgtY):(l=a.midX,d=a.midY);var c=r.arrowBounds=r.arrowBounds||{},u=c[n]=c[n]||{};u.x1=l-i,u.y1=d-i,u.x2=l+i,u.y2=d+i,u.w=u.x2-u.x1,u.h=u.y2-u.y1,Hf(u,1),eo(e,u.x1,u.y1,u.x2,u.y2)}}},Jg=function(e,t,n){if(!t.cy().headless()){var r;n?r=n+"-":r="";var a=t._private,i=a.rstyle,s=t.pstyle(r+"label").strValue;if(s){var l=t.pstyle("text-halign"),d=t.pstyle("text-valign"),c=Jc(i,"labelWidth",n),u=Jc(i,"labelHeight",n),f=Jc(i,"labelX",n),h=Jc(i,"labelY",n),m=t.pstyle(r+"text-margin-x").pfValue,p=t.pstyle(r+"text-margin-y").pfValue,g=t.isEdge(),v=t.pstyle(r+"text-rotation"),y=t.pstyle("text-outline-width").pfValue,b=t.pstyle("text-border-width").pfValue,x=b/2,w=t.pstyle("text-background-padding").pfValue,k=2,C=u,E=c,S=E/2,_=C/2,O,T,N,F;if(g)O=f-S,T=f+S,N=h-_,F=h+_;else{switch(l.value){case"left":O=f-E,T=f;break;case"center":O=f-S,T=f+S;break;case"right":O=f,T=f+E;break}switch(d.value){case"top":N=h-C,F=h;break;case"center":N=h-_,F=h+_;break;case"bottom":N=h,F=h+C;break}}O+=m-Math.max(y,x)-w-k,T+=m+Math.max(y,x)+w+k,N+=p-Math.max(y,x)-w-k,F+=p+Math.max(y,x)+w+k;var $=n||"main",D=a.labelBounds,P=D[$]=D[$]||{};P.x1=O,P.y1=N,P.x2=T,P.y2=F,P.w=T-O,P.h=F-N;var V=g&&v.strValue==="autorotate",I=v.pfValue!=null&&v.pfValue!==0;if(V||I){var z=V?Jc(a.rstyle,"labelAngle",n):v.pfValue,G=Math.cos(z),q=Math.sin(z),X=(O+T)/2,te=(N+F)/2;if(!g){switch(l.value){case"left":X=T;break;case"right":X=O;break}switch(d.value){case"top":te=F;break;case"bottom":te=N;break}}var le=function(ue,be){return ue=ue-X,be=be-te,{x:ue*G-be*q+X,y:ue*q+be*G+te}},de=le(O,N),ne=le(O,F),oe=le(T,N),U=le(T,F);O=Math.min(de.x,ne.x,oe.x,U.x),T=Math.max(de.x,ne.x,oe.x,U.x),N=Math.min(de.y,ne.y,oe.y,U.y),F=Math.max(de.y,ne.y,oe.y,U.y)}var W=$+"Rot",Z=D[W]=D[W]||{};Z.x1=O,Z.y1=N,Z.x2=T,Z.y2=F,Z.w=T-O,Z.h=F-N,eo(e,O,N,T,F),eo(a.labelBounds.all,O,N,T,F)}return e}},Kse=function(e,t){if(!t.cy().headless()){var n=t.pstyle("outline-opacity").value,r=t.pstyle("outline-width").value;if(n>0&&r>0){var a=t.pstyle("outline-offset").value,i=t.pstyle("shape").value,s=r+a,l=(e.w+s*2)/e.w,d=(e.h+s*2)/e.h,c=0,u=0;["diamond","pentagon","round-triangle"].includes(i)?(l=(e.w+s*2.4)/e.w,u=-s/3.6):["concave-hexagon","rhomboid","right-rhomboid"].includes(i)?l=(e.w+s*2.4)/e.w:i==="star"?(l=(e.w+s*2.8)/e.w,d=(e.h+s*2.6)/e.h,u=-s/3.8):i==="triangle"?(l=(e.w+s*2.8)/e.w,d=(e.h+s*2.4)/e.h,u=-s/1.4):i==="vee"&&(l=(e.w+s*4.4)/e.w,d=(e.h+s*3.8)/e.h,u=-s*.5);var f=e.h*d-e.h,h=e.w*l-e.w;if(Uf(e,[Math.ceil(f/2),Math.ceil(h/2)]),c!=0||u!==0){var m=hoe(e,c,u);US(e,m)}}}},Gse=function(e,t){var n=e._private.cy,r=n.styleEnabled(),a=n.headless(),i=er(),s=e._private,l=e.isNode(),d=e.isEdge(),c,u,f,h,m,p,g=s.rstyle,v=l&&r?e.pstyle("bounds-expansion").pfValue:[0],y=function(pe){return pe.pstyle("display").value!=="none"},b=!r||y(e)&&(!d||y(e.source())&&y(e.target()));if(b){var x=0,w=0;r&&t.includeOverlays&&(x=e.pstyle("overlay-opacity").value,x!==0&&(w=e.pstyle("overlay-padding").value));var k=0,C=0;r&&t.includeUnderlays&&(k=e.pstyle("underlay-opacity").value,k!==0&&(C=e.pstyle("underlay-padding").value));var E=Math.max(w,C),S=0,_=0;if(r&&(S=e.pstyle("width").pfValue,_=S/2),l&&t.includeNodes){var O=e.position();m=O.x,p=O.y;var T=e.outerWidth(),N=T/2,F=e.outerHeight(),$=F/2;c=m-N,u=m+N,f=p-$,h=p+$,eo(i,c,f,u,h),r&&t.includeOutlines&&Kse(i,e)}else if(d&&t.includeEdges)if(r&&!a){var D=e.pstyle("curve-style").strValue;if(c=Math.min(g.srcX,g.midX,g.tgtX),u=Math.max(g.srcX,g.midX,g.tgtX),f=Math.min(g.srcY,g.midY,g.tgtY),h=Math.max(g.srcY,g.midY,g.tgtY),c-=_,u+=_,f-=_,h+=_,eo(i,c,f,u,h),D==="haystack"){var P=g.haystackPts;if(P&&P.length===2){if(c=P[0].x,f=P[0].y,u=P[1].x,h=P[1].y,c>u){var V=c;c=u,u=V}if(f>h){var I=f;f=h,h=I}eo(i,c-_,f-_,u+_,h+_)}}else if(D==="bezier"||D==="unbundled-bezier"||D.endsWith("segments")||D.endsWith("taxi")){var z;switch(D){case"bezier":case"unbundled-bezier":z=g.bezierPts;break;case"segments":case"taxi":case"round-segments":case"round-taxi":z=g.linePts;break}if(z!=null)for(var G=0;Gu){var ne=c;c=u,u=ne}if(f>h){var oe=f;f=h,h=oe}c-=_,u+=_,f-=_,h+=_,eo(i,c,f,u,h)}if(r&&t.includeEdges&&d&&(op(i,e,"mid-source"),op(i,e,"mid-target"),op(i,e,"source"),op(i,e,"target")),r){var U=e.pstyle("ghost").value==="yes";if(U){var W=e.pstyle("ghost-offset-x").pfValue,Z=e.pstyle("ghost-offset-y").pfValue;eo(i,i.x1+W,i.y1+Z,i.x2+W,i.y2+Z)}}var ue=s.bodyBounds=s.bodyBounds||{};qS(ue,i),Uf(ue,v),Hf(ue,1),r&&(c=i.x1,u=i.x2,f=i.y1,h=i.y2,eo(i,c-E,f-E,u+E,h+E));var be=s.overlayBounds=s.overlayBounds||{};qS(be,i),Uf(be,v),Hf(be,1);var Be=s.labelBounds=s.labelBounds||{};Be.all!=null?poe(Be.all):Be.all=er(),r&&t.includeLabels&&(t.includeMainLabels&&Jg(i,e,null),d&&(t.includeSourceLabels&&Jg(i,e,"source"),t.includeTargetLabels&&Jg(i,e,"target")))}return i.x1=Pr(i.x1),i.y1=Pr(i.y1),i.x2=Pr(i.x2),i.y2=Pr(i.y2),i.w=Pr(i.x2-i.x1),i.h=Pr(i.y2-i.y1),i.w>0&&i.h>0&&b&&(Uf(i,v),Hf(i,1)),i},L3=function(e){var t=0,n=function(a){return(a?1:0)<0&&arguments[0]!==void 0?arguments[0]:cle,t=arguments.length>1?arguments[1]:void 0,n=0;n=0;l--)s(l);return this},Ma.removeAllListeners=function(){return this.removeListener("*")},Ma.emit=Ma.trigger=function(e,t,n){var r=this.listeners,a=r.length;return this.emitting++,gt(t)||(t=[t]),dle(this,function(i,s){n!=null&&(r=[{event:s.event,type:s.type,namespace:s.namespace,callback:n}],a=r.length);for(var l=function(c){var u=r[c];if(u.type===s.type&&(!u.namespace||u.namespace===s.namespace||u.namespace===lle)&&i.eventMatches(i.context,u,s)){var f=[s];t!=null&&zre(f,t),i.beforeEmit(i.context,u,s),u.conf&&u.conf.one&&(i.listeners=i.listeners.filter(function(p){return p!==u}));var h=i.callbackContext(i.context,u,s),m=u.callback.apply(h,f);i.afterEmit(i.context,u,s),m===!1&&(s.stopPropagation(),s.preventDefault())}},d=0;d1&&!i){var s=this.length-1,l=this[s],d=l._private.data.id;this[s]=void 0,this[e]=l,a.set(d,{ele:l,index:e})}return this.length--,this},unmergeOne:function(e){e=e[0];var t=this._private,n=e._private.data.id,r=t.map,a=r.get(n);if(!a)return this;var i=a.index;return this.unmergeAt(i),this},unmerge:function(e){var t=this._private.cy;if(!e)return this;if(e&&Me(e)){var n=e;e=t.mutableElements().filter(n)}for(var r=0;r=0;t--){var n=this[t];e(n)&&this.unmergeAt(t)}return this},map:function(e,t){for(var n=[],r=this,a=0;an&&(n=l,r=s)}return{value:n,ele:r}},min:function(e,t){for(var n=1/0,r,a=this,i=0;i=0&&a"u"?"undefined":nn(Symbol))!=e&&nn(Symbol.iterator)!=e;t&&(lp[Symbol.iterator]=function(){var n=this,r={value:void 0,done:!1},a=0,i=this.length;return pS({next:function(){return a1&&arguments[1]!==void 0?arguments[1]:!0,n=this[0],r=n.cy();if(r.styleEnabled()&&n){this.cleanStyle();var a=n._private.style[e];return a??(t?r.style().getDefaultProperty(e):null)}},numericStyle:function(e){var t=this[0];if(t.cy().styleEnabled()&&t){var n=t.pstyle(e);return n.pfValue!==void 0?n.pfValue:n.value}},numericStyleUnits:function(e){var t=this[0];if(t.cy().styleEnabled()&&t)return t.pstyle(e).units},renderedStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var n=this[0];if(n)return t.style().getRenderedStyle(n,e)},style:function(e,t){var n=this.cy();if(!n.styleEnabled())return this;var r=!1,a=n.style();if(ot(e)){var i=e;a.applyBypass(this,i,r),this.emitAndNotify("style")}else if(Me(e))if(t===void 0){var s=this[0];return s?a.getStylePropertyValue(s,e):void 0}else a.applyBypass(this,e,t,r),this.emitAndNotify("style");else if(e===void 0){var l=this[0];return l?a.getRawStyle(l):void 0}return this},removeStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var n=!1,r=t.style(),a=this;if(e===void 0)for(var i=0;i0&&t.push(u[0]),t.push(l[0])}return this.spawn(t,!0).filter(e)},"neighborhood"),closedNeighborhood:function(e){return this.neighborhood().add(this).filter(e)},openNeighborhood:function(e){return this.neighborhood(e)}}),Bn.neighbourhood=Bn.neighborhood,Bn.closedNeighbourhood=Bn.closedNeighborhood,Bn.openNeighbourhood=Bn.openNeighborhood,He(Bn,{source:Or(function(e){var t=this[0],n;return t&&(n=t._private.source||t.cy().collection()),n&&e?n.filter(e):n},"source"),target:Or(function(e){var t=this[0],n;return t&&(n=t._private.target||t.cy().collection()),n&&e?n.filter(e):n},"target"),sources:i5({attr:"source"}),targets:i5({attr:"target"})});function i5(e){return function(t){for(var n=[],r=0;r0);return i},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}}),Bn.componentsOf=Bn.components;var vn=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e===void 0){It("A collection must have a reference to the core");return}var a=new yo,i=!1;if(!t)t=[];else if(t.length>0&&ot(t[0])&&!Dc(t[0])){i=!0;for(var s=[],l=new zs,d=0,c=t.length;d0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=this,r=n.cy(),a=r._private,i=[],s=[],l,d=0,c=n.length;d0){for(var z=l.length===n.length?n:new vn(r,l),G=0;G0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=this,r=[],a={},i=n._private.cy;function s($){for(var D=$._private.edges,P=0;P0&&(e?T.emitAndNotify("remove"):t&&T.emit("remove"));for(var N=0;N0?N=$:T=$;while(Math.abs(F)>s&&++D=i?b(O,D):P===0?D:w(O,T,T+c)}var C=!1;function E(){C=!0,(e!==t||n!==r)&&x()}var S=function(O){return C||E(),e===t&&n===r?O:O===0?0:O===1?1:v(k(O),t,r)};S.getControlPoints=function(){return[{x:e,y:t},{x:n,y:r}]};var _="generateBezier("+[e,t,n,r]+")";return S.toString=function(){return _},S}/*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */var xle=function(){function e(r){return-r.tension*r.x-r.friction*r.v}function t(r,a,i){var s={x:r.x+i.dx*a,v:r.v+i.dv*a,tension:r.tension,friction:r.friction};return{dx:s.v,dv:e(s)}}function n(r,a){var i={dx:r.v,dv:e(r)},s=t(r,a*.5,i),l=t(r,a*.5,s),d=t(r,a,l),c=1/6*(i.dx+2*(s.dx+l.dx)+d.dx),u=1/6*(i.dv+2*(s.dv+l.dv)+d.dv);return r.x=r.x+c*a,r.v=r.v+u*a,r}return function r(a,i,s){var l={x:-1,v:0,tension:null,friction:null},d=[0],c=0,u=1/1e4,f=16/1e3,h,m,p;for(a=parseFloat(a)||500,i=parseFloat(i)||20,s=s||null,l.tension=a,l.friction=i,h=s!==null,h?(c=r(a,i),m=c/s*f):m=f;p=n(p||l,m),d.push(1+p.x),c+=16,Math.abs(p.x)>u&&Math.abs(p.v)>u;);return h?function(g){return d[g*(d.length-1)|0]}:c}}(),xt=function(e,t,n,r){var a=wle(e,t,n,r);return function(i,s,l){return i+(s-i)*a(l)}},fp={linear:function(e,t,n){return e+(t-e)*n},ease:xt(.25,.1,.25,1),"ease-in":xt(.42,0,1,1),"ease-out":xt(0,0,.58,1),"ease-in-out":xt(.42,0,.58,1),"ease-in-sine":xt(.47,0,.745,.715),"ease-out-sine":xt(.39,.575,.565,1),"ease-in-out-sine":xt(.445,.05,.55,.95),"ease-in-quad":xt(.55,.085,.68,.53),"ease-out-quad":xt(.25,.46,.45,.94),"ease-in-out-quad":xt(.455,.03,.515,.955),"ease-in-cubic":xt(.55,.055,.675,.19),"ease-out-cubic":xt(.215,.61,.355,1),"ease-in-out-cubic":xt(.645,.045,.355,1),"ease-in-quart":xt(.895,.03,.685,.22),"ease-out-quart":xt(.165,.84,.44,1),"ease-in-out-quart":xt(.77,0,.175,1),"ease-in-quint":xt(.755,.05,.855,.06),"ease-out-quint":xt(.23,1,.32,1),"ease-in-out-quint":xt(.86,0,.07,1),"ease-in-expo":xt(.95,.05,.795,.035),"ease-out-expo":xt(.19,1,.22,1),"ease-in-out-expo":xt(1,0,0,1),"ease-in-circ":xt(.6,.04,.98,.335),"ease-out-circ":xt(.075,.82,.165,1),"ease-in-out-circ":xt(.785,.135,.15,.86),spring:function(e,t,n){if(n===0)return fp.linear;var r=xle(e,t,n);return function(a,i,s){return a+(i-a)*r(s)}},"cubic-bezier":xt};function c5(e,t,n,r,a){if(r===1||t===n)return n;var i=a(t,n,r);return e==null||((e.roundValue||e.color)&&(i=Math.round(i)),e.min!==void 0&&(i=Math.max(i,e.min)),e.max!==void 0&&(i=Math.min(i,e.max))),i}function d5(e,t){return e.pfValue!=null||e.value!=null?e.pfValue!=null&&(t==null||t.type.units!=="%")?e.pfValue:e.value:e}function ol(e,t,n,r,a){var i=a!=null?a.type:null;n<0?n=0:n>1&&(n=1);var s=d5(e,a),l=d5(t,a);if(Ee(s)&&Ee(l))return c5(i,s,l,n,r);if(gt(s)&>(l)){for(var d=[],c=0;c0?(m==="spring"&&p.push(s.duration),s.easingImpl=fp[m].apply(null,p)):s.easingImpl=fp[m]}var g=s.easingImpl,v;if(s.duration===0?v=1:v=(n-d)/s.duration,s.applying&&(v=s.progress),v<0?v=0:v>1&&(v=1),s.delay==null){var y=s.startPosition,b=s.position;if(b&&a&&!e.locked()){var x={};rd(y.x,b.x)&&(x.x=ol(y.x,b.x,v,g)),rd(y.y,b.y)&&(x.y=ol(y.y,b.y,v,g)),e.position(x)}var w=s.startPan,k=s.pan,C=i.pan,E=k!=null&&r;E&&(rd(w.x,k.x)&&(C.x=ol(w.x,k.x,v,g)),rd(w.y,k.y)&&(C.y=ol(w.y,k.y,v,g)),e.emit("pan"));var S=s.startZoom,_=s.zoom,O=_!=null&&r;O&&(rd(S,_)&&(i.zoom=Wc(i.minZoom,ol(S,_,v,g),i.maxZoom)),e.emit("zoom")),(E||O)&&e.emit("viewport");var T=s.style;if(T&&T.length>0&&a){for(var N=0;N=0;C--){var E=k[C];E()}k.splice(0,k.length)},b=m.length-1;b>=0;b--){var x=m[b],w=x._private;if(w.stopped){m.splice(b,1),w.hooked=!1,w.playing=!1,w.started=!1,y(w.frames);continue}!w.playing&&!w.applying||(w.playing&&w.applying&&(w.applying=!1),w.started||kle(u,x,e),Cle(u,x,e,f),w.applying&&(w.applying=!1),y(w.frames),w.step!=null&&w.step(e),x.completed()&&(m.splice(b,1),w.hooked=!1,w.playing=!1,w.started=!1,y(w.completes)),g=!0)}return!f&&m.length===0&&p.length===0&&r.push(u),g}for(var i=!1,s=0;s0?t.notify("draw",n):t.notify("draw")),n.unmerge(r),t.emit("step")}var Ele={animate:ut.animate(),animation:ut.animation(),animated:ut.animated(),clearQueue:ut.clearQueue(),delay:ut.delay(),delayAnimation:ut.delayAnimation(),stop:ut.stop(),addToAnimationPool:function(e){var t=this;t.styleEnabled()&&t._private.aniEles.merge(e)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var e=this;if(e._private.animationsRunning=!0,!e.styleEnabled())return;function t(){e._private.animationsRunning&&Vf(function(r){u5(r,e),t()})}var n=e.renderer();n&&n.beforeRender?n.beforeRender(function(r,a){u5(a,e)},n.beforeRenderPriorities.animations):t()}},Sle={qualifierCompare:function(e,t){return e==null||t==null?e==null&&t==null:e.sameText(t)},eventMatches:function(e,t,n){var r=t.qualifier;return r!=null?e!==n.target&&Dc(n.target)&&r.matches(n.target):!0},addEventFields:function(e,t){t.cy=e,t.target=e},callbackContext:function(e,t,n){return t.qualifier!=null?n.target:e}},pp=function(e){return Me(e)?new Da(e):e},f5={createEmitter:function(){var e=this._private;return e.emitter||(e.emitter=new ip(Sle,this)),this},emitter:function(){return this._private.emitter},on:function(e,t,n){return this.emitter().on(e,pp(t),n),this},removeListener:function(e,t,n){return this.emitter().removeListener(e,pp(t),n),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,t,n){return this.emitter().one(e,pp(t),n),this},once:function(e,t,n){return this.emitter().one(e,pp(t),n),this},emit:function(e,t){return this.emitter().emit(e,t),this},emitAndNotify:function(e,t){return this.emit(e),this.notify(e,t),this}};ut.eventAliasesOn(f5);var ty={png:function(e){var t=this._private.renderer;return e=e||{},t.png(e)},jpg:function(e){var t=this._private.renderer;return e=e||{},e.bg=e.bg||"#fff",t.jpg(e)}};ty.jpeg=ty.jpg;var hp={layout:function(e){var t=this;if(e==null){It("Layout options must be specified to make a layout");return}if(e.name==null){It("A `name` must be specified to make a layout");return}var n=e.name,r=t.extension("layout",n);if(r==null){It("No such layout `"+n+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var a;Me(e.eles)?a=t.$(e.eles):a=e.eles!=null?e.eles:t.$();var i=new r(He({},e,{cy:t,eles:a}));return i}};hp.createLayout=hp.makeLayout=hp.layout;var _le={notify:function(e,t){var n=this._private;if(this.batching()){n.batchNotifications=n.batchNotifications||{};var r=n.batchNotifications[e]=n.batchNotifications[e]||this.collection();t!=null&&r.merge(t);return}if(n.notificationsEnabled){var a=this.renderer();this.destroyed()||!a||a.notify(e,t)}},notifications:function(e){var t=this._private;return e===void 0?t.notificationsEnabled:(t.notificationsEnabled=!!e,this)},noNotifications:function(e){this.notifications(!1),e(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var e=this._private;return e.batchCount==null&&(e.batchCount=0),e.batchCount===0&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},endBatch:function(){var e=this._private;if(e.batchCount===0)return this;if(e.batchCount--,e.batchCount===0){e.batchStyleEles.updateStyle();var t=this.renderer();Object.keys(e.batchNotifications).forEach(function(n){var r=e.batchNotifications[n];r.empty()?t.notify(n):t.notify(n,r)})}return this},batch:function(e){return this.startBatch(),e(),this.endBatch(),this},batchData:function(e){var t=this;return this.batch(function(){for(var n=Object.keys(e),r=0;r0;)t.removeChild(t.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(n){var r=n._private;r.rscratch={},r.rstyle={},r.animation.current=[],r.animation.queue=[]})},onRender:function(e){return this.on("render",e)},offRender:function(e){return this.off("render",e)}};ny.invalidateDimensions=ny.resize;var mp={collection:function(e,t){return Me(e)?this.$(e):ur(e)?e.collection():gt(e)?(t||(t={}),new vn(this,e,t.unique,t.removed)):new vn(this)},nodes:function(e){var t=this.$(function(n){return n.isNode()});return e?t.filter(e):t},edges:function(e){var t=this.$(function(n){return n.isEdge()});return e?t.filter(e):t},$:function(e){var t=this._private.elements;return e?t.filter(e):t.spawnSelf()},mutableElements:function(){return this._private.elements}};mp.elements=mp.filter=mp.$;var Tn={},od="t",Tle="f";Tn.apply=function(e){for(var t=this,n=t._private,r=n.cy,a=r.collection(),i=0;i0;if(h||f&&m){var p=void 0;h&&m||h?p=c.properties:m&&(p=c.mappedProperties);for(var g=0;g1&&(w=1),l.color){var C=r.valueMin[0],E=r.valueMax[0],S=r.valueMin[1],_=r.valueMax[1],O=r.valueMin[2],T=r.valueMax[2],N=r.valueMin[3]==null?1:r.valueMin[3],F=r.valueMax[3]==null?1:r.valueMax[3],$=[Math.round(C+(E-C)*w),Math.round(S+(_-S)*w),Math.round(O+(T-O)*w),Math.round(N+(F-N)*w)];i={bypass:r.bypass,name:r.name,value:$,strValue:"rgb("+$[0]+", "+$[1]+", "+$[2]+")"}}else if(l.number){var D=r.valueMin+(r.valueMax-r.valueMin)*w;i=this.parse(r.name,D,r.bypass,h)}else return!1;if(!i)return g(),!1;i.mapping=r,r=i;break}case s.data:{for(var P=r.field.split("."),V=f.data,I=0;I0&&i>0){for(var l={},d=!1,c=0;c0?e.delayAnimation(s).play().promise().then(x):x()}).then(function(){return e.animation({style:l,duration:i,easing:e.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){n.removeBypasses(e,a),e.emitAndNotify("style"),r.transitioning=!1})}else r.transitioning&&(this.removeBypasses(e,a),e.emitAndNotify("style"),r.transitioning=!1)},Tn.checkTrigger=function(e,t,n,r,a,i){var s=this.properties[t],l=a(s);l!=null&&l(n,r)&&i(s)},Tn.checkZOrderTrigger=function(e,t,n,r){var a=this;this.checkTrigger(e,t,n,r,function(i){return i.triggersZOrder},function(){a._private.cy.notify("zorder",e)})},Tn.checkBoundsTrigger=function(e,t,n,r){this.checkTrigger(e,t,n,r,function(a){return a.triggersBounds},function(a){e.dirtyCompoundBoundsCache(),e.dirtyBoundingBoxCache(),a.triggersBoundsOfParallelBeziers&&t==="curve-style"&&(n==="bezier"||r==="bezier")&&e.parallelEdges().forEach(function(i){i.isBundledBezier()&&i.dirtyBoundingBoxCache()}),a.triggersBoundsOfConnectedEdges&&t==="display"&&(n==="none"||r==="none")&&e.connectedEdges().forEach(function(i){i.dirtyBoundingBoxCache()})})},Tn.checkTriggers=function(e,t,n,r){e.dirtyStyleCache(),this.checkZOrderTrigger(e,t,n,r),this.checkBoundsTrigger(e,t,n,r)};var ad={};ad.applyBypass=function(e,t,n,r){var a=this,i=[],s=!0;if(t==="*"||t==="**"){if(n!==void 0)for(var l=0;la.length?r=r.substr(a.length):r=""}function d(){i.length>s.length?i=i.substr(s.length):i=""}for(;;){var c=r.match(/^\s*$/);if(c)break;var u=r.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!u){dt("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+r);break}a=u[0];var f=u[1];if(f!=="core"){var h=new Da(f);if(h.invalid){dt("Skipping parsing of block: Invalid selector found in string stylesheet: "+f),l();continue}}var m=u[2],p=!1;i=m;for(var g=[];;){var v=i.match(/^\s*$/);if(v)break;var y=i.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!y){dt("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+m),p=!0;break}s=y[0];var b=y[1],x=y[2],w=t.properties[b];if(!w){dt("Skipping property: Invalid property name in: "+s),d();continue}var k=n.parse(b,x);if(!k){dt("Skipping property: Invalid property definition in: "+s),d();continue}g.push({name:b,val:x}),d()}if(p){l();break}n.selector(f);for(var C=0;C=7&&t[0]==="d"&&(u=new RegExp(l.data.regex).exec(t))){if(n)return!1;var h=l.data;return{name:e,value:u,strValue:""+t,mapped:h,field:u[1],bypass:n}}else if(t.length>=10&&t[0]==="m"&&(f=new RegExp(l.mapData.regex).exec(t))){if(n||c.multiple)return!1;var m=l.mapData;if(!(c.color||c.number))return!1;var p=this.parse(e,f[4]);if(!p||p.mapped)return!1;var g=this.parse(e,f[5]);if(!g||g.mapped)return!1;if(p.pfValue===g.pfValue||p.strValue===g.strValue)return dt("`"+e+": "+t+"` is not a valid mapper because the output range is zero; converting to `"+e+": "+p.strValue+"`"),this.parse(e,p.strValue);if(c.color){var v=p.value,y=g.value,b=v[0]===y[0]&&v[1]===y[1]&&v[2]===y[2]&&(v[3]===y[3]||(v[3]==null||v[3]===1)&&(y[3]==null||y[3]===1));if(b)return!1}return{name:e,value:f,strValue:""+t,mapped:m,field:f[1],fieldMin:parseFloat(f[2]),fieldMax:parseFloat(f[3]),valueMin:p.value,valueMax:g.value,bypass:n}}}if(c.multiple&&r!=="multiple"){var x;if(d?x=t.split(/\s+/):gt(t)?x=t:x=[t],c.evenMultiple&&x.length%2!==0)return null;for(var w=[],k=[],C=[],E="",S=!1,_=0;_0?" ":"")+O.strValue}return c.validate&&!c.validate(w,k)?null:c.singleEnum&&S?w.length===1&&Me(w[0])?{name:e,value:w[0],strValue:w[0],bypass:n}:null:{name:e,value:w,pfValue:C,strValue:E,bypass:n,units:k}}var T=function(){for(var U=0;Uc.max||c.strictMax&&t===c.max))return null;var P={name:e,value:t,strValue:""+t+(N||""),units:N,bypass:n};return c.unitless||N!=="px"&&N!=="em"?P.pfValue=t:P.pfValue=N==="px"||!N?t:this.getEmSizeInPixels()*t,(N==="ms"||N==="s")&&(P.pfValue=N==="ms"?t:1e3*t),(N==="deg"||N==="rad")&&(P.pfValue=N==="rad"?t:coe(t)),N==="%"&&(P.pfValue=t/100),P}else if(c.propList){var V=[],I=""+t;if(I!=="none"){for(var z=I.split(/\s*,\s*|\s+/),G=0;G0&&s>0&&!isNaN(n.w)&&!isNaN(n.h)&&n.w>0&&n.h>0){l=Math.min((i-2*t)/n.w,(s-2*t)/n.h),l=l>this._private.maxZoom?this._private.maxZoom:l,l=l=n.minZoom&&(n.maxZoom=t),this},minZoom:function(e){return e===void 0?this._private.minZoom:this.zoomRange({min:e})},maxZoom:function(e){return e===void 0?this._private.maxZoom:this.zoomRange({max:e})},getZoomedViewport:function(e){var t=this._private,n=t.pan,r=t.zoom,a,i,s=!1;if(t.zoomingEnabled||(s=!0),Ee(e)?i=e:ot(e)&&(i=e.level,e.position!=null?a=zf(e.position,r,n):e.renderedPosition!=null&&(a=e.renderedPosition),a!=null&&!t.panningEnabled&&(s=!0)),i=i>t.maxZoom?t.maxZoom:i,i=it.maxZoom||!t.zoomingEnabled?i=!0:(t.zoom=l,a.push("zoom"))}if(r&&(!i||!e.cancelOnFailedZoom)&&t.panningEnabled){var d=e.pan;Ee(d.x)&&(t.pan.x=d.x,s=!1),Ee(d.y)&&(t.pan.y=d.y,s=!1),s||a.push("pan")}return a.length>0&&(a.push("viewport"),this.emit(a.join(" ")),this.notify("viewport")),this},center:function(e){var t=this.getCenterPan(e);return t&&(this._private.pan=t,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(e,t){if(this._private.panningEnabled){if(Me(e)){var n=e;e=this.mutableElements().filter(n)}else ur(e)||(e=this.mutableElements());if(e.length!==0){var r=e.boundingBox(),a=this.width(),i=this.height();t=t===void 0?this._private.zoom:t;var s={x:(a-t*(r.x1+r.x2))/2,y:(i-t*(r.y1+r.y2))/2};return s}}},reset:function(){return!this._private.panningEnabled||!this._private.zoomingEnabled?this:(this.viewport({pan:{x:0,y:0},zoom:1}),this)},invalidateSize:function(){this._private.sizeCache=null},size:function(){var e=this._private,t=e.container,n=this;return e.sizeCache=e.sizeCache||(t?function(){var r=n.window().getComputedStyle(t),a=function(i){return parseFloat(r.getPropertyValue(i))};return{width:t.clientWidth-a("padding-left")-a("padding-right"),height:t.clientHeight-a("padding-top")-a("padding-bottom")}}():{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var e=this._private.pan,t=this._private.zoom,n=this.renderedExtent(),r={x1:(n.x1-e.x)/t,x2:(n.x2-e.x)/t,y1:(n.y1-e.y)/t,y2:(n.y2-e.y)/t};return r.w=r.x2-r.x1,r.h=r.y2-r.y1,r},renderedExtent:function(){var e=this.width(),t=this.height();return{x1:0,y1:0,x2:e,y2:t,w:e,h:t}},multiClickDebounceTime:function(e){if(e)this._private.multiClickDebounceTime=e;else return this._private.multiClickDebounceTime;return this}};Di.centre=Di.center,Di.autolockNodes=Di.autolock,Di.autoungrabifyNodes=Di.autoungrabify;var id={data:ut.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:ut.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:ut.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:ut.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};id.attr=id.data,id.removeAttr=id.removeData;var sd=function(e){var t=this;e=He({},e);var n=e.container;n&&!Ff(n)&&Ff(n[0])&&(n=n[0]);var r=n?n._cyreg:null;r=r||{},r&&r.cy&&(r.cy.destroy(),r={});var a=r.readies=r.readies||[];n&&(n._cyreg=r),r.cy=t;var i=rn!==void 0&&n!==void 0&&!e.headless,s=e;s.layout=He({name:i?"grid":"null"},s.layout),s.renderer=He({name:i?"canvas":"null"},s.renderer);var l=function(h,m,p){return m!==void 0?m:p!==void 0?p:h},d=this._private={container:n,ready:!1,options:s,elements:new vn(this),listeners:[],aniEles:new vn(this),data:s.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:l(!0,s.zoomingEnabled),userZoomingEnabled:l(!0,s.userZoomingEnabled),panningEnabled:l(!0,s.panningEnabled),userPanningEnabled:l(!0,s.userPanningEnabled),boxSelectionEnabled:l(!0,s.boxSelectionEnabled),autolock:l(!1,s.autolock,s.autolockNodes),autoungrabify:l(!1,s.autoungrabify,s.autoungrabifyNodes),autounselectify:l(!1,s.autounselectify),styleEnabled:s.styleEnabled===void 0?i:s.styleEnabled,zoom:Ee(s.zoom)?s.zoom:1,pan:{x:ot(s.pan)&&Ee(s.pan.x)?s.pan.x:0,y:ot(s.pan)&&Ee(s.pan.y)?s.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:l(250,s.multiClickDebounceTime)};this.createEmitter(),this.selectionType(s.selectionType),this.zoomRange({min:s.minZoom,max:s.maxZoom});var c=function(h,m){var p=h.some(Fne);if(p)return Gs.all(h).then(m);m(h)};d.styleEnabled&&t.setStyle([]);var u=He({},s,s.renderer);t.initRenderer(u);var f=function(h,m,p){t.notifications(!1);var g=t.mutableElements();g.length>0&&g.remove(),h!=null&&(ot(h)||gt(h))&&t.add(h),t.one("layoutready",function(y){t.notifications(!0),t.emit(y),t.one("load",m),t.emitAndNotify("load")}).one("layoutstop",function(){t.one("done",p),t.emit("done")});var v=He({},t._private.options.layout);v.eles=t.elements(),t.layout(v).run()};c([s.style,s.elements],function(h){var m=h[0],p=h[1];d.styleEnabled&&t.style().append(m),f(p,function(){t.startAnimationLoop(),d.ready=!0,$t(s.ready)&&t.on("ready",s.ready);for(var g=0;g0,d=er(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()}),c;if(ur(t.roots))c=t.roots;else if(gt(t.roots)){for(var u=[],f=0;f0;){var D=$(),P=O(D,N);if(P)D.outgoers().filter(function(pe){return pe.isNode()&&r.has(pe)}).forEach(F);else if(P===null){dt("Detected double maximal shift for node `"+D.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}_();var V=0;if(t.avoidOverlap)for(var I=0;I0&&y[0].length<=3?Re/2:0),ze=2*Math.PI/y[ge].length*ke;return ge===0&&y[0].length===1&&(Ve=1),{x:ue.x+Ve*Math.cos(ze),y:ue.y+Ve*Math.sin(ze)}}else{var B={x:ue.x+(ke+1-(Ne+1)/2)*Ie,y:(ge+1)*Se};return B}};return r.nodes().layoutPositions(this,t,Be),this};var Fle={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function m5(e){this.options=He({},Fle,e)}m5.prototype.run=function(){var e=this.options,t=e,n=e.cy,r=t.eles,a=t.counterclockwise!==void 0?!t.counterclockwise:t.clockwise,i=r.nodes().not(":parent");t.sort&&(i=i.sort(t.sort));for(var s=er(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()}),l={x:s.x1+s.w/2,y:s.y1+s.h/2},d=t.sweep===void 0?2*Math.PI-2*Math.PI/i.length:t.sweep,c=d/Math.max(1,i.length-1),u,f=0,h=0;h1&&t.avoidOverlap){f*=1.75;var y=Math.cos(c)-Math.cos(0),b=Math.sin(c)-Math.sin(0),x=Math.sqrt(f*f/(y*y+b*b));u=Math.max(x,u)}var w=function(k,C){var E=t.startAngle+C*c*(a?1:-1),S=u*Math.cos(E),_=u*Math.sin(E),O={x:l.x+S,y:l.y+_};return O};return r.nodes().layoutPositions(this,t,w),this};var Ale={fit:!0,padding:30,startAngle:3/2*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(e){return e.degree()},levelWidth:function(e){return e.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function g5(e){this.options=He({},Ale,e)}g5.prototype.run=function(){for(var e=this.options,t=e,n=t.counterclockwise!==void 0?!t.counterclockwise:t.clockwise,r=e.cy,a=t.eles,i=a.nodes().not(":parent"),s=er(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),l={x:s.x1+s.w/2,y:s.y1+s.h/2},d=[],c=0,u=0;u0){var k=Math.abs(b[0].value-w.value);k>=v&&(b=[],y.push(b))}b.push(w)}var C=c+t.minNodeSpacing;if(!t.avoidOverlap){var E=y.length>0&&y[0].length>1,S=Math.min(s.w,s.h)/2-C,_=S/(y.length+E?1:0);C=Math.min(C,_)}for(var O=0,T=0;T1&&t.avoidOverlap){var D=Math.cos($)-Math.cos(0),P=Math.sin($)-Math.sin(0),V=Math.sqrt(C*C/(D*D+P*P));O=Math.max(V,O)}N.r=O,O+=C}if(t.equidistant){for(var I=0,z=0,G=0;G=e.numIter||(jle(r,e),r.temperature=r.temperature*e.coolingFactor,r.temperature=e.animationThreshold&&i(),Vf(f)}};u()}else{for(;c;)c=s(d),d++;b5(r,e),l()}return this},bp.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this},bp.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var Dle=function(e,t,n){for(var r=n.eles.edges(),a=n.eles.nodes(),i=er(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),s={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:a.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:r.size(),temperature:n.initialTemp,clientWidth:i.w,clientHeight:i.h,boundingBox:i},l=n.eles.components(),d={},c=0;c0){s.graphSet.push(E);for(var c=0;cr.count?0:r.graph},Rle=function e(t,n,r,a){var i=a.graphSet[r];if(-10)var v=r.nodeOverlap*c,g=Math.sqrt(s*s+l*l),y=v*s/g,b=v*l/g;else var u=wp(e,s,l),f=wp(t,-1*s,-1*l),h=f.x-u.x,m=f.y-u.y,p=h*h+m*m,g=Math.sqrt(p),v=(e.nodeRepulsion+t.nodeRepulsion)/p,y=v*h/g,b=v*m/g;e.isLocked||(e.offsetX-=y,e.offsetY-=b),t.isLocked||(t.offsetX+=y,t.offsetY+=b)}},qle=function(e,t,n,r){if(n>0)var a=e.maxX-t.minX;else var a=t.maxX-e.minX;if(r>0)var i=e.maxY-t.minY;else var i=t.maxY-e.minY;return a>=0&&i>=0?Math.sqrt(a*a+i*i):0},wp=function(e,t,n){var r=e.positionX,a=e.positionY,i=e.height||1,s=e.width||1,l=n/t,d=i/s,c={};return t===0&&0n?(c.x=r,c.y=a+i/2,c):0t&&-1*d<=l&&l<=d?(c.x=r-s/2,c.y=a-s*n/2/t,c):0=d)?(c.x=r+i*t/2/n,c.y=a+i/2,c):(0>n&&(l<=-1*d||l>=d)&&(c.x=r-i*t/2/n,c.y=a-i/2),c)},Wle=function(e,t){for(var n=0;nn){var g=t.gravity*h/p,v=t.gravity*m/p;f.offsetX+=g,f.offsetY+=v}}}}},Gle=function(e,t){var n=[],r=0,a=-1;for(n.push.apply(n,e.graphSet[0]),a+=e.graphSet[0].length;r<=a;){var i=n[r++],s=e.idToIndex[i],l=e.layoutNodes[s],d=l.children;if(0n)var a={x:n*e/r,y:n*t/r};else var a={x:e,y:t};return a},Zle=function e(t,n){var r=t.parentId;if(r!=null){var a=n.layoutNodes[n.idToIndex[r]],i=!1;if((a.maxX==null||t.maxX+a.padRight>a.maxX)&&(a.maxX=t.maxX+a.padRight,i=!0),(a.minX==null||t.minX-a.padLefta.maxY)&&(a.maxY=t.maxY+a.padBottom,i=!0),(a.minY==null||t.minY-a.padTopv&&(m+=g+t.componentSpacing,h=0,p=0,g=0)}}},Jle={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(e){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function w5(e){this.options=He({},Jle,e)}w5.prototype.run=function(){var e=this.options,t=e,n=e.cy,r=t.eles,a=r.nodes().not(":parent");t.sort&&(a=a.sort(t.sort));var i=er(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()});if(i.h===0||i.w===0)r.nodes().layoutPositions(this,t,function(te){return{x:i.x1,y:i.y1}});else{var s=a.size(),l=Math.sqrt(s*i.h/i.w),d=Math.round(l),c=Math.round(i.w/i.h*l),u=function(te){if(te==null)return Math.min(d,c);var le=Math.min(d,c);le==d?d=te:c=te},f=function(te){if(te==null)return Math.max(d,c);var le=Math.max(d,c);le==d?d=te:c=te},h=t.rows,m=t.cols!=null?t.cols:t.columns;if(h!=null&&m!=null)d=h,c=m;else if(h!=null&&m==null)d=h,c=Math.ceil(s/d);else if(h==null&&m!=null)c=m,d=Math.ceil(s/c);else if(c*d>s){var p=u(),g=f();(p-1)*g>=s?u(p-1):(g-1)*p>=s&&f(g-1)}else for(;c*d=s?f(y+1):u(v+1)}var b=i.w/c,x=i.h/d;if(t.condense&&(b=0,x=0),t.avoidOverlap)for(var w=0;w=c&&(D=0,$++)},V={},I=0;I(V=Coe(e,t,I[z],I[z+1],I[z+2],I[z+3])))return v(E,V),!0}else if(_.edgeType==="bezier"||_.edgeType==="multibezier"||_.edgeType==="self"||_.edgeType==="compound"){for(var I=_.allpts,z=0;z+5<_.allpts.length;z+=4)if(voe(e,t,I[z],I[z+1],I[z+2],I[z+3],I[z+4],I[z+5],$)&&F>(V=xoe(e,t,I[z],I[z+1],I[z+2],I[z+3],I[z+4],I[z+5])))return v(E,V),!0}for(var D=D||S.source,P=P||S.target,G=a.getArrowWidth(O,T),q=[{name:"source",x:_.arrowStartX,y:_.arrowStartY,angle:_.srcArrowAngle},{name:"target",x:_.arrowEndX,y:_.arrowEndY,angle:_.tgtArrowAngle},{name:"mid-source",x:_.midX,y:_.midY,angle:_.midsrcArrowAngle},{name:"mid-target",x:_.midX,y:_.midY,angle:_.midtgtArrowAngle}],z=0;z0&&(y(D),y(P))}function x(E,S,_){return Jr(E,S,_)}function w(E,S){var _=E._private,O=h,T;S?T=S+"-":T="",E.boundingBox();var N=_.labelBounds[S||"main"],F=E.pstyle(T+"label").value,$=E.pstyle("text-events").strValue==="yes";if(!(!$||!F)){var D=x(_.rscratch,"labelX",S),P=x(_.rscratch,"labelY",S),V=x(_.rscratch,"labelAngle",S),I=E.pstyle(T+"text-margin-x").pfValue,z=E.pstyle(T+"text-margin-y").pfValue,G=N.x1-O-I,q=N.x2+O-I,X=N.y1-O-z,te=N.y2+O-z;if(V){var le=Math.cos(V),de=Math.sin(V),ne=function(be,Be){return be=be-D,Be=Be-P,{x:be*le-Be*de+D,y:be*de+Be*le+P}},oe=ne(G,X),U=ne(G,te),W=ne(q,X),Z=ne(q,te),ue=[oe.x+I,oe.y+z,W.x+I,W.y+z,Z.x+I,Z.y+z,U.x+I,U.y+z];if(tr(e,t,ue))return v(E),!0}else if(Us(N,e,t))return v(E),!0}}for(var k=s.length-1;k>=0;k--){var C=s[k];C.isNode()?y(C)||w(C):b(C)||w(C)||w(C,"source")||w(C,"target")}return l},Vi.getAllInBox=function(e,t,n,r){var a=this.getCachedZSortedEles().interactive,i=[],s=Math.min(e,n),l=Math.max(e,n),d=Math.min(t,r),c=Math.max(t,r);e=s,n=l,t=d,r=c;for(var u=er({x1:e,y1:t,x2:n,y2:r}),f=0;f0?-(Math.PI-e.ang):Math.PI+e.ang},oce=function(e,t,n,r,a){if(e!==O5?P5(t,e,bo):rce($r,bo),P5(t,n,$r),_5=bo.nx*$r.ny-bo.ny*$r.nx,B5=bo.nx*$r.nx-bo.ny*-$r.ny,Yo=Math.asin(Math.max(-1,Math.min(1,_5))),Math.abs(Yo)<1e-6){ly=t.x,cy=t.y,Mi=il=0;return}Ri=1,Cp=!1,B5<0?Yo<0?Yo=Math.PI+Yo:(Yo=Math.PI-Yo,Ri=-1,Cp=!0):Yo>0&&(Ri=-1,Cp=!0),t.radius!==void 0?il=t.radius:il=r,Li=Yo/2,kp=Math.min(bo.len/2,$r.len/2),a?(wo=Math.abs(Math.cos(Li)*il/Math.sin(Li)),wo>kp?(wo=kp,Mi=Math.abs(wo*Math.sin(Li)/Math.cos(Li))):Mi=il):(wo=Math.min(kp,il),Mi=Math.abs(wo*Math.sin(Li)/Math.cos(Li))),dy=t.x+$r.nx*wo,uy=t.y+$r.ny*wo,ly=dy-$r.ny*Mi*Ri,cy=uy+$r.nx*Mi*Ri,T5=t.x+bo.nx*wo,N5=t.y+bo.ny*wo,O5=t};function $5(e,t){t.radius===0?e.lineTo(t.cx,t.cy):e.arc(t.cx,t.cy,t.radius,t.startAngle,t.endAngle,t.counterClockwise)}function fy(e,t,n,r){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;return r===0||t.radius===0?{cx:t.x,cy:t.y,radius:0,startX:t.x,startY:t.y,stopX:t.x,stopY:t.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(oce(e,t,n,r,a),{cx:ly,cy,radius:Mi,startX:T5,startY:N5,stopX:dy,stopY:uy,startAngle:bo.ang+Math.PI/2*Ri,endAngle:$r.ang-Math.PI/2*Ri,counterClockwise:Cp})}var Pn={};Pn.findMidptPtsEtc=function(e,t){var n=t.posPts,r=t.intersectionPts,a=t.vectorNormInverse,i,s=e.pstyle("source-endpoint"),l=e.pstyle("target-endpoint"),d=s.units!=null&&l.units!=null,c=function(w,k,C,E){var S=E-k,_=C-w,O=Math.sqrt(_*_+S*S);return{x:-S/O,y:_/O}},u=e.pstyle("edge-distances").value;switch(u){case"node-position":i=n;break;case"intersection":i=r;break;case"endpoints":{if(d){var f=this.manualEndptToPx(e.source()[0],s),h=Zr(f,2),m=h[0],p=h[1],g=this.manualEndptToPx(e.target()[0],l),v=Zr(g,2),y=v[0],b=v[1],x={x1:m,y1:p,x2:y,y2:b};a=c(m,p,y,b),i=x}else dt("Edge ".concat(e.id()," has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).")),i=r;break}}return{midptPts:i,vectorNormInverse:a}},Pn.findHaystackPoints=function(e){for(var t=0;t0?Math.max(Fe-De,0):Math.min(Fe+De,0)},F=N(O,S),$=N(T,_),D=!1;b===c?y=Math.abs(F)>Math.abs($)?a:r:b===d||b===l?(y=r,D=!0):(b===i||b===s)&&(y=a,D=!0);var P=y===r,V=P?$:F,I=P?T:O,z=HS(I),G=!1;!(D&&(w||C))&&(b===l&&I<0||b===d&&I>0||b===i&&I>0||b===s&&I<0)&&(z*=-1,V=z*Math.abs(V),G=!0);var q;if(w){var X=k<0?1+k:k;q=X*V}else{var te=k<0?V:0;q=te+k*z}var le=function(Fe){return Math.abs(Fe)=Math.abs(V)},de=le(q),ne=le(Math.abs(V)-Math.abs(q)),oe=de||ne;if(oe&&!G)if(P){var U=Math.abs(I)<=h/2,W=Math.abs(O)<=m/2;if(U){var Z=(u.x1+u.x2)/2,ue=u.y1,be=u.y2;n.segpts=[Z,ue,Z,be]}else if(W){var Be=(u.y1+u.y2)/2,pe=u.x1,xe=u.x2;n.segpts=[pe,Be,xe,Be]}else n.segpts=[u.x1,u.y2]}else{var ge=Math.abs(I)<=f/2,ke=Math.abs(T)<=p/2;if(ge){var Ne=(u.y1+u.y2)/2,Ie=u.x1,Se=u.x2;n.segpts=[Ie,Ne,Se,Ne]}else if(ke){var Re=(u.x1+u.x2)/2,Ve=u.y1,ze=u.y2;n.segpts=[Re,Ve,Re,ze]}else n.segpts=[u.x2,u.y1]}else if(P){var B=u.y1+q+(v?h/2*z:0),L=u.x1,Y=u.x2;n.segpts=[L,B,Y,B]}else{var Q=u.x1+q+(v?f/2*z:0),ee=u.y1,he=u.y2;n.segpts=[Q,ee,Q,he]}if(n.isRound){var ae=e.pstyle("taxi-radius").value,ye=e.pstyle("radius-type").value[0]==="arc-radius";n.radii=new Array(n.segpts.length/2).fill(ae),n.isArcRadius=new Array(n.segpts.length/2).fill(ye)}},Pn.tryToCorrectInvalidPoints=function(e,t){var n=e._private.rscratch;if(n.edgeType==="bezier"){var r=t.srcPos,a=t.tgtPos,i=t.srcW,s=t.srcH,l=t.tgtW,d=t.tgtH,c=t.srcShape,u=t.tgtShape,f=t.srcCornerRadius,h=t.tgtCornerRadius,m=t.srcRs,p=t.tgtRs,g=!Ee(n.startX)||!Ee(n.startY),v=!Ee(n.arrowStartX)||!Ee(n.arrowStartY),y=!Ee(n.endX)||!Ee(n.endY),b=!Ee(n.arrowEndX)||!Ee(n.arrowEndY),x=3,w=this.getArrowWidth(e.pstyle("width").pfValue,e.pstyle("arrow-scale").value)*this.arrowShapeWidth,k=x*w,C=Oi({x:n.ctrlpts[0],y:n.ctrlpts[1]},{x:n.startX,y:n.startY}),E=CF.poolIndex()){var $=N;N=F,F=$}var D=S.srcPos=N.position(),P=S.tgtPos=F.position(),V=S.srcW=N.outerWidth(),I=S.srcH=N.outerHeight(),z=S.tgtW=F.outerWidth(),G=S.tgtH=F.outerHeight(),q=S.srcShape=n.nodeShapes[t.getNodeShape(N)],X=S.tgtShape=n.nodeShapes[t.getNodeShape(F)],te=S.srcCornerRadius=N.pstyle("corner-radius").value==="auto"?"auto":N.pstyle("corner-radius").pfValue,le=S.tgtCornerRadius=F.pstyle("corner-radius").value==="auto"?"auto":F.pstyle("corner-radius").pfValue,de=S.tgtRs=F._private.rscratch,ne=S.srcRs=N._private.rscratch;S.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var oe=0;oe0){var be=i,Be=Pi(be,js(n)),pe=Pi(be,js(ue)),xe=Be;if(pe2){var ge=Pi(be,{x:ue[2],y:ue[3]});ge0){var he=s,ae=Pi(he,js(n)),ye=Pi(he,js(ee)),Fe=ae;if(ye2){var De=Pi(he,{x:ee[2],y:ee[3]});De=m||C){g={cp:x,segment:k};break}}if(g)break}var E=g.cp,S=g.segment,_=(m-v)/S.length,O=S.t1-S.t0,T=h?S.t0+O*_:S.t1-O*_;T=Wc(0,T,1),t=Hs(E.p0,E.p1,E.p2,T),f=ice(E.p0,E.p1,E.p2,T);break}case"straight":case"segments":case"haystack":{for(var N=0,F,$,D,P,V=r.allpts.length,I=0;I+3=m));I+=2);var z=m-$,G=z/F;G=Wc(0,G,1),t=uoe(D,P,G),f=I5(D,P);break}}s("labelX",u,t.x),s("labelY",u,t.y),s("labelAutoAngle",u,f)}};c("source"),c("target"),this.applyLabelDimensions(e)}},xo.applyLabelDimensions=function(e){this.applyPrefixedLabelDimensions(e),e.isEdge()&&(this.applyPrefixedLabelDimensions(e,"source"),this.applyPrefixedLabelDimensions(e,"target"))},xo.applyPrefixedLabelDimensions=function(e,t){var n=e._private,r=this.getLabelText(e,t),a=this.calculateLabelDimensions(e,r),i=e.pstyle("line-height").pfValue,s=e.pstyle("text-wrap").strValue,l=Jr(n.rscratch,"labelWrapCachedLines",t)||[],d=s!=="wrap"?1:Math.max(l.length,1),c=a.height/d,u=c*i,f=a.width,h=a.height+(d-1)*(i-1)*c;Fa(n.rstyle,"labelWidth",t,f),Fa(n.rscratch,"labelWidth",t,f),Fa(n.rstyle,"labelHeight",t,h),Fa(n.rscratch,"labelHeight",t,h),Fa(n.rscratch,"labelLineHeight",t,u)},xo.getLabelText=function(e,t){var n=e._private,r=t?t+"-":"",a=e.pstyle(r+"label").strValue,i=e.pstyle("text-transform").value,s=function(X,te){return te?(Fa(n.rscratch,X,t,te),te):Jr(n.rscratch,X,t)};if(!a)return"";i=="none"||(i=="uppercase"?a=a.toUpperCase():i=="lowercase"&&(a=a.toLowerCase()));var l=e.pstyle("text-wrap").value;if(l==="wrap"){var d=s("labelKey");if(d!=null&&s("labelWrapKey")===d)return s("labelWrapCachedText");for(var c="​",u=a.split(` `),f=e.pstyle("text-max-width").pfValue,h=e.pstyle("text-overflow-wrap").value,m=h==="anywhere",p=[],g=/[\s\u200b]+|$/g,v=0;vf){var k=y.matchAll(g),C="",E=0,S=gS(k),_;try{for(S.s();!(_=S.n()).done;){var O=_.value,T=O[0],N=y.substring(E,O.index);E=O.index+T.length;var F=C.length===0?N:C+N+T,$=this.calculateLabelDimensions(e,F),D=$.width;D<=f?C+=N+T:(C&&p.push(C),C=N+T)}}catch(X){S.e(X)}finally{S.f()}C.match(/^[\s\u200b]+$/)||p.push(C)}else p.push(y)}s("labelWrapCachedLines",p),a=s("labelWrapCachedText",p.join(` `)),s("labelWrapKey",d)}else if(l==="ellipsis"){var P=e.pstyle("text-max-width").pfValue,V="",I="…",z=!1;if(this.calculateLabelDimensions(e,a).widthP)break;V+=a[G],G===a.length-1&&(z=!0)}return z||(V+=I),V}return a},xo.getLabelJustification=function(e){var t=e.pstyle("text-justification").strValue,n=e.pstyle("text-halign").strValue;if(t==="auto")if(e.isNode())switch(n){case"left":return"right";case"right":return"left";default:return"center"}else return"center";else return t},xo.calculateLabelDimensions=function(e,t){var n=this,r=n.cy.window(),a=r.document,i=Ni(t,e._private.labelDimsKey),s=n.labelDimCache||(n.labelDimCache=[]),l=s[i];if(l!=null)return l;var d=0,c=e.pstyle("font-style").strValue,u=e.pstyle("font-size").pfValue,f=e.pstyle("font-family").strValue,h=e.pstyle("font-weight").strValue,m=this.labelCalcCanvas,p=this.labelCalcCanvasContext;if(!m){m=this.labelCalcCanvas=a.createElement("canvas"),p=this.labelCalcCanvasContext=m.getContext("2d");var g=m.style;g.position="absolute",g.left="-9999px",g.top="-9999px",g.zIndex="-1",g.visibility="hidden",g.pointerEvents="none"}p.font="".concat(c," ").concat(h," ").concat(u,"px ").concat(f);for(var v=0,y=0,b=t.split(` `),x=0;x1&&arguments[1]!==void 0?arguments[1]:!0;if(t.merge(i),s)for(var l=0;l=e.desktopTapThreshold2}var Nt=a(B);Qe&&(e.hoverData.tapholdCancelled=!0);var Gt=function(){var Fn=e.hoverData.dragDelta=e.hoverData.dragDelta||[];Fn.length===0?(Fn.push(we[0]),Fn.push(we[1])):(Fn[0]+=we[0],Fn[1]+=we[1])};Y=!0,r(K,["mousemove","vmousemove","tapdrag"],B,{x:ae[0],y:ae[1]});var Xt=function(){e.data.bgActivePosistion=void 0,e.hoverData.selecting||Q.emit({originalEvent:B,type:"boxstart",position:{x:ae[0],y:ae[1]}}),De[4]=1,e.hoverData.selecting=!0,e.redrawHint("select",!0),e.redraw()};if(e.hoverData.which===3){if(Qe){var Rt={originalEvent:B,type:"cxtdrag",position:{x:ae[0],y:ae[1]}};ie?ie.emit(Rt):Q.emit(Rt),e.hoverData.cxtDragged=!0,(!e.hoverData.cxtOver||K!==e.hoverData.cxtOver)&&(e.hoverData.cxtOver&&e.hoverData.cxtOver.emit({originalEvent:B,type:"cxtdragout",position:{x:ae[0],y:ae[1]}}),e.hoverData.cxtOver=K,K&&K.emit({originalEvent:B,type:"cxtdragover",position:{x:ae[0],y:ae[1]}}))}}else if(e.hoverData.dragging){if(Y=!0,Q.panningEnabled()&&Q.userPanningEnabled()){var $n;if(e.hoverData.justStartedPan){var xn=e.hoverData.mdownPos;$n={x:(ae[0]-xn[0])*ee,y:(ae[1]-xn[1])*ee},e.hoverData.justStartedPan=!1}else $n={x:we[0]*ee,y:we[1]*ee};Q.panBy($n),Q.emit("dragpan"),e.hoverData.dragged=!0}ae=e.projectIntoViewport(B.clientX,B.clientY)}else if(De[4]==1&&(ie==null||ie.pannable())){if(Qe){if(!e.hoverData.dragging&&Q.boxSelectionEnabled()&&(Nt||!Q.panningEnabled()||!Q.userPanningEnabled()))Xt();else if(!e.hoverData.selecting&&Q.panningEnabled()&&Q.userPanningEnabled()){var Cn=i(ie,e.hoverData.downs);Cn&&(e.hoverData.dragging=!0,e.hoverData.justStartedPan=!0,De[4]=0,e.data.bgActivePosistion=js(ye),e.redrawHint("select",!0),e.redraw())}ie&&ie.pannable()&&ie.active()&&ie.unactivate()}}else{if(ie&&ie.pannable()&&ie.active()&&ie.unactivate(),(!ie||!ie.grabbed())&&K!=fe&&(fe&&r(fe,["mouseout","tapdragout"],B,{x:ae[0],y:ae[1]}),K&&r(K,["mouseover","tapdragover"],B,{x:ae[0],y:ae[1]}),e.hoverData.last=K),ie)if(Qe){if(Q.boxSelectionEnabled()&&Nt)ie&&ie.grabbed()&&(v(nt),ie.emit("freeon"),nt.emit("free"),e.dragData.didDrag&&(ie.emit("dragfreeon"),nt.emit("dragfree"))),Xt();else if(ie&&ie.grabbed()&&e.nodeIsDraggable(ie)){var vt=!e.dragData.didDrag;vt&&e.redrawHint("eles",!0),e.dragData.didDrag=!0,e.hoverData.draggingEles||p(nt,{inDragLayer:!0});var Ot={x:0,y:0};if(Ee(we[0])&&Ee(we[1])&&(Ot.x+=we[0],Ot.y+=we[1],vt)){var Vt=e.hoverData.dragDelta;Vt&&Ee(Vt[0])&&Ee(Vt[1])&&(Ot.x+=Vt[0],Ot.y+=Vt[1])}e.hoverData.draggingEles=!0,nt.silentShift(Ot).emit("position drag"),e.redrawHint("drag",!0),e.redraw()}}else Gt();Y=!0}if(De[2]=ae[0],De[3]=ae[1],Y)return B.stopPropagation&&B.stopPropagation(),B.preventDefault&&B.preventDefault(),!1}},!1);var O,T,N;e.registerBinding(t,"mouseup",function(B){if(!(e.hoverData.which===1&&B.which!==1&&e.hoverData.capture)){var L=e.hoverData.capture;if(L){e.hoverData.capture=!1;var Y=e.cy,Q=e.projectIntoViewport(B.clientX,B.clientY),ee=e.selection,he=e.findNearestElement(Q[0],Q[1],!0,!1),ae=e.dragData.possibleDragElements,ye=e.hoverData.down,Fe=a(B);if(e.data.bgActivePosistion&&(e.redrawHint("select",!0),e.redraw()),e.hoverData.tapholdCancelled=!0,e.data.bgActivePosistion=void 0,ye&&ye.unactivate(),e.hoverData.which===3){var De={originalEvent:B,type:"cxttapend",position:{x:Q[0],y:Q[1]}};if(ye?ye.emit(De):Y.emit(De),!e.hoverData.cxtDragged){var K={originalEvent:B,type:"cxttap",position:{x:Q[0],y:Q[1]}};ye?ye.emit(K):Y.emit(K)}e.hoverData.cxtDragged=!1,e.hoverData.which=null}else if(e.hoverData.which===1){if(r(he,["mouseup","tapend","vmouseup"],B,{x:Q[0],y:Q[1]}),!e.dragData.didDrag&&!e.hoverData.dragged&&!e.hoverData.selecting&&!e.hoverData.isOverThresholdDrag&&(r(ye,["click","tap","vclick"],B,{x:Q[0],y:Q[1]}),T=!1,B.timeStamp-N<=Y.multiClickDebounceTime()?(O&&clearTimeout(O),T=!0,N=null,r(ye,["dblclick","dbltap","vdblclick"],B,{x:Q[0],y:Q[1]})):(O=setTimeout(function(){T||r(ye,["oneclick","onetap","voneclick"],B,{x:Q[0],y:Q[1]})},Y.multiClickDebounceTime()),N=B.timeStamp)),ye==null&&!e.dragData.didDrag&&!e.hoverData.selecting&&!e.hoverData.dragged&&!a(B)&&(Y.$(n).unselect(["tapunselect"]),ae.length>0&&e.redrawHint("eles",!0),e.dragData.possibleDragElements=ae=Y.collection()),he==ye&&!e.dragData.didDrag&&!e.hoverData.selecting&&he!=null&&he._private.selectable&&(e.hoverData.dragging||(Y.selectionType()==="additive"||Fe?he.selected()?he.unselect(["tapunselect"]):he.select(["tapselect"]):Fe||(Y.$(n).unmerge(he).unselect(["tapunselect"]),he.select(["tapselect"]))),e.redrawHint("eles",!0)),e.hoverData.selecting){var fe=Y.collection(e.getAllInBox(ee[0],ee[1],ee[2],ee[3]));e.redrawHint("select",!0),fe.length>0&&e.redrawHint("eles",!0),Y.emit({type:"boxend",originalEvent:B,position:{x:Q[0],y:Q[1]}});var ie=function(nt){return nt.selectable()&&!nt.selected()};Y.selectionType()==="additive"||Fe||Y.$(n).unmerge(fe).unselect(),fe.emit("box").stdFilter(ie).select().emit("boxselect"),e.redraw()}if(e.hoverData.dragging&&(e.hoverData.dragging=!1,e.redrawHint("select",!0),e.redrawHint("eles",!0),e.redraw()),!ee[4]){e.redrawHint("drag",!0),e.redrawHint("eles",!0);var we=ye&&ye.grabbed();v(ae),we&&(ye.emit("freeon"),ae.emit("free"),e.dragData.didDrag&&(ye.emit("dragfreeon"),ae.emit("dragfree")))}}ee[4]=0,e.hoverData.down=null,e.hoverData.cxtStarted=!1,e.hoverData.draggingEles=!1,e.hoverData.selecting=!1,e.hoverData.isOverThresholdDrag=!1,e.dragData.didDrag=!1,e.hoverData.dragged=!1,e.hoverData.dragDelta=[],e.hoverData.mdownPos=null,e.hoverData.mdownGPos=null,e.hoverData.which=null}}},!1);var F=function(B){if(!e.scrollingPage){var L=e.cy,Y=L.zoom(),Q=L.pan(),ee=e.projectIntoViewport(B.clientX,B.clientY),he=[ee[0]*Y+Q.x,ee[1]*Y+Q.y];if(e.hoverData.draggingEles||e.hoverData.dragging||e.hoverData.cxtStarted||S()){B.preventDefault();return}if(L.panningEnabled()&&L.userPanningEnabled()&&L.zoomingEnabled()&&L.userZoomingEnabled()){B.preventDefault(),e.data.wheelZooming=!0,clearTimeout(e.data.wheelTimeout),e.data.wheelTimeout=setTimeout(function(){e.data.wheelZooming=!1,e.redrawHint("eles",!0),e.redraw()},150);var ae;B.deltaY!=null?ae=B.deltaY/-250:B.wheelDeltaY!=null?ae=B.wheelDeltaY/1e3:ae=B.wheelDelta/1e3,ae=ae*e.wheelSensitivity;var ye=B.deltaMode===1;ye&&(ae*=33);var Fe=L.zoom()*Math.pow(10,ae);B.type==="gesturechange"&&(Fe=e.gestureStartZoom*B.scale),L.zoom({level:Fe,renderedPosition:{x:he[0],y:he[1]}}),L.emit(B.type==="gesturechange"?"pinchzoom":"scrollzoom")}}};e.registerBinding(e.container,"wheel",F,!0),e.registerBinding(t,"scroll",function(B){e.scrollingPage=!0,clearTimeout(e.scrollingPageTimeout),e.scrollingPageTimeout=setTimeout(function(){e.scrollingPage=!1},250)},!0),e.registerBinding(e.container,"gesturestart",function(B){e.gestureStartZoom=e.cy.zoom(),e.hasTouchStarted||B.preventDefault()},!0),e.registerBinding(e.container,"gesturechange",function(B){e.hasTouchStarted||F(B)},!0),e.registerBinding(e.container,"mouseout",function(B){var L=e.projectIntoViewport(B.clientX,B.clientY);e.cy.emit({originalEvent:B,type:"mouseout",position:{x:L[0],y:L[1]}})},!1),e.registerBinding(e.container,"mouseover",function(B){var L=e.projectIntoViewport(B.clientX,B.clientY);e.cy.emit({originalEvent:B,type:"mouseover",position:{x:L[0],y:L[1]}})},!1);var $,D,P,V,I,z,G,q,X,te,le,de,ne,oe=function(B,L,Y,Q){return Math.sqrt((Y-B)*(Y-B)+(Q-L)*(Q-L))},U=function(B,L,Y,Q){return(Y-B)*(Y-B)+(Q-L)*(Q-L)},W;e.registerBinding(e.container,"touchstart",W=function(B){if(e.hasTouchStarted=!0,!!_(B)){b(),e.touchData.capture=!0,e.data.bgActivePosistion=void 0;var L=e.cy,Y=e.touchData.now,Q=e.touchData.earlier;if(B.touches[0]){var ee=e.projectIntoViewport(B.touches[0].clientX,B.touches[0].clientY);Y[0]=ee[0],Y[1]=ee[1]}if(B.touches[1]){var ee=e.projectIntoViewport(B.touches[1].clientX,B.touches[1].clientY);Y[2]=ee[0],Y[3]=ee[1]}if(B.touches[2]){var ee=e.projectIntoViewport(B.touches[2].clientX,B.touches[2].clientY);Y[4]=ee[0],Y[5]=ee[1]}if(B.touches[1]){e.touchData.singleTouchMoved=!0,v(e.dragData.touchDragEles);var he=e.findContainerClientCoords();X=he[0],te=he[1],le=he[2],de=he[3],$=B.touches[0].clientX-X,D=B.touches[0].clientY-te,P=B.touches[1].clientX-X,V=B.touches[1].clientY-te,ne=0<=$&&$<=le&&0<=P&&P<=le&&0<=D&&D<=de&&0<=V&&V<=de;var ae=L.pan(),ye=L.zoom();I=oe($,D,P,V),z=U($,D,P,V),G=[($+P)/2,(D+V)/2],q=[(G[0]-ae.x)/ye,(G[1]-ae.y)/ye];var Fe=200,De=Fe*Fe;if(z=1){for(var ft=e.touchData.startPosition=[null,null,null,null,null,null],yt=0;yt=e.touchTapThreshold2}if(L&&e.touchData.cxt){B.preventDefault();var ft=B.touches[0].clientX-X,yt=B.touches[0].clientY-te,Kt=B.touches[1].clientX-X,Tt=B.touches[1].clientY-te,Nt=U(ft,yt,Kt,Tt),Gt=Nt/z,Xt=150,Rt=Xt*Xt,$n=1.5,xn=$n*$n;if(Gt>=xn||Nt>=Rt){e.touchData.cxt=!1,e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var Cn={originalEvent:B,type:"cxttapend",position:{x:ee[0],y:ee[1]}};e.touchData.start?(e.touchData.start.unactivate().emit(Cn),e.touchData.start=null):Q.emit(Cn)}}if(L&&e.touchData.cxt){var Cn={originalEvent:B,type:"cxtdrag",position:{x:ee[0],y:ee[1]}};e.data.bgActivePosistion=void 0,e.redrawHint("select",!0),e.touchData.start?e.touchData.start.emit(Cn):Q.emit(Cn),e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxtDragged=!0;var vt=e.findNearestElement(ee[0],ee[1],!0,!0);(!e.touchData.cxtOver||vt!==e.touchData.cxtOver)&&(e.touchData.cxtOver&&e.touchData.cxtOver.emit({originalEvent:B,type:"cxtdragout",position:{x:ee[0],y:ee[1]}}),e.touchData.cxtOver=vt,vt&&vt.emit({originalEvent:B,type:"cxtdragover",position:{x:ee[0],y:ee[1]}}))}else if(L&&B.touches[2]&&Q.boxSelectionEnabled())B.preventDefault(),e.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,e.touchData.selecting||Q.emit({originalEvent:B,type:"boxstart",position:{x:ee[0],y:ee[1]}}),e.touchData.selecting=!0,e.touchData.didSelect=!0,Y[4]=1,!Y||Y.length===0||Y[0]===void 0?(Y[0]=(ee[0]+ee[2]+ee[4])/3,Y[1]=(ee[1]+ee[3]+ee[5])/3,Y[2]=(ee[0]+ee[2]+ee[4])/3+1,Y[3]=(ee[1]+ee[3]+ee[5])/3+1):(Y[2]=(ee[0]+ee[2]+ee[4])/3,Y[3]=(ee[1]+ee[3]+ee[5])/3),e.redrawHint("select",!0),e.redraw();else if(L&&B.touches[1]&&!e.touchData.didSelect&&Q.zoomingEnabled()&&Q.panningEnabled()&&Q.userZoomingEnabled()&&Q.userPanningEnabled()){B.preventDefault(),e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var Ot=e.dragData.touchDragEles;if(Ot){e.redrawHint("drag",!0);for(var Vt=0;Vt0&&!e.hoverData.draggingEles&&!e.swipePanning&&e.data.bgActivePosistion!=null&&(e.data.bgActivePosistion=void 0,e.redrawHint("select",!0),e.redraw())}},!1);var ue;e.registerBinding(t,"touchcancel",ue=function(B){var L=e.touchData.start;e.touchData.capture=!1,L&&L.unactivate()});var be,Be,pe,xe;if(e.registerBinding(t,"touchend",be=function(B){var L=e.touchData.start,Y=e.touchData.capture;if(Y)B.touches.length===0&&(e.touchData.capture=!1),B.preventDefault();else return;var Q=e.selection;e.swipePanning=!1,e.hoverData.draggingEles=!1;var ee=e.cy,he=ee.zoom(),ae=e.touchData.now,ye=e.touchData.earlier;if(B.touches[0]){var Fe=e.projectIntoViewport(B.touches[0].clientX,B.touches[0].clientY);ae[0]=Fe[0],ae[1]=Fe[1]}if(B.touches[1]){var Fe=e.projectIntoViewport(B.touches[1].clientX,B.touches[1].clientY);ae[2]=Fe[0],ae[3]=Fe[1]}if(B.touches[2]){var Fe=e.projectIntoViewport(B.touches[2].clientX,B.touches[2].clientY);ae[4]=Fe[0],ae[5]=Fe[1]}L&&L.unactivate();var De;if(e.touchData.cxt){if(De={originalEvent:B,type:"cxttapend",position:{x:ae[0],y:ae[1]}},L?L.emit(De):ee.emit(De),!e.touchData.cxtDragged){var K={originalEvent:B,type:"cxttap",position:{x:ae[0],y:ae[1]}};L?L.emit(K):ee.emit(K)}e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxt=!1,e.touchData.start=null,e.redraw();return}if(!B.touches[2]&&ee.boxSelectionEnabled()&&e.touchData.selecting){e.touchData.selecting=!1;var fe=ee.collection(e.getAllInBox(Q[0],Q[1],Q[2],Q[3]));Q[0]=void 0,Q[1]=void 0,Q[2]=void 0,Q[3]=void 0,Q[4]=0,e.redrawHint("select",!0),ee.emit({type:"boxend",originalEvent:B,position:{x:ae[0],y:ae[1]}});var ie=function(Xt){return Xt.selectable()&&!Xt.selected()};fe.emit("box").stdFilter(ie).select().emit("boxselect"),fe.nonempty()&&e.redrawHint("eles",!0),e.redraw()}if(L!=null&&L.unactivate(),B.touches[2])e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);else if(!B.touches[1]&&!B.touches[0]&&!B.touches[0]){e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var we=e.dragData.touchDragEles;if(L!=null){var nt=L._private.grabbed;v(we),e.redrawHint("drag",!0),e.redrawHint("eles",!0),nt&&(L.emit("freeon"),we.emit("free"),e.dragData.didDrag&&(L.emit("dragfreeon"),we.emit("dragfree"))),r(L,["touchend","tapend","vmouseup","tapdragout"],B,{x:ae[0],y:ae[1]}),L.unactivate(),e.touchData.start=null}else{var Qe=e.findNearestElement(ae[0],ae[1],!0,!0);r(Qe,["touchend","tapend","vmouseup","tapdragout"],B,{x:ae[0],y:ae[1]})}var lt=e.touchData.startPosition[0]-ae[0],ft=lt*lt,yt=e.touchData.startPosition[1]-ae[1],Kt=yt*yt,Tt=ft+Kt,Nt=Tt*he*he;e.touchData.singleTouchMoved||(L||ee.$(":selected").unselect(["tapunselect"]),r(L,["tap","vclick"],B,{x:ae[0],y:ae[1]}),Be=!1,B.timeStamp-xe<=ee.multiClickDebounceTime()?(pe&&clearTimeout(pe),Be=!0,xe=null,r(L,["dbltap","vdblclick"],B,{x:ae[0],y:ae[1]})):(pe=setTimeout(function(){Be||r(L,["onetap","voneclick"],B,{x:ae[0],y:ae[1]})},ee.multiClickDebounceTime()),xe=B.timeStamp)),L!=null&&!e.dragData.didDrag&&L._private.selectable&&Nt"u"){var ge=[],ke=function(B){return{clientX:B.clientX,clientY:B.clientY,force:1,identifier:B.pointerId,pageX:B.pageX,pageY:B.pageY,radiusX:B.width/2,radiusY:B.height/2,screenX:B.screenX,screenY:B.screenY,target:B.target}},Ne=function(B){return{event:B,touch:ke(B)}},Ie=function(B){ge.push(Ne(B))},Se=function(B){for(var L=0;L0)return G[0]}return null},m=Object.keys(f),p=0;p0?h:KS(a,i,e,t,n,r,s,l)},checkPoint:function(e,t,n,r,a,i,s,l){l=l==="auto"?Fi(r,a):l;var d=2*l;if(Go(e,t,this.points,i,s,r,a-d,[0,-1],n)||Go(e,t,this.points,i,s,r-d,a,[0,-1],n))return!0;var c=r/2+2*n,u=a/2+2*n,f=[i-c,s-u,i-c,s,i+c,s,i+c,s-u];return!!(tr(e,t,f)||$i(e,t,d,d,i+r/2-l,s+a/2-l,n)||$i(e,t,d,d,i-r/2+l,s+a/2-l,n))}}},Zo.registerNodeShapes=function(){var e=this.nodeShapes={},t=this;this.generateEllipse(),this.generatePolygon("triangle",Ln(3,0)),this.generateRoundPolygon("round-triangle",Ln(3,0)),this.generatePolygon("rectangle",Ln(4,0)),e.square=e.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();{var n=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",n),this.generateRoundPolygon("round-diamond",n)}this.generatePolygon("pentagon",Ln(5,0)),this.generateRoundPolygon("round-pentagon",Ln(5,0)),this.generatePolygon("hexagon",Ln(6,0)),this.generateRoundPolygon("round-hexagon",Ln(6,0)),this.generatePolygon("heptagon",Ln(7,0)),this.generateRoundPolygon("round-heptagon",Ln(7,0)),this.generatePolygon("octagon",Ln(8,0)),this.generateRoundPolygon("round-octagon",Ln(8,0));var r=new Array(20);{var a=Dg(5,0),i=Dg(5,Math.PI/5),s=.5*(3-Math.sqrt(5));s*=1.57;for(var l=0;l=e.deqFastCost*y)break}else if(s){if(g>=e.deqCost*u||g>=e.deqAvgCost*c)break}else if(v>=e.deqNoDrawCost*hy)break;var b=e.deq(t,m,h);if(b.length>0)for(var x=0;x0&&(e.onDeqd(t,f),!s&&e.shouldRedraw(t,f,m,h)&&r())},i=e.priority||Og;n.beforeRender(a,i(t))}}}},lce=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Lf;kg(this,e),this.idsByKey=new yo,this.keyForId=new yo,this.cachesByLvl=new yo,this.lvls=[],this.getKey=t,this.doesEleInvalidateKey=n}return Eg(e,[{key:"getIdsFor",value:function(t){t==null&&It("Can not get id list for null key");var n=this.idsByKey,r=this.idsByKey.get(t);return r||(r=new zs,n.set(t,r)),r}},{key:"addIdForKey",value:function(t,n){t!=null&&this.getIdsFor(t).add(n)}},{key:"deleteIdForKey",value:function(t,n){t!=null&&this.getIdsFor(t).delete(n)}},{key:"getNumberOfIdsForKey",value:function(t){return t==null?0:this.getIdsFor(t).size}},{key:"updateKeyMappingFor",value:function(t){var n=t.id(),r=this.keyForId.get(n),a=this.getKey(t);this.deleteIdForKey(r,n),this.addIdForKey(a,n),this.keyForId.set(n,a)}},{key:"deleteKeyMappingFor",value:function(t){var n=t.id(),r=this.keyForId.get(n);this.deleteIdForKey(r,n),this.keyForId.delete(n)}},{key:"keyHasChangedFor",value:function(t){var n=t.id(),r=this.keyForId.get(n),a=this.getKey(t);return r!==a}},{key:"isInvalid",value:function(t){return this.keyHasChangedFor(t)||this.doesEleInvalidateKey(t)}},{key:"getCachesAt",value:function(t){var n=this.cachesByLvl,r=this.lvls,a=n.get(t);return a||(a=new yo,n.set(t,a),r.push(t)),a}},{key:"getCache",value:function(t,n){return this.getCachesAt(n).get(t)}},{key:"get",value:function(t,n){var r=this.getKey(t),a=this.getCache(r,n);return a!=null&&this.updateKeyMappingFor(t),a}},{key:"getForCachedKey",value:function(t,n){var r=this.keyForId.get(t.id()),a=this.getCache(r,n);return a}},{key:"hasCache",value:function(t,n){return this.getCachesAt(n).has(t)}},{key:"has",value:function(t,n){var r=this.getKey(t);return this.hasCache(r,n)}},{key:"setCache",value:function(t,n,r){r.key=t,this.getCachesAt(n).set(t,r)}},{key:"set",value:function(t,n,r){var a=this.getKey(t);this.setCache(a,n,r),this.updateKeyMappingFor(t)}},{key:"deleteCache",value:function(t,n){this.getCachesAt(n).delete(t)}},{key:"delete",value:function(t,n){var r=this.getKey(t);this.deleteCache(r,n)}},{key:"invalidateKey",value:function(t){var n=this;this.lvls.forEach(function(r){return n.deleteCache(t,r)})}},{key:"invalidate",value:function(t){var n=t.id(),r=this.keyForId.get(n);this.deleteKeyMappingFor(t);var a=this.doesEleInvalidateKey(t);return a&&this.invalidateKey(r),a||this.getNumberOfIdsForKey(r)===0}}]),e}(),U5=25,_p=50,Bp=-4,my=3,cce=7.99,dce=8,uce=1024,fce=1024,pce=1024,hce=.2,mce=.8,gce=10,yce=.15,vce=.1,bce=.9,wce=.9,xce=100,Cce=1,cl={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},kce=gn({getKey:null,doesEleInvalidateKey:Lf,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:DS,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),dd=function(e,t){var n=this;n.renderer=e,n.onDequeues=[];var r=kce(t);He(n,r),n.lookup=new lce(r.getKey,r.doesEleInvalidateKey),n.setupDequeueing()},an=dd.prototype;an.reasons=cl,an.getTextureQueue=function(e){var t=this;return t.eleImgCaches=t.eleImgCaches||{},t.eleImgCaches[e]=t.eleImgCaches[e]||[]},an.getRetiredTextureQueue=function(e){var t=this,n=t.eleImgCaches.retired=t.eleImgCaches.retired||{},r=n[e]=n[e]||[];return r},an.getElementQueue=function(){var e=this,t=e.eleCacheQueue=e.eleCacheQueue||new qc(function(n,r){return r.reqs-n.reqs});return t},an.getElementKeyToQueue=function(){var e=this,t=e.eleKeyToCacheQueue=e.eleKeyToCacheQueue||{};return t},an.getElement=function(e,t,n,r,a){var i=this,s=this.renderer,l=s.cy.zoom(),d=this.lookup;if(!t||t.w===0||t.h===0||isNaN(t.w)||isNaN(t.h)||!e.visible()||e.removed()||!i.allowEdgeTxrCaching&&e.isEdge()||!i.allowParentTxrCaching&&e.isParent())return null;if(r==null&&(r=Math.ceil(Fg(l*n))),r=cce||r>my)return null;var c=Math.pow(2,r),u=t.h*c,f=t.w*c,h=s.eleTextBiggerThanMin(e,c);if(!this.isVisible(e,h))return null;var m=d.get(e,r);if(m&&m.invalidated&&(m.invalidated=!1,m.texture.invalidatedWidth-=m.width),m)return m;var p;if(u<=U5?p=U5:u<=_p?p=_p:p=Math.ceil(u/_p)*_p,u>pce||f>fce)return null;var g=i.getTextureQueue(p),v=g[g.length-2],y=function(){return i.recycleTexture(p,f)||i.addTexture(p,f)};v||(v=g[g.length-1]),v||(v=y()),v.width-v.usedWidthr;T--)_=i.getElement(e,t,n,T,cl.downscale);O()}else return i.queueElement(e,C.level-1),C;else{var N;if(!x&&!w&&!k)for(var F=r-1;F>=Bp;F--){var $=d.get(e,F);if($){N=$;break}}if(b(N))return i.queueElement(e,r),N;v.context.translate(v.usedWidth,0),v.context.scale(c,c),this.drawElement(v.context,e,t,h,!1),v.context.scale(1/c,1/c),v.context.translate(-v.usedWidth,0)}return m={x:v.usedWidth,texture:v,level:r,scale:c,width:f,height:u,scaledLabelShown:h},v.usedWidth+=Math.ceil(f+dce),v.eleCaches.push(m),d.set(e,r,m),i.checkTextureFullness(v),m},an.invalidateElements=function(e){for(var t=0;t=hce*e.width&&this.retireTexture(e)},an.checkTextureFullness=function(e){var t=this,n=t.getTextureQueue(e.height);e.usedWidth/e.width>mce&&e.fullnessChecks>=gce?$a(n,e):e.fullnessChecks++},an.retireTexture=function(e){var t=this,n=e.height,r=t.getTextureQueue(n),a=this.lookup;$a(r,e),e.retired=!0;for(var i=e.eleCaches,s=0;s=t)return s.retired=!1,s.usedWidth=0,s.invalidatedWidth=0,s.fullnessChecks=0,Pg(s.eleCaches),s.context.setTransform(1,0,0,1,0,0),s.context.clearRect(0,0,s.width,s.height),$a(a,s),r.push(s),s}},an.queueElement=function(e,t){var n=this,r=n.getElementQueue(),a=n.getElementKeyToQueue(),i=this.getKey(e),s=a[i];if(s)s.level=Math.max(s.level,t),s.eles.merge(e),s.reqs++,r.updateItem(s);else{var l={eles:e.spawn().merge(e),level:t,reqs:1,key:i};r.push(l),a[i]=l}},an.dequeue=function(e){for(var t=this,n=t.getElementQueue(),r=t.getElementKeyToQueue(),a=[],i=t.lookup,s=0;s0;s++){var l=n.pop(),d=l.key,c=l.eles[0],u=i.hasCache(c,l.level);if(r[d]=null,!u){a.push(l);var f=t.getBoundingBox(c);t.getElement(c,f,e,l.level,cl.dequeue)}}return a},an.removeFromQueue=function(e){var t=this,n=t.getElementQueue(),r=t.getElementKeyToQueue(),a=this.getKey(e),i=r[a];i!=null&&(i.eles.length===1?(i.reqs=Ng,n.updateItem(i),n.pop(),r[a]=null):i.eles.unmerge(e))},an.onDequeue=function(e){this.onDequeues.push(e)},an.offDequeue=function(e){$a(this.onDequeues,e)},an.setupDequeueing=H5.setupDequeueing({deqRedrawThreshold:xce,deqCost:yce,deqAvgCost:vce,deqNoDrawCost:bce,deqFastCost:wce,deq:function(e,t,n){return e.dequeue(t,n)},onDeqd:function(e,t){for(var n=0;n=Sce||n>Tp)return null}r.validateLayersElesOrdering(n,e);var d=r.layersByLevel,c=Math.pow(2,n),u=d[n]=d[n]||[],f,h=r.levelIsComplete(n,e),m,p=function(){var _=function(F){if(r.validateLayersElesOrdering(F,e),r.levelIsComplete(F,e))return m=d[F],!0},O=function(F){if(!m)for(var $=n+F;ud<=$&&$<=Tp&&!_($);$+=F);};O(1),O(-1);for(var T=u.length-1;T>=0;T--){var N=u[T];N.invalid&&$a(u,N)}};if(!h)p();else return u;var g=function(){if(!f){f=er();for(var _=0;_Fce)return null;var N=r.makeLayer(f,n);if(O!=null){var F=u.indexOf(O)+1;u.splice(F,0,N)}else(_.insert===void 0||_.insert)&&u.unshift(N);return N};if(r.skipping&&!l)return null;for(var y=null,b=e.length/Ece,x=!l,w=0;w=b||!WS(y.bb,k.boundingBox()))&&(y=v({insert:!0,after:y}),!y))return null;m||x?r.queueLayer(y,k):r.drawEleInLayer(y,k,n,t),y.eles.push(k),E[n]=y}return m||(x?null:u)},wn.getEleLevelForLayerLevel=function(e,t){return e},wn.drawEleInLayer=function(e,t,n,r){var a=this,i=this.renderer,s=e.context,l=t.boundingBox();l.w===0||l.h===0||!t.visible()||(n=a.getEleLevelForLayerLevel(n,r),i.setImgSmoothing(s,!1),i.drawCachedElement(s,t,null,null,n,Ace),i.setImgSmoothing(s,!0))},wn.levelIsComplete=function(e,t){var n=this,r=n.layersByLevel[e];if(!r||r.length===0)return!1;for(var a=0,i=0;i0||s.invalid)return!1;a+=s.eles.length}return a===t.length},wn.validateLayersElesOrdering=function(e,t){var n=this.layersByLevel[e];if(n)for(var r=0;r0){t=!0;break}}return t},wn.invalidateElements=function(e){var t=this;e.length!==0&&(t.lastInvalidationTime=Ko(),!(e.length===0||!t.haveLayers())&&t.updateElementsInLayers(e,function(n,r,a){t.invalidateLayer(n)}))},wn.invalidateLayer=function(e){if(this.lastInvalidationTime=Ko(),!e.invalid){var t=e.level,n=e.eles,r=this.layersByLevel[t];$a(r,e),e.elesQueue=[],e.invalid=!0,e.replacement&&(e.replacement.invalid=!0);for(var a=0;a3&&arguments[3]!==void 0?arguments[3]:!0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,s=this,l=t._private.rscratch;if(!(i&&!t.visible())&&!(l.badLine||l.allpts==null||isNaN(l.allpts[0]))){var d;n&&(d=n,e.translate(-d.x1,-d.y1));var c=i?t.pstyle("opacity").value:1,u=i?t.pstyle("line-opacity").value:1,f=t.pstyle("curve-style").value,h=t.pstyle("line-style").value,m=t.pstyle("width").pfValue,p=t.pstyle("line-cap").value,g=t.pstyle("line-outline-width").value,v=t.pstyle("line-outline-color").value,y=c*u,b=c*u,x=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:y;f==="straight-triangle"?(s.eleStrokeStyle(e,t,$),s.drawEdgeTrianglePath(t,e,l.allpts)):(e.lineWidth=m,e.lineCap=p,s.eleStrokeStyle(e,t,$),s.drawEdgePath(t,e,l.allpts,h),e.lineCap="butt")},w=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:y;if(e.lineWidth=m+g,e.lineCap=p,g>0)s.colorStrokeStyle(e,v[0],v[1],v[2],$);else{e.lineCap="butt";return}f==="straight-triangle"?s.drawEdgeTrianglePath(t,e,l.allpts):(s.drawEdgePath(t,e,l.allpts,h),e.lineCap="butt")},k=function(){a&&s.drawEdgeOverlay(e,t)},C=function(){a&&s.drawEdgeUnderlay(e,t)},E=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:b;s.drawArrowheads(e,t,$)},S=function(){s.drawElementText(e,t,null,r)};e.lineJoin="round";var _=t.pstyle("ghost").value==="yes";if(_){var O=t.pstyle("ghost-offset-x").pfValue,T=t.pstyle("ghost-offset-y").pfValue,N=t.pstyle("ghost-opacity").value,F=y*N;e.translate(O,T),x(F),E(F),e.translate(-O,-T)}else w();C(),x(),E(),k(),S(),n&&e.translate(d.x1,d.y1)}};var Z5=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(t,n){if(n.visible()){var r=n.pstyle("".concat(e,"-opacity")).value;if(r!==0){var a=this,i=a.usePaths(),s=n._private.rscratch,l=n.pstyle("".concat(e,"-padding")).pfValue,d=2*l,c=n.pstyle("".concat(e,"-color")).value;t.lineWidth=d,s.edgeType==="self"&&!i?t.lineCap="butt":t.lineCap="round",a.colorStrokeStyle(t,c[0],c[1],c[2],r),a.drawEdgePath(n,t,s.allpts,"solid")}}}};Jo.drawEdgeOverlay=Z5("overlay"),Jo.drawEdgeUnderlay=Z5("underlay"),Jo.drawEdgePath=function(e,t,n,r){var a=e._private.rscratch,i=t,s,l=!1,d=this.usePaths(),c=e.pstyle("line-dash-pattern").pfValue,u=e.pstyle("line-dash-offset").pfValue;if(d){var f=n.join("$"),h=a.pathCacheKey&&a.pathCacheKey===f;h?(s=t=a.pathCache,l=!0):(s=t=new Path2D,a.pathCacheKey=f,a.pathCache=s)}if(i.setLineDash)switch(r){case"dotted":i.setLineDash([1,1]);break;case"dashed":i.setLineDash(c),i.lineDashOffset=u;break;case"solid":i.setLineDash([]);break}if(!l&&!a.badLine)switch(t.beginPath&&t.beginPath(),t.moveTo(n[0],n[1]),a.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var m=2;m+35&&arguments[5]!==void 0?arguments[5]:!0,s=this;if(r==null){if(i&&!s.eleTextBiggerThanMin(t))return}else if(r===!1)return;if(t.isNode()){var l=t.pstyle("label");if(!l||!l.value)return;var d=s.getLabelJustification(t);e.textAlign=d,e.textBaseline="bottom"}else{var c=t.element()._private.rscratch.badLine,u=t.pstyle("label"),f=t.pstyle("source-label"),h=t.pstyle("target-label");if(c||(!u||!u.value)&&(!f||!f.value)&&(!h||!h.value))return;e.textAlign="center",e.textBaseline="bottom"}var m=!n,p;n&&(p=n,e.translate(-p.x1,-p.y1)),a==null?(s.drawText(e,t,null,m,i),t.isEdge()&&(s.drawText(e,t,"source",m,i),s.drawText(e,t,"target",m,i))):s.drawText(e,t,a,m,i),n&&e.translate(p.x1,p.y1)},zi.getFontCache=function(e){var t;this.fontCaches=this.fontCaches||[];for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:!0,r=t.pstyle("font-style").strValue,a=t.pstyle("font-size").pfValue+"px",i=t.pstyle("font-family").strValue,s=t.pstyle("font-weight").strValue,l=n?t.effectiveOpacity()*t.pstyle("text-opacity").value:1,d=t.pstyle("text-outline-opacity").value*l,c=t.pstyle("color").value,u=t.pstyle("text-outline-color").value;e.font=r+" "+s+" "+a+" "+i,e.lineJoin="round",this.colorFillStyle(e,c[0],c[1],c[2],l),this.colorStrokeStyle(e,u[0],u[1],u[2],d)};function vy(e,t,n,r,a){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:5,s=arguments.length>6?arguments[6]:void 0;e.beginPath(),e.moveTo(t+i,n),e.lineTo(t+r-i,n),e.quadraticCurveTo(t+r,n,t+r,n+i),e.lineTo(t+r,n+a-i),e.quadraticCurveTo(t+r,n+a,t+r-i,n+a),e.lineTo(t+i,n+a),e.quadraticCurveTo(t,n+a,t,n+a-i),e.lineTo(t,n+i),e.quadraticCurveTo(t,n,t+i,n),e.closePath(),s?e.stroke():e.fill()}zi.getTextAngle=function(e,t){var n,r=e._private,a=r.rscratch,i=t?t+"-":"",s=e.pstyle(i+"text-rotation"),l=Jr(a,"labelAngle",t);return s.strValue==="autorotate"?n=e.isEdge()?l:0:s.strValue==="none"?n=0:n=s.pfValue,n},zi.drawText=function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=t._private,s=i.rscratch,l=a?t.effectiveOpacity():1;if(!(a&&(l===0||t.pstyle("text-opacity").value===0))){n==="main"&&(n=null);var d=Jr(s,"labelX",n),c=Jr(s,"labelY",n),u,f,h=this.getLabelText(t,n);if(h!=null&&h!==""&&!isNaN(d)&&!isNaN(c)){this.setupTextStyle(e,t,a);var m=n?n+"-":"",p=Jr(s,"labelWidth",n),g=Jr(s,"labelHeight",n),v=t.pstyle(m+"text-margin-x").pfValue,y=t.pstyle(m+"text-margin-y").pfValue,b=t.isEdge(),x=t.pstyle("text-halign").value,w=t.pstyle("text-valign").value;b&&(x="center",w="center"),d+=v,c+=y;var k;switch(r?k=this.getTextAngle(t,n):k=0,k!==0&&(u=d,f=c,e.translate(u,f),e.rotate(k),d=0,c=0),w){case"top":break;case"center":c+=g/2;break;case"bottom":c+=g;break}var C=t.pstyle("text-background-opacity").value,E=t.pstyle("text-border-opacity").value,S=t.pstyle("text-border-width").pfValue,_=t.pstyle("text-background-padding").pfValue,O=t.pstyle("text-background-shape").strValue,T=O.indexOf("round")===0,N=2;if(C>0||S>0&&E>0){var F=d-_;switch(x){case"left":F-=p;break;case"center":F-=p/2;break}var $=c-g-_,D=p+2*_,P=g+2*_;if(C>0){var V=e.fillStyle,I=t.pstyle("text-background-color").value;e.fillStyle="rgba("+I[0]+","+I[1]+","+I[2]+","+C*l+")",T?vy(e,F,$,D,P,N):e.fillRect(F,$,D,P),e.fillStyle=V}if(S>0&&E>0){var z=e.strokeStyle,G=e.lineWidth,q=t.pstyle("text-border-color").value,X=t.pstyle("text-border-style").value;if(e.strokeStyle="rgba("+q[0]+","+q[1]+","+q[2]+","+E*l+")",e.lineWidth=S,e.setLineDash)switch(X){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash([4,2]);break;case"double":e.lineWidth=S/4,e.setLineDash([]);break;case"solid":e.setLineDash([]);break}if(T?vy(e,F,$,D,P,N,"stroke"):e.strokeRect(F,$,D,P),X==="double"){var te=S/2;T?vy(e,F+te,$+te,D-te*2,P-te*2,N,"stroke"):e.strokeRect(F+te,$+te,D-te*2,P-te*2)}e.setLineDash&&e.setLineDash([]),e.lineWidth=G,e.strokeStyle=z}}var le=2*t.pstyle("text-outline-width").pfValue;if(le>0&&(e.lineWidth=le),t.pstyle("text-wrap").value==="wrap"){var de=Jr(s,"labelWrapCachedLines",n),ne=Jr(s,"labelLineHeight",n),oe=p/2,U=this.getLabelJustification(t);switch(U==="auto"||(x==="left"?U==="left"?d+=-p:U==="center"&&(d+=-oe):x==="center"?U==="left"?d+=-oe:U==="right"&&(d+=oe):x==="right"&&(U==="center"?d+=oe:U==="right"&&(d+=p))),w){case"top":c-=(de.length-1)*ne;break;case"center":case"bottom":c-=(de.length-1)*ne;break}for(var W=0;W0&&e.strokeText(de[W],d,c),e.fillText(de[W],d,c),c+=ne}else le>0&&e.strokeText(h,d,c),e.fillText(h,d,c);k!==0&&(e.rotate(-k),e.translate(-u,-f))}}};var dl={};dl.drawNode=function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,s=this,l,d,c=t._private,u=c.rscratch,f=t.position();if(!(!Ee(f.x)||!Ee(f.y))&&!(i&&!t.visible())){var h=i?t.effectiveOpacity():1,m=s.usePaths(),p,g=!1,v=t.padding();l=t.width()+2*v,d=t.height()+2*v;var y;n&&(y=n,e.translate(-y.x1,-y.y1));for(var b=t.pstyle("background-image"),x=b.value,w=new Array(x.length),k=new Array(x.length),C=0,E=0;E0&&arguments[0]!==void 0?arguments[0]:F;s.eleFillStyle(e,t,he)},W=function(){var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:q;s.colorStrokeStyle(e,$[0],$[1],$[2],he)},Z=function(){var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:de;s.colorStrokeStyle(e,te[0],te[1],te[2],he)},ue=function(he,ae,ye,Fe){var De=s.nodePathCache=s.nodePathCache||[],K=AS(ye==="polygon"?ye+","+Fe.join(","):ye,""+ae,""+he,""+oe),fe=De[K],ie,we=!1;return fe!=null?(ie=fe,we=!0,u.pathCache=ie):(ie=new Path2D,De[K]=u.pathCache=ie),{path:ie,cacheHit:we}},be=t.pstyle("shape").strValue,Be=t.pstyle("shape-polygon-points").pfValue;if(m){e.translate(f.x,f.y);var pe=ue(l,d,be,Be);p=pe.path,g=pe.cacheHit}var xe=function(){if(!g){var he=f;m&&(he={x:0,y:0}),s.nodeShapes[s.getNodeShape(t)].draw(p||e,he.x,he.y,l,d,oe,u)}m?e.fill(p):e.fill()},ge=function(){for(var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h,ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,ye=c.backgrounding,Fe=0,De=0;De0&&arguments[0]!==void 0?arguments[0]:!1,ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h;s.hasPie(t)&&(s.drawPie(e,t,ae),he&&(m||s.nodeShapes[s.getNodeShape(t)].draw(e,f.x,f.y,l,d,oe,u)))},Ne=function(){var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h,ae=(T>0?T:-T)*he,ye=T>0?0:255;T!==0&&(s.colorFillStyle(e,ye,ye,ye,ae),m?e.fill(p):e.fill())},Ie=function(){if(N>0){if(e.lineWidth=N,e.lineCap=V,e.lineJoin=P,e.setLineDash)switch(D){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash(z),e.lineDashOffset=G;break;case"solid":case"double":e.setLineDash([]);break}if(I!=="center"){if(e.save(),e.lineWidth*=2,I==="inside")m?e.clip(p):e.clip();else{var he=new Path2D;he.rect(-l/2-N,-d/2-N,l+2*N,d+2*N),he.addPath(p),e.clip(he,"evenodd")}m?e.stroke(p):e.stroke(),e.restore()}else m?e.stroke(p):e.stroke();if(D==="double"){e.lineWidth=N/3;var ae=e.globalCompositeOperation;e.globalCompositeOperation="destination-out",m?e.stroke(p):e.stroke(),e.globalCompositeOperation=ae}e.setLineDash&&e.setLineDash([])}},Se=function(){if(X>0){if(e.lineWidth=X,e.lineCap="butt",e.setLineDash)switch(le){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash([4,2]);break;case"solid":case"double":e.setLineDash([]);break}var he=f;m&&(he={x:0,y:0});var ae=s.getNodeShape(t),ye=N;I==="inside"&&(ye=0),I==="outside"&&(ye*=2);var Fe=(l+ye+(X+ne))/l,De=(d+ye+(X+ne))/d,K=l*Fe,fe=d*De,ie=s.nodeShapes[ae].points,we;if(m){var nt=ue(K,fe,ae,ie);we=nt.path}if(ae==="ellipse")s.drawEllipsePath(we||e,he.x,he.y,K,fe);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(ae)){var Qe=0,lt=0,ft=0;ae==="round-diamond"?Qe=(ye+ne+X)*1.4:ae==="round-heptagon"?(Qe=(ye+ne+X)*1.075,ft=-(ye/2+ne+X)/35):ae==="round-hexagon"?Qe=(ye+ne+X)*1.12:ae==="round-pentagon"?(Qe=(ye+ne+X)*1.13,ft=-(ye/2+ne+X)/15):ae==="round-tag"?(Qe=(ye+ne+X)*1.12,lt=(ye/2+X+ne)*.07):ae==="round-triangle"&&(Qe=(ye+ne+X)*(Math.PI/2),ft=-(ye+ne/2+X)/Math.PI),Qe!==0&&(Fe=(l+Qe)/l,K=l*Fe,["round-hexagon","round-tag"].includes(ae)||(De=(d+Qe)/d,fe=d*De)),oe=oe==="auto"?XS(K,fe):oe;for(var yt=K/2,Kt=fe/2,Tt=oe+(ye+X+ne)/2,Nt=new Array(ie.length/2),Gt=new Array(ie.length/2),Xt=0;Xt0){if(r=r||n.position(),a==null||i==null){var h=n.padding();a=n.width()+2*h,i=n.height()+2*h}s.colorFillStyle(t,c[0],c[1],c[2],d),s.nodeShapes[u].draw(t,r.x,r.y,a+l*2,i+l*2,f),t.fill()}}}};dl.drawNodeOverlay=J5("overlay"),dl.drawNodeUnderlay=J5("underlay"),dl.hasPie=function(e){return e=e[0],e._private.hasPie},dl.drawPie=function(e,t,n,r){t=t[0],r=r||t.position();var a=t.cy().style(),i=t.pstyle("pie-size"),s=r.x,l=r.y,d=t.width(),c=t.height(),u=Math.min(d,c)/2,f=0,h=this.usePaths();h&&(s=0,l=0),i.units==="%"?u=u*i.pfValue:i.pfValue!==void 0&&(u=i.pfValue/2);for(var m=1;m<=a.pieBackgroundN;m++){var p=t.pstyle("pie-"+m+"-background-size").value,g=t.pstyle("pie-"+m+"-background-color").value,v=t.pstyle("pie-"+m+"-background-opacity").value*n,y=p/100;y+f>1&&(y=1-f);var b=1.5*Math.PI+2*Math.PI*f,x=2*Math.PI*y,w=b+x;p===0||f>=1||f+y>1||(e.beginPath(),e.moveTo(s,l),e.arc(s,l,u,b,w),e.closePath(),this.colorFillStyle(e,g[0],g[1],g[2],v),e.fill(),f+=y)}};var fr={},qce=100;fr.getPixelRatio=function(){var e=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var t=this.cy.window(),n=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(t.devicePixelRatio||1)/n},fr.paintCache=function(e){for(var t=this.paintCaches=this.paintCaches||[],n=!0,r,a=0;as.minMbLowQualFrames&&(s.motionBlurPxRatio=s.mbPxRBlurry)),s.clearingMotionBlur&&(s.motionBlurPxRatio=1),s.textureDrawLastFrame&&!f&&(u[s.NODE]=!0,u[s.SELECT_BOX]=!0);var b=d.style(),x=d.zoom(),w=a!==void 0?a:x,k=d.pan(),C={x:k.x,y:k.y},E={zoom:x,pan:{x:k.x,y:k.y}},S=s.prevViewport,_=S===void 0||E.zoom!==S.zoom||E.pan.x!==S.pan.x||E.pan.y!==S.pan.y;!_&&!(g&&!p)&&(s.motionBlurPxRatio=1),i&&(C=i),w*=l,C.x*=l,C.y*=l;var O=s.getCachedZSortedEles();function T(pe,xe,ge,ke,Ne){var Ie=pe.globalCompositeOperation;pe.globalCompositeOperation="destination-out",s.colorFillStyle(pe,255,255,255,s.motionBlurTransparency),pe.fillRect(xe,ge,ke,Ne),pe.globalCompositeOperation=Ie}function N(pe,xe){var ge,ke,Ne,Ie;!s.clearingMotionBlur&&(pe===c.bufferContexts[s.MOTIONBLUR_BUFFER_NODE]||pe===c.bufferContexts[s.MOTIONBLUR_BUFFER_DRAG])?(ge={x:k.x*m,y:k.y*m},ke=x*m,Ne=s.canvasWidth*m,Ie=s.canvasHeight*m):(ge=C,ke=w,Ne=s.canvasWidth,Ie=s.canvasHeight),pe.setTransform(1,0,0,1,0,0),xe==="motionBlur"?T(pe,0,0,Ne,Ie):!t&&(xe===void 0||xe)&&pe.clearRect(0,0,Ne,Ie),n||(pe.translate(ge.x,ge.y),pe.scale(ke,ke)),i&&pe.translate(i.x,i.y),a&&pe.scale(a,a)}if(f||(s.textureDrawLastFrame=!1),f){if(s.textureDrawLastFrame=!0,!s.textureCache){s.textureCache={},s.textureCache.bb=d.mutableElements().boundingBox(),s.textureCache.texture=s.data.bufferCanvases[s.TEXTURE_BUFFER];var F=s.data.bufferContexts[s.TEXTURE_BUFFER];F.setTransform(1,0,0,1,0,0),F.clearRect(0,0,s.canvasWidth*s.textureMult,s.canvasHeight*s.textureMult),s.render({forcedContext:F,drawOnlyNodeLayer:!0,forcedPxRatio:l*s.textureMult});var E=s.textureCache.viewport={zoom:d.zoom(),pan:d.pan(),width:s.canvasWidth,height:s.canvasHeight};E.mpan={x:(0-E.pan.x)/E.zoom,y:(0-E.pan.y)/E.zoom}}u[s.DRAG]=!1,u[s.NODE]=!1;var $=c.contexts[s.NODE],D=s.textureCache.texture,E=s.textureCache.viewport;$.setTransform(1,0,0,1,0,0),h?T($,0,0,E.width,E.height):$.clearRect(0,0,E.width,E.height);var P=b.core("outside-texture-bg-color").value,V=b.core("outside-texture-bg-opacity").value;s.colorFillStyle($,P[0],P[1],P[2],V),$.fillRect(0,0,E.width,E.height);var x=d.zoom();N($,!1),$.clearRect(E.mpan.x,E.mpan.y,E.width/E.zoom/l,E.height/E.zoom/l),$.drawImage(D,E.mpan.x,E.mpan.y,E.width/E.zoom/l,E.height/E.zoom/l)}else s.textureOnViewport&&!t&&(s.textureCache=null);var I=d.extent(),z=s.pinching||s.hoverData.dragging||s.swipePanning||s.data.wheelZooming||s.hoverData.draggingEles||s.cy.animated(),G=s.hideEdgesOnViewport&&z,q=[];if(q[s.NODE]=!u[s.NODE]&&h&&!s.clearedForMotionBlur[s.NODE]||s.clearingMotionBlur,q[s.NODE]&&(s.clearedForMotionBlur[s.NODE]=!0),q[s.DRAG]=!u[s.DRAG]&&h&&!s.clearedForMotionBlur[s.DRAG]||s.clearingMotionBlur,q[s.DRAG]&&(s.clearedForMotionBlur[s.DRAG]=!0),u[s.NODE]||n||r||q[s.NODE]){var X=h&&!q[s.NODE]&&m!==1,$=t||(X?s.data.bufferContexts[s.MOTIONBLUR_BUFFER_NODE]:c.contexts[s.NODE]),te=h&&!X?"motionBlur":void 0;N($,te),G?s.drawCachedNodes($,O.nondrag,l,I):s.drawLayeredElements($,O.nondrag,l,I),s.debug&&s.drawDebugPoints($,O.nondrag),!n&&!h&&(u[s.NODE]=!1)}if(!r&&(u[s.DRAG]||n||q[s.DRAG])){var X=h&&!q[s.DRAG]&&m!==1,$=t||(X?s.data.bufferContexts[s.MOTIONBLUR_BUFFER_DRAG]:c.contexts[s.DRAG]);N($,h&&!X?"motionBlur":void 0),G?s.drawCachedNodes($,O.drag,l,I):s.drawCachedElements($,O.drag,l,I),s.debug&&s.drawDebugPoints($,O.drag),!n&&!h&&(u[s.DRAG]=!1)}if(s.showFps||!r&&u[s.SELECT_BOX]&&!n){var $=t||c.contexts[s.SELECT_BOX];if(N($),s.selection[4]==1&&(s.hoverData.selecting||s.touchData.selecting)){var x=s.cy.zoom(),le=b.core("selection-box-border-width").value/x;$.lineWidth=le,$.fillStyle="rgba("+b.core("selection-box-color").value[0]+","+b.core("selection-box-color").value[1]+","+b.core("selection-box-color").value[2]+","+b.core("selection-box-opacity").value+")",$.fillRect(s.selection[0],s.selection[1],s.selection[2]-s.selection[0],s.selection[3]-s.selection[1]),le>0&&($.strokeStyle="rgba("+b.core("selection-box-border-color").value[0]+","+b.core("selection-box-border-color").value[1]+","+b.core("selection-box-border-color").value[2]+","+b.core("selection-box-opacity").value+")",$.strokeRect(s.selection[0],s.selection[1],s.selection[2]-s.selection[0],s.selection[3]-s.selection[1]))}if(c.bgActivePosistion&&!s.hoverData.selecting){var x=s.cy.zoom(),de=c.bgActivePosistion;$.fillStyle="rgba("+b.core("active-bg-color").value[0]+","+b.core("active-bg-color").value[1]+","+b.core("active-bg-color").value[2]+","+b.core("active-bg-opacity").value+")",$.beginPath(),$.arc(de.x,de.y,b.core("active-bg-size").pfValue/x,0,2*Math.PI),$.fill()}var ne=s.lastRedrawTime;if(s.showFps&&ne){ne=Math.round(ne);var oe=Math.round(1e3/ne);$.setTransform(1,0,0,1,0,0),$.fillStyle="rgba(255, 0, 0, 0.75)",$.strokeStyle="rgba(255, 0, 0, 0.75)",$.lineWidth=1,$.fillText("1 frame = "+ne+" ms = "+oe+" fps",0,20);var U=60;$.strokeRect(0,30,250,20),$.fillRect(0,30,250*Math.min(oe/U,1),20)}n||(u[s.SELECT_BOX]=!1)}if(h&&m!==1){var W=c.contexts[s.NODE],Z=s.data.bufferCanvases[s.MOTIONBLUR_BUFFER_NODE],ue=c.contexts[s.DRAG],be=s.data.bufferCanvases[s.MOTIONBLUR_BUFFER_DRAG],Be=function(pe,xe,ge){pe.setTransform(1,0,0,1,0,0),ge||!y?pe.clearRect(0,0,s.canvasWidth,s.canvasHeight):T(pe,0,0,s.canvasWidth,s.canvasHeight);var ke=m;pe.drawImage(xe,0,0,s.canvasWidth*ke,s.canvasHeight*ke,0,0,s.canvasWidth,s.canvasHeight)};(u[s.NODE]||q[s.NODE])&&(Be(W,Z,q[s.NODE]),u[s.NODE]=!1),(u[s.DRAG]||q[s.DRAG])&&(Be(ue,be,q[s.DRAG]),u[s.DRAG]=!1)}s.prevViewport=E,s.clearingMotionBlur&&(s.clearingMotionBlur=!1,s.motionBlurCleared=!0,s.motionBlur=!0),h&&(s.motionBlurTimeout=setTimeout(function(){s.motionBlurTimeout=null,s.clearedForMotionBlur[s.NODE]=!1,s.clearedForMotionBlur[s.DRAG]=!1,s.motionBlur=!1,s.clearingMotionBlur=!f,s.mbFrames=0,u[s.NODE]=!0,u[s.DRAG]=!0,s.redraw()},qce)),t||d.emit("render")};var ja={};ja.drawPolygonPath=function(e,t,n,r,a,i){var s=r/2,l=a/2;e.beginPath&&e.beginPath(),e.moveTo(t+s*i[0],n+l*i[1]);for(var d=1;d0&&s>0){m.clearRect(0,0,i,s),m.globalCompositeOperation="source-over";var p=this.getCachedZSortedEles();if(e.full)m.translate(-r.x1*c,-r.y1*c),m.scale(c,c),this.drawElements(m,p),m.scale(1/c,1/c),m.translate(r.x1*c,r.y1*c);else{var g=t.pan(),v={x:g.x*c,y:g.y*c};c*=t.zoom(),m.translate(v.x,v.y),m.scale(c,c),this.drawElements(m,p),m.scale(1/c,1/c),m.translate(-v.x,-v.y)}e.bg&&(m.globalCompositeOperation="destination-over",m.fillStyle=e.bg,m.rect(0,0,i,s),m.fill())}return h};function Wce(e,t){for(var n=atob(e),r=new ArrayBuffer(n.length),a=new Uint8Array(r),i=0;i"u"?"undefined":nn(OffscreenCanvas))!=="undefined")n=new OffscreenCanvas(e,t);else{var r=this.cy.window(),a=r.document;n=a.createElement("canvas"),n.width=e,n.height=t}return n},[G5,Co,Jo,yy,zi,dl,fr,ja,fd,o4].forEach(function(e){He(st,e)});var Xce=[{name:"null",impl:k5},{name:"base",impl:j5},{name:"canvas",impl:Kce}],Yce=[{type:"layout",extensions:nce},{type:"renderer",extensions:Xce}],i4={},s4={};function l4(e,t,n){var r=n,a=function(E){dt("Can not register `"+t+"` for `"+e+"` since `"+E+"` already exists in the prototype and can not be overridden")};if(e==="core"){if(sd.prototype[t])return a(t);sd.prototype[t]=n}else if(e==="collection"){if(vn.prototype[t])return a(t);vn.prototype[t]=n}else if(e==="layout"){for(var i=function(E){this.options=E,n.call(this,E),ot(this._private)||(this._private={}),this._private.cy=E.cy,this._private.listeners=[],this.createEmitter()},s=i.prototype=Object.create(n.prototype),l=[],d=0;dJSON.stringify(n)),this.dendrites=e.dendrites.map(n=>JSON.stringify(n)),(t=e.somas)!=null&&t.length&&(this.somas=e.somas.map(n=>JSON.stringify(n))),e.connectivity.length)for(const n of e.connectivity){const r=await this.graphNode(n[0]),a=await this.graphNode(n[1]);this.nodes.push(r),this.nodes.push(a),this.edges.push({id:`${r.id}_${a.id}`,source:r.id,target:a.id})}else this.nodes.push({id:"MISSING",label:"NO PATHS"})}showConnectivity(e){this.cyg=new ide(this,e),this.cyg.on("tap-node",t=>{const n=new CustomEvent("tap-node",{detail:t.detail});this.dispatchEvent(n)})}selectConnectivity(e){var t;if((t=this.cyg)!=null&&t.cy){let n="";this.cyg.cy.elements().forEach(r=>{const a=r.data("label"),i=Cy(a);ade(e,i)&&(n=r.id())}),n&&this.cyg.cy.$id(n).select()}}clearConnectivity(){var e;(e=this.cyg)!=null&&e.cy&&(this.cyg.cy.remove(),this.cyg.cy=null)}reset(){var e;(e=this.cyg)!=null&&e.cy&&this.cyg.cy.reset()}zoom(e){var t;if((t=this.cyg)!=null&&t.cy){const n=this.cyg.cy.zoom(),r=this.cyg.cy.width(),a=this.cyg.cy.height(),i={x:r/2,y:a/2};this.cyg.cy.zoom({level:n+e,renderedPosition:i})}}enableZoom(e){var t;(t=this.cyg)!=null&&t.cy&&this.cyg.cy.userZoomingEnabled(e)}get elements(){return[...this.nodes.map(e=>({data:e})),...this.edges.map(e=>({data:e}))]}get roots(){return[...this.dendrites,...this.somas]}async graphNode(e){const t=JSON.stringify(e),n=[e[0],...e[1]],r=[];for(const i of n){const s=this.labelCache.has(i)?this.labelCache.get(i):"";r.push(s)}n.push(...r);const a={id:t,label:n.join(` `)};return this.axons.includes(t)?this.dendrites.includes(t)||this.somas.includes(t)?a["both-a-d"]=!0:a.axon=!0:(this.dendrites.includes(t)||this.somas.includes(t))&&(a.dendrite=!0),a}on(e,t){this.addEventListener(e,t)}};const tde="#8300bf",nde="#f3ecf6",rde=[{selector:"node",style:{label:function(e){return ode(e.data("label"))},"background-color":"transparent","background-opacity":"0","text-valign":"center","text-wrap":"wrap",width:"80px",height:"80px","text-max-width":"80px","font-size":"6px",shape:"round-rectangle","border-width":1,"border-style":"solid","border-color":"gray"}},{selector:"node[axon]",style:{shape:"round-diamond",width:"100px",height:"100px"}},{selector:"node[dendrite]",style:{shape:"ellipse"}},{selector:"node[both-a-d]",style:{shape:"round-rectangle"}},{selector:"edge",style:{width:1,"line-color":"dimgray","target-arrow-color":"dimgray","target-arrow-shape":"triangle","curve-style":"bezier"}},{selector:"node.active",style:{"border-color":tde,"background-color":nde,"background-opacity":.75}}];function ode(e){const t=e.split(` `),n=t.length/2,r=t.slice(n);return u4(r.join(` `))}function u4(e){return e.split(` `).map(t=>t&&t[0]>="a"&&t[0]<="z"?t.charAt(0).toUpperCase()+t.slice(1):t).join(` `)}function Cy(e){const t=e?e.split(` `):[],n=[];for(let r=0;rn.idr.id?1:0),t.sort((n,r)=>n.idr.id?1:0);for(let n=0;n=((n=this.tooltip.parentElement)==null?void 0:n.offsetWidth)&&(this.tooltip.style.left=`${t-this.tooltip.offsetWidth}px`)}overNode(t){const n=t.target.data(),{label:r}=n,a=Cy(r).map(i=>i.label+" ("+i.id+")");this.tooltip.innerText=u4(a.join(` `)),this.tooltip.style.left=`${t.renderedPosition.x}px`,this.tooltip.style.top=`${t.renderedPosition.y}px`,this.tooltip.style.maxWidth="240px",this.tooltip.style.zIndex=2,this.tooltip.hidden=!1,this.checkRightBoundary(t.renderedPosition.x),this.tapNode(t,!0)}moveNode(t){const n=t.target;this.tooltip.style.left=`${n.renderedPosition().x}px`,this.tooltip.style.top=`${n.renderedPosition().y}px`,this.checkRightBoundary(n.renderedPosition().x)}exitNode(t){this.tooltip.hidden=!0,this.tapNode(t,!1)}tapNode(t,n){const r=t.target,a=r.data();let{label:i}=a;n?r.addClass("active"):(r.removeClass("active"),i="",setTimeout(()=>{r.unselect()}));const s=Cy(i),l=new CustomEvent("tap-node",{detail:s});this.dispatchEvent(l)}on(t,n){this.addEventListener(t,n)}}const sde=1.3,lde=24*60*60*1e3,cde="Reset position",f4="Lock zoom",dde="Unlock zoom",ude="Zoom in",fde="Zoom out",p4=.25,pde="#8300bf",hde=3e3,mde={name:"ConnectivityGraph",props:{entry:{type:String,default:""},mapServer:{type:String,default:""},selectedConnectivityData:{type:Array,default:[]}},data:function(){return{loading:!0,connectivityGraph:null,selectedSource:"",pathList:[],schemaVersion:"",knowledgeByPath:new Map,labelledTerms:new Set,labelCache:new Map,resetLabel:cde,zoomLockLabel:f4,zoomInLabel:ude,zoomOutLabel:fde,iconColor:pde,zoomEnabled:!1,connectivityError:null,timeoutID:void 0}},mounted(){this.refreshCache(),this.loadCacheData(),this.run().then(e=>{this.showGraph(this.entry)})},methods:{loadCacheData:function(){const e=sessionStorage.getItem("connectivity-graph-source"),t=sessionStorage.getItem("connectivity-graph-labels"),n=sessionStorage.getItem("connectivity-graph-pathlist"),r=sessionStorage.getItem("connectivity-graph-schema-version");if(e&&(this.selectedSource=e),n&&(this.pathList=JSON.parse(n)),t){const a=JSON.parse(t);this.labelCache=new Map(Object.entries(a))}r&&(this.schemaVersion=r)},removeAllCacheData:function(){["connectivity-graph-expiry","connectivity-graph-source","connectivity-graph-labels","connectivity-graph-pathlist","connectivity-graph-schema-version"].forEach(e=>{sessionStorage.removeItem(e)})},refreshCache:function(){const e=sessionStorage.getItem("connectivity-graph-expiry");new Date().getTime()>e&&this.removeAllCacheData()},updateCacheExpiry:function(){const e=new Date().getTime()+lde;sessionStorage.setItem("connectivity-graph-expiry",e)},run:async function(){if(this.schemaVersion||(this.schemaVersion=await this.getSchemaVersion(),sessionStorage.setItem("connectivity-graph-schema-version",this.schemaVersion),this.updateCacheExpiry()),this.schemaVersion{const r=n.detail;this.$emit("tap-node",r)})},query:async function(e,t){const n=`${this.mapServer}knowledge/query/`,r={sql:e,params:t};try{const a=await fetch(n,{method:"POST",headers:{Accept:"application/json; charset=utf-8","Cache-Control":"no-store","Content-Type":"application/json"},body:JSON.stringify(r)});if(!a.ok)throw new Error(`Cannot access ${n}`);return await a.json()}catch{return{values:[]}}},setSourceList:async function(){const e=await this.getJsonData(`${this.mapServer}knowledge/sources`),t=e?e.sources||[]:[];let n="";for(const r of t)r&&n===""&&(n=r);return n},loadPathData:async function(e){const t=await this.query(`select entity, knowledge from knowledge where entity like 'ilxtr:%' and source=? order by entity`,[e]);return t?t.values:[]},setPathList:async function(e){this.pathList.length||(this.pathList=await this.loadPathData(e),sessionStorage.setItem("connectivity-graph-pathlist",JSON.stringify(this.pathList)),this.updateCacheExpiry()),this.knowledgeByPath.clear(),this.labelledTerms=new Set;for(const[t,n]of this.pathList){const r=JSON.parse(n);"connectivity"in r&&(this.knowledgeByPath.set(t,r),this.cacheLabels(r))}return this.labelCache.size||await this.getCachedTermLabels(),""},getSchemaVersion:async function(){const e=await this.getJsonData(`${this.mapServer}knowledge/schema-version`);return e&&+e.version||0},getJsonData:async function(e){try{const t=await fetch(e,{method:"GET",headers:{Accept:"application/json; charset=utf-8","Cache-Control":"no-store","Content-Type":"application/json"}});return t.ok||console.error(`Cannot access ${e}`),await t.json()}catch{return null}},getCachedTermLabels:async function(){if(this.labelledTerms.size){const e=await this.query(`select entity, knowledge from knowledge where entity in (?${", ?".repeat(this.labelledTerms.size-1)}) order by source desc`,[...this.labelledTerms.values()]);let t=null;for(const[r,a]of e.values)if(r!==t){const i=JSON.parse(a);this.labelCache.set(r,i.label||r),t=r}const n=Object.fromEntries(this.labelCache);sessionStorage.setItem("connectivity-graph-labels",JSON.stringify(n)),this.updateCacheExpiry()}},cacheNodeLabels:function(e){for(const t of[e[0],...e[1]])this.labelledTerms.add(t)},cacheLabels:async function(e){for(const t of e.connectivity)this.cacheNodeLabels(t[0]),this.cacheNodeLabels(t[1])},showSpinner:function(){this.loading=!0},hideSpinner:function(){this.loading=!1},reset:function(){this.connectivityGraph.reset()},zoomIn:function(){this.connectivityGraph.zoom(p4)},zoomOut:function(){this.connectivityGraph.zoom(-p4)},toggleZoom:function(){this.zoomEnabled=!this.zoomEnabled,this.zoomLockLabel=this.zoomEnabled?dde:f4,this.connectivityGraph.enableZoom(!this.zoomEnabled)},showErrorMessage:function(e){this.connectivityError={...e},this.timeoutID&&clearTimeout(this.timeoutID),this.timeoutID=setTimeout(()=>{this.connectivityError=null},hde)}}},gde={class:"connectivity-graph"},yde={ref:"graphCanvas",class:"graph-canvas"},vde={class:"control-panel control-panel-tools"},bde={class:"visually-hidden"},wde={class:"visually-hidden"},xde={class:"visually-hidden"},Cde={class:"visually-hidden"},kde=o.createStaticVNode('
Origin
Components
Destination
',1),Ede={key:0,class:"connectivity-graph-error"},Sde={key:0};function _de(e,t,n,r,a,i){const s=OX,l=_n,d=Ei,c=Nc,u=JX,f=eY,h=oY,m=iY,p=nne;return o.withDirectives((o.openBlock(),o.createElementBlock("div",gde,[o.createElementVNode("div",yde,null,512),o.createElementVNode("div",vde,[o.createElementVNode("div",{class:o.normalizeClass(["tools",{"zoom-locked":e.zoomEnabled}])},[o.createVNode(c,{content:e.resetLabel,placement:"top",effect:"control-tooltip"},{default:o.withCtx(()=>[o.createVNode(d,{class:"control-button",size:"small",onClick:i.reset},{default:o.withCtx(()=>[o.createVNode(l,{color:"white"},{default:o.withCtx(()=>[o.createVNode(s)]),_:1}),o.createElementVNode("span",bde,o.toDisplayString(e.resetLabel),1)]),_:1},8,["onClick"])]),_:1},8,["content"]),o.createVNode(c,{content:e.zoomLockLabel,placement:"top",effect:"control-tooltip"},{default:o.withCtx(()=>[o.createVNode(d,{class:"control-button",size:"small",onClick:i.toggleZoom},{default:o.withCtx(()=>[o.createVNode(l,{color:"white"},{default:o.withCtx(()=>[e.zoomEnabled?(o.openBlock(),o.createBlock(u,{key:0})):(o.openBlock(),o.createBlock(f,{key:1}))]),_:1}),o.createElementVNode("span",wde,o.toDisplayString(e.zoomLockLabel),1)]),_:1},8,["onClick"])]),_:1},8,["content"]),o.createVNode(c,{content:e.zoomInLabel,placement:"left",effect:"control-tooltip"},{default:o.withCtx(()=>[o.createVNode(d,{class:"control-button",size:"small",onClick:i.zoomIn},{default:o.withCtx(()=>[o.createVNode(l,{color:"white"},{default:o.withCtx(()=>[o.createVNode(h)]),_:1}),o.createElementVNode("span",xde,o.toDisplayString(e.zoomInLabel),1)]),_:1},8,["onClick"])]),_:1},8,["content"]),o.createVNode(c,{content:e.zoomOutLabel,placement:"left",effect:"control-tooltip"},{default:o.withCtx(()=>[o.createVNode(d,{class:"control-button",size:"small",onClick:i.zoomOut},{default:o.withCtx(()=>[o.createVNode(l,{color:"white"},{default:o.withCtx(()=>[o.createVNode(m)]),_:1}),o.createElementVNode("span",Cde,o.toDisplayString(e.zoomOutLabel),1)]),_:1},8,["onClick"])]),_:1},8,["content"])],2)]),kde,e.connectivityError?(o.openBlock(),o.createElementBlock("div",Ede,[e.connectivityError.errorConnectivities?(o.openBlock(),o.createElementBlock("strong",Sde,o.toDisplayString(e.connectivityError.errorConnectivities),1)):o.createCommentVNode("",!0),o.createTextVNode(" "+o.toDisplayString(e.connectivityError.errorMessage),1)])):o.createCommentVNode("",!0)])),[[p,e.loading]])}const Bde=$f(mde,[["render",_de],["__scopeId","data-v-6acf6401"]]),h4="Copy to clipboard",Tde="Copied!",Nde="#8300bf",Ode={name:"CopyToClipboard",props:{content:{type:String,default:""},theme:{type:String,default:""}},data:function(){return{textLabel:h4,autoHideTimeout:0,iconColor:Nde}},methods:{copyToClipboard:async function(){let e=!0;this.autoHideTimeout=600;try{const t=this.content.replaceAll(` `,""),n=document.createElement("div");n.innerHTML=this.content;const r=n.textContent||n.innerText||"",a=new Blob([t],{type:"text/html"}),i=new Blob([r],{type:"text/plain"}),s=new ClipboardItem({"text/html":a,"text/plain":i});await navigator.clipboard.write([s])}catch(t){console.error("Error when trying to use navigator.clipboard.write()",t),e=!1}e?this.textLabel=Tde:this.textLabel="Error trying to copy to clipboard!"},resetSettings:function(){this.autoHideTimeout=0,this.textLabel=h4}}},Pde={class:"visually-hidden"};function $de(e,t,n,r,a,i){const s=zX,l=_n,d=Ei,c=Nc;return o.openBlock(),o.createBlock(c,{content:e.textLabel,placement:"bottom","hide-after":e.autoHideTimeout,effect:"clipboard-tooltip",onHide:i.resetSettings},{default:o.withCtx(()=>[o.createVNode(d,{class:o.normalizeClass(["copy-clipboard-button",n.theme]),size:"small",onClick:i.copyToClipboard},{default:o.withCtx(()=>[o.createVNode(l,{color:e.iconColor},{default:o.withCtx(()=>[o.createVNode(s)]),_:1},8,["color"]),o.createElementVNode("span",Pde,o.toDisplayString(e.textLabel),1)]),_:1},8,["class","onClick"])]),_:1},8,["content","hide-after","onHide"])}const m4=$f(Ode,[["render",$de],["__scopeId","data-v-de3b5311"]]),g4=` 2horpanel ? `,y4=` 2vertpanel ? `,v4=` 3panel ? `,b4=` 4panel ? `,w4=` 2horpanel ? `,x4=` 2horpanel ? `,C4=` 4panel ? `,k4=` changeBckgd `,E4=` close no bk `,S4=` close `,_4=` closeFullScreen `,B4=` Comment `,T4=` Connection `,N4=` dock `,O4=` drawLine `,P4=` drawPoint `,$4=` drawPolygon `,F4=` drawTrash `,A4=` fitWindow `,I4=` fullScreen `,D4='DataPortal-Icons',V4=` magnifyingGlass `,R4=`Created by Wahyu Prihantorofrom the Noun Project`,L4=` openMap `,M4=` Artboard Copy 6 `,z4=` permalink `,j4=` play `,H4=` resetZoom `,U4=` singlepanel ? `,q4=` tooltips ? `,W4=` undock `,K4=` zoomIn `,G4=` zoomOut `,X4=(e,t,n,r)=>{const a=["title","desc","defs","style"],i=["width","height"],s=r||[];let l=document.createElement("div");l.innerHTML=e,a.map(c=>{const u=l.querySelector(c);u&&u.remove()}),i.map(c=>{l.querySelector("svg").removeAttribute(c)}),r&&s.map(c=>{Object.values(l.querySelectorAll(`[${c}]`)).map(u=>{u.removeAttribute(c)})});const d=l.innerHTML;return l=null,d},Y4=e=>[[/<\?xml[\s\S]*?>/gi,""],[//gi,""],[//gi,""],[/\<([A-Za-z]+)([^\>]*)\/\>/g,"<$1$2>"],[/\s+/g," "],[/\> \<"]].reduce((t,n)=>"".replace.apply(t,n),e).trim(),Fde=!0,Ade=!0,Ide=["fill"],Z4=Object.assign({"/assets/icons/2horpanel.svg":g4,"/assets/icons/2vertpanel.svg":y4,"/assets/icons/3panel.svg":v4,"/assets/icons/4panel.svg":b4,"/assets/icons/5panel.svg":w4,"/assets/icons/6panel.svg":x4,"/assets/icons/6panelVertical.svg":C4,"/assets/icons/changeBckgd.svg":k4,"/assets/icons/close-no-bk.svg":E4,"/assets/icons/close.svg":S4,"/assets/icons/closeFullScreen.svg":_4,"/assets/icons/comment.svg":B4,"/assets/icons/connection.svg":T4,"/assets/icons/dock.svg":N4,"/assets/icons/drawLine.svg":O4,"/assets/icons/drawPoint.svg":P4,"/assets/icons/drawPolygon.svg":$4,"/assets/icons/drawTrash.svg":F4,"/assets/icons/fitWindow.svg":A4,"/assets/icons/fullScreen.svg":I4,"/assets/icons/help.svg":D4,"/assets/icons/magnifyingGlass.svg":V4,"/assets/icons/noun-filter.svg":R4,"/assets/icons/openMap.svg":L4,"/assets/icons/pause.svg":M4,"/assets/icons/permalink.svg":z4,"/assets/icons/play.svg":j4,"/assets/icons/resetZoom.svg":H4,"/assets/icons/singlepanel.svg":U4,"/assets/icons/tooltips.svg":q4,"/assets/icons/undock.svg":W4,"/assets/icons/zoomIn.svg":K4,"/assets/icons/zoomOut.svg":G4});Object.keys(Z4).map(e=>{const t=X4(Z4[e],Fde,Ade,Ide),n=e.replace(/^.+\/(\w+).svg$/,"$1");return Y4(t).replace("","symbol>")}).join(` `);const ky=Object.assign({"/assets/icons/2horpanel.svg":g4,"/assets/icons/2vertpanel.svg":y4,"/assets/icons/3panel.svg":v4,"/assets/icons/4panel.svg":b4,"/assets/icons/5panel.svg":w4,"/assets/icons/6panel.svg":x4,"/assets/icons/6panelVertical.svg":C4,"/assets/icons/changeBckgd.svg":k4,"/assets/icons/close-no-bk.svg":E4,"/assets/icons/close.svg":S4,"/assets/icons/closeFullScreen.svg":_4,"/assets/icons/comment.svg":B4,"/assets/icons/connection.svg":T4,"/assets/icons/dock.svg":N4,"/assets/icons/drawLine.svg":O4,"/assets/icons/drawPoint.svg":P4,"/assets/icons/drawPolygon.svg":$4,"/assets/icons/drawTrash.svg":F4,"/assets/icons/fitWindow.svg":A4,"/assets/icons/fullScreen.svg":I4,"/assets/icons/help.svg":D4,"/assets/icons/magnifyingGlass.svg":V4,"/assets/icons/noun-filter.svg":R4,"/assets/icons/openMap.svg":L4,"/assets/icons/pause.svg":M4,"/assets/icons/permalink.svg":z4,"/assets/icons/play.svg":j4,"/assets/icons/resetZoom.svg":H4,"/assets/icons/singlepanel.svg":U4,"/assets/icons/tooltips.svg":q4,"/assets/icons/undock.svg":W4,"/assets/icons/zoomIn.svg":K4,"/assets/icons/zoomOut.svg":G4});Object.keys(ky).map(e=>{const t=X4(ky[e]),n=e.replace(/^.+\/(\w+).svg$/,"$1");return Y4(t).replace("","symbol>")}).join(` `);const Dde={data(){return{ElIconView:cv}},name:"DatasetCard",components:{BadgesGroup:l2,ImageGallery:wC,Button:ar,Icon:St,CopyToClipboard:m4},props:{entry:{type:Object,default:()=>{}},envVars:{type:Object,default:()=>{}}},data:function(){return{thumbnail:xC,dataLocation:this.entry.doi,discoverId:void 0,loading:!0,version:1,lastDoi:void 0,biolucidaData:void 0,currentCategory:"All",copyContent:""}},computed:{contributors:function(){let e="";return this.entry.contributors&&(this.entry.contributors.length===1?e=this.lastName(this.entry.contributors[0].name):this.entry.contributors.length===2?e=this.lastName(this.entry.contributors[0].name)+" & "+this.lastName(this.entry.contributors[1].name):this.entry.contributors.length>2&&(e=this.lastName(this.entry.contributors[0].name)+" et al.")),e},samples:function(){let e="";return this.entry.species&&(Xu[this.entry.species[0].toLowerCase()]?e=`${Xu[this.entry.species[0].toLowerCase()]}`:e=`${this.entry.species}`),this.entry.numberSamples>0&&(e+=" (",this.entry.numberSamples===1?e+=`${this.entry.numberSamples} sample`:this.entry.numberSamples>1&&(e+=`${this.entry.numberSamples} samples`),this.entry.numberSubjects===1?e+=` from ${this.entry.numberSubjects} subject`:this.entry.numberSamples>1&&(e+=` from ${this.entry.numberSubjects} subjects`),e+=")"),e},label:function(){return this.entry.organs?this.entry.organs[0]:this.entry.name},publishYear:function(){return this.entry.publishDate.split("-")[0]}},mounted:function(){this.updateCopyContent()},methods:{cardClicked:function(){this.openDataset()},categoryChanged:function(e){this.currentCategory=e},galleryClicked:function(e){this.propogateCardAction(e)},galleryDatalinkClicked:function(e){Ut.emit("datalink-clicked",e)},openDataset:function(){window.open(this.dataLocation,"_blank")},openRepository:function(){let e=this.envVars.API_LOCATION;this.entry.additionalLinks.forEach(function(t){if(t.description=="Repository"){let n=new XMLHttpRequest;n.open("POST",e+"/pmr_latest_exposure",!0),n.setRequestHeader("Content-type","application/json"),n.onreadystatechange=()=>{if(n.readyState===4){let r="";n.status===200&&(r=JSON.parse(n.responseText).url),r===""&&(r=t.uri),window.open(r,"_blank")}},n.send(JSON.stringify({workspace_url:t.uri}))}})},propogateCardAction:function(e){Ut.emit("PopoverActionClick",e),Ut.emit("contextUpdate",e)},splitDOI:function(e){return[e.split("/")[e.split("/").length-2],e.split("/")[e.split("/").length-1]]},getBanner:function(){if(this.lastDoi!==this.entry.doi){this.lastDoi=this.entry.doi,this.loading=!0;let e=this.splitDOI(this.entry.doi);fetch(`${this.envVars.PENNSIEVE_API_LOCATION}/discover/datasets/doi/${e[0]}/${e[1]}`).then(t=>{if(t.ok)return t.json();throw Error(t.statusText)}).then(t=>{this.thumbnail=t.banner,this.discoverId=t.id,this.version=t.version,this.dataLocation=`https://sparc.science/datasets/${t.id}?type=dataset`,this.getBiolucidaInfo(this.discoverId),this.loading=!1,this.updateCopyContent()}).catch(()=>{this.thumbnail=xC,this.discoverId=Number(this.entry.datasetId),this.loading=!1})}},lastName:function(e){return e.split(",")[0]},getBiolucidaInfo:function(e){let n=this.envVars.API_LOCATION+"image_search/"+e;fetch(n).then(r=>r.json()).then(r=>{r.status=="success"&&(this.biolucidaData=r)})},updateCopyContent:function(){const e=[];if(this.entry.name&&e.push(`
${this.entry.name}
`),this.contributors){let t=this.contributors;this.entry.publishDate&&(t+=` (${this.publishYear})`),e.push(`
${t}
`)}if(this.samples&&e.push(`
${this.samples}
`),this.entry.doi){let t="
DOI:
";t+=` `,t+=`${this.entry.doi}`,e.push(`
${t}
`)}if(this.entry.datasetId){let t="
Dataset ID:
";t+=` `,t+=`${this.entry.datasetId}`,e.push(`
${t}
`)}if(this.dataLocation){let t="
Dataset URL:
";t+=` `,t+=`${this.dataLocation}`,e.push(`
${t}
`)}if(this.version){let t="
Dataset version:
";t+=` `,t+=`${this.version}`,e.push(`
${t}
`)}this.copyContent=e.join(`
`)}},created:function(){this.getBanner()},watch:{"entry.description":function(){this.getBanner()}}},Vde=e=>(o.pushScopeId("data-v-541a51e6"),e=e(),o.popScopeId(),e),Rde={class:"dataset-card-container",ref:"container"},Lde={class:"dataset-card",ref:"card"},Mde=Vde(()=>o.createElementVNode("div",{class:"seperator-path"},null,-1)),zde={class:"card"},jde={class:"card-left"},Hde={class:"card-right"},Ude={class:"details"},qde={class:"details"},Wde={key:0,class:"details loading-icon"},Kde={class:"badges-container"},Gde={class:"float-button-container"};function Xde(e,t,n,r,a,i){const s=wC,l=ar,d=l2,c=o.resolveComponent("CopyToClipboard"),u=ou;return o.openBlock(),o.createElementBlock("div",Rde,[o.createElementVNode("div",Lde,[Mde,o.withDirectives((o.openBlock(),o.createElementBlock("div",zde,[o.createElementVNode("span",jde,[!e.loading&&e.discoverId?(o.openBlock(),o.createBlock(s,{key:0,datasetId:e.discoverId,datasetVersion:e.version,entry:n.entry,envVars:n.envVars,label:i.label,datasetThumbnail:e.thumbnail,"dataset-biolucida":e.biolucidaData,category:e.currentCategory,onCardClicked:i.galleryClicked,onDatalinkClicked:i.galleryDatalinkClicked},null,8,["datasetId","datasetVersion","entry","envVars","label","datasetThumbnail","dataset-biolucida","category","onCardClicked","onDatalinkClicked"])):o.createCommentVNode("",!0)]),o.createElementVNode("div",Hde,[o.createElementVNode("div",{class:"title",onClick:t[0]||(t[0]=(...f)=>i.cardClicked&&i.cardClicked(...f))},o.toDisplayString(n.entry.name),1),o.createElementVNode("div",Ude,o.toDisplayString(i.contributors)+" "+o.toDisplayString(n.entry.publishDate?`(${i.publishYear})`:""),1),o.createElementVNode("div",qde,o.toDisplayString(i.samples),1),n.entry.detailsReady?o.createCommentVNode("",!0):o.withDirectives((o.openBlock(),o.createElementBlock("div",Wde,null,512)),[[u,!n.entry.detailsReady]]),o.createElementVNode("div",null,[n.entry.simulation?(o.openBlock(),o.createBlock(l,{key:0,onClick:i.openRepository,size:"small",class:"button",icon:a.ElIconView},{default:o.withCtx(()=>[o.createTextVNode("View repository")]),_:1},8,["onClick","icon"])):o.createCommentVNode("",!0)]),o.createElementVNode("div",Kde,[o.createVNode(d,{entry:n.entry,"dataset-biolucida":e.biolucidaData,onCategoryChanged:i.categoryChanged},null,8,["entry","dataset-biolucida","onCategoryChanged"])]),o.createElementVNode("div",Gde,[o.createVNode(c,{content:e.copyContent},null,8,["content"])])])])),[[u,e.loading]])],512)],512)}const J4=zr(Dde,[["render",Xde],["__scopeId","data-v-541a51e6"]]),Q4=function(e){return[...new Set(e.map(t=>JSON.stringify(t)))].map(t=>JSON.parse(t))},Yde={name:"SearchHistory",components:{Tag:ls,Select:Rl},data(){return{searchHistory:[],selectValue:"Full search history"}},computed:{reversedSearchHistory:function(){return Q4(this.searchHistory.slice().reverse().filter(e=>e.search!==""))},cascaderOptions:function(){return this.reversedSearchHistory.map(e=>({value:e.search,label:e.search}))}},methods:{getSearchHistory(){localStorage.getItem("sparc.science-sidebar-search-history")?this.searchHistory=JSON.parse(localStorage.getItem("sparc.science-sidebar-search-history")):this.searchHistory=[]},clearSearchHistory(){localStorage.removeItem("sparc.science-sidebar-search-history"),this.searchHistory=[]},addSearchToHistory(e,t){e=[],t=t.trim();let n=JSON.parse(localStorage.getItem("sparc.science-sidebar-search-history"));n?(n.push({filters:e,search:t}),this.searchHistory=Q4(n),localStorage.setItem("sparc.science-sidebar-search-history",JSON.stringify(n))):localStorage.setItem("sparc.science-sidebar-search-history",JSON.stringify([{filters:e,search:t}]))},search:function(e){this.$emit("search",e)},selectChange:function(e){this.selectValue=e,this.search({search:e})}},mounted:function(){this.getSearchHistory(),Ut.on("search-changed",e=>{this.setSearchHistory(e)})}},Zde={class:"history-container"};function Jde(e,t,n,r,a,i){const s=ls,l=tu,d=Rl;return o.openBlock(),o.createElementBlock("div",Zde,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.reversedSearchHistory,(c,u)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[u<3?(o.openBlock(),o.createBlock(s,{class:"search-tag",key:u,onClick:f=>i.search(c),size:"large"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(c.search),1)]),_:2},1032,["onClick"])):o.createCommentVNode("",!0)],64))),256)),i.reversedSearchHistory.length>0?(o.openBlock(),o.createBlock(d,{key:0,"model-value":a.selectValue,class:"m-2 search-select",placeholder:"Full search History","popper-class":"sidebar-search-select-popper",onChange:i.selectChange,teleported:!1},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.cascaderOptions,(c,u)=>(o.openBlock(),o.createBlock(l,{key:u,label:c.label,value:c.value},null,8,["label","value"]))),128))]),_:1},8,["model-value","onChange"])):o.createCommentVNode("",!0)])}const e_=zr(Yde,[["render",Jde],["__scopeId","data-v-def88150"]]),t_=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},Qde=["xlink:href"],eue={__name:"SvgIcon",props:{icon:{type:String,required:!0},spin:{type:Boolean,default:!1}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(["map-icon",{"map-icon-spin":e.spin}])},[o.createElementVNode("use",{"xlink:href":`#${e.icon}`},null,8,Qde)],2))}},tue=t_(eue,[["__scopeId","data-v-e172d5ff"]]),n_=` 2horpanel ? `,r_=` 2vertpanel ? `,o_=` 3panel ? `,a_=` 4panel ? `,i_=` 2horpanel ? `,s_=` 2horpanel ? `,l_=` 4panel ? `,c_=` changeBckgd `,d_=` close no bk `,u_=` close `,f_=` closeFullScreen `,p_=` Comment `,h_=` Connection `,m_=` dock `,g_=` drawLine `,y_=` drawPoint `,v_=` drawPolygon `,b_=` drawTrash `,w_=` fitWindow `,x_=` fullScreen `,C_='DataPortal-Icons',k_=` magnifyingGlass `,E_=`Created by Wahyu Prihantorofrom the Noun Project`,S_=` openMap `,__=` Artboard Copy 6 `,B_=` permalink `,T_=` play `,N_=` resetZoom `,O_=` singlepanel ? `,P_=` tooltips ? `,$_=` undock `,F_=` zoomIn `,A_=` zoomOut `,I_=(e,t,n,r)=>{const a=["title","desc","defs","style"],i=["width","height"],s=r||[];let l=document.createElement("div");l.innerHTML=e,a.map(c=>{const u=l.querySelector(c);u&&u.remove()}),i.map(c=>{l.querySelector("svg").removeAttribute(c)}),r&&s.map(c=>{Object.values(l.querySelectorAll(`[${c}]`)).map(u=>{u.removeAttribute(c)})});const d=l.innerHTML;return l=null,d},D_=e=>[[/<\?xml[\s\S]*?>/gi,""],[//gi,""],[//gi,""],[/\<([A-Za-z]+)([^\>]*)\/\>/g,"<$1$2>"],[/\s+/g," "],[/\> \<"]].reduce((t,n)=>"".replace.apply(t,n),e).trim(),nue=!0,rue=!0,oue=["fill"],Ey=Object.assign({"/assets/icons/2horpanel.svg":n_,"/assets/icons/2vertpanel.svg":r_,"/assets/icons/3panel.svg":o_,"/assets/icons/4panel.svg":a_,"/assets/icons/5panel.svg":i_,"/assets/icons/6panel.svg":s_,"/assets/icons/6panelVertical.svg":l_,"/assets/icons/changeBckgd.svg":c_,"/assets/icons/close-no-bk.svg":d_,"/assets/icons/close.svg":u_,"/assets/icons/closeFullScreen.svg":f_,"/assets/icons/comment.svg":p_,"/assets/icons/connection.svg":h_,"/assets/icons/dock.svg":m_,"/assets/icons/drawLine.svg":g_,"/assets/icons/drawPoint.svg":y_,"/assets/icons/drawPolygon.svg":v_,"/assets/icons/drawTrash.svg":b_,"/assets/icons/fitWindow.svg":w_,"/assets/icons/fullScreen.svg":x_,"/assets/icons/help.svg":C_,"/assets/icons/magnifyingGlass.svg":k_,"/assets/icons/noun-filter.svg":E_,"/assets/icons/openMap.svg":S_,"/assets/icons/pause.svg":__,"/assets/icons/permalink.svg":B_,"/assets/icons/play.svg":T_,"/assets/icons/resetZoom.svg":N_,"/assets/icons/singlepanel.svg":O_,"/assets/icons/tooltips.svg":P_,"/assets/icons/undock.svg":$_,"/assets/icons/zoomIn.svg":F_,"/assets/icons/zoomOut.svg":A_});Object.keys(Ey).map(e=>{const t=I_(Ey[e],nue,rue,oue),n=e.replace(/^.+\/(\w+).svg$/,"$1");return D_(t).replace("","symbol>")}).join(` `);const Sy=Object.assign({"/assets/icons/2horpanel.svg":n_,"/assets/icons/2vertpanel.svg":r_,"/assets/icons/3panel.svg":o_,"/assets/icons/4panel.svg":a_,"/assets/icons/5panel.svg":i_,"/assets/icons/6panel.svg":s_,"/assets/icons/6panelVertical.svg":l_,"/assets/icons/changeBckgd.svg":c_,"/assets/icons/close-no-bk.svg":d_,"/assets/icons/close.svg":u_,"/assets/icons/closeFullScreen.svg":f_,"/assets/icons/comment.svg":p_,"/assets/icons/connection.svg":h_,"/assets/icons/dock.svg":m_,"/assets/icons/drawLine.svg":g_,"/assets/icons/drawPoint.svg":y_,"/assets/icons/drawPolygon.svg":v_,"/assets/icons/drawTrash.svg":b_,"/assets/icons/fitWindow.svg":w_,"/assets/icons/fullScreen.svg":x_,"/assets/icons/help.svg":C_,"/assets/icons/magnifyingGlass.svg":k_,"/assets/icons/noun-filter.svg":E_,"/assets/icons/openMap.svg":S_,"/assets/icons/pause.svg":__,"/assets/icons/permalink.svg":B_,"/assets/icons/play.svg":T_,"/assets/icons/resetZoom.svg":N_,"/assets/icons/singlepanel.svg":O_,"/assets/icons/tooltips.svg":P_,"/assets/icons/undock.svg":$_,"/assets/icons/zoomIn.svg":F_,"/assets/icons/zoomOut.svg":A_}),aue=Object.keys(Sy).map(e=>{const t=I_(Sy[e]),n=e.replace(/^.+\/(\w+).svg$/,"$1");return D_(t).replace("","symbol>")}),iue={name:"MapSvgSpriteColor",svgContext:Sy,svgSprite:aue.join(` `)},sue=["innerHTML"];function lue(e,t,n,r,a,i){return o.openBlock(),o.createElementBlock("svg",{width:"0",height:"0",style:{display:"none"},innerHTML:e.$options.svgSprite},null,8,sue)}const cue=t_(iue,[["render",lue]]);var V_={exports:{}};/*! algoliasearch.umd.js | 4.23.2 | © Algolia, inc. | https://github.com/algolia/algoliasearch-client-javascript */(function(e,t){(function(n,r){e.exports=r()})(PA,function(){function n(A,R,M){return R in A?Object.defineProperty(A,R,{value:M,enumerable:!0,configurable:!0,writable:!0}):A[R]=M,A}function r(A,R){var M=Object.keys(A);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(A);R&&(H=H.filter(function(J){return Object.getOwnPropertyDescriptor(A,J).enumerable})),M.push.apply(M,H)}return M}function a(A){for(var R=1;R=0||(Oe[Ce]=Te[Ce]);return Oe}(A,R);if(Object.getOwnPropertySymbols){var ve=Object.getOwnPropertySymbols(A);for(H=0;H=0||Object.prototype.propertyIsEnumerable.call(A,M)&&(J[M]=A[M])}return J}function s(A,R){return function(M){if(Array.isArray(M))return M}(A)||function(M,H){if(Symbol.iterator in Object(M)||Object.prototype.toString.call(M)==="[object Arguments]"){var J=[],ve=!0,Te=!1,me=void 0;try{for(var Ce,$e=M[Symbol.iterator]();!(ve=(Ce=$e.next()).done)&&(J.push(Ce.value),!H||J.length!==H);ve=!0);}catch(Oe){Te=!0,me=Oe}finally{try{ve||$e.return==null||$e.return()}finally{if(Te)throw me}}return J}}(A,R)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function l(A){return function(R){if(Array.isArray(R)){for(var M=0,H=new Array(R.length);M2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then(function(){Te();var Oe=JSON.stringify(me);return J()[Oe]}).then(function(Oe){return Promise.all([Oe?Oe.value:Ce(),Oe!==void 0])}).then(function(Oe){var Xe=s(Oe,2),Ke=Xe[0],rt=Xe[1];return Promise.all([Ke,rt||$e.miss(Ke)])}).then(function(Oe){return s(Oe,1)[0]})},set:function(me,Ce){return Promise.resolve().then(function(){var $e=J();return $e[JSON.stringify(me)]={timestamp:new Date().getTime(),value:Ce},H().setItem(M,JSON.stringify($e)),Ce})},delete:function(me){return Promise.resolve().then(function(){var Ce=J();delete Ce[JSON.stringify(me)],H().setItem(M,JSON.stringify(Ce))})},clear:function(){return Promise.resolve().then(function(){H().removeItem(M)})}}}function c(A){var R=l(A.caches),M=R.shift();return M===void 0?{get:function(H,J){var ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}},Te=J();return Te.then(function(me){return Promise.all([me,ve.miss(me)])}).then(function(me){return s(me,1)[0]})},set:function(H,J){return Promise.resolve(J)},delete:function(H){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(H,J){var ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}};return M.get(H,J,ve).catch(function(){return c({caches:R}).get(H,J,ve)})},set:function(H,J){return M.set(H,J).catch(function(){return c({caches:R}).set(H,J)})},delete:function(H){return M.delete(H).catch(function(){return c({caches:R}).delete(H)})},clear:function(){return M.clear().catch(function(){return c({caches:R}).clear()})}}}function u(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{serializable:!0},R={};return{get:function(M,H){var J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{miss:function(){return Promise.resolve()}},ve=JSON.stringify(M);if(ve in R)return Promise.resolve(A.serializable?JSON.parse(R[ve]):R[ve]);var Te=H(),me=J&&J.miss||function(){return Promise.resolve()};return Te.then(function(Ce){return me(Ce)}).then(function(){return Te})},set:function(M,H){return R[JSON.stringify(M)]=A.serializable?JSON.stringify(H):H,Promise.resolve(H)},delete:function(M){return delete R[JSON.stringify(M)],Promise.resolve()},clear:function(){return R={},Promise.resolve()}}}function f(A,R,M){var H={"x-algolia-api-key":M,"x-algolia-application-id":R};return{headers:function(){return A===y.WithinHeaders?H:{}},queryParameters:function(){return A===y.WithinQueryParameters?H:{}}}}function h(A){var R=0;return A(function M(){return R++,new Promise(function(H){setTimeout(function(){H(A(M))},Math.min(100*R,1e3))})})}function m(A){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(M,H){return Promise.resolve()};return Object.assign(A,{wait:function(M){return m(A.then(function(H){return Promise.all([R(H,M),H])}).then(function(H){return H[1]}))}})}function p(A){for(var R=A.length-1;R>0;R--){var M=Math.floor(Math.random()*(R+1)),H=A[R];A[R]=A[M],A[M]=H}return A}function g(A,R){return R&&Object.keys(R).forEach(function(M){A[M]=R[M](A)}),A}function v(A){for(var R=arguments.length,M=new Array(R>1?R-1:0),H=1;H0?H:void 0,timeout:M.timeout||R,headers:M.headers||{},queryParameters:M.queryParameters||{},cacheable:M.cacheable}}var x={Read:1,Write:2,Any:3},w=1,k=2,C=3;function E(A){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w;return a(a({},A),{},{status:R,lastUpdate:Date.now()})}function S(A){return typeof A=="string"?{protocol:"https",url:A,accept:x.Any}:{protocol:A.protocol||"https",url:A.url,accept:A.accept||x.Any}}var _="DELETE",O="GET",T="POST",N="PUT";function F(A,R){return Promise.all(R.map(function(M){return A.get(M,function(){return Promise.resolve(E(M))})})).then(function(M){var H=M.filter(function(Te){return function(me){return me.status===w||Date.now()-me.lastUpdate>12e4}(Te)}),J=M.filter(function(Te){return function(me){return me.status===C&&Date.now()-me.lastUpdate<=12e4}(Te)}),ve=[].concat(l(H),l(J));return{getTimeout:function(Te,me){return(J.length===0&&Te===0?1:J.length+3+Te)*me},statelessHosts:ve.length>0?ve.map(function(Te){return S(Te)}):R}})}function $(A,R,M,H){var J=[],ve=function(Ke,rt){if(!(Ke.method===O||Ke.data===void 0&&rt.data===void 0)){var et=Array.isArray(Ke.data)?Ke.data:a(a({},Ke.data),rt.data);return JSON.stringify(et)}}(M,H),Te=function(Ke,rt){var et=a(a({},Ke.headers),rt.headers),Ct={};return Object.keys(et).forEach(function(Ft){var nr=et[Ft];Ct[Ft.toLowerCase()]=nr}),Ct}(A,H),me=M.method,Ce=M.method!==O?{}:a(a({},M.data),H.data),$e=a(a(a({"x-algolia-agent":A.userAgent.value},A.queryParameters),Ce),H.queryParameters),Oe=0,Xe=function Ke(rt,et){var Ct=rt.pop();if(Ct===void 0)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:z(J)};var Ft={data:ve,headers:Te,method:me,url:V(Ct,M.path,$e),connectTimeout:et(Oe,A.timeouts.connect),responseTimeout:et(Oe,H.timeout)},nr=function(rr){var In={request:Ft,response:rr,host:Ct,triesLeft:rt.length};return J.push(In),In},md={onSuccess:function(rr){return function(In){try{return JSON.parse(In.content)}catch(Ki){throw function(Ha,pl){return{name:"DeserializationError",message:Ha,response:pl}}(Ki.message,In)}}(rr)},onRetry:function(rr){var In=nr(rr);return rr.isTimedOut&&Oe++,Promise.all([A.logger.info("Retryable failure",G(In)),A.hostsCache.set(Ct,E(Ct,rr.isTimedOut?C:k))]).then(function(){return Ke(rt,et)})},onFail:function(rr){throw nr(rr),function(In,Ki){var Ha=In.content,pl=In.status,gd=Ha;try{gd=JSON.parse(Ha).message}catch{}return function(Ip,$y,Kfe){return{name:"ApiError",message:Ip,status:$y,transporterStackTrace:Kfe}}(gd,pl,Ki)}(rr,z(J))}};return A.requester.send(Ft).then(function(rr){return function(In,Ki){return function(Ha){var pl=Ha.status;return Ha.isTimedOut||function(gd){var Ip=gd.isTimedOut,$y=gd.status;return!Ip&&~~$y==0}(Ha)||~~(pl/100)!=2&&~~(pl/100)!=4}(In)?Ki.onRetry(In):~~(In.status/100)==2?Ki.onSuccess(In):Ki.onFail(In)}(rr,md)})};return F(A.hostsCache,R).then(function(Ke){return Xe(l(Ke.statelessHosts).reverse(),Ke.getTimeout)})}function D(A){var R=A.hostsCache,M=A.logger,H=A.requester,J=A.requestsCache,ve=A.responsesCache,Te=A.timeouts,me=A.userAgent,Ce=A.hosts,$e=A.queryParameters,Oe={hostsCache:R,logger:M,requester:H,requestsCache:J,responsesCache:ve,timeouts:Te,userAgent:me,headers:A.headers,queryParameters:$e,hosts:Ce.map(function(Xe){return S(Xe)}),read:function(Xe,Ke){var rt=b(Ke,Oe.timeouts.read),et=function(){return $(Oe,Oe.hosts.filter(function(Ft){return(Ft.accept&x.Read)!=0}),Xe,rt)};if((rt.cacheable!==void 0?rt.cacheable:Xe.cacheable)!==!0)return et();var Ct={request:Xe,mappedRequestOptions:rt,transporter:{queryParameters:Oe.queryParameters,headers:Oe.headers}};return Oe.responsesCache.get(Ct,function(){return Oe.requestsCache.get(Ct,function(){return Oe.requestsCache.set(Ct,et()).then(function(Ft){return Promise.all([Oe.requestsCache.delete(Ct),Ft])},function(Ft){return Promise.all([Oe.requestsCache.delete(Ct),Promise.reject(Ft)])}).then(function(Ft){var nr=s(Ft,2);return nr[0],nr[1]})})},{miss:function(Ft){return Oe.responsesCache.set(Ct,Ft)}})},write:function(Xe,Ke){return $(Oe,Oe.hosts.filter(function(rt){return(rt.accept&x.Write)!=0}),Xe,b(Ke,Oe.timeouts.write))}};return Oe}function P(A){var R={value:"Algolia for JavaScript (".concat(A,")"),add:function(M){var H="; ".concat(M.segment).concat(M.version!==void 0?" (".concat(M.version,")"):"");return R.value.indexOf(H)===-1&&(R.value="".concat(R.value).concat(H)),R}};return R}function V(A,R,M){var H=I(M),J="".concat(A.protocol,"://").concat(A.url,"/").concat(R.charAt(0)==="/"?R.substr(1):R);return H.length&&(J+="?".concat(H)),J}function I(A){return Object.keys(A).map(function(R){return v("%s=%s",R,(M=A[R],Object.prototype.toString.call(M)==="[object Object]"||Object.prototype.toString.call(M)==="[object Array]"?JSON.stringify(A[R]):A[R]));var M}).join("&")}function z(A){return A.map(function(R){return G(R)})}function G(A){var R=A.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return a(a({},A),{},{request:a(a({},A.request),{},{headers:a(a({},A.request.headers),R)})})}var q=function(A){return function(R,M){return A.transporter.write({method:T,path:"2/abtests",data:R},M)}},X=function(A){return function(R,M){return A.transporter.write({method:_,path:v("2/abtests/%s",R)},M)}},te=function(A){return function(R,M){return A.transporter.read({method:O,path:v("2/abtests/%s",R)},M)}},le=function(A){return function(R){return A.transporter.read({method:O,path:"2/abtests"},R)}},de=function(A){return function(R,M){return A.transporter.write({method:T,path:v("2/abtests/%s/stop",R)},M)}},ne=function(A){return function(R){return A.transporter.read({method:O,path:"1/strategies/personalization"},R)}},oe=function(A){return function(R,M){return A.transporter.write({method:T,path:"1/strategies/personalization",data:R},M)}};function U(A){return function R(M){return A.request(M).then(function(H){if(A.batch!==void 0&&A.batch(H.hits),!A.shouldStop(H))return H.cursor?R({cursor:H.cursor}):R({page:(M.page||0)+1})})}({})}var W=function(A){return function(R,M){var H=M||{},J=H.queryParameters,ve=i(H,["queryParameters"]),Te=a({acl:R},J!==void 0?{queryParameters:J}:{});return m(A.transporter.write({method:T,path:"1/keys",data:Te},ve),function(me,Ce){return h(function($e){return Se(A)(me.key,Ce).catch(function(Oe){if(Oe.status!==404)throw Oe;return $e()})})})}},Z=function(A){return function(R,M,H){var J=b(H);return J.queryParameters["X-Algolia-User-ID"]=R,A.transporter.write({method:T,path:"1/clusters/mapping",data:{cluster:M}},J)}},ue=function(A){return function(R,M,H){return A.transporter.write({method:T,path:"1/clusters/mapping/batch",data:{users:R,cluster:M}},H)}},be=function(A){return function(R,M){return m(A.transporter.write({method:T,path:v("/1/dictionaries/%s/batch",R),data:{clearExistingDictionaryEntries:!0,requests:{action:"addEntry",body:[]}}},M),function(H,J){return Nt(A)(H.taskID,J)})}},Be=function(A){return function(R,M,H){return m(A.transporter.write({method:T,path:v("1/indexes/%s/operation",R),data:{operation:"copy",destination:M}},H),function(J,ve){return Q(A)(R,{methods:{waitTask:Zt}}).waitTask(J.taskID,ve)})}},pe=function(A){return function(R,M,H){return Be(A)(R,M,a(a({},H),{},{scope:[Py.Rules]}))}},xe=function(A){return function(R,M,H){return Be(A)(R,M,a(a({},H),{},{scope:[Py.Settings]}))}},ge=function(A){return function(R,M,H){return Be(A)(R,M,a(a({},H),{},{scope:[Py.Synonyms]}))}},ke=function(A){return function(R,M){return R.method===O?A.transporter.read(R,M):A.transporter.write(R,M)}},Ne=function(A){return function(R,M){return m(A.transporter.write({method:_,path:v("1/keys/%s",R)},M),function(H,J){return h(function(ve){return Se(A)(R,J).then(ve).catch(function(Te){if(Te.status!==404)throw Te})})})}},Ie=function(A){return function(R,M,H){var J=M.map(function(ve){return{action:"deleteEntry",body:{objectID:ve}}});return m(A.transporter.write({method:T,path:v("/1/dictionaries/%s/batch",R),data:{clearExistingDictionaryEntries:!1,requests:J}},H),function(ve,Te){return Nt(A)(ve.taskID,Te)})}},Se=function(A){return function(R,M){return A.transporter.read({method:O,path:v("1/keys/%s",R)},M)}},Re=function(A){return function(R,M){return A.transporter.read({method:O,path:v("1/task/%s",R.toString())},M)}},Ve=function(A){return function(R){return A.transporter.read({method:O,path:"/1/dictionaries/*/settings"},R)}},ze=function(A){return function(R){return A.transporter.read({method:O,path:"1/logs"},R)}},B=function(A){return function(R){return A.transporter.read({method:O,path:"1/clusters/mapping/top"},R)}},L=function(A){return function(R,M){return A.transporter.read({method:O,path:v("1/clusters/mapping/%s",R)},M)}},Y=function(A){return function(R){var M=R||{},H=M.retrieveMappings,J=i(M,["retrieveMappings"]);return H===!0&&(J.getClusters=!0),A.transporter.read({method:O,path:"1/clusters/mapping/pending"},J)}},Q=function(A){return function(R){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},H={transporter:A.transporter,appId:A.appId,indexName:R};return g(H,M.methods)}},ee=function(A){return function(R){return A.transporter.read({method:O,path:"1/keys"},R)}},he=function(A){return function(R){return A.transporter.read({method:O,path:"1/clusters"},R)}},ae=function(A){return function(R){return A.transporter.read({method:O,path:"1/indexes"},R)}},ye=function(A){return function(R){return A.transporter.read({method:O,path:"1/clusters/mapping"},R)}},Fe=function(A){return function(R,M,H){return m(A.transporter.write({method:T,path:v("1/indexes/%s/operation",R),data:{operation:"move",destination:M}},H),function(J,ve){return Q(A)(R,{methods:{waitTask:Zt}}).waitTask(J.taskID,ve)})}},De=function(A){return function(R,M){return m(A.transporter.write({method:T,path:"1/indexes/*/batch",data:{requests:R}},M),function(H,J){return Promise.all(Object.keys(H.taskID).map(function(ve){return Q(A)(ve,{methods:{waitTask:Zt}}).waitTask(H.taskID[ve],J)}))})}},K=function(A){return function(R,M){return A.transporter.read({method:T,path:"1/indexes/*/objects",data:{requests:R}},M)}},fe=function(A){return function(R,M){var H=R.map(function(J){return a(a({},J),{},{params:I(J.params||{})})});return A.transporter.read({method:T,path:"1/indexes/*/queries",data:{requests:H},cacheable:!0},M)}},ie=function(A){return function(R,M){return Promise.all(R.map(function(H){var J=H.params,ve=J.facetName,Te=J.facetQuery,me=i(J,["facetName","facetQuery"]);return Q(A)(H.indexName,{methods:{searchForFacetValues:K_}}).searchForFacetValues(ve,Te,a(a({},M),me))}))}},we=function(A){return function(R,M){var H=b(M);return H.queryParameters["X-Algolia-User-ID"]=R,A.transporter.write({method:_,path:"1/clusters/mapping"},H)}},nt=function(A){return function(R,M,H){var J=M.map(function(ve){return{action:"addEntry",body:ve}});return m(A.transporter.write({method:T,path:v("/1/dictionaries/%s/batch",R),data:{clearExistingDictionaryEntries:!0,requests:J}},H),function(ve,Te){return Nt(A)(ve.taskID,Te)})}},Qe=function(A){return function(R,M){return m(A.transporter.write({method:T,path:v("1/keys/%s/restore",R)},M),function(H,J){return h(function(ve){return Se(A)(R,J).catch(function(Te){if(Te.status!==404)throw Te;return ve()})})})}},lt=function(A){return function(R,M,H){var J=M.map(function(ve){return{action:"addEntry",body:ve}});return m(A.transporter.write({method:T,path:v("/1/dictionaries/%s/batch",R),data:{clearExistingDictionaryEntries:!1,requests:J}},H),function(ve,Te){return Nt(A)(ve.taskID,Te)})}},ft=function(A){return function(R,M,H){return A.transporter.read({method:T,path:v("/1/dictionaries/%s/search",R),data:{query:M},cacheable:!0},H)}},yt=function(A){return function(R,M){return A.transporter.read({method:T,path:"1/clusters/mapping/search",data:{query:R}},M)}},Kt=function(A){return function(R,M){return m(A.transporter.write({method:N,path:"/1/dictionaries/*/settings",data:R},M),function(H,J){return Nt(A)(H.taskID,J)})}},Tt=function(A){return function(R,M){var H=Object.assign({},M),J=M||{},ve=J.queryParameters,Te=i(J,["queryParameters"]),me=ve?{queryParameters:ve}:{},Ce=["acl","indexes","referers","restrictSources","queryParameters","description","maxQueriesPerIPPerHour","maxHitsPerQuery"];return m(A.transporter.write({method:N,path:v("1/keys/%s",R),data:me},Te),function($e,Oe){return h(function(Xe){return Se(A)(R,Oe).then(function(Ke){return function(rt){return Object.keys(H).filter(function(et){return Ce.indexOf(et)!==-1}).every(function(et){if(Array.isArray(rt[et])&&Array.isArray(H[et])){var Ct=rt[et];return Ct.length===H[et].length&&Ct.every(function(Ft,nr){return Ft===H[et][nr]})}return rt[et]===H[et]})}(Ke)?Promise.resolve():Xe()})})})}},Nt=function(A){return function(R,M){return h(function(H){return Re(A)(R,M).then(function(J){return J.status!=="published"?H():void 0})})}},Gt=function(A){return function(R,M){return m(A.transporter.write({method:T,path:v("1/indexes/%s/batch",A.indexName),data:{requests:R}},M),function(H,J){return Zt(A)(H.taskID,J)})}},Xt=function(A){return function(R){return U(a(a({shouldStop:function(M){return M.cursor===void 0}},R),{},{request:function(M){return A.transporter.read({method:T,path:v("1/indexes/%s/browse",A.indexName),data:M},R)}}))}},Rt=function(A){return function(R){var M=a({hitsPerPage:1e3},R);return U(a(a({shouldStop:function(H){return H.hits.length0&&arguments[0]!==void 0?arguments[0]:0,Xe=[];for($e=Oe;$e=$e.nbPages)throw{name:"ObjectNotFoundError",message:"Object not found."};return Ce()})}()}},An=function(A){return function(R,M){return A.transporter.read({method:O,path:v("1/indexes/%s/%s",A.indexName,R)},M)}},Yt=function(){return function(A,R){for(var M=0,H=Object.entries(A.hits);M$e.OPENED&&Oe===void 0&&(clearTimeout(Ke),Oe=Xe(me.responseTimeout,"Socket timeout"))},$e.onerror=function(){$e.status===0&&(clearTimeout(Ke),clearTimeout(Oe),Ce({content:$e.responseText||"Network request failed",status:$e.status,isTimedOut:!1}))},$e.onload=function(){clearTimeout(Ke),clearTimeout(Oe),Ce({content:$e.responseText,status:$e.status,isTimedOut:!1})},$e.send(me.data)})}},logger:(H=Mfe,{debug:function(me,Ce){return Rfe>=H&&console.debug(me,Ce),Promise.resolve()},info:function(me,Ce){return Lfe>=H&&console.info(me,Ce),Promise.resolve()},error:function(me,Ce){return console.error(me,Ce),Promise.resolve()}}),responsesCache:u(),requestsCache:u({serializable:!1}),hostsCache:c({caches:[d({key:"".concat("4.23.2","-").concat(A)}),u()]}),userAgent:P("4.23.2").add({segment:"Browser"})},ve=a(a({},J),M),Te=function(){return function(me){return function(Ce){var $e=Ce.region||"us",Oe=f(y.WithinHeaders,Ce.appId,Ce.apiKey),Xe=D(a(a({hosts:[{url:"personalization.".concat($e,".algolia.com")}]},Ce),{},{headers:a(a(a({},Oe.headers()),{"content-type":"application/json"}),Ce.headers),queryParameters:a(a({},Oe.queryParameters()),Ce.queryParameters)}));return g({appId:Ce.appId,transporter:Xe},Ce.methods)}(a(a(a({},J),me),{},{methods:{getPersonalizationStrategy:ne,setPersonalizationStrategy:oe}}))}};return function(me){var Ce=me.appId,$e=f(me.authMode!==void 0?me.authMode:y.WithinHeaders,Ce,me.apiKey),Oe=D(a(a({hosts:[{url:"".concat(Ce,"-dsn.algolia.net"),accept:x.Read},{url:"".concat(Ce,".algolia.net"),accept:x.Write}].concat(p([{url:"".concat(Ce,"-1.algolianet.com")},{url:"".concat(Ce,"-2.algolianet.com")},{url:"".concat(Ce,"-3.algolianet.com")}]))},me),{},{headers:a(a(a({},$e.headers()),{"content-type":"application/x-www-form-urlencoded"}),me.headers),queryParameters:a(a({},$e.queryParameters()),me.queryParameters)}));return g({transporter:Oe,appId:Ce,addAlgoliaAgent:function(Xe,Ke){Oe.userAgent.add({segment:Xe,version:Ke})},clearCache:function(){return Promise.all([Oe.requestsCache.clear(),Oe.responsesCache.clear()]).then(function(){})}},me.methods)}(a(a({},ve),{},{methods:{search:fe,searchForFacetValues:ie,multipleBatch:De,multipleGetObjects:K,multipleQueries:fe,copyIndex:Be,copySettings:xe,copySynonyms:ge,copyRules:pe,moveIndex:Fe,listIndices:ae,getLogs:ze,listClusters:he,multipleSearchForFacetValues:ie,getApiKey:Se,addApiKey:W,listApiKeys:ee,updateApiKey:Tt,deleteApiKey:Ne,restoreApiKey:Qe,assignUserID:Z,assignUserIDs:ue,getUserID:L,searchUserIDs:yt,listUserIDs:ye,getTopUserIDs:B,removeUserID:we,hasPendingMappings:Y,clearDictionaryEntries:be,deleteDictionaryEntries:Ie,getDictionarySettings:Ve,getAppTask:Re,replaceDictionaryEntries:nt,saveDictionaryEntries:lt,searchDictionaryEntries:ft,setDictionarySettings:Kt,waitAppTask:Nt,customRequest:ke,initIndex:function(me){return function(Ce){return Q(me)(Ce,{methods:{batch:Gt,delete:Fn,findAnswers:Lt,getObject:An,getObjects:Pt,saveObject:Wi,saveObjects:Mn,search:W_,searchForFacetValues:K_,waitTask:Zt,setSettings:Vfe,getSettings:qi,partialUpdateObject:Pp,partialUpdateObjects:$p,deleteObject:ko,deleteObjects:j,deleteBy:Vt,clearObjects:Cn,browseObjects:Xt,getObjectPosition:Yt,findObject:kn,exists:Le,saveSynonym:Dfe,saveSynonyms:Oy,getSynonym:Op,searchSynonyms:X_,browseSynonyms:$n,deleteSynonym:_e,clearSynonyms:Ot,replaceAllObjects:pr,replaceAllSynonyms:Fp,searchRules:G_,getRule:Eo,deleteRule:re,saveRule:Ty,saveRules:Ny,replaceAllRules:hd,browseRules:Rt,clearRules:vt}})}},initAnalytics:function(){return function(me){return function(Ce){var $e=Ce.region||"us",Oe=f(y.WithinHeaders,Ce.appId,Ce.apiKey),Xe=D(a(a({hosts:[{url:"analytics.".concat($e,".algolia.com")}]},Ce),{},{headers:a(a(a({},Oe.headers()),{"content-type":"application/json"}),Ce.headers),queryParameters:a(a({},Oe.queryParameters()),Ce.queryParameters)}));return g({appId:Ce.appId,transporter:Xe},Ce.methods)}(a(a(a({},J),me),{},{methods:{addABTest:q,getABTest:te,getABTests:le,stopABTest:de,deleteABTest:X}}))}},initPersonalization:Te,initRecommendation:function(){return function(me){return ve.logger.info("The `initRecommendation` method is deprecated. Use `initPersonalization` instead."),Te()(me)}},getRecommendations:Ap,getFrequentlyBoughtTogether:zfe,getLookingSimilar:qfe,getRecommendedForYou:Wfe,getRelatedProducts:jfe,getTrendingFacets:Hfe,getTrendingItems:Ufe}}))}return Y_.version="4.23.2",Y_})})(V_);var due=V_.exports;const uue=$A(due);class R_{constructor(t,n,r="https://api.pennsieve.io"){this.client=uue(t,n),this.PENNSIEVE_API_LOCATION=r,this.anatomyFacetLabels=[]}initIndex(t){this.index=this.client.initIndex(t)}getAlgoliaFacets(t){const n=t.map(s=>s.facetPropPath),r=t.map(s=>s.facetSubpropPath);let a=[],i=0;return this.index.search("",{sortFacetValuesBy:"alpha",facets:n.concat(r)}).then(s=>(n.map(l=>{const d=t.find(m=>m.facetPropPath==l);var c=[];const u=s.facets;if(u===void 0)return;const f=u[l]==null?{}:u[l],h=d&&u[d.facetSubpropPath]?Object.keys(u[d.facetSubpropPath]):[];Object.keys(f).map(m=>{const p=h.reduce((v,y)=>{const b=y.split(".");return b.length!==2||m===b[0]&&v.push({label:b[1],id:i++,facetPropPath:`${d?d.facetSubpropPath:void 0}`}),v},[]);let g={label:m,id:i++,facetPropPath:l};p.length>0&&(g.children=p),c.push(g)}),c.length>0&&a.push({label:d?d.label:"",id:i++,children:c,key:l})}),a))}_discoverAllDois(t,n="https://api.pennsieve.io"){return new Promise(r=>{fetch(`${n}/discover/datasets/${t}/versions`).then(a=>a.json()).then(a=>{r(a.map(i=>i.doi))})})}_expandDois(t,n="https://api.pennsieve.io"){return new Promise(r=>{let a=t.map(i=>this._discoverAllDois(i,n));Promise.all(a).then(i=>{r(i.flat())})})}_processResultsForCards(t){let n=[],r={};for(let a of t)r={...a},r={anatomy:a.anatomy?a.anatomy.organ.map(i=>i.curie):void 0,doi:a.item.curie.split(":")[1],name:a.item.name,description:a.item.description,updated:a.pennsieve?a.pennsieve.updatedAt:void 0,publishDate:a.pennsieve?a.pennsieve.publishDate:void 0,datasetId:a.objectID,detailsReady:!1},n.push(r);return n}_processAnatomy(t){let n=[],r=[],a=[],i=[];return t.forEach(s=>{s.item&&s.item.keywords&&s.item.keywords.forEach(l=>{let d=l.keyword.toUpperCase();(d.includes("UBERON")||d.includes("ILX"))&&n.push(this._processUberonURL(d))}),s.anatomy&&s.anatomy.organ&&s.anatomy.organ.forEach(l=>{l.curie&&(n.push(l.curie),r.push(l.name))})}),i=[...new Set(n)],a=[...new Set(r)],this.anatomyFacetLabels=a,i}_processUberonURL(t){return t.split("/").pop().replace("_",":")}search(t,n="",r=10,a=1){return new Promise(i=>{this.index.search(n,{facets:["*"],hitsPerPage:r,page:a-1,filters:t,attributesToHighlight:[],attributesToRetrieve:["pennsieve.publishDate","pennsieve.updatedAt","item.curie","item.name","item.description","objectID","anatomy.organ.curie"]}).then(s=>{let l={items:this._processResultsForCards(s.hits),total:s.nbHits,discoverIds:s.hits.map(d=>d.pennsieve?d.pennsieve.identifier:d.objectID),dois:s.hits.map(d=>d.item.curie.split(":")[1])};i(l)})})}anatomyInSearch(t,n="",r=999999,a=1){return new Promise(i=>{this.index.search(n,{facets:["*"],hitsPerPage:r,page:a-1,filters:t,attributesToHighlight:[],attributesToRetrieve:["objectID","item.keywords.keyword","anatomy.organ.name","anatomy.organ.curie"]}).then(s=>{i({forFlatmap:this.processResultsForFlatmap(s.hits),forScaffold:this.processResultsForScaffold(s.hits)})})})}processResultsForFlatmap(t){return t.map(r=>({id:r.objectID,terms:r.anatomy?r.anatomy.organ.map(a=>a.curie):[]}))}processResultsForScaffold(t){let n={};return t.forEach(r=>{r.anatomy&&r.anatomy.organ&&r.anatomy.organ.forEach(a=>{a.name&&(n[a.name]?n[a.name]++:n[a.name]=1)})}),n}}const _y=[{label:"Data Type",id:"item.types",facetPropPath:"item.types.name",facetSubpropPath:"item.types.subcategory.name"},{label:"Anatomical Structure",id:"anatomy.organ.category",facetPropPath:"anatomy.organ.category.name",facetSubpropPath:"anatomy.organ.subcategory.name",facetFilterPath:"anatomy.organ.name"},{label:"Species",id:"organisms.primary.species",facetPropPath:"organisms.primary.species.name",facetSubpropPath:"organisms.primary.species.subcategory.name"},{label:"Experimental Approach",id:"item.modalities",facetPropPath:"item.modalities.keyword",facetSubpropPath:"item.modalities.subcategory.name"},{label:"Sex",id:"attributes.subject.sex",facetPropPath:"attributes.subject.sex.value",facetSubpropPath:"attributes.subject.sex.subcategory.name"},{label:"Age Categories",id:"attributes.subject.ageCategory",facetPropPath:"attributes.subject.ageCategory.value",facetSubpropPath:"attributes.subject.ageCategory.subcategory.name"}];function L_(e=void 0){if(e===void 0)return"NOT item.published.status:embargo";e.forEach(a=>a.label=a.facet);let t=fue(e),n="NOT item.published.status:embargo";return n=`(${n}) AND `,_y.map(a=>a.facetPropPath).map(a=>{let i=t.filter(d=>d.facetPropPath==a),s="",l="";i.map(d=>{let c=d.facetSubPropPath?d.facetSubPropPath:a;d.AND?l+=`AND "${c}":"${d.label}"`:s+=`"${c}":"${d.label}" OR `}),!(s==""&&l=="")&&(s=`(${s.substring(0,s.lastIndexOf(" OR "))})`,n+=`${s+l} AND `,n=n.split("()AND ").join(""))}),n.substring(0,n.lastIndexOf(" AND "))}function fue(e){return e.filter(t=>t.label!=="Show all")}const Np=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},By=function(e){const t=e.toLowerCase();return Xu[t]?Np(Xu[t]):Np(t)},pue={name:"SearchFilters",components:{MapSvgIcon:tue,MapSvgSpriteColor:cue,Option:tu,Select:Rl,Popover:Xh,Cascader:qb},props:{entry:Object,envVars:{type:Object,default:()=>{}}},data:function(){return{algoliaClient:void 0,cascaderIsReady:!1,previousShowAllChecked:{species:!1,gender:!1,organ:!1,datasets:!1},showFilters:!0,showFiltersText:!0,cascadeSelected:[],cascadeSelectedWithBoolean:[],numberShown:10,filters:[],facets:["Species","Gender","Organ","Datasets"],numberDatasetsShown:["10","20","50"],props:{multiple:!0},options:[{value:"Species",label:"Species",children:[{}]}],presentTags:[]}},setup(){const e=o.markRaw({}),t=o.markRaw({term:new Set,facet:new Set,facet2:new Set});return{cascaderTags:e,correctnessCheck:t}},computed:{numberOfResultsText:function(){return`${this.entry.numberOfHits} results | Showing`}},methods:{createCascaderItemValue:function(e,t=void 0,n=void 0){let r=e;return t&&(r=`${e}>${t}`),t&&n&&(r=`${e}>${t}>${n}`),!t&&n&&console.warn(`Warning: ${n} provided without its parent, this will not be shown in the cascader`),r},populateCascader:function(){return new Promise(e=>{this.algoliaClient.getAlgoliaFacets(_y).then(t=>{this.facets=t,Ut.emit("available-facets",t),this.options=t,this.options.forEach((n,r)=>{this.options[r].total=this.countTotalFacet(n),this.options[r].label=By(n.label),this.options[r].value=this.createCascaderItemValue(n.key,void 0),this.options[r].children.unshift({value:this.createCascaderItemValue("Show all"),label:"Show all"}),this.options[r].children.forEach((a,i)=>{this.options[r].children[i].label=By(a.label),this.options[r].children[i].value=this.createCascaderItemValue(n.label,a.label),this.options[r].children[i].children&&this.options[r].children[i].children.length>0&&this.options[r].children[i].children.forEach((s,l)=>{this.options[r].children[i].children[l].label=By(s.label),this.options[r].children[i].children[l].value=this.createCascaderItemValue(n.label,a.label,s.label)})})})}).finally(()=>{e()})})},cascadeTagClose:function(e){let t=[];Object.entries(this.cascaderTags).map(n=>{const r=n[0],a=n[1],i=this.options.filter(l=>l.label==r)[0],s=i.key;for(let l=0;l{const h=f[0],m=f[1];h===c&&d.children.map(p=>{const g=p.label,v=p.value;g!==e&&m.includes(g)&&t.push([s,v])})})}}),this.cascadeEvent(t)},tagsChangedCallback:function(e){this.correctnessCheck.term&&this.correctnessCheck.facet&&this.correctnessCheck.facet2&&this.options.map(t=>{this.correctnessCheck.term.add(t.label),t.children.map(n=>{this.correctnessCheck.facet.add(n.label),t.label==="Anatomical structure"&&n.label!=="Show all"&&n.children.map(r=>{this.correctnessCheck.facet2.add(r.label)})})}),this.cascaderTags={},this.presentTags=[],e.map(t=>{const{facet:n,facet2:r,term:a}=t;this.correctnessCheck.term.has(a)&&this.correctnessCheck.facet.has(n)&&(r?this.correctnessCheck.facet2.has(r)&&(a in this.cascaderTags?n in this.cascaderTags[a]?this.cascaderTags[a][n].push(r):this.cascaderTags[a][n]=[r]:(this.cascaderTags[a]={},this.cascaderTags[a][n]=[r])):a in this.cascaderTags&&a!=="Anatomical structure"?this.cascaderTags[a].push(n):n.toLowerCase()!=="show all"?this.cascaderTags[a]=[n]:this.cascaderTags[a]=[])}),Object.values(this.cascaderTags).map(t=>{const n=Array.isArray(t)?t:Object.values(t).flat(1);this.presentTags=[...this.presentTags,...n]}),this.presentTags=[...new Set(this.presentTags)],this.presentTags.length>0?this.showFiltersText=!1:this.showFiltersText=!0},countTotalFacet:function(e){return["anatomy.organ.category.name"].includes(e.key)?e.children.reduce((n,r)=>(n=typeof n=="number"?n:n.children.length,n+r.children.length)):e.children.length},showAllEventModifierForAutoCheckAll:function(e){const t={};return e.map(n=>{const r=n[0];r in t?t[r]+=1:t[r]=1}),this.options.map(n=>{const r=n.key,a=n.children.filter(s=>s.label==="Show all")[0].value,i=n.total;t[r]===i&&(e=e.filter(s=>s[0]!==n.key),delete t[r]),r in t||e.unshift([r,a])}),e},cascadeEvent:function(e){let t=[...e];if(t){if(t=this.showAllEventModifier(t),t=this.showAllEventModifierForAutoCheckAll(t),this.__expandItem__){let a=0;this.__expandItem__.length>1&&(a=1);const i=t.filter(l=>l[a]==this.__expandItem__[a]),s=t.filter(l=>l[a]!==this.__expandItem__[a]);t=[...i,...s]}let n=t.filter(a=>a!==void 0).map(a=>{let{hString:i,bString:s}=this.findHierarachyStringAndBooleanString(a),{facet:l,facet2:d,term:c}=this.getFacetsFromHierarchyString(i);return{facetPropPath:a[0],facet:l,facet2:d,term:c,AND:s}}),r=t.filter(a=>a!==void 0).map(a=>{let i,s=a[0].includes("duplicate")?a[0].split("duplicate")[0]:a[0],{hString:l,bString:d}=this.findHierarachyStringAndBooleanString(a),{facet:c,facet2:u,term:f}=this.getFacetsFromHierarchyString(l);return u&&(c=u,i="anatomy.organ.name"),{facetPropPath:s,facet:c,term:f,AND:d,facetSubPropPath:i}});this.$emit("loading",!0),this.$emit("filterResults",r),this.setCascader(n),this.cssMods()}},findHierarachyStringAndBooleanString(e){let t,n;return e.length>=3?e[2]&&(typeof e[2]=="string"||e[2]instanceof String)&&e[2].split(">").length>2?(t=e[2],n=e.length==4?e[3]:void 0):(t=e[1],n=e[2]):(t=e[1],n=void 0),{hString:t,bString:n}},getFacetsFromHierarchyString(e){let t,n,r,a=e.split(">");return a.length==3?(r=a[2],t=a[1],n=a[0]):(t=a[1],n=a[0]),{facet:t,facet2:r,term:n}},showAllEventModifier:function(e){if(e.map(n=>n?n[1].toLowerCase().includes("show all"):!1).includes(!0)){let n=[],r={};for(const a in e)r[e[a][0]]===void 0&&(r[e[a][0]]=[]),r[e[a][0]].push(e[a]);for(const a in r){let i;for(let s=r[a].length-1;s>=0;s--)if(r[a][s][1].toLowerCase().includes("show all")){i=r[a].splice(s,1)[0];break}i?this.previousShowAllChecked[a]&&r[a].length>0?n.push(...r[a]):n.push(i):n.push(...r[a])}return n.sort((a,i)=>this.__expandItem__?a[0]==this.__expandItem__?i[0]==this.__expandItem__?0:-1:i[0]==this.__expandItem__?a[0]==this.__expandItem__?0:1:0:0)}return e},cascadeExpandChange:function(e){this.__expandItem__=e,this.cssMods()},numberShownChanged:function(e){this.$emit("numberPerPage",parseInt(e))},updatePreviousShowAllChecked:function(e){for(const t in this.previousShowAllChecked)this.previousShowAllChecked[t]=!1;e.forEach(t=>{t[1].toLowerCase().includes("show all")&&(this.previousShowAllChecked[t[0]]=!0)})},setCascader:function(e){if(this.cascaderIsReady&&e&&e.length!=0){const t=n=>{let r=[n.facetPropPath,this.createCascaderItemValue(Np(n.term),n.facet)];return n.facet2&&r.push(this.createCascaderItemValue(Np(n.term),n.facet,n.facet2)),r};this.cascadeSelected=e.map(n=>t(n)),this.cascadeSelectedWithBoolean=e.map(n=>{let r=t(n);return r.push(n.AND),r}),this.updatePreviousShowAllChecked(this.cascadeSelected)}this.tagsChangedCallback(e)},addFilter:function(e){if(this.cascaderIsReady&&e){let t=this.validateAndConvertFilterToHierarchical(e);if(t)return this.cascadeSelected.filter(n=>n.term!=t.term),this.cascadeSelected.push([t.facetPropPath,this.createCascaderItemValue(t.term,t.facet),this.createCascaderItemValue(t.term,t.facet,t.facet2)]),this.cascadeSelectedWithBoolean.push([t.facetPropPath,this.createCascaderItemValue(t.term,t.facet),this.createCascaderItemValue(t.term,t.facet,t.facet2),t.AND]),!0}},initiateSearch:function(){this.cascadeEvent(this.cascadeSelectedWithBoolean)},checkShowAllBoxes:function(){this.setCascader(this.options.map(e=>({facetPropPath:e.value,term:e.label,facet:"Show all"})))},makeCascadeLabelsClickable:function(){this.$nextTick(()=>{document.querySelectorAll(".sidebar-cascader-popper .el-cascader-node__label").forEach(e=>{e.onclick=function(){const t=this.previousElementSibling;t&&(t.parentElement.attributes["aria-owns"]||this.previousElementSibling.click())}})})},cssMods:function(){this.makeCascadeLabelsClickable(),this.removeTopLevelCascaderCheckboxes()},removeTopLevelCascaderCheckboxes:function(){this.$nextTick(()=>{document.querySelectorAll(".sidebar-cascader-popper .el-cascader-menu__list")[0].querySelectorAll(".el-checkbox__input").forEach(t=>t.style.display="none")})},validateAndConvertFilterToHierarchical:function(e){if(e&&e.facet&&e.term){if(e.facet2)return e;for(const t of this.options)if(t.value===e.facetPropPath)for(const n of t.children){if(n.label===e.facet)return e;if(n.children&&n.children.length>0){for(const r of n.children)if(r.label===e.facet)return e.facet2=r.label,e.facet=n.label,e}}}return!1},getHierarchicalValidatedFilters:function(e){if(e)if(this.cascaderIsReady){const t=[];return e.forEach(n=>{const r=this.validateAndConvertFilterToHierarchical(n);r&&t.push(r)}),t}else return e;return[]}},mounted:function(){this.algoliaClient=o.markRaw(new R_(this.envVars.ALGOLIA_ID,this.envVars.ALGOLIA_KEY,this.envVars.PENNSIEVE_API_LOCATION)),this.algoliaClient.initIndex(this.envVars.ALGOLIA_INDEX),this.populateCascader().then(()=>{this.cascaderIsReady=!0,this.checkShowAllBoxes(),this.setCascader(this.entry.filterFacets),this.cssMods(),this.$emit("cascaderReady")})}},hue=e=>(o.pushScopeId("data-v-88a79b0f"),e=e(),o.popScopeId(),e),mue={class:"filters"},gue={key:0,class:"cascader-tag"},yue={class:"el-tags-container"},vue={class:"el-tags-container"},bue={class:"search-filters transition-box"},wue={key:0,class:"filter-default-value"},xue=hue(()=>o.createElementVNode("div",null,[o.createElementVNode("strong",null,"Within categories:"),o.createTextVNode(" OR "),o.createElementVNode("br"),o.createTextVNode(" example: 'heart' OR 'colon' "),o.createElementVNode("br"),o.createElementVNode("br"),o.createElementVNode("strong",null,"Between categories:"),o.createTextVNode(" AND "),o.createElementVNode("br"),o.createTextVNode(" example: 'rat' AND 'lung' ")],-1)),Cue={class:"dataset-shown"},kue={class:"dataset-results-feedback"};function Eue(e,t,n,r,a,i){const s=o.resolveComponent("MapSvgSpriteColor"),l=ls,d=Xh,c=qb,u=o.resolveComponent("MapSvgIcon"),f=tu,h=Rl,m=ou;return o.openBlock(),o.createElementBlock("div",mue,[o.createVNode(s),e.presentTags.length>0?(o.openBlock(),o.createElementBlock("div",gue,[o.createVNode(l,{class:"ml-2",type:"info",closable:"",onClose:t[0]||(t[0]=p=>i.cascadeTagClose(e.presentTags[0]))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.presentTags[0]),1)]),_:1}),e.presentTags.length>1?(o.openBlock(),o.createBlock(d,{key:0,placement:"bottom-start",width:200,trigger:"hover"},{default:o.withCtx(()=>[o.createElementVNode("div",yue,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.presentTags.slice(1),(p,g)=>(o.openBlock(),o.createBlock(l,{key:g,class:"ml-2",type:"info",closable:"",onClose:v=>i.cascadeTagClose(p)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(p),1)]),_:2},1032,["onClose"]))),128))])]),reference:o.withCtx(()=>[o.createElementVNode("div",vue,[e.presentTags.length>1?(o.openBlock(),o.createBlock(l,{key:0,class:"ml-2",type:"info"},{default:o.withCtx(()=>[o.createTextVNode(" +"+o.toDisplayString(e.presentTags.length-1),1)]),_:1})):o.createCommentVNode("",!0)])]),_:1})):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),o.createVNode(o.Transition,{name:"el-zoom-in-top"},{default:o.withCtx(()=>[o.withDirectives((o.openBlock(),o.createElementBlock("span",bue,[o.createVNode(c,{class:"cascader",ref:"cascader",modelValue:e.cascadeSelected,"onUpdate:modelValue":t[1]||(t[1]=p=>e.cascadeSelected=p),size:"large",placeholder:" ","collapse-tags":!0,"collapse-tags-tooltip":"",options:e.options,props:e.props,onChange:t[2]||(t[2]=p=>i.cascadeEvent(p)),onExpandChange:i.cascadeExpandChange,"show-all-levels":!0,"popper-class":"sidebar-cascader-popper"},null,8,["modelValue","options","props","onExpandChange"]),e.showFiltersText?(o.openBlock(),o.createElementBlock("div",wue,"Filters")):o.createCommentVNode("",!0),o.createVNode(d,{title:"How do filters work?",width:"250",trigger:"hover","append-to-body":!1,"popper-class":"popover"},{reference:o.withCtx(()=>[o.createVNode(u,{icon:"help",class:"help"})]),default:o.withCtx(()=>[xue]),_:1})])),[[o.vShow,e.showFilters],[m,!e.cascaderIsReady]])]),_:1}),o.createElementVNode("div",Cue,[o.createElementVNode("span",kue,o.toDisplayString(i.numberOfResultsText),1),o.createVNode(h,{class:"number-shown-select",modelValue:e.numberShown,"onUpdate:modelValue":t[3]||(t[3]=p=>e.numberShown=p),placeholder:"10",onChange:t[4]||(t[4]=p=>i.numberShownChanged(p))},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.numberDatasetsShown,p=>(o.openBlock(),o.createBlock(f,{key:p,label:p,value:p},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])])}const M_=zr(pue,[["render",Eue],["__scopeId","data-v-88a79b0f"]]);var Sue=async function(e){if(!e.ok){let t=await e.json();throw t?new Error(t.message):new Error(e)}return e},_ue={searchInput:"",lastSearch:"",results:[],numberOfHits:0,filter:[],loadingCards:!1,numberPerPage:10,page:1,pageModel:1,start:0,hasSearched:!1,contextCardEnabled:!1};const Bue={components:{SearchFilters:M_,DatasetCard:J4,SearchHistory:e_,Button:ar,Card:Ob,Drawer:qh,Icon:St,Input:Wd,Pagination:o2},name:"SideBarContent",props:{visible:{type:Boolean,default:!1},isDrawer:{type:Boolean,default:!0},entry:{type:Object,default:()=>_ue},envVars:{type:Object,default:()=>{}}},data:function(){return{...this.entry,algoliaClient:void 0,bodyStyle:{flex:"1 1 auto","flex-flow":"column",display:"flex"},cascaderIsReady:!1}},computed:{filterEntry:function(){return{numberOfHits:this.numberOfHits,filterFacets:this.filter}}},methods:{hoverChanged:function(e){this.$emit("hover-changed",e)},resetSearch:function(){this.numberOfHits=0,this.discoverIds=[],this._dois=[],this.results=[],this.loadingCards=!1},openSearch:function(e,t=""){this.searchInput=t,this.resetPageNavigation(),this.cascaderIsReady?(this.filter=this.$refs.filtersRef.getHierarchicalValidatedFilters(e),e&&e.length>0&&this.filter&&this.filter.length===0?(this.$refs.filtersRef.checkShowAllBoxes(),this.resetSearch()):this.filter&&(this.searchAlgolia(this.filter,t),this.$refs.filtersRef.setCascader(this.filter))):(this.filter=e,(!e||e.length==0)&&this.searchAlgolia(this.filter,t))},addFilter:function(e){this.cascaderIsReady?(this.resetPageNavigation(),e&&this.$refs.filtersRef.addFilter(e)&&this.$refs.filtersRef.initiateSearch()):Array.isArray(this.filter)?this.filter.push(e):this.filter=[e]},cascaderReady:function(){this.cascaderIsReady=!0,this.openSearch(this.filter,this.searchInput)},clearSearchClicked:function(){this.searchInput="",this.resetPageNavigation(),this.searchAlgolia(this.filters,this.searchInput),this.$refs.searchHistory.selectValue="Full search history"},searchEvent:function(e=!1){(e.keyCode===13||e instanceof MouseEvent)&&(this.resetPageNavigation(),this.searchAlgolia(this.filters,this.searchInput),this.$refs.searchHistory.selectValue="Full search history",this.$refs.searchHistory.addSearchToHistory(this.filters,this.searchInput))},filterUpdate:function(e){this.filters=[...e],this.resetPageNavigation(),this.searchAlgolia(e,this.searchInput),this.$emit("search-changed",{value:e,type:"filter-update"})},searchAlgolia(e,t=""){this.loadingCards=!0,this.algoliaClient.anatomyInSearch(L_(e),t).then(n=>{Ut.emit("anatomy-in-datasets",n.forFlatmap),Ut.emit("number-of-datasets-for-anatomies",n.forScaffold)}),this.algoliaClient.search(L_(e),t,this.numberPerPage,this.page).then(n=>{this.numberOfHits=n.total,this.discoverIds=n.discoverIds,this._dois=n.dois,this.results=n.items,this.loadingCards=!1,this.scrollToTop(),this.$emit("search-changed",{value:this.searchInput,type:"query-update"}),this._abortController&&this._abortController.abort(),this._abortController=new AbortController;const r=this._abortController.signal;this.perItemSearch(r,{count:0})})},filtersLoading:function(e){this.loadingCards=e},numberPerPageUpdate:function(e){this.numberPerPage=e,this.pageChange(1)},pageChange:function(e){this.start=(e-1)*this.numberPerPage,this.page=e,this.searchAlgolia(this.filters,this.searchInput,this.numberPerPage,this.page)},handleMissingData:function(e){let t=this.results.findIndex(n=>n.doi===e);this.results[t]&&(this.results[t].detailsReady=!0)},perItemSearch:function(e,t){if(10>t.count){const r=this._dois.shift();r&&(t.count++,this.callSciCrunch(this.envVars.API_LOCATION,{dois:[r]},e).then(a=>{a.numberOfHits===0?this.handleMissingData(r):this.resultsProcessing(a),this.$refs.content.style["overflow-y"]="scroll",t.count--,this.perItemSearch(e,t)}).catch(a=>{a.name!=="AbortError"&&(this.handleMissingData(r),t.count--,this.perItemSearch(e,t))}),this.perItemSearch(e,t))}},scrollToTop:function(){this.$refs.content&&this.$refs.content.scroll({top:0,behavior:"smooth"})},resetPageNavigation:function(){this.start=0,this.page=1},resultsProcessing:function(e){this.lastSearch=this.searchInput,e.results.length!==0&&e.results.forEach(t=>{let n=this.results.findIndex(r=>t.doi?t.doi.includes(r.doi):!1);Object.assign(this.results[n],t),Object.assign(this.results[n],{numberSamples:t.sampleSize?parseInt(t.sampleSize):0,numberSubjects:t.subjectSize?parseInt(t.subjectSize):0,updated:(t.updated&&t.updated.length)>0?t.updated[0].timestamp.split("T")[0]:"",url:t.uri[0],datasetId:t.dataset_identifier,datasetRevision:t.dataset_revision,datasetVersion:t.dataset_version,organs:t.organs&&t.organs.length>0?[...new Set(t.organs.map(r=>r.name))]:void 0,species:t.organisms&&t.organisms[0].species?[...new Set(t.organisms.map(r=>r.species?r.species.name:null))]:void 0,scaffolds:t["abi-scaffold-metadata-file"],thumbnails:t["abi-thumbnail"]?t["abi-thumbnail"]:t["abi-scaffold-thumbnail"],scaffoldViews:t["abi-scaffold-view-file"],videos:t.video,plots:t["abi-plot"],images:t["common-images"],contextualInformation:t["abi-contextual-information"].length>0?t["abi-contextual-information"]:void 0,segmentation:t["mbf-segmentation"],simulation:t["abi-simulation-file"],additionalLinks:t.additionalLinks,detailsReady:!0}),this.results[n]=this.results[n]})},createfilterParams:function(e){let t=new URLSearchParams;for(const n in e)Array.isArray(e[n])?e[n].forEach(r=>{t.append(n,r)}):t.append(n,e[n]);return t.toString()},callSciCrunch:function(e,t={},n){return new Promise((r,a)=>{let i=this.envVars.API_LOCATION+this.searchEndpoint+"?"+this.createfilterParams(t);fetch(i,{signal:n}).then(Sue).then(s=>s.json()).then(s=>r(s)).catch(s=>a(s))})},getAlgoliaFacets:async function(){return await this.algoliaClient.getAlgoliaFacets(_y)},searchHistorySearch:function(e){this.searchInput=e.search,this.filters=e.filters,this.openSearch(e.filters,e.search)}},mounted:function(){this.algoliaClient=o.markRaw(new R_(this.envVars.ALGOLIA_ID,this.envVars.ALGOLIA_KEY,this.envVars.PENNSIEVE_API_LOCATION)),this.algoliaClient.initIndex(this.envVars.ALGOLIA_INDEX),this.openSearch(this.filter,this.searchInput)},created:function(){this.searchEndpoint="dataset_info/using_multiple_dois/"}},Tue={class:"header"},Nue={class:"content scrollbar",ref:"content"},Oue={key:0,class:"error-feedback"};function Pue(e,t,n,r,a,i){const s=Wd,l=ar,d=M_,c=e_,u=J4,f=o2,h=Ob,m=ou;return o.openBlock(),o.createBlock(h,{"body-style":e.bodyStyle,class:"content-card"},{header:o.withCtx(()=>[o.createElementVNode("div",Tue,[o.createVNode(s,{class:"search-input",placeholder:"Search",modelValue:e.searchInput,"onUpdate:modelValue":t[0]||(t[0]=p=>e.searchInput=p),onKeyup:i.searchEvent,clearable:"",onClear:i.clearSearchClicked},null,8,["modelValue","onKeyup","onClear"]),o.createVNode(l,{type:"primary",class:"button",onClick:i.searchEvent,size:"large"},{default:o.withCtx(()=>[o.createTextVNode(" Search ")]),_:1},8,["onClick"])])]),default:o.withCtx(()=>[o.createVNode(d,{class:"filters",ref:"filtersRef",entry:i.filterEntry,envVars:n.envVars,onFilterResults:i.filterUpdate,onNumberPerPage:i.numberPerPageUpdate,onLoading:i.filtersLoading,onCascaderReady:i.cascaderReady},null,8,["entry","envVars","onFilterResults","onNumberPerPage","onLoading","onCascaderReady"]),o.createVNode(c,{ref:"searchHistory",onSearch:i.searchHistorySearch},null,8,["onSearch"]),o.withDirectives((o.openBlock(),o.createElementBlock("div",Nue,[e.results.length===0&&!e.loadingCards?(o.openBlock(),o.createElementBlock("div",Oue," No results found - Please change your search / filter criteria. ")):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.results,p=>(o.openBlock(),o.createElementBlock("div",{key:p.doi,class:"step-item"},[o.createVNode(u,{class:"dataset-card",entry:p,envVars:n.envVars,onMouseenter:g=>i.hoverChanged(p),onMouseleave:t[1]||(t[1]=g=>i.hoverChanged(void 0))},null,8,["entry","envVars","onMouseenter"])]))),128)),o.createVNode(f,{class:"pagination","current-page":e.page,"onUpdate:currentPage":t[2]||(t[2]=p=>e.page=p),"hide-on-single-page":"",large:"",layout:"prev, pager, next","page-size":e.numberPerPage,total:e.numberOfHits,onCurrentChange:i.pageChange},null,8,["current-page","page-size","total","onCurrentChange"])])),[[m,e.loadingCards]])]),_:1},8,["body-style"])}const z_=zr(Bue,[["render",Pue],["__scopeId","data-v-7574b21a"]]),$ue={name:"AnnotationTool",components:{AnnotationPopup:mne,Button:ar,CreateTooltipContent:wne,Col:Gb,ElIconDelete:sv,Icon:St,Row:Kb},props:{annotationEntry:{type:Object},createData:{type:Object,default:{}}},data:function(){return{ElIconDelete:o.shallowRef(sv)}}},Fue={class:"annotation-tool scrollbar"},Aue={key:1,class:"delete-container"};function Iue(e,t,n,r,a,i){const s=o.resolveComponent("CreateTooltipContent"),l=o.resolveComponent("annotation-popup"),d=Gb,c=ar,u=Kb;return o.openBlock(),o.createElementBlock("div",Fue,[o.withDirectives(o.createVNode(s,{createData:n.createData,onConfirmCreate:t[0]||(t[0]=f=>e.$emit("confirm-create",f)),onCancelCreate:t[1]||(t[1]=f=>e.$emit("cancel-create")),class:"create-tooltip-content"},null,8,["createData"]),[[o.vShow,n.createData&&n.createData.toBeConfirmed]]),n.annotationEntry&&(!n.createData||!n.createData.toBeConfirmed)?(o.openBlock(),o.createBlock(l,{key:0,class:"annotation-popup",annotationEntry:n.annotationEntry,onAnnotation:t[2]||(t[2]=f=>e.$emit("annotation",f))},null,8,["annotationEntry"])):o.createCommentVNode("",!0),n.createData&&n.createData.toBeDeleted?(o.openBlock(),o.createElementBlock("div",Aue,[o.createVNode(u,null,{default:o.withCtx(()=>[o.createVNode(d,{offset:1,span:6},{default:o.withCtx(()=>[o.createTextVNode("Delete this feature?")]),_:1}),o.createVNode(d,{offset:1,span:3},{default:o.withCtx(()=>[o.createVNode(c,{class:"delete-button",icon:e.ElIconDelete,onClick:t[3]||(t[3]=f=>e.$emit("confirm-delete"))},{default:o.withCtx(()=>[o.createTextVNode(" Delete ")]),_:1},8,["icon"])]),_:1}),o.createVNode(d,{offset:1,span:2},{default:o.withCtx(()=>[o.createVNode(c,{class:"delete-button",onClick:t[4]||(t[4]=f=>e.$emit("cancel-create"))},{default:o.withCtx(()=>[o.createTextVNode(" Dismiss ")]),_:1})]),_:1})]),_:1})])):o.createCommentVNode("",!0)])}const j_=zr($ue,[["render",Iue],["__scopeId","data-v-de83d649"]]),Due={name:"ExternalResourceCard",components:{Button:ar},props:{resources:{type:Array,default:()=>[]}},data:function(){return{pubmeds:[],pubmedIds:[],ElIconNotebook:o.shallowRef(Q6)}},methods:{capitalise:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},openUrl:function(e){Ut.emit("open-pubmed-url",e),window.open(e,"_blank")}}},Vue={class:"resource-container"};function Rue(e,t,n,r,a,i){const s=ar;return o.openBlock(),o.createElementBlock("div",Vue,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.resources,l=>(o.openBlock(),o.createElementBlock("div",{key:l.id,class:"resource"},[l.id==="pubmed"?(o.openBlock(),o.createBlock(s,{key:0,class:"button",id:"open-pubmed-button",icon:e.ElIconNotebook,onClick:d=>i.openUrl(l.url)},{default:o.withCtx(()=>[o.createTextVNode(" Open publications in PubMed ")]),_:2},1032,["icon","onClick"])):o.createCommentVNode("",!0)]))),128))])}const H_=zr(Due,[["render",Rue],["__scopeId","data-v-e726c314"]]),Lue=e=>e.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()),pd=function(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""},Mue=3e3,zue={name:"ConnectivityInfo",components:{Button:ar,Container:e9,Icon:St,ElIconArrowUp:I6,ElIconArrowDown:uh,ElIconWarning:dv,ExternalResourceCard:H_,CopyToClipboard:m4,ConnectivityGraph:Bde},props:{entry:{type:Object,default:()=>({destinations:[],origins:[],components:[],destinationsWithDatasets:[],originsWithDatasets:[],componentsWithDatasets:[],resource:void 0,featuresAlert:void 0})},envVars:{type:Object,default:()=>{}},availableAnatomyFacets:{type:Array,default:()=>[]}},data:function(){return{controller:void 0,activeSpecies:void 0,pubmedSearchUrl:"",loading:!1,activeView:"listView",facetList:[],showToolip:!1,showDetails:!1,originDescriptions:{motor:"is the location of the initial cell body of the circuit",sensory:"is the location of the initial cell body in the PNS circuit"},componentsWithDatasets:[],uberons:[{id:void 0,name:void 0}],connectivityError:null,timeoutID:void 0}},watch:{availableAnatomyFacets:{handler:function(e){this.convertFacetsToList(e)},immediate:!0,deep:!0}},computed:{updatedCopyContent:function(){return this.getUpdateCopyContent()},resources:function(){let e=[];return this.entry&&this.entry.hyperlinks&&(e=this.entry.hyperlinks),e},originDescription:function(){return this.entry&&this.entry.title&&this.entry.title.toLowerCase().includes("motor")?this.originDescriptions.motor:this.originDescriptions.sensory},provSpeciesDescription:function(){let e="Studied in";return this.entry.provenanceTaxonomyLabel.forEach(t=>{e+=` ${t},`}),e=e.slice(0,-1),e+=" species",e}},methods:{titleCase:function(e){return Lue(e)},capitalise:function(e){return pd(e)},openUrl:function(e){window.open(e,"_blank")},openAll:function(){Ut.emit("onConnectivityActionClick",{type:"Facets",labels:this.entry.componentsWithDatasets.map(e=>e.name.toLowerCase())})},openAxons:function(){Ut.emit("onConnectivityActionClick",{type:"Facets",labels:this.entry.destinationsWithDatasets.map(e=>e.name.toLowerCase())})},shouldShowExploreButton:function(e){for(let t=0;t{t.children?this.convertFacetsToList(t.children):this.facetList.push(t.label.toLowerCase())})},openDendrites:function(){Ut.emit("onConnectivityActionClick",{type:"Facets",labels:this.entry.originsWithDatasets.map(e=>e.name.toLowerCase())})},pubmedSearchUrlUpdate:function(e){this.pubmedSearchUrl=e},showConnectivity:function(e){const t=e.featureId||[];this.$emit("show-connectivity",t)},switchConnectivityView:function(e){if(this.activeView=e,e==="graphView"){const t=this.$refs.connectivityGraphRef;t&&t.$el&&t.$el.scrollIntoView({behavior:"smooth"})}},onTapNode:function(e){const t=e.map(n=>n.label).join(", ");this.toggleConnectivityTooltip(t,{show:!0})},getUpdateCopyContent:function(){var n,r,a,i,s;if(!this.entry)return"";const e=[];if(this.entry.title?e.push(`
${pd(this.entry.title)}
`):e.push(`
${this.entry.featureId}
`),(n=this.entry.provenanceTaxonomyLabel)!=null&&n.length&&e.push(`
${this.provSpeciesDescription}
`),(r=this.resources)!=null&&r.length){const l=[];this.resources.forEach(d=>{let c="";d.id==="pubmed"&&(c+="
PubMed URL:
",c+=` `,c+=``),l.push(c)}),e.push(l.join(`
`))}this.entry.paths&&e.push(`
${this.entry.paths}
`);function t(l,d,c=[]){let u=`
${l}
`;const f=[];d.forEach(m=>{let p=[];m.split(",").forEach(g=>{const v=c.find(y=>y.name===g.trim());v?p.push(`${pd(g)} (${v.id})`):p.push(`${pd(g)}`)}),f.push(p.join(","))});const h=f.map(m=>`
  • ${m}
  • `).join(` `);return u+=` `,u+=`
      ${h}
    `,u}if((a=this.entry.origins)!=null&&a.length){const l="Origin",d=this.entry.origins,c=this.entry.originsWithDatasets,u=t(l,d,c);e.push(u)}if((i=this.entry.components)!=null&&i.length){const l="Components",d=this.entry.components,c=this.entry.componentsWithDatasets,u=t(l,d,c);e.push(u)}if((s=this.entry.destinations)!=null&&s.length){const l="Destination",d=this.entry.destinations,c=this.entry.destinationsWithDatasets,u=t(l,d,c);e.push(u)}return e.join(`
    `)},toggleConnectivityTooltip:function(e,t){const n=[...this.entry.componentsWithDatasets,...this.entry.destinationsWithDatasets,...this.entry.originsWithDatasets],r=e.split(","),a=[];t.show&&r.forEach(i=>{const s=n.find(l=>l.name.toLowerCase().trim()===i.toLowerCase().trim());s&&a.push({id:s.id,label:s.name})}),this.$emit("connectivity-component-click",a)},getErrorConnectivities:function(e){const t=[...new Set(e)];let n="";return t.forEach((r,a)=>{const{label:i}=r;n+=a===0?pd(i):i,t.length>1&&(a+2===t.length?n+=" and ":a+1{this.connectivityError=null},Mue)}},mounted:function(){Ut.on("connectivity-graph-error",e=>{this.pushConnectivityError(e)})}},Ui=e=>(o.pushScopeId("data-v-50c6e446"),e=e(),o.popScopeId(),e),jue={key:0,class:"main"},Hue={class:"connectivity-info-title"},Uue={key:0,class:"block"},que={class:"title"},Wue={style:{"word-break":"keep-all"}},Kue={key:0,class:"subtitle"},Gue={key:1,class:"block"},Xue={class:"title"},Yue={key:2,class:"block"},Zue={class:"title-buttons"},Jue=Ui(()=>o.createElementVNode("span",null," Show connectivity on map ",-1)),Que={class:"content-container population-display"},efe=Ui(()=>o.createElementVNode("div",{class:"block attribute-title-container"},[o.createElementVNode("span",{class:"attribute-title"},"Population Display")],-1)),tfe={class:"block buttons-row"},nfe={key:0,class:"content-container content-container-connectivity"},rfe={key:0,class:"block"},ofe={class:"attribute-title-container"},afe=Ui(()=>o.createElementVNode("span",{class:"attribute-title"},"Origin",-1)),ife={style:{"word-break":"keep-all"}},sfe=Ui(()=>o.createElementVNode("i",null,"Origin",-1)),lfe=["origin-item-label","onMouseenter","onMouseleave"],cfe={key:1,class:"block"},dfe=Ui(()=>o.createElementVNode("div",{class:"attribute-title-container"},[o.createElementVNode("div",{class:"attribute-title"},"Components")],-1)),ufe=["component-item-label","onMouseenter","onMouseleave"],ffe={key:2,class:"block"},pfe={class:"attribute-title-container"},hfe=Ui(()=>o.createElementVNode("span",{class:"attribute-title"},"Destination",-1)),mfe=Ui(()=>o.createElementVNode("span",{style:{"word-break":"keep-all"}},[o.createElementVNode("i",null,"Destination"),o.createTextVNode(" is where the axons terminate ")],-1)),gfe=["destination-item-label","onMouseenter","onMouseleave"],yfe={class:"block"},vfe={key:3,class:"connectivity-error-container"},bfe={class:"connectivity-error"},wfe={key:0},xfe={key:1,class:"content-container"};function Cfe(e,t,n,r,a,i){const s=nP,l=St,d=Xh,c=H_,u=Y6,f=ar,h=o.resolveComponent("CopyToClipboard"),m=dv,p=o.resolveComponent("connectivity-graph"),g=ou;return n.entry?o.withDirectives((o.openBlock(),o.createElementBlock("div",jue,[o.createElementVNode("div",Hue,[o.createElementVNode("div",null,[n.entry.title?(o.openBlock(),o.createElementBlock("div",Uue,[o.createElementVNode("div",que,[o.createTextVNode(o.toDisplayString(i.capitalise(n.entry.title))+" ",1),n.entry.featuresAlert?(o.openBlock(),o.createBlock(d,{key:0,width:"250",trigger:"hover",teleported:!1,"popper-class":"popover-origin-help"},{reference:o.withCtx(()=>[o.createVNode(l,{class:"alert"},{default:o.withCtx(()=>[o.createVNode(s)]),_:1})]),default:o.withCtx(()=>[o.createElementVNode("span",Wue,o.toDisplayString(n.entry.featuresAlert),1)]),_:1})):o.createCommentVNode("",!0)]),n.entry.provenanceTaxonomyLabel&&n.entry.provenanceTaxonomyLabel.length>0?(o.openBlock(),o.createElementBlock("div",Kue,o.toDisplayString(i.provSpeciesDescription),1)):o.createCommentVNode("",!0)])):(o.openBlock(),o.createElementBlock("div",Gue,[o.createElementVNode("div",Xue,o.toDisplayString(n.entry.featureId),1)])),i.resources.length?(o.openBlock(),o.createElementBlock("div",Yue,[o.createVNode(c,{resources:i.resources},null,8,["resources"])])):o.createCommentVNode("",!0)]),o.createElementVNode("div",Zue,[o.createVNode(d,{width:"auto",trigger:"hover",teleported:!1,"popper-class":"popover-map-pin"},{reference:o.withCtx(()=>[o.createVNode(f,{class:"button-circle",circle:"",onClick:t[0]||(t[0]=v=>i.showConnectivity(n.entry))},{default:o.withCtx(()=>[o.createVNode(l,{color:"white"},{default:o.withCtx(()=>[o.createVNode(u)]),_:1})]),_:1})]),default:o.withCtx(()=>[Jue]),_:1}),o.createVNode(h,{content:i.updatedCopyContent},null,8,["content"])])]),o.createElementVNode("div",Que,[efe,o.createElementVNode("div",tfe,[o.createVNode(f,{class:o.normalizeClass(e.activeView==="listView"?"button":"el-button-secondary"),onClick:t[1]||(t[1]=v=>i.switchConnectivityView("listView"))},{default:o.withCtx(()=>[o.createTextVNode(" List view ")]),_:1},8,["class"]),o.createVNode(f,{class:o.normalizeClass(e.activeView==="graphView"?"button":"el-button-secondary"),onClick:t[2]||(t[2]=v=>i.switchConnectivityView("graphView"))},{default:o.withCtx(()=>[o.createTextVNode(" Graph view ")]),_:1},8,["class"])])]),e.activeView==="listView"?(o.openBlock(),o.createElementBlock("div",nfe,[o.createTextVNode(o.toDisplayString(n.entry.paths)+" ",1),n.entry.origins&&n.entry.origins.length>0?(o.openBlock(),o.createElementBlock("div",rfe,[o.createElementVNode("div",ofe,[afe,o.createVNode(d,{width:"250",trigger:"hover",teleported:!1,"popper-class":"popover-origin-help"},{reference:o.withCtx(()=>[o.createVNode(l,{class:"info"},{default:o.withCtx(()=>[o.createVNode(m)]),_:1})]),default:o.withCtx(()=>[o.createElementVNode("span",ife,[sfe,o.createTextVNode(" "+o.toDisplayString(i.originDescription),1)])]),_:1})]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.entry.origins,(v,y)=>(o.openBlock(),o.createElementBlock("div",{class:"attribute-content","origin-item-label":v,key:v,onMouseenter:b=>i.toggleConnectivityTooltip(v,{show:!0}),onMouseleave:b=>i.toggleConnectivityTooltip(v,{show:!1})},o.toDisplayString(i.capitalise(v)),41,lfe))),128)),o.withDirectives(o.createVNode(f,{class:"button",id:"open-dendrites-button",onClick:i.openDendrites},{default:o.withCtx(()=>[o.createTextVNode(" Explore origin data ")]),_:1},8,["onClick"]),[[o.vShow,n.entry.originsWithDatasets&&n.entry.originsWithDatasets.length>0&&i.shouldShowExploreButton(n.entry.originsWithDatasets)]])])):o.createCommentVNode("",!0),n.entry.components&&n.entry.components.length>0?(o.openBlock(),o.createElementBlock("div",cfe,[dfe,(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.entry.components,(v,y)=>(o.openBlock(),o.createElementBlock("div",{class:"attribute-content","component-item-label":v,key:v,onMouseenter:b=>i.toggleConnectivityTooltip(v,{show:!0}),onMouseleave:b=>i.toggleConnectivityTooltip(v,{show:!1})},o.toDisplayString(i.capitalise(v)),41,ufe))),128))])):o.createCommentVNode("",!0),n.entry.destinations&&n.entry.destinations.length>0?(o.openBlock(),o.createElementBlock("div",ffe,[o.createElementVNode("div",pfe,[hfe,o.createVNode(d,{width:"250",trigger:"hover",teleported:!1,"popper-class":"popover-origin-help"},{reference:o.withCtx(()=>[o.createVNode(l,{class:"info"},{default:o.withCtx(()=>[o.createVNode(m)]),_:1})]),default:o.withCtx(()=>[mfe]),_:1})]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.entry.destinations,(v,y)=>(o.openBlock(),o.createElementBlock("div",{class:"attribute-content","destination-item-label":v,key:v,onMouseenter:b=>i.toggleConnectivityTooltip(v,{show:!0}),onMouseleave:b=>i.toggleConnectivityTooltip(v,{show:!1})},o.toDisplayString(i.capitalise(v)),41,gfe))),128)),o.withDirectives(o.createVNode(f,{class:"button",onClick:i.openAxons},{default:o.withCtx(()=>[o.createTextVNode(" Explore destination data ")]),_:1},8,["onClick"]),[[o.vShow,n.entry.destinationsWithDatasets&&n.entry.destinationsWithDatasets.length>0&&i.shouldShowExploreButton(n.entry.destinationsWithDatasets)]])])):o.createCommentVNode("",!0),o.withDirectives(o.createElementVNode("div",yfe,[o.createVNode(f,{class:"button",onClick:i.openAll},{default:o.withCtx(()=>[o.createTextVNode(" Search for data on components ")]),_:1},8,["onClick"])],512),[[o.vShow,n.entry.componentsWithDatasets&&n.entry.componentsWithDatasets.length>0&&i.shouldShowExploreButton(n.entry.componentsWithDatasets)]]),e.connectivityError?(o.openBlock(),o.createElementBlock("div",vfe,[o.createElementVNode("div",bfe,[e.connectivityError.errorConnectivities?(o.openBlock(),o.createElementBlock("strong",wfe,o.toDisplayString(e.connectivityError.errorConnectivities),1)):o.createCommentVNode("",!0),o.createTextVNode(" "+o.toDisplayString(e.connectivityError.errorMessage),1)])])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),e.activeView==="graphView"?(o.openBlock(),o.createElementBlock("div",xfe,[o.createVNode(p,{entry:n.entry.featureId[0],mapServer:n.envVars.FLATMAPAPI_LOCATION,onTapNode:i.onTapNode,ref:"connectivityGraphRef"},null,8,["entry","mapServer","onTapNode"])])):o.createCommentVNode("",!0)])),[[g,e.loading]]):o.createCommentVNode("",!0)}const U_=zr(zue,[["render",Cfe],["__scopeId","data-v-50c6e446"]]),kfe={name:"Tabs",props:{tabTitles:{type:Array,default:()=>[]},activeId:{type:Number,default:1}},methods:{titleClicked:function(e,t){this.$emit("titleClicked",{id:e,type:t})},tabClose:function(e){this.$emit("tab-close",e)}}},Efe=e=>(o.pushScopeId("data-v-ed1ce6dc"),e=e(),o.popScopeId(),e),Sfe={class:"tab-container"},_fe=["onClick"],Bfe={class:"title-text"},Tfe=Efe(()=>o.createElementVNode("span",{class:"visually-hidden"},"Close",-1));function Nfe(e,t,n,r,a,i){const s=ar;return o.openBlock(),o.createElementBlock("div",Sfe,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.tabTitles,l=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["title",{"active-tab":l.id==n.activeId}]),key:l.id},[o.createElementVNode("div",{class:o.normalizeClass(["title-text-table",{highlightText:l.id==n.activeId}]),onClick:d=>i.titleClicked(l.id,l.type)},[o.createElementVNode("div",Bfe,o.toDisplayString(l.title),1)],10,_fe),l.id>1?(o.openBlock(),o.createBlock(s,{key:0,onClick:d=>i.tabClose(l.id),class:"button-tab-close","aria-label":"Close"},{default:o.withCtx(()=>[o.createTextVNode(" × "),Tfe]),_:2},1032,["onClick"])):o.createCommentVNode("",!0)],2))),128))])}const q_=zr(kfe,[["render",Nfe],["__scopeId","data-v-ed1ce6dc"]]),Ofe={components:{SidebarContent:z_,Tabs:q_,ElIconArrowLeft:fh,ElIconArrowRight:Fd,Drawer:qh,Icon:St,ConnectivityInfo:U_,AnnotationTool:j_},name:"SideBar",props:{visible:{type:Boolean,default:!1},envVars:{type:Object,default:()=>{}},tabs:{type:Array,default:()=>[{id:1,title:"Search",type:"search"},{id:2,title:"Connectivity",type:"connectivity"},{id:3,title:"Annotation",type:"annotation"}]},activeTabId:{type:Number,default:1},openAtStart:{type:Boolean,default:!1},connectivityInfo:{type:Object,default:null},annotationEntry:{type:Object,default:null},createData:{type:Object,default:{toBeConfirmed:!1,points:[],shape:"",x:0,y:0}}},data:function(){return{drawerOpen:!1,availableAnatomyFacets:[]}},methods:{hoverChanged:function(e){this.$emit("hover-changed",e)},showConnectivity:function(e){this.$emit("show-connectivity",e)},onConnectivityComponentClick:function(e){this.$emit("connectivity-component-click",e)},searchChanged:function(e,t){this.$emit("search-changed",{...t,id:e})},close:function(){this.drawerOpen=!1},toggleDrawer:function(){this.drawerOpen=!this.drawerOpen},openSearch:function(e,t){this.drawerOpen=!0,this.$nextTick(()=>{this.getSearchTabRefById(1).openSearch(e,t)})},getTabByIdAndType:function(e,t){const n=e||this.activeTabId,r=t||"search",a=this.tabs.find(s=>s.id===n&&s.type===r),i=this.tabs[0];return a||i},getTabRefId:function(e,t){let n="searchTab_";t==="connectivity"?n="connectivityTab_":t==="annotation"&&(n="annotationTab_");const r=this.getTabByIdAndType(e,t);return n+r.id},getSearchTabRefById:function(e){const t=e||1,n=this.getTabRefId(t,"search");return this.$refs[n][0]},addFilter:function(e){this.drawerOpen=!0,e.AND=!0,this.$nextTick(()=>{this.getSearchTabRefById(1).addFilter(e)})},openNeuronSearch:function(e){this.drawerOpen=!0,this.$nextTick(()=>{this.getSearchTabRefById(1).openSearch("",void 0,"scicrunch-query-string/",{field:"*organ.curie",curie:e})})},getAlgoliaFacets:async function(){return await this.getSearchTabRefById(1).getAlgoliaFacets()},setDrawerOpen:function(e=!0){this.drawerOpen=e},tabClicked:function({id:e,type:t}){this.$emit("tabClicked",{id:e,type:t})},tabClose:function(e){this.$emit("tab-close",e)},updateConnectivityGraphError:function(e){Ut.emit("connectivity-graph-error",e)}},computed:{activeTabs:function(){const e=[{id:1,title:"Search",type:"search"}];return this.connectivityInfo&&e.push({id:2,title:"Connectivity",type:"connectivity"}),this.annotationEntry&&Object.keys(this.annotationEntry).length>0&&e.push({id:3,title:"Annotation",type:"annotation"}),e}},created:function(){this.drawerOpen=this.openAtStart},mounted:function(){Ut.on("PopoverActionClick",e=>{this.$emit("actionClick",e)}),Ut.on("number-of-datasets-for-anatomies",e=>{this.$emit("number-of-datasets-for-anatomies",e)}),Ut.on("anatomy-in-datasets",e=>{this.$emit("anatomy-in-datasets",e)}),Ut.on("contextUpdate",e=>{this.$emit("contextUpdate",e)}),Ut.on("datalink-clicked",e=>{this.$emit("datalink-clicked",e)}),Ut.on("onConnectivityActionClick",e=>{this.tabClicked({id:1,type:"search"}),this.$emit("actionClick",e)}),Ut.on("available-facets",e=>{this.availableAnatomyFacets=e.find(t=>t.label==="Anatomical Structure").children})}},Pfe={ref:"container"},$fe={class:"box-card"},Ffe={class:"sidebar-container"};function Afe(e,t,n,r,a,i){const s=fh,l=St,d=Fd,c=q_,u=U_,f=j_,h=z_,m=qh;return o.openBlock(),o.createElementBlock("div",Pfe,[e.drawerOpen?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,onClick:t[0]||(t[0]=(...p)=>i.toggleDrawer&&i.toggleDrawer(...p)),class:"open-tab"},[o.createVNode(l,null,{default:o.withCtx(()=>[o.createVNode(s)]),_:1})])),o.createVNode(m,{class:"side-bar my-drawer",modelValue:e.drawerOpen,"onUpdate:modelValue":t[7]||(t[7]=p=>e.drawerOpen=p),teleported:!1,"modal-append-to-body":!1,size:"584","with-header":!1,wrapperClosable:!1,modal:!1,"modal-class":"sidebar-body","z-index":10,"lock-scroll":!1},{default:o.withCtx(()=>[o.createElementVNode("div",$fe,[e.drawerOpen?(o.openBlock(),o.createElementBlock("div",{key:0,onClick:t[1]||(t[1]=(...p)=>i.close&&i.close(...p)),class:"close-tab"},[o.createVNode(l,null,{default:o.withCtx(()=>[o.createVNode(d)]),_:1})])):o.createCommentVNode("",!0),o.createElementVNode("div",Ffe,[i.activeTabs.length>1?(o.openBlock(),o.createBlock(c,{key:0,tabTitles:i.activeTabs,activeId:n.activeTabId,onTitleClicked:i.tabClicked,onTabClose:i.tabClose},null,8,["tabTitles","activeId","onTitleClicked","onTabClose"])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.tabs,p=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:"tab.id"},[p.type==="connectivity"&&n.connectivityInfo?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[p.id===n.activeTabId?(o.openBlock(),o.createBlock(u,{key:0,entry:n.connectivityInfo,availableAnatomyFacets:e.availableAnatomyFacets,envVars:n.envVars,ref_for:!0,ref:"connectivityTab_"+p.id,onShowConnectivity:i.showConnectivity,onConnectivityComponentClick:i.onConnectivityComponentClick},null,8,["entry","availableAnatomyFacets","envVars","onShowConnectivity","onConnectivityComponentClick"])):o.createCommentVNode("",!0)],64)):p.type==="annotation"?o.withDirectives((o.openBlock(),o.createBlock(f,{key:1,ref_for:!0,ref:"annotationTab_"+p.id,annotationEntry:n.annotationEntry,createData:n.createData,onAnnotation:t[2]||(t[2]=g=>e.$emit("annotation-submitted",g)),onConfirmCreate:t[3]||(t[3]=g=>e.$emit("confirm-create",g)),onCancelCreate:t[4]||(t[4]=g=>e.$emit("cancel-create")),onConfirmDelete:t[5]||(t[5]=g=>e.$emit("confirm-delete",g))},null,8,["annotationEntry","createData"])),[[o.vShow,p.id===n.activeTabId]]):o.withDirectives((o.openBlock(),o.createBlock(h,{key:2,class:"sidebar-content-container",contextCardEntry:p.contextCard,envVars:n.envVars,ref_for:!0,ref:"searchTab_"+p.id,onSearchChanged:g=>i.searchChanged(p.id,g),onHoverChanged:t[6]||(t[6]=g=>i.hoverChanged(g))},null,8,["contextCardEntry","envVars","onSearchChanged"])),[[o.vShow,p.id===n.activeTabId]])],64))),128))])])]),_:1},8,["modelValue"])],512)}const Ife=zr(Ofe,[["render",Afe],["__scopeId","data-v-319adc7d"]]);mt.SideBar=Ife,Object.defineProperty(mt,Symbol.toStringTag,{value:"Module"})});