@abi-software/flatmapvuer 1.13.4-simulation.0 → 1.13.4-simulation.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,15 @@
1
- (function(z,Rt){typeof exports=="object"&&typeof module<"u"?Rt(exports,require("https://cdn.jsdelivr.net/npm/@abi-software/flatmap-viewer@4.6.4/+esm"),require("@element-plus/icons-vue"),require("vue"),require("@abi-software/svg-sprite"),require("@abi-software/map-utilities"),require("@abi-software/sparc-annotation"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","https://cdn.jsdelivr.net/npm/@abi-software/flatmap-viewer@4.6.4/+esm","@element-plus/icons-vue","vue","@abi-software/svg-sprite","@abi-software/map-utilities","@abi-software/sparc-annotation","pinia"],Rt):(z=typeof globalThis<"u"?globalThis:z||self,Rt(z.FlatmapVuer={},z.flatmap,z["@element-plus/icons-vue"],z.Vue,z["@abi-software/svg-sprite"],z["@abi-software/map-utilities"],z["@abi-software/sparc-annotation"],z.pinia))})(this,function(z,Rt,W,n,vi,ut,Ns,Si){"use strict";function _s(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const i=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,i.get?i:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const ki=_s(Rt),Ae=(e,t,{checkForDefaultPrevented:o=!0}={})=>r=>{const a=e==null?void 0:e(r);if(o===!1||!a)return t==null?void 0:t(r)};var Ei;const K=typeof window<"u",Ls=e=>typeof e=="string",Ii=()=>{},so=K&&((Ei=window==null?void 0:window.navigator)==null?void 0:Ei.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function lo(e){return typeof e=="function"?e():n.unref(e)}function Ps(e){return e}function Ft(e){return n.getCurrentScope()?(n.onScopeDispose(e),!0):!1}function Vs(e,t=!0){n.getCurrentInstance()?n.onMounted(e):t?e():n.nextTick(e)}function Ti(e,t,o={}){const{immediate:i=!0}=o,r=n.ref(!1);let a=null;function s(){a&&(clearTimeout(a),a=null)}function l(){r.value=!1,s()}function c(...d){s(),r.value=!0,a=setTimeout(()=>{r.value=!1,a=null,e(...d)},lo(t))}return i&&(r.value=!0,K&&c()),Ft(l),{isPending:n.readonly(r),start:c,stop:l}}function Oe(e){var t;const o=lo(e);return(t=o==null?void 0:o.$el)!=null?t:o}const gn=K?window:void 0;function he(...e){let t,o,i,r;if(Ls(e[0])||Array.isArray(e[0])?([o,i,r]=e,t=gn):[t,o,i,r]=e,!t)return Ii;Array.isArray(o)||(o=[o]),Array.isArray(i)||(i=[i]);const a=[],s=()=>{a.forEach(f=>f()),a.length=0},l=(f,u,p,g)=>(f.addEventListener(u,p,g),()=>f.removeEventListener(u,p,g)),c=n.watch(()=>[Oe(t),lo(r)],([f,u])=>{s(),f&&a.push(...o.flatMap(p=>i.map(g=>l(f,p,g,u))))},{immediate:!0,flush:"post"}),d=()=>{c(),s()};return Ft(d),d}let Ai=!1;function Rs(e,t,o={}){const{window:i=gn,ignore:r=[],capture:a=!0,detectIframe:s=!1}=o;if(!i)return;so&&!Ai&&(Ai=!0,Array.from(i.document.body.children).forEach(p=>p.addEventListener("click",Ii)));let l=!0;const c=p=>r.some(g=>{if(typeof g=="string")return Array.from(i.document.querySelectorAll(g)).some(h=>h===p.target||p.composedPath().includes(h));{const h=Oe(g);return h&&(p.target===h||p.composedPath().includes(h))}}),f=[he(i,"click",p=>{const g=Oe(e);if(!(!g||g===p.target||p.composedPath().includes(g))){if(p.detail===0&&(l=!c(p)),!l){l=!0;return}t(p)}},{passive:!0,capture:a}),he(i,"pointerdown",p=>{const g=Oe(e);g&&(l=!p.composedPath().includes(g)&&!c(p))},{passive:!0}),s&&he(i,"blur",p=>{var g;const h=Oe(e);((g=i.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(h!=null&&h.contains(i.document.activeElement))&&t(p)})].filter(Boolean);return()=>f.forEach(p=>p())}function Oi(e,t=!1){const o=n.ref(),i=()=>o.value=!!e();return i(),Vs(i,t),o}const Mi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},xi="__vueuse_ssr_handlers__";Mi[xi]=Mi[xi]||{};var Bi=Object.getOwnPropertySymbols,Fs=Object.prototype.hasOwnProperty,Ds=Object.prototype.propertyIsEnumerable,$s=(e,t)=>{var o={};for(var i in e)Fs.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(e!=null&&Bi)for(var i of Bi(e))t.indexOf(i)<0&&Ds.call(e,i)&&(o[i]=e[i]);return o};function Re(e,t,o={}){const i=o,{window:r=gn}=i,a=$s(i,["window"]);let s;const l=Oi(()=>r&&"ResizeObserver"in r),c=()=>{s&&(s.disconnect(),s=void 0)},d=n.watch(()=>Oe(e),u=>{c(),l.value&&r&&u&&(s=new ResizeObserver(t),s.observe(u,a))},{immediate:!0,flush:"post"}),f=()=>{c(),d()};return Ft(f),{isSupported:l,stop:f}}var Ni=Object.getOwnPropertySymbols,zs=Object.prototype.hasOwnProperty,js=Object.prototype.propertyIsEnumerable,Hs=(e,t)=>{var o={};for(var i in e)zs.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(e!=null&&Ni)for(var i of Ni(e))t.indexOf(i)<0&&js.call(e,i)&&(o[i]=e[i]);return o};function Ks(e,t,o={}){const i=o,{window:r=gn}=i,a=Hs(i,["window"]);let s;const l=Oi(()=>r&&"MutationObserver"in r),c=()=>{s&&(s.disconnect(),s=void 0)},d=n.watch(()=>Oe(e),u=>{c(),l.value&&r&&u&&(s=new MutationObserver(t),s.observe(u,a))},{immediate:!0}),f=()=>{c(),d()};return Ft(f),{isSupported:l,stop:f}}var _i;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(_i||(_i={}));var Us=Object.defineProperty,Li=Object.getOwnPropertySymbols,Ws=Object.prototype.hasOwnProperty,qs=Object.prototype.propertyIsEnumerable,Pi=(e,t,o)=>t in e?Us(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Gs=(e,t)=>{for(var o in t||(t={}))Ws.call(t,o)&&Pi(e,o,t[o]);if(Li)for(var o of Li(t))qs.call(t,o)&&Pi(e,o,t[o]);return e};Gs({linear:Ps},{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]});/**
1
+ (function(z,Rt){typeof exports=="object"&&typeof module<"u"?Rt(exports,require("https://cdn.jsdelivr.net/npm/@abi-software/flatmap-viewer@4.7.5/+esm"),require("@element-plus/icons-vue"),require("vue"),require("@abi-software/svg-sprite"),require("@abi-software/map-utilities"),require("@abi-software/sparc-annotation"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","https://cdn.jsdelivr.net/npm/@abi-software/flatmap-viewer@4.7.5/+esm","@element-plus/icons-vue","vue","@abi-software/svg-sprite","@abi-software/map-utilities","@abi-software/sparc-annotation","pinia"],Rt):(z=typeof globalThis<"u"?globalThis:z||self,Rt(z.FlatmapVuer={},z.flatmap,z["@element-plus/icons-vue"],z.Vue,z["@abi-software/svg-sprite"],z["@abi-software/map-utilities"],z["@abi-software/sparc-annotation"],z.pinia))})(this,function(z,Rt,W,n,vi,ut,_s,Si){"use strict";function Ls(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const i=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,i.get?i:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const ki=Ls(Rt),Ae=(e,t,{checkForDefaultPrevented:o=!0}={})=>a=>{const r=e==null?void 0:e(a);if(o===!1||!r)return t==null?void 0:t(a)};var Ei;const K=typeof window<"u",Ps=e=>typeof e=="string",Ii=()=>{},so=K&&((Ei=window==null?void 0:window.navigator)==null?void 0:Ei.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function lo(e){return typeof e=="function"?e():n.unref(e)}function Vs(e){return e}function Dt(e){return n.getCurrentScope()?(n.onScopeDispose(e),!0):!1}function Rs(e,t=!0){n.getCurrentInstance()?n.onMounted(e):t?e():n.nextTick(e)}function Ti(e,t,o={}){const{immediate:i=!0}=o,a=n.ref(!1);let r=null;function s(){r&&(clearTimeout(r),r=null)}function l(){a.value=!1,s()}function c(...d){s(),a.value=!0,r=setTimeout(()=>{a.value=!1,r=null,e(...d)},lo(t))}return i&&(a.value=!0,K&&c()),Dt(l),{isPending:n.readonly(a),start:c,stop:l}}function Oe(e){var t;const o=lo(e);return(t=o==null?void 0:o.$el)!=null?t:o}const gn=K?window:void 0;function he(...e){let t,o,i,a;if(Ps(e[0])||Array.isArray(e[0])?([o,i,a]=e,t=gn):[t,o,i,a]=e,!t)return Ii;Array.isArray(o)||(o=[o]),Array.isArray(i)||(i=[i]);const r=[],s=()=>{r.forEach(f=>f()),r.length=0},l=(f,u,p,g)=>(f.addEventListener(u,p,g),()=>f.removeEventListener(u,p,g)),c=n.watch(()=>[Oe(t),lo(a)],([f,u])=>{s(),f&&r.push(...o.flatMap(p=>i.map(g=>l(f,p,g,u))))},{immediate:!0,flush:"post"}),d=()=>{c(),s()};return Dt(d),d}let Ai=!1;function Ds(e,t,o={}){const{window:i=gn,ignore:a=[],capture:r=!0,detectIframe:s=!1}=o;if(!i)return;so&&!Ai&&(Ai=!0,Array.from(i.document.body.children).forEach(p=>p.addEventListener("click",Ii)));let l=!0;const c=p=>a.some(g=>{if(typeof g=="string")return Array.from(i.document.querySelectorAll(g)).some(h=>h===p.target||p.composedPath().includes(h));{const h=Oe(g);return h&&(p.target===h||p.composedPath().includes(h))}}),f=[he(i,"click",p=>{const g=Oe(e);if(!(!g||g===p.target||p.composedPath().includes(g))){if(p.detail===0&&(l=!c(p)),!l){l=!0;return}t(p)}},{passive:!0,capture:r}),he(i,"pointerdown",p=>{const g=Oe(e);g&&(l=!p.composedPath().includes(g)&&!c(p))},{passive:!0}),s&&he(i,"blur",p=>{var g;const h=Oe(e);((g=i.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(h!=null&&h.contains(i.document.activeElement))&&t(p)})].filter(Boolean);return()=>f.forEach(p=>p())}function Oi(e,t=!1){const o=n.ref(),i=()=>o.value=!!e();return i(),Rs(i,t),o}const Mi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Bi="__vueuse_ssr_handlers__";Mi[Bi]=Mi[Bi]||{};var xi=Object.getOwnPropertySymbols,Fs=Object.prototype.hasOwnProperty,$s=Object.prototype.propertyIsEnumerable,zs=(e,t)=>{var o={};for(var i in e)Fs.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(e!=null&&xi)for(var i of xi(e))t.indexOf(i)<0&&$s.call(e,i)&&(o[i]=e[i]);return o};function Re(e,t,o={}){const i=o,{window:a=gn}=i,r=zs(i,["window"]);let s;const l=Oi(()=>a&&"ResizeObserver"in a),c=()=>{s&&(s.disconnect(),s=void 0)},d=n.watch(()=>Oe(e),u=>{c(),l.value&&a&&u&&(s=new ResizeObserver(t),s.observe(u,r))},{immediate:!0,flush:"post"}),f=()=>{c(),d()};return Dt(f),{isSupported:l,stop:f}}var Ni=Object.getOwnPropertySymbols,js=Object.prototype.hasOwnProperty,Hs=Object.prototype.propertyIsEnumerable,Ks=(e,t)=>{var o={};for(var i in e)js.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(e!=null&&Ni)for(var i of Ni(e))t.indexOf(i)<0&&Hs.call(e,i)&&(o[i]=e[i]);return o};function Us(e,t,o={}){const i=o,{window:a=gn}=i,r=Ks(i,["window"]);let s;const l=Oi(()=>a&&"MutationObserver"in a),c=()=>{s&&(s.disconnect(),s=void 0)},d=n.watch(()=>Oe(e),u=>{c(),l.value&&a&&u&&(s=new MutationObserver(t),s.observe(u,r))},{immediate:!0}),f=()=>{c(),d()};return Dt(f),{isSupported:l,stop:f}}var _i;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(_i||(_i={}));var Ws=Object.defineProperty,Li=Object.getOwnPropertySymbols,qs=Object.prototype.hasOwnProperty,Gs=Object.prototype.propertyIsEnumerable,Pi=(e,t,o)=>t in e?Ws(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Js=(e,t)=>{for(var o in t||(t={}))qs.call(t,o)&&Pi(e,o,t[o]);if(Li)for(var o of Li(t))Gs.call(t,o)&&Pi(e,o,t[o]);return e};Js({linear:Vs},{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]});/**
2
2
  * @vue/shared v3.5.13
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const Je=()=>{},Js=Object.prototype.hasOwnProperty,Vi=(e,t)=>Js.call(e,t),ee=Array.isArray,Q=e=>typeof e=="function",me=e=>typeof e=="string",te=e=>e!==null&&typeof e=="object",Ys=Object.prototype.toString,Zs=e=>Ys.call(e),co=e=>Zs(e).slice(8,-1),Ri=e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))},Qs=/-(\w)/g,Xs=Ri(e=>e.replace(Qs,(t,o)=>o?o.toUpperCase():"")),el=/\B([A-Z])/g,tl=Ri(e=>e.replace(el,"-$1").toLowerCase());var Fi=typeof global=="object"&&global&&global.Object===Object&&global,nl=typeof self=="object"&&self&&self.Object===Object&&self,Ce=Fi||nl||Function("return this")(),ve=Ce.Symbol,Di=Object.prototype,ol=Di.hasOwnProperty,il=Di.toString,Dt=ve?ve.toStringTag:void 0;function rl(e){var t=ol.call(e,Dt),o=e[Dt];try{e[Dt]=void 0;var i=!0}catch{}var r=il.call(e);return i&&(t?e[Dt]=o:delete e[Dt]),r}var al=Object.prototype,sl=al.toString;function ll(e){return sl.call(e)}var cl="[object Null]",dl="[object Undefined]",$i=ve?ve.toStringTag:void 0;function pt(e){return e==null?e===void 0?dl:cl:$i&&$i in Object(e)?rl(e):ll(e)}function ht(e){return e!=null&&typeof e=="object"}var fl="[object Symbol]";function yn(e){return typeof e=="symbol"||ht(e)&&pt(e)==fl}function ul(e,t){for(var o=-1,i=e==null?0:e.length,r=Array(i);++o<i;)r[o]=t(e[o],o,e);return r}var ge=Array.isArray,zi=ve?ve.prototype:void 0,ji=zi?zi.toString:void 0;function Hi(e){if(typeof e=="string")return e;if(ge(e))return ul(e,Hi)+"";if(yn(e))return ji?ji.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var pl=/\s/;function hl(e){for(var t=e.length;t--&&pl.test(e.charAt(t)););return t}var ml=/^\s+/;function gl(e){return e&&e.slice(0,hl(e)+1).replace(ml,"")}function Fe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ki=NaN,yl=/^[-+]0x[0-9a-f]+$/i,bl=/^0b[01]+$/i,wl=/^0o[0-7]+$/i,Cl=parseInt;function Ui(e){if(typeof e=="number")return e;if(yn(e))return Ki;if(Fe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Fe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=gl(e);var o=bl.test(e);return o||wl.test(e)?Cl(e.slice(2),o?2:8):yl.test(e)?Ki:+e}function Wi(e){return e}var vl="[object AsyncFunction]",Sl="[object Function]",kl="[object GeneratorFunction]",El="[object Proxy]";function qi(e){if(!Fe(e))return!1;var t=pt(e);return t==Sl||t==kl||t==vl||t==El}var fo=Ce["__core-js_shared__"],Gi=function(){var e=/[^.]+$/.exec(fo&&fo.keys&&fo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Il(e){return!!Gi&&Gi in e}var Tl=Function.prototype,Al=Tl.toString;function Ye(e){if(e!=null){try{return Al.call(e)}catch{}try{return e+""}catch{}}return""}var Ol=/[\\^$.*+?()[\]{}|]/g,Ml=/^\[object .+?Constructor\]$/,xl=Function.prototype,Bl=Object.prototype,Nl=xl.toString,_l=Bl.hasOwnProperty,Ll=RegExp("^"+Nl.call(_l).replace(Ol,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Pl(e){if(!Fe(e)||Il(e))return!1;var t=qi(e)?Ll:Ml;return t.test(Ye(e))}function Vl(e,t){return e==null?void 0:e[t]}function Ze(e,t){var o=Vl(e,t);return Pl(o)?o:void 0}var uo=Ze(Ce,"WeakMap");function Rl(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}var Fl=800,Dl=16,$l=Date.now;function zl(e){var t=0,o=0;return function(){var i=$l(),r=Dl-(i-o);if(o=i,r>0){if(++t>=Fl)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function jl(e){return function(){return e}}var bn=function(){try{var e=Ze(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Hl=bn?function(e,t){return bn(e,"toString",{configurable:!0,enumerable:!1,value:jl(t),writable:!0})}:Wi,Kl=zl(Hl);function Ul(e,t,o,i){e.length;for(var r=o+1;r--;)if(t(e[r],r,e))return r;return-1}var Wl=9007199254740991,ql=/^(?:0|[1-9]\d*)$/;function po(e,t){var o=typeof e;return t=t??Wl,!!t&&(o=="number"||o!="symbol"&&ql.test(e))&&e>-1&&e%1==0&&e<t}function Ji(e,t,o){t=="__proto__"&&bn?bn(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function ho(e,t){return e===t||e!==e&&t!==t}var Gl=Object.prototype,Jl=Gl.hasOwnProperty;function Yl(e,t,o){var i=e[t];(!(Jl.call(e,t)&&ho(i,o))||o===void 0&&!(t in e))&&Ji(e,t,o)}var Yi=Math.max;function Zl(e,t,o){return t=Yi(t===void 0?e.length-1:t,0),function(){for(var i=arguments,r=-1,a=Yi(i.length-t,0),s=Array(a);++r<a;)s[r]=i[t+r];r=-1;for(var l=Array(t+1);++r<t;)l[r]=i[r];return l[t]=o(s),Rl(e,this,l)}}var Ql=9007199254740991;function mo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ql}function Xl(e){return e!=null&&mo(e.length)&&!qi(e)}var ec=Object.prototype;function tc(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||ec;return e===o}function nc(e,t){for(var o=-1,i=Array(e);++o<e;)i[o]=t(o);return i}var oc="[object Arguments]";function Zi(e){return ht(e)&&pt(e)==oc}var Qi=Object.prototype,ic=Qi.hasOwnProperty,rc=Qi.propertyIsEnumerable,go=Zi(function(){return arguments}())?Zi:function(e){return ht(e)&&ic.call(e,"callee")&&!rc.call(e,"callee")};function ac(){return!1}var Xi=typeof z=="object"&&z&&!z.nodeType&&z,er=Xi&&typeof module=="object"&&module&&!module.nodeType&&module,sc=er&&er.exports===Xi,tr=sc?Ce.Buffer:void 0,lc=tr?tr.isBuffer:void 0,yo=lc||ac,cc="[object Arguments]",dc="[object Array]",fc="[object Boolean]",uc="[object Date]",pc="[object Error]",hc="[object Function]",mc="[object Map]",gc="[object Number]",yc="[object Object]",bc="[object RegExp]",wc="[object Set]",Cc="[object String]",vc="[object WeakMap]",Sc="[object ArrayBuffer]",kc="[object DataView]",Ec="[object Float32Array]",Ic="[object Float64Array]",Tc="[object Int8Array]",Ac="[object Int16Array]",Oc="[object Int32Array]",Mc="[object Uint8Array]",xc="[object Uint8ClampedArray]",Bc="[object Uint16Array]",Nc="[object Uint32Array]",H={};H[Ec]=H[Ic]=H[Tc]=H[Ac]=H[Oc]=H[Mc]=H[xc]=H[Bc]=H[Nc]=!0,H[cc]=H[dc]=H[Sc]=H[fc]=H[kc]=H[uc]=H[pc]=H[hc]=H[mc]=H[gc]=H[yc]=H[bc]=H[wc]=H[Cc]=H[vc]=!1;function _c(e){return ht(e)&&mo(e.length)&&!!H[pt(e)]}function Lc(e){return function(t){return e(t)}}var nr=typeof z=="object"&&z&&!z.nodeType&&z,$t=nr&&typeof module=="object"&&module&&!module.nodeType&&module,Pc=$t&&$t.exports===nr,bo=Pc&&Fi.process,or=function(){try{var e=$t&&$t.require&&$t.require("util").types;return e||bo&&bo.binding&&bo.binding("util")}catch{}}(),ir=or&&or.isTypedArray,rr=ir?Lc(ir):_c,Vc=Object.prototype,Rc=Vc.hasOwnProperty;function Fc(e,t){var o=ge(e),i=!o&&go(e),r=!o&&!i&&yo(e),a=!o&&!i&&!r&&rr(e),s=o||i||r||a,l=s?nc(e.length,String):[],c=l.length;for(var d in e)Rc.call(e,d)&&!(s&&(d=="length"||r&&(d=="offset"||d=="parent")||a&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||po(d,c)))&&l.push(d);return l}function Dc(e,t){return function(o){return e(t(o))}}var $c=Dc(Object.keys,Object),zc=Object.prototype,jc=zc.hasOwnProperty;function Hc(e){if(!tc(e))return $c(e);var t=[];for(var o in Object(e))jc.call(e,o)&&o!="constructor"&&t.push(o);return t}function ar(e){return Xl(e)?Fc(e):Hc(e)}var Kc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Uc=/^\w*$/;function wo(e,t){if(ge(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||yn(e)?!0:Uc.test(e)||!Kc.test(e)||t!=null&&e in Object(t)}var zt=Ze(Object,"create");function Wc(){this.__data__=zt?zt(null):{},this.size=0}function qc(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Gc="__lodash_hash_undefined__",Jc=Object.prototype,Yc=Jc.hasOwnProperty;function Zc(e){var t=this.__data__;if(zt){var o=t[e];return o===Gc?void 0:o}return Yc.call(t,e)?t[e]:void 0}var Qc=Object.prototype,Xc=Qc.hasOwnProperty;function ed(e){var t=this.__data__;return zt?t[e]!==void 0:Xc.call(t,e)}var td="__lodash_hash_undefined__";function nd(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=zt&&t===void 0?td:t,this}function Qe(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var i=e[t];this.set(i[0],i[1])}}Qe.prototype.clear=Wc,Qe.prototype.delete=qc,Qe.prototype.get=Zc,Qe.prototype.has=ed,Qe.prototype.set=nd;function od(){this.__data__=[],this.size=0}function wn(e,t){for(var o=e.length;o--;)if(ho(e[o][0],t))return o;return-1}var id=Array.prototype,rd=id.splice;function ad(e){var t=this.__data__,o=wn(t,e);if(o<0)return!1;var i=t.length-1;return o==i?t.pop():rd.call(t,o,1),--this.size,!0}function sd(e){var t=this.__data__,o=wn(t,e);return o<0?void 0:t[o][1]}function ld(e){return wn(this.__data__,e)>-1}function cd(e,t){var o=this.__data__,i=wn(o,e);return i<0?(++this.size,o.push([e,t])):o[i][1]=t,this}function Me(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var i=e[t];this.set(i[0],i[1])}}Me.prototype.clear=od,Me.prototype.delete=ad,Me.prototype.get=sd,Me.prototype.has=ld,Me.prototype.set=cd;var jt=Ze(Ce,"Map");function dd(){this.size=0,this.__data__={hash:new Qe,map:new(jt||Me),string:new Qe}}function fd(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Cn(e,t){var o=e.__data__;return fd(t)?o[typeof t=="string"?"string":"hash"]:o.map}function ud(e){var t=Cn(this,e).delete(e);return this.size-=t?1:0,t}function pd(e){return Cn(this,e).get(e)}function hd(e){return Cn(this,e).has(e)}function md(e,t){var o=Cn(this,e),i=o.size;return o.set(e,t),this.size+=o.size==i?0:1,this}function xe(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var i=e[t];this.set(i[0],i[1])}}xe.prototype.clear=dd,xe.prototype.delete=ud,xe.prototype.get=pd,xe.prototype.has=hd,xe.prototype.set=md;var gd="Expected a function";function Co(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(gd);var o=function(){var i=arguments,r=t?t.apply(this,i):i[0],a=o.cache;if(a.has(r))return a.get(r);var s=e.apply(this,i);return o.cache=a.set(r,s)||a,s};return o.cache=new(Co.Cache||xe),o}Co.Cache=xe;var yd=500;function bd(e){var t=Co(e,function(i){return o.size===yd&&o.clear(),i}),o=t.cache;return t}var wd=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Cd=/\\(\\)?/g,vd=bd(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(wd,function(o,i,r,a){t.push(r?a.replace(Cd,"$1"):i||o)}),t});function Sd(e){return e==null?"":Hi(e)}function vn(e,t){return ge(e)?e:wo(e,t)?[e]:vd(Sd(e))}function Ht(e){if(typeof e=="string"||yn(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function vo(e,t){t=vn(t,e);for(var o=0,i=t.length;e!=null&&o<i;)e=e[Ht(t[o++])];return o&&o==i?e:void 0}function Be(e,t,o){var i=e==null?void 0:vo(e,t);return i===void 0?o:i}function sr(e,t){for(var o=-1,i=t.length,r=e.length;++o<i;)e[r+o]=t[o];return e}var lr=ve?ve.isConcatSpreadable:void 0;function kd(e){return ge(e)||go(e)||!!(lr&&e&&e[lr])}function Ed(e,t,o,i,r){var a=-1,s=e.length;for(o||(o=kd),r||(r=[]);++a<s;){var l=e[a];o(l)?sr(r,l):r[r.length]=l}return r}function Id(e){var t=e==null?0:e.length;return t?Ed(e):[]}function Td(e){return Kl(Zl(e,void 0,Id),e+"")}function De(){if(!arguments.length)return[];var e=arguments[0];return ge(e)?e:[e]}function Ad(){this.__data__=new Me,this.size=0}function Od(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function Md(e){return this.__data__.get(e)}function xd(e){return this.__data__.has(e)}var Bd=200;function Nd(e,t){var o=this.__data__;if(o instanceof Me){var i=o.__data__;if(!jt||i.length<Bd-1)return i.push([e,t]),this.size=++o.size,this;o=this.__data__=new xe(i)}return o.set(e,t),this.size=o.size,this}function Ne(e){var t=this.__data__=new Me(e);this.size=t.size}Ne.prototype.clear=Ad,Ne.prototype.delete=Od,Ne.prototype.get=Md,Ne.prototype.has=xd,Ne.prototype.set=Nd;function _d(e,t){for(var o=-1,i=e==null?0:e.length,r=0,a=[];++o<i;){var s=e[o];t(s,o,e)&&(a[r++]=s)}return a}function Ld(){return[]}var Pd=Object.prototype,Vd=Pd.propertyIsEnumerable,cr=Object.getOwnPropertySymbols,Rd=cr?function(e){return e==null?[]:(e=Object(e),_d(cr(e),function(t){return Vd.call(e,t)}))}:Ld;function Fd(e,t,o){var i=t(e);return ge(e)?i:sr(i,o(e))}function dr(e){return Fd(e,ar,Rd)}var So=Ze(Ce,"DataView"),ko=Ze(Ce,"Promise"),Eo=Ze(Ce,"Set"),fr="[object Map]",Dd="[object Object]",ur="[object Promise]",pr="[object Set]",hr="[object WeakMap]",mr="[object DataView]",$d=Ye(So),zd=Ye(jt),jd=Ye(ko),Hd=Ye(Eo),Kd=Ye(uo),$e=pt;(So&&$e(new So(new ArrayBuffer(1)))!=mr||jt&&$e(new jt)!=fr||ko&&$e(ko.resolve())!=ur||Eo&&$e(new Eo)!=pr||uo&&$e(new uo)!=hr)&&($e=function(e){var t=pt(e),o=t==Dd?e.constructor:void 0,i=o?Ye(o):"";if(i)switch(i){case $d:return mr;case zd:return fr;case jd:return ur;case Hd:return pr;case Kd:return hr}return t});var gr=Ce.Uint8Array,Ud="__lodash_hash_undefined__";function Wd(e){return this.__data__.set(e,Ud),this}function qd(e){return this.__data__.has(e)}function Sn(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new xe;++t<o;)this.add(e[t])}Sn.prototype.add=Sn.prototype.push=Wd,Sn.prototype.has=qd;function Gd(e,t){for(var o=-1,i=e==null?0:e.length;++o<i;)if(t(e[o],o,e))return!0;return!1}function Jd(e,t){return e.has(t)}var Yd=1,Zd=2;function yr(e,t,o,i,r,a){var s=o&Yd,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var u=-1,p=!0,g=o&Zd?new Sn:void 0;for(a.set(e,t),a.set(t,e);++u<l;){var h=e[u],m=t[u];if(i)var y=s?i(m,h,u,t,e,a):i(h,m,u,e,t,a);if(y!==void 0){if(y)continue;p=!1;break}if(g){if(!Gd(t,function(b,C){if(!Jd(g,C)&&(h===b||r(h,b,o,i,a)))return g.push(C)})){p=!1;break}}else if(!(h===m||r(h,m,o,i,a))){p=!1;break}}return a.delete(e),a.delete(t),p}function Qd(e){var t=-1,o=Array(e.size);return e.forEach(function(i,r){o[++t]=[r,i]}),o}function Xd(e){var t=-1,o=Array(e.size);return e.forEach(function(i){o[++t]=i}),o}var ef=1,tf=2,nf="[object Boolean]",of="[object Date]",rf="[object Error]",af="[object Map]",sf="[object Number]",lf="[object RegExp]",cf="[object Set]",df="[object String]",ff="[object Symbol]",uf="[object ArrayBuffer]",pf="[object DataView]",br=ve?ve.prototype:void 0,Io=br?br.valueOf:void 0;function hf(e,t,o,i,r,a,s){switch(o){case pf:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case uf:return!(e.byteLength!=t.byteLength||!a(new gr(e),new gr(t)));case nf:case of:case sf:return ho(+e,+t);case rf:return e.name==t.name&&e.message==t.message;case lf:case df:return e==t+"";case af:var l=Qd;case cf:var c=i&ef;if(l||(l=Xd),e.size!=t.size&&!c)return!1;var d=s.get(e);if(d)return d==t;i|=tf,s.set(e,t);var f=yr(l(e),l(t),i,r,a,s);return s.delete(e),f;case ff:if(Io)return Io.call(e)==Io.call(t)}return!1}var mf=1,gf=Object.prototype,yf=gf.hasOwnProperty;function bf(e,t,o,i,r,a){var s=o&mf,l=dr(e),c=l.length,d=dr(t),f=d.length;if(c!=f&&!s)return!1;for(var u=c;u--;){var p=l[u];if(!(s?p in t:yf.call(t,p)))return!1}var g=a.get(e),h=a.get(t);if(g&&h)return g==t&&h==e;var m=!0;a.set(e,t),a.set(t,e);for(var y=s;++u<c;){p=l[u];var b=e[p],C=t[p];if(i)var I=s?i(C,b,p,t,e,a):i(b,C,p,e,t,a);if(!(I===void 0?b===C||r(b,C,o,i,a):I)){m=!1;break}y||(y=p=="constructor")}if(m&&!y){var k=e.constructor,v=t.constructor;k!=v&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof v=="function"&&v instanceof v)&&(m=!1)}return a.delete(e),a.delete(t),m}var wf=1,wr="[object Arguments]",Cr="[object Array]",kn="[object Object]",Cf=Object.prototype,vr=Cf.hasOwnProperty;function vf(e,t,o,i,r,a){var s=ge(e),l=ge(t),c=s?Cr:$e(e),d=l?Cr:$e(t);c=c==wr?kn:c,d=d==wr?kn:d;var f=c==kn,u=d==kn,p=c==d;if(p&&yo(e)){if(!yo(t))return!1;s=!0,f=!1}if(p&&!f)return a||(a=new Ne),s||rr(e)?yr(e,t,o,i,r,a):hf(e,t,c,o,i,r,a);if(!(o&wf)){var g=f&&vr.call(e,"__wrapped__"),h=u&&vr.call(t,"__wrapped__");if(g||h){var m=g?e.value():e,y=h?t.value():t;return a||(a=new Ne),r(m,y,o,i,a)}}return p?(a||(a=new Ne),bf(e,t,o,i,r,a)):!1}function En(e,t,o,i,r){return e===t?!0:e==null||t==null||!ht(e)&&!ht(t)?e!==e&&t!==t:vf(e,t,o,i,En,r)}var Sf=1,kf=2;function Ef(e,t,o,i){var r=o.length,a=r;if(e==null)return!a;for(e=Object(e);r--;){var s=o[r];if(s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++r<a;){s=o[r];var l=s[0],c=e[l],d=s[1];if(s[2]){if(c===void 0&&!(l in e))return!1}else{var f=new Ne,u;if(!(u===void 0?En(d,c,Sf|kf,i,f):u))return!1}}return!0}function Sr(e){return e===e&&!Fe(e)}function If(e){for(var t=ar(e),o=t.length;o--;){var i=t[o],r=e[i];t[o]=[i,r,Sr(r)]}return t}function kr(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==void 0||e in Object(o))}}function Tf(e){var t=If(e);return t.length==1&&t[0][2]?kr(t[0][0],t[0][1]):function(o){return o===e||Ef(o,e,t)}}function Af(e,t){return e!=null&&t in Object(e)}function Of(e,t,o){t=vn(t,e);for(var i=-1,r=t.length,a=!1;++i<r;){var s=Ht(t[i]);if(!(a=e!=null&&o(e,s)))break;e=e[s]}return a||++i!=r?a:(r=e==null?0:e.length,!!r&&mo(r)&&po(s,r)&&(ge(e)||go(e)))}function Er(e,t){return e!=null&&Of(e,t,Af)}var Mf=1,xf=2;function Bf(e,t){return wo(e)&&Sr(t)?kr(Ht(e),t):function(o){var i=Be(o,e);return i===void 0&&i===t?Er(o,e):En(t,i,Mf|xf)}}function Nf(e){return function(t){return t==null?void 0:t[e]}}function _f(e){return function(t){return vo(t,e)}}function Lf(e){return wo(e)?Nf(Ht(e)):_f(e)}function Pf(e){return typeof e=="function"?e:e==null?Wi:typeof e=="object"?ge(e)?Bf(e[0],e[1]):Tf(e):Lf(e)}var To=function(){return Ce.Date.now()},Vf="Expected a function",Rf=Math.max,Ff=Math.min;function Df(e,t,o){var i,r,a,s,l,c,d=0,f=!1,u=!1,p=!0;if(typeof e!="function")throw new TypeError(Vf);t=Ui(t)||0,Fe(o)&&(f=!!o.leading,u="maxWait"in o,a=u?Rf(Ui(o.maxWait)||0,t):a,p="trailing"in o?!!o.trailing:p);function g(S){var E=i,O=r;return i=r=void 0,d=S,s=e.apply(O,E),s}function h(S){return d=S,l=setTimeout(b,t),f?g(S):s}function m(S){var E=S-c,O=S-d,x=t-E;return u?Ff(x,a-O):x}function y(S){var E=S-c,O=S-d;return c===void 0||E>=t||E<0||u&&O>=a}function b(){var S=To();if(y(S))return C(S);l=setTimeout(b,m(S))}function C(S){return l=void 0,p&&i?g(S):(i=r=void 0,s)}function I(){l!==void 0&&clearTimeout(l),d=0,i=c=r=l=void 0}function k(){return l===void 0?s:C(To())}function v(){var S=To(),E=y(S);if(i=arguments,r=this,c=S,E){if(l===void 0)return h(c);if(u)return clearTimeout(l),l=setTimeout(b,t),g(c)}return l===void 0&&(l=setTimeout(b,t)),s}return v.cancel=I,v.flush=k,v}function $f(e,t,o){var i=e==null?0:e.length;if(!i)return-1;var r=i-1;return Ul(e,Pf(t),r)}function Ao(e){for(var t=-1,o=e==null?0:e.length,i={};++t<o;){var r=e[t];Ji(i,r[0],r[1])}return i}function In(e,t){return En(e,t)}function Tn(e){return e==null}function Ir(e){return e===void 0}function zf(e,t,o,i){if(!Fe(e))return e;t=vn(t,e);for(var r=-1,a=t.length,s=a-1,l=e;l!=null&&++r<a;){var c=Ht(t[r]),d=o;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(r!=s){var f=l[c];d=void 0,d===void 0&&(d=Fe(f)?f:po(t[r+1])?[]:{})}Yl(l,c,d),l=l[c]}return e}function jf(e,t,o){for(var i=-1,r=t.length,a={};++i<r;){var s=t[i],l=vo(e,s);o(l,s)&&zf(a,vn(s,e),l)}return a}function Hf(e,t){return jf(e,t,function(o,i){return Er(e,i)})}var Tr=Td(function(e,t){return e==null?{}:Hf(e,t)});const ze=e=>e===void 0,_e=e=>typeof e=="boolean",G=e=>typeof e=="number",Xe=e=>typeof Element>"u"?!1:e instanceof Element,Kt=e=>Tn(e),Kf=e=>me(e)?!Number.isNaN(Number(e)):!1,Uf=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Ar=e=>Object.keys(e);class Or extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Mr(e,t){throw new Or(`[${e}] ${t}`)}function ne(e,t){if(process.env.NODE_ENV!=="production"){const o=me(e)?new Or(`[${e}] ${t}`):e;console.warn(o)}}const Wf="utils/dom/style",xr=(e="")=>e.split(" ").filter(t=>!!t.trim()),Br=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Oo=(e,t)=>{!e||!t.trim()||e.classList.add(...xr(t))},Ut=(e,t)=>{!e||!t.trim()||e.classList.remove(...xr(t))},mt=(e,t)=>{var o;if(!K||!e||!t)return"";let i=Xs(t);i==="float"&&(i="cssFloat");try{const r=e.style[i];if(r)return r;const a=(o=document.defaultView)==null?void 0:o.getComputedStyle(e,"");return a?a[i]:""}catch{return e.style[i]}};function et(e,t="px"){if(!e)return"";if(G(e)||Kf(e))return`${e}${t}`;if(me(e))return e;ne(Wf,"binding value must be a string or number")}let An;const qf=e=>{var t;if(!K)return 0;if(An!==void 0)return An;const o=document.createElement("div");o.className=`${e}-scrollbar__wrap`,o.style.visibility="hidden",o.style.width="100px",o.style.position="absolute",o.style.top="-9999px",document.body.appendChild(o);const i=o.offsetWidth;o.style.overflow="scroll";const r=document.createElement("div");r.style.width="100%",o.appendChild(r);const a=r.offsetWidth;return(t=o.parentNode)==null||t.removeChild(o),An=i-a,An};function Gf(e,t){if(!K)return;if(!t){e.scrollTop=0;return}const o=[];let i=t.offsetParent;for(;i!==null&&e!==i&&e.contains(i);)o.push(i),i=i.offsetParent;const r=t.offsetTop+o.reduce((c,d)=>c+d.offsetTop,0),a=r+t.offsetHeight,s=e.scrollTop,l=s+e.clientHeight;r<s?e.scrollTop=r:a>l&&(e.scrollTop=a-e.clientHeight)}const Nr="__epPropKey",_=e=>e,Jf=e=>te(e)&&!!e[Nr],On=(e,t)=>{if(!te(e)||Jf(e))return e;const{values:o,required:i,default:r,type:a,validator:s}=e,c={type:a,required:!!i,validator:o||s?d=>{let f=!1,u=[];if(o&&(u=Array.from(o),Vi(e,"default")&&u.push(r),f||(f=u.includes(d))),s&&(f||(f=s(d))),!f&&u.length>0){const p=[...new Set(u)].map(g=>JSON.stringify(g)).join(", ");n.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${p}], got value ${JSON.stringify(d)}.`)}return f}:void 0,[Nr]:!0};return Vi(e,"default")&&(c.default=r),c},R=e=>Ao(Object.entries(e).map(([t,o])=>[t,On(o,t)])),gt=_([String,Object,Function]),Yf={Close:W.Close},Zf={validating:W.Loading,success:W.CircleCheck,error:W.CircleClose},oe=(e,t)=>{if(e.install=o=>{for(const i of[e,...Object.values(t??{})])o.component(i.name,i)},t)for(const[o,i]of Object.entries(t))e[o]=i;return e},Qf=(e,t)=>(e.install=o=>{o.directive(t,e)},e),tt=e=>(e.install=Je,e),Xf=(...e)=>t=>{e.forEach(o=>{Q(o)?o(t):o.value=t})},Wt={tab:"Tab",enter:"Enter",space:"Space",esc:"Escape",delete:"Delete"},X="update:modelValue",Mo="change",_r=["","default","small","large"];var Mn=(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))(Mn||{});const eu=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),qt=e=>e,yt=({from:e,replacement:t,scope:o,version:i,ref:r,type:a="API"},s)=>{n.watch(()=>n.unref(s),l=>{l&&ne(o,`[${a}] ${e} is about to be deprecated in version ${i}, please use ${t} instead.
6
- For more detail, please visit: ${r}
7
- `)},{immediate:!0})},tu=(e,t,o,i)=>{let r={offsetX:0,offsetY:0};const a=d=>{const f=d.clientX,u=d.clientY,{offsetX:p,offsetY:g}=r,h=e.value.getBoundingClientRect(),m=h.left,y=h.top,b=h.width,C=h.height,I=document.documentElement.clientWidth,k=document.documentElement.clientHeight,v=-m+p,S=-y+g,E=I-m-b+p,O=k-y-C+g,x=B=>{let T=p+B.clientX-f,L=g+B.clientY-u;i!=null&&i.value||(T=Math.min(Math.max(T,v),E),L=Math.min(Math.max(L,S),O)),r={offsetX:T,offsetY:L},e.value&&(e.value.style.transform=`translate(${et(T)}, ${et(L)})`)},N=()=>{document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",N)};document.addEventListener("mousemove",x),document.addEventListener("mouseup",N)},s=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",a)},l=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",a)},c=()=>{r={offsetX:0,offsetY:0},e.value&&(e.value.style.transform="none")};return n.onMounted(()=>{n.watchEffect(()=>{o.value?s():l()})}),n.onBeforeUnmount(()=>{l()}),{resetPosition:c}};var nu={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 ou=e=>(t,o)=>iu(t,o,n.unref(e)),iu=(e,t,o)=>Be(o,e,e).replace(/\{(\w+)\}/g,(i,r)=>{var a;return`${(a=t==null?void 0:t[r])!=null?a:`{${r}}`}`}),ru=e=>{const t=n.computed(()=>n.unref(e).name),o=n.isRef(e)?e:n.ref(e);return{lang:t,locale:o,t:ou(e)}},Lr=Symbol("localeContextKey"),xo=e=>{const t=e||n.inject(Lr,n.ref());return ru(n.computed(()=>t.value||nu))},Gt="el",au="is-",nt=(e,t,o,i,r)=>{let a=`${e}-${t}`;return o&&(a+=`-${o}`),i&&(a+=`__${i}`),r&&(a+=`--${r}`),a},Pr=Symbol("namespaceContextKey"),Bo=e=>{const t=e||(n.getCurrentInstance()?n.inject(Pr,n.ref(Gt)):n.ref(Gt));return n.computed(()=>n.unref(t)||Gt)},D=(e,t)=>{const o=Bo(t);return{namespace:o,b:(m="")=>nt(o.value,e,m,"",""),e:m=>m?nt(o.value,e,"",m,""):"",m:m=>m?nt(o.value,e,"","",m):"",be:(m,y)=>m&&y?nt(o.value,e,m,y,""):"",em:(m,y)=>m&&y?nt(o.value,e,"",m,y):"",bm:(m,y)=>m&&y?nt(o.value,e,m,"",y):"",bem:(m,y,b)=>m&&y&&b?nt(o.value,e,m,y,b):"",is:(m,...y)=>{const b=y.length>=1?y[0]:!0;return m&&b?`${au}${m}`:""},cssVar:m=>{const y={};for(const b in m)m[b]&&(y[`--${o.value}-${b}`]=m[b]);return y},cssVarName:m=>`--${o.value}-${m}`,cssVarBlock:m=>{const y={};for(const b in m)m[b]&&(y[`--${o.value}-${e}-${b}`]=m[b]);return y},cssVarBlockName:m=>`--${o.value}-${e}-${m}`}},su=(e,t={})=>{n.isRef(e)||Mr("[useLockscreen]","You need to pass a ref param to this function");const o=t.ns||D("popup"),i=n.computed(()=>o.bm("parent","hidden"));if(!K||Br(document.body,i.value))return;let r=0,a=!1,s="0";const l=()=>{setTimeout(()=>{Ut(document==null?void 0:document.body,i.value),a&&document&&(document.body.style.width=s)},200)};n.watch(e,c=>{if(!c){l();return}a=!Br(document.body,i.value),a&&(s=document.body.style.width),r=qf(o.namespace.value);const d=document.documentElement.clientHeight<document.body.scrollHeight,f=mt(document.body,"overflowY");r>0&&(d||f==="scroll")&&a&&(document.body.style.width=`calc(100% - ${r}px)`),Oo(document.body,i.value)}),n.onScopeDispose(()=>l())},lu=On({type:_(Boolean),default:null}),cu=On({type:_(Function)}),du=e=>{const t=`update:${e}`,o=`onUpdate:${e}`,i=[t],r={[e]:lu,[o]:cu};return{useModelToggle:({indicator:s,toggleReason:l,shouldHideWhenRouteChanges:c,shouldProceed:d,onShow:f,onHide:u})=>{const p=n.getCurrentInstance(),{emit:g}=p,h=p.props,m=n.computed(()=>Q(h[o])),y=n.computed(()=>h[e]===null),b=E=>{s.value!==!0&&(s.value=!0,l&&(l.value=E),Q(f)&&f(E))},C=E=>{s.value!==!1&&(s.value=!1,l&&(l.value=E),Q(u)&&u(E))},I=E=>{if(h.disabled===!0||Q(d)&&!d())return;const O=m.value&&K;O&&g(t,!0),(y.value||!O)&&b(E)},k=E=>{if(h.disabled===!0||!K)return;const O=m.value&&K;O&&g(t,!1),(y.value||!O)&&C(E)},v=E=>{_e(E)&&(h.disabled&&E?m.value&&g(t,!1):s.value!==E&&(E?b():C()))},S=()=>{s.value?k():I()};return n.watch(()=>h[e],v),c&&p.appContext.config.globalProperties.$route!==void 0&&n.watch(()=>({...p.proxy.$route}),()=>{c.value&&s.value&&k()}),n.onMounted(()=>{v(h[e])}),{hide:k,show:I,toggle:S,hasUpdateHandler:m}},useModelToggleProps:r,useModelToggleEmits:i}},Vr=e=>{const t=n.getCurrentInstance();return n.computed(()=>{var o,i;return(i=(o=t==null?void 0:t.proxy)==null?void 0:o.$props)==null?void 0:i[e]})};var ie="top",de="bottom",fe="right",re="left",No="auto",Jt=[ie,de,fe,re],bt="start",Yt="end",fu="clippingParents",Rr="viewport",Zt="popper",uu="reference",Fr=Jt.reduce(function(e,t){return e.concat([t+"-"+bt,t+"-"+Yt])},[]),xn=[].concat(Jt,[No]).reduce(function(e,t){return e.concat([t,t+"-"+bt,t+"-"+Yt])},[]),pu="beforeRead",hu="read",mu="afterRead",gu="beforeMain",yu="main",bu="afterMain",wu="beforeWrite",Cu="write",vu="afterWrite",Su=[pu,hu,mu,gu,yu,bu,wu,Cu,vu];function Se(e){return e?(e.nodeName||"").toLowerCase():null}function ye(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function wt(e){var t=ye(e).Element;return e instanceof t||e instanceof Element}function ue(e){var t=ye(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function _o(e){if(typeof ShadowRoot>"u")return!1;var t=ye(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ku(e){var t=e.state;Object.keys(t.elements).forEach(function(o){var i=t.styles[o]||{},r=t.attributes[o]||{},a=t.elements[o];!ue(a)||!Se(a)||(Object.assign(a.style,i),Object.keys(r).forEach(function(s){var l=r[s];l===!1?a.removeAttribute(s):a.setAttribute(s,l===!0?"":l)}))})}function Eu(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(i){var r=t.elements[i],a=t.attributes[i]||{},s=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:o[i]),l=s.reduce(function(c,d){return c[d]="",c},{});!ue(r)||!Se(r)||(Object.assign(r.style,l),Object.keys(a).forEach(function(c){r.removeAttribute(c)}))})}}var Dr={name:"applyStyles",enabled:!0,phase:"write",fn:ku,effect:Eu,requires:["computeStyles"]};function ke(e){return e.split("-")[0]}var ot=Math.max,Bn=Math.min,Ct=Math.round;function vt(e,t){t===void 0&&(t=!1);var o=e.getBoundingClientRect(),i=1,r=1;if(ue(e)&&t){var a=e.offsetHeight,s=e.offsetWidth;s>0&&(i=Ct(o.width)/s||1),a>0&&(r=Ct(o.height)/a||1)}return{width:o.width/i,height:o.height/r,top:o.top/r,right:o.right/i,bottom:o.bottom/r,left:o.left/i,x:o.left/i,y:o.top/r}}function Lo(e){var t=vt(e),o=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:i}}function $r(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&_o(o)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Le(e){return ye(e).getComputedStyle(e)}function Iu(e){return["table","td","th"].indexOf(Se(e))>=0}function je(e){return((wt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nn(e){return Se(e)==="html"?e:e.assignedSlot||e.parentNode||(_o(e)?e.host:null)||je(e)}function zr(e){return!ue(e)||Le(e).position==="fixed"?null:e.offsetParent}function Tu(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,o=navigator.userAgent.indexOf("Trident")!==-1;if(o&&ue(e)){var i=Le(e);if(i.position==="fixed")return null}var r=Nn(e);for(_o(r)&&(r=r.host);ue(r)&&["html","body"].indexOf(Se(r))<0;){var a=Le(r);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return r;r=r.parentNode}return null}function Qt(e){for(var t=ye(e),o=zr(e);o&&Iu(o)&&Le(o).position==="static";)o=zr(o);return o&&(Se(o)==="html"||Se(o)==="body"&&Le(o).position==="static")?t:o||Tu(e)||t}function Po(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Xt(e,t,o){return ot(e,Bn(t,o))}function Au(e,t,o){var i=Xt(e,t,o);return i>o?o:i}function jr(){return{top:0,right:0,bottom:0,left:0}}function Hr(e){return Object.assign({},jr(),e)}function Kr(e,t){return t.reduce(function(o,i){return o[i]=e,o},{})}var Ou=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Hr(typeof e!="number"?e:Kr(e,Jt))};function Mu(e){var t,o=e.state,i=e.name,r=e.options,a=o.elements.arrow,s=o.modifiersData.popperOffsets,l=ke(o.placement),c=Po(l),d=[re,fe].indexOf(l)>=0,f=d?"height":"width";if(!(!a||!s)){var u=Ou(r.padding,o),p=Lo(a),g=c==="y"?ie:re,h=c==="y"?de:fe,m=o.rects.reference[f]+o.rects.reference[c]-s[c]-o.rects.popper[f],y=s[c]-o.rects.reference[c],b=Qt(a),C=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,I=m/2-y/2,k=u[g],v=C-p[f]-u[h],S=C/2-p[f]/2+I,E=Xt(k,S,v),O=c;o.modifiersData[i]=(t={},t[O]=E,t.centerOffset=E-S,t)}}function xu(e){var t=e.state,o=e.options,i=o.element,r=i===void 0?"[data-popper-arrow]":i;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||!$r(t.elements.popper,r)||(t.elements.arrow=r))}var Bu={name:"arrow",enabled:!0,phase:"main",fn:Mu,effect:xu,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function St(e){return e.split("-")[1]}var Nu={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _u(e){var t=e.x,o=e.y,i=window,r=i.devicePixelRatio||1;return{x:Ct(t*r)/r||0,y:Ct(o*r)/r||0}}function Ur(e){var t,o=e.popper,i=e.popperRect,r=e.placement,a=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,f=e.roundOffsets,u=e.isFixed,p=s.x,g=p===void 0?0:p,h=s.y,m=h===void 0?0:h,y=typeof f=="function"?f({x:g,y:m}):{x:g,y:m};g=y.x,m=y.y;var b=s.hasOwnProperty("x"),C=s.hasOwnProperty("y"),I=re,k=ie,v=window;if(d){var S=Qt(o),E="clientHeight",O="clientWidth";if(S===ye(o)&&(S=je(o),Le(S).position!=="static"&&l==="absolute"&&(E="scrollHeight",O="scrollWidth")),S=S,r===ie||(r===re||r===fe)&&a===Yt){k=de;var x=u&&S===v&&v.visualViewport?v.visualViewport.height:S[E];m-=x-i.height,m*=c?1:-1}if(r===re||(r===ie||r===de)&&a===Yt){I=fe;var N=u&&S===v&&v.visualViewport?v.visualViewport.width:S[O];g-=N-i.width,g*=c?1:-1}}var B=Object.assign({position:l},d&&Nu),T=f===!0?_u({x:g,y:m}):{x:g,y:m};if(g=T.x,m=T.y,c){var L;return Object.assign({},B,(L={},L[k]=C?"0":"",L[I]=b?"0":"",L.transform=(v.devicePixelRatio||1)<=1?"translate("+g+"px, "+m+"px)":"translate3d("+g+"px, "+m+"px, 0)",L))}return Object.assign({},B,(t={},t[k]=C?m+"px":"",t[I]=b?g+"px":"",t.transform="",t))}function Lu(e){var t=e.state,o=e.options,i=o.gpuAcceleration,r=i===void 0?!0:i,a=o.adaptive,s=a===void 0?!0:a,l=o.roundOffsets,c=l===void 0?!0:l,d={placement:ke(t.placement),variation:St(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ur(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ur(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Wr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Lu,data:{}},_n={passive:!0};function Pu(e){var t=e.state,o=e.instance,i=e.options,r=i.scroll,a=r===void 0?!0:r,s=i.resize,l=s===void 0?!0:s,c=ye(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(f){f.addEventListener("scroll",o.update,_n)}),l&&c.addEventListener("resize",o.update,_n),function(){a&&d.forEach(function(f){f.removeEventListener("scroll",o.update,_n)}),l&&c.removeEventListener("resize",o.update,_n)}}var qr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Pu,data:{}},Vu={left:"right",right:"left",bottom:"top",top:"bottom"};function Ln(e){return e.replace(/left|right|bottom|top/g,function(t){return Vu[t]})}var Ru={start:"end",end:"start"};function Gr(e){return e.replace(/start|end/g,function(t){return Ru[t]})}function Vo(e){var t=ye(e),o=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:o,scrollTop:i}}function Ro(e){return vt(je(e)).left+Vo(e).scrollLeft}function Fu(e){var t=ye(e),o=je(e),i=t.visualViewport,r=o.clientWidth,a=o.clientHeight,s=0,l=0;return i&&(r=i.width,a=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=i.offsetLeft,l=i.offsetTop)),{width:r,height:a,x:s+Ro(e),y:l}}function Du(e){var t,o=je(e),i=Vo(e),r=(t=e.ownerDocument)==null?void 0:t.body,a=ot(o.scrollWidth,o.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=ot(o.scrollHeight,o.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-i.scrollLeft+Ro(e),c=-i.scrollTop;return Le(r||o).direction==="rtl"&&(l+=ot(o.clientWidth,r?r.clientWidth:0)-a),{width:a,height:s,x:l,y:c}}function Fo(e){var t=Le(e),o=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+r+i)}function Jr(e){return["html","body","#document"].indexOf(Se(e))>=0?e.ownerDocument.body:ue(e)&&Fo(e)?e:Jr(Nn(e))}function en(e,t){var o;t===void 0&&(t=[]);var i=Jr(e),r=i===((o=e.ownerDocument)==null?void 0:o.body),a=ye(i),s=r?[a].concat(a.visualViewport||[],Fo(i)?i:[]):i,l=t.concat(s);return r?l:l.concat(en(Nn(s)))}function Do(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function $u(e){var t=vt(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 Yr(e,t){return t===Rr?Do(Fu(e)):wt(t)?$u(t):Do(Du(je(e)))}function zu(e){var t=en(Nn(e)),o=["absolute","fixed"].indexOf(Le(e).position)>=0,i=o&&ue(e)?Qt(e):e;return wt(i)?t.filter(function(r){return wt(r)&&$r(r,i)&&Se(r)!=="body"}):[]}function ju(e,t,o){var i=t==="clippingParents"?zu(e):[].concat(t),r=[].concat(i,[o]),a=r[0],s=r.reduce(function(l,c){var d=Yr(e,c);return l.top=ot(d.top,l.top),l.right=Bn(d.right,l.right),l.bottom=Bn(d.bottom,l.bottom),l.left=ot(d.left,l.left),l},Yr(e,a));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Zr(e){var t=e.reference,o=e.element,i=e.placement,r=i?ke(i):null,a=i?St(i):null,s=t.x+t.width/2-o.width/2,l=t.y+t.height/2-o.height/2,c;switch(r){case ie:c={x:s,y:t.y-o.height};break;case de:c={x:s,y:t.y+t.height};break;case fe:c={x:t.x+t.width,y:l};break;case re:c={x:t.x-o.width,y:l};break;default:c={x:t.x,y:t.y}}var d=r?Po(r):null;if(d!=null){var f=d==="y"?"height":"width";switch(a){case bt:c[d]=c[d]-(t[f]/2-o[f]/2);break;case Yt:c[d]=c[d]+(t[f]/2-o[f]/2);break}}return c}function tn(e,t){t===void 0&&(t={});var o=t,i=o.placement,r=i===void 0?e.placement:i,a=o.boundary,s=a===void 0?fu:a,l=o.rootBoundary,c=l===void 0?Rr:l,d=o.elementContext,f=d===void 0?Zt:d,u=o.altBoundary,p=u===void 0?!1:u,g=o.padding,h=g===void 0?0:g,m=Hr(typeof h!="number"?h:Kr(h,Jt)),y=f===Zt?uu:Zt,b=e.rects.popper,C=e.elements[p?y:f],I=ju(wt(C)?C:C.contextElement||je(e.elements.popper),s,c),k=vt(e.elements.reference),v=Zr({reference:k,element:b,placement:r}),S=Do(Object.assign({},b,v)),E=f===Zt?S:k,O={top:I.top-E.top+m.top,bottom:E.bottom-I.bottom+m.bottom,left:I.left-E.left+m.left,right:E.right-I.right+m.right},x=e.modifiersData.offset;if(f===Zt&&x){var N=x[r];Object.keys(O).forEach(function(B){var T=[fe,de].indexOf(B)>=0?1:-1,L=[ie,de].indexOf(B)>=0?"y":"x";O[B]+=N[L]*T})}return O}function Hu(e,t){t===void 0&&(t={});var o=t,i=o.placement,r=o.boundary,a=o.rootBoundary,s=o.padding,l=o.flipVariations,c=o.allowedAutoPlacements,d=c===void 0?xn:c,f=St(i),u=f?l?Fr:Fr.filter(function(h){return St(h)===f}):Jt,p=u.filter(function(h){return d.indexOf(h)>=0});p.length===0&&(p=u);var g=p.reduce(function(h,m){return h[m]=tn(e,{placement:m,boundary:r,rootBoundary:a,padding:s})[ke(m)],h},{});return Object.keys(g).sort(function(h,m){return g[h]-g[m]})}function Ku(e){if(ke(e)===No)return[];var t=Ln(e);return[Gr(e),t,Gr(t)]}function Uu(e){var t=e.state,o=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=o.mainAxis,a=r===void 0?!0:r,s=o.altAxis,l=s===void 0?!0:s,c=o.fallbackPlacements,d=o.padding,f=o.boundary,u=o.rootBoundary,p=o.altBoundary,g=o.flipVariations,h=g===void 0?!0:g,m=o.allowedAutoPlacements,y=t.options.placement,b=ke(y),C=b===y,I=c||(C||!h?[Ln(y)]:Ku(y)),k=[y].concat(I).reduce(function(Ie,ae){return Ie.concat(ke(ae)===No?Hu(t,{placement:ae,boundary:f,rootBoundary:u,padding:d,flipVariations:h,allowedAutoPlacements:m}):ae)},[]),v=t.rects.reference,S=t.rects.popper,E=new Map,O=!0,x=k[0],N=0;N<k.length;N++){var B=k[N],T=ke(B),L=St(B)===bt,q=[ie,de].indexOf(T)>=0,V=q?"width":"height",M=tn(t,{placement:B,boundary:f,rootBoundary:u,altBoundary:p,padding:d}),$=q?L?fe:re:L?de:ie;v[V]>S[V]&&($=Ln($));var pe=Ln($),Y=[];if(a&&Y.push(M[T]<=0),l&&Y.push(M[$]<=0,M[pe]<=0),Y.every(function(Ie){return Ie})){x=B,O=!1;break}E.set(B,Y)}if(O)for(var Z=h?3:1,ce=function(Ie){var ae=k.find(function(U){var lt=E.get(U);if(lt)return lt.slice(0,Ie).every(function(qe){return qe})});if(ae)return x=ae,"break"},Ee=Z;Ee>0;Ee--){var _t=ce(Ee);if(_t==="break")break}t.placement!==x&&(t.modifiersData[i]._skip=!0,t.placement=x,t.reset=!0)}}var Wu={name:"flip",enabled:!0,phase:"main",fn:Uu,requiresIfExists:["offset"],data:{_skip:!1}};function Qr(e,t,o){return o===void 0&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function Xr(e){return[ie,fe,de,re].some(function(t){return e[t]>=0})}function qu(e){var t=e.state,o=e.name,i=t.rects.reference,r=t.rects.popper,a=t.modifiersData.preventOverflow,s=tn(t,{elementContext:"reference"}),l=tn(t,{altBoundary:!0}),c=Qr(s,i),d=Qr(l,r,a),f=Xr(c),u=Xr(d);t.modifiersData[o]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:f,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":u})}var Gu={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:qu};function Ju(e,t,o){var i=ke(e),r=[re,ie].indexOf(i)>=0?-1:1,a=typeof o=="function"?o(Object.assign({},t,{placement:e})):o,s=a[0],l=a[1];return s=s||0,l=(l||0)*r,[re,fe].indexOf(i)>=0?{x:l,y:s}:{x:s,y:l}}function Yu(e){var t=e.state,o=e.options,i=e.name,r=o.offset,a=r===void 0?[0,0]:r,s=xn.reduce(function(f,u){return f[u]=Ju(u,t.rects,a),f},{}),l=s[t.placement],c=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[i]=s}var Zu={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Yu};function Qu(e){var t=e.state,o=e.name;t.modifiersData[o]=Zr({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var ea={name:"popperOffsets",enabled:!0,phase:"read",fn:Qu,data:{}};function Xu(e){return e==="x"?"y":"x"}function ep(e){var t=e.state,o=e.options,i=e.name,r=o.mainAxis,a=r===void 0?!0:r,s=o.altAxis,l=s===void 0?!1:s,c=o.boundary,d=o.rootBoundary,f=o.altBoundary,u=o.padding,p=o.tether,g=p===void 0?!0:p,h=o.tetherOffset,m=h===void 0?0:h,y=tn(t,{boundary:c,rootBoundary:d,padding:u,altBoundary:f}),b=ke(t.placement),C=St(t.placement),I=!C,k=Po(b),v=Xu(k),S=t.modifiersData.popperOffsets,E=t.rects.reference,O=t.rects.popper,x=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,N=typeof x=="number"?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(S){if(a){var L,q=k==="y"?ie:re,V=k==="y"?de:fe,M=k==="y"?"height":"width",$=S[k],pe=$+y[q],Y=$-y[V],Z=g?-O[M]/2:0,ce=C===bt?E[M]:O[M],Ee=C===bt?-O[M]:-E[M],_t=t.elements.arrow,Ie=g&&_t?Lo(_t):{width:0,height:0},ae=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:jr(),U=ae[q],lt=ae[V],qe=Xt(0,E[M],Ie[M]),Xn=I?E[M]/2-Z-qe-U-N.mainAxis:ce-qe-U-N.mainAxis,eo=I?-E[M]/2+Z+qe+lt+N.mainAxis:Ee+qe+lt+N.mainAxis,ln=t.elements.arrow&&Qt(t.elements.arrow),yi=ln?k==="y"?ln.clientTop||0:ln.clientLeft||0:0,to=(L=B==null?void 0:B[k])!=null?L:0,bi=$+Xn-to-yi,wi=$+eo-to,ct=Xt(g?Bn(pe,bi):pe,$,g?ot(Y,wi):Y);S[k]=ct,T[k]=ct-$}if(l){var cn,Lt=k==="x"?ie:re,no=k==="x"?de:fe,Ve=S[v],Pt=v==="y"?"height":"width",dn=Ve+y[Lt],oo=Ve-y[no],dt=[ie,re].indexOf(b)!==-1,fn=(cn=B==null?void 0:B[v])!=null?cn:0,un=dt?dn:Ve-E[Pt]-O[Pt]-fn+N.altAxis,pn=dt?Ve+E[Pt]+O[Pt]-fn-N.altAxis:oo,hn=g&&dt?Au(un,Ve,pn):Xt(g?un:dn,Ve,g?pn:oo);S[v]=hn,T[v]=hn-Ve}t.modifiersData[i]=T}}var tp={name:"preventOverflow",enabled:!0,phase:"main",fn:ep,requiresIfExists:["offset"]};function np(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function op(e){return e===ye(e)||!ue(e)?Vo(e):np(e)}function ip(e){var t=e.getBoundingClientRect(),o=Ct(t.width)/e.offsetWidth||1,i=Ct(t.height)/e.offsetHeight||1;return o!==1||i!==1}function rp(e,t,o){o===void 0&&(o=!1);var i=ue(t),r=ue(t)&&ip(t),a=je(t),s=vt(e,r),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!o)&&((Se(t)!=="body"||Fo(a))&&(l=op(t)),ue(t)?(c=vt(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Ro(a))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function ap(e){var t=new Map,o=new Set,i=[];e.forEach(function(a){t.set(a.name,a)});function r(a){o.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(l){if(!o.has(l)){var c=t.get(l);c&&r(c)}}),i.push(a)}return e.forEach(function(a){o.has(a.name)||r(a)}),i}function sp(e){var t=ap(e);return Su.reduce(function(o,i){return o.concat(t.filter(function(r){return r.phase===i}))},[])}function lp(e){var t;return function(){return t||(t=new Promise(function(o){Promise.resolve().then(function(){t=void 0,o(e())})})),t}}function cp(e){var t=e.reduce(function(o,i){var r=o[i.name];return o[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,o},{});return Object.keys(t).map(function(o){return t[o]})}var ta={placement:"bottom",modifiers:[],strategy:"absolute"};function na(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function $o(e){e===void 0&&(e={});var t=e,o=t.defaultModifiers,i=o===void 0?[]:o,r=t.defaultOptions,a=r===void 0?ta:r;return function(s,l,c){c===void 0&&(c=a);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},ta,a),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},f=[],u=!1,p={state:d,setOptions:function(m){var y=typeof m=="function"?m(d.options):m;h(),d.options=Object.assign({},a,d.options,y),d.scrollParents={reference:wt(s)?en(s):s.contextElement?en(s.contextElement):[],popper:en(l)};var b=sp(cp([].concat(i,d.options.modifiers)));return d.orderedModifiers=b.filter(function(C){return C.enabled}),g(),p.update()},forceUpdate:function(){if(!u){var m=d.elements,y=m.reference,b=m.popper;if(na(y,b)){d.rects={reference:rp(y,Qt(b),d.options.strategy==="fixed"),popper:Lo(b)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(O){return d.modifiersData[O.name]=Object.assign({},O.data)});for(var C=0;C<d.orderedModifiers.length;C++){if(d.reset===!0){d.reset=!1,C=-1;continue}var I=d.orderedModifiers[C],k=I.fn,v=I.options,S=v===void 0?{}:v,E=I.name;typeof k=="function"&&(d=k({state:d,options:S,name:E,instance:p})||d)}}}},update:lp(function(){return new Promise(function(m){p.forceUpdate(),m(d)})}),destroy:function(){h(),u=!0}};if(!na(s,l))return p;p.setOptions(c).then(function(m){!u&&c.onFirstUpdate&&c.onFirstUpdate(m)});function g(){d.orderedModifiers.forEach(function(m){var y=m.name,b=m.options,C=b===void 0?{}:b,I=m.effect;if(typeof I=="function"){var k=I({state:d,name:y,instance:p,options:C}),v=function(){};f.push(k||v)}})}function h(){f.forEach(function(m){return m()}),f=[]}return p}}$o();var dp=[qr,ea,Wr,Dr];$o({defaultModifiers:dp});var fp=[qr,ea,Wr,Dr,Zu,Wu,tp,Bu,Gu],up=$o({defaultModifiers:fp});const pp=(e,t,o={})=>{const i={name:"updateState",enabled:!0,phase:"write",fn:({state:c})=>{const d=hp(c);Object.assign(s.value,d)},requires:["computeStyles"]},r=n.computed(()=>{const{onFirstUpdate:c,placement:d,strategy:f,modifiers:u}=n.unref(o);return{onFirstUpdate:c,placement:d||"bottom",strategy:f||"absolute",modifiers:[...u||[],i,{name:"applyStyles",enabled:!1}]}}),a=n.shallowRef(),s=n.ref({styles:{popper:{position:n.unref(r).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=()=>{a.value&&(a.value.destroy(),a.value=void 0)};return n.watch(r,c=>{const d=n.unref(a);d&&d.setOptions(c)},{deep:!0}),n.watch([e,t],([c,d])=>{l(),!(!c||!d)&&(a.value=up(c,d,n.unref(r)))}),n.onBeforeUnmount(()=>{l()}),{state:n.computed(()=>{var c;return{...((c=n.unref(a))==null?void 0:c.state)||{}}}),styles:n.computed(()=>n.unref(s).styles),attributes:n.computed(()=>n.unref(s).attributes),update:()=>{var c;return(c=n.unref(a))==null?void 0:c.update()},forceUpdate:()=>{var c;return(c=n.unref(a))==null?void 0:c.forceUpdate()},instanceRef:n.computed(()=>n.unref(a))}};function hp(e){const t=Object.keys(e.elements),o=Ao(t.map(r=>[r,e.styles[r]||{}])),i=Ao(t.map(r=>[r,e.attributes[r]]));return{styles:o,attributes:i}}const oa=e=>{if(!e)return{onClick:Je,onMousedown:Je,onMouseup:Je};let t=!1,o=!1;return{onClick:s=>{t&&o&&e(s),t=o=!1},onMousedown:s=>{t=s.target===s.currentTarget},onMouseup:s=>{o=s.target===s.currentTarget}}};function ia(){let e;const t=(i,r)=>{o(),e=window.setTimeout(i,r)},o=()=>window.clearTimeout(e);return Ft(()=>o()),{registerTimeout:t,cancelTimeout:o}}const zo={prefix:Math.floor(Math.random()*1e4),current:0},mp=Symbol("elIdInjection"),ra=()=>n.getCurrentInstance()?n.inject(mp,zo):zo,it=e=>{const t=ra();!K&&t===zo&&ne("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
5
+ **/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const Je=()=>{},Ys=Object.prototype.hasOwnProperty,Vi=(e,t)=>Ys.call(e,t),ee=Array.isArray,Q=e=>typeof e=="function",me=e=>typeof e=="string",te=e=>e!==null&&typeof e=="object",Zs=Object.prototype.toString,Qs=e=>Zs.call(e),co=e=>Qs(e).slice(8,-1),Ri=e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))},Xs=/-(\w)/g,el=Ri(e=>e.replace(Xs,(t,o)=>o?o.toUpperCase():"")),tl=/\B([A-Z])/g,nl=Ri(e=>e.replace(tl,"-$1").toLowerCase());var Di=typeof global=="object"&&global&&global.Object===Object&&global,ol=typeof self=="object"&&self&&self.Object===Object&&self,Ce=Di||ol||Function("return this")(),ve=Ce.Symbol,Fi=Object.prototype,il=Fi.hasOwnProperty,al=Fi.toString,Ft=ve?ve.toStringTag:void 0;function rl(e){var t=il.call(e,Ft),o=e[Ft];try{e[Ft]=void 0;var i=!0}catch{}var a=al.call(e);return i&&(t?e[Ft]=o:delete e[Ft]),a}var sl=Object.prototype,ll=sl.toString;function cl(e){return ll.call(e)}var dl="[object Null]",fl="[object Undefined]",$i=ve?ve.toStringTag:void 0;function pt(e){return e==null?e===void 0?fl:dl:$i&&$i in Object(e)?rl(e):cl(e)}function ht(e){return e!=null&&typeof e=="object"}var ul="[object Symbol]";function yn(e){return typeof e=="symbol"||ht(e)&&pt(e)==ul}function pl(e,t){for(var o=-1,i=e==null?0:e.length,a=Array(i);++o<i;)a[o]=t(e[o],o,e);return a}var ge=Array.isArray,zi=ve?ve.prototype:void 0,ji=zi?zi.toString:void 0;function Hi(e){if(typeof e=="string")return e;if(ge(e))return pl(e,Hi)+"";if(yn(e))return ji?ji.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var hl=/\s/;function ml(e){for(var t=e.length;t--&&hl.test(e.charAt(t)););return t}var gl=/^\s+/;function yl(e){return e&&e.slice(0,ml(e)+1).replace(gl,"")}function De(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ki=NaN,bl=/^[-+]0x[0-9a-f]+$/i,wl=/^0b[01]+$/i,Cl=/^0o[0-7]+$/i,vl=parseInt;function Ui(e){if(typeof e=="number")return e;if(yn(e))return Ki;if(De(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=De(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=yl(e);var o=wl.test(e);return o||Cl.test(e)?vl(e.slice(2),o?2:8):bl.test(e)?Ki:+e}function Wi(e){return e}var Sl="[object AsyncFunction]",kl="[object Function]",El="[object GeneratorFunction]",Il="[object Proxy]";function qi(e){if(!De(e))return!1;var t=pt(e);return t==kl||t==El||t==Sl||t==Il}var fo=Ce["__core-js_shared__"],Gi=function(){var e=/[^.]+$/.exec(fo&&fo.keys&&fo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Tl(e){return!!Gi&&Gi in e}var Al=Function.prototype,Ol=Al.toString;function Ye(e){if(e!=null){try{return Ol.call(e)}catch{}try{return e+""}catch{}}return""}var Ml=/[\\^$.*+?()[\]{}|]/g,Bl=/^\[object .+?Constructor\]$/,xl=Function.prototype,Nl=Object.prototype,_l=xl.toString,Ll=Nl.hasOwnProperty,Pl=RegExp("^"+_l.call(Ll).replace(Ml,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Vl(e){if(!De(e)||Tl(e))return!1;var t=qi(e)?Pl:Bl;return t.test(Ye(e))}function Rl(e,t){return e==null?void 0:e[t]}function Ze(e,t){var o=Rl(e,t);return Vl(o)?o:void 0}var uo=Ze(Ce,"WeakMap");function Dl(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}var Fl=800,$l=16,zl=Date.now;function jl(e){var t=0,o=0;return function(){var i=zl(),a=$l-(i-o);if(o=i,a>0){if(++t>=Fl)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Hl(e){return function(){return e}}var bn=function(){try{var e=Ze(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Kl=bn?function(e,t){return bn(e,"toString",{configurable:!0,enumerable:!1,value:Hl(t),writable:!0})}:Wi,Ul=jl(Kl);function Wl(e,t,o,i){e.length;for(var a=o+1;a--;)if(t(e[a],a,e))return a;return-1}var ql=9007199254740991,Gl=/^(?:0|[1-9]\d*)$/;function po(e,t){var o=typeof e;return t=t??ql,!!t&&(o=="number"||o!="symbol"&&Gl.test(e))&&e>-1&&e%1==0&&e<t}function Ji(e,t,o){t=="__proto__"&&bn?bn(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function ho(e,t){return e===t||e!==e&&t!==t}var Jl=Object.prototype,Yl=Jl.hasOwnProperty;function Zl(e,t,o){var i=e[t];(!(Yl.call(e,t)&&ho(i,o))||o===void 0&&!(t in e))&&Ji(e,t,o)}var Yi=Math.max;function Ql(e,t,o){return t=Yi(t===void 0?e.length-1:t,0),function(){for(var i=arguments,a=-1,r=Yi(i.length-t,0),s=Array(r);++a<r;)s[a]=i[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=i[a];return l[t]=o(s),Dl(e,this,l)}}var Xl=9007199254740991;function mo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Xl}function ec(e){return e!=null&&mo(e.length)&&!qi(e)}var tc=Object.prototype;function nc(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||tc;return e===o}function oc(e,t){for(var o=-1,i=Array(e);++o<e;)i[o]=t(o);return i}var ic="[object Arguments]";function Zi(e){return ht(e)&&pt(e)==ic}var Qi=Object.prototype,ac=Qi.hasOwnProperty,rc=Qi.propertyIsEnumerable,go=Zi(function(){return arguments}())?Zi:function(e){return ht(e)&&ac.call(e,"callee")&&!rc.call(e,"callee")};function sc(){return!1}var Xi=typeof z=="object"&&z&&!z.nodeType&&z,ea=Xi&&typeof module=="object"&&module&&!module.nodeType&&module,lc=ea&&ea.exports===Xi,ta=lc?Ce.Buffer:void 0,cc=ta?ta.isBuffer:void 0,yo=cc||sc,dc="[object Arguments]",fc="[object Array]",uc="[object Boolean]",pc="[object Date]",hc="[object Error]",mc="[object Function]",gc="[object Map]",yc="[object Number]",bc="[object Object]",wc="[object RegExp]",Cc="[object Set]",vc="[object String]",Sc="[object WeakMap]",kc="[object ArrayBuffer]",Ec="[object DataView]",Ic="[object Float32Array]",Tc="[object Float64Array]",Ac="[object Int8Array]",Oc="[object Int16Array]",Mc="[object Int32Array]",Bc="[object Uint8Array]",xc="[object Uint8ClampedArray]",Nc="[object Uint16Array]",_c="[object Uint32Array]",H={};H[Ic]=H[Tc]=H[Ac]=H[Oc]=H[Mc]=H[Bc]=H[xc]=H[Nc]=H[_c]=!0,H[dc]=H[fc]=H[kc]=H[uc]=H[Ec]=H[pc]=H[hc]=H[mc]=H[gc]=H[yc]=H[bc]=H[wc]=H[Cc]=H[vc]=H[Sc]=!1;function Lc(e){return ht(e)&&mo(e.length)&&!!H[pt(e)]}function Pc(e){return function(t){return e(t)}}var na=typeof z=="object"&&z&&!z.nodeType&&z,$t=na&&typeof module=="object"&&module&&!module.nodeType&&module,Vc=$t&&$t.exports===na,bo=Vc&&Di.process,oa=function(){try{var e=$t&&$t.require&&$t.require("util").types;return e||bo&&bo.binding&&bo.binding("util")}catch{}}(),ia=oa&&oa.isTypedArray,aa=ia?Pc(ia):Lc,Rc=Object.prototype,Dc=Rc.hasOwnProperty;function Fc(e,t){var o=ge(e),i=!o&&go(e),a=!o&&!i&&yo(e),r=!o&&!i&&!a&&aa(e),s=o||i||a||r,l=s?oc(e.length,String):[],c=l.length;for(var d in e)Dc.call(e,d)&&!(s&&(d=="length"||a&&(d=="offset"||d=="parent")||r&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||po(d,c)))&&l.push(d);return l}function $c(e,t){return function(o){return e(t(o))}}var zc=$c(Object.keys,Object),jc=Object.prototype,Hc=jc.hasOwnProperty;function Kc(e){if(!nc(e))return zc(e);var t=[];for(var o in Object(e))Hc.call(e,o)&&o!="constructor"&&t.push(o);return t}function ra(e){return ec(e)?Fc(e):Kc(e)}var Uc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Wc=/^\w*$/;function wo(e,t){if(ge(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||yn(e)?!0:Wc.test(e)||!Uc.test(e)||t!=null&&e in Object(t)}var zt=Ze(Object,"create");function qc(){this.__data__=zt?zt(null):{},this.size=0}function Gc(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Jc="__lodash_hash_undefined__",Yc=Object.prototype,Zc=Yc.hasOwnProperty;function Qc(e){var t=this.__data__;if(zt){var o=t[e];return o===Jc?void 0:o}return Zc.call(t,e)?t[e]:void 0}var Xc=Object.prototype,ed=Xc.hasOwnProperty;function td(e){var t=this.__data__;return zt?t[e]!==void 0:ed.call(t,e)}var nd="__lodash_hash_undefined__";function od(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=zt&&t===void 0?nd:t,this}function Qe(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var i=e[t];this.set(i[0],i[1])}}Qe.prototype.clear=qc,Qe.prototype.delete=Gc,Qe.prototype.get=Qc,Qe.prototype.has=td,Qe.prototype.set=od;function id(){this.__data__=[],this.size=0}function wn(e,t){for(var o=e.length;o--;)if(ho(e[o][0],t))return o;return-1}var ad=Array.prototype,rd=ad.splice;function sd(e){var t=this.__data__,o=wn(t,e);if(o<0)return!1;var i=t.length-1;return o==i?t.pop():rd.call(t,o,1),--this.size,!0}function ld(e){var t=this.__data__,o=wn(t,e);return o<0?void 0:t[o][1]}function cd(e){return wn(this.__data__,e)>-1}function dd(e,t){var o=this.__data__,i=wn(o,e);return i<0?(++this.size,o.push([e,t])):o[i][1]=t,this}function Me(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var i=e[t];this.set(i[0],i[1])}}Me.prototype.clear=id,Me.prototype.delete=sd,Me.prototype.get=ld,Me.prototype.has=cd,Me.prototype.set=dd;var jt=Ze(Ce,"Map");function fd(){this.size=0,this.__data__={hash:new Qe,map:new(jt||Me),string:new Qe}}function ud(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Cn(e,t){var o=e.__data__;return ud(t)?o[typeof t=="string"?"string":"hash"]:o.map}function pd(e){var t=Cn(this,e).delete(e);return this.size-=t?1:0,t}function hd(e){return Cn(this,e).get(e)}function md(e){return Cn(this,e).has(e)}function gd(e,t){var o=Cn(this,e),i=o.size;return o.set(e,t),this.size+=o.size==i?0:1,this}function Be(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var i=e[t];this.set(i[0],i[1])}}Be.prototype.clear=fd,Be.prototype.delete=pd,Be.prototype.get=hd,Be.prototype.has=md,Be.prototype.set=gd;var yd="Expected a function";function Co(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(yd);var o=function(){var i=arguments,a=t?t.apply(this,i):i[0],r=o.cache;if(r.has(a))return r.get(a);var s=e.apply(this,i);return o.cache=r.set(a,s)||r,s};return o.cache=new(Co.Cache||Be),o}Co.Cache=Be;var bd=500;function wd(e){var t=Co(e,function(i){return o.size===bd&&o.clear(),i}),o=t.cache;return t}var Cd=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vd=/\\(\\)?/g,Sd=wd(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Cd,function(o,i,a,r){t.push(a?r.replace(vd,"$1"):i||o)}),t});function kd(e){return e==null?"":Hi(e)}function vn(e,t){return ge(e)?e:wo(e,t)?[e]:Sd(kd(e))}function Ht(e){if(typeof e=="string"||yn(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function vo(e,t){t=vn(t,e);for(var o=0,i=t.length;e!=null&&o<i;)e=e[Ht(t[o++])];return o&&o==i?e:void 0}function xe(e,t,o){var i=e==null?void 0:vo(e,t);return i===void 0?o:i}function sa(e,t){for(var o=-1,i=t.length,a=e.length;++o<i;)e[a+o]=t[o];return e}var la=ve?ve.isConcatSpreadable:void 0;function Ed(e){return ge(e)||go(e)||!!(la&&e&&e[la])}function Id(e,t,o,i,a){var r=-1,s=e.length;for(o||(o=Ed),a||(a=[]);++r<s;){var l=e[r];o(l)?sa(a,l):a[a.length]=l}return a}function Td(e){var t=e==null?0:e.length;return t?Id(e):[]}function Ad(e){return Ul(Ql(e,void 0,Td),e+"")}function Fe(){if(!arguments.length)return[];var e=arguments[0];return ge(e)?e:[e]}function Od(){this.__data__=new Me,this.size=0}function Md(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function Bd(e){return this.__data__.get(e)}function xd(e){return this.__data__.has(e)}var Nd=200;function _d(e,t){var o=this.__data__;if(o instanceof Me){var i=o.__data__;if(!jt||i.length<Nd-1)return i.push([e,t]),this.size=++o.size,this;o=this.__data__=new Be(i)}return o.set(e,t),this.size=o.size,this}function Ne(e){var t=this.__data__=new Me(e);this.size=t.size}Ne.prototype.clear=Od,Ne.prototype.delete=Md,Ne.prototype.get=Bd,Ne.prototype.has=xd,Ne.prototype.set=_d;function Ld(e,t){for(var o=-1,i=e==null?0:e.length,a=0,r=[];++o<i;){var s=e[o];t(s,o,e)&&(r[a++]=s)}return r}function Pd(){return[]}var Vd=Object.prototype,Rd=Vd.propertyIsEnumerable,ca=Object.getOwnPropertySymbols,Dd=ca?function(e){return e==null?[]:(e=Object(e),Ld(ca(e),function(t){return Rd.call(e,t)}))}:Pd;function Fd(e,t,o){var i=t(e);return ge(e)?i:sa(i,o(e))}function da(e){return Fd(e,ra,Dd)}var So=Ze(Ce,"DataView"),ko=Ze(Ce,"Promise"),Eo=Ze(Ce,"Set"),fa="[object Map]",$d="[object Object]",ua="[object Promise]",pa="[object Set]",ha="[object WeakMap]",ma="[object DataView]",zd=Ye(So),jd=Ye(jt),Hd=Ye(ko),Kd=Ye(Eo),Ud=Ye(uo),$e=pt;(So&&$e(new So(new ArrayBuffer(1)))!=ma||jt&&$e(new jt)!=fa||ko&&$e(ko.resolve())!=ua||Eo&&$e(new Eo)!=pa||uo&&$e(new uo)!=ha)&&($e=function(e){var t=pt(e),o=t==$d?e.constructor:void 0,i=o?Ye(o):"";if(i)switch(i){case zd:return ma;case jd:return fa;case Hd:return ua;case Kd:return pa;case Ud:return ha}return t});var ga=Ce.Uint8Array,Wd="__lodash_hash_undefined__";function qd(e){return this.__data__.set(e,Wd),this}function Gd(e){return this.__data__.has(e)}function Sn(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new Be;++t<o;)this.add(e[t])}Sn.prototype.add=Sn.prototype.push=qd,Sn.prototype.has=Gd;function Jd(e,t){for(var o=-1,i=e==null?0:e.length;++o<i;)if(t(e[o],o,e))return!0;return!1}function Yd(e,t){return e.has(t)}var Zd=1,Qd=2;function ya(e,t,o,i,a,r){var s=o&Zd,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var d=r.get(e),f=r.get(t);if(d&&f)return d==t&&f==e;var u=-1,p=!0,g=o&Qd?new Sn:void 0;for(r.set(e,t),r.set(t,e);++u<l;){var h=e[u],m=t[u];if(i)var b=s?i(m,h,u,t,e,r):i(h,m,u,e,t,r);if(b!==void 0){if(b)continue;p=!1;break}if(g){if(!Jd(t,function(y,v){if(!Yd(g,v)&&(h===y||a(h,y,o,i,r)))return g.push(v)})){p=!1;break}}else if(!(h===m||a(h,m,o,i,r))){p=!1;break}}return r.delete(e),r.delete(t),p}function Xd(e){var t=-1,o=Array(e.size);return e.forEach(function(i,a){o[++t]=[a,i]}),o}function ef(e){var t=-1,o=Array(e.size);return e.forEach(function(i){o[++t]=i}),o}var tf=1,nf=2,of="[object Boolean]",af="[object Date]",rf="[object Error]",sf="[object Map]",lf="[object Number]",cf="[object RegExp]",df="[object Set]",ff="[object String]",uf="[object Symbol]",pf="[object ArrayBuffer]",hf="[object DataView]",ba=ve?ve.prototype:void 0,Io=ba?ba.valueOf:void 0;function mf(e,t,o,i,a,r,s){switch(o){case hf:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case pf:return!(e.byteLength!=t.byteLength||!r(new ga(e),new ga(t)));case of:case af:case lf:return ho(+e,+t);case rf:return e.name==t.name&&e.message==t.message;case cf:case ff:return e==t+"";case sf:var l=Xd;case df:var c=i&tf;if(l||(l=ef),e.size!=t.size&&!c)return!1;var d=s.get(e);if(d)return d==t;i|=nf,s.set(e,t);var f=ya(l(e),l(t),i,a,r,s);return s.delete(e),f;case uf:if(Io)return Io.call(e)==Io.call(t)}return!1}var gf=1,yf=Object.prototype,bf=yf.hasOwnProperty;function wf(e,t,o,i,a,r){var s=o&gf,l=da(e),c=l.length,d=da(t),f=d.length;if(c!=f&&!s)return!1;for(var u=c;u--;){var p=l[u];if(!(s?p in t:bf.call(t,p)))return!1}var g=r.get(e),h=r.get(t);if(g&&h)return g==t&&h==e;var m=!0;r.set(e,t),r.set(t,e);for(var b=s;++u<c;){p=l[u];var y=e[p],v=t[p];if(i)var T=s?i(v,y,p,t,e,r):i(y,v,p,e,t,r);if(!(T===void 0?y===v||a(y,v,o,i,r):T)){m=!1;break}b||(b=p=="constructor")}if(m&&!b){var S=e.constructor,w=t.constructor;S!=w&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof w=="function"&&w instanceof w)&&(m=!1)}return r.delete(e),r.delete(t),m}var Cf=1,wa="[object Arguments]",Ca="[object Array]",kn="[object Object]",vf=Object.prototype,va=vf.hasOwnProperty;function Sf(e,t,o,i,a,r){var s=ge(e),l=ge(t),c=s?Ca:$e(e),d=l?Ca:$e(t);c=c==wa?kn:c,d=d==wa?kn:d;var f=c==kn,u=d==kn,p=c==d;if(p&&yo(e)){if(!yo(t))return!1;s=!0,f=!1}if(p&&!f)return r||(r=new Ne),s||aa(e)?ya(e,t,o,i,a,r):mf(e,t,c,o,i,a,r);if(!(o&Cf)){var g=f&&va.call(e,"__wrapped__"),h=u&&va.call(t,"__wrapped__");if(g||h){var m=g?e.value():e,b=h?t.value():t;return r||(r=new Ne),a(m,b,o,i,r)}}return p?(r||(r=new Ne),wf(e,t,o,i,a,r)):!1}function En(e,t,o,i,a){return e===t?!0:e==null||t==null||!ht(e)&&!ht(t)?e!==e&&t!==t:Sf(e,t,o,i,En,a)}var kf=1,Ef=2;function If(e,t,o,i){var a=o.length,r=a;if(e==null)return!r;for(e=Object(e);a--;){var s=o[a];if(s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<r;){s=o[a];var l=s[0],c=e[l],d=s[1];if(s[2]){if(c===void 0&&!(l in e))return!1}else{var f=new Ne,u;if(!(u===void 0?En(d,c,kf|Ef,i,f):u))return!1}}return!0}function Sa(e){return e===e&&!De(e)}function Tf(e){for(var t=ra(e),o=t.length;o--;){var i=t[o],a=e[i];t[o]=[i,a,Sa(a)]}return t}function ka(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==void 0||e in Object(o))}}function Af(e){var t=Tf(e);return t.length==1&&t[0][2]?ka(t[0][0],t[0][1]):function(o){return o===e||If(o,e,t)}}function Of(e,t){return e!=null&&t in Object(e)}function Mf(e,t,o){t=vn(t,e);for(var i=-1,a=t.length,r=!1;++i<a;){var s=Ht(t[i]);if(!(r=e!=null&&o(e,s)))break;e=e[s]}return r||++i!=a?r:(a=e==null?0:e.length,!!a&&mo(a)&&po(s,a)&&(ge(e)||go(e)))}function Ea(e,t){return e!=null&&Mf(e,t,Of)}var Bf=1,xf=2;function Nf(e,t){return wo(e)&&Sa(t)?ka(Ht(e),t):function(o){var i=xe(o,e);return i===void 0&&i===t?Ea(o,e):En(t,i,Bf|xf)}}function _f(e){return function(t){return t==null?void 0:t[e]}}function Lf(e){return function(t){return vo(t,e)}}function Pf(e){return wo(e)?_f(Ht(e)):Lf(e)}function Vf(e){return typeof e=="function"?e:e==null?Wi:typeof e=="object"?ge(e)?Nf(e[0],e[1]):Af(e):Pf(e)}var To=function(){return Ce.Date.now()},Rf="Expected a function",Df=Math.max,Ff=Math.min;function $f(e,t,o){var i,a,r,s,l,c,d=0,f=!1,u=!1,p=!0;if(typeof e!="function")throw new TypeError(Rf);t=Ui(t)||0,De(o)&&(f=!!o.leading,u="maxWait"in o,r=u?Df(Ui(o.maxWait)||0,t):r,p="trailing"in o?!!o.trailing:p);function g(k){var E=i,O=a;return i=a=void 0,d=k,s=e.apply(O,E),s}function h(k){return d=k,l=setTimeout(y,t),f?g(k):s}function m(k){var E=k-c,O=k-d,B=t-E;return u?Ff(B,r-O):B}function b(k){var E=k-c,O=k-d;return c===void 0||E>=t||E<0||u&&O>=r}function y(){var k=To();if(b(k))return v(k);l=setTimeout(y,m(k))}function v(k){return l=void 0,p&&i?g(k):(i=a=void 0,s)}function T(){l!==void 0&&clearTimeout(l),d=0,i=c=a=l=void 0}function S(){return l===void 0?s:v(To())}function w(){var k=To(),E=b(k);if(i=arguments,a=this,c=k,E){if(l===void 0)return h(c);if(u)return clearTimeout(l),l=setTimeout(y,t),g(c)}return l===void 0&&(l=setTimeout(y,t)),s}return w.cancel=T,w.flush=S,w}function zf(e,t,o){var i=e==null?0:e.length;if(!i)return-1;var a=i-1;return Wl(e,Vf(t),a)}function Ao(e){for(var t=-1,o=e==null?0:e.length,i={};++t<o;){var a=e[t];Ji(i,a[0],a[1])}return i}function In(e,t){return En(e,t)}function Tn(e){return e==null}function Ia(e){return e===void 0}function jf(e,t,o,i){if(!De(e))return e;t=vn(t,e);for(var a=-1,r=t.length,s=r-1,l=e;l!=null&&++a<r;){var c=Ht(t[a]),d=o;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(a!=s){var f=l[c];d=void 0,d===void 0&&(d=De(f)?f:po(t[a+1])?[]:{})}Zl(l,c,d),l=l[c]}return e}function Hf(e,t,o){for(var i=-1,a=t.length,r={};++i<a;){var s=t[i],l=vo(e,s);o(l,s)&&jf(r,vn(s,e),l)}return r}function Kf(e,t){return Hf(e,t,function(o,i){return Ea(e,i)})}var Ta=Ad(function(e,t){return e==null?{}:Kf(e,t)});const ze=e=>e===void 0,_e=e=>typeof e=="boolean",G=e=>typeof e=="number",Xe=e=>typeof Element>"u"?!1:e instanceof Element,Kt=e=>Tn(e),Uf=e=>me(e)?!Number.isNaN(Number(e)):!1,Wf=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Aa=e=>Object.keys(e);class Oa extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Ma(e,t){throw new Oa(`[${e}] ${t}`)}function ne(e,t){if(process.env.NODE_ENV!=="production"){const o=me(e)?new Oa(`[${e}] ${t}`):e;console.warn(o)}}const qf="utils/dom/style",Ba=(e="")=>e.split(" ").filter(t=>!!t.trim()),xa=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Oo=(e,t)=>{!e||!t.trim()||e.classList.add(...Ba(t))},Ut=(e,t)=>{!e||!t.trim()||e.classList.remove(...Ba(t))},mt=(e,t)=>{var o;if(!K||!e||!t)return"";let i=el(t);i==="float"&&(i="cssFloat");try{const a=e.style[i];if(a)return a;const r=(o=document.defaultView)==null?void 0:o.getComputedStyle(e,"");return r?r[i]:""}catch{return e.style[i]}};function et(e,t="px"){if(!e)return"";if(G(e)||Uf(e))return`${e}${t}`;if(me(e))return e;ne(qf,"binding value must be a string or number")}let An;const Gf=e=>{var t;if(!K)return 0;if(An!==void 0)return An;const o=document.createElement("div");o.className=`${e}-scrollbar__wrap`,o.style.visibility="hidden",o.style.width="100px",o.style.position="absolute",o.style.top="-9999px",document.body.appendChild(o);const i=o.offsetWidth;o.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",o.appendChild(a);const r=a.offsetWidth;return(t=o.parentNode)==null||t.removeChild(o),An=i-r,An};function Jf(e,t){if(!K)return;if(!t){e.scrollTop=0;return}const o=[];let i=t.offsetParent;for(;i!==null&&e!==i&&e.contains(i);)o.push(i),i=i.offsetParent;const a=t.offsetTop+o.reduce((c,d)=>c+d.offsetTop,0),r=a+t.offsetHeight,s=e.scrollTop,l=s+e.clientHeight;a<s?e.scrollTop=a:r>l&&(e.scrollTop=r-e.clientHeight)}const Na="__epPropKey",_=e=>e,Yf=e=>te(e)&&!!e[Na],On=(e,t)=>{if(!te(e)||Yf(e))return e;const{values:o,required:i,default:a,type:r,validator:s}=e,c={type:r,required:!!i,validator:o||s?d=>{let f=!1,u=[];if(o&&(u=Array.from(o),Vi(e,"default")&&u.push(a),f||(f=u.includes(d))),s&&(f||(f=s(d))),!f&&u.length>0){const p=[...new Set(u)].map(g=>JSON.stringify(g)).join(", ");n.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${p}], got value ${JSON.stringify(d)}.`)}return f}:void 0,[Na]:!0};return Vi(e,"default")&&(c.default=a),c},R=e=>Ao(Object.entries(e).map(([t,o])=>[t,On(o,t)])),gt=_([String,Object,Function]),Zf={Close:W.Close},Qf={validating:W.Loading,success:W.CircleCheck,error:W.CircleClose},oe=(e,t)=>{if(e.install=o=>{for(const i of[e,...Object.values(t??{})])o.component(i.name,i)},t)for(const[o,i]of Object.entries(t))e[o]=i;return e},Xf=(e,t)=>(e.install=o=>{o.directive(t,e)},e),tt=e=>(e.install=Je,e),eu=(...e)=>t=>{e.forEach(o=>{Q(o)?o(t):o.value=t})},Wt={tab:"Tab",enter:"Enter",space:"Space",esc:"Escape",delete:"Delete"},X="update:modelValue",Mo="change",_a=["","default","small","large"];var Mn=(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))(Mn||{});const tu=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),qt=e=>e,yt=({from:e,replacement:t,scope:o,version:i,ref:a,type:r="API"},s)=>{n.watch(()=>n.unref(s),l=>{l&&ne(o,`[${r}] ${e} is about to be deprecated in version ${i}, please use ${t} instead.
6
+ For more detail, please visit: ${a}
7
+ `)},{immediate:!0})},nu=(e,t,o,i)=>{let a={offsetX:0,offsetY:0};const r=d=>{const f=d.clientX,u=d.clientY,{offsetX:p,offsetY:g}=a,h=e.value.getBoundingClientRect(),m=h.left,b=h.top,y=h.width,v=h.height,T=document.documentElement.clientWidth,S=document.documentElement.clientHeight,w=-m+p,k=-b+g,E=T-m-y+p,O=S-b-v+g,B=x=>{let I=p+x.clientX-f,L=g+x.clientY-u;i!=null&&i.value||(I=Math.min(Math.max(I,w),E),L=Math.min(Math.max(L,k),O)),a={offsetX:I,offsetY:L},e.value&&(e.value.style.transform=`translate(${et(I)}, ${et(L)})`)},N=()=>{document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",N)};document.addEventListener("mousemove",B),document.addEventListener("mouseup",N)},s=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",r)},l=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",r)},c=()=>{a={offsetX:0,offsetY:0},e.value&&(e.value.style.transform="none")};return n.onMounted(()=>{n.watchEffect(()=>{o.value?s():l()})}),n.onBeforeUnmount(()=>{l()}),{resetPosition:c}};var ou={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 iu=e=>(t,o)=>au(t,o,n.unref(e)),au=(e,t,o)=>xe(o,e,e).replace(/\{(\w+)\}/g,(i,a)=>{var r;return`${(r=t==null?void 0:t[a])!=null?r:`{${a}}`}`}),ru=e=>{const t=n.computed(()=>n.unref(e).name),o=n.isRef(e)?e:n.ref(e);return{lang:t,locale:o,t:iu(e)}},La=Symbol("localeContextKey"),Bo=e=>{const t=e||n.inject(La,n.ref());return ru(n.computed(()=>t.value||ou))},Gt="el",su="is-",nt=(e,t,o,i,a)=>{let r=`${e}-${t}`;return o&&(r+=`-${o}`),i&&(r+=`__${i}`),a&&(r+=`--${a}`),r},Pa=Symbol("namespaceContextKey"),xo=e=>{const t=e||(n.getCurrentInstance()?n.inject(Pa,n.ref(Gt)):n.ref(Gt));return n.computed(()=>n.unref(t)||Gt)},F=(e,t)=>{const o=xo(t);return{namespace:o,b:(m="")=>nt(o.value,e,m,"",""),e:m=>m?nt(o.value,e,"",m,""):"",m:m=>m?nt(o.value,e,"","",m):"",be:(m,b)=>m&&b?nt(o.value,e,m,b,""):"",em:(m,b)=>m&&b?nt(o.value,e,"",m,b):"",bm:(m,b)=>m&&b?nt(o.value,e,m,"",b):"",bem:(m,b,y)=>m&&b&&y?nt(o.value,e,m,b,y):"",is:(m,...b)=>{const y=b.length>=1?b[0]:!0;return m&&y?`${su}${m}`:""},cssVar:m=>{const b={};for(const y in m)m[y]&&(b[`--${o.value}-${y}`]=m[y]);return b},cssVarName:m=>`--${o.value}-${m}`,cssVarBlock:m=>{const b={};for(const y in m)m[y]&&(b[`--${o.value}-${e}-${y}`]=m[y]);return b},cssVarBlockName:m=>`--${o.value}-${e}-${m}`}},lu=(e,t={})=>{n.isRef(e)||Ma("[useLockscreen]","You need to pass a ref param to this function");const o=t.ns||F("popup"),i=n.computed(()=>o.bm("parent","hidden"));if(!K||xa(document.body,i.value))return;let a=0,r=!1,s="0";const l=()=>{setTimeout(()=>{Ut(document==null?void 0:document.body,i.value),r&&document&&(document.body.style.width=s)},200)};n.watch(e,c=>{if(!c){l();return}r=!xa(document.body,i.value),r&&(s=document.body.style.width),a=Gf(o.namespace.value);const d=document.documentElement.clientHeight<document.body.scrollHeight,f=mt(document.body,"overflowY");a>0&&(d||f==="scroll")&&r&&(document.body.style.width=`calc(100% - ${a}px)`),Oo(document.body,i.value)}),n.onScopeDispose(()=>l())},cu=On({type:_(Boolean),default:null}),du=On({type:_(Function)}),fu=e=>{const t=`update:${e}`,o=`onUpdate:${e}`,i=[t],a={[e]:cu,[o]:du};return{useModelToggle:({indicator:s,toggleReason:l,shouldHideWhenRouteChanges:c,shouldProceed:d,onShow:f,onHide:u})=>{const p=n.getCurrentInstance(),{emit:g}=p,h=p.props,m=n.computed(()=>Q(h[o])),b=n.computed(()=>h[e]===null),y=E=>{s.value!==!0&&(s.value=!0,l&&(l.value=E),Q(f)&&f(E))},v=E=>{s.value!==!1&&(s.value=!1,l&&(l.value=E),Q(u)&&u(E))},T=E=>{if(h.disabled===!0||Q(d)&&!d())return;const O=m.value&&K;O&&g(t,!0),(b.value||!O)&&y(E)},S=E=>{if(h.disabled===!0||!K)return;const O=m.value&&K;O&&g(t,!1),(b.value||!O)&&v(E)},w=E=>{_e(E)&&(h.disabled&&E?m.value&&g(t,!1):s.value!==E&&(E?y():v()))},k=()=>{s.value?S():T()};return n.watch(()=>h[e],w),c&&p.appContext.config.globalProperties.$route!==void 0&&n.watch(()=>({...p.proxy.$route}),()=>{c.value&&s.value&&S()}),n.onMounted(()=>{w(h[e])}),{hide:S,show:T,toggle:k,hasUpdateHandler:m}},useModelToggleProps:a,useModelToggleEmits:i}},Va=e=>{const t=n.getCurrentInstance();return n.computed(()=>{var o,i;return(i=(o=t==null?void 0:t.proxy)==null?void 0:o.$props)==null?void 0:i[e]})};var ie="top",de="bottom",fe="right",ae="left",No="auto",Jt=[ie,de,fe,ae],bt="start",Yt="end",uu="clippingParents",Ra="viewport",Zt="popper",pu="reference",Da=Jt.reduce(function(e,t){return e.concat([t+"-"+bt,t+"-"+Yt])},[]),Bn=[].concat(Jt,[No]).reduce(function(e,t){return e.concat([t,t+"-"+bt,t+"-"+Yt])},[]),hu="beforeRead",mu="read",gu="afterRead",yu="beforeMain",bu="main",wu="afterMain",Cu="beforeWrite",vu="write",Su="afterWrite",ku=[hu,mu,gu,yu,bu,wu,Cu,vu,Su];function Se(e){return e?(e.nodeName||"").toLowerCase():null}function ye(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function wt(e){var t=ye(e).Element;return e instanceof t||e instanceof Element}function ue(e){var t=ye(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function _o(e){if(typeof ShadowRoot>"u")return!1;var t=ye(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Eu(e){var t=e.state;Object.keys(t.elements).forEach(function(o){var i=t.styles[o]||{},a=t.attributes[o]||{},r=t.elements[o];!ue(r)||!Se(r)||(Object.assign(r.style,i),Object.keys(a).forEach(function(s){var l=a[s];l===!1?r.removeAttribute(s):r.setAttribute(s,l===!0?"":l)}))})}function Iu(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(i){var a=t.elements[i],r=t.attributes[i]||{},s=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:o[i]),l=s.reduce(function(c,d){return c[d]="",c},{});!ue(a)||!Se(a)||(Object.assign(a.style,l),Object.keys(r).forEach(function(c){a.removeAttribute(c)}))})}}var Fa={name:"applyStyles",enabled:!0,phase:"write",fn:Eu,effect:Iu,requires:["computeStyles"]};function ke(e){return e.split("-")[0]}var ot=Math.max,xn=Math.min,Ct=Math.round;function vt(e,t){t===void 0&&(t=!1);var o=e.getBoundingClientRect(),i=1,a=1;if(ue(e)&&t){var r=e.offsetHeight,s=e.offsetWidth;s>0&&(i=Ct(o.width)/s||1),r>0&&(a=Ct(o.height)/r||1)}return{width:o.width/i,height:o.height/a,top:o.top/a,right:o.right/i,bottom:o.bottom/a,left:o.left/i,x:o.left/i,y:o.top/a}}function Lo(e){var t=vt(e),o=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:i}}function $a(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&_o(o)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Le(e){return ye(e).getComputedStyle(e)}function Tu(e){return["table","td","th"].indexOf(Se(e))>=0}function je(e){return((wt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nn(e){return Se(e)==="html"?e:e.assignedSlot||e.parentNode||(_o(e)?e.host:null)||je(e)}function za(e){return!ue(e)||Le(e).position==="fixed"?null:e.offsetParent}function Au(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,o=navigator.userAgent.indexOf("Trident")!==-1;if(o&&ue(e)){var i=Le(e);if(i.position==="fixed")return null}var a=Nn(e);for(_o(a)&&(a=a.host);ue(a)&&["html","body"].indexOf(Se(a))<0;){var r=Le(a);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return a;a=a.parentNode}return null}function Qt(e){for(var t=ye(e),o=za(e);o&&Tu(o)&&Le(o).position==="static";)o=za(o);return o&&(Se(o)==="html"||Se(o)==="body"&&Le(o).position==="static")?t:o||Au(e)||t}function Po(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Xt(e,t,o){return ot(e,xn(t,o))}function Ou(e,t,o){var i=Xt(e,t,o);return i>o?o:i}function ja(){return{top:0,right:0,bottom:0,left:0}}function Ha(e){return Object.assign({},ja(),e)}function Ka(e,t){return t.reduce(function(o,i){return o[i]=e,o},{})}var Mu=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Ha(typeof e!="number"?e:Ka(e,Jt))};function Bu(e){var t,o=e.state,i=e.name,a=e.options,r=o.elements.arrow,s=o.modifiersData.popperOffsets,l=ke(o.placement),c=Po(l),d=[ae,fe].indexOf(l)>=0,f=d?"height":"width";if(!(!r||!s)){var u=Mu(a.padding,o),p=Lo(r),g=c==="y"?ie:ae,h=c==="y"?de:fe,m=o.rects.reference[f]+o.rects.reference[c]-s[c]-o.rects.popper[f],b=s[c]-o.rects.reference[c],y=Qt(r),v=y?c==="y"?y.clientHeight||0:y.clientWidth||0:0,T=m/2-b/2,S=u[g],w=v-p[f]-u[h],k=v/2-p[f]/2+T,E=Xt(S,k,w),O=c;o.modifiersData[i]=(t={},t[O]=E,t.centerOffset=E-k,t)}}function xu(e){var t=e.state,o=e.options,i=o.element,a=i===void 0?"[data-popper-arrow]":i;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||!$a(t.elements.popper,a)||(t.elements.arrow=a))}var Nu={name:"arrow",enabled:!0,phase:"main",fn:Bu,effect:xu,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function St(e){return e.split("-")[1]}var _u={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Lu(e){var t=e.x,o=e.y,i=window,a=i.devicePixelRatio||1;return{x:Ct(t*a)/a||0,y:Ct(o*a)/a||0}}function Ua(e){var t,o=e.popper,i=e.popperRect,a=e.placement,r=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,f=e.roundOffsets,u=e.isFixed,p=s.x,g=p===void 0?0:p,h=s.y,m=h===void 0?0:h,b=typeof f=="function"?f({x:g,y:m}):{x:g,y:m};g=b.x,m=b.y;var y=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),T=ae,S=ie,w=window;if(d){var k=Qt(o),E="clientHeight",O="clientWidth";if(k===ye(o)&&(k=je(o),Le(k).position!=="static"&&l==="absolute"&&(E="scrollHeight",O="scrollWidth")),k=k,a===ie||(a===ae||a===fe)&&r===Yt){S=de;var B=u&&k===w&&w.visualViewport?w.visualViewport.height:k[E];m-=B-i.height,m*=c?1:-1}if(a===ae||(a===ie||a===de)&&r===Yt){T=fe;var N=u&&k===w&&w.visualViewport?w.visualViewport.width:k[O];g-=N-i.width,g*=c?1:-1}}var x=Object.assign({position:l},d&&_u),I=f===!0?Lu({x:g,y:m}):{x:g,y:m};if(g=I.x,m=I.y,c){var L;return Object.assign({},x,(L={},L[S]=v?"0":"",L[T]=y?"0":"",L.transform=(w.devicePixelRatio||1)<=1?"translate("+g+"px, "+m+"px)":"translate3d("+g+"px, "+m+"px, 0)",L))}return Object.assign({},x,(t={},t[S]=v?m+"px":"",t[T]=y?g+"px":"",t.transform="",t))}function Pu(e){var t=e.state,o=e.options,i=o.gpuAcceleration,a=i===void 0?!0:i,r=o.adaptive,s=r===void 0?!0:r,l=o.roundOffsets,c=l===void 0?!0:l,d={placement:ke(t.placement),variation:St(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,Ua(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ua(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Wa={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Pu,data:{}},_n={passive:!0};function Vu(e){var t=e.state,o=e.instance,i=e.options,a=i.scroll,r=a===void 0?!0:a,s=i.resize,l=s===void 0?!0:s,c=ye(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&d.forEach(function(f){f.addEventListener("scroll",o.update,_n)}),l&&c.addEventListener("resize",o.update,_n),function(){r&&d.forEach(function(f){f.removeEventListener("scroll",o.update,_n)}),l&&c.removeEventListener("resize",o.update,_n)}}var qa={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vu,data:{}},Ru={left:"right",right:"left",bottom:"top",top:"bottom"};function Ln(e){return e.replace(/left|right|bottom|top/g,function(t){return Ru[t]})}var Du={start:"end",end:"start"};function Ga(e){return e.replace(/start|end/g,function(t){return Du[t]})}function Vo(e){var t=ye(e),o=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:o,scrollTop:i}}function Ro(e){return vt(je(e)).left+Vo(e).scrollLeft}function Fu(e){var t=ye(e),o=je(e),i=t.visualViewport,a=o.clientWidth,r=o.clientHeight,s=0,l=0;return i&&(a=i.width,r=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=i.offsetLeft,l=i.offsetTop)),{width:a,height:r,x:s+Ro(e),y:l}}function $u(e){var t,o=je(e),i=Vo(e),a=(t=e.ownerDocument)==null?void 0:t.body,r=ot(o.scrollWidth,o.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=ot(o.scrollHeight,o.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-i.scrollLeft+Ro(e),c=-i.scrollTop;return Le(a||o).direction==="rtl"&&(l+=ot(o.clientWidth,a?a.clientWidth:0)-r),{width:r,height:s,x:l,y:c}}function Do(e){var t=Le(e),o=t.overflow,i=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+a+i)}function Ja(e){return["html","body","#document"].indexOf(Se(e))>=0?e.ownerDocument.body:ue(e)&&Do(e)?e:Ja(Nn(e))}function en(e,t){var o;t===void 0&&(t=[]);var i=Ja(e),a=i===((o=e.ownerDocument)==null?void 0:o.body),r=ye(i),s=a?[r].concat(r.visualViewport||[],Do(i)?i:[]):i,l=t.concat(s);return a?l:l.concat(en(Nn(s)))}function Fo(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function zu(e){var t=vt(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 Ya(e,t){return t===Ra?Fo(Fu(e)):wt(t)?zu(t):Fo($u(je(e)))}function ju(e){var t=en(Nn(e)),o=["absolute","fixed"].indexOf(Le(e).position)>=0,i=o&&ue(e)?Qt(e):e;return wt(i)?t.filter(function(a){return wt(a)&&$a(a,i)&&Se(a)!=="body"}):[]}function Hu(e,t,o){var i=t==="clippingParents"?ju(e):[].concat(t),a=[].concat(i,[o]),r=a[0],s=a.reduce(function(l,c){var d=Ya(e,c);return l.top=ot(d.top,l.top),l.right=xn(d.right,l.right),l.bottom=xn(d.bottom,l.bottom),l.left=ot(d.left,l.left),l},Ya(e,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Za(e){var t=e.reference,o=e.element,i=e.placement,a=i?ke(i):null,r=i?St(i):null,s=t.x+t.width/2-o.width/2,l=t.y+t.height/2-o.height/2,c;switch(a){case ie:c={x:s,y:t.y-o.height};break;case de:c={x:s,y:t.y+t.height};break;case fe:c={x:t.x+t.width,y:l};break;case ae:c={x:t.x-o.width,y:l};break;default:c={x:t.x,y:t.y}}var d=a?Po(a):null;if(d!=null){var f=d==="y"?"height":"width";switch(r){case bt:c[d]=c[d]-(t[f]/2-o[f]/2);break;case Yt:c[d]=c[d]+(t[f]/2-o[f]/2);break}}return c}function tn(e,t){t===void 0&&(t={});var o=t,i=o.placement,a=i===void 0?e.placement:i,r=o.boundary,s=r===void 0?uu:r,l=o.rootBoundary,c=l===void 0?Ra:l,d=o.elementContext,f=d===void 0?Zt:d,u=o.altBoundary,p=u===void 0?!1:u,g=o.padding,h=g===void 0?0:g,m=Ha(typeof h!="number"?h:Ka(h,Jt)),b=f===Zt?pu:Zt,y=e.rects.popper,v=e.elements[p?b:f],T=Hu(wt(v)?v:v.contextElement||je(e.elements.popper),s,c),S=vt(e.elements.reference),w=Za({reference:S,element:y,placement:a}),k=Fo(Object.assign({},y,w)),E=f===Zt?k:S,O={top:T.top-E.top+m.top,bottom:E.bottom-T.bottom+m.bottom,left:T.left-E.left+m.left,right:E.right-T.right+m.right},B=e.modifiersData.offset;if(f===Zt&&B){var N=B[a];Object.keys(O).forEach(function(x){var I=[fe,de].indexOf(x)>=0?1:-1,L=[ie,de].indexOf(x)>=0?"y":"x";O[x]+=N[L]*I})}return O}function Ku(e,t){t===void 0&&(t={});var o=t,i=o.placement,a=o.boundary,r=o.rootBoundary,s=o.padding,l=o.flipVariations,c=o.allowedAutoPlacements,d=c===void 0?Bn:c,f=St(i),u=f?l?Da:Da.filter(function(h){return St(h)===f}):Jt,p=u.filter(function(h){return d.indexOf(h)>=0});p.length===0&&(p=u);var g=p.reduce(function(h,m){return h[m]=tn(e,{placement:m,boundary:a,rootBoundary:r,padding:s})[ke(m)],h},{});return Object.keys(g).sort(function(h,m){return g[h]-g[m]})}function Uu(e){if(ke(e)===No)return[];var t=Ln(e);return[Ga(e),t,Ga(t)]}function Wu(e){var t=e.state,o=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var a=o.mainAxis,r=a===void 0?!0:a,s=o.altAxis,l=s===void 0?!0:s,c=o.fallbackPlacements,d=o.padding,f=o.boundary,u=o.rootBoundary,p=o.altBoundary,g=o.flipVariations,h=g===void 0?!0:g,m=o.allowedAutoPlacements,b=t.options.placement,y=ke(b),v=y===b,T=c||(v||!h?[Ln(b)]:Uu(b)),S=[b].concat(T).reduce(function(Ie,re){return Ie.concat(ke(re)===No?Ku(t,{placement:re,boundary:f,rootBoundary:u,padding:d,flipVariations:h,allowedAutoPlacements:m}):re)},[]),w=t.rects.reference,k=t.rects.popper,E=new Map,O=!0,B=S[0],N=0;N<S.length;N++){var x=S[N],I=ke(x),L=St(x)===bt,q=[ie,de].indexOf(I)>=0,V=q?"width":"height",M=tn(t,{placement:x,boundary:f,rootBoundary:u,altBoundary:p,padding:d}),$=q?L?fe:ae:L?de:ie;w[V]>k[V]&&($=Ln($));var pe=Ln($),Y=[];if(r&&Y.push(M[I]<=0),l&&Y.push(M[$]<=0,M[pe]<=0),Y.every(function(Ie){return Ie})){B=x,O=!1;break}E.set(x,Y)}if(O)for(var Z=h?3:1,ce=function(Ie){var re=S.find(function(U){var lt=E.get(U);if(lt)return lt.slice(0,Ie).every(function(qe){return qe})});if(re)return B=re,"break"},Ee=Z;Ee>0;Ee--){var _t=ce(Ee);if(_t==="break")break}t.placement!==B&&(t.modifiersData[i]._skip=!0,t.placement=B,t.reset=!0)}}var qu={name:"flip",enabled:!0,phase:"main",fn:Wu,requiresIfExists:["offset"],data:{_skip:!1}};function Qa(e,t,o){return o===void 0&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function Xa(e){return[ie,fe,de,ae].some(function(t){return e[t]>=0})}function Gu(e){var t=e.state,o=e.name,i=t.rects.reference,a=t.rects.popper,r=t.modifiersData.preventOverflow,s=tn(t,{elementContext:"reference"}),l=tn(t,{altBoundary:!0}),c=Qa(s,i),d=Qa(l,a,r),f=Xa(c),u=Xa(d);t.modifiersData[o]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:f,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":u})}var Ju={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Gu};function Yu(e,t,o){var i=ke(e),a=[ae,ie].indexOf(i)>=0?-1:1,r=typeof o=="function"?o(Object.assign({},t,{placement:e})):o,s=r[0],l=r[1];return s=s||0,l=(l||0)*a,[ae,fe].indexOf(i)>=0?{x:l,y:s}:{x:s,y:l}}function Zu(e){var t=e.state,o=e.options,i=e.name,a=o.offset,r=a===void 0?[0,0]:a,s=Bn.reduce(function(f,u){return f[u]=Yu(u,t.rects,r),f},{}),l=s[t.placement],c=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[i]=s}var Qu={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Zu};function Xu(e){var t=e.state,o=e.name;t.modifiersData[o]=Za({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var er={name:"popperOffsets",enabled:!0,phase:"read",fn:Xu,data:{}};function ep(e){return e==="x"?"y":"x"}function tp(e){var t=e.state,o=e.options,i=e.name,a=o.mainAxis,r=a===void 0?!0:a,s=o.altAxis,l=s===void 0?!1:s,c=o.boundary,d=o.rootBoundary,f=o.altBoundary,u=o.padding,p=o.tether,g=p===void 0?!0:p,h=o.tetherOffset,m=h===void 0?0:h,b=tn(t,{boundary:c,rootBoundary:d,padding:u,altBoundary:f}),y=ke(t.placement),v=St(t.placement),T=!v,S=Po(y),w=ep(S),k=t.modifiersData.popperOffsets,E=t.rects.reference,O=t.rects.popper,B=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,N=typeof B=="number"?{mainAxis:B,altAxis:B}:Object.assign({mainAxis:0,altAxis:0},B),x=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(k){if(r){var L,q=S==="y"?ie:ae,V=S==="y"?de:fe,M=S==="y"?"height":"width",$=k[S],pe=$+b[q],Y=$-b[V],Z=g?-O[M]/2:0,ce=v===bt?E[M]:O[M],Ee=v===bt?-O[M]:-E[M],_t=t.elements.arrow,Ie=g&&_t?Lo(_t):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ja(),U=re[q],lt=re[V],qe=Xt(0,E[M],Ie[M]),Xn=T?E[M]/2-Z-qe-U-N.mainAxis:ce-qe-U-N.mainAxis,eo=T?-E[M]/2+Z+qe+lt+N.mainAxis:Ee+qe+lt+N.mainAxis,ln=t.elements.arrow&&Qt(t.elements.arrow),yi=ln?S==="y"?ln.clientTop||0:ln.clientLeft||0:0,to=(L=x==null?void 0:x[S])!=null?L:0,bi=$+Xn-to-yi,wi=$+eo-to,ct=Xt(g?xn(pe,bi):pe,$,g?ot(Y,wi):Y);k[S]=ct,I[S]=ct-$}if(l){var cn,Lt=S==="x"?ie:ae,no=S==="x"?de:fe,Ve=k[w],Pt=w==="y"?"height":"width",dn=Ve+b[Lt],oo=Ve-b[no],dt=[ie,ae].indexOf(y)!==-1,fn=(cn=x==null?void 0:x[w])!=null?cn:0,un=dt?dn:Ve-E[Pt]-O[Pt]-fn+N.altAxis,pn=dt?Ve+E[Pt]+O[Pt]-fn-N.altAxis:oo,hn=g&&dt?Ou(un,Ve,pn):Xt(g?un:dn,Ve,g?pn:oo);k[w]=hn,I[w]=hn-Ve}t.modifiersData[i]=I}}var np={name:"preventOverflow",enabled:!0,phase:"main",fn:tp,requiresIfExists:["offset"]};function op(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ip(e){return e===ye(e)||!ue(e)?Vo(e):op(e)}function ap(e){var t=e.getBoundingClientRect(),o=Ct(t.width)/e.offsetWidth||1,i=Ct(t.height)/e.offsetHeight||1;return o!==1||i!==1}function rp(e,t,o){o===void 0&&(o=!1);var i=ue(t),a=ue(t)&&ap(t),r=je(t),s=vt(e,a),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!o)&&((Se(t)!=="body"||Do(r))&&(l=ip(t)),ue(t)?(c=vt(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):r&&(c.x=Ro(r))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function sp(e){var t=new Map,o=new Set,i=[];e.forEach(function(r){t.set(r.name,r)});function a(r){o.add(r.name);var s=[].concat(r.requires||[],r.requiresIfExists||[]);s.forEach(function(l){if(!o.has(l)){var c=t.get(l);c&&a(c)}}),i.push(r)}return e.forEach(function(r){o.has(r.name)||a(r)}),i}function lp(e){var t=sp(e);return ku.reduce(function(o,i){return o.concat(t.filter(function(a){return a.phase===i}))},[])}function cp(e){var t;return function(){return t||(t=new Promise(function(o){Promise.resolve().then(function(){t=void 0,o(e())})})),t}}function dp(e){var t=e.reduce(function(o,i){var a=o[i.name];return o[i.name]=a?Object.assign({},a,i,{options:Object.assign({},a.options,i.options),data:Object.assign({},a.data,i.data)}):i,o},{});return Object.keys(t).map(function(o){return t[o]})}var tr={placement:"bottom",modifiers:[],strategy:"absolute"};function nr(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function $o(e){e===void 0&&(e={});var t=e,o=t.defaultModifiers,i=o===void 0?[]:o,a=t.defaultOptions,r=a===void 0?tr:a;return function(s,l,c){c===void 0&&(c=r);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},tr,r),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},f=[],u=!1,p={state:d,setOptions:function(m){var b=typeof m=="function"?m(d.options):m;h(),d.options=Object.assign({},r,d.options,b),d.scrollParents={reference:wt(s)?en(s):s.contextElement?en(s.contextElement):[],popper:en(l)};var y=lp(dp([].concat(i,d.options.modifiers)));return d.orderedModifiers=y.filter(function(v){return v.enabled}),g(),p.update()},forceUpdate:function(){if(!u){var m=d.elements,b=m.reference,y=m.popper;if(nr(b,y)){d.rects={reference:rp(b,Qt(y),d.options.strategy==="fixed"),popper:Lo(y)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(O){return d.modifiersData[O.name]=Object.assign({},O.data)});for(var v=0;v<d.orderedModifiers.length;v++){if(d.reset===!0){d.reset=!1,v=-1;continue}var T=d.orderedModifiers[v],S=T.fn,w=T.options,k=w===void 0?{}:w,E=T.name;typeof S=="function"&&(d=S({state:d,options:k,name:E,instance:p})||d)}}}},update:cp(function(){return new Promise(function(m){p.forceUpdate(),m(d)})}),destroy:function(){h(),u=!0}};if(!nr(s,l))return p;p.setOptions(c).then(function(m){!u&&c.onFirstUpdate&&c.onFirstUpdate(m)});function g(){d.orderedModifiers.forEach(function(m){var b=m.name,y=m.options,v=y===void 0?{}:y,T=m.effect;if(typeof T=="function"){var S=T({state:d,name:b,instance:p,options:v}),w=function(){};f.push(S||w)}})}function h(){f.forEach(function(m){return m()}),f=[]}return p}}$o();var fp=[qa,er,Wa,Fa];$o({defaultModifiers:fp});var up=[qa,er,Wa,Fa,Qu,qu,np,Nu,Ju],pp=$o({defaultModifiers:up});const hp=(e,t,o={})=>{const i={name:"updateState",enabled:!0,phase:"write",fn:({state:c})=>{const d=mp(c);Object.assign(s.value,d)},requires:["computeStyles"]},a=n.computed(()=>{const{onFirstUpdate:c,placement:d,strategy:f,modifiers:u}=n.unref(o);return{onFirstUpdate:c,placement:d||"bottom",strategy:f||"absolute",modifiers:[...u||[],i,{name:"applyStyles",enabled:!1}]}}),r=n.shallowRef(),s=n.ref({styles:{popper:{position:n.unref(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=()=>{r.value&&(r.value.destroy(),r.value=void 0)};return n.watch(a,c=>{const d=n.unref(r);d&&d.setOptions(c)},{deep:!0}),n.watch([e,t],([c,d])=>{l(),!(!c||!d)&&(r.value=pp(c,d,n.unref(a)))}),n.onBeforeUnmount(()=>{l()}),{state:n.computed(()=>{var c;return{...((c=n.unref(r))==null?void 0:c.state)||{}}}),styles:n.computed(()=>n.unref(s).styles),attributes:n.computed(()=>n.unref(s).attributes),update:()=>{var c;return(c=n.unref(r))==null?void 0:c.update()},forceUpdate:()=>{var c;return(c=n.unref(r))==null?void 0:c.forceUpdate()},instanceRef:n.computed(()=>n.unref(r))}};function mp(e){const t=Object.keys(e.elements),o=Ao(t.map(a=>[a,e.styles[a]||{}])),i=Ao(t.map(a=>[a,e.attributes[a]]));return{styles:o,attributes:i}}const or=e=>{if(!e)return{onClick:Je,onMousedown:Je,onMouseup:Je};let t=!1,o=!1;return{onClick:s=>{t&&o&&e(s),t=o=!1},onMousedown:s=>{t=s.target===s.currentTarget},onMouseup:s=>{o=s.target===s.currentTarget}}};function ir(){let e;const t=(i,a)=>{o(),e=window.setTimeout(i,a)},o=()=>window.clearTimeout(e);return Dt(()=>o()),{registerTimeout:t,cancelTimeout:o}}const zo={prefix:Math.floor(Math.random()*1e4),current:0},gp=Symbol("elIdInjection"),ar=()=>n.getCurrentInstance()?n.inject(gp,zo):zo,it=e=>{const t=ar();!K&&t===zo&&ne("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
8
8
  usage: app.provide(ID_INJECTION_KEY, {
9
9
  prefix: number,
10
10
  current: number,
11
- })`);const o=Bo();return n.computed(()=>n.unref(e)||`${o.value}-id-${t.prefix}-${t.current++}`)};let kt=[];const aa=e=>{const t=e;t.key===Wt.esc&&kt.forEach(o=>o(t))},gp=e=>{n.onMounted(()=>{kt.length===0&&document.addEventListener("keydown",aa),K&&kt.push(e)}),n.onBeforeUnmount(()=>{kt=kt.filter(t=>t!==e),kt.length===0&&K&&document.removeEventListener("keydown",aa)})};let sa;const la=()=>{const e=Bo(),t=ra(),o=n.computed(()=>`${e.value}-popper-container-${t.prefix}`),i=n.computed(()=>`#${o.value}`);return{id:o,selector:i}},yp=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},bp=()=>{const{id:e,selector:t}=la();return n.onBeforeMount(()=>{K&&(process.env.NODE_ENV==="test"||!sa||!document.body.querySelector(t.value))&&(sa=yp(e.value))}),{id:e,selector:t}},wp=R({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),Cp=({showAfter:e,hideAfter:t,autoClose:o,open:i,close:r})=>{const{registerTimeout:a}=ia(),{registerTimeout:s,cancelTimeout:l}=ia();return{onOpen:f=>{a(()=>{i(f);const u=n.unref(o);G(u)&&u>0&&s(()=>{r(f)},u)},n.unref(e))},onClose:f=>{l(),a(()=>{r(f)},n.unref(t))}}},ca=Symbol("elForwardRef"),vp=e=>{const t=o=>{e.value=o};n.provide(ca,{setForwardRef:t})},Sp=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),da={current:0},fa=n.ref(0),ua=2e3,pa=Symbol("elZIndexContextKey"),ha=Symbol("zIndexContextKey"),jo=e=>{const t=n.getCurrentInstance()?n.inject(pa,da):da,o=e||(n.getCurrentInstance()?n.inject(ha,void 0):void 0),i=n.computed(()=>{const s=n.unref(o);return G(s)?s:ua}),r=n.computed(()=>i.value+fa.value),a=()=>(t.current++,fa.value=t.current,r.value);return!K&&!n.inject(pa)&&ne("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
12
- usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:i,currentZIndex:r,nextZIndex:a}},Et=On({type:String,values:_r,required:!1}),ma=Symbol("size"),kp=()=>{const e=n.inject(ma,{});return n.computed(()=>n.unref(e.size)||"")};function Ep(e,{beforeFocus:t,afterFocus:o,beforeBlur:i,afterBlur:r}={}){const a=n.getCurrentInstance(),{emit:s}=a,l=n.shallowRef(),c=n.ref(!1),d=p=>{Q(t)&&t(p)||c.value||(c.value=!0,s("focus",p),o==null||o())},f=p=>{var g;Q(i)&&i(p)||p.relatedTarget&&((g=l.value)!=null&&g.contains(p.relatedTarget))||(c.value=!1,s("blur",p),r==null||r())},u=()=>{var p,g;(p=l.value)!=null&&p.contains(document.activeElement)&&l.value!==document.activeElement||(g=e.value)==null||g.focus()};return n.watch(l,p=>{p&&p.setAttribute("tabindex","-1")}),he(l,"focus",d,!0),he(l,"blur",f,!0),he(l,"click",u,!0),process.env.NODE_ENV==="test"&&n.onMounted(()=>{const p=Xe(e.value)?e.value:document.querySelector("input,textarea");p&&(he(p,"focus",d,!0),he(p,"blur",f,!0))}),{isFocused:c,wrapperRef:l,handleFocus:d,handleBlur:f}}function Ip({afterComposition:e,emit:t}){const o=n.ref(!1),i=l=>{t==null||t("compositionstart",l),o.value=!0},r=l=>{var c;t==null||t("compositionupdate",l);const d=(c=l.target)==null?void 0:c.value,f=d[d.length-1]||"";o.value=!eu(f)},a=l=>{t==null||t("compositionend",l),o.value&&(o.value=!1,n.nextTick(()=>e(l)))};return{isComposing:o,handleComposition:l=>{l.type==="compositionend"?a(l):r(l)},handleCompositionStart:i,handleCompositionUpdate:r,handleCompositionEnd:a}}const ga=Symbol("emptyValuesContextKey"),Tp="use-empty-values",Ap=["",void 0,null],Op=void 0,Mp=R({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>Q(e)?!e():!e}}),xp=(e,t)=>{const o=n.getCurrentInstance()?n.inject(ga,n.ref({})):n.ref({}),i=n.computed(()=>e.emptyValues||o.value.emptyValues||Ap),r=n.computed(()=>Q(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:Q(o.value.valueOnClear)?o.value.valueOnClear():o.value.valueOnClear!==void 0?o.value.valueOnClear:Op),a=s=>i.value.includes(s);return i.value.includes(r.value)||ne(Tp,"value-on-clear should be a value of empty-values"),{emptyValues:i,valueOnClear:r,isEmptyValue:a}},Bp=R({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),rt=e=>Tr(Bp,e),ya=Symbol(),Pn=n.ref();function Vn(e,t=void 0){const o=n.getCurrentInstance()?n.inject(ya,Pn):Pn;return e?n.computed(()=>{var i,r;return(r=(i=o.value)==null?void 0:i[e])!=null?r:t}):o}function Np(e,t){const o=Vn(),i=D(e,n.computed(()=>{var l;return((l=o.value)==null?void 0:l.namespace)||Gt})),r=xo(n.computed(()=>{var l;return(l=o.value)==null?void 0:l.locale})),a=jo(n.computed(()=>{var l;return((l=o.value)==null?void 0:l.zIndex)||ua})),s=n.computed(()=>{var l;return n.unref(t)||((l=o.value)==null?void 0:l.size)||""});return _p(n.computed(()=>n.unref(o)||{})),{ns:i,locale:r,zIndex:a,size:s}}const _p=(e,t,o=!1)=>{var i;const r=!!n.getCurrentInstance(),a=r?Vn():void 0,s=(i=void 0)!=null?i:r?n.provide:void 0;if(!s){ne("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const l=n.computed(()=>{const c=n.unref(e);return a!=null&&a.value?Lp(a.value,c):c});return s(ya,l),s(Lr,n.computed(()=>l.value.locale)),s(Pr,n.computed(()=>l.value.namespace)),s(ha,n.computed(()=>l.value.zIndex)),s(ma,{size:n.computed(()=>l.value.size||"")}),s(ga,n.computed(()=>({emptyValues:l.value.emptyValues,valueOnClear:l.value.valueOnClear}))),(o||!Pn.value)&&(Pn.value=l.value),l},Lp=(e,t)=>{const o=[...new Set([...Ar(e),...Ar(t)])],i={};for(const r of o)i[r]=t[r]!==void 0?t[r]:e[r];return i};var F=(e,t)=>{const o=e.__vccOpts||e;for(const[i,r]of t)o[i]=r;return o};const Pp=R({size:{type:_([Number,String])},color:{type:String}}),Vp=n.defineComponent({name:"ElIcon",inheritAttrs:!1}),Rp=n.defineComponent({...Vp,props:Pp,setup(e){const t=e,o=D("icon"),i=n.computed(()=>{const{size:r,color:a}=t;return!r&&!a?{}:{fontSize:ze(r)?void 0:et(r),"--color":a}});return(r,a)=>(n.openBlock(),n.createElementBlock("i",n.mergeProps({class:n.unref(o).b(),style:n.unref(i)},r.$attrs),[n.renderSlot(r.$slots,"default")],16))}});var Fp=F(Rp,[["__file","icon.vue"]]);const be=oe(Fp),Ho=Symbol("formContextKey"),Rn=Symbol("formItemContextKey"),It=(e,t={})=>{const o=n.ref(void 0),i=t.prop?o:Vr("size"),r=t.global?o:kp(),a=t.form?{size:void 0}:n.inject(Ho,void 0),s=t.formItem?{size:void 0}:n.inject(Rn,void 0);return n.computed(()=>i.value||n.unref(e)||(s==null?void 0:s.size)||(a==null?void 0:a.size)||r.value||"")},Fn=e=>{const t=Vr("disabled"),o=n.inject(Ho,void 0);return n.computed(()=>t.value||n.unref(e)||(o==null?void 0:o.disabled)||!1)},Tt=()=>{const e=n.inject(Ho,void 0),t=n.inject(Rn,void 0);return{form:e,formItem:t}},Dn=(e,{formItemContext:t,disableIdGeneration:o,disableIdManagement:i})=>{o||(o=n.ref(!1)),i||(i=n.ref(!1));const r=n.ref();let a;const s=n.computed(()=>{var l;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((l=t.inputIds)==null?void 0:l.length)<=1)});return n.onMounted(()=>{a=n.watch([n.toRef(e,"id"),o],([l,c])=>{const d=l??(c?void 0:it().value);d!==r.value&&(t!=null&&t.removeInputId&&(r.value&&t.removeInputId(r.value),!(i!=null&&i.value)&&!c&&d&&t.addInputId(d)),r.value=d)},{immediate:!0})}),n.onUnmounted(()=>{a&&a(),t!=null&&t.removeInputId&&r.value&&t.removeInputId(r.value)}),{isLabeledByFormItem:s,inputId:r}},At=4,Dp={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"}},$p=({move:e,size:t,bar:o})=>({[o.size]:t,transform:`translate${o.axis}(${e}%)`}),Ko=Symbol("scrollbarContextKey"),zp=R({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),jp="Thumb";var ba=F(n.defineComponent({__name:"thumb",props:zp,setup(e){const t=e,o=n.inject(Ko),i=D("scrollbar");o||Mr(jp,"can not inject scrollbar context");const r=n.ref(),a=n.ref(),s=n.ref({}),l=n.ref(!1);let c=!1,d=!1,f=K?document.onselectstart:null;const u=n.computed(()=>Dp[t.vertical?"vertical":"horizontal"]),p=n.computed(()=>$p({size:t.size,move:t.move,bar:u.value})),g=n.computed(()=>r.value[u.value.offset]**2/o.wrapElement[u.value.scrollSize]/t.ratio/a.value[u.value.offset]),h=S=>{var E;if(S.stopPropagation(),S.ctrlKey||[1,2].includes(S.button))return;(E=window.getSelection())==null||E.removeAllRanges(),y(S);const O=S.currentTarget;O&&(s.value[u.value.axis]=O[u.value.offset]-(S[u.value.client]-O.getBoundingClientRect()[u.value.direction]))},m=S=>{if(!a.value||!r.value||!o.wrapElement)return;const E=Math.abs(S.target.getBoundingClientRect()[u.value.direction]-S[u.value.client]),O=a.value[u.value.offset]/2,x=(E-O)*100*g.value/r.value[u.value.offset];o.wrapElement[u.value.scroll]=x*o.wrapElement[u.value.scrollSize]/100},y=S=>{S.stopImmediatePropagation(),c=!0,document.addEventListener("mousemove",b),document.addEventListener("mouseup",C),f=document.onselectstart,document.onselectstart=()=>!1},b=S=>{if(!r.value||!a.value||c===!1)return;const E=s.value[u.value.axis];if(!E)return;const O=(r.value.getBoundingClientRect()[u.value.direction]-S[u.value.client])*-1,x=a.value[u.value.offset]-E,N=(O-x)*100*g.value/r.value[u.value.offset];o.wrapElement[u.value.scroll]=N*o.wrapElement[u.value.scrollSize]/100},C=()=>{c=!1,s.value[u.value.axis]=0,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",C),v(),d&&(l.value=!1)},I=()=>{d=!1,l.value=!!t.size},k=()=>{d=!0,l.value=c};n.onBeforeUnmount(()=>{v(),document.removeEventListener("mouseup",C)});const v=()=>{document.onselectstart!==f&&(document.onselectstart=f)};return he(n.toRef(o,"scrollbarElement"),"mousemove",I),he(n.toRef(o,"scrollbarElement"),"mouseleave",k),(S,E)=>(n.openBlock(),n.createBlock(n.Transition,{name:n.unref(i).b("fade"),persisted:""},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{ref_key:"instance",ref:r,class:n.normalizeClass([n.unref(i).e("bar"),n.unref(i).is(n.unref(u).key)]),onMousedown:m},[n.createElementVNode("div",{ref_key:"thumb",ref:a,class:n.normalizeClass(n.unref(i).e("thumb")),style:n.normalizeStyle(n.unref(p)),onMousedown:h},null,38)],34),[[n.vShow,S.always||l.value]])]),_:1},8,["name"]))}}),[["__file","thumb.vue"]]);const Hp=R({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}});var Kp=F(n.defineComponent({__name:"bar",props:Hp,setup(e,{expose:t}){const o=e,i=n.inject(Ko),r=n.ref(0),a=n.ref(0),s=n.ref(""),l=n.ref(""),c=n.ref(1),d=n.ref(1);return t({handleScroll:p=>{if(p){const g=p.offsetHeight-At,h=p.offsetWidth-At;a.value=p.scrollTop*100/g*c.value,r.value=p.scrollLeft*100/h*d.value}},update:()=>{const p=i==null?void 0:i.wrapElement;if(!p)return;const g=p.offsetHeight-At,h=p.offsetWidth-At,m=g**2/p.scrollHeight,y=h**2/p.scrollWidth,b=Math.max(m,o.minSize),C=Math.max(y,o.minSize);c.value=m/(g-m)/(b/(g-b)),d.value=y/(h-y)/(C/(h-C)),l.value=b+At<g?`${b}px`:"",s.value=C+At<h?`${C}px`:""}}),(p,g)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(ba,{move:r.value,ratio:d.value,size:s.value,always:p.always},null,8,["move","ratio","size","always"]),n.createVNode(ba,{move:a.value,ratio:c.value,size:l.value,vertical:"",always:p.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","bar.vue"]]);const Up=R({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:_([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,...rt(["ariaLabel","ariaOrientation"])}),Wp={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(G)},Uo="ElScrollbar",qp=n.defineComponent({name:Uo}),Gp=n.defineComponent({...qp,props:Up,emits:Wp,setup(e,{expose:t,emit:o}){const i=e,r=D("scrollbar");let a,s,l=0,c=0;const d=n.ref(),f=n.ref(),u=n.ref(),p=n.ref(),g=n.computed(()=>{const v={};return i.height&&(v.height=et(i.height)),i.maxHeight&&(v.maxHeight=et(i.maxHeight)),[i.wrapStyle,v]}),h=n.computed(()=>[i.wrapClass,r.e("wrap"),{[r.em("wrap","hidden-default")]:!i.native}]),m=n.computed(()=>[r.e("view"),i.viewClass]),y=()=>{var v;f.value&&((v=p.value)==null||v.handleScroll(f.value),l=f.value.scrollTop,c=f.value.scrollLeft,o("scroll",{scrollTop:f.value.scrollTop,scrollLeft:f.value.scrollLeft}))};function b(v,S){te(v)?f.value.scrollTo(v):G(v)&&G(S)&&f.value.scrollTo(v,S)}const C=v=>{if(!G(v)){ne(Uo,"value must be a number");return}f.value.scrollTop=v},I=v=>{if(!G(v)){ne(Uo,"value must be a number");return}f.value.scrollLeft=v},k=()=>{var v;(v=p.value)==null||v.update()};return n.watch(()=>i.noresize,v=>{v?(a==null||a(),s==null||s()):({stop:a}=Re(u,k),s=he("resize",k))},{immediate:!0}),n.watch(()=>[i.maxHeight,i.height],()=>{i.native||n.nextTick(()=>{var v;k(),f.value&&((v=p.value)==null||v.handleScroll(f.value))})}),n.provide(Ko,n.reactive({scrollbarElement:d,wrapElement:f})),n.onActivated(()=>{f.value&&(f.value.scrollTop=l,f.value.scrollLeft=c)}),n.onMounted(()=>{i.native||n.nextTick(()=>{k()})}),n.onUpdated(()=>k()),t({wrapRef:f,update:k,scrollTo:b,setScrollTop:C,setScrollLeft:I,handleScroll:y}),(v,S)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"scrollbarRef",ref:d,class:n.normalizeClass(n.unref(r).b())},[n.createElementVNode("div",{ref_key:"wrapRef",ref:f,class:n.normalizeClass(n.unref(h)),style:n.normalizeStyle(n.unref(g)),tabindex:v.tabindex,onScroll:y},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(v.tag),{id:v.id,ref_key:"resizeRef",ref:u,class:n.normalizeClass(n.unref(m)),style:n.normalizeStyle(v.viewStyle),role:v.role,"aria-label":v.ariaLabel,"aria-orientation":v.ariaOrientation},{default:n.withCtx(()=>[n.renderSlot(v.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),v.native?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createBlock(Kp,{key:0,ref_key:"barRef",ref:p,always:v.always,"min-size":v.minSize},null,8,["always","min-size"]))],2))}});var Jp=F(Gp,[["__file","scrollbar.vue"]]);const Yp=oe(Jp),Wo=Symbol("popper"),wa=Symbol("popperContent"),Ca=R({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),Zp=n.defineComponent({name:"ElPopper",inheritAttrs:!1}),Qp=n.defineComponent({...Zp,props:Ca,setup(e,{expose:t}){const o=e,i=n.ref(),r=n.ref(),a=n.ref(),s=n.ref(),l=n.computed(()=>o.role),c={triggerRef:i,popperInstanceRef:r,contentRef:a,referenceRef:s,role:l};return t(c),n.provide(Wo,c),(d,f)=>n.renderSlot(d.$slots,"default")}});var Xp=F(Qp,[["__file","popper.vue"]]);const va=R({arrowOffset:{type:Number,default:5}}),eh=n.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),th=n.defineComponent({...eh,props:va,setup(e,{expose:t}){const o=e,i=D("popper"),{arrowOffset:r,arrowRef:a,arrowStyle:s}=n.inject(wa,void 0);return n.watch(()=>o.arrowOffset,l=>{r.value=l}),n.onBeforeUnmount(()=>{a.value=void 0}),t({arrowRef:a}),(l,c)=>(n.openBlock(),n.createElementBlock("span",{ref_key:"arrowRef",ref:a,class:n.normalizeClass(n.unref(i).e("arrow")),style:n.normalizeStyle(n.unref(s)),"data-popper-arrow":""},null,6))}});var nh=F(th,[["__file","arrow.vue"]]);const qo="ElOnlyChild",oh=n.defineComponent({name:qo,setup(e,{slots:t,attrs:o}){var i;const r=n.inject(ca),a=Sp((i=r==null?void 0:r.setForwardRef)!=null?i:Je);return()=>{var s;const l=(s=t.default)==null?void 0:s.call(t,o);if(!l)return null;if(l.length>1)return ne(qo,"requires exact only one valid child."),null;const c=Sa(l);return c?n.withDirectives(n.cloneVNode(c,o),[[a]]):(ne(qo,"no valid child node found"),null)}}});function Sa(e){if(!e)return null;const t=e;for(const o of t){if(te(o))switch(o.type){case n.Comment:continue;case n.Text:case"svg":return ka(o);case n.Fragment:return Sa(o.children);default:return o}return ka(o)}return null}function ka(e){const t=D("only-child");return n.createVNode("span",{class:t.e("content")},[e])}const Ea=R({virtualRef:{type:_(Object)},virtualTriggering:Boolean,onMouseenter:{type:_(Function)},onMouseleave:{type:_(Function)},onClick:{type:_(Function)},onKeydown:{type:_(Function)},onFocus:{type:_(Function)},onBlur:{type:_(Function)},onContextmenu:{type:_(Function)},id:String,open:Boolean}),ih=n.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),rh=n.defineComponent({...ih,props:Ea,setup(e,{expose:t}){const o=e,{role:i,triggerRef:r}=n.inject(Wo,void 0);vp(r);const a=n.computed(()=>l.value?o.id:void 0),s=n.computed(()=>{if(i&&i.value==="tooltip")return o.open&&o.id?o.id:void 0}),l=n.computed(()=>{if(i&&i.value!=="tooltip")return i.value}),c=n.computed(()=>l.value?`${o.open}`:void 0);let d;const f=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return n.onMounted(()=>{n.watch(()=>o.virtualRef,u=>{u&&(r.value=Oe(u))},{immediate:!0}),n.watch(r,(u,p)=>{d==null||d(),d=void 0,Xe(u)&&(f.forEach(g=>{var h;const m=o[g];m&&(u.addEventListener(g.slice(2).toLowerCase(),m),(h=p==null?void 0:p.removeEventListener)==null||h.call(p,g.slice(2).toLowerCase(),m))}),d=n.watch([a,s,l,c],g=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,m)=>{Tn(g[m])?u.removeAttribute(h):u.setAttribute(h,g[m])})},{immediate:!0})),Xe(p)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(g=>p.removeAttribute(g))},{immediate:!0})}),n.onBeforeUnmount(()=>{if(d==null||d(),d=void 0,r.value&&Xe(r.value)){const u=r.value;f.forEach(p=>{const g=o[p];g&&u.removeEventListener(p.slice(2).toLowerCase(),g)}),r.value=void 0}}),t({triggerRef:r}),(u,p)=>u.virtualTriggering?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createBlock(n.unref(oh),n.mergeProps({key:0},u.$attrs,{"aria-controls":n.unref(a),"aria-describedby":n.unref(s),"aria-expanded":n.unref(c),"aria-haspopup":n.unref(l)}),{default:n.withCtx(()=>[n.renderSlot(u.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var ah=F(rh,[["__file","trigger.vue"]]);const Go="focus-trap.focus-after-trapped",Jo="focus-trap.focus-after-released",sh="focus-trap.focusout-prevented",Ia={cancelable:!0,bubbles:!1},lh={cancelable:!0,bubbles:!1},Ta="focusAfterTrapped",Aa="focusAfterReleased",Oa=Symbol("elFocusTrap"),Yo=n.ref(),$n=n.ref(0),Zo=n.ref(0);let zn=0;const Ma=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const r=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||r?NodeFilter.FILTER_SKIP:i.tabIndex>=0||i===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},xa=(e,t)=>{for(const o of e)if(!ch(o,t))return o},ch=(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},dh=e=>{const t=Ma(e),o=xa(t,e),i=xa(t.reverse(),e);return[o,i]},fh=e=>e instanceof HTMLInputElement&&"select"in e,He=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),Zo.value=window.performance.now(),e!==o&&fh(e)&&t&&e.select()}};function Ba(e,t){const o=[...e],i=e.indexOf(t);return i!==-1&&o.splice(i,1),o}const uh=()=>{let e=[];return{push:i=>{const r=e[0];r&&i!==r&&r.pause(),e=Ba(e,i),e.unshift(i)},remove:i=>{var r,a;e=Ba(e,i),(a=(r=e[0])==null?void 0:r.resume)==null||a.call(r)}}},ph=(e,t=!1)=>{const o=document.activeElement;for(const i of e)if(He(i,t),document.activeElement!==o)return},Na=uh(),hh=()=>$n.value>Zo.value,jn=()=>{Yo.value="pointer",$n.value=window.performance.now()},_a=()=>{Yo.value="keyboard",$n.value=window.performance.now()},mh=()=>(n.onMounted(()=>{zn===0&&(document.addEventListener("mousedown",jn),document.addEventListener("touchstart",jn),document.addEventListener("keydown",_a)),zn++}),n.onBeforeUnmount(()=>{zn--,zn<=0&&(document.removeEventListener("mousedown",jn),document.removeEventListener("touchstart",jn),document.removeEventListener("keydown",_a))}),{focusReason:Yo,lastUserFocusTimestamp:$n,lastAutomatedFocusTimestamp:Zo}),Hn=e=>new CustomEvent(sh,{...lh,detail:e}),gh=n.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Ta,Aa,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const o=n.ref();let i,r;const{focusReason:a}=mh();gp(h=>{e.trapped&&!s.paused&&t("release-requested",h)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=h=>{if(!e.loop&&!e.trapped||s.paused)return;const{key:m,altKey:y,ctrlKey:b,metaKey:C,currentTarget:I,shiftKey:k}=h,{loop:v}=e,S=m===Wt.tab&&!y&&!b&&!C,E=document.activeElement;if(S&&E){const O=I,[x,N]=dh(O);if(x&&N){if(!k&&E===N){const T=Hn({focusReason:a.value});t("focusout-prevented",T),T.defaultPrevented||(h.preventDefault(),v&&He(x,!0))}else if(k&&[x,O].includes(E)){const T=Hn({focusReason:a.value});t("focusout-prevented",T),T.defaultPrevented||(h.preventDefault(),v&&He(N,!0))}}else if(E===O){const T=Hn({focusReason:a.value});t("focusout-prevented",T),T.defaultPrevented||h.preventDefault()}}};n.provide(Oa,{focusTrapRef:o,onKeydown:l}),n.watch(()=>e.focusTrapEl,h=>{h&&(o.value=h)},{immediate:!0}),n.watch([o],([h],[m])=>{h&&(h.addEventListener("keydown",l),h.addEventListener("focusin",f),h.addEventListener("focusout",u)),m&&(m.removeEventListener("keydown",l),m.removeEventListener("focusin",f),m.removeEventListener("focusout",u))});const c=h=>{t(Ta,h)},d=h=>t(Aa,h),f=h=>{const m=n.unref(o);if(!m)return;const y=h.target,b=h.relatedTarget,C=y&&m.contains(y);e.trapped||b&&m.contains(b)||(i=b),C&&t("focusin",h),!s.paused&&e.trapped&&(C?r=y:He(r,!0))},u=h=>{const m=n.unref(o);if(!(s.paused||!m))if(e.trapped){const y=h.relatedTarget;!Tn(y)&&!m.contains(y)&&setTimeout(()=>{if(!s.paused&&e.trapped){const b=Hn({focusReason:a.value});t("focusout-prevented",b),b.defaultPrevented||He(r,!0)}},0)}else{const y=h.target;y&&m.contains(y)||t("focusout",h)}};async function p(){await n.nextTick();const h=n.unref(o);if(h){Na.push(s);const m=h.contains(document.activeElement)?i:document.activeElement;if(i=m,!h.contains(m)){const b=new Event(Go,Ia);h.addEventListener(Go,c),h.dispatchEvent(b),b.defaultPrevented||n.nextTick(()=>{let C=e.focusStartEl;me(C)||(He(C),document.activeElement!==C&&(C="first")),C==="first"&&ph(Ma(h),!0),(document.activeElement===m||C==="container")&&He(h)})}}}function g(){const h=n.unref(o);if(h){h.removeEventListener(Go,c);const m=new CustomEvent(Jo,{...Ia,detail:{focusReason:a.value}});h.addEventListener(Jo,d),h.dispatchEvent(m),!m.defaultPrevented&&(a.value=="keyboard"||!hh()||h.contains(document.activeElement))&&He(i??document.body),h.removeEventListener(Jo,d),Na.remove(s)}}return n.onMounted(()=>{e.trapped&&p(),n.watch(()=>e.trapped,h=>{h?p():g()})}),n.onBeforeUnmount(()=>{e.trapped&&g(),o.value&&(o.value.removeEventListener("keydown",l),o.value.removeEventListener("focusin",f),o.value.removeEventListener("focusout",u),o.value=void 0)}),{onKeydown:l}}});function yh(e,t,o,i,r,a){return n.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var La=F(gh,[["render",yh],["__file","focus-trap.vue"]]);const bh=["fixed","absolute"],wh=R({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:_(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:xn,default:"bottom"},popperOptions:{type:_(Object),default:()=>({})},strategy:{type:String,values:bh,default:"absolute"}}),Pa=R({...wh,id:String,style:{type:_([String,Array,Object])},className:{type:_([String,Array,Object])},effect:{type:_(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:_([String,Array,Object])},popperStyle:{type:_([String,Array,Object])},referenceEl:{type:_(Object)},triggerTargetEl:{type:_(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...rt(["ariaLabel"])}),Ch={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},vh=(e,t=[])=>{const{placement:o,strategy:i,popperOptions:r}=e,a={placement:o,strategy:i,...r,modifiers:[...kh(e),...t]};return Eh(a,r==null?void 0:r.modifiers),a},Sh=e=>{if(K)return Oe(e)};function kh(e){const{offset:t,gpuAcceleration:o,fallbackPlacements:i}=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:i}},{name:"computeStyles",options:{gpuAcceleration:o}}]}function Eh(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const Ih=0,Th=e=>{const{popperInstanceRef:t,contentRef:o,triggerRef:i,role:r}=n.inject(Wo,void 0),a=n.ref(),s=n.ref(),l=n.computed(()=>({name:"eventListeners",enabled:!!e.visible})),c=n.computed(()=>{var b;const C=n.unref(a),I=(b=n.unref(s))!=null?b:Ih;return{name:"arrow",enabled:!Ir(C),options:{element:C,padding:I}}}),d=n.computed(()=>({onFirstUpdate:()=>{h()},...vh(e,[n.unref(c),n.unref(l)])})),f=n.computed(()=>Sh(e.referenceEl)||n.unref(i)),{attributes:u,state:p,styles:g,update:h,forceUpdate:m,instanceRef:y}=pp(f,o,d);return n.watch(y,b=>t.value=b),n.onMounted(()=>{n.watch(()=>{var b;return(b=n.unref(f))==null?void 0:b.getBoundingClientRect()},()=>{h()})}),{attributes:u,arrowRef:a,contentRef:o,instanceRef:y,state:p,styles:g,role:r,forceUpdate:m,update:h}},Ah=(e,{attributes:t,styles:o,role:i})=>{const{nextZIndex:r}=jo(),a=D("popper"),s=n.computed(()=>n.unref(t).popper),l=n.ref(G(e.zIndex)?e.zIndex:r()),c=n.computed(()=>[a.b(),a.is("pure",e.pure),a.is(e.effect),e.popperClass]),d=n.computed(()=>[{zIndex:n.unref(l)},n.unref(o).popper,e.popperStyle||{}]),f=n.computed(()=>i.value==="dialog"?"false":void 0),u=n.computed(()=>n.unref(o).arrow||{});return{ariaModal:f,arrowStyle:u,contentAttrs:s,contentClass:c,contentStyle:d,contentZIndex:l,updateZIndex:()=>{l.value=G(e.zIndex)?e.zIndex:r()}}},Oh=(e,t)=>{const o=n.ref(!1),i=n.ref();return{focusStartRef:i,trapped:o,onFocusAfterReleased:d=>{var f;((f=d.detail)==null?void 0:f.focusReason)!=="pointer"&&(i.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:d=>{e.visible&&!o.value&&(d.target&&(i.value=d.target),o.value=!0)},onFocusoutPrevented:d=>{e.trapping||(d.detail.focusReason==="pointer"&&d.preventDefault(),o.value=!1)},onReleaseRequested:()=>{o.value=!1,t("close")}}},Mh=n.defineComponent({name:"ElPopperContent"}),xh=n.defineComponent({...Mh,props:Pa,emits:Ch,setup(e,{expose:t,emit:o}){const i=e,{focusStartRef:r,trapped:a,onFocusAfterReleased:s,onFocusAfterTrapped:l,onFocusInTrap:c,onFocusoutPrevented:d,onReleaseRequested:f}=Oh(i,o),{attributes:u,arrowRef:p,contentRef:g,styles:h,instanceRef:m,role:y,update:b}=Th(i),{ariaModal:C,arrowStyle:I,contentAttrs:k,contentClass:v,contentStyle:S,updateZIndex:E}=Ah(i,{styles:h,attributes:u,role:y}),O=n.inject(Rn,void 0),x=n.ref();n.provide(wa,{arrowStyle:I,arrowRef:p,arrowOffset:x}),O&&n.provide(Rn,{...O,addInputId:Je,removeInputId:Je});let N;const B=(L=!0)=>{b(),L&&E()},T=()=>{B(!1),i.visible&&i.focusOnShow?a.value=!0:i.visible===!1&&(a.value=!1)};return n.onMounted(()=>{n.watch(()=>i.triggerTargetEl,(L,q)=>{N==null||N(),N=void 0;const V=n.unref(L||g.value),M=n.unref(q||g.value);Xe(V)&&(N=n.watch([y,()=>i.ariaLabel,C,()=>i.id],$=>{["role","aria-label","aria-modal","id"].forEach((pe,Y)=>{Tn($[Y])?V.removeAttribute(pe):V.setAttribute(pe,$[Y])})},{immediate:!0})),M!==V&&Xe(M)&&["role","aria-label","aria-modal","id"].forEach($=>{M.removeAttribute($)})},{immediate:!0}),n.watch(()=>i.visible,T,{immediate:!0})}),n.onBeforeUnmount(()=>{N==null||N(),N=void 0}),t({popperContentRef:g,popperInstanceRef:m,updatePopper:B,contentStyle:S}),(L,q)=>(n.openBlock(),n.createElementBlock("div",n.mergeProps({ref_key:"contentRef",ref:g},n.unref(k),{style:n.unref(S),class:n.unref(v),tabindex:"-1",onMouseenter:V=>L.$emit("mouseenter",V),onMouseleave:V=>L.$emit("mouseleave",V)}),[n.createVNode(n.unref(La),{trapped:n.unref(a),"trap-on-focus-in":!0,"focus-trap-el":n.unref(g),"focus-start-el":n.unref(r),onFocusAfterTrapped:n.unref(l),onFocusAfterReleased:n.unref(s),onFocusin:n.unref(c),onFocusoutPrevented:n.unref(d),onReleaseRequested:n.unref(f)},{default:n.withCtx(()=>[n.renderSlot(L.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var Bh=F(xh,[["__file","content.vue"]]);const Nh=oe(Xp),Qo=Symbol("elTooltip"),se=R({...wp,...Pa,appendTo:{type:_([String,Object])},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:_(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...rt(["ariaLabel"])}),nn=R({...Ea,disabled:Boolean,trigger:{type:_([String,Array]),default:"hover"},triggerKeys:{type:_(Array),default:()=>[Wt.enter,Wt.space]}}),{useModelToggleProps:_h,useModelToggleEmits:Lh,useModelToggle:Ph}=du("visible"),Vh=R({...Ca,..._h,...se,...nn,...va,showArrow:{type:Boolean,default:!0}}),Rh=[...Lh,"before-show","before-hide","show","hide","open","close"],Fh=(e,t)=>ee(e)?e.includes(t):e===t,Ot=(e,t,o)=>i=>{Fh(n.unref(e),t)&&o(i)},Dh=n.defineComponent({name:"ElTooltipTrigger"}),$h=n.defineComponent({...Dh,props:nn,setup(e,{expose:t}){const o=e,i=D("tooltip"),{controlled:r,id:a,open:s,onOpen:l,onClose:c,onToggle:d}=n.inject(Qo,void 0),f=n.ref(null),u=()=>{if(n.unref(r)||o.disabled)return!0},p=n.toRef(o,"trigger"),g=Ae(u,Ot(p,"hover",l)),h=Ae(u,Ot(p,"hover",c)),m=Ae(u,Ot(p,"click",k=>{k.button===0&&d(k)})),y=Ae(u,Ot(p,"focus",l)),b=Ae(u,Ot(p,"focus",c)),C=Ae(u,Ot(p,"contextmenu",k=>{k.preventDefault(),d(k)})),I=Ae(u,k=>{const{code:v}=k;o.triggerKeys.includes(v)&&(k.preventDefault(),d(k))});return t({triggerRef:f}),(k,v)=>(n.openBlock(),n.createBlock(n.unref(ah),{id:n.unref(a),"virtual-ref":k.virtualRef,open:n.unref(s),"virtual-triggering":k.virtualTriggering,class:n.normalizeClass(n.unref(i).e("trigger")),onBlur:n.unref(b),onClick:n.unref(m),onContextmenu:n.unref(C),onFocus:n.unref(y),onMouseenter:n.unref(g),onMouseleave:n.unref(h),onKeydown:n.unref(I)},{default:n.withCtx(()=>[n.renderSlot(k.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var zh=F($h,[["__file","trigger.vue"]]);const jh=R({to:{type:_([String,Object]),required:!0},disabled:Boolean});var Hh=F(n.defineComponent({__name:"teleport",props:jh,setup(e){return(t,o)=>t.disabled?n.renderSlot(t.$slots,"default",{key:0}):(n.openBlock(),n.createBlock(n.Teleport,{key:1,to:t.to},[n.renderSlot(t.$slots,"default")],8,["to"]))}}),[["__file","teleport.vue"]]);const Va=oe(Hh),Kh=n.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),Uh=n.defineComponent({...Kh,props:se,setup(e,{expose:t}){const o=e,{selector:i}=la(),r=D("tooltip"),a=n.ref(null);let s;const{controlled:l,id:c,open:d,trigger:f,onClose:u,onOpen:p,onShow:g,onHide:h,onBeforeShow:m,onBeforeHide:y}=n.inject(Qo,void 0),b=n.computed(()=>o.transition||`${r.namespace.value}-fade-in-linear`),C=n.computed(()=>process.env.NODE_ENV==="test"?!0:o.persistent);n.onBeforeUnmount(()=>{s==null||s()});const I=n.computed(()=>n.unref(C)?!0:n.unref(d)),k=n.computed(()=>o.disabled?!1:n.unref(d)),v=n.computed(()=>o.appendTo||i.value),S=n.computed(()=>{var M;return(M=o.style)!=null?M:{}}),E=n.ref(!0),O=()=>{h(),E.value=!0},x=()=>{if(n.unref(l))return!0},N=Ae(x,()=>{o.enterable&&n.unref(f)==="hover"&&p()}),B=Ae(x,()=>{n.unref(f)==="hover"&&u()}),T=()=>{var M,$;($=(M=a.value)==null?void 0:M.updatePopper)==null||$.call(M),m==null||m()},L=()=>{y==null||y()},q=()=>{g(),s=Rs(n.computed(()=>{var M;return(M=a.value)==null?void 0:M.popperContentRef}),()=>{if(n.unref(l))return;n.unref(f)!=="hover"&&u()})},V=()=>{o.virtualTriggering||u()};return n.watch(()=>n.unref(d),M=>{M?E.value=!1:s==null||s()},{flush:"post"}),n.watch(()=>o.content,()=>{var M,$;($=(M=a.value)==null?void 0:M.updatePopper)==null||$.call(M)}),t({contentRef:a}),(M,$)=>(n.openBlock(),n.createBlock(n.unref(Va),{disabled:!M.teleported,to:n.unref(v)},{default:n.withCtx(()=>[n.createVNode(n.Transition,{name:n.unref(b),onAfterLeave:O,onBeforeEnter:T,onAfterEnter:q,onBeforeLeave:L},{default:n.withCtx(()=>[n.unref(I)?n.withDirectives((n.openBlock(),n.createBlock(n.unref(Bh),n.mergeProps({key:0,id:n.unref(c),ref_key:"contentRef",ref:a},M.$attrs,{"aria-label":M.ariaLabel,"aria-hidden":E.value,"boundaries-padding":M.boundariesPadding,"fallback-placements":M.fallbackPlacements,"gpu-acceleration":M.gpuAcceleration,offset:M.offset,placement:M.placement,"popper-options":M.popperOptions,strategy:M.strategy,effect:M.effect,enterable:M.enterable,pure:M.pure,"popper-class":M.popperClass,"popper-style":[M.popperStyle,n.unref(S)],"reference-el":M.referenceEl,"trigger-target-el":M.triggerTargetEl,visible:n.unref(k),"z-index":M.zIndex,onMouseenter:n.unref(N),onMouseleave:n.unref(B),onBlur:V,onClose:n.unref(u)}),{default:n.withCtx(()=>[n.renderSlot(M.$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"])),[[n.vShow,n.unref(k)]]):n.createCommentVNode("v-if",!0)]),_:3},8,["name"])]),_:3},8,["disabled","to"]))}});var Wh=F(Uh,[["__file","content.vue"]]);const qh=n.defineComponent({name:"ElTooltip"}),Gh=n.defineComponent({...qh,props:Vh,emits:Rh,setup(e,{expose:t,emit:o}){const i=e;bp();const r=it(),a=n.ref(),s=n.ref(),l=()=>{var b;const C=n.unref(a);C&&((b=C.popperInstanceRef)==null||b.update())},c=n.ref(!1),d=n.ref(),{show:f,hide:u,hasUpdateHandler:p}=Ph({indicator:c,toggleReason:d}),{onOpen:g,onClose:h}=Cp({showAfter:n.toRef(i,"showAfter"),hideAfter:n.toRef(i,"hideAfter"),autoClose:n.toRef(i,"autoClose"),open:f,close:u}),m=n.computed(()=>_e(i.visible)&&!p.value);n.provide(Qo,{controlled:m,id:r,open:n.readonly(c),trigger:n.toRef(i,"trigger"),onOpen:b=>{g(b)},onClose:b=>{h(b)},onToggle:b=>{n.unref(c)?h(b):g(b)},onShow:()=>{o("show",d.value)},onHide:()=>{o("hide",d.value)},onBeforeShow:()=>{o("before-show",d.value)},onBeforeHide:()=>{o("before-hide",d.value)},updatePopper:l}),n.watch(()=>i.disabled,b=>{b&&c.value&&(c.value=!1)});const y=b=>{var C,I;const k=(I=(C=s.value)==null?void 0:C.contentRef)==null?void 0:I.popperContentRef,v=(b==null?void 0:b.relatedTarget)||document.activeElement;return k&&k.contains(v)};return n.onDeactivated(()=>c.value&&u()),t({popperRef:a,contentRef:s,isFocusInsideContent:y,updatePopper:l,onOpen:g,onClose:h,hide:u}),(b,C)=>(n.openBlock(),n.createBlock(n.unref(Nh),{ref_key:"popperRef",ref:a,role:b.role},{default:n.withCtx(()=>[n.createVNode(zh,{disabled:b.disabled,trigger:b.trigger,"trigger-keys":b.triggerKeys,"virtual-ref":b.virtualRef,"virtual-triggering":b.virtualTriggering},{default:n.withCtx(()=>[b.$slots.default?n.renderSlot(b.$slots,"default",{key:0}):n.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),n.createVNode(Wh,{ref_key:"contentRef",ref:s,"aria-label":b.ariaLabel,"boundaries-padding":b.boundariesPadding,content:b.content,disabled:b.disabled,effect:b.effect,enterable:b.enterable,"fallback-placements":b.fallbackPlacements,"hide-after":b.hideAfter,"gpu-acceleration":b.gpuAcceleration,offset:b.offset,persistent:b.persistent,"popper-class":b.popperClass,"popper-style":b.popperStyle,placement:b.placement,"popper-options":b.popperOptions,pure:b.pure,"raw-content":b.rawContent,"reference-el":b.referenceEl,"trigger-target-el":b.triggerTargetEl,"show-after":b.showAfter,strategy:b.strategy,teleported:b.teleported,transition:b.transition,"virtual-triggering":b.virtualTriggering,"z-index":b.zIndex,"append-to":b.appendTo},{default:n.withCtx(()=>[n.renderSlot(b.$slots,"content",{},()=>[b.rawContent?(n.openBlock(),n.createElementBlock("span",{key:0,innerHTML:b.content},null,8,["innerHTML"])):(n.openBlock(),n.createElementBlock("span",{key:1},n.toDisplayString(b.content),1))]),b.showArrow?(n.openBlock(),n.createBlock(n.unref(nh),{key:0,"arrow-offset":b.arrowOffset},null,8,["arrow-offset"])):n.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 Jh=F(Gh,[["__file","tooltip.vue"]]);const Ra=oe(Jh),Fa=Symbol("buttonGroupContextKey"),Yh=(e,t)=>{yt({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},n.computed(()=>e.type==="text"));const o=n.inject(Fa,void 0),i=Vn("button"),{form:r}=Tt(),a=It(n.computed(()=>o==null?void 0:o.size)),s=Fn(),l=n.ref(),c=n.useSlots(),d=n.computed(()=>e.type||(o==null?void 0:o.type)||""),f=n.computed(()=>{var h,m,y;return(y=(m=e.autoInsertSpace)!=null?m:(h=i.value)==null?void 0:h.autoInsertSpace)!=null?y:!1}),u=n.computed(()=>e.tag==="button"?{ariaDisabled:s.value||e.loading,disabled:s.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),p=n.computed(()=>{var h;const m=(h=c.default)==null?void 0:h.call(c);if(f.value&&(m==null?void 0:m.length)===1){const y=m[0];if((y==null?void 0:y.type)===n.Text){const b=y.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(b.trim())}}return!1});return{_disabled:s,_size:a,_type:d,_ref:l,_props:u,shouldAddSpace:p,handleClick:h=>{if(s.value||e.loading){h.stopPropagation();return}e.nativeType==="reset"&&(r==null||r.resetFields()),t("click",h)}}},Xo=R({size:Et,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:gt},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:gt,default:()=>W.Loading},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:_([String,Object]),default:"button"}}),Zh={click:e=>e instanceof MouseEvent};function J(e,t){Qh(e)&&(e="100%");var o=Xh(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),o&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Kn(e){return Math.min(1,Math.max(0,e))}function Qh(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Xh(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Da(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Un(e){return e<=1?"".concat(Number(e)*100,"%"):e}function at(e){return e.length===1?"0"+e:String(e)}function em(e,t,o){return{r:J(e,255)*255,g:J(t,255)*255,b:J(o,255)*255}}function $a(e,t,o){e=J(e,255),t=J(t,255),o=J(o,255);var i=Math.max(e,t,o),r=Math.min(e,t,o),a=0,s=0,l=(i+r)/2;if(i===r)s=0,a=0;else{var c=i-r;switch(s=l>.5?c/(2-i-r):c/(i+r),i){case e:a=(t-o)/c+(t<o?6:0);break;case t:a=(o-e)/c+2;break;case o:a=(e-t)/c+4;break}a/=6}return{h:a,s,l}}function ei(e,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+(t-e)*(6*o):o<1/2?t:o<2/3?e+(t-e)*(2/3-o)*6:e}function tm(e,t,o){var i,r,a;if(e=J(e,360),t=J(t,100),o=J(o,100),t===0)r=o,a=o,i=o;else{var s=o<.5?o*(1+t):o+t-o*t,l=2*o-s;i=ei(l,s,e+1/3),r=ei(l,s,e),a=ei(l,s,e-1/3)}return{r:i*255,g:r*255,b:a*255}}function za(e,t,o){e=J(e,255),t=J(t,255),o=J(o,255);var i=Math.max(e,t,o),r=Math.min(e,t,o),a=0,s=i,l=i-r,c=i===0?0:l/i;if(i===r)a=0;else{switch(i){case e:a=(t-o)/l+(t<o?6:0);break;case t:a=(o-e)/l+2;break;case o:a=(e-t)/l+4;break}a/=6}return{h:a,s:c,v:s}}function nm(e,t,o){e=J(e,360)*6,t=J(t,100),o=J(o,100);var i=Math.floor(e),r=e-i,a=o*(1-t),s=o*(1-r*t),l=o*(1-(1-r)*t),c=i%6,d=[o,s,a,a,l,o][c],f=[l,o,o,s,a,a][c],u=[a,a,l,o,o,s][c];return{r:d*255,g:f*255,b:u*255}}function ja(e,t,o,i){var r=[at(Math.round(e).toString(16)),at(Math.round(t).toString(16)),at(Math.round(o).toString(16))];return i&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function om(e,t,o,i,r){var a=[at(Math.round(e).toString(16)),at(Math.round(t).toString(16)),at(Math.round(o).toString(16)),at(im(i))];return r&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function im(e){return Math.round(parseFloat(e)*255).toString(16)}function Ha(e){return le(e)/255}function le(e){return parseInt(e,16)}function rm(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var ti={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 am(e){var t={r:0,g:0,b:0},o=1,i=null,r=null,a=null,s=!1,l=!1;return typeof e=="string"&&(e=cm(e)),typeof e=="object"&&(Pe(e.r)&&Pe(e.g)&&Pe(e.b)?(t=em(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Pe(e.h)&&Pe(e.s)&&Pe(e.v)?(i=Un(e.s),r=Un(e.v),t=nm(e.h,i,r),s=!0,l="hsv"):Pe(e.h)&&Pe(e.s)&&Pe(e.l)&&(i=Un(e.s),a=Un(e.l),t=tm(e.h,i,a),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(o=e.a)),o=Da(o),{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:o}}var sm="[-\\+]?\\d+%?",lm="[-\\+]?\\d*\\.\\d+%?",Ke="(?:".concat(lm,")|(?:").concat(sm,")"),ni="[\\s|\\(]+(".concat(Ke,")[,|\\s]+(").concat(Ke,")[,|\\s]+(").concat(Ke,")\\s*\\)?"),oi="[\\s|\\(]+(".concat(Ke,")[,|\\s]+(").concat(Ke,")[,|\\s]+(").concat(Ke,")[,|\\s]+(").concat(Ke,")\\s*\\)?"),we={CSS_UNIT:new RegExp(Ke),rgb:new RegExp("rgb"+ni),rgba:new RegExp("rgba"+oi),hsl:new RegExp("hsl"+ni),hsla:new RegExp("hsla"+oi),hsv:new RegExp("hsv"+ni),hsva:new RegExp("hsva"+oi),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 cm(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(ti[e])e=ti[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var o=we.rgb.exec(e);return o?{r:o[1],g:o[2],b:o[3]}:(o=we.rgba.exec(e),o?{r:o[1],g:o[2],b:o[3],a:o[4]}:(o=we.hsl.exec(e),o?{h:o[1],s:o[2],l:o[3]}:(o=we.hsla.exec(e),o?{h:o[1],s:o[2],l:o[3],a:o[4]}:(o=we.hsv.exec(e),o?{h:o[1],s:o[2],v:o[3]}:(o=we.hsva.exec(e),o?{h:o[1],s:o[2],v:o[3],a:o[4]}:(o=we.hex8.exec(e),o?{r:le(o[1]),g:le(o[2]),b:le(o[3]),a:Ha(o[4]),format:t?"name":"hex8"}:(o=we.hex6.exec(e),o?{r:le(o[1]),g:le(o[2]),b:le(o[3]),format:t?"name":"hex"}:(o=we.hex4.exec(e),o?{r:le(o[1]+o[1]),g:le(o[2]+o[2]),b:le(o[3]+o[3]),a:Ha(o[4]+o[4]),format:t?"name":"hex8"}:(o=we.hex3.exec(e),o?{r:le(o[1]+o[1]),g:le(o[2]+o[2]),b:le(o[3]+o[3]),format:t?"name":"hex"}:!1)))))))))}function Pe(e){return!!we.CSS_UNIT.exec(String(e))}var dm=function(){function e(t,o){t===void 0&&(t=""),o===void 0&&(o={});var i;if(t instanceof e)return t;typeof t=="number"&&(t=rm(t)),this.originalInput=t;var r=am(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=(i=o.format)!==null&&i!==void 0?i:r.format,this.gradientType=o.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),o,i,r,a=t.r/255,s=t.g/255,l=t.b/255;return a<=.03928?o=a/12.92:o=Math.pow((a+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),l<=.03928?r=l/12.92:r=Math.pow((l+.055)/1.055,2.4),.2126*o+.7152*i+.0722*r},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Da(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=za(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=za(this.r,this.g,this.b),o=Math.round(t.h*360),i=Math.round(t.s*100),r=Math.round(t.v*100);return this.a===1?"hsv(".concat(o,", ").concat(i,"%, ").concat(r,"%)"):"hsva(".concat(o,", ").concat(i,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=$a(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=$a(this.r,this.g,this.b),o=Math.round(t.h*360),i=Math.round(t.s*100),r=Math.round(t.l*100);return this.a===1?"hsl(".concat(o,", ").concat(i,"%, ").concat(r,"%)"):"hsla(".concat(o,", ").concat(i,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),ja(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),om(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),o=Math.round(this.g),i=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(o,", ").concat(i,")"):"rgba(".concat(t,", ").concat(o,", ").concat(i,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(o){return"".concat(Math.round(J(o,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(o){return Math.round(J(o,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+ja(this.r,this.g,this.b,!1),o=0,i=Object.entries(ti);o<i.length;o++){var r=i[o],a=r[0],s=r[1];if(t===s)return a}return!1},e.prototype.toString=function(t){var o=!!t;t=t??this.format;var i=!1,r=this.a<1&&this.a>=0,a=!o&&r&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(i=this.toRgbString()),t==="prgb"&&(i=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(i=this.toHexString()),t==="hex3"&&(i=this.toHexString(!0)),t==="hex4"&&(i=this.toHex8String(!0)),t==="hex8"&&(i=this.toHex8String()),t==="name"&&(i=this.toName()),t==="hsl"&&(i=this.toHslString()),t==="hsv"&&(i=this.toHsvString()),i||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.l+=t/100,o.l=Kn(o.l),new e(o)},e.prototype.brighten=function(t){t===void 0&&(t=10);var o=this.toRgb();return o.r=Math.max(0,Math.min(255,o.r-Math.round(255*-(t/100)))),o.g=Math.max(0,Math.min(255,o.g-Math.round(255*-(t/100)))),o.b=Math.max(0,Math.min(255,o.b-Math.round(255*-(t/100)))),new e(o)},e.prototype.darken=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.l-=t/100,o.l=Kn(o.l),new e(o)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.s-=t/100,o.s=Kn(o.s),new e(o)},e.prototype.saturate=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.s+=t/100,o.s=Kn(o.s),new e(o)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var o=this.toHsl(),i=(o.h+t)%360;return o.h=i<0?360+i:i,new e(o)},e.prototype.mix=function(t,o){o===void 0&&(o=50);var i=this.toRgb(),r=new e(t).toRgb(),a=o/100,s={r:(r.r-i.r)*a+i.r,g:(r.g-i.g)*a+i.g,b:(r.b-i.b)*a+i.b,a:(r.a-i.a)*a+i.a};return new e(s)},e.prototype.analogous=function(t,o){t===void 0&&(t=6),o===void 0&&(o=30);var i=this.toHsl(),r=360/o,a=[this];for(i.h=(i.h-(r*t>>1)+720)%360;--t;)i.h=(i.h+r)%360,a.push(new e(i));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var o=this.toHsv(),i=o.h,r=o.s,a=o.v,s=[],l=1/t;t--;)s.push(new e({h:i,s:r,v:a})),a=(a+l)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),o=t.h;return[this,new e({h:(o+72)%360,s:t.s,l:t.l}),new e({h:(o+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var o=this.toRgb(),i=new e(t).toRgb(),r=o.a+i.a*(1-o.a);return new e({r:(o.r*o.a+i.r*i.a*(1-o.a))/r,g:(o.g*o.a+i.g*i.a*(1-o.a))/r,b:(o.b*o.a+i.b*i.a*(1-o.a))/r,a:r})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var o=this.toHsl(),i=o.h,r=[this],a=360/t,s=1;s<t;s++)r.push(new e({h:(i+s*a)%360,s:o.s,l:o.l}));return r},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Ue(e,t=20){return e.mix("#141414",t).toString()}function fm(e){const t=Fn(),o=D("button");return n.computed(()=>{let i={},r=e.color;if(r){const a=r.match(/var\((.*?)\)/);a&&(r=window.getComputedStyle(window.document.documentElement).getPropertyValue(a[1]));const s=new dm(r),l=e.dark?s.tint(20).toString():Ue(s,20);if(e.plain)i=o.cssVarBlock({"bg-color":e.dark?Ue(s,90):s.tint(90).toString(),"text-color":r,"border-color":e.dark?Ue(s,50):s.tint(50).toString(),"hover-text-color":`var(${o.cssVarName("color-white")})`,"hover-bg-color":r,"hover-border-color":r,"active-bg-color":l,"active-text-color":`var(${o.cssVarName("color-white")})`,"active-border-color":l}),t.value&&(i[o.cssVarBlockName("disabled-bg-color")]=e.dark?Ue(s,90):s.tint(90).toString(),i[o.cssVarBlockName("disabled-text-color")]=e.dark?Ue(s,50):s.tint(50).toString(),i[o.cssVarBlockName("disabled-border-color")]=e.dark?Ue(s,80):s.tint(80).toString());else{const c=e.dark?Ue(s,30):s.tint(30).toString(),d=s.isDark()?`var(${o.cssVarName("color-white")})`:`var(${o.cssVarName("color-black")})`;if(i=o.cssVarBlock({"bg-color":r,"text-color":d,"border-color":r,"hover-bg-color":c,"hover-text-color":d,"hover-border-color":c,"active-bg-color":l,"active-border-color":l}),t.value){const f=e.dark?Ue(s,50):s.tint(50).toString();i[o.cssVarBlockName("disabled-bg-color")]=f,i[o.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${o.cssVarName("color-white")})`,i[o.cssVarBlockName("disabled-border-color")]=f}}}return i})}const um=n.defineComponent({name:"ElButton"}),pm=n.defineComponent({...um,props:Xo,emits:Zh,setup(e,{expose:t,emit:o}){const i=e,r=fm(i),a=D("button"),{_ref:s,_size:l,_type:c,_disabled:d,_props:f,shouldAddSpace:u,handleClick:p}=Yh(i,o),g=n.computed(()=>[a.b(),a.m(c.value),a.m(l.value),a.is("disabled",d.value),a.is("loading",i.loading),a.is("plain",i.plain),a.is("round",i.round),a.is("circle",i.circle),a.is("text",i.text),a.is("link",i.link),a.is("has-bg",i.bg)]);return t({ref:s,size:l,type:c,disabled:d,shouldAddSpace:u}),(h,m)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(h.tag),n.mergeProps({ref_key:"_ref",ref:s},n.unref(f),{class:n.unref(g),style:n.unref(r),onClick:n.unref(p)}),{default:n.withCtx(()=>[h.loading?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[h.$slots.loading?n.renderSlot(h.$slots,"loading",{key:0}):(n.openBlock(),n.createBlock(n.unref(be),{key:1,class:n.normalizeClass(n.unref(a).is("loading"))},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(h.loadingIcon)))]),_:1},8,["class"]))],64)):h.icon||h.$slots.icon?(n.openBlock(),n.createBlock(n.unref(be),{key:1},{default:n.withCtx(()=>[h.icon?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(h.icon),{key:0})):n.renderSlot(h.$slots,"icon",{key:1})]),_:3})):n.createCommentVNode("v-if",!0),h.$slots.default?(n.openBlock(),n.createElementBlock("span",{key:2,class:n.normalizeClass({[n.unref(a).em("text","expand")]:n.unref(u)})},[n.renderSlot(h.$slots,"default")],2)):n.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var hm=F(pm,[["__file","button.vue"]]);const mm={size:Xo.size,type:Xo.type},gm=n.defineComponent({name:"ElButtonGroup"}),ym=n.defineComponent({...gm,props:mm,setup(e){const t=e;n.provide(Fa,n.reactive({size:n.toRef(t,"size"),type:n.toRef(t,"type")}));const o=D("button");return(i,r)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(o).b("group"))},[n.renderSlot(i.$slots,"default")],2))}});var Ka=F(ym,[["__file","button-group.vue"]]);const ii=oe(hm,{ButtonGroup:Ka});tt(Ka);var bm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const We=new Map;if(K){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const o of We.values())for(const{documentHandler:i}of o)i(t,e);e=void 0}})}function Ua(e,t){let o=[];return Array.isArray(t.arg)?o=t.arg:Xe(t.arg)&&o.push(t.arg),function(i,r){const a=t.instance.popperRef,s=i.target,l=r==null?void 0:r.target,c=!t||!t.instance,d=!s||!l,f=e.contains(s)||e.contains(l),u=e===s,p=o.length&&o.some(h=>h==null?void 0:h.contains(s))||o.length&&o.includes(l),g=a&&(a.contains(s)||a.contains(l));c||d||f||u||p||g||t.value(i,r)}}const Cm={beforeMount(e,t){We.has(e)||We.set(e,[]),We.get(e).push({documentHandler:Ua(e,t),bindingFn:t.value})},updated(e,t){We.has(e)||We.set(e,[]);const o=We.get(e),i=o.findIndex(a=>a.bindingFn===t.oldValue),r={documentHandler:Ua(e,t),bindingFn:t.value};i>=0?o.splice(i,1,r):o.push(r)},unmounted(e){We.delete(e)}},Wa={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:Et,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...rt(["ariaControls"])},qa={[X]:e=>me(e)||G(e)||_e(e),change:e=>me(e)||G(e)||_e(e)},Mt=Symbol("checkboxGroupContextKey"),vm=({model:e,isChecked:t})=>{const o=n.inject(Mt,void 0),i=n.computed(()=>{var a,s;const l=(a=o==null?void 0:o.max)==null?void 0:a.value,c=(s=o==null?void 0:o.min)==null?void 0:s.value;return!ze(l)&&e.value.length>=l&&!t.value||!ze(c)&&e.value.length<=c&&t.value});return{isDisabled:Fn(n.computed(()=>(o==null?void 0:o.disabled.value)||i.value)),isLimitDisabled:i}},Sm=(e,{model:t,isLimitExceeded:o,hasOwnLabel:i,isDisabled:r,isLabeledByFormItem:a})=>{const s=n.inject(Mt,void 0),{formItem:l}=Tt(),{emit:c}=n.getCurrentInstance();function d(h){var m,y,b,C;return[!0,e.trueValue,e.trueLabel].includes(h)?(y=(m=e.trueValue)!=null?m:e.trueLabel)!=null?y:!0:(C=(b=e.falseValue)!=null?b:e.falseLabel)!=null?C:!1}function f(h,m){c("change",d(h),m)}function u(h){if(o.value)return;const m=h.target;c("change",d(m.checked),h)}async function p(h){o.value||!i.value&&!r.value&&a.value&&(h.composedPath().some(b=>b.tagName==="LABEL")||(t.value=d([!1,e.falseValue,e.falseLabel].includes(t.value)),await n.nextTick(),f(t.value,h)))}const g=n.computed(()=>(s==null?void 0:s.validateEvent)||e.validateEvent);return n.watch(()=>e.modelValue,()=>{g.value&&(l==null||l.validate("change").catch(h=>ne(h)))}),{handleChange:u,onClickRoot:p}},km=e=>{const t=n.ref(!1),{emit:o}=n.getCurrentInstance(),i=n.inject(Mt,void 0),r=n.computed(()=>ze(i)===!1),a=n.ref(!1),s=n.computed({get(){var l,c;return r.value?(l=i==null?void 0:i.modelValue)==null?void 0:l.value:(c=e.modelValue)!=null?c:t.value},set(l){var c,d;r.value&&ee(l)?(a.value=((c=i==null?void 0:i.max)==null?void 0:c.value)!==void 0&&l.length>(i==null?void 0:i.max.value)&&l.length>s.value.length,a.value===!1&&((d=i==null?void 0:i.changeEvent)==null||d.call(i,l))):(o(X,l),t.value=l)}});return{model:s,isGroup:r,isLimitExceeded:a}},Em=(e,t,{model:o})=>{const i=n.inject(Mt,void 0),r=n.ref(!1),a=n.computed(()=>Kt(e.value)?e.label:e.value),s=n.computed(()=>{const f=o.value;return _e(f)?f:ee(f)?te(a.value)?f.map(n.toRaw).some(u=>In(u,a.value)):f.map(n.toRaw).includes(a.value):f!=null?f===e.trueValue||f===e.trueLabel:!!f}),l=It(n.computed(()=>{var f;return(f=i==null?void 0:i.size)==null?void 0:f.value}),{prop:!0}),c=It(n.computed(()=>{var f;return(f=i==null?void 0:i.size)==null?void 0:f.value})),d=n.computed(()=>!!t.default||!Kt(a.value));return{checkboxButtonSize:l,isChecked:s,isFocused:r,checkboxSize:c,hasOwnLabel:d,actualValue:a}},Ga=(e,t)=>{const{formItem:o}=Tt(),{model:i,isGroup:r,isLimitExceeded:a}=km(e),{isFocused:s,isChecked:l,checkboxButtonSize:c,checkboxSize:d,hasOwnLabel:f,actualValue:u}=Em(e,t,{model:i}),{isDisabled:p}=vm({model:i,isChecked:l}),{inputId:g,isLabeledByFormItem:h}=Dn(e,{formItemContext:o,disableIdGeneration:f,disableIdManagement:r}),{handleChange:m,onClickRoot:y}=Sm(e,{model:i,isLimitExceeded:a,hasOwnLabel:f,isDisabled:p,isLabeledByFormItem:h});return(()=>{function C(){var I,k;ee(i.value)&&!i.value.includes(u.value)?i.value.push(u.value):i.value=(k=(I=e.trueValue)!=null?I:e.trueLabel)!=null?k:!0}e.checked&&C()})(),yt({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},n.computed(()=>r.value&&Kt(e.value))),yt({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},n.computed(()=>!!e.trueLabel)),yt({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},n.computed(()=>!!e.falseLabel)),{inputId:g,isLabeledByFormItem:h,isChecked:l,isDisabled:p,isFocused:s,checkboxButtonSize:c,checkboxSize:d,hasOwnLabel:f,model:i,actualValue:u,handleChange:m,onClickRoot:y}},Im=n.defineComponent({name:"ElCheckbox"}),Tm=n.defineComponent({...Im,props:Wa,emits:qa,setup(e){const t=e,o=n.useSlots(),{inputId:i,isLabeledByFormItem:r,isChecked:a,isDisabled:s,isFocused:l,checkboxSize:c,hasOwnLabel:d,model:f,actualValue:u,handleChange:p,onClickRoot:g}=Ga(t,o),h=D("checkbox"),m=n.computed(()=>[h.b(),h.m(c.value),h.is("disabled",s.value),h.is("bordered",t.border),h.is("checked",a.value)]),y=n.computed(()=>[h.e("input"),h.is("disabled",s.value),h.is("checked",a.value),h.is("indeterminate",t.indeterminate),h.is("focus",l.value)]);return(b,C)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(!n.unref(d)&&n.unref(r)?"span":"label"),{class:n.normalizeClass(n.unref(m)),"aria-controls":b.indeterminate?b.ariaControls:null,onClick:n.unref(g)},{default:n.withCtx(()=>{var I,k,v,S;return[n.createElementVNode("span",{class:n.normalizeClass(n.unref(y))},[b.trueValue||b.falseValue||b.trueLabel||b.falseLabel?n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:0,id:n.unref(i),"onUpdate:modelValue":E=>n.isRef(f)?f.value=E:null,class:n.normalizeClass(n.unref(h).e("original")),type:"checkbox",indeterminate:b.indeterminate,name:b.name,tabindex:b.tabindex,disabled:n.unref(s),"true-value":(k=(I=b.trueValue)!=null?I:b.trueLabel)!=null?k:!0,"false-value":(S=(v=b.falseValue)!=null?v:b.falseLabel)!=null?S:!1,onChange:n.unref(p),onFocus:E=>l.value=!0,onBlur:E=>l.value=!1,onClick:n.withModifiers(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[n.vModelCheckbox,n.unref(f)]]):n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:1,id:n.unref(i),"onUpdate:modelValue":E=>n.isRef(f)?f.value=E:null,class:n.normalizeClass(n.unref(h).e("original")),type:"checkbox",indeterminate:b.indeterminate,disabled:n.unref(s),value:n.unref(u),name:b.name,tabindex:b.tabindex,onChange:n.unref(p),onFocus:E=>l.value=!0,onBlur:E=>l.value=!1,onClick:n.withModifiers(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[n.vModelCheckbox,n.unref(f)]]),n.createElementVNode("span",{class:n.normalizeClass(n.unref(h).e("inner"))},null,2)],2),n.unref(d)?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass(n.unref(h).e("label"))},[n.renderSlot(b.$slots,"default"),b.$slots.default?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(b.label),1)],64))],2)):n.createCommentVNode("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var Am=F(Tm,[["__file","checkbox.vue"]]);const Om=n.defineComponent({name:"ElCheckboxButton"}),Mm=n.defineComponent({...Om,props:Wa,emits:qa,setup(e){const t=e,o=n.useSlots(),{isFocused:i,isChecked:r,isDisabled:a,checkboxButtonSize:s,model:l,actualValue:c,handleChange:d}=Ga(t,o),f=n.inject(Mt,void 0),u=D("checkbox"),p=n.computed(()=>{var h,m,y,b;const C=(m=(h=f==null?void 0:f.fill)==null?void 0:h.value)!=null?m:"";return{backgroundColor:C,borderColor:C,color:(b=(y=f==null?void 0:f.textColor)==null?void 0:y.value)!=null?b:"",boxShadow:C?`-1px 0 0 0 ${C}`:void 0}}),g=n.computed(()=>[u.b("button"),u.bm("button",s.value),u.is("disabled",a.value),u.is("checked",r.value),u.is("focus",i.value)]);return(h,m)=>{var y,b,C,I;return n.openBlock(),n.createElementBlock("label",{class:n.normalizeClass(n.unref(g))},[h.trueValue||h.falseValue||h.trueLabel||h.falseLabel?n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:0,"onUpdate:modelValue":k=>n.isRef(l)?l.value=k:null,class:n.normalizeClass(n.unref(u).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:n.unref(a),"true-value":(b=(y=h.trueValue)!=null?y:h.trueLabel)!=null?b:!0,"false-value":(I=(C=h.falseValue)!=null?C:h.falseLabel)!=null?I:!1,onChange:n.unref(d),onFocus:k=>i.value=!0,onBlur:k=>i.value=!1,onClick:n.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[n.vModelCheckbox,n.unref(l)]]):n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:1,"onUpdate:modelValue":k=>n.isRef(l)?l.value=k:null,class:n.normalizeClass(n.unref(u).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:n.unref(a),value:n.unref(c),onChange:n.unref(d),onFocus:k=>i.value=!0,onBlur:k=>i.value=!1,onClick:n.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[n.vModelCheckbox,n.unref(l)]]),h.$slots.default||h.label?(n.openBlock(),n.createElementBlock("span",{key:2,class:n.normalizeClass(n.unref(u).be("button","inner")),style:n.normalizeStyle(n.unref(r)?n.unref(p):void 0)},[n.renderSlot(h.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(h.label),1)])],6)):n.createCommentVNode("v-if",!0)],2)}}});var Ja=F(Mm,[["__file","checkbox-button.vue"]]);const xm=R({modelValue:{type:_(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Et,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...rt(["ariaLabel"])}),Bm={[X]:e=>ee(e),change:e=>ee(e)},Nm=n.defineComponent({name:"ElCheckboxGroup"}),_m=n.defineComponent({...Nm,props:xm,emits:Bm,setup(e,{emit:t}){const o=e,i=D("checkbox"),{formItem:r}=Tt(),{inputId:a,isLabeledByFormItem:s}=Dn(o,{formItemContext:r}),l=async d=>{t(X,d),await n.nextTick(),t("change",d)},c=n.computed({get(){return o.modelValue},set(d){l(d)}});return n.provide(Mt,{...Tr(n.toRefs(o),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:c,changeEvent:l}),n.watch(()=>o.modelValue,()=>{o.validateEvent&&(r==null||r.validate("change").catch(d=>ne(d)))}),(d,f)=>{var u;return n.openBlock(),n.createBlock(n.resolveDynamicComponent(d.tag),{id:n.unref(a),class:n.normalizeClass(n.unref(i).b("group")),role:"group","aria-label":n.unref(s)?void 0:d.ariaLabel||"checkbox-group","aria-labelledby":n.unref(s)?(u=n.unref(r))==null?void 0:u.labelId:void 0},{default:n.withCtx(()=>[n.renderSlot(d.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var Ya=F(_m,[["__file","checkbox-group.vue"]]);const Za=oe(Am,{CheckboxButton:Ja,CheckboxGroup:Ya});tt(Ja);const Qa=tt(Ya),Xa=R({modelValue:{type:[String,Number,Boolean],default:void 0},size:Et,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),Lm=R({...Xa,border:Boolean}),es={[X]:e=>me(e)||G(e)||_e(e),[Mo]:e=>me(e)||G(e)||_e(e)},ts=Symbol("radioGroupKey"),ns=(e,t)=>{const o=n.ref(),i=n.inject(ts,void 0),r=n.computed(()=>!!i),a=n.computed(()=>Kt(e.value)?e.label:e.value),s=n.computed({get(){return r.value?i.modelValue:e.modelValue},set(u){r.value?i.changeEvent(u):t&&t(X,u),o.value.checked=e.modelValue===a.value}}),l=It(n.computed(()=>i==null?void 0:i.size)),c=Fn(n.computed(()=>i==null?void 0:i.disabled)),d=n.ref(!1),f=n.computed(()=>c.value||r.value&&s.value!==a.value?-1:0);return yt({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},n.computed(()=>r.value&&Kt(e.value))),{radioRef:o,isGroup:r,radioGroup:i,focus:d,size:l,disabled:c,tabIndex:f,modelValue:s,actualValue:a}},Pm=n.defineComponent({name:"ElRadio"}),Vm=n.defineComponent({...Pm,props:Lm,emits:es,setup(e,{emit:t}){const o=e,i=D("radio"),{radioRef:r,radioGroup:a,focus:s,size:l,disabled:c,modelValue:d,actualValue:f}=ns(o,t);function u(){n.nextTick(()=>t("change",d.value))}return(p,g)=>{var h;return n.openBlock(),n.createElementBlock("label",{class:n.normalizeClass([n.unref(i).b(),n.unref(i).is("disabled",n.unref(c)),n.unref(i).is("focus",n.unref(s)),n.unref(i).is("bordered",p.border),n.unref(i).is("checked",n.unref(d)===n.unref(f)),n.unref(i).m(n.unref(l))])},[n.createElementVNode("span",{class:n.normalizeClass([n.unref(i).e("input"),n.unref(i).is("disabled",n.unref(c)),n.unref(i).is("checked",n.unref(d)===n.unref(f))])},[n.withDirectives(n.createElementVNode("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":m=>n.isRef(d)?d.value=m:null,class:n.normalizeClass(n.unref(i).e("original")),value:n.unref(f),name:p.name||((h=n.unref(a))==null?void 0:h.name),disabled:n.unref(c),checked:n.unref(d)===n.unref(f),type:"radio",onFocus:m=>s.value=!0,onBlur:m=>s.value=!1,onChange:u,onClick:n.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[n.vModelRadio,n.unref(d)]]),n.createElementVNode("span",{class:n.normalizeClass(n.unref(i).e("inner"))},null,2)],2),n.createElementVNode("span",{class:n.normalizeClass(n.unref(i).e("label")),onKeydown:n.withModifiers(()=>{},["stop"])},[n.renderSlot(p.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(p.label),1)])],42,["onKeydown"])],2)}}});var Rm=F(Vm,[["__file","radio.vue"]]);const Fm=R({...Xa}),Dm=n.defineComponent({name:"ElRadioButton"}),$m=n.defineComponent({...Dm,props:Fm,setup(e){const t=e,o=D("radio"),{radioRef:i,focus:r,size:a,disabled:s,modelValue:l,radioGroup:c,actualValue:d}=ns(t),f=n.computed(()=>({backgroundColor:(c==null?void 0:c.fill)||"",borderColor:(c==null?void 0:c.fill)||"",boxShadow:c!=null&&c.fill?`-1px 0 0 0 ${c.fill}`:"",color:(c==null?void 0:c.textColor)||""}));return(u,p)=>{var g;return n.openBlock(),n.createElementBlock("label",{class:n.normalizeClass([n.unref(o).b("button"),n.unref(o).is("active",n.unref(l)===n.unref(d)),n.unref(o).is("disabled",n.unref(s)),n.unref(o).is("focus",n.unref(r)),n.unref(o).bm("button",n.unref(a))])},[n.withDirectives(n.createElementVNode("input",{ref_key:"radioRef",ref:i,"onUpdate:modelValue":h=>n.isRef(l)?l.value=h:null,class:n.normalizeClass(n.unref(o).be("button","original-radio")),value:n.unref(d),type:"radio",name:u.name||((g=n.unref(c))==null?void 0:g.name),disabled:n.unref(s),onFocus:h=>r.value=!0,onBlur:h=>r.value=!1,onClick:n.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[n.vModelRadio,n.unref(l)]]),n.createElementVNode("span",{class:n.normalizeClass(n.unref(o).be("button","inner")),style:n.normalizeStyle(n.unref(l)===n.unref(d)?n.unref(f):{}),onKeydown:n.withModifiers(()=>{},["stop"])},[n.renderSlot(u.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(u.label),1)])],46,["onKeydown"])],2)}}});var os=F($m,[["__file","radio-button.vue"]]);const zm=R({id:{type:String,default:void 0},size:Et,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},...rt(["ariaLabel"])}),jm=es,Hm=n.defineComponent({name:"ElRadioGroup"}),Km=n.defineComponent({...Hm,props:zm,emits:jm,setup(e,{emit:t}){const o=e,i=D("radio"),r=it(),a=n.ref(),{formItem:s}=Tt(),{inputId:l,isLabeledByFormItem:c}=Dn(o,{formItemContext:s}),d=u=>{t(X,u),n.nextTick(()=>t("change",u))};n.onMounted(()=>{const u=a.value.querySelectorAll("[type=radio]"),p=u[0];!Array.from(u).some(g=>g.checked)&&p&&(p.tabIndex=0)});const f=n.computed(()=>o.name||r.value);return n.provide(ts,n.reactive({...n.toRefs(o),changeEvent:d,name:f})),n.watch(()=>o.modelValue,()=>{o.validateEvent&&(s==null||s.validate("change").catch(u=>ne(u)))}),(u,p)=>(n.openBlock(),n.createElementBlock("div",{id:n.unref(l),ref_key:"radioGroupRef",ref:a,class:n.normalizeClass(n.unref(i).b("group")),role:"radiogroup","aria-label":n.unref(c)?void 0:u.ariaLabel||"radio-group","aria-labelledby":n.unref(c)?n.unref(s).labelId:void 0},[n.renderSlot(u.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}});var is=F(Km,[["__file","radio-group.vue"]]);const rs=oe(Rm,{RadioButton:os,RadioGroup:is}),as=tt(is);tt(os);const ri=R({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:_r},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),Um={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},Wm=n.defineComponent({name:"ElTag"}),qm=n.defineComponent({...Wm,props:ri,emits:Um,setup(e,{emit:t}){const o=e,i=It(),r=D("tag"),a=n.computed(()=>{const{type:d,hit:f,effect:u,closable:p,round:g}=o;return[r.b(),r.is("closable",p),r.m(d||"primary"),r.m(i.value),r.m(u),r.is("hit",f),r.is("round",g)]}),s=d=>{t("close",d)},l=d=>{t("click",d)},c=d=>{d.component.subTree.component.bum=null};return(d,f)=>d.disableTransitions?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass(n.unref(a)),style:n.normalizeStyle({backgroundColor:d.color}),onClick:l},[n.createElementVNode("span",{class:n.normalizeClass(n.unref(r).e("content"))},[n.renderSlot(d.$slots,"default")],2),d.closable?(n.openBlock(),n.createBlock(n.unref(be),{key:0,class:n.normalizeClass(n.unref(r).e("close")),onClick:n.withModifiers(s,["stop"])},{default:n.withCtx(()=>[n.createVNode(n.unref(W.Close))]),_:1},8,["class","onClick"])):n.createCommentVNode("v-if",!0)],6)):(n.openBlock(),n.createBlock(n.Transition,{key:1,name:`${n.unref(r).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:c},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(n.unref(a)),style:n.normalizeStyle({backgroundColor:d.color}),onClick:l},[n.createElementVNode("span",{class:n.normalizeClass(n.unref(r).e("content"))},[n.renderSlot(d.$slots,"default")],2),d.closable?(n.openBlock(),n.createBlock(n.unref(be),{key:0,class:n.normalizeClass(n.unref(r).e("close")),onClick:n.withModifiers(s,["stop"])},{default:n.withCtx(()=>[n.createVNode(n.unref(W.Close))]),_:1},8,["class","onClick"])):n.createCommentVNode("v-if",!0)],6)]),_:3},8,["name"]))}});var Gm=F(qm,[["__file","tag.vue"]]);const Jm=oe(Gm),ss=Symbol("rowContextKey"),Ym=R({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"]}}),Zm=n.defineComponent({name:"ElRow"}),Qm=n.defineComponent({...Zm,props:Ym,setup(e){const t=e,o=D("row"),i=n.computed(()=>t.gutter);n.provide(ss,{gutter:i});const r=n.computed(()=>{const s={};return t.gutter&&(s.marginRight=s.marginLeft=`-${t.gutter/2}px`),s}),a=n.computed(()=>[o.b(),o.is(`justify-${t.justify}`,t.justify!=="start"),o.is(`align-${t.align}`,!!t.align)]);return(s,l)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(s.tag),{class:n.normalizeClass(n.unref(a)),style:n.normalizeStyle(n.unref(r))},{default:n.withCtx(()=>[n.renderSlot(s.$slots,"default")]),_:3},8,["class","style"]))}});var Xm=F(Qm,[["__file","row.vue"]]);const on=oe(Xm),eg=R({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:_([Number,Object]),default:()=>qt({})},sm:{type:_([Number,Object]),default:()=>qt({})},md:{type:_([Number,Object]),default:()=>qt({})},lg:{type:_([Number,Object]),default:()=>qt({})},xl:{type:_([Number,Object]),default:()=>qt({})}}),tg=n.defineComponent({name:"ElCol"}),ng=n.defineComponent({...tg,props:eg,setup(e){const t=e,{gutter:o}=n.inject(ss,{gutter:n.computed(()=>0)}),i=D("col"),r=n.computed(()=>{const s={};return o.value&&(s.paddingLeft=s.paddingRight=`${o.value/2}px`),s}),a=n.computed(()=>{const s=[];return["span","offset","pull","push"].forEach(d=>{const f=t[d];G(f)&&(d==="span"?s.push(i.b(`${t[d]}`)):f>0&&s.push(i.b(`${d}-${t[d]}`)))}),["xs","sm","md","lg","xl"].forEach(d=>{G(t[d])?s.push(i.b(`${d}-${t[d]}`)):te(t[d])&&Object.entries(t[d]).forEach(([f,u])=>{s.push(f!=="span"?i.b(`${d}-${f}-${u}`):i.b(`${d}-${u}`))})}),o.value&&s.push(i.is("guttered")),[i.b(),s]});return(s,l)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(s.tag),{class:n.normalizeClass(n.unref(a)),style:n.normalizeStyle(n.unref(r))},{default:n.withCtx(()=>[n.renderSlot(s.$slots,"default")]),_:3},8,["class","style"]))}});var og=F(ng,[["__file","col.vue"]]);const rn=oe(og),ig=R({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:_([String,Array,Object])},zIndex:{type:_([String,Number])}}),rg={click:e=>e instanceof MouseEvent},ag="overlay";var sg=n.defineComponent({name:"ElOverlay",props:ig,emits:rg,setup(e,{slots:t,emit:o}){const i=D(ag),r=c=>{o("click",c)},{onClick:a,onMousedown:s,onMouseup:l}=oa(e.customMaskEvent?void 0:r);return()=>e.mask?n.createVNode("div",{class:[i.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:a,onMousedown:s,onMouseup:l},[n.renderSlot(t,"default")],Mn.STYLE|Mn.CLASS|Mn.PROPS,["onClick","onMouseup","onMousedown"]):n.h("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[n.renderSlot(t,"default")])}});const lg=sg,ls=Symbol("dialogInjectionKey"),cs=R({center:Boolean,alignCenter:Boolean,closeIcon:{type:gt},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),cg={close:()=>!0},dg=n.defineComponent({name:"ElDialogContent"}),fg=n.defineComponent({...dg,props:cs,emits:cg,setup(e,{expose:t}){const o=e,{t:i}=xo(),{Close:r}=Yf,{dialogRef:a,headerRef:s,bodyId:l,ns:c,style:d}=n.inject(ls),{focusTrapRef:f}=n.inject(Oa),u=n.computed(()=>[c.b(),c.is("fullscreen",o.fullscreen),c.is("draggable",o.draggable),c.is("align-center",o.alignCenter),{[c.m("center")]:o.center}]),p=Xf(f,a),g=n.computed(()=>o.draggable),h=n.computed(()=>o.overflow),{resetPosition:m}=tu(a,s,g,h);return t({resetPosition:m}),(y,b)=>(n.openBlock(),n.createElementBlock("div",{ref:n.unref(p),class:n.normalizeClass(n.unref(u)),style:n.normalizeStyle(n.unref(d)),tabindex:"-1"},[n.createElementVNode("header",{ref_key:"headerRef",ref:s,class:n.normalizeClass([n.unref(c).e("header"),{"show-close":y.showClose}])},[n.renderSlot(y.$slots,"header",{},()=>[n.createElementVNode("span",{role:"heading","aria-level":y.ariaLevel,class:n.normalizeClass(n.unref(c).e("title"))},n.toDisplayString(y.title),11,["aria-level"])]),y.showClose?(n.openBlock(),n.createElementBlock("button",{key:0,"aria-label":n.unref(i)("el.dialog.close"),class:n.normalizeClass(n.unref(c).e("headerbtn")),type:"button",onClick:C=>y.$emit("close")},[n.createVNode(n.unref(be),{class:n.normalizeClass(n.unref(c).e("close"))},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(y.closeIcon||n.unref(r))))]),_:1},8,["class"])],10,["aria-label","onClick"])):n.createCommentVNode("v-if",!0)],2),n.createElementVNode("div",{id:n.unref(l),class:n.normalizeClass(n.unref(c).e("body"))},[n.renderSlot(y.$slots,"default")],10,["id"]),y.$slots.footer?(n.openBlock(),n.createElementBlock("footer",{key:0,class:n.normalizeClass(n.unref(c).e("footer"))},[n.renderSlot(y.$slots,"footer")],2)):n.createCommentVNode("v-if",!0)],6))}});var ug=F(fg,[["__file","dialog-content.vue"]]);const pg=R({...cs,appendToBody:Boolean,appendTo:{type:_([String,Object]),default:"body"},beforeClose:{type:_(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"}}),hg={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[X]:e=>_e(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},mg=(e,t)=>{var o;const r=n.getCurrentInstance().emit,{nextZIndex:a}=jo();let s="";const l=it(),c=it(),d=n.ref(!1),f=n.ref(!1),u=n.ref(!1),p=n.ref((o=e.zIndex)!=null?o:a());let g,h;const m=Vn("namespace",Gt),y=n.computed(()=>{const V={},M=`--${m.value}-dialog`;return e.fullscreen||(e.top&&(V[`${M}-margin-top`]=e.top),e.width&&(V[`${M}-width`]=et(e.width))),V}),b=n.computed(()=>e.alignCenter?{display:"flex"}:{});function C(){r("opened")}function I(){r("closed"),r(X,!1),e.destroyOnClose&&(u.value=!1)}function k(){r("close")}function v(){h==null||h(),g==null||g(),e.openDelay&&e.openDelay>0?{stop:g}=Ti(()=>x(),e.openDelay):x()}function S(){g==null||g(),h==null||h(),e.closeDelay&&e.closeDelay>0?{stop:h}=Ti(()=>N(),e.closeDelay):N()}function E(){function V(M){M||(f.value=!0,d.value=!1)}e.beforeClose?e.beforeClose(V):S()}function O(){e.closeOnClickModal&&E()}function x(){K&&(d.value=!0)}function N(){d.value=!1}function B(){r("openAutoFocus")}function T(){r("closeAutoFocus")}function L(V){var M;((M=V.detail)==null?void 0:M.focusReason)==="pointer"&&V.preventDefault()}e.lockScroll&&su(d);function q(){e.closeOnPressEscape&&E()}return n.watch(()=>e.modelValue,V=>{V?(f.value=!1,v(),u.value=!0,p.value=Ir(e.zIndex)?a():p.value++,n.nextTick(()=>{r("open"),t.value&&(t.value.scrollTop=0)})):d.value&&S()}),n.watch(()=>e.fullscreen,V=>{t.value&&(V?(s=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=s)}),n.onMounted(()=>{e.modelValue&&(d.value=!0,u.value=!0,v())}),{afterEnter:C,afterLeave:I,beforeLeave:k,handleClose:E,onModalClick:O,close:S,doClose:N,onOpenAutoFocus:B,onCloseAutoFocus:T,onCloseRequested:q,onFocusoutPrevented:L,titleId:l,bodyId:c,closed:f,style:y,overlayDialogStyle:b,rendered:u,visible:d,zIndex:p}},gg=n.defineComponent({name:"ElDialog",inheritAttrs:!1}),yg=n.defineComponent({...gg,props:pg,emits:hg,setup(e,{expose:t}){const o=e,i=n.useSlots();yt({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},n.computed(()=>!!i.title));const r=D("dialog"),a=n.ref(),s=n.ref(),l=n.ref(),{visible:c,titleId:d,bodyId:f,style:u,overlayDialogStyle:p,rendered:g,zIndex:h,afterEnter:m,afterLeave:y,beforeLeave:b,handleClose:C,onModalClick:I,onOpenAutoFocus:k,onCloseAutoFocus:v,onCloseRequested:S,onFocusoutPrevented:E}=mg(o,a);n.provide(ls,{dialogRef:a,headerRef:s,bodyId:f,ns:r,rendered:g,style:u});const O=oa(I),x=n.computed(()=>o.draggable&&!o.fullscreen);return t({visible:c,dialogContentRef:l,resetPosition:()=>{var B;(B=l.value)==null||B.resetPosition()}}),(B,T)=>(n.openBlock(),n.createBlock(n.unref(Va),{to:B.appendTo,disabled:B.appendTo!=="body"?!1:!B.appendToBody},{default:n.withCtx(()=>[n.createVNode(n.Transition,{name:"dialog-fade",onAfterEnter:n.unref(m),onAfterLeave:n.unref(y),onBeforeLeave:n.unref(b),persisted:""},{default:n.withCtx(()=>[n.withDirectives(n.createVNode(n.unref(lg),{"custom-mask-event":"",mask:B.modal,"overlay-class":B.modalClass,"z-index":n.unref(h)},{default:n.withCtx(()=>[n.createElementVNode("div",{role:"dialog","aria-modal":"true","aria-label":B.title||void 0,"aria-labelledby":B.title?void 0:n.unref(d),"aria-describedby":n.unref(f),class:n.normalizeClass(`${n.unref(r).namespace.value}-overlay-dialog`),style:n.normalizeStyle(n.unref(p)),onClick:n.unref(O).onClick,onMousedown:n.unref(O).onMousedown,onMouseup:n.unref(O).onMouseup},[n.createVNode(n.unref(La),{loop:"",trapped:n.unref(c),"focus-start-el":"container",onFocusAfterTrapped:n.unref(k),onFocusAfterReleased:n.unref(v),onFocusoutPrevented:n.unref(E),onReleaseRequested:n.unref(S)},{default:n.withCtx(()=>[n.unref(g)?(n.openBlock(),n.createBlock(ug,n.mergeProps({key:0,ref_key:"dialogContentRef",ref:l},B.$attrs,{center:B.center,"align-center":B.alignCenter,"close-icon":B.closeIcon,draggable:n.unref(x),overflow:B.overflow,fullscreen:B.fullscreen,"show-close":B.showClose,title:B.title,"aria-level":B.headerAriaLevel,onClose:n.unref(C)}),n.createSlots({header:n.withCtx(()=>[B.$slots.title?n.renderSlot(B.$slots,"title",{key:1}):n.renderSlot(B.$slots,"header",{key:0,close:n.unref(C),titleId:n.unref(d),titleClass:n.unref(r).e("title")})]),default:n.withCtx(()=>[n.renderSlot(B.$slots,"default")]),_:2},[B.$slots.footer?{name:"footer",fn:n.withCtx(()=>[n.renderSlot(B.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","show-close","title","aria-level","onClose"])):n.createCommentVNode("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,["aria-label","aria-labelledby","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["mask","overlay-class","z-index"]),[[n.vShow,n.unref(c)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var bg=F(yg,[["__file","dialog.vue"]]);const wg=oe(bg),Cg=n.defineComponent({inheritAttrs:!1});function vg(e,t,o,i,r,a){return n.renderSlot(e.$slots,"default")}var Sg=F(Cg,[["render",vg],["__file","collection.vue"]]);const kg=n.defineComponent({name:"ElCollectionItem",inheritAttrs:!1});function Eg(e,t,o,i,r,a){return n.renderSlot(e.$slots,"default")}var Ig=F(kg,[["render",Eg],["__file","collection-item.vue"]]);const Tg="data-el-collection-item",Ag=e=>{const t=`El${e}Collection`,o=`${t}Item`,i=Symbol(t),r=Symbol(o),a={...Sg,name:t,setup(){const l=n.ref(null),c=new Map,d=()=>{const f=n.unref(l);if(!f)return[];const u=Array.from(f.querySelectorAll(`[${Tg}]`));return[...c.values()].sort((g,h)=>u.indexOf(g.ref)-u.indexOf(h.ref))};n.provide(i,{itemMap:c,getItems:d,collectionRef:l})}},s={...Ig,name:o,setup(l,{attrs:c}){const d=n.ref(null),f=n.inject(i,void 0);n.provide(r,{collectionItemRef:d}),n.onMounted(()=>{const u=n.unref(d);u&&f.itemMap.set(u,{ref:u,...c})}),n.onBeforeUnmount(()=>{const u=n.unref(d);f.itemMap.delete(u)})}};return{COLLECTION_INJECTION_KEY:i,COLLECTION_ITEM_INJECTION_KEY:r,ElCollection:a,ElCollectionItem:s}},ai=R({trigger:nn.trigger,effect:{...se.effect,default:"light"},type:{type:_(String)},placement:{type:_(String),default:"bottom"},popperOptions:{type:_(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:_([Number,String]),default:0},maxHeight:{type:_([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,default:"menu"},buttonProps:{type:_(Object)},teleported:se.teleported});R({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:gt}}),R({onKeydown:{type:_(Function)}}),Ag("Dropdown");const ds=Symbol("ElSelectGroup"),Wn=Symbol("ElSelect");function Og(e,t){const o=n.inject(Wn),i=n.inject(ds,{disabled:!1}),r=n.computed(()=>f(De(o.props.modelValue),e.value)),a=n.computed(()=>{var g;if(o.props.multiple){const h=De((g=o.props.modelValue)!=null?g:[]);return!r.value&&h.length>=o.props.multipleLimit&&o.props.multipleLimit>0}else return!1}),s=n.computed(()=>e.label||(te(e.value)?"":e.value)),l=n.computed(()=>e.value||e.label||""),c=n.computed(()=>e.disabled||t.groupDisabled||a.value),d=n.getCurrentInstance(),f=(g=[],h)=>{if(te(e.value)){const m=o.props.valueKey;return g&&g.some(y=>n.toRaw(Be(y,m))===Be(h,m))}else return g&&g.includes(h)},u=()=>{!e.disabled&&!i.disabled&&(o.states.hoveringIndex=o.optionsArray.indexOf(d.proxy))},p=g=>{const h=new RegExp(Uf(g),"i");t.visible=h.test(s.value)||e.created};return n.watch(()=>s.value,()=>{!e.created&&!o.props.remote&&o.setSelected()}),n.watch(()=>e.value,(g,h)=>{const{remote:m,valueKey:y}=o.props;if(g!==h&&(o.onOptionDestroy(h,d.proxy),o.onOptionCreate(d.proxy)),!e.created&&!m){if(y&&te(g)&&te(h)&&g[y]===h[y])return;o.setSelected()}}),n.watch(()=>i.disabled,()=>{t.groupDisabled=i.disabled},{immediate:!0}),{select:o,currentLabel:s,currentValue:l,itemSelected:r,isDisabled:c,hoverItem:u,updateOption:p}}const Mg=n.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=D("select"),o=it(),i=n.computed(()=>[t.be("dropdown","item"),t.is("disabled",n.unref(l)),t.is("selected",n.unref(s)),t.is("hovering",n.unref(p))]),r=n.reactive({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:a,itemSelected:s,isDisabled:l,select:c,hoverItem:d,updateOption:f}=Og(e,r),{visible:u,hover:p}=n.toRefs(r),g=n.getCurrentInstance().proxy;c.onOptionCreate(g),n.onBeforeUnmount(()=>{const m=g.value,{selected:y}=c.states,C=(c.props.multiple?y:[y]).some(I=>I.value===g.value);n.nextTick(()=>{c.states.cachedOptions.get(m)===g&&!C&&c.states.cachedOptions.delete(m)}),c.onOptionDestroy(m,g)});function h(){l.value||c.handleOptionSelect(g)}return{ns:t,id:o,containerKls:i,currentLabel:a,itemSelected:s,isDisabled:l,select:c,hoverItem:d,updateOption:f,visible:u,hover:p,selectOptionClick:h,states:r}}});function xg(e,t,o,i,r,a){return n.withDirectives((n.openBlock(),n.createElementBlock("li",{id:e.id,class:n.normalizeClass(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:e.hoverItem,onClick:n.withModifiers(e.selectOptionClick,["stop"])},[n.renderSlot(e.$slots,"default",{},()=>[n.createElementVNode("span",null,n.toDisplayString(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMouseenter","onClick"])),[[n.vShow,e.visible]])}var si=F(Mg,[["render",xg],["__file","option.vue"]]);const Bg=n.defineComponent({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=n.inject(Wn),t=D("select"),o=n.computed(()=>e.props.popperClass),i=n.computed(()=>e.props.multiple),r=n.computed(()=>e.props.fitInputWidth),a=n.ref("");function s(){var l;a.value=`${(l=e.selectRef)==null?void 0:l.offsetWidth}px`}return n.onMounted(()=>{s(),Re(e.selectRef,s)}),{ns:t,minWidth:a,popperClass:o,isMultiple:i,isFitInputWidth:r}}});function Ng(e,t,o,i,r,a){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:n.normalizeStyle({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.ns.be("dropdown","header"))},[n.renderSlot(e.$slots,"header")],2)):n.createCommentVNode("v-if",!0),n.renderSlot(e.$slots,"default"),e.$slots.footer?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(e.ns.be("dropdown","footer"))},[n.renderSlot(e.$slots,"footer")],2)):n.createCommentVNode("v-if",!0)],6)}var _g=F(Bg,[["render",Ng],["__file","select-dropdown.vue"]]);const Lg=11,Pg=(e,t)=>{const{t:o}=xo(),i=it(),r=D("select"),a=D("input"),s=n.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=n.ref(null),c=n.ref(null),d=n.ref(null),f=n.ref(null),u=n.ref(null),p=n.ref(null),g=n.ref(null),h=n.ref(null),m=n.ref(null),y=n.ref(null),b=n.ref(null),C=n.ref(null),{isComposing:I,handleCompositionStart:k,handleCompositionUpdate:v,handleCompositionEnd:S}=Ip({afterComposition:w=>pn(w)}),{wrapperRef:E,isFocused:O}=Ep(u,{beforeFocus(){return M.value},afterFocus(){e.automaticDropdown&&!x.value&&(x.value=!0,s.menuVisibleOnFocus=!0)},beforeBlur(w){var A,P;return((A=d.value)==null?void 0:A.isFocusInsideContent(w))||((P=f.value)==null?void 0:P.isFocusInsideContent(w))},afterBlur(){x.value=!1,s.menuVisibleOnFocus=!1}}),x=n.ref(!1),N=n.ref(),{form:B,formItem:T}=Tt(),{inputId:L}=Dn(e,{formItemContext:T}),{valueOnClear:q,isEmptyValue:V}=xp(e),M=n.computed(()=>e.disabled||(B==null?void 0:B.disabled)),$=n.computed(()=>ee(e.modelValue)?e.modelValue.length>0:!V(e.modelValue)),pe=n.computed(()=>e.clearable&&!M.value&&s.inputHovering&&$.value),Y=n.computed(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),Z=n.computed(()=>r.is("reverse",Y.value&&x.value)),ce=n.computed(()=>(T==null?void 0:T.validateState)||""),Ee=n.computed(()=>Zf[ce.value]),_t=n.computed(()=>e.remote?300:0),Ie=n.computed(()=>e.loading?e.loadingText||o("el.select.loading"):e.remote&&!s.inputValue&&s.options.size===0?!1:e.filterable&&s.inputValue&&s.options.size>0&&ae.value===0?e.noMatchText||o("el.select.noMatch"):s.options.size===0?e.noDataText||o("el.select.noData"):null),ae=n.computed(()=>U.value.filter(w=>w.visible).length),U=n.computed(()=>{const w=Array.from(s.options.values()),A=[];return s.optionValues.forEach(P=>{const j=w.findIndex(Ge=>Ge.value===P);j>-1&&A.push(w[j])}),A.length>=w.length?A:w}),lt=n.computed(()=>Array.from(s.cachedOptions.values())),qe=n.computed(()=>{const w=U.value.filter(A=>!A.created).some(A=>A.currentLabel===s.inputValue);return e.filterable&&e.allowCreate&&s.inputValue!==""&&!w}),Xn=()=>{e.filterable&&Q(e.filterMethod)||e.filterable&&e.remote&&Q(e.remoteMethod)||U.value.forEach(w=>{var A;(A=w.updateOption)==null||A.call(w,s.inputValue)})},eo=It(),ln=n.computed(()=>["small"].includes(eo.value)?"small":"default"),yi=n.computed({get(){return x.value&&Ie.value!==!1},set(w){x.value=w}}),to=n.computed(()=>{if(e.multiple&&!ze(e.modelValue))return De(e.modelValue).length===0&&!s.inputValue;const w=ee(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||ze(w)?!s.inputValue:!0}),bi=n.computed(()=>{var w;const A=(w=e.placeholder)!=null?w:o("el.select.placeholder");return e.multiple||!$.value?A:s.selectedLabel}),wi=n.computed(()=>so?null:"mouseenter");n.watch(()=>e.modelValue,(w,A)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(s.inputValue="",ct("")),Lt(),!In(w,A)&&e.validateEvent&&(T==null||T.validate("change").catch(P=>ne(P)))},{flush:"post",deep:!0}),n.watch(()=>x.value,w=>{w?ct(s.inputValue):(s.inputValue="",s.previousQuery=null,s.isBeforeHide=!0),t("visible-change",w)}),n.watch(()=>s.options.entries(),()=>{var w;if(!K)return;const A=((w=l.value)==null?void 0:w.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!ze(e.modelValue)||!Array.from(A).includes(document.activeElement))&&Lt(),e.defaultFirstOption&&(e.filterable||e.remote)&&ae.value&&cn()},{flush:"post"}),n.watch(()=>s.hoveringIndex,w=>{G(w)&&w>-1?N.value=U.value[w]||{}:N.value={},U.value.forEach(A=>{A.hover=N.value===A})}),n.watchEffect(()=>{s.isBeforeHide||Xn()});const ct=w=>{s.previousQuery===w||I.value||(s.previousQuery=w,e.filterable&&Q(e.filterMethod)?e.filterMethod(w):e.filterable&&e.remote&&Q(e.remoteMethod)&&e.remoteMethod(w),e.defaultFirstOption&&(e.filterable||e.remote)&&ae.value?n.nextTick(cn):n.nextTick(Ve))},cn=()=>{const w=U.value.filter(j=>j.visible&&!j.disabled&&!j.states.groupDisabled),A=w.find(j=>j.created),P=w[0];s.hoveringIndex=As(U.value,A||P)},Lt=()=>{if(e.multiple)s.selectedLabel="";else{const A=ee(e.modelValue)?e.modelValue[0]:e.modelValue,P=no(A);s.selectedLabel=P.currentLabel,s.selected=[P];return}const w=[];ze(e.modelValue)||De(e.modelValue).forEach(A=>{w.push(no(A))}),s.selected=w},no=w=>{let A;const P=co(w).toLowerCase()==="object",j=co(w).toLowerCase()==="null",Ge=co(w).toLowerCase()==="undefined";for(let ft=s.cachedOptions.size-1;ft>=0;ft--){const Te=lt.value[ft];if(P?Be(Te.value,e.valueKey)===Be(w,e.valueKey):Te.value===w){A={value:w,currentLabel:Te.currentLabel,get isDisabled(){return Te.isDisabled}};break}}if(A)return A;const Vt=P?w.label:!j&&!Ge?w:"";return{value:w,currentLabel:Vt}},Ve=()=>{s.hoveringIndex=U.value.findIndex(w=>s.selected.some(A=>Ci(A)===Ci(w)))},Pt=()=>{s.selectionWidth=c.value.getBoundingClientRect().width},dn=()=>{s.calculatorWidth=p.value.getBoundingClientRect().width},oo=()=>{s.collapseItemWidth=b.value.getBoundingClientRect().width},dt=()=>{var w,A;(A=(w=d.value)==null?void 0:w.updatePopper)==null||A.call(w)},fn=()=>{var w,A;(A=(w=f.value)==null?void 0:w.updatePopper)==null||A.call(w)},un=()=>{s.inputValue.length>0&&!x.value&&(x.value=!0),ct(s.inputValue)},pn=w=>{if(s.inputValue=w.target.value,e.remote)hn();else return un()},hn=Df(()=>{un()},_t.value),mn=w=>{In(e.modelValue,w)||t(Mo,w)},lb=w=>$f(w,A=>!s.disabledOptions.has(A)),cb=w=>{if(e.multiple&&w.code!==Wt.delete&&w.target.value.length<=0){const A=De(e.modelValue).slice(),P=lb(A);if(P<0)return;const j=A[P];A.splice(P,1),t(X,A),mn(A),t("remove-tag",j)}},db=(w,A)=>{const P=s.selected.indexOf(A);if(P>-1&&!M.value){const j=De(e.modelValue).slice();j.splice(P,1),t(X,j),mn(j),t("remove-tag",A.value)}w.stopPropagation(),ro()},Is=w=>{w.stopPropagation();const A=e.multiple?[]:q.value;if(e.multiple)for(const P of s.selected)P.isDisabled&&A.push(P.value);t(X,A),mn(A),s.hoveringIndex=-1,x.value=!1,t("clear"),ro()},Ts=w=>{var A;if(e.multiple){const P=De((A=e.modelValue)!=null?A:[]).slice(),j=As(P,w.value);j>-1?P.splice(j,1):(e.multipleLimit<=0||P.length<e.multipleLimit)&&P.push(w.value),t(X,P),mn(P),w.created&&ct(""),e.filterable&&!e.reserveKeyword&&(s.inputValue="")}else t(X,w.value),mn(w.value),x.value=!1;ro(),!x.value&&n.nextTick(()=>{io(w)})},As=(w=[],A)=>{if(!te(A))return w.indexOf(A);const P=e.valueKey;let j=-1;return w.some((Ge,Vt)=>n.toRaw(Be(Ge,P))===Be(A,P)?(j=Vt,!0):!1),j},io=w=>{var A,P,j,Ge,Vt;const ao=ee(w)?w[0]:w;let ft=null;if(ao!=null&&ao.value){const Te=U.value.filter(Bs=>Bs.value===ao.value);Te.length>0&&(ft=Te[0].$el)}if(d.value&&ft){const Te=(Ge=(j=(P=(A=d.value)==null?void 0:A.popperRef)==null?void 0:P.contentRef)==null?void 0:j.querySelector)==null?void 0:Ge.call(j,`.${r.be("dropdown","wrap")}`);Te&&Gf(Te,ft)}(Vt=C.value)==null||Vt.handleScroll()},fb=w=>{s.options.set(w.value,w),s.cachedOptions.set(w.value,w),w.disabled&&s.disabledOptions.set(w.value,w)},ub=(w,A)=>{s.options.get(w)===A&&s.options.delete(w)},pb=n.computed(()=>{var w,A;return(A=(w=d.value)==null?void 0:w.popperRef)==null?void 0:A.contentRef}),hb=()=>{s.isBeforeHide=!1,n.nextTick(()=>io(s.selected))},ro=()=>{var w;(w=u.value)==null||w.focus()},Os=()=>{var w;(w=u.value)==null||w.blur()},mb=w=>{Is(w)},gb=()=>{x.value=!1,O.value&&Os()},yb=()=>{s.inputValue.length>0?s.inputValue="":x.value=!1},Ms=()=>{M.value||(so&&(s.inputHovering=!0),s.menuVisibleOnFocus?s.menuVisibleOnFocus=!1:x.value=!x.value)},bb=()=>{x.value?U.value[s.hoveringIndex]&&Ts(U.value[s.hoveringIndex]):Ms()},Ci=w=>te(w.value)?Be(w.value,e.valueKey):w.value,wb=n.computed(()=>U.value.filter(w=>w.visible).every(w=>w.disabled)),Cb=n.computed(()=>e.multiple?e.collapseTags?s.selected.slice(0,e.maxCollapseTags):s.selected:[]),vb=n.computed(()=>e.multiple?e.collapseTags?s.selected.slice(e.maxCollapseTags):[]:[]),xs=w=>{if(!x.value){x.value=!0;return}if(!(s.options.size===0||s.filteredOptionsCount===0||I.value)&&!wb.value){w==="next"?(s.hoveringIndex++,s.hoveringIndex===s.options.size&&(s.hoveringIndex=0)):w==="prev"&&(s.hoveringIndex--,s.hoveringIndex<0&&(s.hoveringIndex=s.options.size-1));const A=U.value[s.hoveringIndex];(A.disabled===!0||A.states.groupDisabled===!0||!A.visible)&&xs(w),n.nextTick(()=>io(N.value))}},Sb=()=>{if(!c.value)return 0;const w=window.getComputedStyle(c.value);return Number.parseFloat(w.gap||"6px")},kb=n.computed(()=>{const w=Sb();return{maxWidth:`${b.value&&e.maxCollapseTags===1?s.selectionWidth-s.collapseItemWidth-w:s.selectionWidth}px`}}),Eb=n.computed(()=>({maxWidth:`${s.selectionWidth}px`})),Ib=n.computed(()=>({width:`${Math.max(s.calculatorWidth,Lg)}px`}));return Re(c,Pt),Re(p,dn),Re(m,dt),Re(E,dt),Re(y,fn),Re(b,oo),n.onMounted(()=>{Lt()}),{inputId:L,contentId:i,nsSelect:r,nsInput:a,states:s,isFocused:O,expanded:x,optionsArray:U,hoverOption:N,selectSize:eo,filteredOptionsCount:ae,resetCalculatorWidth:dn,updateTooltip:dt,updateTagTooltip:fn,debouncedOnInputChange:hn,onInput:pn,deletePrevTag:cb,deleteTag:db,deleteSelected:Is,handleOptionSelect:Ts,scrollToOption:io,hasModelValue:$,shouldShowPlaceholder:to,currentPlaceholder:bi,mouseEnterEventName:wi,showClose:pe,iconComponent:Y,iconReverse:Z,validateState:ce,validateIcon:Ee,showNewOption:qe,updateOptions:Xn,collapseTagSize:ln,setSelected:Lt,selectDisabled:M,emptyText:Ie,handleCompositionStart:k,handleCompositionUpdate:v,handleCompositionEnd:S,onOptionCreate:fb,onOptionDestroy:ub,handleMenuEnter:hb,focus:ro,blur:Os,handleClearClick:mb,handleClickOutside:gb,handleEsc:yb,toggleMenu:Ms,selectOption:bb,getValueKey:Ci,navigateOptions:xs,dropdownMenuVisible:yi,showTagList:Cb,collapseTagList:vb,tagStyle:kb,collapseTagStyle:Eb,inputStyle:Ib,popperRef:pb,inputRef:u,tooltipRef:d,tagTooltipRef:f,calculatorRef:p,prefixRef:g,suffixRef:h,selectRef:l,wrapperRef:E,selectionRef:c,scrollbarRef:C,menuRef:m,tagMenuRef:y,collapseItemRef:b}};var Vg=n.defineComponent({name:"ElOptions",setup(e,{slots:t}){const o=n.inject(Wn);let i=[];return()=>{var r,a;const s=(r=t.default)==null?void 0:r.call(t),l=[];function c(d){ee(d)&&d.forEach(f=>{var u,p,g,h;const m=(u=(f==null?void 0:f.type)||{})==null?void 0:u.name;m==="ElOptionGroup"?c(!me(f.children)&&!ee(f.children)&&Q((p=f.children)==null?void 0:p.default)?(g=f.children)==null?void 0:g.default():f.children):m==="ElOption"?l.push((h=f.props)==null?void 0:h.value):ee(f.children)&&c(f.children)})}return s.length&&c((a=s[0])==null?void 0:a.children),In(l,i)||(i=l,o&&(o.states.optionValues=l)),s}}});const Rg=R({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:Et,effect:{type:_(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:_(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:se.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:gt,default:W.CircleClose},fitInputWidth:Boolean,suffixIcon:{type:gt,default:W.ArrowDown},tagType:{...ri.type,default:"info"},tagEffect:{...ri.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,placement:{type:_(String),values:xn,default:"bottom-start"},fallbackPlacements:{type:_(Array),default:["bottom-start","top-start","right","left"]},appendTo:String,...Mp,...rt(["ariaLabel"])}),fs="ElSelect",Fg=n.defineComponent({name:fs,componentName:fs,components:{ElSelectMenu:_g,ElOption:si,ElOptions:Vg,ElTag:Jm,ElScrollbar:Yp,ElTooltip:Ra,ElIcon:be},directives:{ClickOutside:Cm},props:Rg,emits:[X,Mo,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const o=n.computed(()=>{const{modelValue:a,multiple:s}=e,l=s?[]:void 0;return ee(a)?s?a:l:s?l:a}),i=n.reactive({...n.toRefs(e),modelValue:o}),r=Pg(i,t);return n.provide(Wn,n.reactive({props:i,states:r.states,optionsArray:r.optionsArray,handleOptionSelect:r.handleOptionSelect,onOptionCreate:r.onOptionCreate,onOptionDestroy:r.onOptionDestroy,selectRef:r.selectRef,setSelected:r.setSelected})),{...r,modelValue:o}}});function Dg(e,t,o,i,r,a){const s=n.resolveComponent("el-tag"),l=n.resolveComponent("el-tooltip"),c=n.resolveComponent("el-icon"),d=n.resolveComponent("el-option"),f=n.resolveComponent("el-options"),u=n.resolveComponent("el-scrollbar"),p=n.resolveComponent("el-select-menu"),g=n.resolveDirective("click-outside");return n.withDirectives((n.openBlock(),n.createElementBlock("div",{ref:"selectRef",class:n.normalizeClass([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[n.toHandlerKey(e.mouseEnterEventName)]:h=>e.states.inputHovering=!0,onMouseleave:h=>e.states.inputHovering=!1},[n.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:h=>e.states.isBeforeHide=!1},{default:n.withCtx(()=>{var h;return[n.createElementVNode("div",{ref:"wrapperRef",class:n.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:n.withModifiers(e.toggleMenu,["prevent"])},[e.$slots.prefix?(n.openBlock(),n.createElementBlock("div",{key:0,ref:"prefixRef",class:n.normalizeClass(e.nsSelect.e("prefix"))},[n.renderSlot(e.$slots,"prefix")],2)):n.createCommentVNode("v-if",!0),n.createElementVNode("div",{ref:"selectionRef",class:n.normalizeClass([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?n.renderSlot(e.$slots,"tag",{key:0},()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.showTagList,m=>(n.openBlock(),n.createElementBlock("div",{key:e.getValueKey(m),class:n.normalizeClass(e.nsSelect.e("selected-item"))},[n.createVNode(s,{closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:n.normalizeStyle(e.tagStyle),onClose:y=>e.deleteTag(y,m)},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(e.nsSelect.e("tags-text"))},[n.renderSlot(e.$slots,"label",{label:m.currentLabel,value:m.value},()=>[n.createTextVNode(n.toDisplayString(m.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(n.openBlock(),n.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:n.withCtx(()=>[n.createElementVNode("div",{ref:"collapseItemRef",class:n.normalizeClass(e.nsSelect.e("selected-item"))},[n.createVNode(s,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:n.normalizeStyle(e.collapseTagStyle)},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(e.nsSelect.e("tags-text"))}," + "+n.toDisplayString(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:n.withCtx(()=>[n.createElementVNode("div",{ref:"tagMenuRef",class:n.normalizeClass(e.nsSelect.e("selection"))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.collapseTagList,m=>(n.openBlock(),n.createElementBlock("div",{key:e.getValueKey(m),class:n.normalizeClass(e.nsSelect.e("selected-item"))},[n.createVNode(s,{class:"in-tooltip",closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:y=>e.deleteTag(y,m)},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(e.nsSelect.e("tags-text"))},[n.renderSlot(e.$slots,"label",{label:m.currentLabel,value:m.value},()=>[n.createTextVNode(n.toDisplayString(m.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):n.createCommentVNode("v-if",!0)]):n.createCommentVNode("v-if",!0),e.selectDisabled?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[n.withDirectives(n.createElementVNode("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":m=>e.states.inputValue=m,type:"text",name:e.name,class:n.normalizeClass([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:n.normalizeStyle(e.inputStyle),role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((h=e.hoverOption)==null?void 0:h.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[n.withKeys(n.withModifiers(m=>e.navigateOptions("next"),["stop","prevent"]),["down"]),n.withKeys(n.withModifiers(m=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),n.withKeys(n.withModifiers(e.handleEsc,["stop","prevent"]),["esc"]),n.withKeys(n.withModifiers(e.selectOption,["stop","prevent"]),["enter"]),n.withKeys(n.withModifiers(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:n.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"]),[[n.vModelText,e.states.inputValue]]),e.filterable?(n.openBlock(),n.createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:n.normalizeClass(e.nsSelect.e("input-calculator")),textContent:n.toDisplayString(e.states.inputValue)},null,10,["textContent"])):n.createCommentVNode("v-if",!0)],2)),e.shouldShowPlaceholder?(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?n.renderSlot(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[n.createElementVNode("span",null,n.toDisplayString(e.currentPlaceholder),1)]):(n.openBlock(),n.createElementBlock("span",{key:1},n.toDisplayString(e.currentPlaceholder),1))],2)):n.createCommentVNode("v-if",!0)],2),n.createElementVNode("div",{ref:"suffixRef",class:n.normalizeClass(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(n.openBlock(),n.createBlock(c,{key:0,class:n.normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0),e.showClose&&e.clearIcon?(n.openBlock(),n.createBlock(c,{key:1,class:n.normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.clearIcon)))]),_:1},8,["class","onClick"])):n.createCommentVNode("v-if",!0),e.validateState&&e.validateIcon?(n.openBlock(),n.createBlock(c,{key:2,class:n.normalizeClass([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.validateIcon)))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0)],2)],10,["onClick"])]}),content:n.withCtx(()=>[n.createVNode(p,{ref:"menuRef"},{default:n.withCtx(()=>[e.$slots.header?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.nsSelect.be("dropdown","header")),onClick:n.withModifiers(()=>{},["stop"])},[n.renderSlot(e.$slots,"header")],10,["onClick"])):n.createCommentVNode("v-if",!0),n.withDirectives(n.createVNode(u,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:n.normalizeClass([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:n.withCtx(()=>[e.showNewOption?(n.openBlock(),n.createBlock(d,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):n.createCommentVNode("v-if",!0),n.createVNode(f,null,{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[n.vShow,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(e.nsSelect.be("dropdown","loading"))},[n.renderSlot(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass(e.nsSelect.be("dropdown","empty"))},[n.renderSlot(e.$slots,"empty",{},()=>[n.createElementVNode("span",null,n.toDisplayString(e.emptyText),1)])],2)):n.createCommentVNode("v-if",!0),e.$slots.footer?(n.openBlock(),n.createElementBlock("div",{key:3,class:n.normalizeClass(e.nsSelect.be("dropdown","footer")),onClick:n.withModifiers(()=>{},["stop"])},[n.renderSlot(e.$slots,"footer")],10,["onClick"])):n.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"])),[[g,e.handleClickOutside,e.popperRef]])}var $g=F(Fg,[["render",Dg],["__file","select.vue"]]);const zg=n.defineComponent({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=D("select"),o=n.ref(null),i=n.getCurrentInstance(),r=n.ref([]);n.provide(ds,n.reactive({...n.toRefs(e)}));const a=n.computed(()=>r.value.some(d=>d.visible===!0)),s=d=>{var f,u;return((f=d.type)==null?void 0:f.name)==="ElOption"&&!!((u=d.component)!=null&&u.proxy)},l=d=>{const f=De(d),u=[];return f.forEach(p=>{var g,h;s(p)?u.push(p.component.proxy):(g=p.children)!=null&&g.length?u.push(...l(p.children)):(h=p.component)!=null&&h.subTree&&u.push(...l(p.component.subTree))}),u},c=()=>{r.value=l(i.subTree)};return n.onMounted(()=>{c()}),Ks(o,c,{attributes:!0,subtree:!0,childList:!0}),{groupRef:o,visible:a,ns:t}}});function jg(e,t,o,i,r,a){return n.withDirectives((n.openBlock(),n.createElementBlock("ul",{ref:"groupRef",class:n.normalizeClass(e.ns.be("group","wrap"))},[n.createElementVNode("li",{class:n.normalizeClass(e.ns.be("group","title"))},n.toDisplayString(e.label),3),n.createElementVNode("li",null,[n.createElementVNode("ul",{class:n.normalizeClass(e.ns.b("group"))},[n.renderSlot(e.$slots,"default")],2)])],2)),[[n.vShow,e.visible]])}var us=F(zg,[["render",jg],["__file","option-group.vue"]]);const qn=oe($g,{Option:si,OptionGroup:us}),li=tt(si);tt(us);const Hg=R({trigger:nn.trigger,placement:ai.placement,disabled:nn.disabled,visible:se.visible,transition:se.transition,popperOptions:ai.popperOptions,tabindex:ai.tabindex,content:se.content,popperStyle:se.popperStyle,popperClass:se.popperClass,enterable:{...se.enterable,default:!0},effect:{...se.effect,default:"light"},teleported:se.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}}),Kg={"update:visible":e=>_e(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},Ug="onUpdate:visible",Wg=n.defineComponent({name:"ElPopover"}),qg=n.defineComponent({...Wg,props:Hg,emits:Kg,setup(e,{expose:t,emit:o}){const i=e,r=n.computed(()=>i[Ug]),a=D("popover"),s=n.ref(),l=n.computed(()=>{var y;return(y=n.unref(s))==null?void 0:y.popperRef}),c=n.computed(()=>[{width:et(i.width)},i.popperStyle]),d=n.computed(()=>[a.b(),i.popperClass,{[a.m("plain")]:!!i.content}]),f=n.computed(()=>i.transition===`${a.namespace.value}-fade-in-linear`),u=()=>{var y;(y=s.value)==null||y.hide()},p=()=>{o("before-enter")},g=()=>{o("before-leave")},h=()=>{o("after-enter")},m=()=>{o("update:visible",!1),o("after-leave")};return t({popperRef:l,hide:u}),(y,b)=>(n.openBlock(),n.createBlock(n.unref(Ra),n.mergeProps({ref_key:"tooltipRef",ref:s},y.$attrs,{trigger:y.trigger,placement:y.placement,disabled:y.disabled,visible:y.visible,transition:y.transition,"popper-options":y.popperOptions,tabindex:y.tabindex,content:y.content,offset:y.offset,"show-after":y.showAfter,"hide-after":y.hideAfter,"auto-close":y.autoClose,"show-arrow":y.showArrow,"aria-label":y.title,effect:y.effect,enterable:y.enterable,"popper-class":n.unref(d),"popper-style":n.unref(c),teleported:y.teleported,persistent:y.persistent,"gpu-acceleration":n.unref(f),"onUpdate:visible":n.unref(r),onBeforeShow:p,onBeforeHide:g,onShow:h,onHide:m}),{content:n.withCtx(()=>[y.title?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(a).e("title")),role:"title"},n.toDisplayString(y.title),3)):n.createCommentVNode("v-if",!0),n.renderSlot(y.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(y.content),1)])]),default:n.withCtx(()=>[y.$slots.reference?n.renderSlot(y.$slots,"reference",{key:0}):n.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 Gg=F(qg,[["__file","popover.vue"]]);const ps=(e,t)=>{const o=t.arg||t.value,i=o==null?void 0:o.popperRef;i&&(i.triggerRef=e)};var Jg={mounted(e,t){ps(e,t)},updated(e,t){ps(e,t)}};const ci=Qf(Jg,"popover"),an=oe(Gg,{directive:ci});function Yg(e){let t;const o=n.ref(!1),i=n.reactive({...e,originalPosition:"",originalOverflow:"",visible:!1});function r(p){i.text=p}function a(){const p=i.parent,g=u.ns;if(!p.vLoadingAddClassList){let h=p.getAttribute("loading-number");h=Number.parseInt(h)-1,h?p.setAttribute("loading-number",h.toString()):(Ut(p,g.bm("parent","relative")),p.removeAttribute("loading-number")),Ut(p,g.bm("parent","hidden"))}s(),f.unmount()}function s(){var p,g;(g=(p=u.$el)==null?void 0:p.parentNode)==null||g.removeChild(u.$el)}function l(){var p;e.beforeClose&&!e.beforeClose()||(o.value=!0,clearTimeout(t),t=setTimeout(c,400),i.visible=!1,(p=e.closed)==null||p.call(e))}function c(){if(!o.value)return;const p=i.parent;o.value=!1,p.vLoadingAddClassList=void 0,a()}const d=n.defineComponent({name:"ElLoading",setup(p,{expose:g}){const{ns:h,zIndex:m}=Np("loading");return g({ns:h,zIndex:m}),()=>{const y=i.spinner||i.svg,b=n.h("svg",{class:"circular",viewBox:i.svgViewBox?i.svgViewBox:"0 0 50 50",...y?{innerHTML:y}:{}},[n.h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),C=i.text?n.h("p",{class:h.b("text")},[i.text]):void 0;return n.h(n.Transition,{name:h.b("fade"),onAfterLeave:c},{default:n.withCtx(()=>[n.withDirectives(n.createVNode("div",{style:{backgroundColor:i.background||""},class:[h.b("mask"),i.customClass,i.fullscreen?"is-fullscreen":""]},[n.h("div",{class:h.b("spinner")},[b,C])]),[[n.vShow,i.visible]])])})}}}),f=n.createApp(d),u=f.mount(document.createElement("div"));return{...n.toRefs(i),setText:r,removeElLoadingChild:s,close:l,handleAfterLeave:c,vm:u,get $el(){return u.$el}}}let Gn;const di=function(e={}){if(!K)return;const t=Zg(e);if(t.fullscreen&&Gn)return Gn;const o=Yg({...t,closed:()=>{var r;(r=t.closed)==null||r.call(t),t.fullscreen&&(Gn=void 0)}});Qg(t,t.parent,o),hs(t,t.parent,o),t.parent.vLoadingAddClassList=()=>hs(t,t.parent,o);let i=t.parent.getAttribute("loading-number");return i?i=`${Number.parseInt(i)+1}`:i="1",t.parent.setAttribute("loading-number",i),t.parent.appendChild(o.$el),n.nextTick(()=>o.visible.value=t.visible),t.fullscreen&&(Gn=o),o},Zg=e=>{var t,o,i,r;let a;return me(e.target)?a=(t=document.querySelector(e.target))!=null?t:document.body:a=e.target||document.body,{parent:a===document.body||e.body?document.body:a,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:a===document.body&&((o=e.fullscreen)!=null?o:!0),lock:(i=e.lock)!=null?i:!1,customClass:e.customClass||"",visible:(r=e.visible)!=null?r:!0,beforeClose:e.beforeClose,closed:e.closed,target:a}},Qg=async(e,t,o)=>{const{nextZIndex:i}=o.vm.zIndex||o.vm._.exposed.zIndex,r={};if(e.fullscreen)o.originalPosition.value=mt(document.body,"position"),o.originalOverflow.value=mt(document.body,"overflow"),r.zIndex=i();else if(e.parent===document.body){o.originalPosition.value=mt(document.body,"position"),await n.nextTick();for(const a of["top","left"]){const s=a==="top"?"scrollTop":"scrollLeft";r[a]=`${e.target.getBoundingClientRect()[a]+document.body[s]+document.documentElement[s]-Number.parseInt(mt(document.body,`margin-${a}`),10)}px`}for(const a of["height","width"])r[a]=`${e.target.getBoundingClientRect()[a]}px`}else o.originalPosition.value=mt(t,"position");for(const[a,s]of Object.entries(r))o.$el.style[a]=s},hs=(e,t,o)=>{const i=o.vm.ns||o.vm._.exposed.ns;["absolute","fixed","sticky"].includes(o.originalPosition.value)?Ut(t,i.bm("parent","relative")):Oo(t,i.bm("parent","relative")),e.fullscreen&&e.lock?Oo(t,i.bm("parent","hidden")):Ut(t,i.bm("parent","hidden"))},Jn=Symbol("ElLoading"),ms=(e,t)=>{var o,i,r,a;const s=t.instance,l=p=>te(t.value)?t.value[p]:void 0,c=p=>{const g=me(p)&&(s==null?void 0:s[p])||p;return g&&n.ref(g)},d=p=>c(l(p)||e.getAttribute(`element-loading-${tl(p)}`)),f=(o=l("fullscreen"))!=null?o:t.modifiers.fullscreen,u={text:d("text"),svg:d("svg"),svgViewBox:d("svgViewBox"),spinner:d("spinner"),background:d("background"),customClass:d("customClass"),fullscreen:f,target:(i=l("target"))!=null?i:f?void 0:e,body:(r=l("body"))!=null?r:t.modifiers.body,lock:(a=l("lock"))!=null?a:t.modifiers.lock};e[Jn]={options:u,instance:di(u)}},Xg=(e,t)=>{for(const o of Object.keys(t))n.isRef(t[o])&&(t[o].value=e[o])},fi={mounted(e,t){t.value&&ms(e,t)},updated(e,t){const o=e[Jn];t.oldValue!==t.value&&(t.value&&!t.oldValue?ms(e,t):t.value&&t.oldValue?te(t.value)&&Xg(t.value,o.options):o==null||o.instance.close())},unmounted(e){var t;(t=e[Jn])==null||t.instance.close(),e[Jn]=null}},ey={install(e){e.directive("loading",fi),e.config.globalProperties.$loading=di},directive:fi,service:di},st=(e,t)=>{const o=e.__vccOpts||e;for(const[i,r]of t)o[i]=r;return o},ty={name:"SelectionsGroup",components:{Checkbox:Za,CheckboxGroup:Qa,Col:rn,Icon:be,Row:on,ElIconWarning:W.Warning},methods:{reset:function(){this.checkAll=!0,this.checkedItems=[],this.selections.forEach(e=>{!("enabled"in e)||e.enabled===!0?this.checkedItems.push(e[this.identifierKey]):this.checkAll=!1})},setCheckboxActionData:function(e,t){if(e){const o=e.querySelector('input[type="checkbox"]'),i=e.querySelector(".el-checkbox__label"),a=e.closest(".selections-container").querySelector(".checkall-display-text");let s="";o&&(s=o.checked?"checked":"unchecked"),this.checkboxActionData={selectionsTitle:a?a.innerText:"",property:o&&t!=="all"?o.value:"",label:i?i.innerText:"",checked:s}}else this.checkboxActionData={selectionsTitle:"",property:"",label:"",checked:""}},onCheckboxNativeChange:function(e){const t=e.target.closest(".checkbox-container");this.setCheckboxActionData(t,"individual")},onAllCheckboxNativeChange:function(e){const t=e.target.closest(".all-checkbox");this.setCheckboxActionData(t,"all")},visibilityToggle:function(e,t){this.$emit("changed",{key:e,value:t}),e===this.checkboxActionData.property&&(this.checkboxActionData.checked=t?"checked":"unchecked"),this.$emit("selections-data-changed",this.checkboxActionData)},checkboxMouseEnterEmit:function(e,t){this.$emit("checkboxMouseEnter",{key:e,value:t,selections:this.selections,checked:this.checkedItems})},handleCheckedItemsChange:function(e){let t=e.length;this.checkAll=t===this.selections.length},handleCheckAllChange:function(e){this.checkedItems=e?this.selections.map(t=>t[this.identifierKey]):[],this.$emit("checkAll",{keys:this.selections.map(t=>t[this.identifierKey]),value:e}),this.checkboxActionData.property=this.identifierKey,this.checkboxActionData.checked=e?"checked":"unchecked",this.$emit("selections-data-changed",this.checkboxActionData)},getBackgroundStyles:function(e){return"colour"in e&&this.colourStyle==="background"?{background:e.colour}:{}},getState:function(){const t=this.checkedItems.length===this.selections.length;return{checkAll:t,checked:t?[]:this.checkedItems}},setState:function(e){var t;if(this.checkAll=e.checkAll,this.checkedItems.length=0,(t=e.checked)!=null&&t.length)this.checkedItems.push(...e.checked),this.selections.forEach(o=>{const i=o[this.identifierKey];this.$emit("changed",{key:i,value:this.checkedItems.includes(i)})});else{const o=this.selections.map(r=>r[this.identifierKey]);let i=!1;this.checkAll&&(i=!0,this.checkedItems.push(...o)),this.$emit("checkAll",{keys:o,value:i})}},hasLineStyles:function(e){return"colour"in e&&this.colourStyle==="line"},getLineStyles:function(e){return"colour"in e&&this.colourStyle==="line"?"dashed"in e&&e.dashed===!0?{background:`repeating-linear-gradient(90deg,${e.colour},${e.colour} 6px,transparent 0,transparent 9px)`}:{background:e.colour}:{display:"None"}}},props:{colourStyle:{type:String,default:"line"},helpMessage:{type:String,default:""},identifierKey:{type:String,default:"id"},labelKey:{type:String,default:"label"},title:{type:String,default:""},selections:{type:Array,default:function(){return[]}},showAsLegend:{type:Boolean,default:!1}},computed:{isIndeterminate:function(){return!(this.checkedItems.length===0||this.checkAll)}},data:function(){return{checkedItems:[],checkAll:!0,checkboxActionData:{selectionsTitle:"",property:"",label:"",checked:""}}},mounted:function(){this.reset()}},ny={class:"selections-container"},oy={class:"checkall-display-text"},iy={style:{"word-break":"keep-all"}},ry={class:"checkbox-group-inner"},ay=["onMouseenter","onMouseleave"];function sy(e,t,o,i,r,a){const s=W.Warning,l=be,c=an,d=rn,f=Za,u=on,p=Qa;return n.openBlock(),n.createElementBlock("div",ny,[n.createVNode(u,null,{default:n.withCtx(()=>[n.createVNode(d,{span:12},{default:n.withCtx(()=>[n.createElementVNode("span",oy,n.toDisplayString(o.title),1),o.helpMessage?(n.openBlock(),n.createBlock(c,{key:0,width:"250",trigger:"hover",teleported:!1,"popper-class":"popover-origin-help"},n.createSlots({default:n.withCtx(()=>[n.createElementVNode("span",iy,n.toDisplayString(o.helpMessage),1)]),_:2},[o.helpMessage?{name:"reference",fn:n.withCtx(()=>[n.createVNode(l,{class:"info"},{default:n.withCtx(()=>[n.createVNode(s)]),_:1})]),key:"0"}:void 0]),1024)):n.createCommentVNode("",!0)]),_:1}),n.createVNode(d,{span:12},{default:n.withCtx(()=>[o.selections&&o.selections.length>1&&!o.showAsLegend?(n.openBlock(),n.createBlock(f,{key:0,class:"all-checkbox",indeterminate:a.isIndeterminate,modelValue:e.checkAll,"onUpdate:modelValue":t[0]||(t[0]=g=>e.checkAll=g),onChange:a.handleCheckAllChange,onClick:a.onAllCheckboxNativeChange},{default:n.withCtx(()=>t[2]||(t[2]=[n.createTextVNode("Display all")])),_:1},8,["indeterminate","modelValue","onChange","onClick"])):n.createCommentVNode("",!0)]),_:1})]),_:1}),n.createVNode(p,{class:n.normalizeClass({"show-as-legend":o.showAsLegend,"checkbox-group":!o.showAsLegend}),modelValue:e.checkedItems,"onUpdate:modelValue":t[1]||(t[1]=g=>e.checkedItems=g),size:"small",onChange:a.handleCheckedItemsChange},{default:n.withCtx(()=>[n.createElementVNode("div",ry,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.selections,g=>(n.openBlock(),n.createBlock(u,{key:g[o.identifierKey],label:g[o.identifierKey]},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"checkbox-container",onMouseenter:h=>a.checkboxMouseEnterEmit(g[o.identifierKey],!0),onMouseleave:h=>a.checkboxMouseEnterEmit(g[o.identifierKey],!1)},[n.createVNode(f,{class:"my-checkbox",label:g[o.identifierKey],value:g[o.identifierKey],onChange:h=>a.visibilityToggle(g[o.identifierKey],h),onClick:a.onCheckboxNativeChange,checked:!("enabled"in g)||g.enabled===!0},{default:n.withCtx(()=>[n.createVNode(u,{class:"checkbox-row"},{default:n.withCtx(()=>[a.hasLineStyles(g)?(n.openBlock(),n.createBlock(d,{key:0,span:4},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"path-visual",style:n.normalizeStyle(a.getLineStyles(g))},null,4)]),_:2},1024)):n.createCommentVNode("",!0),n.createVNode(d,{span:20},{default:n.withCtx(()=>[n.createElementVNode("div",{style:n.normalizeStyle(a.getBackgroundStyles(g))},n.toDisplayString(g[o.labelKey]),5)]),_:2},1024)]),_:2},1024)]),_:2},1032,["label","value","onChange","onClick","checked"])],40,ay)]),_:2},1032,["label"]))),128))])]),_:1},8,["class","modelValue","onChange"])])}const gs=st(ty,[["render",sy],["__scopeId","data-v-35fb97d0"]]),ly='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="<fillColor>" stroke="<borderColor>" stroke-width="<borderWidth>" d="M11.0748 3.25583C11.4141 2.42845 12.5859 2.42845 12.9252 3.25583L14.6493 7.45955C14.793 7.80979 15.1221 8.04889 15.4995 8.07727L20.0303 8.41798C20.922 8.48504 21.2841 9.59942 20.6021 10.1778L17.1369 13.1166C16.8482 13.3614 16.7225 13.7483 16.8122 14.1161L17.8882 18.5304C18.1 19.3992 17.152 20.0879 16.3912 19.618L12.5255 17.2305C12.2034 17.0316 11.7966 17.0316 11.4745 17.2305L7.60881 19.618C6.84796 20.0879 5.90001 19.3992 6.1118 18.5304L7.18785 14.1161C7.2775 13.7483 7.1518 13.3614 6.86309 13.1166L3.3979 10.1778C2.71588 9.59942 3.07796 8.48504 3.96971 8.41798L8.50046 8.07727C8.87794 8.04889 9.20704 7.80979 9.35068 7.45955L11.0748 3.25583Z"/></svg>',cy={name:"LegendItem",props:{item:{type:Object,required:!0},identifierKey:{type:String,default:"id"},styleKey:{type:String,default:"style"},showStarInLegend:{type:Boolean,default:!1}},computed:{clipPathLegends:function(){return["exoid","hexagon"]},legendStyleValue:function(){return this.item[this.styleKey]==="star"?this.item[this.identifierKey]==="Featured dataset marker"&&!this.showStarInLegend?void 0:"star":this.clipPathLegends.includes(this.item[this.styleKey])?this.item[this.styleKey]:this.item[this.styleKey]==="line"?[this.item[this.styleKey],this.item.dashed?"dashed":"",this.item.arrow?"arrow":""]:[this.item[this.styleKey],"shape"]},customStyle:function(){const e=this.item.color?this.item.color:this.item.colour;let t=e||"transparent",o=this.item.border?this.item.border:"black",i=this.item.borderStyle?this.item.borderStyle:"default";if(e&&!this.item.border&&(o=t),this.item[this.styleKey]==="star"){let r=ly.replace("<fillColor>",t);return r=r.replace("<borderColor>",o),r=r.replace("<borderWidth>",o?"2":"0"),r="data:image/svg+xml,"+encodeURIComponent(r),{color:t,"background-image":`url(${r})`}}else return this.item[this.styleKey]==="line"?{color:t}:{"background-color":t,"border-color":o,"border-style":i}}},methods:{capitalise:function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()},customClipPathStyle:function(e){const t={...this.customStyle};return e?t["background-color"]=t["border-color"]:t.scale=.7,t}}},dy={key:0,class:"legend-item"},fy={class:"label"};function uy(e,t,o,i,r,a){return a.legendStyleValue?(n.openBlock(),n.createElementBlock("div",dy,[a.clipPathLegends.includes(a.legendStyleValue)?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(a.legendStyleValue),style:n.normalizeStyle(a.customClipPathStyle(!0))},[n.createElementVNode("div",{class:n.normalizeClass(a.legendStyleValue),style:n.normalizeStyle(a.customClipPathStyle(!1))},null,6)],6)):(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(a.legendStyleValue),style:n.normalizeStyle(a.customStyle)},null,6)),n.createElementVNode("div",fy,n.toDisplayString(a.capitalise(o.item[o.identifierKey])),1)])):n.createCommentVNode("",!0)}const ys=st(cy,[["render",uy],["__scopeId","data-v-b7e5b095"]]),py={name:"DynamicLegends",components:{LegendItem:ys},props:{identifierKey:{type:String,default:"id"},styleKey:{type:String,default:"style"},title:{type:String,default:""},legends:{type:Array,default:function(){return[]}},showStarInLegend:{type:Boolean,default:!1},showDatasetMarkerTooltip:{type:Boolean,default:!1}},data(){return{isHovering:!1,hoverTimeout:null}},computed:{tooltipVisible(){return this.showDatasetMarkerTooltip&&this.showStarInLegend||this.isHovering}},methods:{onMouseOver(){clearTimeout(this.hoverTimeout),this.hoverTimeout=setTimeout(()=>{this.isHovering=!0},500)},onMouseOut(){clearTimeout(this.hoverTimeout),this.hoverTimeout=setTimeout(()=>{this.isHovering=!1},500)}}},hy={class:"legend-group"},my=["label"];function gy(e,t,o,i,r,a){const s=ys,l=an,c=ci;return n.openBlock(),n.createElementBlock("div",hy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.legends,d=>(n.openBlock(),n.createElementBlock("div",{class:"legend-container",key:d[o.identifierKey],label:d[o.identifierKey]},[d[o.identifierKey]==="Featured dataset marker"?(n.openBlock(),n.createBlock(l,{key:0,content:"Location of the featured dataset",placement:"right",teleported:!0,trigger:"manual",width:"max-content",offset:0,"popper-class":"flatmap-popper flatmap-teleport-popper",visible:a.tooltipVisible,ref_for:!0,ref:"featuredMarkerPopover"},{reference:n.withCtx(()=>[n.withDirectives((n.openBlock(),n.createElementBlock("div",{onMouseover:t[0]||(t[0]=(...f)=>a.onMouseOver&&a.onMouseOver(...f)),onMouseout:t[1]||(t[1]=(...f)=>a.onMouseOut&&a.onMouseOut(...f))},[n.createVNode(s,{item:d,identifierKey:o.identifierKey,styleKey:o.styleKey,showStarInLegend:o.showStarInLegend},null,8,["item","identifierKey","styleKey","showStarInLegend"])],32)),[[c,void 0,"featuredMarkerPopover"]])]),_:2},1032,["visible"])):(n.openBlock(),n.createBlock(s,{key:1,item:d,identifierKey:o.identifierKey,styleKey:o.styleKey,showStarInLegend:o.showStarInLegend},null,8,["item","identifierKey","styleKey","showStarInLegend"]))],8,my))),128))])}const yy=st(py,[["render",gy],["__scopeId","data-v-32c93a1a"]]),by={name:"FlatmapError",props:{flatmapError:{type:Object,default:()=>({})}}},wy={class:"flatmap-error"},Cy={class:"flatmap-error-title"},vy={key:0},Sy={key:0,class:"flatmap-error-message"},ky=["innerHTML"],Ey={key:1};function Iy(e,t,o,i,r,a){const s=W.DocumentDelete,l=be,c=ii;return n.openBlock(),n.createElementBlock("div",wy,[n.createElementVNode("div",Cy,[n.createVNode(l,{size:"24"},{default:n.withCtx(()=>[n.createVNode(s)]),_:1}),o.flatmapError.title?(n.openBlock(),n.createElementBlock("div",vy,n.toDisplayString(o.flatmapError.title),1)):n.createCommentVNode("",!0)]),o.flatmapError.messages?(n.openBlock(),n.createElementBlock("div",Sy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.flatmapError.messages,(d,f)=>(n.openBlock(),n.createElementBlock("div",{key:f},[n.createElementVNode("div",{innerHTML:d},null,8,ky)]))),128))])):n.createCommentVNode("",!0),o.flatmapError.button?(n.openBlock(),n.createElementBlock("div",Ey,[n.createVNode(c,{class:"button",type:"primary",onClick:o.flatmapError.button.callback},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(o.flatmapError.button.text),1)]),_:1},8,["onClick"])])):n.createCommentVNode("",!0)])}const Yn=st(by,[["render",Iy],["__scopeId","data-v-8961361a"]]),Ty={name:"SvgLegends"},Ay={class:"legends-container"},Oy={version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 500 500",style:{"enable-background":"new 0 0 500 500"},xmlns:"http://www.w3.org/2000/svg","xmlns:bx":"https://boxy-svg.com"};function My(e,t,o,i,r,a){return n.openBlock(),n.createElementBlock("div",Ay,[(n.openBlock(),n.createElementBlock("svg",Oy,t[0]||(t[0]=[n.createStaticVNode('<defs data-v-88079d87><bx:grid height="30.447" width="32.516" x="0" y="0" data-v-88079d87></bx:grid></defs><path class="st0 st0-translate" d="M61.3,103.8c-15.9,0-28.8-12.3-28.8-27.3c0-15,13-27.3,28.8-27.3s28.8,12.3,28.8,27.3 C90.1,91.5,77.2,103.8,61.3,103.8z" data-v-88079d87></path><path class="st1" d="M40.3,356.1C29.5,345,29.8,328,41.5,317.5c11.7-10.5,29.6-9.9,40.7,1.1c11.1,11,10.5,28.1-1.2,38.5 C69.3,367.4,51.1,366.9,40.3,356.1z" data-v-88079d87></path><path class="st2" d="M61.2,396.9c-5.3,9.3-15.3,15.1-26.1,15.1l-0.4,0.6c5.1,9,5.1,20,0,29l0.4,0.6c10.7,0,20.8,5.8,26.1,15.1 c5.3-9.3,15.3-15.1,26.1-15.1c-5.3-9.3-5.3-20.9,0-30.4C76.6,412.1,66.7,406.3,61.2,396.9z" data-v-88079d87></path><text transform="matrix(0.9908 0 0 1 118.0161 171.7975)" class="st3 st4 st5" style="white-space:pre;" data-v-88079d87> Tissue region </text><path class="st6" d="M40.9,231.1c11.3-10.6,29.5-10.6,40.8,0c11.3,10.6,11.3,27.9,0,38.5c-11.3,10.6-29.5,10.6-40.8,0 C29.7,259,29.7,241.7,40.9,231.1z" data-v-88079d87></path><text transform="matrix(0.9908 0 0 1 118.0161 257.675)" class="st3 st4 st5" style="white-space:pre;" data-v-88079d87> Brain nuclei </text><text transform="matrix(0.9908 0 0 1 118.0903 345.5266)" class="st3 st4 st5" style="white-space:pre;" data-v-88079d87> Ganglia </text><text transform="matrix(0.9908 0 0 1 118.0903 433.1613)" class="st3 st4 st5" style="white-space:pre;" data-v-88079d87> Ganglionated nerve plexus </text>',9)]))),t[1]||(t[1]=n.createElementVNode("svg",{width:"72px",height:"72px",viewBox:"0 0 24 24",fill:"yellow"},null,-1))])}const xy=st(Ty,[["render",My],["__scopeId","data-v-88079d87"]]),By=`<div class="flatmap-marker">
11
+ })`);const o=xo();return n.computed(()=>n.unref(e)||`${o.value}-id-${t.prefix}-${t.current++}`)};let kt=[];const rr=e=>{const t=e;t.key===Wt.esc&&kt.forEach(o=>o(t))},yp=e=>{n.onMounted(()=>{kt.length===0&&document.addEventListener("keydown",rr),K&&kt.push(e)}),n.onBeforeUnmount(()=>{kt=kt.filter(t=>t!==e),kt.length===0&&K&&document.removeEventListener("keydown",rr)})};let sr;const lr=()=>{const e=xo(),t=ar(),o=n.computed(()=>`${e.value}-popper-container-${t.prefix}`),i=n.computed(()=>`#${o.value}`);return{id:o,selector:i}},bp=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},wp=()=>{const{id:e,selector:t}=lr();return n.onBeforeMount(()=>{K&&(process.env.NODE_ENV==="test"||!sr||!document.body.querySelector(t.value))&&(sr=bp(e.value))}),{id:e,selector:t}},Cp=R({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),vp=({showAfter:e,hideAfter:t,autoClose:o,open:i,close:a})=>{const{registerTimeout:r}=ir(),{registerTimeout:s,cancelTimeout:l}=ir();return{onOpen:f=>{r(()=>{i(f);const u=n.unref(o);G(u)&&u>0&&s(()=>{a(f)},u)},n.unref(e))},onClose:f=>{l(),r(()=>{a(f)},n.unref(t))}}},cr=Symbol("elForwardRef"),Sp=e=>{const t=o=>{e.value=o};n.provide(cr,{setForwardRef:t})},kp=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),dr={current:0},fr=n.ref(0),ur=2e3,pr=Symbol("elZIndexContextKey"),hr=Symbol("zIndexContextKey"),jo=e=>{const t=n.getCurrentInstance()?n.inject(pr,dr):dr,o=e||(n.getCurrentInstance()?n.inject(hr,void 0):void 0),i=n.computed(()=>{const s=n.unref(o);return G(s)?s:ur}),a=n.computed(()=>i.value+fr.value),r=()=>(t.current++,fr.value=t.current,a.value);return!K&&!n.inject(pr)&&ne("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
12
+ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:i,currentZIndex:a,nextZIndex:r}},Et=On({type:String,values:_a,required:!1}),mr=Symbol("size"),Ep=()=>{const e=n.inject(mr,{});return n.computed(()=>n.unref(e.size)||"")};function Ip(e,{beforeFocus:t,afterFocus:o,beforeBlur:i,afterBlur:a}={}){const r=n.getCurrentInstance(),{emit:s}=r,l=n.shallowRef(),c=n.ref(!1),d=p=>{Q(t)&&t(p)||c.value||(c.value=!0,s("focus",p),o==null||o())},f=p=>{var g;Q(i)&&i(p)||p.relatedTarget&&((g=l.value)!=null&&g.contains(p.relatedTarget))||(c.value=!1,s("blur",p),a==null||a())},u=()=>{var p,g;(p=l.value)!=null&&p.contains(document.activeElement)&&l.value!==document.activeElement||(g=e.value)==null||g.focus()};return n.watch(l,p=>{p&&p.setAttribute("tabindex","-1")}),he(l,"focus",d,!0),he(l,"blur",f,!0),he(l,"click",u,!0),process.env.NODE_ENV==="test"&&n.onMounted(()=>{const p=Xe(e.value)?e.value:document.querySelector("input,textarea");p&&(he(p,"focus",d,!0),he(p,"blur",f,!0))}),{isFocused:c,wrapperRef:l,handleFocus:d,handleBlur:f}}function Tp({afterComposition:e,emit:t}){const o=n.ref(!1),i=l=>{t==null||t("compositionstart",l),o.value=!0},a=l=>{var c;t==null||t("compositionupdate",l);const d=(c=l.target)==null?void 0:c.value,f=d[d.length-1]||"";o.value=!tu(f)},r=l=>{t==null||t("compositionend",l),o.value&&(o.value=!1,n.nextTick(()=>e(l)))};return{isComposing:o,handleComposition:l=>{l.type==="compositionend"?r(l):a(l)},handleCompositionStart:i,handleCompositionUpdate:a,handleCompositionEnd:r}}const gr=Symbol("emptyValuesContextKey"),Ap="use-empty-values",Op=["",void 0,null],Mp=void 0,Bp=R({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>Q(e)?!e():!e}}),xp=(e,t)=>{const o=n.getCurrentInstance()?n.inject(gr,n.ref({})):n.ref({}),i=n.computed(()=>e.emptyValues||o.value.emptyValues||Op),a=n.computed(()=>Q(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:Q(o.value.valueOnClear)?o.value.valueOnClear():o.value.valueOnClear!==void 0?o.value.valueOnClear:Mp),r=s=>i.value.includes(s);return i.value.includes(a.value)||ne(Ap,"value-on-clear should be a value of empty-values"),{emptyValues:i,valueOnClear:a,isEmptyValue:r}},Np=R({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),at=e=>Ta(Np,e),yr=Symbol(),Pn=n.ref();function Vn(e,t=void 0){const o=n.getCurrentInstance()?n.inject(yr,Pn):Pn;return e?n.computed(()=>{var i,a;return(a=(i=o.value)==null?void 0:i[e])!=null?a:t}):o}function _p(e,t){const o=Vn(),i=F(e,n.computed(()=>{var l;return((l=o.value)==null?void 0:l.namespace)||Gt})),a=Bo(n.computed(()=>{var l;return(l=o.value)==null?void 0:l.locale})),r=jo(n.computed(()=>{var l;return((l=o.value)==null?void 0:l.zIndex)||ur})),s=n.computed(()=>{var l;return n.unref(t)||((l=o.value)==null?void 0:l.size)||""});return Lp(n.computed(()=>n.unref(o)||{})),{ns:i,locale:a,zIndex:r,size:s}}const Lp=(e,t,o=!1)=>{var i;const a=!!n.getCurrentInstance(),r=a?Vn():void 0,s=(i=void 0)!=null?i:a?n.provide:void 0;if(!s){ne("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const l=n.computed(()=>{const c=n.unref(e);return r!=null&&r.value?Pp(r.value,c):c});return s(yr,l),s(La,n.computed(()=>l.value.locale)),s(Pa,n.computed(()=>l.value.namespace)),s(hr,n.computed(()=>l.value.zIndex)),s(mr,{size:n.computed(()=>l.value.size||"")}),s(gr,n.computed(()=>({emptyValues:l.value.emptyValues,valueOnClear:l.value.valueOnClear}))),(o||!Pn.value)&&(Pn.value=l.value),l},Pp=(e,t)=>{const o=[...new Set([...Aa(e),...Aa(t)])],i={};for(const a of o)i[a]=t[a]!==void 0?t[a]:e[a];return i};var D=(e,t)=>{const o=e.__vccOpts||e;for(const[i,a]of t)o[i]=a;return o};const Vp=R({size:{type:_([Number,String])},color:{type:String}}),Rp=n.defineComponent({name:"ElIcon",inheritAttrs:!1}),Dp=n.defineComponent({...Rp,props:Vp,setup(e){const t=e,o=F("icon"),i=n.computed(()=>{const{size:a,color:r}=t;return!a&&!r?{}:{fontSize:ze(a)?void 0:et(a),"--color":r}});return(a,r)=>(n.openBlock(),n.createElementBlock("i",n.mergeProps({class:n.unref(o).b(),style:n.unref(i)},a.$attrs),[n.renderSlot(a.$slots,"default")],16))}});var Fp=D(Dp,[["__file","icon.vue"]]);const be=oe(Fp),Ho=Symbol("formContextKey"),Rn=Symbol("formItemContextKey"),It=(e,t={})=>{const o=n.ref(void 0),i=t.prop?o:Va("size"),a=t.global?o:Ep(),r=t.form?{size:void 0}:n.inject(Ho,void 0),s=t.formItem?{size:void 0}:n.inject(Rn,void 0);return n.computed(()=>i.value||n.unref(e)||(s==null?void 0:s.size)||(r==null?void 0:r.size)||a.value||"")},Dn=e=>{const t=Va("disabled"),o=n.inject(Ho,void 0);return n.computed(()=>t.value||n.unref(e)||(o==null?void 0:o.disabled)||!1)},Tt=()=>{const e=n.inject(Ho,void 0),t=n.inject(Rn,void 0);return{form:e,formItem:t}},Fn=(e,{formItemContext:t,disableIdGeneration:o,disableIdManagement:i})=>{o||(o=n.ref(!1)),i||(i=n.ref(!1));const a=n.ref();let r;const s=n.computed(()=>{var l;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((l=t.inputIds)==null?void 0:l.length)<=1)});return n.onMounted(()=>{r=n.watch([n.toRef(e,"id"),o],([l,c])=>{const d=l??(c?void 0:it().value);d!==a.value&&(t!=null&&t.removeInputId&&(a.value&&t.removeInputId(a.value),!(i!=null&&i.value)&&!c&&d&&t.addInputId(d)),a.value=d)},{immediate:!0})}),n.onUnmounted(()=>{r&&r(),t!=null&&t.removeInputId&&a.value&&t.removeInputId(a.value)}),{isLabeledByFormItem:s,inputId:a}},At=4,$p={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"}},zp=({move:e,size:t,bar:o})=>({[o.size]:t,transform:`translate${o.axis}(${e}%)`}),Ko=Symbol("scrollbarContextKey"),jp=R({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),Hp="Thumb";var br=D(n.defineComponent({__name:"thumb",props:jp,setup(e){const t=e,o=n.inject(Ko),i=F("scrollbar");o||Ma(Hp,"can not inject scrollbar context");const a=n.ref(),r=n.ref(),s=n.ref({}),l=n.ref(!1);let c=!1,d=!1,f=K?document.onselectstart:null;const u=n.computed(()=>$p[t.vertical?"vertical":"horizontal"]),p=n.computed(()=>zp({size:t.size,move:t.move,bar:u.value})),g=n.computed(()=>a.value[u.value.offset]**2/o.wrapElement[u.value.scrollSize]/t.ratio/r.value[u.value.offset]),h=k=>{var E;if(k.stopPropagation(),k.ctrlKey||[1,2].includes(k.button))return;(E=window.getSelection())==null||E.removeAllRanges(),b(k);const O=k.currentTarget;O&&(s.value[u.value.axis]=O[u.value.offset]-(k[u.value.client]-O.getBoundingClientRect()[u.value.direction]))},m=k=>{if(!r.value||!a.value||!o.wrapElement)return;const E=Math.abs(k.target.getBoundingClientRect()[u.value.direction]-k[u.value.client]),O=r.value[u.value.offset]/2,B=(E-O)*100*g.value/a.value[u.value.offset];o.wrapElement[u.value.scroll]=B*o.wrapElement[u.value.scrollSize]/100},b=k=>{k.stopImmediatePropagation(),c=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",v),f=document.onselectstart,document.onselectstart=()=>!1},y=k=>{if(!a.value||!r.value||c===!1)return;const E=s.value[u.value.axis];if(!E)return;const O=(a.value.getBoundingClientRect()[u.value.direction]-k[u.value.client])*-1,B=r.value[u.value.offset]-E,N=(O-B)*100*g.value/a.value[u.value.offset];o.wrapElement[u.value.scroll]=N*o.wrapElement[u.value.scrollSize]/100},v=()=>{c=!1,s.value[u.value.axis]=0,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",v),w(),d&&(l.value=!1)},T=()=>{d=!1,l.value=!!t.size},S=()=>{d=!0,l.value=c};n.onBeforeUnmount(()=>{w(),document.removeEventListener("mouseup",v)});const w=()=>{document.onselectstart!==f&&(document.onselectstart=f)};return he(n.toRef(o,"scrollbarElement"),"mousemove",T),he(n.toRef(o,"scrollbarElement"),"mouseleave",S),(k,E)=>(n.openBlock(),n.createBlock(n.Transition,{name:n.unref(i).b("fade"),persisted:""},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{ref_key:"instance",ref:a,class:n.normalizeClass([n.unref(i).e("bar"),n.unref(i).is(n.unref(u).key)]),onMousedown:m},[n.createElementVNode("div",{ref_key:"thumb",ref:r,class:n.normalizeClass(n.unref(i).e("thumb")),style:n.normalizeStyle(n.unref(p)),onMousedown:h},null,38)],34),[[n.vShow,k.always||l.value]])]),_:1},8,["name"]))}}),[["__file","thumb.vue"]]);const Kp=R({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}});var Up=D(n.defineComponent({__name:"bar",props:Kp,setup(e,{expose:t}){const o=e,i=n.inject(Ko),a=n.ref(0),r=n.ref(0),s=n.ref(""),l=n.ref(""),c=n.ref(1),d=n.ref(1);return t({handleScroll:p=>{if(p){const g=p.offsetHeight-At,h=p.offsetWidth-At;r.value=p.scrollTop*100/g*c.value,a.value=p.scrollLeft*100/h*d.value}},update:()=>{const p=i==null?void 0:i.wrapElement;if(!p)return;const g=p.offsetHeight-At,h=p.offsetWidth-At,m=g**2/p.scrollHeight,b=h**2/p.scrollWidth,y=Math.max(m,o.minSize),v=Math.max(b,o.minSize);c.value=m/(g-m)/(y/(g-y)),d.value=b/(h-b)/(v/(h-v)),l.value=y+At<g?`${y}px`:"",s.value=v+At<h?`${v}px`:""}}),(p,g)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(br,{move:a.value,ratio:d.value,size:s.value,always:p.always},null,8,["move","ratio","size","always"]),n.createVNode(br,{move:r.value,ratio:c.value,size:l.value,vertical:"",always:p.always},null,8,["move","ratio","size","always"])],64))}}),[["__file","bar.vue"]]);const Wp=R({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:_([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,...at(["ariaLabel","ariaOrientation"])}),qp={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(G)},Uo="ElScrollbar",Gp=n.defineComponent({name:Uo}),Jp=n.defineComponent({...Gp,props:Wp,emits:qp,setup(e,{expose:t,emit:o}){const i=e,a=F("scrollbar");let r,s,l=0,c=0;const d=n.ref(),f=n.ref(),u=n.ref(),p=n.ref(),g=n.computed(()=>{const w={};return i.height&&(w.height=et(i.height)),i.maxHeight&&(w.maxHeight=et(i.maxHeight)),[i.wrapStyle,w]}),h=n.computed(()=>[i.wrapClass,a.e("wrap"),{[a.em("wrap","hidden-default")]:!i.native}]),m=n.computed(()=>[a.e("view"),i.viewClass]),b=()=>{var w;f.value&&((w=p.value)==null||w.handleScroll(f.value),l=f.value.scrollTop,c=f.value.scrollLeft,o("scroll",{scrollTop:f.value.scrollTop,scrollLeft:f.value.scrollLeft}))};function y(w,k){te(w)?f.value.scrollTo(w):G(w)&&G(k)&&f.value.scrollTo(w,k)}const v=w=>{if(!G(w)){ne(Uo,"value must be a number");return}f.value.scrollTop=w},T=w=>{if(!G(w)){ne(Uo,"value must be a number");return}f.value.scrollLeft=w},S=()=>{var w;(w=p.value)==null||w.update()};return n.watch(()=>i.noresize,w=>{w?(r==null||r(),s==null||s()):({stop:r}=Re(u,S),s=he("resize",S))},{immediate:!0}),n.watch(()=>[i.maxHeight,i.height],()=>{i.native||n.nextTick(()=>{var w;S(),f.value&&((w=p.value)==null||w.handleScroll(f.value))})}),n.provide(Ko,n.reactive({scrollbarElement:d,wrapElement:f})),n.onActivated(()=>{f.value&&(f.value.scrollTop=l,f.value.scrollLeft=c)}),n.onMounted(()=>{i.native||n.nextTick(()=>{S()})}),n.onUpdated(()=>S()),t({wrapRef:f,update:S,scrollTo:y,setScrollTop:v,setScrollLeft:T,handleScroll:b}),(w,k)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"scrollbarRef",ref:d,class:n.normalizeClass(n.unref(a).b())},[n.createElementVNode("div",{ref_key:"wrapRef",ref:f,class:n.normalizeClass(n.unref(h)),style:n.normalizeStyle(n.unref(g)),tabindex:w.tabindex,onScroll:b},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(w.tag),{id:w.id,ref_key:"resizeRef",ref:u,class:n.normalizeClass(n.unref(m)),style:n.normalizeStyle(w.viewStyle),role:w.role,"aria-label":w.ariaLabel,"aria-orientation":w.ariaOrientation},{default:n.withCtx(()=>[n.renderSlot(w.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),w.native?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createBlock(Up,{key:0,ref_key:"barRef",ref:p,always:w.always,"min-size":w.minSize},null,8,["always","min-size"]))],2))}});var Yp=D(Jp,[["__file","scrollbar.vue"]]);const Zp=oe(Yp),Wo=Symbol("popper"),wr=Symbol("popperContent"),Cr=R({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),Qp=n.defineComponent({name:"ElPopper",inheritAttrs:!1}),Xp=n.defineComponent({...Qp,props:Cr,setup(e,{expose:t}){const o=e,i=n.ref(),a=n.ref(),r=n.ref(),s=n.ref(),l=n.computed(()=>o.role),c={triggerRef:i,popperInstanceRef:a,contentRef:r,referenceRef:s,role:l};return t(c),n.provide(Wo,c),(d,f)=>n.renderSlot(d.$slots,"default")}});var eh=D(Xp,[["__file","popper.vue"]]);const vr=R({arrowOffset:{type:Number,default:5}}),th=n.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),nh=n.defineComponent({...th,props:vr,setup(e,{expose:t}){const o=e,i=F("popper"),{arrowOffset:a,arrowRef:r,arrowStyle:s}=n.inject(wr,void 0);return n.watch(()=>o.arrowOffset,l=>{a.value=l}),n.onBeforeUnmount(()=>{r.value=void 0}),t({arrowRef:r}),(l,c)=>(n.openBlock(),n.createElementBlock("span",{ref_key:"arrowRef",ref:r,class:n.normalizeClass(n.unref(i).e("arrow")),style:n.normalizeStyle(n.unref(s)),"data-popper-arrow":""},null,6))}});var oh=D(nh,[["__file","arrow.vue"]]);const qo="ElOnlyChild",ih=n.defineComponent({name:qo,setup(e,{slots:t,attrs:o}){var i;const a=n.inject(cr),r=kp((i=a==null?void 0:a.setForwardRef)!=null?i:Je);return()=>{var s;const l=(s=t.default)==null?void 0:s.call(t,o);if(!l)return null;if(l.length>1)return ne(qo,"requires exact only one valid child."),null;const c=Sr(l);return c?n.withDirectives(n.cloneVNode(c,o),[[r]]):(ne(qo,"no valid child node found"),null)}}});function Sr(e){if(!e)return null;const t=e;for(const o of t){if(te(o))switch(o.type){case n.Comment:continue;case n.Text:case"svg":return kr(o);case n.Fragment:return Sr(o.children);default:return o}return kr(o)}return null}function kr(e){const t=F("only-child");return n.createVNode("span",{class:t.e("content")},[e])}const Er=R({virtualRef:{type:_(Object)},virtualTriggering:Boolean,onMouseenter:{type:_(Function)},onMouseleave:{type:_(Function)},onClick:{type:_(Function)},onKeydown:{type:_(Function)},onFocus:{type:_(Function)},onBlur:{type:_(Function)},onContextmenu:{type:_(Function)},id:String,open:Boolean}),ah=n.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),rh=n.defineComponent({...ah,props:Er,setup(e,{expose:t}){const o=e,{role:i,triggerRef:a}=n.inject(Wo,void 0);Sp(a);const r=n.computed(()=>l.value?o.id:void 0),s=n.computed(()=>{if(i&&i.value==="tooltip")return o.open&&o.id?o.id:void 0}),l=n.computed(()=>{if(i&&i.value!=="tooltip")return i.value}),c=n.computed(()=>l.value?`${o.open}`:void 0);let d;const f=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return n.onMounted(()=>{n.watch(()=>o.virtualRef,u=>{u&&(a.value=Oe(u))},{immediate:!0}),n.watch(a,(u,p)=>{d==null||d(),d=void 0,Xe(u)&&(f.forEach(g=>{var h;const m=o[g];m&&(u.addEventListener(g.slice(2).toLowerCase(),m),(h=p==null?void 0:p.removeEventListener)==null||h.call(p,g.slice(2).toLowerCase(),m))}),d=n.watch([r,s,l,c],g=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,m)=>{Tn(g[m])?u.removeAttribute(h):u.setAttribute(h,g[m])})},{immediate:!0})),Xe(p)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(g=>p.removeAttribute(g))},{immediate:!0})}),n.onBeforeUnmount(()=>{if(d==null||d(),d=void 0,a.value&&Xe(a.value)){const u=a.value;f.forEach(p=>{const g=o[p];g&&u.removeEventListener(p.slice(2).toLowerCase(),g)}),a.value=void 0}}),t({triggerRef:a}),(u,p)=>u.virtualTriggering?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createBlock(n.unref(ih),n.mergeProps({key:0},u.$attrs,{"aria-controls":n.unref(r),"aria-describedby":n.unref(s),"aria-expanded":n.unref(c),"aria-haspopup":n.unref(l)}),{default:n.withCtx(()=>[n.renderSlot(u.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var sh=D(rh,[["__file","trigger.vue"]]);const Go="focus-trap.focus-after-trapped",Jo="focus-trap.focus-after-released",lh="focus-trap.focusout-prevented",Ir={cancelable:!0,bubbles:!1},ch={cancelable:!0,bubbles:!1},Tr="focusAfterTrapped",Ar="focusAfterReleased",Or=Symbol("elFocusTrap"),Yo=n.ref(),$n=n.ref(0),Zo=n.ref(0);let zn=0;const Mr=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const a=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||a?NodeFilter.FILTER_SKIP:i.tabIndex>=0||i===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},Br=(e,t)=>{for(const o of e)if(!dh(o,t))return o},dh=(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},fh=e=>{const t=Mr(e),o=Br(t,e),i=Br(t.reverse(),e);return[o,i]},uh=e=>e instanceof HTMLInputElement&&"select"in e,He=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),Zo.value=window.performance.now(),e!==o&&uh(e)&&t&&e.select()}};function xr(e,t){const o=[...e],i=e.indexOf(t);return i!==-1&&o.splice(i,1),o}const ph=()=>{let e=[];return{push:i=>{const a=e[0];a&&i!==a&&a.pause(),e=xr(e,i),e.unshift(i)},remove:i=>{var a,r;e=xr(e,i),(r=(a=e[0])==null?void 0:a.resume)==null||r.call(a)}}},hh=(e,t=!1)=>{const o=document.activeElement;for(const i of e)if(He(i,t),document.activeElement!==o)return},Nr=ph(),mh=()=>$n.value>Zo.value,jn=()=>{Yo.value="pointer",$n.value=window.performance.now()},_r=()=>{Yo.value="keyboard",$n.value=window.performance.now()},gh=()=>(n.onMounted(()=>{zn===0&&(document.addEventListener("mousedown",jn),document.addEventListener("touchstart",jn),document.addEventListener("keydown",_r)),zn++}),n.onBeforeUnmount(()=>{zn--,zn<=0&&(document.removeEventListener("mousedown",jn),document.removeEventListener("touchstart",jn),document.removeEventListener("keydown",_r))}),{focusReason:Yo,lastUserFocusTimestamp:$n,lastAutomatedFocusTimestamp:Zo}),Hn=e=>new CustomEvent(lh,{...ch,detail:e}),yh=n.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Tr,Ar,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const o=n.ref();let i,a;const{focusReason:r}=gh();yp(h=>{e.trapped&&!s.paused&&t("release-requested",h)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},l=h=>{if(!e.loop&&!e.trapped||s.paused)return;const{key:m,altKey:b,ctrlKey:y,metaKey:v,currentTarget:T,shiftKey:S}=h,{loop:w}=e,k=m===Wt.tab&&!b&&!y&&!v,E=document.activeElement;if(k&&E){const O=T,[B,N]=fh(O);if(B&&N){if(!S&&E===N){const I=Hn({focusReason:r.value});t("focusout-prevented",I),I.defaultPrevented||(h.preventDefault(),w&&He(B,!0))}else if(S&&[B,O].includes(E)){const I=Hn({focusReason:r.value});t("focusout-prevented",I),I.defaultPrevented||(h.preventDefault(),w&&He(N,!0))}}else if(E===O){const I=Hn({focusReason:r.value});t("focusout-prevented",I),I.defaultPrevented||h.preventDefault()}}};n.provide(Or,{focusTrapRef:o,onKeydown:l}),n.watch(()=>e.focusTrapEl,h=>{h&&(o.value=h)},{immediate:!0}),n.watch([o],([h],[m])=>{h&&(h.addEventListener("keydown",l),h.addEventListener("focusin",f),h.addEventListener("focusout",u)),m&&(m.removeEventListener("keydown",l),m.removeEventListener("focusin",f),m.removeEventListener("focusout",u))});const c=h=>{t(Tr,h)},d=h=>t(Ar,h),f=h=>{const m=n.unref(o);if(!m)return;const b=h.target,y=h.relatedTarget,v=b&&m.contains(b);e.trapped||y&&m.contains(y)||(i=y),v&&t("focusin",h),!s.paused&&e.trapped&&(v?a=b:He(a,!0))},u=h=>{const m=n.unref(o);if(!(s.paused||!m))if(e.trapped){const b=h.relatedTarget;!Tn(b)&&!m.contains(b)&&setTimeout(()=>{if(!s.paused&&e.trapped){const y=Hn({focusReason:r.value});t("focusout-prevented",y),y.defaultPrevented||He(a,!0)}},0)}else{const b=h.target;b&&m.contains(b)||t("focusout",h)}};async function p(){await n.nextTick();const h=n.unref(o);if(h){Nr.push(s);const m=h.contains(document.activeElement)?i:document.activeElement;if(i=m,!h.contains(m)){const y=new Event(Go,Ir);h.addEventListener(Go,c),h.dispatchEvent(y),y.defaultPrevented||n.nextTick(()=>{let v=e.focusStartEl;me(v)||(He(v),document.activeElement!==v&&(v="first")),v==="first"&&hh(Mr(h),!0),(document.activeElement===m||v==="container")&&He(h)})}}}function g(){const h=n.unref(o);if(h){h.removeEventListener(Go,c);const m=new CustomEvent(Jo,{...Ir,detail:{focusReason:r.value}});h.addEventListener(Jo,d),h.dispatchEvent(m),!m.defaultPrevented&&(r.value=="keyboard"||!mh()||h.contains(document.activeElement))&&He(i??document.body),h.removeEventListener(Jo,d),Nr.remove(s)}}return n.onMounted(()=>{e.trapped&&p(),n.watch(()=>e.trapped,h=>{h?p():g()})}),n.onBeforeUnmount(()=>{e.trapped&&g(),o.value&&(o.value.removeEventListener("keydown",l),o.value.removeEventListener("focusin",f),o.value.removeEventListener("focusout",u),o.value=void 0)}),{onKeydown:l}}});function bh(e,t,o,i,a,r){return n.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var Lr=D(yh,[["render",bh],["__file","focus-trap.vue"]]);const wh=["fixed","absolute"],Ch=R({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:_(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Bn,default:"bottom"},popperOptions:{type:_(Object),default:()=>({})},strategy:{type:String,values:wh,default:"absolute"}}),Pr=R({...Ch,id:String,style:{type:_([String,Array,Object])},className:{type:_([String,Array,Object])},effect:{type:_(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:_([String,Array,Object])},popperStyle:{type:_([String,Array,Object])},referenceEl:{type:_(Object)},triggerTargetEl:{type:_(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...at(["ariaLabel"])}),vh={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Sh=(e,t=[])=>{const{placement:o,strategy:i,popperOptions:a}=e,r={placement:o,strategy:i,...a,modifiers:[...Eh(e),...t]};return Ih(r,a==null?void 0:a.modifiers),r},kh=e=>{if(K)return Oe(e)};function Eh(e){const{offset:t,gpuAcceleration:o,fallbackPlacements:i}=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:i}},{name:"computeStyles",options:{gpuAcceleration:o}}]}function Ih(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const Th=0,Ah=e=>{const{popperInstanceRef:t,contentRef:o,triggerRef:i,role:a}=n.inject(Wo,void 0),r=n.ref(),s=n.ref(),l=n.computed(()=>({name:"eventListeners",enabled:!!e.visible})),c=n.computed(()=>{var y;const v=n.unref(r),T=(y=n.unref(s))!=null?y:Th;return{name:"arrow",enabled:!Ia(v),options:{element:v,padding:T}}}),d=n.computed(()=>({onFirstUpdate:()=>{h()},...Sh(e,[n.unref(c),n.unref(l)])})),f=n.computed(()=>kh(e.referenceEl)||n.unref(i)),{attributes:u,state:p,styles:g,update:h,forceUpdate:m,instanceRef:b}=hp(f,o,d);return n.watch(b,y=>t.value=y),n.onMounted(()=>{n.watch(()=>{var y;return(y=n.unref(f))==null?void 0:y.getBoundingClientRect()},()=>{h()})}),{attributes:u,arrowRef:r,contentRef:o,instanceRef:b,state:p,styles:g,role:a,forceUpdate:m,update:h}},Oh=(e,{attributes:t,styles:o,role:i})=>{const{nextZIndex:a}=jo(),r=F("popper"),s=n.computed(()=>n.unref(t).popper),l=n.ref(G(e.zIndex)?e.zIndex:a()),c=n.computed(()=>[r.b(),r.is("pure",e.pure),r.is(e.effect),e.popperClass]),d=n.computed(()=>[{zIndex:n.unref(l)},n.unref(o).popper,e.popperStyle||{}]),f=n.computed(()=>i.value==="dialog"?"false":void 0),u=n.computed(()=>n.unref(o).arrow||{});return{ariaModal:f,arrowStyle:u,contentAttrs:s,contentClass:c,contentStyle:d,contentZIndex:l,updateZIndex:()=>{l.value=G(e.zIndex)?e.zIndex:a()}}},Mh=(e,t)=>{const o=n.ref(!1),i=n.ref();return{focusStartRef:i,trapped:o,onFocusAfterReleased:d=>{var f;((f=d.detail)==null?void 0:f.focusReason)!=="pointer"&&(i.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:d=>{e.visible&&!o.value&&(d.target&&(i.value=d.target),o.value=!0)},onFocusoutPrevented:d=>{e.trapping||(d.detail.focusReason==="pointer"&&d.preventDefault(),o.value=!1)},onReleaseRequested:()=>{o.value=!1,t("close")}}},Bh=n.defineComponent({name:"ElPopperContent"}),xh=n.defineComponent({...Bh,props:Pr,emits:vh,setup(e,{expose:t,emit:o}){const i=e,{focusStartRef:a,trapped:r,onFocusAfterReleased:s,onFocusAfterTrapped:l,onFocusInTrap:c,onFocusoutPrevented:d,onReleaseRequested:f}=Mh(i,o),{attributes:u,arrowRef:p,contentRef:g,styles:h,instanceRef:m,role:b,update:y}=Ah(i),{ariaModal:v,arrowStyle:T,contentAttrs:S,contentClass:w,contentStyle:k,updateZIndex:E}=Oh(i,{styles:h,attributes:u,role:b}),O=n.inject(Rn,void 0),B=n.ref();n.provide(wr,{arrowStyle:T,arrowRef:p,arrowOffset:B}),O&&n.provide(Rn,{...O,addInputId:Je,removeInputId:Je});let N;const x=(L=!0)=>{y(),L&&E()},I=()=>{x(!1),i.visible&&i.focusOnShow?r.value=!0:i.visible===!1&&(r.value=!1)};return n.onMounted(()=>{n.watch(()=>i.triggerTargetEl,(L,q)=>{N==null||N(),N=void 0;const V=n.unref(L||g.value),M=n.unref(q||g.value);Xe(V)&&(N=n.watch([b,()=>i.ariaLabel,v,()=>i.id],$=>{["role","aria-label","aria-modal","id"].forEach((pe,Y)=>{Tn($[Y])?V.removeAttribute(pe):V.setAttribute(pe,$[Y])})},{immediate:!0})),M!==V&&Xe(M)&&["role","aria-label","aria-modal","id"].forEach($=>{M.removeAttribute($)})},{immediate:!0}),n.watch(()=>i.visible,I,{immediate:!0})}),n.onBeforeUnmount(()=>{N==null||N(),N=void 0}),t({popperContentRef:g,popperInstanceRef:m,updatePopper:x,contentStyle:k}),(L,q)=>(n.openBlock(),n.createElementBlock("div",n.mergeProps({ref_key:"contentRef",ref:g},n.unref(S),{style:n.unref(k),class:n.unref(w),tabindex:"-1",onMouseenter:V=>L.$emit("mouseenter",V),onMouseleave:V=>L.$emit("mouseleave",V)}),[n.createVNode(n.unref(Lr),{trapped:n.unref(r),"trap-on-focus-in":!0,"focus-trap-el":n.unref(g),"focus-start-el":n.unref(a),onFocusAfterTrapped:n.unref(l),onFocusAfterReleased:n.unref(s),onFocusin:n.unref(c),onFocusoutPrevented:n.unref(d),onReleaseRequested:n.unref(f)},{default:n.withCtx(()=>[n.renderSlot(L.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var Nh=D(xh,[["__file","content.vue"]]);const _h=oe(eh),Qo=Symbol("elTooltip"),se=R({...Cp,...Pr,appendTo:{type:_([String,Object])},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:_(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...at(["ariaLabel"])}),nn=R({...Er,disabled:Boolean,trigger:{type:_([String,Array]),default:"hover"},triggerKeys:{type:_(Array),default:()=>[Wt.enter,Wt.space]}}),{useModelToggleProps:Lh,useModelToggleEmits:Ph,useModelToggle:Vh}=fu("visible"),Rh=R({...Cr,...Lh,...se,...nn,...vr,showArrow:{type:Boolean,default:!0}}),Dh=[...Ph,"before-show","before-hide","show","hide","open","close"],Fh=(e,t)=>ee(e)?e.includes(t):e===t,Ot=(e,t,o)=>i=>{Fh(n.unref(e),t)&&o(i)},$h=n.defineComponent({name:"ElTooltipTrigger"}),zh=n.defineComponent({...$h,props:nn,setup(e,{expose:t}){const o=e,i=F("tooltip"),{controlled:a,id:r,open:s,onOpen:l,onClose:c,onToggle:d}=n.inject(Qo,void 0),f=n.ref(null),u=()=>{if(n.unref(a)||o.disabled)return!0},p=n.toRef(o,"trigger"),g=Ae(u,Ot(p,"hover",l)),h=Ae(u,Ot(p,"hover",c)),m=Ae(u,Ot(p,"click",S=>{S.button===0&&d(S)})),b=Ae(u,Ot(p,"focus",l)),y=Ae(u,Ot(p,"focus",c)),v=Ae(u,Ot(p,"contextmenu",S=>{S.preventDefault(),d(S)})),T=Ae(u,S=>{const{code:w}=S;o.triggerKeys.includes(w)&&(S.preventDefault(),d(S))});return t({triggerRef:f}),(S,w)=>(n.openBlock(),n.createBlock(n.unref(sh),{id:n.unref(r),"virtual-ref":S.virtualRef,open:n.unref(s),"virtual-triggering":S.virtualTriggering,class:n.normalizeClass(n.unref(i).e("trigger")),onBlur:n.unref(y),onClick:n.unref(m),onContextmenu:n.unref(v),onFocus:n.unref(b),onMouseenter:n.unref(g),onMouseleave:n.unref(h),onKeydown:n.unref(T)},{default:n.withCtx(()=>[n.renderSlot(S.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var jh=D(zh,[["__file","trigger.vue"]]);const Hh=R({to:{type:_([String,Object]),required:!0},disabled:Boolean});var Kh=D(n.defineComponent({__name:"teleport",props:Hh,setup(e){return(t,o)=>t.disabled?n.renderSlot(t.$slots,"default",{key:0}):(n.openBlock(),n.createBlock(n.Teleport,{key:1,to:t.to},[n.renderSlot(t.$slots,"default")],8,["to"]))}}),[["__file","teleport.vue"]]);const Vr=oe(Kh),Uh=n.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),Wh=n.defineComponent({...Uh,props:se,setup(e,{expose:t}){const o=e,{selector:i}=lr(),a=F("tooltip"),r=n.ref(null);let s;const{controlled:l,id:c,open:d,trigger:f,onClose:u,onOpen:p,onShow:g,onHide:h,onBeforeShow:m,onBeforeHide:b}=n.inject(Qo,void 0),y=n.computed(()=>o.transition||`${a.namespace.value}-fade-in-linear`),v=n.computed(()=>process.env.NODE_ENV==="test"?!0:o.persistent);n.onBeforeUnmount(()=>{s==null||s()});const T=n.computed(()=>n.unref(v)?!0:n.unref(d)),S=n.computed(()=>o.disabled?!1:n.unref(d)),w=n.computed(()=>o.appendTo||i.value),k=n.computed(()=>{var M;return(M=o.style)!=null?M:{}}),E=n.ref(!0),O=()=>{h(),E.value=!0},B=()=>{if(n.unref(l))return!0},N=Ae(B,()=>{o.enterable&&n.unref(f)==="hover"&&p()}),x=Ae(B,()=>{n.unref(f)==="hover"&&u()}),I=()=>{var M,$;($=(M=r.value)==null?void 0:M.updatePopper)==null||$.call(M),m==null||m()},L=()=>{b==null||b()},q=()=>{g(),s=Ds(n.computed(()=>{var M;return(M=r.value)==null?void 0:M.popperContentRef}),()=>{if(n.unref(l))return;n.unref(f)!=="hover"&&u()})},V=()=>{o.virtualTriggering||u()};return n.watch(()=>n.unref(d),M=>{M?E.value=!1:s==null||s()},{flush:"post"}),n.watch(()=>o.content,()=>{var M,$;($=(M=r.value)==null?void 0:M.updatePopper)==null||$.call(M)}),t({contentRef:r}),(M,$)=>(n.openBlock(),n.createBlock(n.unref(Vr),{disabled:!M.teleported,to:n.unref(w)},{default:n.withCtx(()=>[n.createVNode(n.Transition,{name:n.unref(y),onAfterLeave:O,onBeforeEnter:I,onAfterEnter:q,onBeforeLeave:L},{default:n.withCtx(()=>[n.unref(T)?n.withDirectives((n.openBlock(),n.createBlock(n.unref(Nh),n.mergeProps({key:0,id:n.unref(c),ref_key:"contentRef",ref:r},M.$attrs,{"aria-label":M.ariaLabel,"aria-hidden":E.value,"boundaries-padding":M.boundariesPadding,"fallback-placements":M.fallbackPlacements,"gpu-acceleration":M.gpuAcceleration,offset:M.offset,placement:M.placement,"popper-options":M.popperOptions,strategy:M.strategy,effect:M.effect,enterable:M.enterable,pure:M.pure,"popper-class":M.popperClass,"popper-style":[M.popperStyle,n.unref(k)],"reference-el":M.referenceEl,"trigger-target-el":M.triggerTargetEl,visible:n.unref(S),"z-index":M.zIndex,onMouseenter:n.unref(N),onMouseleave:n.unref(x),onBlur:V,onClose:n.unref(u)}),{default:n.withCtx(()=>[n.renderSlot(M.$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"])),[[n.vShow,n.unref(S)]]):n.createCommentVNode("v-if",!0)]),_:3},8,["name"])]),_:3},8,["disabled","to"]))}});var qh=D(Wh,[["__file","content.vue"]]);const Gh=n.defineComponent({name:"ElTooltip"}),Jh=n.defineComponent({...Gh,props:Rh,emits:Dh,setup(e,{expose:t,emit:o}){const i=e;wp();const a=it(),r=n.ref(),s=n.ref(),l=()=>{var y;const v=n.unref(r);v&&((y=v.popperInstanceRef)==null||y.update())},c=n.ref(!1),d=n.ref(),{show:f,hide:u,hasUpdateHandler:p}=Vh({indicator:c,toggleReason:d}),{onOpen:g,onClose:h}=vp({showAfter:n.toRef(i,"showAfter"),hideAfter:n.toRef(i,"hideAfter"),autoClose:n.toRef(i,"autoClose"),open:f,close:u}),m=n.computed(()=>_e(i.visible)&&!p.value);n.provide(Qo,{controlled:m,id:a,open:n.readonly(c),trigger:n.toRef(i,"trigger"),onOpen:y=>{g(y)},onClose:y=>{h(y)},onToggle:y=>{n.unref(c)?h(y):g(y)},onShow:()=>{o("show",d.value)},onHide:()=>{o("hide",d.value)},onBeforeShow:()=>{o("before-show",d.value)},onBeforeHide:()=>{o("before-hide",d.value)},updatePopper:l}),n.watch(()=>i.disabled,y=>{y&&c.value&&(c.value=!1)});const b=y=>{var v,T;const S=(T=(v=s.value)==null?void 0:v.contentRef)==null?void 0:T.popperContentRef,w=(y==null?void 0:y.relatedTarget)||document.activeElement;return S&&S.contains(w)};return n.onDeactivated(()=>c.value&&u()),t({popperRef:r,contentRef:s,isFocusInsideContent:b,updatePopper:l,onOpen:g,onClose:h,hide:u}),(y,v)=>(n.openBlock(),n.createBlock(n.unref(_h),{ref_key:"popperRef",ref:r,role:y.role},{default:n.withCtx(()=>[n.createVNode(jh,{disabled:y.disabled,trigger:y.trigger,"trigger-keys":y.triggerKeys,"virtual-ref":y.virtualRef,"virtual-triggering":y.virtualTriggering},{default:n.withCtx(()=>[y.$slots.default?n.renderSlot(y.$slots,"default",{key:0}):n.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),n.createVNode(qh,{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:n.withCtx(()=>[n.renderSlot(y.$slots,"content",{},()=>[y.rawContent?(n.openBlock(),n.createElementBlock("span",{key:0,innerHTML:y.content},null,8,["innerHTML"])):(n.openBlock(),n.createElementBlock("span",{key:1},n.toDisplayString(y.content),1))]),y.showArrow?(n.openBlock(),n.createBlock(n.unref(oh),{key:0,"arrow-offset":y.arrowOffset},null,8,["arrow-offset"])):n.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 Yh=D(Jh,[["__file","tooltip.vue"]]);const Rr=oe(Yh),Dr=Symbol("buttonGroupContextKey"),Zh=(e,t)=>{yt({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},n.computed(()=>e.type==="text"));const o=n.inject(Dr,void 0),i=Vn("button"),{form:a}=Tt(),r=It(n.computed(()=>o==null?void 0:o.size)),s=Dn(),l=n.ref(),c=n.useSlots(),d=n.computed(()=>e.type||(o==null?void 0:o.type)||""),f=n.computed(()=>{var h,m,b;return(b=(m=e.autoInsertSpace)!=null?m:(h=i.value)==null?void 0:h.autoInsertSpace)!=null?b:!1}),u=n.computed(()=>e.tag==="button"?{ariaDisabled:s.value||e.loading,disabled:s.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),p=n.computed(()=>{var h;const m=(h=c.default)==null?void 0:h.call(c);if(f.value&&(m==null?void 0:m.length)===1){const b=m[0];if((b==null?void 0:b.type)===n.Text){const y=b.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(y.trim())}}return!1});return{_disabled:s,_size:r,_type:d,_ref:l,_props:u,shouldAddSpace:p,handleClick:h=>{if(s.value||e.loading){h.stopPropagation();return}e.nativeType==="reset"&&(a==null||a.resetFields()),t("click",h)}}},Xo=R({size:Et,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:gt},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:gt,default:()=>W.Loading},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:_([String,Object]),default:"button"}}),Qh={click:e=>e instanceof MouseEvent};function J(e,t){Xh(e)&&(e="100%");var o=em(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),o&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Kn(e){return Math.min(1,Math.max(0,e))}function Xh(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function em(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Fr(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Un(e){return e<=1?"".concat(Number(e)*100,"%"):e}function rt(e){return e.length===1?"0"+e:String(e)}function tm(e,t,o){return{r:J(e,255)*255,g:J(t,255)*255,b:J(o,255)*255}}function $r(e,t,o){e=J(e,255),t=J(t,255),o=J(o,255);var i=Math.max(e,t,o),a=Math.min(e,t,o),r=0,s=0,l=(i+a)/2;if(i===a)s=0,r=0;else{var c=i-a;switch(s=l>.5?c/(2-i-a):c/(i+a),i){case e:r=(t-o)/c+(t<o?6:0);break;case t:r=(o-e)/c+2;break;case o:r=(e-t)/c+4;break}r/=6}return{h:r,s,l}}function ei(e,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+(t-e)*(6*o):o<1/2?t:o<2/3?e+(t-e)*(2/3-o)*6:e}function nm(e,t,o){var i,a,r;if(e=J(e,360),t=J(t,100),o=J(o,100),t===0)a=o,r=o,i=o;else{var s=o<.5?o*(1+t):o+t-o*t,l=2*o-s;i=ei(l,s,e+1/3),a=ei(l,s,e),r=ei(l,s,e-1/3)}return{r:i*255,g:a*255,b:r*255}}function zr(e,t,o){e=J(e,255),t=J(t,255),o=J(o,255);var i=Math.max(e,t,o),a=Math.min(e,t,o),r=0,s=i,l=i-a,c=i===0?0:l/i;if(i===a)r=0;else{switch(i){case e:r=(t-o)/l+(t<o?6:0);break;case t:r=(o-e)/l+2;break;case o:r=(e-t)/l+4;break}r/=6}return{h:r,s:c,v:s}}function om(e,t,o){e=J(e,360)*6,t=J(t,100),o=J(o,100);var i=Math.floor(e),a=e-i,r=o*(1-t),s=o*(1-a*t),l=o*(1-(1-a)*t),c=i%6,d=[o,s,r,r,l,o][c],f=[l,o,o,s,r,r][c],u=[r,r,l,o,o,s][c];return{r:d*255,g:f*255,b:u*255}}function jr(e,t,o,i){var a=[rt(Math.round(e).toString(16)),rt(Math.round(t).toString(16)),rt(Math.round(o).toString(16))];return i&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function im(e,t,o,i,a){var r=[rt(Math.round(e).toString(16)),rt(Math.round(t).toString(16)),rt(Math.round(o).toString(16)),rt(am(i))];return a&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))&&r[3].startsWith(r[3].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0)+r[3].charAt(0):r.join("")}function am(e){return Math.round(parseFloat(e)*255).toString(16)}function Hr(e){return le(e)/255}function le(e){return parseInt(e,16)}function rm(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var ti={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 sm(e){var t={r:0,g:0,b:0},o=1,i=null,a=null,r=null,s=!1,l=!1;return typeof e=="string"&&(e=dm(e)),typeof e=="object"&&(Pe(e.r)&&Pe(e.g)&&Pe(e.b)?(t=tm(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Pe(e.h)&&Pe(e.s)&&Pe(e.v)?(i=Un(e.s),a=Un(e.v),t=om(e.h,i,a),s=!0,l="hsv"):Pe(e.h)&&Pe(e.s)&&Pe(e.l)&&(i=Un(e.s),r=Un(e.l),t=nm(e.h,i,r),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(o=e.a)),o=Fr(o),{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:o}}var lm="[-\\+]?\\d+%?",cm="[-\\+]?\\d*\\.\\d+%?",Ke="(?:".concat(cm,")|(?:").concat(lm,")"),ni="[\\s|\\(]+(".concat(Ke,")[,|\\s]+(").concat(Ke,")[,|\\s]+(").concat(Ke,")\\s*\\)?"),oi="[\\s|\\(]+(".concat(Ke,")[,|\\s]+(").concat(Ke,")[,|\\s]+(").concat(Ke,")[,|\\s]+(").concat(Ke,")\\s*\\)?"),we={CSS_UNIT:new RegExp(Ke),rgb:new RegExp("rgb"+ni),rgba:new RegExp("rgba"+oi),hsl:new RegExp("hsl"+ni),hsla:new RegExp("hsla"+oi),hsv:new RegExp("hsv"+ni),hsva:new RegExp("hsva"+oi),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 dm(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(ti[e])e=ti[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var o=we.rgb.exec(e);return o?{r:o[1],g:o[2],b:o[3]}:(o=we.rgba.exec(e),o?{r:o[1],g:o[2],b:o[3],a:o[4]}:(o=we.hsl.exec(e),o?{h:o[1],s:o[2],l:o[3]}:(o=we.hsla.exec(e),o?{h:o[1],s:o[2],l:o[3],a:o[4]}:(o=we.hsv.exec(e),o?{h:o[1],s:o[2],v:o[3]}:(o=we.hsva.exec(e),o?{h:o[1],s:o[2],v:o[3],a:o[4]}:(o=we.hex8.exec(e),o?{r:le(o[1]),g:le(o[2]),b:le(o[3]),a:Hr(o[4]),format:t?"name":"hex8"}:(o=we.hex6.exec(e),o?{r:le(o[1]),g:le(o[2]),b:le(o[3]),format:t?"name":"hex"}:(o=we.hex4.exec(e),o?{r:le(o[1]+o[1]),g:le(o[2]+o[2]),b:le(o[3]+o[3]),a:Hr(o[4]+o[4]),format:t?"name":"hex8"}:(o=we.hex3.exec(e),o?{r:le(o[1]+o[1]),g:le(o[2]+o[2]),b:le(o[3]+o[3]),format:t?"name":"hex"}:!1)))))))))}function Pe(e){return!!we.CSS_UNIT.exec(String(e))}var fm=function(){function e(t,o){t===void 0&&(t=""),o===void 0&&(o={});var i;if(t instanceof e)return t;typeof t=="number"&&(t=rm(t)),this.originalInput=t;var a=sm(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=(i=o.format)!==null&&i!==void 0?i:a.format,this.gradientType=o.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=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(),o,i,a,r=t.r/255,s=t.g/255,l=t.b/255;return r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),l<=.03928?a=l/12.92:a=Math.pow((l+.055)/1.055,2.4),.2126*o+.7152*i+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Fr(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=zr(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=zr(this.r,this.g,this.b),o=Math.round(t.h*360),i=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(o,", ").concat(i,"%, ").concat(a,"%)"):"hsva(".concat(o,", ").concat(i,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=$r(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=$r(this.r,this.g,this.b),o=Math.round(t.h*360),i=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(o,", ").concat(i,"%, ").concat(a,"%)"):"hsla(".concat(o,", ").concat(i,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),jr(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),im(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),o=Math.round(this.g),i=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(o,", ").concat(i,")"):"rgba(".concat(t,", ").concat(o,", ").concat(i,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(o){return"".concat(Math.round(J(o,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(o){return Math.round(J(o,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+jr(this.r,this.g,this.b,!1),o=0,i=Object.entries(ti);o<i.length;o++){var a=i[o],r=a[0],s=a[1];if(t===s)return r}return!1},e.prototype.toString=function(t){var o=!!t;t=t??this.format;var i=!1,a=this.a<1&&this.a>=0,r=!o&&a&&(t.startsWith("hex")||t==="name");return r?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(i=this.toRgbString()),t==="prgb"&&(i=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(i=this.toHexString()),t==="hex3"&&(i=this.toHexString(!0)),t==="hex4"&&(i=this.toHex8String(!0)),t==="hex8"&&(i=this.toHex8String()),t==="name"&&(i=this.toName()),t==="hsl"&&(i=this.toHslString()),t==="hsv"&&(i=this.toHsvString()),i||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.l+=t/100,o.l=Kn(o.l),new e(o)},e.prototype.brighten=function(t){t===void 0&&(t=10);var o=this.toRgb();return o.r=Math.max(0,Math.min(255,o.r-Math.round(255*-(t/100)))),o.g=Math.max(0,Math.min(255,o.g-Math.round(255*-(t/100)))),o.b=Math.max(0,Math.min(255,o.b-Math.round(255*-(t/100)))),new e(o)},e.prototype.darken=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.l-=t/100,o.l=Kn(o.l),new e(o)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.s-=t/100,o.s=Kn(o.s),new e(o)},e.prototype.saturate=function(t){t===void 0&&(t=10);var o=this.toHsl();return o.s+=t/100,o.s=Kn(o.s),new e(o)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var o=this.toHsl(),i=(o.h+t)%360;return o.h=i<0?360+i:i,new e(o)},e.prototype.mix=function(t,o){o===void 0&&(o=50);var i=this.toRgb(),a=new e(t).toRgb(),r=o/100,s={r:(a.r-i.r)*r+i.r,g:(a.g-i.g)*r+i.g,b:(a.b-i.b)*r+i.b,a:(a.a-i.a)*r+i.a};return new e(s)},e.prototype.analogous=function(t,o){t===void 0&&(t=6),o===void 0&&(o=30);var i=this.toHsl(),a=360/o,r=[this];for(i.h=(i.h-(a*t>>1)+720)%360;--t;)i.h=(i.h+a)%360,r.push(new e(i));return r},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var o=this.toHsv(),i=o.h,a=o.s,r=o.v,s=[],l=1/t;t--;)s.push(new e({h:i,s:a,v:r})),r=(r+l)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),o=t.h;return[this,new e({h:(o+72)%360,s:t.s,l:t.l}),new e({h:(o+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var o=this.toRgb(),i=new e(t).toRgb(),a=o.a+i.a*(1-o.a);return new e({r:(o.r*o.a+i.r*i.a*(1-o.a))/a,g:(o.g*o.a+i.g*i.a*(1-o.a))/a,b:(o.b*o.a+i.b*i.a*(1-o.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 o=this.toHsl(),i=o.h,a=[this],r=360/t,s=1;s<t;s++)a.push(new e({h:(i+s*r)%360,s:o.s,l:o.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Ue(e,t=20){return e.mix("#141414",t).toString()}function um(e){const t=Dn(),o=F("button");return n.computed(()=>{let i={},a=e.color;if(a){const r=a.match(/var\((.*?)\)/);r&&(a=window.getComputedStyle(window.document.documentElement).getPropertyValue(r[1]));const s=new fm(a),l=e.dark?s.tint(20).toString():Ue(s,20);if(e.plain)i=o.cssVarBlock({"bg-color":e.dark?Ue(s,90):s.tint(90).toString(),"text-color":a,"border-color":e.dark?Ue(s,50):s.tint(50).toString(),"hover-text-color":`var(${o.cssVarName("color-white")})`,"hover-bg-color":a,"hover-border-color":a,"active-bg-color":l,"active-text-color":`var(${o.cssVarName("color-white")})`,"active-border-color":l}),t.value&&(i[o.cssVarBlockName("disabled-bg-color")]=e.dark?Ue(s,90):s.tint(90).toString(),i[o.cssVarBlockName("disabled-text-color")]=e.dark?Ue(s,50):s.tint(50).toString(),i[o.cssVarBlockName("disabled-border-color")]=e.dark?Ue(s,80):s.tint(80).toString());else{const c=e.dark?Ue(s,30):s.tint(30).toString(),d=s.isDark()?`var(${o.cssVarName("color-white")})`:`var(${o.cssVarName("color-black")})`;if(i=o.cssVarBlock({"bg-color":a,"text-color":d,"border-color":a,"hover-bg-color":c,"hover-text-color":d,"hover-border-color":c,"active-bg-color":l,"active-border-color":l}),t.value){const f=e.dark?Ue(s,50):s.tint(50).toString();i[o.cssVarBlockName("disabled-bg-color")]=f,i[o.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${o.cssVarName("color-white")})`,i[o.cssVarBlockName("disabled-border-color")]=f}}}return i})}const pm=n.defineComponent({name:"ElButton"}),hm=n.defineComponent({...pm,props:Xo,emits:Qh,setup(e,{expose:t,emit:o}){const i=e,a=um(i),r=F("button"),{_ref:s,_size:l,_type:c,_disabled:d,_props:f,shouldAddSpace:u,handleClick:p}=Zh(i,o),g=n.computed(()=>[r.b(),r.m(c.value),r.m(l.value),r.is("disabled",d.value),r.is("loading",i.loading),r.is("plain",i.plain),r.is("round",i.round),r.is("circle",i.circle),r.is("text",i.text),r.is("link",i.link),r.is("has-bg",i.bg)]);return t({ref:s,size:l,type:c,disabled:d,shouldAddSpace:u}),(h,m)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(h.tag),n.mergeProps({ref_key:"_ref",ref:s},n.unref(f),{class:n.unref(g),style:n.unref(a),onClick:n.unref(p)}),{default:n.withCtx(()=>[h.loading?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[h.$slots.loading?n.renderSlot(h.$slots,"loading",{key:0}):(n.openBlock(),n.createBlock(n.unref(be),{key:1,class:n.normalizeClass(n.unref(r).is("loading"))},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(h.loadingIcon)))]),_:1},8,["class"]))],64)):h.icon||h.$slots.icon?(n.openBlock(),n.createBlock(n.unref(be),{key:1},{default:n.withCtx(()=>[h.icon?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(h.icon),{key:0})):n.renderSlot(h.$slots,"icon",{key:1})]),_:3})):n.createCommentVNode("v-if",!0),h.$slots.default?(n.openBlock(),n.createElementBlock("span",{key:2,class:n.normalizeClass({[n.unref(r).em("text","expand")]:n.unref(u)})},[n.renderSlot(h.$slots,"default")],2)):n.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var mm=D(hm,[["__file","button.vue"]]);const gm={size:Xo.size,type:Xo.type},ym=n.defineComponent({name:"ElButtonGroup"}),bm=n.defineComponent({...ym,props:gm,setup(e){const t=e;n.provide(Dr,n.reactive({size:n.toRef(t,"size"),type:n.toRef(t,"type")}));const o=F("button");return(i,a)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(n.unref(o).b("group"))},[n.renderSlot(i.$slots,"default")],2))}});var Kr=D(bm,[["__file","button-group.vue"]]);const ii=oe(mm,{ButtonGroup:Kr});tt(Kr);var wm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Cm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const We=new Map;if(K){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const o of We.values())for(const{documentHandler:i}of o)i(t,e);e=void 0}})}function Ur(e,t){let o=[];return Array.isArray(t.arg)?o=t.arg:Xe(t.arg)&&o.push(t.arg),function(i,a){const r=t.instance.popperRef,s=i.target,l=a==null?void 0:a.target,c=!t||!t.instance,d=!s||!l,f=e.contains(s)||e.contains(l),u=e===s,p=o.length&&o.some(h=>h==null?void 0:h.contains(s))||o.length&&o.includes(l),g=r&&(r.contains(s)||r.contains(l));c||d||f||u||p||g||t.value(i,a)}}const vm={beforeMount(e,t){We.has(e)||We.set(e,[]),We.get(e).push({documentHandler:Ur(e,t),bindingFn:t.value})},updated(e,t){We.has(e)||We.set(e,[]);const o=We.get(e),i=o.findIndex(r=>r.bindingFn===t.oldValue),a={documentHandler:Ur(e,t),bindingFn:t.value};i>=0?o.splice(i,1,a):o.push(a)},unmounted(e){We.delete(e)}},Wr={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:Et,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...at(["ariaControls"])},qr={[X]:e=>me(e)||G(e)||_e(e),change:e=>me(e)||G(e)||_e(e)},Mt=Symbol("checkboxGroupContextKey"),Sm=({model:e,isChecked:t})=>{const o=n.inject(Mt,void 0),i=n.computed(()=>{var r,s;const l=(r=o==null?void 0:o.max)==null?void 0:r.value,c=(s=o==null?void 0:o.min)==null?void 0:s.value;return!ze(l)&&e.value.length>=l&&!t.value||!ze(c)&&e.value.length<=c&&t.value});return{isDisabled:Dn(n.computed(()=>(o==null?void 0:o.disabled.value)||i.value)),isLimitDisabled:i}},km=(e,{model:t,isLimitExceeded:o,hasOwnLabel:i,isDisabled:a,isLabeledByFormItem:r})=>{const s=n.inject(Mt,void 0),{formItem:l}=Tt(),{emit:c}=n.getCurrentInstance();function d(h){var m,b,y,v;return[!0,e.trueValue,e.trueLabel].includes(h)?(b=(m=e.trueValue)!=null?m:e.trueLabel)!=null?b:!0:(v=(y=e.falseValue)!=null?y:e.falseLabel)!=null?v:!1}function f(h,m){c("change",d(h),m)}function u(h){if(o.value)return;const m=h.target;c("change",d(m.checked),h)}async function p(h){o.value||!i.value&&!a.value&&r.value&&(h.composedPath().some(y=>y.tagName==="LABEL")||(t.value=d([!1,e.falseValue,e.falseLabel].includes(t.value)),await n.nextTick(),f(t.value,h)))}const g=n.computed(()=>(s==null?void 0:s.validateEvent)||e.validateEvent);return n.watch(()=>e.modelValue,()=>{g.value&&(l==null||l.validate("change").catch(h=>ne(h)))}),{handleChange:u,onClickRoot:p}},Em=e=>{const t=n.ref(!1),{emit:o}=n.getCurrentInstance(),i=n.inject(Mt,void 0),a=n.computed(()=>ze(i)===!1),r=n.ref(!1),s=n.computed({get(){var l,c;return a.value?(l=i==null?void 0:i.modelValue)==null?void 0:l.value:(c=e.modelValue)!=null?c:t.value},set(l){var c,d;a.value&&ee(l)?(r.value=((c=i==null?void 0:i.max)==null?void 0:c.value)!==void 0&&l.length>(i==null?void 0:i.max.value)&&l.length>s.value.length,r.value===!1&&((d=i==null?void 0:i.changeEvent)==null||d.call(i,l))):(o(X,l),t.value=l)}});return{model:s,isGroup:a,isLimitExceeded:r}},Im=(e,t,{model:o})=>{const i=n.inject(Mt,void 0),a=n.ref(!1),r=n.computed(()=>Kt(e.value)?e.label:e.value),s=n.computed(()=>{const f=o.value;return _e(f)?f:ee(f)?te(r.value)?f.map(n.toRaw).some(u=>In(u,r.value)):f.map(n.toRaw).includes(r.value):f!=null?f===e.trueValue||f===e.trueLabel:!!f}),l=It(n.computed(()=>{var f;return(f=i==null?void 0:i.size)==null?void 0:f.value}),{prop:!0}),c=It(n.computed(()=>{var f;return(f=i==null?void 0:i.size)==null?void 0:f.value})),d=n.computed(()=>!!t.default||!Kt(r.value));return{checkboxButtonSize:l,isChecked:s,isFocused:a,checkboxSize:c,hasOwnLabel:d,actualValue:r}},Gr=(e,t)=>{const{formItem:o}=Tt(),{model:i,isGroup:a,isLimitExceeded:r}=Em(e),{isFocused:s,isChecked:l,checkboxButtonSize:c,checkboxSize:d,hasOwnLabel:f,actualValue:u}=Im(e,t,{model:i}),{isDisabled:p}=Sm({model:i,isChecked:l}),{inputId:g,isLabeledByFormItem:h}=Fn(e,{formItemContext:o,disableIdGeneration:f,disableIdManagement:a}),{handleChange:m,onClickRoot:b}=km(e,{model:i,isLimitExceeded:r,hasOwnLabel:f,isDisabled:p,isLabeledByFormItem:h});return(()=>{function v(){var T,S;ee(i.value)&&!i.value.includes(u.value)?i.value.push(u.value):i.value=(S=(T=e.trueValue)!=null?T:e.trueLabel)!=null?S:!0}e.checked&&v()})(),yt({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},n.computed(()=>a.value&&Kt(e.value))),yt({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},n.computed(()=>!!e.trueLabel)),yt({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},n.computed(()=>!!e.falseLabel)),{inputId:g,isLabeledByFormItem:h,isChecked:l,isDisabled:p,isFocused:s,checkboxButtonSize:c,checkboxSize:d,hasOwnLabel:f,model:i,actualValue:u,handleChange:m,onClickRoot:b}},Tm=n.defineComponent({name:"ElCheckbox"}),Am=n.defineComponent({...Tm,props:Wr,emits:qr,setup(e){const t=e,o=n.useSlots(),{inputId:i,isLabeledByFormItem:a,isChecked:r,isDisabled:s,isFocused:l,checkboxSize:c,hasOwnLabel:d,model:f,actualValue:u,handleChange:p,onClickRoot:g}=Gr(t,o),h=F("checkbox"),m=n.computed(()=>[h.b(),h.m(c.value),h.is("disabled",s.value),h.is("bordered",t.border),h.is("checked",r.value)]),b=n.computed(()=>[h.e("input"),h.is("disabled",s.value),h.is("checked",r.value),h.is("indeterminate",t.indeterminate),h.is("focus",l.value)]);return(y,v)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(!n.unref(d)&&n.unref(a)?"span":"label"),{class:n.normalizeClass(n.unref(m)),"aria-controls":y.indeterminate?y.ariaControls:null,onClick:n.unref(g)},{default:n.withCtx(()=>{var T,S,w,k;return[n.createElementVNode("span",{class:n.normalizeClass(n.unref(b))},[y.trueValue||y.falseValue||y.trueLabel||y.falseLabel?n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:0,id:n.unref(i),"onUpdate:modelValue":E=>n.isRef(f)?f.value=E:null,class:n.normalizeClass(n.unref(h).e("original")),type:"checkbox",indeterminate:y.indeterminate,name:y.name,tabindex:y.tabindex,disabled:n.unref(s),"true-value":(S=(T=y.trueValue)!=null?T:y.trueLabel)!=null?S:!0,"false-value":(k=(w=y.falseValue)!=null?w:y.falseLabel)!=null?k:!1,onChange:n.unref(p),onFocus:E=>l.value=!0,onBlur:E=>l.value=!1,onClick:n.withModifiers(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[n.vModelCheckbox,n.unref(f)]]):n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:1,id:n.unref(i),"onUpdate:modelValue":E=>n.isRef(f)?f.value=E:null,class:n.normalizeClass(n.unref(h).e("original")),type:"checkbox",indeterminate:y.indeterminate,disabled:n.unref(s),value:n.unref(u),name:y.name,tabindex:y.tabindex,onChange:n.unref(p),onFocus:E=>l.value=!0,onBlur:E=>l.value=!1,onClick:n.withModifiers(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[n.vModelCheckbox,n.unref(f)]]),n.createElementVNode("span",{class:n.normalizeClass(n.unref(h).e("inner"))},null,2)],2),n.unref(d)?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass(n.unref(h).e("label"))},[n.renderSlot(y.$slots,"default"),y.$slots.default?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(y.label),1)],64))],2)):n.createCommentVNode("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var Om=D(Am,[["__file","checkbox.vue"]]);const Mm=n.defineComponent({name:"ElCheckboxButton"}),Bm=n.defineComponent({...Mm,props:Wr,emits:qr,setup(e){const t=e,o=n.useSlots(),{isFocused:i,isChecked:a,isDisabled:r,checkboxButtonSize:s,model:l,actualValue:c,handleChange:d}=Gr(t,o),f=n.inject(Mt,void 0),u=F("checkbox"),p=n.computed(()=>{var h,m,b,y;const v=(m=(h=f==null?void 0:f.fill)==null?void 0:h.value)!=null?m:"";return{backgroundColor:v,borderColor:v,color:(y=(b=f==null?void 0:f.textColor)==null?void 0:b.value)!=null?y:"",boxShadow:v?`-1px 0 0 0 ${v}`:void 0}}),g=n.computed(()=>[u.b("button"),u.bm("button",s.value),u.is("disabled",r.value),u.is("checked",a.value),u.is("focus",i.value)]);return(h,m)=>{var b,y,v,T;return n.openBlock(),n.createElementBlock("label",{class:n.normalizeClass(n.unref(g))},[h.trueValue||h.falseValue||h.trueLabel||h.falseLabel?n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:0,"onUpdate:modelValue":S=>n.isRef(l)?l.value=S:null,class:n.normalizeClass(n.unref(u).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:n.unref(r),"true-value":(y=(b=h.trueValue)!=null?b:h.trueLabel)!=null?y:!0,"false-value":(T=(v=h.falseValue)!=null?v:h.falseLabel)!=null?T:!1,onChange:n.unref(d),onFocus:S=>i.value=!0,onBlur:S=>i.value=!1,onClick:n.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[n.vModelCheckbox,n.unref(l)]]):n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:1,"onUpdate:modelValue":S=>n.isRef(l)?l.value=S:null,class:n.normalizeClass(n.unref(u).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:n.unref(r),value:n.unref(c),onChange:n.unref(d),onFocus:S=>i.value=!0,onBlur:S=>i.value=!1,onClick:n.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[n.vModelCheckbox,n.unref(l)]]),h.$slots.default||h.label?(n.openBlock(),n.createElementBlock("span",{key:2,class:n.normalizeClass(n.unref(u).be("button","inner")),style:n.normalizeStyle(n.unref(a)?n.unref(p):void 0)},[n.renderSlot(h.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(h.label),1)])],6)):n.createCommentVNode("v-if",!0)],2)}}});var Jr=D(Bm,[["__file","checkbox-button.vue"]]);const xm=R({modelValue:{type:_(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Et,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...at(["ariaLabel"])}),Nm={[X]:e=>ee(e),change:e=>ee(e)},_m=n.defineComponent({name:"ElCheckboxGroup"}),Lm=n.defineComponent({..._m,props:xm,emits:Nm,setup(e,{emit:t}){const o=e,i=F("checkbox"),{formItem:a}=Tt(),{inputId:r,isLabeledByFormItem:s}=Fn(o,{formItemContext:a}),l=async d=>{t(X,d),await n.nextTick(),t("change",d)},c=n.computed({get(){return o.modelValue},set(d){l(d)}});return n.provide(Mt,{...Ta(n.toRefs(o),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:c,changeEvent:l}),n.watch(()=>o.modelValue,()=>{o.validateEvent&&(a==null||a.validate("change").catch(d=>ne(d)))}),(d,f)=>{var u;return n.openBlock(),n.createBlock(n.resolveDynamicComponent(d.tag),{id:n.unref(r),class:n.normalizeClass(n.unref(i).b("group")),role:"group","aria-label":n.unref(s)?void 0:d.ariaLabel||"checkbox-group","aria-labelledby":n.unref(s)?(u=n.unref(a))==null?void 0:u.labelId:void 0},{default:n.withCtx(()=>[n.renderSlot(d.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var Yr=D(Lm,[["__file","checkbox-group.vue"]]);const Zr=oe(Om,{CheckboxButton:Jr,CheckboxGroup:Yr});tt(Jr);const Qr=tt(Yr),Xr=R({modelValue:{type:[String,Number,Boolean],default:void 0},size:Et,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),Pm=R({...Xr,border:Boolean}),es={[X]:e=>me(e)||G(e)||_e(e),[Mo]:e=>me(e)||G(e)||_e(e)},ts=Symbol("radioGroupKey"),ns=(e,t)=>{const o=n.ref(),i=n.inject(ts,void 0),a=n.computed(()=>!!i),r=n.computed(()=>Kt(e.value)?e.label:e.value),s=n.computed({get(){return a.value?i.modelValue:e.modelValue},set(u){a.value?i.changeEvent(u):t&&t(X,u),o.value.checked=e.modelValue===r.value}}),l=It(n.computed(()=>i==null?void 0:i.size)),c=Dn(n.computed(()=>i==null?void 0:i.disabled)),d=n.ref(!1),f=n.computed(()=>c.value||a.value&&s.value!==r.value?-1:0);return yt({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},n.computed(()=>a.value&&Kt(e.value))),{radioRef:o,isGroup:a,radioGroup:i,focus:d,size:l,disabled:c,tabIndex:f,modelValue:s,actualValue:r}},Vm=n.defineComponent({name:"ElRadio"}),Rm=n.defineComponent({...Vm,props:Pm,emits:es,setup(e,{emit:t}){const o=e,i=F("radio"),{radioRef:a,radioGroup:r,focus:s,size:l,disabled:c,modelValue:d,actualValue:f}=ns(o,t);function u(){n.nextTick(()=>t("change",d.value))}return(p,g)=>{var h;return n.openBlock(),n.createElementBlock("label",{class:n.normalizeClass([n.unref(i).b(),n.unref(i).is("disabled",n.unref(c)),n.unref(i).is("focus",n.unref(s)),n.unref(i).is("bordered",p.border),n.unref(i).is("checked",n.unref(d)===n.unref(f)),n.unref(i).m(n.unref(l))])},[n.createElementVNode("span",{class:n.normalizeClass([n.unref(i).e("input"),n.unref(i).is("disabled",n.unref(c)),n.unref(i).is("checked",n.unref(d)===n.unref(f))])},[n.withDirectives(n.createElementVNode("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":m=>n.isRef(d)?d.value=m:null,class:n.normalizeClass(n.unref(i).e("original")),value:n.unref(f),name:p.name||((h=n.unref(r))==null?void 0:h.name),disabled:n.unref(c),checked:n.unref(d)===n.unref(f),type:"radio",onFocus:m=>s.value=!0,onBlur:m=>s.value=!1,onChange:u,onClick:n.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[n.vModelRadio,n.unref(d)]]),n.createElementVNode("span",{class:n.normalizeClass(n.unref(i).e("inner"))},null,2)],2),n.createElementVNode("span",{class:n.normalizeClass(n.unref(i).e("label")),onKeydown:n.withModifiers(()=>{},["stop"])},[n.renderSlot(p.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(p.label),1)])],42,["onKeydown"])],2)}}});var Dm=D(Rm,[["__file","radio.vue"]]);const Fm=R({...Xr}),$m=n.defineComponent({name:"ElRadioButton"}),zm=n.defineComponent({...$m,props:Fm,setup(e){const t=e,o=F("radio"),{radioRef:i,focus:a,size:r,disabled:s,modelValue:l,radioGroup:c,actualValue:d}=ns(t),f=n.computed(()=>({backgroundColor:(c==null?void 0:c.fill)||"",borderColor:(c==null?void 0:c.fill)||"",boxShadow:c!=null&&c.fill?`-1px 0 0 0 ${c.fill}`:"",color:(c==null?void 0:c.textColor)||""}));return(u,p)=>{var g;return n.openBlock(),n.createElementBlock("label",{class:n.normalizeClass([n.unref(o).b("button"),n.unref(o).is("active",n.unref(l)===n.unref(d)),n.unref(o).is("disabled",n.unref(s)),n.unref(o).is("focus",n.unref(a)),n.unref(o).bm("button",n.unref(r))])},[n.withDirectives(n.createElementVNode("input",{ref_key:"radioRef",ref:i,"onUpdate:modelValue":h=>n.isRef(l)?l.value=h:null,class:n.normalizeClass(n.unref(o).be("button","original-radio")),value:n.unref(d),type:"radio",name:u.name||((g=n.unref(c))==null?void 0:g.name),disabled:n.unref(s),onFocus:h=>a.value=!0,onBlur:h=>a.value=!1,onClick:n.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[n.vModelRadio,n.unref(l)]]),n.createElementVNode("span",{class:n.normalizeClass(n.unref(o).be("button","inner")),style:n.normalizeStyle(n.unref(l)===n.unref(d)?n.unref(f):{}),onKeydown:n.withModifiers(()=>{},["stop"])},[n.renderSlot(u.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(u.label),1)])],46,["onKeydown"])],2)}}});var os=D(zm,[["__file","radio-button.vue"]]);const jm=R({id:{type:String,default:void 0},size:Et,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},...at(["ariaLabel"])}),Hm=es,Km=n.defineComponent({name:"ElRadioGroup"}),Um=n.defineComponent({...Km,props:jm,emits:Hm,setup(e,{emit:t}){const o=e,i=F("radio"),a=it(),r=n.ref(),{formItem:s}=Tt(),{inputId:l,isLabeledByFormItem:c}=Fn(o,{formItemContext:s}),d=u=>{t(X,u),n.nextTick(()=>t("change",u))};n.onMounted(()=>{const u=r.value.querySelectorAll("[type=radio]"),p=u[0];!Array.from(u).some(g=>g.checked)&&p&&(p.tabIndex=0)});const f=n.computed(()=>o.name||a.value);return n.provide(ts,n.reactive({...n.toRefs(o),changeEvent:d,name:f})),n.watch(()=>o.modelValue,()=>{o.validateEvent&&(s==null||s.validate("change").catch(u=>ne(u)))}),(u,p)=>(n.openBlock(),n.createElementBlock("div",{id:n.unref(l),ref_key:"radioGroupRef",ref:r,class:n.normalizeClass(n.unref(i).b("group")),role:"radiogroup","aria-label":n.unref(c)?void 0:u.ariaLabel||"radio-group","aria-labelledby":n.unref(c)?n.unref(s).labelId:void 0},[n.renderSlot(u.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}});var is=D(Um,[["__file","radio-group.vue"]]);const as=oe(Dm,{RadioButton:os,RadioGroup:is}),rs=tt(is);tt(os);const ai=R({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:_a},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),Wm={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},qm=n.defineComponent({name:"ElTag"}),Gm=n.defineComponent({...qm,props:ai,emits:Wm,setup(e,{emit:t}){const o=e,i=It(),a=F("tag"),r=n.computed(()=>{const{type:d,hit:f,effect:u,closable:p,round:g}=o;return[a.b(),a.is("closable",p),a.m(d||"primary"),a.m(i.value),a.m(u),a.is("hit",f),a.is("round",g)]}),s=d=>{t("close",d)},l=d=>{t("click",d)},c=d=>{d.component.subTree.component.bum=null};return(d,f)=>d.disableTransitions?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass(n.unref(r)),style:n.normalizeStyle({backgroundColor:d.color}),onClick:l},[n.createElementVNode("span",{class:n.normalizeClass(n.unref(a).e("content"))},[n.renderSlot(d.$slots,"default")],2),d.closable?(n.openBlock(),n.createBlock(n.unref(be),{key:0,class:n.normalizeClass(n.unref(a).e("close")),onClick:n.withModifiers(s,["stop"])},{default:n.withCtx(()=>[n.createVNode(n.unref(W.Close))]),_:1},8,["class","onClick"])):n.createCommentVNode("v-if",!0)],6)):(n.openBlock(),n.createBlock(n.Transition,{key:1,name:`${n.unref(a).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:c},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(n.unref(r)),style:n.normalizeStyle({backgroundColor:d.color}),onClick:l},[n.createElementVNode("span",{class:n.normalizeClass(n.unref(a).e("content"))},[n.renderSlot(d.$slots,"default")],2),d.closable?(n.openBlock(),n.createBlock(n.unref(be),{key:0,class:n.normalizeClass(n.unref(a).e("close")),onClick:n.withModifiers(s,["stop"])},{default:n.withCtx(()=>[n.createVNode(n.unref(W.Close))]),_:1},8,["class","onClick"])):n.createCommentVNode("v-if",!0)],6)]),_:3},8,["name"]))}});var Jm=D(Gm,[["__file","tag.vue"]]);const Ym=oe(Jm),ss=Symbol("rowContextKey"),Zm=R({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"]}}),Qm=n.defineComponent({name:"ElRow"}),Xm=n.defineComponent({...Qm,props:Zm,setup(e){const t=e,o=F("row"),i=n.computed(()=>t.gutter);n.provide(ss,{gutter:i});const a=n.computed(()=>{const s={};return t.gutter&&(s.marginRight=s.marginLeft=`-${t.gutter/2}px`),s}),r=n.computed(()=>[o.b(),o.is(`justify-${t.justify}`,t.justify!=="start"),o.is(`align-${t.align}`,!!t.align)]);return(s,l)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(s.tag),{class:n.normalizeClass(n.unref(r)),style:n.normalizeStyle(n.unref(a))},{default:n.withCtx(()=>[n.renderSlot(s.$slots,"default")]),_:3},8,["class","style"]))}});var eg=D(Xm,[["__file","row.vue"]]);const on=oe(eg),tg=R({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:_([Number,Object]),default:()=>qt({})},sm:{type:_([Number,Object]),default:()=>qt({})},md:{type:_([Number,Object]),default:()=>qt({})},lg:{type:_([Number,Object]),default:()=>qt({})},xl:{type:_([Number,Object]),default:()=>qt({})}}),ng=n.defineComponent({name:"ElCol"}),og=n.defineComponent({...ng,props:tg,setup(e){const t=e,{gutter:o}=n.inject(ss,{gutter:n.computed(()=>0)}),i=F("col"),a=n.computed(()=>{const s={};return o.value&&(s.paddingLeft=s.paddingRight=`${o.value/2}px`),s}),r=n.computed(()=>{const s=[];return["span","offset","pull","push"].forEach(d=>{const f=t[d];G(f)&&(d==="span"?s.push(i.b(`${t[d]}`)):f>0&&s.push(i.b(`${d}-${t[d]}`)))}),["xs","sm","md","lg","xl"].forEach(d=>{G(t[d])?s.push(i.b(`${d}-${t[d]}`)):te(t[d])&&Object.entries(t[d]).forEach(([f,u])=>{s.push(f!=="span"?i.b(`${d}-${f}-${u}`):i.b(`${d}-${u}`))})}),o.value&&s.push(i.is("guttered")),[i.b(),s]});return(s,l)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(s.tag),{class:n.normalizeClass(n.unref(r)),style:n.normalizeStyle(n.unref(a))},{default:n.withCtx(()=>[n.renderSlot(s.$slots,"default")]),_:3},8,["class","style"]))}});var ig=D(og,[["__file","col.vue"]]);const an=oe(ig),ag=R({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:_([String,Array,Object])},zIndex:{type:_([String,Number])}}),rg={click:e=>e instanceof MouseEvent},sg="overlay";var lg=n.defineComponent({name:"ElOverlay",props:ag,emits:rg,setup(e,{slots:t,emit:o}){const i=F(sg),a=c=>{o("click",c)},{onClick:r,onMousedown:s,onMouseup:l}=or(e.customMaskEvent?void 0:a);return()=>e.mask?n.createVNode("div",{class:[i.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:r,onMousedown:s,onMouseup:l},[n.renderSlot(t,"default")],Mn.STYLE|Mn.CLASS|Mn.PROPS,["onClick","onMouseup","onMousedown"]):n.h("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[n.renderSlot(t,"default")])}});const cg=lg,ls=Symbol("dialogInjectionKey"),cs=R({center:Boolean,alignCenter:Boolean,closeIcon:{type:gt},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),dg={close:()=>!0},fg=n.defineComponent({name:"ElDialogContent"}),ug=n.defineComponent({...fg,props:cs,emits:dg,setup(e,{expose:t}){const o=e,{t:i}=Bo(),{Close:a}=Zf,{dialogRef:r,headerRef:s,bodyId:l,ns:c,style:d}=n.inject(ls),{focusTrapRef:f}=n.inject(Or),u=n.computed(()=>[c.b(),c.is("fullscreen",o.fullscreen),c.is("draggable",o.draggable),c.is("align-center",o.alignCenter),{[c.m("center")]:o.center}]),p=eu(f,r),g=n.computed(()=>o.draggable),h=n.computed(()=>o.overflow),{resetPosition:m}=nu(r,s,g,h);return t({resetPosition:m}),(b,y)=>(n.openBlock(),n.createElementBlock("div",{ref:n.unref(p),class:n.normalizeClass(n.unref(u)),style:n.normalizeStyle(n.unref(d)),tabindex:"-1"},[n.createElementVNode("header",{ref_key:"headerRef",ref:s,class:n.normalizeClass([n.unref(c).e("header"),{"show-close":b.showClose}])},[n.renderSlot(b.$slots,"header",{},()=>[n.createElementVNode("span",{role:"heading","aria-level":b.ariaLevel,class:n.normalizeClass(n.unref(c).e("title"))},n.toDisplayString(b.title),11,["aria-level"])]),b.showClose?(n.openBlock(),n.createElementBlock("button",{key:0,"aria-label":n.unref(i)("el.dialog.close"),class:n.normalizeClass(n.unref(c).e("headerbtn")),type:"button",onClick:v=>b.$emit("close")},[n.createVNode(n.unref(be),{class:n.normalizeClass(n.unref(c).e("close"))},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(b.closeIcon||n.unref(a))))]),_:1},8,["class"])],10,["aria-label","onClick"])):n.createCommentVNode("v-if",!0)],2),n.createElementVNode("div",{id:n.unref(l),class:n.normalizeClass(n.unref(c).e("body"))},[n.renderSlot(b.$slots,"default")],10,["id"]),b.$slots.footer?(n.openBlock(),n.createElementBlock("footer",{key:0,class:n.normalizeClass(n.unref(c).e("footer"))},[n.renderSlot(b.$slots,"footer")],2)):n.createCommentVNode("v-if",!0)],6))}});var pg=D(ug,[["__file","dialog-content.vue"]]);const hg=R({...cs,appendToBody:Boolean,appendTo:{type:_([String,Object]),default:"body"},beforeClose:{type:_(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"}}),mg={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[X]:e=>_e(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},gg=(e,t)=>{var o;const a=n.getCurrentInstance().emit,{nextZIndex:r}=jo();let s="";const l=it(),c=it(),d=n.ref(!1),f=n.ref(!1),u=n.ref(!1),p=n.ref((o=e.zIndex)!=null?o:r());let g,h;const m=Vn("namespace",Gt),b=n.computed(()=>{const V={},M=`--${m.value}-dialog`;return e.fullscreen||(e.top&&(V[`${M}-margin-top`]=e.top),e.width&&(V[`${M}-width`]=et(e.width))),V}),y=n.computed(()=>e.alignCenter?{display:"flex"}:{});function v(){a("opened")}function T(){a("closed"),a(X,!1),e.destroyOnClose&&(u.value=!1)}function S(){a("close")}function w(){h==null||h(),g==null||g(),e.openDelay&&e.openDelay>0?{stop:g}=Ti(()=>B(),e.openDelay):B()}function k(){g==null||g(),h==null||h(),e.closeDelay&&e.closeDelay>0?{stop:h}=Ti(()=>N(),e.closeDelay):N()}function E(){function V(M){M||(f.value=!0,d.value=!1)}e.beforeClose?e.beforeClose(V):k()}function O(){e.closeOnClickModal&&E()}function B(){K&&(d.value=!0)}function N(){d.value=!1}function x(){a("openAutoFocus")}function I(){a("closeAutoFocus")}function L(V){var M;((M=V.detail)==null?void 0:M.focusReason)==="pointer"&&V.preventDefault()}e.lockScroll&&lu(d);function q(){e.closeOnPressEscape&&E()}return n.watch(()=>e.modelValue,V=>{V?(f.value=!1,w(),u.value=!0,p.value=Ia(e.zIndex)?r():p.value++,n.nextTick(()=>{a("open"),t.value&&(t.value.scrollTop=0)})):d.value&&k()}),n.watch(()=>e.fullscreen,V=>{t.value&&(V?(s=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=s)}),n.onMounted(()=>{e.modelValue&&(d.value=!0,u.value=!0,w())}),{afterEnter:v,afterLeave:T,beforeLeave:S,handleClose:E,onModalClick:O,close:k,doClose:N,onOpenAutoFocus:x,onCloseAutoFocus:I,onCloseRequested:q,onFocusoutPrevented:L,titleId:l,bodyId:c,closed:f,style:b,overlayDialogStyle:y,rendered:u,visible:d,zIndex:p}},yg=n.defineComponent({name:"ElDialog",inheritAttrs:!1}),bg=n.defineComponent({...yg,props:hg,emits:mg,setup(e,{expose:t}){const o=e,i=n.useSlots();yt({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},n.computed(()=>!!i.title));const a=F("dialog"),r=n.ref(),s=n.ref(),l=n.ref(),{visible:c,titleId:d,bodyId:f,style:u,overlayDialogStyle:p,rendered:g,zIndex:h,afterEnter:m,afterLeave:b,beforeLeave:y,handleClose:v,onModalClick:T,onOpenAutoFocus:S,onCloseAutoFocus:w,onCloseRequested:k,onFocusoutPrevented:E}=gg(o,r);n.provide(ls,{dialogRef:r,headerRef:s,bodyId:f,ns:a,rendered:g,style:u});const O=or(T),B=n.computed(()=>o.draggable&&!o.fullscreen);return t({visible:c,dialogContentRef:l,resetPosition:()=>{var x;(x=l.value)==null||x.resetPosition()}}),(x,I)=>(n.openBlock(),n.createBlock(n.unref(Vr),{to:x.appendTo,disabled:x.appendTo!=="body"?!1:!x.appendToBody},{default:n.withCtx(()=>[n.createVNode(n.Transition,{name:"dialog-fade",onAfterEnter:n.unref(m),onAfterLeave:n.unref(b),onBeforeLeave:n.unref(y),persisted:""},{default:n.withCtx(()=>[n.withDirectives(n.createVNode(n.unref(cg),{"custom-mask-event":"",mask:x.modal,"overlay-class":x.modalClass,"z-index":n.unref(h)},{default:n.withCtx(()=>[n.createElementVNode("div",{role:"dialog","aria-modal":"true","aria-label":x.title||void 0,"aria-labelledby":x.title?void 0:n.unref(d),"aria-describedby":n.unref(f),class:n.normalizeClass(`${n.unref(a).namespace.value}-overlay-dialog`),style:n.normalizeStyle(n.unref(p)),onClick:n.unref(O).onClick,onMousedown:n.unref(O).onMousedown,onMouseup:n.unref(O).onMouseup},[n.createVNode(n.unref(Lr),{loop:"",trapped:n.unref(c),"focus-start-el":"container",onFocusAfterTrapped:n.unref(S),onFocusAfterReleased:n.unref(w),onFocusoutPrevented:n.unref(E),onReleaseRequested:n.unref(k)},{default:n.withCtx(()=>[n.unref(g)?(n.openBlock(),n.createBlock(pg,n.mergeProps({key:0,ref_key:"dialogContentRef",ref:l},x.$attrs,{center:x.center,"align-center":x.alignCenter,"close-icon":x.closeIcon,draggable:n.unref(B),overflow:x.overflow,fullscreen:x.fullscreen,"show-close":x.showClose,title:x.title,"aria-level":x.headerAriaLevel,onClose:n.unref(v)}),n.createSlots({header:n.withCtx(()=>[x.$slots.title?n.renderSlot(x.$slots,"title",{key:1}):n.renderSlot(x.$slots,"header",{key:0,close:n.unref(v),titleId:n.unref(d),titleClass:n.unref(a).e("title")})]),default:n.withCtx(()=>[n.renderSlot(x.$slots,"default")]),_:2},[x.$slots.footer?{name:"footer",fn:n.withCtx(()=>[n.renderSlot(x.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","show-close","title","aria-level","onClose"])):n.createCommentVNode("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,["aria-label","aria-labelledby","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["mask","overlay-class","z-index"]),[[n.vShow,n.unref(c)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var wg=D(bg,[["__file","dialog.vue"]]);const Cg=oe(wg),vg=n.defineComponent({inheritAttrs:!1});function Sg(e,t,o,i,a,r){return n.renderSlot(e.$slots,"default")}var kg=D(vg,[["render",Sg],["__file","collection.vue"]]);const Eg=n.defineComponent({name:"ElCollectionItem",inheritAttrs:!1});function Ig(e,t,o,i,a,r){return n.renderSlot(e.$slots,"default")}var Tg=D(Eg,[["render",Ig],["__file","collection-item.vue"]]);const Ag="data-el-collection-item",Og=e=>{const t=`El${e}Collection`,o=`${t}Item`,i=Symbol(t),a=Symbol(o),r={...kg,name:t,setup(){const l=n.ref(null),c=new Map,d=()=>{const f=n.unref(l);if(!f)return[];const u=Array.from(f.querySelectorAll(`[${Ag}]`));return[...c.values()].sort((g,h)=>u.indexOf(g.ref)-u.indexOf(h.ref))};n.provide(i,{itemMap:c,getItems:d,collectionRef:l})}},s={...Tg,name:o,setup(l,{attrs:c}){const d=n.ref(null),f=n.inject(i,void 0);n.provide(a,{collectionItemRef:d}),n.onMounted(()=>{const u=n.unref(d);u&&f.itemMap.set(u,{ref:u,...c})}),n.onBeforeUnmount(()=>{const u=n.unref(d);f.itemMap.delete(u)})}};return{COLLECTION_INJECTION_KEY:i,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:r,ElCollectionItem:s}},ri=R({trigger:nn.trigger,effect:{...se.effect,default:"light"},type:{type:_(String)},placement:{type:_(String),default:"bottom"},popperOptions:{type:_(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:_([Number,String]),default:0},maxHeight:{type:_([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,default:"menu"},buttonProps:{type:_(Object)},teleported:se.teleported});R({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:gt}}),R({onKeydown:{type:_(Function)}}),Og("Dropdown");const ds=Symbol("ElSelectGroup"),Wn=Symbol("ElSelect");function Mg(e,t){const o=n.inject(Wn),i=n.inject(ds,{disabled:!1}),a=n.computed(()=>f(Fe(o.props.modelValue),e.value)),r=n.computed(()=>{var g;if(o.props.multiple){const h=Fe((g=o.props.modelValue)!=null?g:[]);return!a.value&&h.length>=o.props.multipleLimit&&o.props.multipleLimit>0}else return!1}),s=n.computed(()=>e.label||(te(e.value)?"":e.value)),l=n.computed(()=>e.value||e.label||""),c=n.computed(()=>e.disabled||t.groupDisabled||r.value),d=n.getCurrentInstance(),f=(g=[],h)=>{if(te(e.value)){const m=o.props.valueKey;return g&&g.some(b=>n.toRaw(xe(b,m))===xe(h,m))}else return g&&g.includes(h)},u=()=>{!e.disabled&&!i.disabled&&(o.states.hoveringIndex=o.optionsArray.indexOf(d.proxy))},p=g=>{const h=new RegExp(Wf(g),"i");t.visible=h.test(s.value)||e.created};return n.watch(()=>s.value,()=>{!e.created&&!o.props.remote&&o.setSelected()}),n.watch(()=>e.value,(g,h)=>{const{remote:m,valueKey:b}=o.props;if(g!==h&&(o.onOptionDestroy(h,d.proxy),o.onOptionCreate(d.proxy)),!e.created&&!m){if(b&&te(g)&&te(h)&&g[b]===h[b])return;o.setSelected()}}),n.watch(()=>i.disabled,()=>{t.groupDisabled=i.disabled},{immediate:!0}),{select:o,currentLabel:s,currentValue:l,itemSelected:a,isDisabled:c,hoverItem:u,updateOption:p}}const Bg=n.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=F("select"),o=it(),i=n.computed(()=>[t.be("dropdown","item"),t.is("disabled",n.unref(l)),t.is("selected",n.unref(s)),t.is("hovering",n.unref(p))]),a=n.reactive({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:r,itemSelected:s,isDisabled:l,select:c,hoverItem:d,updateOption:f}=Mg(e,a),{visible:u,hover:p}=n.toRefs(a),g=n.getCurrentInstance().proxy;c.onOptionCreate(g),n.onBeforeUnmount(()=>{const m=g.value,{selected:b}=c.states,v=(c.props.multiple?b:[b]).some(T=>T.value===g.value);n.nextTick(()=>{c.states.cachedOptions.get(m)===g&&!v&&c.states.cachedOptions.delete(m)}),c.onOptionDestroy(m,g)});function h(){l.value||c.handleOptionSelect(g)}return{ns:t,id:o,containerKls:i,currentLabel:r,itemSelected:s,isDisabled:l,select:c,hoverItem:d,updateOption:f,visible:u,hover:p,selectOptionClick:h,states:a}}});function xg(e,t,o,i,a,r){return n.withDirectives((n.openBlock(),n.createElementBlock("li",{id:e.id,class:n.normalizeClass(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:e.hoverItem,onClick:n.withModifiers(e.selectOptionClick,["stop"])},[n.renderSlot(e.$slots,"default",{},()=>[n.createElementVNode("span",null,n.toDisplayString(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMouseenter","onClick"])),[[n.vShow,e.visible]])}var si=D(Bg,[["render",xg],["__file","option.vue"]]);const Ng=n.defineComponent({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=n.inject(Wn),t=F("select"),o=n.computed(()=>e.props.popperClass),i=n.computed(()=>e.props.multiple),a=n.computed(()=>e.props.fitInputWidth),r=n.ref("");function s(){var l;r.value=`${(l=e.selectRef)==null?void 0:l.offsetWidth}px`}return n.onMounted(()=>{s(),Re(e.selectRef,s)}),{ns:t,minWidth:r,popperClass:o,isMultiple:i,isFitInputWidth:a}}});function _g(e,t,o,i,a,r){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:n.normalizeStyle({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.ns.be("dropdown","header"))},[n.renderSlot(e.$slots,"header")],2)):n.createCommentVNode("v-if",!0),n.renderSlot(e.$slots,"default"),e.$slots.footer?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(e.ns.be("dropdown","footer"))},[n.renderSlot(e.$slots,"footer")],2)):n.createCommentVNode("v-if",!0)],6)}var Lg=D(Ng,[["render",_g],["__file","select-dropdown.vue"]]);const Pg=11,Vg=(e,t)=>{const{t:o}=Bo(),i=it(),a=F("select"),r=F("input"),s=n.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=n.ref(null),c=n.ref(null),d=n.ref(null),f=n.ref(null),u=n.ref(null),p=n.ref(null),g=n.ref(null),h=n.ref(null),m=n.ref(null),b=n.ref(null),y=n.ref(null),v=n.ref(null),{isComposing:T,handleCompositionStart:S,handleCompositionUpdate:w,handleCompositionEnd:k}=Tp({afterComposition:C=>pn(C)}),{wrapperRef:E,isFocused:O}=Ip(u,{beforeFocus(){return M.value},afterFocus(){e.automaticDropdown&&!B.value&&(B.value=!0,s.menuVisibleOnFocus=!0)},beforeBlur(C){var A,P;return((A=d.value)==null?void 0:A.isFocusInsideContent(C))||((P=f.value)==null?void 0:P.isFocusInsideContent(C))},afterBlur(){B.value=!1,s.menuVisibleOnFocus=!1}}),B=n.ref(!1),N=n.ref(),{form:x,formItem:I}=Tt(),{inputId:L}=Fn(e,{formItemContext:I}),{valueOnClear:q,isEmptyValue:V}=xp(e),M=n.computed(()=>e.disabled||(x==null?void 0:x.disabled)),$=n.computed(()=>ee(e.modelValue)?e.modelValue.length>0:!V(e.modelValue)),pe=n.computed(()=>e.clearable&&!M.value&&s.inputHovering&&$.value),Y=n.computed(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),Z=n.computed(()=>a.is("reverse",Y.value&&B.value)),ce=n.computed(()=>(I==null?void 0:I.validateState)||""),Ee=n.computed(()=>Qf[ce.value]),_t=n.computed(()=>e.remote?300:0),Ie=n.computed(()=>e.loading?e.loadingText||o("el.select.loading"):e.remote&&!s.inputValue&&s.options.size===0?!1:e.filterable&&s.inputValue&&s.options.size>0&&re.value===0?e.noMatchText||o("el.select.noMatch"):s.options.size===0?e.noDataText||o("el.select.noData"):null),re=n.computed(()=>U.value.filter(C=>C.visible).length),U=n.computed(()=>{const C=Array.from(s.options.values()),A=[];return s.optionValues.forEach(P=>{const j=C.findIndex(Ge=>Ge.value===P);j>-1&&A.push(C[j])}),A.length>=C.length?A:C}),lt=n.computed(()=>Array.from(s.cachedOptions.values())),qe=n.computed(()=>{const C=U.value.filter(A=>!A.created).some(A=>A.currentLabel===s.inputValue);return e.filterable&&e.allowCreate&&s.inputValue!==""&&!C}),Xn=()=>{e.filterable&&Q(e.filterMethod)||e.filterable&&e.remote&&Q(e.remoteMethod)||U.value.forEach(C=>{var A;(A=C.updateOption)==null||A.call(C,s.inputValue)})},eo=It(),ln=n.computed(()=>["small"].includes(eo.value)?"small":"default"),yi=n.computed({get(){return B.value&&Ie.value!==!1},set(C){B.value=C}}),to=n.computed(()=>{if(e.multiple&&!ze(e.modelValue))return Fe(e.modelValue).length===0&&!s.inputValue;const C=ee(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||ze(C)?!s.inputValue:!0}),bi=n.computed(()=>{var C;const A=(C=e.placeholder)!=null?C:o("el.select.placeholder");return e.multiple||!$.value?A:s.selectedLabel}),wi=n.computed(()=>so?null:"mouseenter");n.watch(()=>e.modelValue,(C,A)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(s.inputValue="",ct("")),Lt(),!In(C,A)&&e.validateEvent&&(I==null||I.validate("change").catch(P=>ne(P)))},{flush:"post",deep:!0}),n.watch(()=>B.value,C=>{C?ct(s.inputValue):(s.inputValue="",s.previousQuery=null,s.isBeforeHide=!0),t("visible-change",C)}),n.watch(()=>s.options.entries(),()=>{var C;if(!K)return;const A=((C=l.value)==null?void 0:C.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!ze(e.modelValue)||!Array.from(A).includes(document.activeElement))&&Lt(),e.defaultFirstOption&&(e.filterable||e.remote)&&re.value&&cn()},{flush:"post"}),n.watch(()=>s.hoveringIndex,C=>{G(C)&&C>-1?N.value=U.value[C]||{}:N.value={},U.value.forEach(A=>{A.hover=N.value===A})}),n.watchEffect(()=>{s.isBeforeHide||Xn()});const ct=C=>{s.previousQuery===C||T.value||(s.previousQuery=C,e.filterable&&Q(e.filterMethod)?e.filterMethod(C):e.filterable&&e.remote&&Q(e.remoteMethod)&&e.remoteMethod(C),e.defaultFirstOption&&(e.filterable||e.remote)&&re.value?n.nextTick(cn):n.nextTick(Ve))},cn=()=>{const C=U.value.filter(j=>j.visible&&!j.disabled&&!j.states.groupDisabled),A=C.find(j=>j.created),P=C[0];s.hoveringIndex=Os(U.value,A||P)},Lt=()=>{if(e.multiple)s.selectedLabel="";else{const A=ee(e.modelValue)?e.modelValue[0]:e.modelValue,P=no(A);s.selectedLabel=P.currentLabel,s.selected=[P];return}const C=[];ze(e.modelValue)||Fe(e.modelValue).forEach(A=>{C.push(no(A))}),s.selected=C},no=C=>{let A;const P=co(C).toLowerCase()==="object",j=co(C).toLowerCase()==="null",Ge=co(C).toLowerCase()==="undefined";for(let ft=s.cachedOptions.size-1;ft>=0;ft--){const Te=lt.value[ft];if(P?xe(Te.value,e.valueKey)===xe(C,e.valueKey):Te.value===C){A={value:C,currentLabel:Te.currentLabel,get isDisabled(){return Te.isDisabled}};break}}if(A)return A;const Vt=P?C.label:!j&&!Ge?C:"";return{value:C,currentLabel:Vt}},Ve=()=>{s.hoveringIndex=U.value.findIndex(C=>s.selected.some(A=>Ci(A)===Ci(C)))},Pt=()=>{s.selectionWidth=c.value.getBoundingClientRect().width},dn=()=>{s.calculatorWidth=p.value.getBoundingClientRect().width},oo=()=>{s.collapseItemWidth=y.value.getBoundingClientRect().width},dt=()=>{var C,A;(A=(C=d.value)==null?void 0:C.updatePopper)==null||A.call(C)},fn=()=>{var C,A;(A=(C=f.value)==null?void 0:C.updatePopper)==null||A.call(C)},un=()=>{s.inputValue.length>0&&!B.value&&(B.value=!0),ct(s.inputValue)},pn=C=>{if(s.inputValue=C.target.value,e.remote)hn();else return un()},hn=$f(()=>{un()},_t.value),mn=C=>{In(e.modelValue,C)||t(Mo,C)},db=C=>zf(C,A=>!s.disabledOptions.has(A)),fb=C=>{if(e.multiple&&C.code!==Wt.delete&&C.target.value.length<=0){const A=Fe(e.modelValue).slice(),P=db(A);if(P<0)return;const j=A[P];A.splice(P,1),t(X,A),mn(A),t("remove-tag",j)}},ub=(C,A)=>{const P=s.selected.indexOf(A);if(P>-1&&!M.value){const j=Fe(e.modelValue).slice();j.splice(P,1),t(X,j),mn(j),t("remove-tag",A.value)}C.stopPropagation(),ao()},Ts=C=>{C.stopPropagation();const A=e.multiple?[]:q.value;if(e.multiple)for(const P of s.selected)P.isDisabled&&A.push(P.value);t(X,A),mn(A),s.hoveringIndex=-1,B.value=!1,t("clear"),ao()},As=C=>{var A;if(e.multiple){const P=Fe((A=e.modelValue)!=null?A:[]).slice(),j=Os(P,C.value);j>-1?P.splice(j,1):(e.multipleLimit<=0||P.length<e.multipleLimit)&&P.push(C.value),t(X,P),mn(P),C.created&&ct(""),e.filterable&&!e.reserveKeyword&&(s.inputValue="")}else t(X,C.value),mn(C.value),B.value=!1;ao(),!B.value&&n.nextTick(()=>{io(C)})},Os=(C=[],A)=>{if(!te(A))return C.indexOf(A);const P=e.valueKey;let j=-1;return C.some((Ge,Vt)=>n.toRaw(xe(Ge,P))===xe(A,P)?(j=Vt,!0):!1),j},io=C=>{var A,P,j,Ge,Vt;const ro=ee(C)?C[0]:C;let ft=null;if(ro!=null&&ro.value){const Te=U.value.filter(Ns=>Ns.value===ro.value);Te.length>0&&(ft=Te[0].$el)}if(d.value&&ft){const Te=(Ge=(j=(P=(A=d.value)==null?void 0:A.popperRef)==null?void 0:P.contentRef)==null?void 0:j.querySelector)==null?void 0:Ge.call(j,`.${a.be("dropdown","wrap")}`);Te&&Jf(Te,ft)}(Vt=v.value)==null||Vt.handleScroll()},pb=C=>{s.options.set(C.value,C),s.cachedOptions.set(C.value,C),C.disabled&&s.disabledOptions.set(C.value,C)},hb=(C,A)=>{s.options.get(C)===A&&s.options.delete(C)},mb=n.computed(()=>{var C,A;return(A=(C=d.value)==null?void 0:C.popperRef)==null?void 0:A.contentRef}),gb=()=>{s.isBeforeHide=!1,n.nextTick(()=>io(s.selected))},ao=()=>{var C;(C=u.value)==null||C.focus()},Ms=()=>{var C;(C=u.value)==null||C.blur()},yb=C=>{Ts(C)},bb=()=>{B.value=!1,O.value&&Ms()},wb=()=>{s.inputValue.length>0?s.inputValue="":B.value=!1},Bs=()=>{M.value||(so&&(s.inputHovering=!0),s.menuVisibleOnFocus?s.menuVisibleOnFocus=!1:B.value=!B.value)},Cb=()=>{B.value?U.value[s.hoveringIndex]&&As(U.value[s.hoveringIndex]):Bs()},Ci=C=>te(C.value)?xe(C.value,e.valueKey):C.value,vb=n.computed(()=>U.value.filter(C=>C.visible).every(C=>C.disabled)),Sb=n.computed(()=>e.multiple?e.collapseTags?s.selected.slice(0,e.maxCollapseTags):s.selected:[]),kb=n.computed(()=>e.multiple?e.collapseTags?s.selected.slice(e.maxCollapseTags):[]:[]),xs=C=>{if(!B.value){B.value=!0;return}if(!(s.options.size===0||s.filteredOptionsCount===0||T.value)&&!vb.value){C==="next"?(s.hoveringIndex++,s.hoveringIndex===s.options.size&&(s.hoveringIndex=0)):C==="prev"&&(s.hoveringIndex--,s.hoveringIndex<0&&(s.hoveringIndex=s.options.size-1));const A=U.value[s.hoveringIndex];(A.disabled===!0||A.states.groupDisabled===!0||!A.visible)&&xs(C),n.nextTick(()=>io(N.value))}},Eb=()=>{if(!c.value)return 0;const C=window.getComputedStyle(c.value);return Number.parseFloat(C.gap||"6px")},Ib=n.computed(()=>{const C=Eb();return{maxWidth:`${y.value&&e.maxCollapseTags===1?s.selectionWidth-s.collapseItemWidth-C:s.selectionWidth}px`}}),Tb=n.computed(()=>({maxWidth:`${s.selectionWidth}px`})),Ab=n.computed(()=>({width:`${Math.max(s.calculatorWidth,Pg)}px`}));return Re(c,Pt),Re(p,dn),Re(m,dt),Re(E,dt),Re(b,fn),Re(y,oo),n.onMounted(()=>{Lt()}),{inputId:L,contentId:i,nsSelect:a,nsInput:r,states:s,isFocused:O,expanded:B,optionsArray:U,hoverOption:N,selectSize:eo,filteredOptionsCount:re,resetCalculatorWidth:dn,updateTooltip:dt,updateTagTooltip:fn,debouncedOnInputChange:hn,onInput:pn,deletePrevTag:fb,deleteTag:ub,deleteSelected:Ts,handleOptionSelect:As,scrollToOption:io,hasModelValue:$,shouldShowPlaceholder:to,currentPlaceholder:bi,mouseEnterEventName:wi,showClose:pe,iconComponent:Y,iconReverse:Z,validateState:ce,validateIcon:Ee,showNewOption:qe,updateOptions:Xn,collapseTagSize:ln,setSelected:Lt,selectDisabled:M,emptyText:Ie,handleCompositionStart:S,handleCompositionUpdate:w,handleCompositionEnd:k,onOptionCreate:pb,onOptionDestroy:hb,handleMenuEnter:gb,focus:ao,blur:Ms,handleClearClick:yb,handleClickOutside:bb,handleEsc:wb,toggleMenu:Bs,selectOption:Cb,getValueKey:Ci,navigateOptions:xs,dropdownMenuVisible:yi,showTagList:Sb,collapseTagList:kb,tagStyle:Ib,collapseTagStyle:Tb,inputStyle:Ab,popperRef:mb,inputRef:u,tooltipRef:d,tagTooltipRef:f,calculatorRef:p,prefixRef:g,suffixRef:h,selectRef:l,wrapperRef:E,selectionRef:c,scrollbarRef:v,menuRef:m,tagMenuRef:b,collapseItemRef:y}};var Rg=n.defineComponent({name:"ElOptions",setup(e,{slots:t}){const o=n.inject(Wn);let i=[];return()=>{var a,r;const s=(a=t.default)==null?void 0:a.call(t),l=[];function c(d){ee(d)&&d.forEach(f=>{var u,p,g,h;const m=(u=(f==null?void 0:f.type)||{})==null?void 0:u.name;m==="ElOptionGroup"?c(!me(f.children)&&!ee(f.children)&&Q((p=f.children)==null?void 0:p.default)?(g=f.children)==null?void 0:g.default():f.children):m==="ElOption"?l.push((h=f.props)==null?void 0:h.value):ee(f.children)&&c(f.children)})}return s.length&&c((r=s[0])==null?void 0:r.children),In(l,i)||(i=l,o&&(o.states.optionValues=l)),s}}});const Dg=R({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:Et,effect:{type:_(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:_(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:se.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:gt,default:W.CircleClose},fitInputWidth:Boolean,suffixIcon:{type:gt,default:W.ArrowDown},tagType:{...ai.type,default:"info"},tagEffect:{...ai.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,placement:{type:_(String),values:Bn,default:"bottom-start"},fallbackPlacements:{type:_(Array),default:["bottom-start","top-start","right","left"]},appendTo:String,...Bp,...at(["ariaLabel"])}),fs="ElSelect",Fg=n.defineComponent({name:fs,componentName:fs,components:{ElSelectMenu:Lg,ElOption:si,ElOptions:Rg,ElTag:Ym,ElScrollbar:Zp,ElTooltip:Rr,ElIcon:be},directives:{ClickOutside:vm},props:Dg,emits:[X,Mo,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const o=n.computed(()=>{const{modelValue:r,multiple:s}=e,l=s?[]:void 0;return ee(r)?s?r:l:s?l:r}),i=n.reactive({...n.toRefs(e),modelValue:o}),a=Vg(i,t);return n.provide(Wn,n.reactive({props:i,states:a.states,optionsArray:a.optionsArray,handleOptionSelect:a.handleOptionSelect,onOptionCreate:a.onOptionCreate,onOptionDestroy:a.onOptionDestroy,selectRef:a.selectRef,setSelected:a.setSelected})),{...a,modelValue:o}}});function $g(e,t,o,i,a,r){const s=n.resolveComponent("el-tag"),l=n.resolveComponent("el-tooltip"),c=n.resolveComponent("el-icon"),d=n.resolveComponent("el-option"),f=n.resolveComponent("el-options"),u=n.resolveComponent("el-scrollbar"),p=n.resolveComponent("el-select-menu"),g=n.resolveDirective("click-outside");return n.withDirectives((n.openBlock(),n.createElementBlock("div",{ref:"selectRef",class:n.normalizeClass([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[n.toHandlerKey(e.mouseEnterEventName)]:h=>e.states.inputHovering=!0,onMouseleave:h=>e.states.inputHovering=!1},[n.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:h=>e.states.isBeforeHide=!1},{default:n.withCtx(()=>{var h;return[n.createElementVNode("div",{ref:"wrapperRef",class:n.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:n.withModifiers(e.toggleMenu,["prevent"])},[e.$slots.prefix?(n.openBlock(),n.createElementBlock("div",{key:0,ref:"prefixRef",class:n.normalizeClass(e.nsSelect.e("prefix"))},[n.renderSlot(e.$slots,"prefix")],2)):n.createCommentVNode("v-if",!0),n.createElementVNode("div",{ref:"selectionRef",class:n.normalizeClass([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?n.renderSlot(e.$slots,"tag",{key:0},()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.showTagList,m=>(n.openBlock(),n.createElementBlock("div",{key:e.getValueKey(m),class:n.normalizeClass(e.nsSelect.e("selected-item"))},[n.createVNode(s,{closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:n.normalizeStyle(e.tagStyle),onClose:b=>e.deleteTag(b,m)},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(e.nsSelect.e("tags-text"))},[n.renderSlot(e.$slots,"label",{label:m.currentLabel,value:m.value},()=>[n.createTextVNode(n.toDisplayString(m.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(n.openBlock(),n.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:n.withCtx(()=>[n.createElementVNode("div",{ref:"collapseItemRef",class:n.normalizeClass(e.nsSelect.e("selected-item"))},[n.createVNode(s,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:n.normalizeStyle(e.collapseTagStyle)},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(e.nsSelect.e("tags-text"))}," + "+n.toDisplayString(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:n.withCtx(()=>[n.createElementVNode("div",{ref:"tagMenuRef",class:n.normalizeClass(e.nsSelect.e("selection"))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.collapseTagList,m=>(n.openBlock(),n.createElementBlock("div",{key:e.getValueKey(m),class:n.normalizeClass(e.nsSelect.e("selected-item"))},[n.createVNode(s,{class:"in-tooltip",closable:!e.selectDisabled&&!m.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:b=>e.deleteTag(b,m)},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(e.nsSelect.e("tags-text"))},[n.renderSlot(e.$slots,"label",{label:m.currentLabel,value:m.value},()=>[n.createTextVNode(n.toDisplayString(m.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):n.createCommentVNode("v-if",!0)]):n.createCommentVNode("v-if",!0),e.selectDisabled?n.createCommentVNode("v-if",!0):(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[n.withDirectives(n.createElementVNode("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":m=>e.states.inputValue=m,type:"text",name:e.name,class:n.normalizeClass([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:n.normalizeStyle(e.inputStyle),role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((h=e.hoverOption)==null?void 0:h.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[n.withKeys(n.withModifiers(m=>e.navigateOptions("next"),["stop","prevent"]),["down"]),n.withKeys(n.withModifiers(m=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),n.withKeys(n.withModifiers(e.handleEsc,["stop","prevent"]),["esc"]),n.withKeys(n.withModifiers(e.selectOption,["stop","prevent"]),["enter"]),n.withKeys(n.withModifiers(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:n.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"]),[[n.vModelText,e.states.inputValue]]),e.filterable?(n.openBlock(),n.createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:n.normalizeClass(e.nsSelect.e("input-calculator")),textContent:n.toDisplayString(e.states.inputValue)},null,10,["textContent"])):n.createCommentVNode("v-if",!0)],2)),e.shouldShowPlaceholder?(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?n.renderSlot(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[n.createElementVNode("span",null,n.toDisplayString(e.currentPlaceholder),1)]):(n.openBlock(),n.createElementBlock("span",{key:1},n.toDisplayString(e.currentPlaceholder),1))],2)):n.createCommentVNode("v-if",!0)],2),n.createElementVNode("div",{ref:"suffixRef",class:n.normalizeClass(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(n.openBlock(),n.createBlock(c,{key:0,class:n.normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0),e.showClose&&e.clearIcon?(n.openBlock(),n.createBlock(c,{key:1,class:n.normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.clearIcon)))]),_:1},8,["class","onClick"])):n.createCommentVNode("v-if",!0),e.validateState&&e.validateIcon?(n.openBlock(),n.createBlock(c,{key:2,class:n.normalizeClass([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.validateIcon)))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0)],2)],10,["onClick"])]}),content:n.withCtx(()=>[n.createVNode(p,{ref:"menuRef"},{default:n.withCtx(()=>[e.$slots.header?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.nsSelect.be("dropdown","header")),onClick:n.withModifiers(()=>{},["stop"])},[n.renderSlot(e.$slots,"header")],10,["onClick"])):n.createCommentVNode("v-if",!0),n.withDirectives(n.createVNode(u,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:n.normalizeClass([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:n.withCtx(()=>[e.showNewOption?(n.openBlock(),n.createBlock(d,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):n.createCommentVNode("v-if",!0),n.createVNode(f,null,{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[n.vShow,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(e.nsSelect.be("dropdown","loading"))},[n.renderSlot(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass(e.nsSelect.be("dropdown","empty"))},[n.renderSlot(e.$slots,"empty",{},()=>[n.createElementVNode("span",null,n.toDisplayString(e.emptyText),1)])],2)):n.createCommentVNode("v-if",!0),e.$slots.footer?(n.openBlock(),n.createElementBlock("div",{key:3,class:n.normalizeClass(e.nsSelect.be("dropdown","footer")),onClick:n.withModifiers(()=>{},["stop"])},[n.renderSlot(e.$slots,"footer")],10,["onClick"])):n.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"])),[[g,e.handleClickOutside,e.popperRef]])}var zg=D(Fg,[["render",$g],["__file","select.vue"]]);const jg=n.defineComponent({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=F("select"),o=n.ref(null),i=n.getCurrentInstance(),a=n.ref([]);n.provide(ds,n.reactive({...n.toRefs(e)}));const r=n.computed(()=>a.value.some(d=>d.visible===!0)),s=d=>{var f,u;return((f=d.type)==null?void 0:f.name)==="ElOption"&&!!((u=d.component)!=null&&u.proxy)},l=d=>{const f=Fe(d),u=[];return f.forEach(p=>{var g,h;s(p)?u.push(p.component.proxy):(g=p.children)!=null&&g.length?u.push(...l(p.children)):(h=p.component)!=null&&h.subTree&&u.push(...l(p.component.subTree))}),u},c=()=>{a.value=l(i.subTree)};return n.onMounted(()=>{c()}),Us(o,c,{attributes:!0,subtree:!0,childList:!0}),{groupRef:o,visible:r,ns:t}}});function Hg(e,t,o,i,a,r){return n.withDirectives((n.openBlock(),n.createElementBlock("ul",{ref:"groupRef",class:n.normalizeClass(e.ns.be("group","wrap"))},[n.createElementVNode("li",{class:n.normalizeClass(e.ns.be("group","title"))},n.toDisplayString(e.label),3),n.createElementVNode("li",null,[n.createElementVNode("ul",{class:n.normalizeClass(e.ns.b("group"))},[n.renderSlot(e.$slots,"default")],2)])],2)),[[n.vShow,e.visible]])}var us=D(jg,[["render",Hg],["__file","option-group.vue"]]);const qn=oe(zg,{Option:si,OptionGroup:us}),li=tt(si);tt(us);const Kg=R({trigger:nn.trigger,placement:ri.placement,disabled:nn.disabled,visible:se.visible,transition:se.transition,popperOptions:ri.popperOptions,tabindex:ri.tabindex,content:se.content,popperStyle:se.popperStyle,popperClass:se.popperClass,enterable:{...se.enterable,default:!0},effect:{...se.effect,default:"light"},teleported:se.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}}),Ug={"update:visible":e=>_e(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},Wg="onUpdate:visible",qg=n.defineComponent({name:"ElPopover"}),Gg=n.defineComponent({...qg,props:Kg,emits:Ug,setup(e,{expose:t,emit:o}){const i=e,a=n.computed(()=>i[Wg]),r=F("popover"),s=n.ref(),l=n.computed(()=>{var b;return(b=n.unref(s))==null?void 0:b.popperRef}),c=n.computed(()=>[{width:et(i.width)},i.popperStyle]),d=n.computed(()=>[r.b(),i.popperClass,{[r.m("plain")]:!!i.content}]),f=n.computed(()=>i.transition===`${r.namespace.value}-fade-in-linear`),u=()=>{var b;(b=s.value)==null||b.hide()},p=()=>{o("before-enter")},g=()=>{o("before-leave")},h=()=>{o("after-enter")},m=()=>{o("update:visible",!1),o("after-leave")};return t({popperRef:l,hide:u}),(b,y)=>(n.openBlock(),n.createBlock(n.unref(Rr),n.mergeProps({ref_key:"tooltipRef",ref:s},b.$attrs,{trigger:b.trigger,placement:b.placement,disabled:b.disabled,visible:b.visible,transition:b.transition,"popper-options":b.popperOptions,tabindex:b.tabindex,content:b.content,offset:b.offset,"show-after":b.showAfter,"hide-after":b.hideAfter,"auto-close":b.autoClose,"show-arrow":b.showArrow,"aria-label":b.title,effect:b.effect,enterable:b.enterable,"popper-class":n.unref(d),"popper-style":n.unref(c),teleported:b.teleported,persistent:b.persistent,"gpu-acceleration":n.unref(f),"onUpdate:visible":n.unref(a),onBeforeShow:p,onBeforeHide:g,onShow:h,onHide:m}),{content:n.withCtx(()=>[b.title?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(n.unref(r).e("title")),role:"title"},n.toDisplayString(b.title),3)):n.createCommentVNode("v-if",!0),n.renderSlot(b.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(b.content),1)])]),default:n.withCtx(()=>[b.$slots.reference?n.renderSlot(b.$slots,"reference",{key:0}):n.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 Jg=D(Gg,[["__file","popover.vue"]]);const ps=(e,t)=>{const o=t.arg||t.value,i=o==null?void 0:o.popperRef;i&&(i.triggerRef=e)};var Yg={mounted(e,t){ps(e,t)},updated(e,t){ps(e,t)}};const ci=Xf(Yg,"popover"),rn=oe(Jg,{directive:ci});function Zg(e){let t;const o=n.ref(!1),i=n.reactive({...e,originalPosition:"",originalOverflow:"",visible:!1});function a(p){i.text=p}function r(){const p=i.parent,g=u.ns;if(!p.vLoadingAddClassList){let h=p.getAttribute("loading-number");h=Number.parseInt(h)-1,h?p.setAttribute("loading-number",h.toString()):(Ut(p,g.bm("parent","relative")),p.removeAttribute("loading-number")),Ut(p,g.bm("parent","hidden"))}s(),f.unmount()}function s(){var p,g;(g=(p=u.$el)==null?void 0:p.parentNode)==null||g.removeChild(u.$el)}function l(){var p;e.beforeClose&&!e.beforeClose()||(o.value=!0,clearTimeout(t),t=setTimeout(c,400),i.visible=!1,(p=e.closed)==null||p.call(e))}function c(){if(!o.value)return;const p=i.parent;o.value=!1,p.vLoadingAddClassList=void 0,r()}const d=n.defineComponent({name:"ElLoading",setup(p,{expose:g}){const{ns:h,zIndex:m}=_p("loading");return g({ns:h,zIndex:m}),()=>{const b=i.spinner||i.svg,y=n.h("svg",{class:"circular",viewBox:i.svgViewBox?i.svgViewBox:"0 0 50 50",...b?{innerHTML:b}:{}},[n.h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),v=i.text?n.h("p",{class:h.b("text")},[i.text]):void 0;return n.h(n.Transition,{name:h.b("fade"),onAfterLeave:c},{default:n.withCtx(()=>[n.withDirectives(n.createVNode("div",{style:{backgroundColor:i.background||""},class:[h.b("mask"),i.customClass,i.fullscreen?"is-fullscreen":""]},[n.h("div",{class:h.b("spinner")},[y,v])]),[[n.vShow,i.visible]])])})}}}),f=n.createApp(d),u=f.mount(document.createElement("div"));return{...n.toRefs(i),setText:a,removeElLoadingChild:s,close:l,handleAfterLeave:c,vm:u,get $el(){return u.$el}}}let Gn;const di=function(e={}){if(!K)return;const t=Qg(e);if(t.fullscreen&&Gn)return Gn;const o=Zg({...t,closed:()=>{var a;(a=t.closed)==null||a.call(t),t.fullscreen&&(Gn=void 0)}});Xg(t,t.parent,o),hs(t,t.parent,o),t.parent.vLoadingAddClassList=()=>hs(t,t.parent,o);let i=t.parent.getAttribute("loading-number");return i?i=`${Number.parseInt(i)+1}`:i="1",t.parent.setAttribute("loading-number",i),t.parent.appendChild(o.$el),n.nextTick(()=>o.visible.value=t.visible),t.fullscreen&&(Gn=o),o},Qg=e=>{var t,o,i,a;let r;return me(e.target)?r=(t=document.querySelector(e.target))!=null?t:document.body:r=e.target||document.body,{parent:r===document.body||e.body?document.body:r,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:r===document.body&&((o=e.fullscreen)!=null?o:!0),lock:(i=e.lock)!=null?i:!1,customClass:e.customClass||"",visible:(a=e.visible)!=null?a:!0,beforeClose:e.beforeClose,closed:e.closed,target:r}},Xg=async(e,t,o)=>{const{nextZIndex:i}=o.vm.zIndex||o.vm._.exposed.zIndex,a={};if(e.fullscreen)o.originalPosition.value=mt(document.body,"position"),o.originalOverflow.value=mt(document.body,"overflow"),a.zIndex=i();else if(e.parent===document.body){o.originalPosition.value=mt(document.body,"position"),await n.nextTick();for(const r of["top","left"]){const s=r==="top"?"scrollTop":"scrollLeft";a[r]=`${e.target.getBoundingClientRect()[r]+document.body[s]+document.documentElement[s]-Number.parseInt(mt(document.body,`margin-${r}`),10)}px`}for(const r of["height","width"])a[r]=`${e.target.getBoundingClientRect()[r]}px`}else o.originalPosition.value=mt(t,"position");for(const[r,s]of Object.entries(a))o.$el.style[r]=s},hs=(e,t,o)=>{const i=o.vm.ns||o.vm._.exposed.ns;["absolute","fixed","sticky"].includes(o.originalPosition.value)?Ut(t,i.bm("parent","relative")):Oo(t,i.bm("parent","relative")),e.fullscreen&&e.lock?Oo(t,i.bm("parent","hidden")):Ut(t,i.bm("parent","hidden"))},Jn=Symbol("ElLoading"),ms=(e,t)=>{var o,i,a,r;const s=t.instance,l=p=>te(t.value)?t.value[p]:void 0,c=p=>{const g=me(p)&&(s==null?void 0:s[p])||p;return g&&n.ref(g)},d=p=>c(l(p)||e.getAttribute(`element-loading-${nl(p)}`)),f=(o=l("fullscreen"))!=null?o:t.modifiers.fullscreen,u={text:d("text"),svg:d("svg"),svgViewBox:d("svgViewBox"),spinner:d("spinner"),background:d("background"),customClass:d("customClass"),fullscreen:f,target:(i=l("target"))!=null?i:f?void 0:e,body:(a=l("body"))!=null?a:t.modifiers.body,lock:(r=l("lock"))!=null?r:t.modifiers.lock};e[Jn]={options:u,instance:di(u)}},ey=(e,t)=>{for(const o of Object.keys(t))n.isRef(t[o])&&(t[o].value=e[o])},fi={mounted(e,t){t.value&&ms(e,t)},updated(e,t){const o=e[Jn];t.oldValue!==t.value&&(t.value&&!t.oldValue?ms(e,t):t.value&&t.oldValue?te(t.value)&&ey(t.value,o.options):o==null||o.instance.close())},unmounted(e){var t;(t=e[Jn])==null||t.instance.close(),e[Jn]=null}},ty={install(e){e.directive("loading",fi),e.config.globalProperties.$loading=di},directive:fi,service:di},st=(e,t)=>{const o=e.__vccOpts||e;for(const[i,a]of t)o[i]=a;return o},ny={name:"SelectionsGroup",components:{Checkbox:Zr,CheckboxGroup:Qr,Col:an,Icon:be,Row:on,ElIconWarning:W.Warning},methods:{reset:function(){this.checkAll=!0,this.checkedItems=[],this.selections.forEach(e=>{!("enabled"in e)||e.enabled===!0?this.checkedItems.push(e[this.identifierKey]):this.checkAll=!1})},setCheckboxActionData:function(e,t){if(e){const o=e.querySelector('input[type="checkbox"]'),i=e.querySelector(".el-checkbox__label"),r=e.closest(".selections-container").querySelector(".checkall-display-text");let s="";o&&(s=o.checked?"checked":"unchecked"),this.checkboxActionData={selectionsTitle:r?r.innerText:"",property:o&&t!=="all"?o.value:"",label:i?i.innerText:"",checked:s}}else this.checkboxActionData={selectionsTitle:"",property:"",label:"",checked:""}},onCheckboxNativeChange:function(e){const t=e.target.closest(".checkbox-container");this.setCheckboxActionData(t,"individual")},onAllCheckboxNativeChange:function(e){const t=e.target.closest(".all-checkbox");this.setCheckboxActionData(t,"all")},visibilityToggle:function(e,t){this.$emit("changed",{key:e,value:t}),e===this.checkboxActionData.property&&(this.checkboxActionData.checked=t?"checked":"unchecked"),this.$emit("selections-data-changed",this.checkboxActionData)},checkboxMouseEnterEmit:function(e,t){this.$emit("checkboxMouseEnter",{key:e,value:t,selections:this.selections,checked:this.checkedItems})},handleCheckedItemsChange:function(e){let t=e.length;this.checkAll=t===this.selections.length},handleCheckAllChange:function(e){this.checkedItems=e?this.selections.map(t=>t[this.identifierKey]):[],this.$emit("checkAll",{keys:this.selections.map(t=>t[this.identifierKey]),value:e}),this.checkboxActionData.property=this.identifierKey,this.checkboxActionData.checked=e?"checked":"unchecked",this.$emit("selections-data-changed",this.checkboxActionData)},getBackgroundStyles:function(e){return"colour"in e&&this.colourStyle==="background"?{background:e.colour}:{}},getState:function(){const t=this.checkedItems.length===this.selections.length;return{checkAll:t,checked:t?[]:this.checkedItems}},setState:function(e){var t;if(this.checkAll=e.checkAll,this.checkedItems.length=0,(t=e.checked)!=null&&t.length)this.checkedItems.push(...e.checked),this.selections.forEach(o=>{const i=o[this.identifierKey];this.$emit("changed",{key:i,value:this.checkedItems.includes(i)})});else{const o=this.selections.map(a=>a[this.identifierKey]);let i=!1;this.checkAll&&(i=!0,this.checkedItems.push(...o)),this.$emit("checkAll",{keys:o,value:i})}},hasLineStyles:function(e){return"colour"in e&&this.colourStyle==="line"},getLineStyles:function(e){return"colour"in e&&this.colourStyle==="line"?"dashed"in e&&e.dashed===!0?{background:`repeating-linear-gradient(90deg,${e.colour},${e.colour} 6px,transparent 0,transparent 9px)`}:{background:e.colour}:{display:"None"}}},props:{colourStyle:{type:String,default:"line"},helpMessage:{type:String,default:""},identifierKey:{type:String,default:"id"},labelKey:{type:String,default:"label"},title:{type:String,default:""},selections:{type:Array,default:function(){return[]}},showAsLegend:{type:Boolean,default:!1}},computed:{isIndeterminate:function(){return!(this.checkedItems.length===0||this.checkAll)}},data:function(){return{checkedItems:[],checkAll:!0,checkboxActionData:{selectionsTitle:"",property:"",label:"",checked:""}}},mounted:function(){this.reset()}},oy={class:"selections-container"},iy={class:"checkall-display-text"},ay={style:{"word-break":"keep-all"}},ry={class:"checkbox-group-inner"},sy=["onMouseenter","onMouseleave"];function ly(e,t,o,i,a,r){const s=W.Warning,l=be,c=rn,d=an,f=Zr,u=on,p=Qr;return n.openBlock(),n.createElementBlock("div",oy,[n.createVNode(u,null,{default:n.withCtx(()=>[n.createVNode(d,{span:12},{default:n.withCtx(()=>[n.createElementVNode("span",iy,n.toDisplayString(o.title),1),o.helpMessage?(n.openBlock(),n.createBlock(c,{key:0,width:"250",trigger:"hover",teleported:!1,"popper-class":"popover-origin-help"},n.createSlots({default:n.withCtx(()=>[n.createElementVNode("span",ay,n.toDisplayString(o.helpMessage),1)]),_:2},[o.helpMessage?{name:"reference",fn:n.withCtx(()=>[n.createVNode(l,{class:"info"},{default:n.withCtx(()=>[n.createVNode(s)]),_:1})]),key:"0"}:void 0]),1024)):n.createCommentVNode("",!0)]),_:1}),n.createVNode(d,{span:12},{default:n.withCtx(()=>[o.selections&&o.selections.length>1&&!o.showAsLegend?(n.openBlock(),n.createBlock(f,{key:0,class:"all-checkbox",indeterminate:r.isIndeterminate,modelValue:e.checkAll,"onUpdate:modelValue":t[0]||(t[0]=g=>e.checkAll=g),onChange:r.handleCheckAllChange,onClick:r.onAllCheckboxNativeChange},{default:n.withCtx(()=>t[2]||(t[2]=[n.createTextVNode("Display all")])),_:1},8,["indeterminate","modelValue","onChange","onClick"])):n.createCommentVNode("",!0)]),_:1})]),_:1}),n.createVNode(p,{class:n.normalizeClass({"show-as-legend":o.showAsLegend,"checkbox-group":!o.showAsLegend}),modelValue:e.checkedItems,"onUpdate:modelValue":t[1]||(t[1]=g=>e.checkedItems=g),size:"small",onChange:r.handleCheckedItemsChange},{default:n.withCtx(()=>[n.createElementVNode("div",ry,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.selections,g=>(n.openBlock(),n.createBlock(u,{key:g[o.identifierKey],label:g[o.identifierKey]},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"checkbox-container",onMouseenter:h=>r.checkboxMouseEnterEmit(g[o.identifierKey],!0),onMouseleave:h=>r.checkboxMouseEnterEmit(g[o.identifierKey],!1)},[n.createVNode(f,{class:"my-checkbox",label:g[o.identifierKey],value:g[o.identifierKey],onChange:h=>r.visibilityToggle(g[o.identifierKey],h),onClick:r.onCheckboxNativeChange,checked:!("enabled"in g)||g.enabled===!0},{default:n.withCtx(()=>[n.createVNode(u,{class:"checkbox-row"},{default:n.withCtx(()=>[r.hasLineStyles(g)?(n.openBlock(),n.createBlock(d,{key:0,span:4},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"path-visual",style:n.normalizeStyle(r.getLineStyles(g))},null,4)]),_:2},1024)):n.createCommentVNode("",!0),n.createVNode(d,{span:20},{default:n.withCtx(()=>[n.createElementVNode("div",{style:n.normalizeStyle(r.getBackgroundStyles(g))},n.toDisplayString(g[o.labelKey]),5)]),_:2},1024)]),_:2},1024)]),_:2},1032,["label","value","onChange","onClick","checked"])],40,sy)]),_:2},1032,["label"]))),128))])]),_:1},8,["class","modelValue","onChange"])])}const gs=st(ny,[["render",ly],["__scopeId","data-v-35fb97d0"]]),cy='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="<fillColor>" stroke="<borderColor>" stroke-width="<borderWidth>" d="M11.0748 3.25583C11.4141 2.42845 12.5859 2.42845 12.9252 3.25583L14.6493 7.45955C14.793 7.80979 15.1221 8.04889 15.4995 8.07727L20.0303 8.41798C20.922 8.48504 21.2841 9.59942 20.6021 10.1778L17.1369 13.1166C16.8482 13.3614 16.7225 13.7483 16.8122 14.1161L17.8882 18.5304C18.1 19.3992 17.152 20.0879 16.3912 19.618L12.5255 17.2305C12.2034 17.0316 11.7966 17.0316 11.4745 17.2305L7.60881 19.618C6.84796 20.0879 5.90001 19.3992 6.1118 18.5304L7.18785 14.1161C7.2775 13.7483 7.1518 13.3614 6.86309 13.1166L3.3979 10.1778C2.71588 9.59942 3.07796 8.48504 3.96971 8.41798L8.50046 8.07727C8.87794 8.04889 9.20704 7.80979 9.35068 7.45955L11.0748 3.25583Z"/></svg>',dy={name:"LegendItem",props:{item:{type:Object,required:!0},identifierKey:{type:String,default:"id"},styleKey:{type:String,default:"style"},showStarInLegend:{type:Boolean,default:!1}},computed:{clipPathLegends:function(){return["exoid","hexagon"]},legendStyleValue:function(){return this.item[this.styleKey]==="star"?this.item[this.identifierKey]==="Featured dataset marker"&&!this.showStarInLegend?void 0:"star":this.clipPathLegends.includes(this.item[this.styleKey])?this.item[this.styleKey]:this.item[this.styleKey]==="line"?[this.item[this.styleKey],this.item.dashed?"dashed":"",this.item.arrow?"arrow":""]:[this.item[this.styleKey],"shape"]},customStyle:function(){const e=this.item.color?this.item.color:this.item.colour;let t=e||"transparent",o=this.item.border?this.item.border:"black",i=this.item.borderStyle?this.item.borderStyle:"default";if(e&&!this.item.border&&(o=t),this.item[this.styleKey]==="star"){let a=cy.replace("<fillColor>",t);return a=a.replace("<borderColor>",o),a=a.replace("<borderWidth>",o?"2":"0"),a="data:image/svg+xml,"+encodeURIComponent(a),{color:t,"background-image":`url(${a})`}}else return this.item[this.styleKey]==="line"?{color:t}:{"background-color":t,"border-color":o,"border-style":i}}},methods:{capitalise:function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()},customClipPathStyle:function(e){const t={...this.customStyle};return e?t["background-color"]=t["border-color"]:t.scale=.7,t}}},fy={key:0,class:"legend-item"},uy={class:"label"};function py(e,t,o,i,a,r){return r.legendStyleValue?(n.openBlock(),n.createElementBlock("div",fy,[r.clipPathLegends.includes(r.legendStyleValue)?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(r.legendStyleValue),style:n.normalizeStyle(r.customClipPathStyle(!0))},[n.createElementVNode("div",{class:n.normalizeClass(r.legendStyleValue),style:n.normalizeStyle(r.customClipPathStyle(!1))},null,6)],6)):(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(r.legendStyleValue),style:n.normalizeStyle(r.customStyle)},null,6)),n.createElementVNode("div",uy,n.toDisplayString(r.capitalise(o.item[o.identifierKey])),1)])):n.createCommentVNode("",!0)}const ys=st(dy,[["render",py],["__scopeId","data-v-b7e5b095"]]),hy={name:"DynamicLegends",components:{LegendItem:ys},props:{identifierKey:{type:String,default:"id"},styleKey:{type:String,default:"style"},title:{type:String,default:""},legends:{type:Array,default:function(){return[]}},showStarInLegend:{type:Boolean,default:!1},showDatasetMarkerTooltip:{type:Boolean,default:!1}},data(){return{isHovering:!1,hoverTimeout:null}},computed:{tooltipVisible(){return this.showDatasetMarkerTooltip&&this.showStarInLegend||this.isHovering}},methods:{onMouseOver(){clearTimeout(this.hoverTimeout),this.hoverTimeout=setTimeout(()=>{this.isHovering=!0},500)},onMouseOut(){clearTimeout(this.hoverTimeout),this.hoverTimeout=setTimeout(()=>{this.isHovering=!1},500)}}},my={class:"legend-group"},gy=["label"];function yy(e,t,o,i,a,r){const s=ys,l=rn,c=ci;return n.openBlock(),n.createElementBlock("div",my,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.legends,d=>(n.openBlock(),n.createElementBlock("div",{class:"legend-container",key:d[o.identifierKey],label:d[o.identifierKey]},[d[o.identifierKey]==="Featured dataset marker"?(n.openBlock(),n.createBlock(l,{key:0,content:"Location of the featured dataset",placement:"right",teleported:!0,trigger:"manual",width:"max-content",offset:0,"popper-class":"flatmap-popper flatmap-teleport-popper",visible:r.tooltipVisible,ref_for:!0,ref:"featuredMarkerPopover"},{reference:n.withCtx(()=>[n.withDirectives((n.openBlock(),n.createElementBlock("div",{onMouseover:t[0]||(t[0]=(...f)=>r.onMouseOver&&r.onMouseOver(...f)),onMouseout:t[1]||(t[1]=(...f)=>r.onMouseOut&&r.onMouseOut(...f))},[n.createVNode(s,{item:d,identifierKey:o.identifierKey,styleKey:o.styleKey,showStarInLegend:o.showStarInLegend},null,8,["item","identifierKey","styleKey","showStarInLegend"])],32)),[[c,void 0,"featuredMarkerPopover"]])]),_:2},1032,["visible"])):(n.openBlock(),n.createBlock(s,{key:1,item:d,identifierKey:o.identifierKey,styleKey:o.styleKey,showStarInLegend:o.showStarInLegend},null,8,["item","identifierKey","styleKey","showStarInLegend"]))],8,gy))),128))])}const bs=st(hy,[["render",yy],["__scopeId","data-v-32c93a1a"]]),by={name:"FlatmapError",props:{flatmapError:{type:Object,default:()=>({})}}},wy={class:"flatmap-error"},Cy={class:"flatmap-error-title"},vy={key:0},Sy={key:0,class:"flatmap-error-message"},ky=["innerHTML"],Ey={key:1};function Iy(e,t,o,i,a,r){const s=W.DocumentDelete,l=be,c=ii;return n.openBlock(),n.createElementBlock("div",wy,[n.createElementVNode("div",Cy,[n.createVNode(l,{size:"24"},{default:n.withCtx(()=>[n.createVNode(s)]),_:1}),o.flatmapError.title?(n.openBlock(),n.createElementBlock("div",vy,n.toDisplayString(o.flatmapError.title),1)):n.createCommentVNode("",!0)]),o.flatmapError.messages?(n.openBlock(),n.createElementBlock("div",Sy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.flatmapError.messages,(d,f)=>(n.openBlock(),n.createElementBlock("div",{key:f},[n.createElementVNode("div",{innerHTML:d},null,8,ky)]))),128))])):n.createCommentVNode("",!0),o.flatmapError.button?(n.openBlock(),n.createElementBlock("div",Ey,[n.createVNode(c,{class:"button",type:"primary",onClick:o.flatmapError.button.callback},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(o.flatmapError.button.text),1)]),_:1},8,["onClick"])])):n.createCommentVNode("",!0)])}const Yn=st(by,[["render",Iy],["__scopeId","data-v-8961361a"]]),Ty={name:"SvgLegends"},Ay={class:"legends-container"},Oy={version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 500 500",style:{"enable-background":"new 0 0 500 500"},xmlns:"http://www.w3.org/2000/svg","xmlns:bx":"https://boxy-svg.com"};function My(e,t,o,i,a,r){return n.openBlock(),n.createElementBlock("div",Ay,[(n.openBlock(),n.createElementBlock("svg",Oy,t[0]||(t[0]=[n.createStaticVNode('<defs data-v-88079d87><bx:grid height="30.447" width="32.516" x="0" y="0" data-v-88079d87></bx:grid></defs><path class="st0 st0-translate" d="M61.3,103.8c-15.9,0-28.8-12.3-28.8-27.3c0-15,13-27.3,28.8-27.3s28.8,12.3,28.8,27.3 C90.1,91.5,77.2,103.8,61.3,103.8z" data-v-88079d87></path><path class="st1" d="M40.3,356.1C29.5,345,29.8,328,41.5,317.5c11.7-10.5,29.6-9.9,40.7,1.1c11.1,11,10.5,28.1-1.2,38.5 C69.3,367.4,51.1,366.9,40.3,356.1z" data-v-88079d87></path><path class="st2" d="M61.2,396.9c-5.3,9.3-15.3,15.1-26.1,15.1l-0.4,0.6c5.1,9,5.1,20,0,29l0.4,0.6c10.7,0,20.8,5.8,26.1,15.1 c5.3-9.3,15.3-15.1,26.1-15.1c-5.3-9.3-5.3-20.9,0-30.4C76.6,412.1,66.7,406.3,61.2,396.9z" data-v-88079d87></path><text transform="matrix(0.9908 0 0 1 118.0161 171.7975)" class="st3 st4 st5" style="white-space:pre;" data-v-88079d87> Tissue region </text><path class="st6" d="M40.9,231.1c11.3-10.6,29.5-10.6,40.8,0c11.3,10.6,11.3,27.9,0,38.5c-11.3,10.6-29.5,10.6-40.8,0 C29.7,259,29.7,241.7,40.9,231.1z" data-v-88079d87></path><text transform="matrix(0.9908 0 0 1 118.0161 257.675)" class="st3 st4 st5" style="white-space:pre;" data-v-88079d87> Brain nuclei </text><text transform="matrix(0.9908 0 0 1 118.0903 345.5266)" class="st3 st4 st5" style="white-space:pre;" data-v-88079d87> Ganglia </text><text transform="matrix(0.9908 0 0 1 118.0903 433.1613)" class="st3 st4 st5" style="white-space:pre;" data-v-88079d87> Ganglionated nerve plexus </text>',9)]))),t[1]||(t[1]=n.createElementVNode("svg",{width:"72px",height:"72px",viewBox:"0 0 24 24",fill:"yellow"},null,-1))])}const By=st(Ty,[["render",My],["__scopeId","data-v-88079d87"]]),xy=`<div class="flatmap-marker">
13
13
  <svg xmlns="http://www.w3.org/2000/svg" width="28" height="39" viewBox="-1 -1 27 42">
14
14
  <ellipse style="fill: rgb(0, 0, 0); fill-opacity: 0.2;" cx="12" cy="36" rx="8" ry="4"></ellipse>
15
15
  <path d="M12.25.25a12.254 12.254 0 0 0-12 12.494c0 6.444 6.488 12.109 11.059 22.564.549 1.256 1.333 1.256 1.882 0
@@ -17,17 +17,17 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:i,curr
17
17
  <circle cx="12.5" cy="12.5" r="9" fill="#fff"></circle>
18
18
  <text x="12" y="17.5" style="font-size:14px;fill:#000;text-anchor:middle">2</text>
19
19
  </svg>
20
- </div>`,sn=function(e){return e?[...new Set(e.map(t=>JSON.stringify(t)))].map(t=>JSON.parse(t)):[]},xt=function(e){if(!e)return[];const t=new Set,o=[];return e.forEach(i=>{const{id:r,name:a}=i,s=`${r.toLowerCase()}:${a.toLowerCase()}`;t.has(s)||(t.add(s),o.push(i))}),o},ui=[],pi=async function(e,t){const o=t.filter(a=>ui.some(s=>s.taxon===a)),i=ui.filter(a=>o.includes(a.taxon)),r=t.filter(a=>!o.includes(a));if(r.length){const a=await e.queryLabels(r);if(a.length)return a.forEach(s=>{let{entity:l,label:c}=s;c==="Mammalia"&&(c="Mammalia not otherwise specified");const d={taxon:l,label:c};i.push(d),ui.push(d)}),i}else return i},hi=function(e,t){if(!e||!t)return!1;let o=JSON.stringify(e),i=JSON.stringify(t);return o.indexOf(i)!==-1},Bt=(e,t)=>{const o=e.name??e,i=t.name??t,r=o.toUpperCase(),a=i.toUpperCase();return r<a?-1:r>a?1:0};let bs=function(){this.initialise=function(e){this.flatmapAPI=e,this.destinations=[],this.origins=[],this.components=[],this.destinationsWithDatasets=[],this.originsWithDatasets=[],this.componentsWithDatasets=[],this.destinationsCombinations=[],this.originsCombinations=[],this.componentsCombinations=[],this.singleConnectivityList=[],this.hasSingleConnectivityList=!1,this.rawURLs=[],this.controller=void 0,this.uberons=[],this.lookUp=[],this.connectivitySource="map",this.noMapConnectivity=!1},this.createTooltipData=async function(e,t){let o=[];t.feature.hyperlinks&&t.feature.hyperlinks.length>0?o=t.feature.hyperlinks:o=this.rawURLs;let i;if(t.provenanceTaxonomy){i=[];try{const a=await pi(e,t.provenanceTaxonomy);a.length&&a.forEach(s=>{const{label:l}=s;i.push(l)})}catch(a){console.log(a)}}return{destinations:this.destinations,origins:this.origins,components:this.components,destinationsWithDatasets:xt(this.destinationsWithDatasets),originsWithDatasets:xt(this.originsWithDatasets),componentsWithDatasets:xt(this.componentsWithDatasets),destinationsCombinations:this.destinationsCombinations,originsCombinations:this.originsCombinations,componentsCombinations:this.componentsCombinations,hasSingleConnectivityList:this.singleConnectivityList.length>0,title:t.label,featureId:t.resource,hyperlinks:o,provenanceTaxonomy:t.provenanceTaxonomy,provenanceTaxonomyLabel:i,connectivitySource:this.connectivitySource,noMapConnectivity:this.noMapConnectivity}},this.updateTooltipData=function(e){return{...e,origins:this.origins,originsWithDatasets:xt(this.originsWithDatasets),components:this.components,componentsWithDatasets:xt(this.componentsWithDatasets),destinations:this.destinations,destinationsWithDatasets:xt(this.destinationsWithDatasets),destinationsCombinations:this.destinationsCombinations,originsCombinations:this.originsCombinations,componentsCombinations:this.componentsCombinations,connectivitySource:this.connectivitySource,noMapConnectivity:this.noMapConnectivity}},this.createComponentsLabelList=function(e,t){let o=[];return e.forEach(i=>{o.push(this.createLabelFromNeuralNode(i[0]),t),i.length===2&&o.push(this.createLabelFromNeuralNode(i[1]),t)}),o},this.createLabelLookup=function(e,t){return new Promise(async o=>{let i={};this.uberons=[];const r=await pi(e,t);r.length&&(r.forEach(a=>{const{taxon:s,label:l}=a;i[s]=l,this.uberons.push({id:s,name:l})}),o(i))})},this.buildConnectivitySqlStatement=function(e){let t="select knowledge from knowledge where entity in (";if(e.length===1)t+=`'${e[0]}')`;else if(e.length>1)for(let o in e)t+=`'${e[o]}'${o>=e.length-1?")":","} `;return t},this.buildLabelSqlStatement=function(e){let t="select entity, label from labels where entity in (";if(e.length===1)t+=`'${e[0]}')`;else if(e.length>1)for(let o in e)t+=`'${e[o]}'${o>=e.length-1?")":","} `;return t},this.findAllIdsFromConnectivity=function(e){let t=e.connectivity.flat(),o=[...new Set(t)],i=[];return o.forEach(r=>{Array.isArray(r)?i.push(r.flat()):i.push(r)}),[...new Set(i.flat())]},this.flattenConnectivity=function(e){let t=e.flat(),o=[...new Set(t)],i=[];return o.forEach(r=>{Array.isArray(r)?i.push(r.flat()):i.push(r)}),i.flat()},this.findComponents=function(e,t,o,i){let r=e.connectivity.flat(),a=sn(r),s=[],l=!1;return a.forEach(c=>{l=!1,hi(t,c)&&(l=!0),i&&hi(i,c)&&(l=!0),hi(o,c)&&(l=!0),l||s.push(c)}),s},this.retrieveFlatmapKnowledgeForEvent=async function(e,t){this.controller&&this.controller.abort(),this.controller=new AbortController,this.controller.signal;const o=t.resource;if(this.destinations=[],this.origins=[],this.components=[],this.destinationsWithDatasets=[],this.originsWithDatasets=[],this.componentsWithDatasets=[],this.destinationsCombinations=[],this.originsCombinations=[],this.componentsCombinations=[],this.singleConnectivityList=[],this.rawURLs=[],!o||o.length===0||!o[0])return;let i=await this.queryForConnectivityNew(e,o[0]);return await Promise.all([i])},this.queryForConnectivityNew=async function(e,t,o="map",i=!0){const r=/^sckan-(\d{4})/.exec(e.knowledgeSource||""),s=(r?Number(r[1]):0)>=2026,l=e.mapMetadata.uuid,c=this.flatmapAPI;return this.connectivitySource=s?"sckan":o,s&&(this.singleConnectivityList=await ut.querySingleConnectivityList(c,l,t)),new Promise(d=>{(this.connectivitySource==="map"?this.queryMapConnectivity(e.mapMetadata.uuid,t):e.queryKnowledge(t)).then(u=>{if(this.checkConnectivityExists(u)){this.connectivitySource==="map"&&(this.noMapConnectivity=!1);let p=u;i?this.processConnectivity(e,p).then(g=>{u.references&&(this.rawURLs=[...u.references]),d(g)}):d(p)}else this.connectivitySource==="map"?(this.connectivitySource="sckan",this.noMapConnectivity=!0,e.queryKnowledge(t).then(p=>{if(this.checkConnectivityExists(p)){let g=p;i?this.processConnectivity(e,g).then(h=>{p.references&&(this.rawURLs=[...p.references]),d(h)}):d(g)}else d(!1)}).catch(()=>d(!1))):d(!1)}).catch(u=>{u.name==="AbortError"||console.warn(`Unable to get the knowledge for the entity ${t}.`),d(!1)})})},this.queryMapConnectivity=async function(e,t){const o=this.flatmapAPI+`flatmap/${e}/connectivity/${t}`;try{const i=await fetch(o);if(!i.ok)throw new Error(`Response status: ${i.status}`);return await i.json()}catch(i){throw new Error(i)}},this.queryForConnectivity=function(e,t,o,i=!0){const r={sql:this.buildConnectivitySqlStatement(t)},a={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r),...o?{signal:o}:{}};return new Promise(s=>{fetch(`${this.flatmapAPI}knowledge/query/`,a).then(l=>l.json()).then(l=>{if(this.connectivityExists(l)){let c=JSON.parse(l.values[0][0]);i?this.processConnectivity(e,c).then(d=>{s(d)}):s(c)}else s(!1)}).catch(l=>{l.name==="AbortError"||console.error("Error:",l),s(!1)})})},this.checkConnectivityExists=function(e){var t;return e&&((t=e.connectivity)==null?void 0:t.length)},this.connectivityExists=function(e){return!!(e.values&&e.values.length>0&&JSON.parse(e.values[0][0]).connectivity&&JSON.parse(e.values[0][0]).connectivity.length>0)},this.findIfNodeIsSingle=function(e){return e.length===1?(console.error("Server returns a single node",e),e[0]):e.length===2&&e[1].length===0?e[0]:!1},this.createLabelFromNeuralNode=function(e,t){let o=this.findIfNodeIsSingle(e);if(o)return t[o];let i=t[e[0]];return e.length===2&&e[1].length>0&&e[1].forEach(r=>{t[r]==null?i+=`, ${r}`:i+=`, ${t[r]}`}),i},this.flattenAndFindDatasets=function(e,t,o){let i=this.flattenConnectivity(e),r=this.flattenConnectivity(t),a=this.flattenConnectivity(o);this.originsWithDatasets=this.uberons.filter(s=>i.indexOf(s.id)!==-1).sort(Bt),this.componentsWithDatasets=this.uberons.filter(s=>r.indexOf(s.id)!==-1).sort(Bt),this.destinationsWithDatasets=this.uberons.filter(s=>a.indexOf(s.id)!==-1).sort(Bt),this.singleConnectivityList.length>0&&this.singleConnectivityList.forEach(s=>{const{sckanNodeId:l,sckanNodeLabel:c,mapNodeId:d,mapNodeLabel:f}=s;o.find(u=>JSON.stringify(u)===JSON.stringify(l))&&(this.destinationsCombinations.push({sckanId:l,sckanLabel:c,mapId:d,mapLabel:f}),d.forEach((u,p)=>{const g=typeof u=="string"?u:u[0];g&&this.destinationsWithDatasets.push({id:g,name:f.split(",")[p]})})),e.find(u=>JSON.stringify(u)===JSON.stringify(l))&&(this.originsCombinations.push({sckanId:l,sckanLabel:c,mapId:d,mapLabel:f}),d.forEach((u,p)=>{const g=typeof u=="string"?u:u[0];g&&this.originsWithDatasets.push({id:g,name:f.split(",")[p]})})),t.find(u=>JSON.stringify(u)===JSON.stringify(l))&&(this.componentsCombinations.push({sckanId:l,sckanLabel:c,mapId:d,mapLabel:f}),d.forEach((u,p)=>{const g=typeof u=="string"?u:u[0];g&&this.componentsWithDatasets.push({id:g,name:f.split(",")[p]})}))})},this.processConnectivity=function(e,t){return new Promise(o=>{let i=[],r=[],a;if(t&&t["node-phenotypes"]){const c=["ilxtr:hasSomaLocatedIn"],d=["ilxtr:hasAxonPresynapticElementIn","ilxtr:hasAxonSensorySubcellularElementIn"];c.forEach(f=>{f in t["node-phenotypes"]&&i.push(...t["node-phenotypes"][f])}),i=sn(i),d.forEach(f=>{f in t["node-phenotypes"]&&r.push(...t["node-phenotypes"][f])}),r=sn(r)}else r=sn(t.axons),t.somas&&t.somas.length>0&&i.push(...t.somas),t.dendrites&&t.dendrites.length>0&&i.push(...t.dendrites),i=sn(i),a=t.somas;const s=this.findComponents(t,r,i,a),l=this.findAllIdsFromConnectivity(t);this.createLabelLookup(e,l).then(c=>{this.origins=i.map(d=>this.createLabelFromNeuralNode(d,c)).sort(Bt),this.components=s.map(d=>this.createLabelFromNeuralNode(d,c)).sort(Bt),this.destinations=r.map(d=>this.createLabelFromNeuralNode(d,c)).sort(Bt),this.flattenAndFindDatasets(i,s,r),o({ids:{dendrites:i,components:s,axons:r},labels:{origins:this.origins,components:this.components,destinations:this.destinations}})})})},this.buildPubmedSqlStatement=function(e){let t="select distinct publication from publications where entity in (";if(e.length===1)t+=`'${e[0]}')`;else if(e.length>1)for(let o in e)t+=`'${e[o]}'${o>=e.length-1?")":","} `;return t},this.buildPubmedSqlStatementForModels=function(e){return`select distinct publication from publications where entity = '${e}'`},this.queryKnowledge=async(e,t)=>{const o=`${this.flatmapAPI}knowledge/query/`,r=await fetch(o,{method:"POST",headers:{Accept:"application/json"},body:JSON.stringify({sql:e,params:t})});if(!r.ok)throw new Error(`Cannot access ${o}`);const a=await r.json();if("error"in a)throw new TypeError(a.error);return a.values}};async function Ny(e){const t=sessionStorage.getItem("flatmap-knowledge");if(t){const r=JSON.parse(t).filter(a=>a.references&&a.references.length).filter(a=>a.references.includes(e));if(r.length)return r.map(s=>s.id)}return[]}async function _y(e,t,o){const r=`select knowledge from knowledge
20
+ </div>`,sn=function(e){return e?[...new Set(e.map(t=>JSON.stringify(t)))].map(t=>JSON.parse(t)):[]},Bt=function(e){if(!e)return[];const t=new Set,o=[];return e.forEach(i=>{const{id:a,name:r}=i,s=`${a.toLowerCase()}:${r.toLowerCase()}`;t.has(s)||(t.add(s),o.push(i))}),o},ui=[],pi=async function(e,t){const o=t.filter(r=>ui.some(s=>s.taxon===r)),i=ui.filter(r=>o.includes(r.taxon)),a=t.filter(r=>!o.includes(r));if(a.length){const r=await e.queryLabels(a);if(r.length)return r.forEach(s=>{let{entity:l,label:c}=s;c==="Mammalia"&&(c="Mammalia not otherwise specified");const d={taxon:l,label:c};i.push(d),ui.push(d)}),i}else return i},hi=function(e,t){if(!e||!t)return!1;let o=JSON.stringify(e),i=JSON.stringify(t);return o.indexOf(i)!==-1},xt=(e,t)=>{const o=e.name??e,i=t.name??t,a=o.toUpperCase(),r=i.toUpperCase();return a<r?-1:a>r?1:0};let ws=function(){this.initialise=function(e){this.flatmapAPI=e,this.destinations=[],this.origins=[],this.components=[],this.destinationsWithDatasets=[],this.originsWithDatasets=[],this.componentsWithDatasets=[],this.destinationsCombinations=[],this.originsCombinations=[],this.componentsCombinations=[],this.singleConnectivityList=[],this.hasSingleConnectivityList=!1,this.rawURLs=[],this.controller=void 0,this.uberons=[],this.lookUp=[],this.connectivitySource="map",this.noMapConnectivity=!1},this.createTooltipData=async function(e,t){let o=[];t.feature.hyperlinks&&t.feature.hyperlinks.length>0?o=t.feature.hyperlinks:o=this.rawURLs;let i;if(t.provenanceTaxonomy){i=[];try{const r=await pi(e,t.provenanceTaxonomy);r.length&&r.forEach(s=>{const{label:l}=s;i.push(l)})}catch(r){console.log(r)}}return{destinations:this.destinations,origins:this.origins,components:this.components,destinationsWithDatasets:Bt(this.destinationsWithDatasets),originsWithDatasets:Bt(this.originsWithDatasets),componentsWithDatasets:Bt(this.componentsWithDatasets),destinationsCombinations:this.destinationsCombinations,originsCombinations:this.originsCombinations,componentsCombinations:this.componentsCombinations,hasSingleConnectivityList:this.singleConnectivityList.length>0,title:t.label,featureId:t.resource,hyperlinks:o,provenanceTaxonomy:t.provenanceTaxonomy,provenanceTaxonomyLabel:i,connectivitySource:this.connectivitySource,noMapConnectivity:this.noMapConnectivity}},this.updateTooltipData=function(e){return{...e,origins:this.origins,originsWithDatasets:Bt(this.originsWithDatasets),components:this.components,componentsWithDatasets:Bt(this.componentsWithDatasets),destinations:this.destinations,destinationsWithDatasets:Bt(this.destinationsWithDatasets),destinationsCombinations:this.destinationsCombinations,originsCombinations:this.originsCombinations,componentsCombinations:this.componentsCombinations,connectivitySource:this.connectivitySource,noMapConnectivity:this.noMapConnectivity}},this.createComponentsLabelList=function(e,t){let o=[];return e.forEach(i=>{o.push(this.createLabelFromNeuralNode(i[0]),t),i.length===2&&o.push(this.createLabelFromNeuralNode(i[1]),t)}),o},this.createLabelLookup=function(e,t){return new Promise(async o=>{let i={};this.uberons=[];const a=await pi(e,t);a.length&&(a.forEach(r=>{const{taxon:s,label:l}=r;i[s]=l,this.uberons.push({id:s,name:l})}),o(i))})},this.buildConnectivitySqlStatement=function(e){let t="select knowledge from knowledge where entity in (";if(e.length===1)t+=`'${e[0]}')`;else if(e.length>1)for(let o in e)t+=`'${e[o]}'${o>=e.length-1?")":","} `;return t},this.buildLabelSqlStatement=function(e){let t="select entity, label from labels where entity in (";if(e.length===1)t+=`'${e[0]}')`;else if(e.length>1)for(let o in e)t+=`'${e[o]}'${o>=e.length-1?")":","} `;return t},this.findAllIdsFromConnectivity=function(e){let t=e.connectivity.flat(),o=[...new Set(t)],i=[];return o.forEach(a=>{Array.isArray(a)?i.push(a.flat()):i.push(a)}),[...new Set(i.flat())]},this.flattenConnectivity=function(e){let t=e.flat(),o=[...new Set(t)],i=[];return o.forEach(a=>{Array.isArray(a)?i.push(a.flat()):i.push(a)}),i.flat()},this.findComponents=function(e,t,o,i){let a=e.connectivity.flat(),r=sn(a),s=[],l=!1;return r.forEach(c=>{l=!1,hi(t,c)&&(l=!0),i&&hi(i,c)&&(l=!0),hi(o,c)&&(l=!0),l||s.push(c)}),s},this.retrieveFlatmapKnowledgeForEvent=async function(e,t){this.controller&&this.controller.abort(),this.controller=new AbortController,this.controller.signal;const o=t.resource;if(this.destinations=[],this.origins=[],this.components=[],this.destinationsWithDatasets=[],this.originsWithDatasets=[],this.componentsWithDatasets=[],this.destinationsCombinations=[],this.originsCombinations=[],this.componentsCombinations=[],this.singleConnectivityList=[],this.rawURLs=[],!o||o.length===0||!o[0])return;let i=await this.queryForConnectivityNew(e,o[0]);return await Promise.all([i])},this.queryForConnectivityNew=async function(e,t,o="map",i=!0){const a=/^sckan-(\d{4})/.exec(e.knowledgeSource||""),s=(a?Number(a[1]):0)>=2026,l=e.mapMetadata.uuid,c=this.flatmapAPI;return this.connectivitySource=s?"sckan":o,s&&(this.singleConnectivityList=await ut.querySingleConnectivityList(c,l,t)),new Promise(d=>{(this.connectivitySource==="map"?this.queryMapConnectivity(e.mapMetadata.uuid,t):e.queryKnowledge(t)).then(u=>{if(this.checkConnectivityExists(u)){this.connectivitySource==="map"&&(this.noMapConnectivity=!1);let p=u;i?this.processConnectivity(e,p).then(g=>{u.references&&(this.rawURLs=[...u.references]),d(g)}):d(p)}else this.connectivitySource==="map"?(this.connectivitySource="sckan",this.noMapConnectivity=!0,e.queryKnowledge(t).then(p=>{if(this.checkConnectivityExists(p)){let g=p;i?this.processConnectivity(e,g).then(h=>{p.references&&(this.rawURLs=[...p.references]),d(h)}):d(g)}else d(!1)}).catch(()=>d(!1))):d(!1)}).catch(u=>{u.name==="AbortError"||console.warn(`Unable to get the knowledge for the entity ${t}.`),d(!1)})})},this.queryMapConnectivity=async function(e,t){const o=this.flatmapAPI+`flatmap/${e}/connectivity/${t}`;try{const i=await fetch(o);if(!i.ok)throw new Error(`Response status: ${i.status}`);return await i.json()}catch(i){throw new Error(i)}},this.queryForConnectivity=function(e,t,o,i=!0){const a={sql:this.buildConnectivitySqlStatement(t)},r={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a),...o?{signal:o}:{}};return new Promise(s=>{fetch(`${this.flatmapAPI}knowledge/query/`,r).then(l=>l.json()).then(l=>{if(this.connectivityExists(l)){let c=JSON.parse(l.values[0][0]);i?this.processConnectivity(e,c).then(d=>{s(d)}):s(c)}else s(!1)}).catch(l=>{l.name==="AbortError"||console.error("Error:",l),s(!1)})})},this.checkConnectivityExists=function(e){var t;return e&&((t=e.connectivity)==null?void 0:t.length)},this.connectivityExists=function(e){return!!(e.values&&e.values.length>0&&JSON.parse(e.values[0][0]).connectivity&&JSON.parse(e.values[0][0]).connectivity.length>0)},this.findIfNodeIsSingle=function(e){return e.length===1?(console.error("Server returns a single node",e),e[0]):e.length===2&&e[1].length===0?e[0]:!1},this.createLabelFromNeuralNode=function(e,t){let o=this.findIfNodeIsSingle(e);if(o)return t[o];let i=t[e[0]];return e.length===2&&e[1].length>0&&e[1].forEach(a=>{t[a]==null?i+=`, ${a}`:i+=`, ${t[a]}`}),i},this.flattenAndFindDatasets=function(e,t,o){let i=this.flattenConnectivity(e),a=this.flattenConnectivity(t),r=this.flattenConnectivity(o);this.originsWithDatasets=this.uberons.filter(s=>i.indexOf(s.id)!==-1).sort(xt),this.componentsWithDatasets=this.uberons.filter(s=>a.indexOf(s.id)!==-1).sort(xt),this.destinationsWithDatasets=this.uberons.filter(s=>r.indexOf(s.id)!==-1).sort(xt),this.singleConnectivityList.length>0&&this.singleConnectivityList.forEach(s=>{const{sckanNodeId:l,sckanNodeLabel:c,mapNodeId:d,mapNodeLabel:f}=s;o.find(u=>JSON.stringify(u)===JSON.stringify(l))&&(this.destinationsCombinations.push({sckanId:l,sckanLabel:c,mapId:d,mapLabel:f}),d.forEach((u,p)=>{const g=typeof u=="string"?u:u[0];g&&this.destinationsWithDatasets.push({id:g,name:f.split(",")[p]})})),e.find(u=>JSON.stringify(u)===JSON.stringify(l))&&(this.originsCombinations.push({sckanId:l,sckanLabel:c,mapId:d,mapLabel:f}),d.forEach((u,p)=>{const g=typeof u=="string"?u:u[0];g&&this.originsWithDatasets.push({id:g,name:f.split(",")[p]})})),t.find(u=>JSON.stringify(u)===JSON.stringify(l))&&(this.componentsCombinations.push({sckanId:l,sckanLabel:c,mapId:d,mapLabel:f}),d.forEach((u,p)=>{const g=typeof u=="string"?u:u[0];g&&this.componentsWithDatasets.push({id:g,name:f.split(",")[p]})}))})},this.processConnectivity=function(e,t){return new Promise(o=>{let i=[],a=[],r;if(t&&t["node-phenotypes"]){const c=["ilxtr:hasSomaLocatedIn"],d=["ilxtr:hasAxonPresynapticElementIn","ilxtr:hasAxonSensorySubcellularElementIn"];c.forEach(f=>{f in t["node-phenotypes"]&&i.push(...t["node-phenotypes"][f])}),i=sn(i),d.forEach(f=>{f in t["node-phenotypes"]&&a.push(...t["node-phenotypes"][f])}),a=sn(a)}else a=sn(t.axons),t.somas&&t.somas.length>0&&i.push(...t.somas),t.dendrites&&t.dendrites.length>0&&i.push(...t.dendrites),i=sn(i),r=t.somas;const s=this.findComponents(t,a,i,r),l=this.findAllIdsFromConnectivity(t);this.createLabelLookup(e,l).then(c=>{this.origins=i.map(d=>this.createLabelFromNeuralNode(d,c)).sort(xt),this.components=s.map(d=>this.createLabelFromNeuralNode(d,c)).sort(xt),this.destinations=a.map(d=>this.createLabelFromNeuralNode(d,c)).sort(xt),this.flattenAndFindDatasets(i,s,a),o({ids:{dendrites:i,components:s,axons:a},labels:{origins:this.origins,components:this.components,destinations:this.destinations}})})})},this.buildPubmedSqlStatement=function(e){let t="select distinct publication from publications where entity in (";if(e.length===1)t+=`'${e[0]}')`;else if(e.length>1)for(let o in e)t+=`'${e[o]}'${o>=e.length-1?")":","} `;return t},this.buildPubmedSqlStatementForModels=function(e){return`select distinct publication from publications where entity = '${e}'`},this.queryKnowledge=async(e,t)=>{const o=`${this.flatmapAPI}knowledge/query/`,a=await fetch(o,{method:"POST",headers:{Accept:"application/json"},body:JSON.stringify({sql:e,params:t})});if(!a.ok)throw new Error(`Cannot access ${o}`);const r=await a.json();if("error"in r)throw new TypeError(r.error);return r.values}};async function Ny(e){const t=sessionStorage.getItem("flatmap-knowledge");if(t){const a=JSON.parse(t).filter(r=>r.references&&r.references.length).filter(r=>r.references.includes(e));if(a.length)return a.map(s=>s.id)}return[]}async function _y(e,t,o){const a=`select knowledge from knowledge
21
21
  where source="${Zn(e)}" and
22
- knowledge like "%${t}%" order by source desc`;return(await o.queryKnowledge(r)).map(c=>JSON.parse(c)).map(c=>c.id)}function Zn(e){return ws(e.mapMetadata)}function ws(e){let t="";if(e!=null&&e.connectivity){const o=e.connectivity;"knowledge-source"in o?t=o["knowledge-source"]:"npo"in o&&(t=`${o.npo.release}-npo`)}return t}async function Cs(e,t){const o=Zn(e),i=`select knowledge from knowledge
22
+ knowledge like "%${t}%" order by source desc`;return(await o.queryKnowledge(a)).map(c=>JSON.parse(c)).map(c=>c.id)}function Zn(e){return Cs(e.mapMetadata)}function Cs(e){let t="";if(e!=null&&e.connectivity){const o=e.connectivity;"knowledge-source"in o?t=o["knowledge-source"]:"npo"in o&&(t=`${o.npo.release}-npo`)}return t}async function vs(e,t){const o=Zn(e),i=`select knowledge from knowledge
23
23
  where source="${o}"
24
- order by source desc`;vs();const r=sessionStorage.getItem("flatmap-knowledge"),a=sessionStorage.getItem("flatmap-knowledge-source");if(!r||a!==o){const l=(await t.queryKnowledge(i)).map(c=>JSON.parse(c));return sessionStorage.setItem("flatmap-knowledge",JSON.stringify(l)),sessionStorage.setItem("flatmap-knowledge-source",o),Ly(),l}return JSON.parse(r)}function Ly(){const o=new Date().getTime()+864e5;sessionStorage.setItem("flatmap-knowledge-expiry",o)}function Py(){["flatmap-knowledge","flatmap-knowledge-expiry","flatmap-knowledge-source"].forEach(t=>{sessionStorage.removeItem(t)})}function vs(){const e=sessionStorage.getItem("flatmap-knowledge-expiry");new Date().getTime()>e&&Py()}const Qn=e=>e&&e.charAt(0).toUpperCase()+e.slice(1),Nt=e=>{if(e==null)return[];if(Array.isArray(e))return e.flatMap(t=>Nt(t));if(typeof e=="string"){const t=e.trim();if(!t)return[];try{const o=JSON.parse(t);if(o!==e)return Nt(o)}catch{}return[t]}return typeof e=="number"||typeof e=="boolean"?[String(e)]:[]},Vy='<svg width="195px" height="24px" viewBox="0 0 200 24" fill="yellow"><path d="M22.0748 3.25583C22.4141 2.42845 23.5859 2.42845 23.9252 3.25583L25.6493 7.45955C25.793 7.80979 26.1221 8.04889 26.4995 8.07727L31.0303 8.41798C31.922 8.48504 32.2841 9.59942 31.6021 10.1778L28.1369 13.1166C27.8482 13.3614 27.7225 13.7483 27.8122 14.1161L28.8882 18.5304C29.1 19.3992 28.152 20.0879 27.3912 19.618L23.5255 17.2305C23.2034 17.0316 22.7966 17.0316 22.4745 17.2305L18.60881 19.618C17.84796 20.0879 16.9 19.3992 17.1118 18.5304L18.18785 14.1161C18.2775 13.7483 18.1518 13.3614 17.86309 13.1166L14.3979 10.1778C13.71588 9.59942 14.07796 8.48504 14.96971 8.41798L19.50046 8.07727C19.87794 8.04889 20.20704 7.80979 20.35068 7.45955L22.0748 3.25583Z" stroke="#000000" stroke-width="2"/><text x="47" y="52%" style="white-space: pre" dominant-baseline="middle" text-anchor="start" font-family="Asap, sans-serif" font-size="12" fill="#333333">Featured dataset marker</text></svg>';var Ss={exports:{}};(function(e,t){(function(o,i){e.exports=i()})(typeof window<"u"?window:bm,function(){if(typeof window>"u")return null;var o=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")(),i=o.requestAnimationFrame||o.mozRequestAnimationFrame||o.webkitRequestAnimationFrame||function(f){return o.setTimeout(f,20)},r=o.cancelAnimationFrame||o.mozCancelAnimationFrame||o.webkitCancelAnimationFrame||function(f){o.clearTimeout(f)};function a(f,u){var p=Object.prototype.toString.call(f),g=p==="[object Array]"||p==="[object NodeList]"||p==="[object HTMLCollection]"||p==="[object Object]"||typeof jQuery<"u"&&f instanceof jQuery||typeof Elements<"u"&&f instanceof Elements,h=0,m=f.length;if(g)for(;h<m;h++)u(f[h]);else u(f)}function s(f){if(!f.getBoundingClientRect)return{width:f.offsetWidth,height:f.offsetHeight};var u=f.getBoundingClientRect();return{width:Math.round(u.width),height:Math.round(u.height)}}function l(f,u){Object.keys(u).forEach(function(p){f.style[p]=u[p]})}var c=function(f,u){var p=0;function g(){var m=[];this.add=function(C){m.push(C)};var y,b;this.call=function(C){for(y=0,b=m.length;y<b;y++)m[y].call(this,C)},this.remove=function(C){var I=[];for(y=0,b=m.length;y<b;y++)m[y]!==C&&I.push(m[y]);m=I},this.length=function(){return m.length}}function h(m,y){if(m){if(m.resizedAttached){m.resizedAttached.add(y);return}m.resizedAttached=new g,m.resizedAttached.add(y),m.resizeSensor=document.createElement("div"),m.resizeSensor.dir="ltr",m.resizeSensor.className="resize-sensor";var b={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},C={position:"absolute",left:"0px",top:"0px",transition:"0s"};l(m.resizeSensor,b);var I=document.createElement("div");I.className="resize-sensor-expand",l(I,b);var k=document.createElement("div");l(k,C),I.appendChild(k);var v=document.createElement("div");v.className="resize-sensor-shrink",l(v,b);var S=document.createElement("div");l(S,C),l(S,{width:"200%",height:"200%"}),v.appendChild(S),m.resizeSensor.appendChild(I),m.resizeSensor.appendChild(v),m.appendChild(m.resizeSensor);var E=window.getComputedStyle(m),O=E?E.getPropertyValue("position"):null;O!=="absolute"&&O!=="relative"&&O!=="fixed"&&O!=="sticky"&&(m.style.position="relative");var x=!1,N=0,B=s(m),T=0,L=0,q=!0;p=0;var V=function(){var Z=m.offsetWidth,ce=m.offsetHeight;k.style.width=Z+10+"px",k.style.height=ce+10+"px",I.scrollLeft=Z+10,I.scrollTop=ce+10,v.scrollLeft=Z+10,v.scrollTop=ce+10},M=function(){if(q){var Z=m.offsetWidth===0&&m.offsetHeight===0;if(Z){p||(p=i(function(){p=0,M()}));return}else q=!1}V()};m.resizeSensor.resetSensor=M;var $=function(){N=0,x&&(T=B.width,L=B.height,m.resizedAttached&&m.resizedAttached.call(B))},pe=function(){B=s(m),x=B.width!==T||B.height!==L,x&&!N&&(N=i($)),M()},Y=function(Z,ce,Ee){Z.attachEvent?Z.attachEvent("on"+ce,Ee):Z.addEventListener(ce,Ee)};Y(I,"scroll",pe),Y(v,"scroll",pe),p=i(function(){p=0,M()})}}a(f,function(m){h(m,u)}),this.detach=function(m){p||(r(p),p=0),c.detach(f,m)},this.reset=function(){f.resizeSensor.resetSensor()}};if(c.reset=function(f){a(f,function(u){u.resizeSensor.resetSensor()})},c.detach=function(f,u){a(f,function(p){p&&(p.resizedAttached&&typeof u=="function"&&(p.resizedAttached.remove(u),p.resizedAttached.length())||p.resizeSensor&&(p.contains(p.resizeSensor)&&p.removeChild(p.resizeSensor),delete p.resizeSensor,delete p.resizedAttached))})},typeof MutationObserver<"u"){var d=new MutationObserver(function(f){for(var u in f)if(f.hasOwnProperty(u))for(var p=f[u].addedNodes,g=0;g<p.length;g++)p[g].resizeSensor&&c.reset(p[g])});document.addEventListener("DOMContentLoaded",function(f){d.observe(document.body,{childList:!0,subtree:!0})})}return c})})(Ss);var Ry=Ss.exports;const Fy=wm(Ry),Dy=Si.defineStore("main",{state:()=>({userProfile:{token:""}}),getters:{userToken(e){return e.userProfile.token}},actions:{setUserToken(e){this.userProfile.token=e}}});function $y(e){return{all:e=e||new Map,on:function(t,o){var i=e.get(t);i?i.push(o):e.set(t,[o])},off:function(t,o){var i=e.get(t);i&&(o?i.splice(i.indexOf(o)>>>0,1):e.set(t,[]))},emit:function(t,o){var i=e.get(t);i&&i.slice().map(function(r){r(o)}),(i=e.get("*"))&&i.slice().map(function(r){r(t,o)})}}}const mi=new $y,zy="cannot be found on the map.",jy=e=>{let t={lng:0,lat:0},o;return e.type==="Polygon"?e.coordinates.length&&(o=e.coordinates[0]):o=e.coordinates,o&&(e.type!=="Point"?(o.map(i=>{t.lng+=parseFloat(i[0]),t.lat+=parseFloat(i[1])}),t.lng=t.lng/o.length,t.lat=t.lat/o.length):(t.lng+=parseFloat(o[0]),t.lat+=parseFloat(o[1]))),t},ks=(e,t)=>{const o=[];let i=e.organs?e.organs:e.ftus;const r=i?i.filter((a,s)=>i.findIndex(l=>l.label===a.label)===s):void 0;return r&&r.forEach(a=>{const s={label:a.label,models:a.models,key:`${t}.${a.label}`},l=ks(a,s.key);l.length>0&&(s.children=l),o.push(s)}),o},Hy={name:"FlatmapVuer",components:{Button:ii,Col:rn,Loading:ey,Radio:rs,Icon:be,RadioGroup:as,Row:on,Select:qn,Dialog:wg,MapSvgIcon:vi.MapSvgIcon,MapSvgSpriteColor:vi.MapSvgSpriteColor,Tooltip:ut.Tooltip,TreeControls:ut.TreeControls,SelectionsGroup:gs,SvgLegends:xy,ElIconWarningFilled:W.WarningFilled,ElIconArrowDown:W.ArrowDown,ElIconArrowLeft:W.ArrowLeft,DrawToolbar:ut.DrawToolbar,FlatmapError:Yn},beforeCreate:function(){this.setStateRequired=!1},setup(e){let t=n.inject("$annotator");return t||(t=n.markRaw(new Ns.AnnotationService(`${e.flatmapAPI}annotator`)),n.provide("$annotator",t)),{annotator:t}},methods:{enableFeatureResetOnClick:function(e){this.mapImp&&this.mapImp.enableFeatureResetOnClick(e)},setVisibilityFilter:function(e){this.mapImp&&(this.mapImp.contextLost?e?this.filterToRestore=n.markRaw(JSON.parse(JSON.stringify(e))):this.filterToRestore=void 0:(e?this.mapImp.setVisibilityFilter(e):this.mapImp.clearVisibilityFilter(),this.filterToRestore=void 0))},manualAbortedOnClose:function(){this.annotationSidebar&&this.$emit("annotation-close"),this.closeTooltip(),this.annotationEventCallback({},{type:"aborted"}),this.initialiseDrawing()},initialiseDrawing:function(){this.connectionEntry={},this.activeDrawTool=void 0,this.activeDrawMode=void 0,this.drawnCreatedEvent={}},cancelDrawnFeature:function(){this.isValidDrawnCreated&&(this.annotationSidebar&&this.$emit("annotation-close"),this.closeTooltip(),this.annotationEntry=[{...this.drawnCreatedEvent.feature,resourceId:this.serverURL}],this.rollbackAnnotationEvent(),this.initialiseDrawing())},connectedFeatureTooltip:function(e){if(this.mapImp)if(e){const t=Number(e);let i={feature:t?this.mapImp.featureProperties(t):{feature:this.existDrawnFeatures.find(r=>r.id===e.trim())}};this.checkAndCreatePopups([i],!1)}else this.closeTooltip()},confirmDrawnFeature:function(){this.isValidDrawnCreated&&(this.checkAndCreatePopups([this.drawnCreatedEvent],!1),Object.keys(this.connectionEntry).length>0&&(this.annotationEntry[0].feature.connection=this.connectionEntry),this.initialiseDrawing())},toolbarEvent:function(e,t){if(!this.isValidDrawnCreated){if(this.manualAbortedOnClose(),this.doubleClickedFeature=!1,this.changeAnnotationDrawMode({mode:"simple_select"}),e==="mode")this.activeDrawMode=t;else if(e==="tool"){if(this.cancelDrawnFeature(),t){const o=t.replace(/[A-Z]/g,i=>`_${i.toLowerCase()}`);this.changeAnnotationDrawMode({mode:`draw${o}`})}this.activeDrawTool=t}}},annotationDrawModeEvent:function(e){this.activeDrawMode==="Edit"?this.doubleClickedFeature&&(e.feature.feature.geometry.type!=="Point"&&(this.changeAnnotationDrawMode({mode:"direct_select",options:{featureId:e.feature.feature.id}}),this.modifyAnnotationFeature()),this.doubleClickedFeature=!1):this.activeDrawMode==="Delete"&&(this.changeAnnotationDrawMode({mode:"simple_select",options:{featureIds:[e.feature.feature.id]}}),this.modifyAnnotationFeature())},createConnectivityBody:function(){if(Object.keys(this.connectionEntry).length>0){const e=Object.values(this.connectionEntry),t={type:"connectivity",source:e[0],target:e[e.length-1],intermediates:e.filter((o,i)=>i!==0&&i!==e.length-1)};this.annotationEntry[0].body=t}},changeAnnotationDrawMode:function(e){this.mapImp&&this.mapImp.changeAnnotationDrawMode(e)},clearAnnotationFeature:function(){this.mapImp&&this.mapImp.clearAnnotationFeature()},forceContextLoss:function(){this.mapImp&&!this.mapImp.contextLost&&!this.loading&&this.mapImp.forceContextLoss()},forceContextRestore:function(){this.mapImp&&(this.flatmapError=null,this.mapImp.forceContextRestore())},modifyAnnotationFeature:function(){this.mapImp&&this.mapImp.removeAnnotationFeature()},rollbackAnnotationEvent:function(){this.mapImp&&this.annotationEntry.length>0&&["created","updated","deleted"].includes(this.annotationEntry[0].type)&&(this.mapImp.rollbackAnnotationEvent(this.annotationEntry[0]),this.annotationEntry=[])},commitAnnotationEvent:function(e){this.mapImp&&(this.offlineAnnotationEnabled&&(this.offlineAnnotations=JSON.parse(sessionStorage.getItem("anonymous-annotation"))||[],this.offlineAnnotations.push(e),this.annotationEntry[0].type==="deleted"&&(this.offlineAnnotations=this.offlineAnnotations.filter(t=>t.resource!==this.serverURL||t.item.id!==e.item.id)),sessionStorage.setItem("anonymous-annotation",JSON.stringify(this.offlineAnnotations))),["created","updated","deleted"].includes(this.annotationEntry[0].type)&&(this.featureAnnotationSubmitted=!0,this.mapImp.commitAnnotationEvent(this.annotationEntry[0]),e.body.comment==="Position Updated"?this.annotationEntry[0].positionUpdated=!1:this.annotationEntry[0].type==="deleted"&&(this.annotationSidebar&&this.$emit("annotation-close"),this.closeTooltip(),this.annotationEntry=[]),this.addAnnotationFeature()))},fetchAnnotatedItemIds:async function(e=void 0,t=void 0){let o;return this.offlineAnnotationEnabled?(this.offlineAnnotations=JSON.parse(sessionStorage.getItem("anonymous-annotation"))||[],o=this.offlineAnnotations.filter(i=>i.resource===this.serverURL).map(i=>i.item.id)):(o=await this.annotator.annotatedItemIds(this.userToken,this.serverURL,e,t),"resource"in o&&(o=o.itemIds)),o},setFeatureAnnotated:async function(){if(this.mapImp){const e=await this.fetchAnnotatedItemIds();for(const t of e)this.mapImp.setFeatureAnnotated(t)}},fetchDrawnFeatures:async function(e,t){let o;if(this.offlineAnnotationEnabled)this.offlineAnnotations=JSON.parse(sessionStorage.getItem("anonymous-annotation"))||[],o=this.offlineAnnotations.filter(i=>i.feature&&i.resource===this.serverURL).map(i=>i.feature);else{const i=await this.fetchAnnotatedItemIds(e,t);o=await this.annotator.drawnFeatures(this.userToken,this.serverURL,i),"resource"in o&&(o=o.features)}return o},addAnnotationFeature:async function(){if(this.mapImp){this.featureAnnotationSubmitted||(this.clearAnnotationFeature(),this.loading=!0);const e=this.annotationFrom==="Anyone"?void 0:this.authorisedUser.orcid?this.authorisedUser.orcid:"0000-0000-0000-0000",t=this.annotationFrom==="Anyone"?void 0:this.annotationFrom==="Me",o=await this.fetchDrawnFeatures(e,t);if(this.existDrawnFeatures=o,this.loading=!1,!this.featureAnnotationSubmitted)for(const i of o)this.mapImp.addAnnotationFeature(i)}},showAnnotator:function(e){this.mapImp&&(this.mapImp.showAnnotator(e),this.$el.querySelector(".maplibregl-ctrl-group").style.display="none")},setAnnotationFrom:function(e){this.annotationFrom=e,this.mapImp&&(this.manualAbortedOnClose(),this.addAnnotationFeature())},emitOfflineAnnotationUpdate:function(){this.$emit("update-offline-annotation-enabled",this.offlineAnnotationEnabled)},setFlightPath3D:function(e){this.flightPath3DRadio=e,this.mapImp&&this.mapImp.enableFlightPaths(e)},viewLatestMap:function(){let e=this.biologicalSex?this.biologicalSex:void 0;this.entry==="NCBITaxon:9606"&&(e="PATO:0000384");const t={entry:this.entry,biologicalSex:e,viewport:this.mapImp.getState()};this.$emit("view-latest-map",t)},backgroundChangeCallback:function(e){this.currentBackground=e,this.mapImp&&this.mapImp.setBackgroundColour(this.currentBackground,1)},processSystems:function(e){if(this.systems.length=0,e&&e.length>0){const t={label:"All",key:"All",children:[]};e.forEach(o=>{const i={colour:o.colour,enabled:o.enabled,label:o.id,key:o.id},r=ks(o,i.key);r.length>0&&(i.children=r),t.children.push(i)}),this.systems.push(t)}},processTaxon:function(e,t){this.taxonConnectivity.length=0,pi(this.mapImp,e).then(o=>{o.length&&o.forEach(i=>{let r=!0;t&&(r=t.checkAll?!0:t.checked.includes(i.taxon)),this.taxonConnectivity.push({...i,enabled:r}),this.mapImp&&this.mapImp.enableConnectivityByTaxonIds(i.taxon,r)})})},toggleDrawer:function(){this.drawerOpen=!this.drawerOpen},setColour:function(e){this.colourRadio=e,this.mapImp&&this.mapImp.setPaint({coloured:e,outlined:this.outlinesRadio})},setOutlines:function(e){this.outlinesRadio=e,this.mapImp&&this.mapImp.setPaint({coloured:this.colourRadio,outlined:e})},setInitMapState:function(){if(this.mapImp){const e=this.mapImp.map,t=this.mapImp.options.bounds,o=[[t[0],t[1]],[t[2],t[3]]];e.setMaxBounds(null),e.setRenderWorldCopies(!1),this.initMapState=n.markRaw({initBounds:o})}},resetView:function(){if(this.mapImp){const e=this.mapImp.map,{initBounds:t}=this.initMapState;e.resetNorthPitch({animate:!1}),t&&e.fitBounds(t,{animate:!1}),this.$refs.skcanSelection&&this.$refs.skcanSelection.reset(),this.$refs.layersSelection&&this.$refs.layersSelection.reset(),this.$refs.systemsSelection&&this.$refs.pathwaysSelection.reset(),this.$refs.pathwaysSelection&&this.$refs.pathwaysSelection.reset()}},zoomIn:function(){this.mapImp&&this.mapImp.zoomIn()},zoomOut:function(){this.mapImp&&this.mapImp.zoomOut()},onSelectionsDataChanged:function(e){this.$emit("pathway-selection-changed",e)},sckanSelected:function(e){this.mapImp&&this.mapImp.enableSckanPath(e.key,e.value)},checkAllSCKAN:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enableSckanPath(t,e.value))},zoomToFeatures:function(e){this.mapImp&&this.mapImp.zoomToFeatures(e)},retrieveConnectedPaths:async function(e,t={}){var o,i,r,a,s;if(this.mapImp){let l=[],c=(o=t.target)!=null&&o.length?t.target:[];const d=[...this.mapImp.pathModelNodes(e)],f=await this.mapImp.queryPathsForFeatures(e);if(d.length){if(!c.length){const u=(i=t.type)!=null&&i.length?t.type:["all"],p=await this.flatmapQueries.queryForConnectivityNew(this.mapImp,e[0]),g=(r=p==null?void 0:p.ids)==null?void 0:r.dendrites.flat(1/0),h=(a=p==null?void 0:p.ids)==null?void 0:a.components.flat(1/0),m=(s=p==null?void 0:p.ids)==null?void 0:s.axons.flat(1/0);let y=[];u.includes("origins")&&y.push(...g),u.includes("components")&&y.push(...h),u.includes("destinations")&&y.push(...m),u.includes("all")&&y.push(...g,...h,...m),c=[...new Set(y)]}d.forEach(u=>{this.mapImp.nodePathModels(u).forEach(g=>{const m=this.mapImp.pathModelNodes(g).map(b=>this.mapImp.featureProperties(b).models);c.filter(b=>m.includes(b)).length&&!l.includes(g)&&l.push(g)})})}else f.length&&(c.length?f.forEach(u=>{const g=this.mapImp.pathModelNodes(u).map(m=>this.mapImp.featureProperties(m).models);c.filter(m=>g.includes(m)).length&&!l.includes(u)&&l.push(u)}):l=f);return l=[...new Set([...l,...e])],l}},resetMapFilter:function(){const e=this.mapFilters.alert;let t;const o={"tile-layer":"pathways"},i={NOT:o};e.with&&!e.without?t={OR:[i,{AND:[o,{HAS:"alert"}]}]}:!e.with&&e.without?t={OR:[i,{AND:[o,{NOT:{HAS:"alert"}}]}]}:!e.with&&!e.without&&(t=i),this.setVisibilityFilter(t)},alertMouseEnterEmitted:function(e){if(this.mapImp)if(e.value){let t;const o={"tile-layer":"pathways"},i={NOT:o};if(e.key==="alert"||e.key==="withoutAlert"){const r=e.key==="alert"?{HAS:"alert"}:{NOT:{HAS:"alert"}};t={OR:[i,{AND:[o,r]}]}}this.setVisibilityFilter(t)}else this.resetMapFilter()},alertSelected:function(e){this.mapImp&&(e.key==="alert"?e.value?this.mapFilters.alert.with=!0:this.mapFilters.alert.with=!1:e.key==="withoutAlert"&&(e.value?this.mapFilters.alert.without=!0:this.mapFilters.alert.without=!1),this.resetMapFilter())},checkAllAlerts:function(e){this.mapImp&&(e.value?(this.mapFilters.alert.without=!0,this.mapFilters.alert.with=!0):(this.mapFilters.alert.without=!1,this.mapFilters.alert.with=!1),this.resetMapFilter())},systemSelected:function(e){this.mapImp&&this.mapImp.enableSystem(e.key,e.value)},checkAllSystems:function(e){this.mapImp&&this.systems[0].children.forEach(t=>this.mapImp.enableSystem(t.label,e))},ftuSelected:function(e){this.searchAndShowResult(e,!0,!0)},layersSelected:function(e){this.mapImp&&this.mapImp.enableLayer(e.key,e.value)},checkAllLayers:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enableLayer(t,e.value))},taxonsSelected:function(e){this.mapImp&&this.mapImp.enableConnectivityByTaxonIds(e.key,e.value)},taxonMouseEnterEmitted:function(e){if(this.mapImp)if(e.value){clearTimeout(this.taxonLeaveDelay);let t=this.mapImp.taxonFeatureIds(e.key);this.mapImp.enableConnectivityByTaxonIds(e.key,e.value),this.mapImp.zoomToGeoJSONFeatures(t,{noZoomIn:!0})}else this.taxonLeaveDelay=setTimeout(()=>{this.mapImp.unselectGeoJSONFeatures(),e.selections.forEach(t=>{let o=e.checked.includes(t.taxon);this.mapImp.enableConnectivityByTaxonIds(t.taxon,o)})},1e3)},checkAllTaxons:function(e){this.mapImp&&this.mapImp.enableConnectivityByTaxonIds(e.keys,e.value)},pathwaysSelected:function(e){this.mapImp&&this.mapImp.enablePath(e.key,e.value)},checkAllPathways:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enablePath(t,e.value))},enablePanZoomEvents:function(e){this.mapImp.enablePanZoomEvents(e)},annotationEventCallback:function(e,t){if(t.type==="aborted")this.featureAnnotationSubmitted?this.featureAnnotationSubmitted=!1:this.rollbackAnnotationEvent(),this.annotationEntry=[];else if(t.type==="modeChanged")t.feature.mode==="direct_select"&&(this.doubleClickedFeature=!0),this.annotationSidebar&&t.feature.mode==="simple_select"&&this.activeDrawMode==="Deleted"&&this.annotationEventCallback({},{type:"aborted"});else if(t.type==="selectionChanged"){if(this.selectedDrawnFeature=t.feature.features.length===0?void 0:t.feature.features[0],e.feature.feature=this.selectedDrawnFeature,!this.activeDrawTool)if(this.connectionEntry={},this.selectedDrawnFeature){const o=this.existDrawnFeatures.find(i=>i.id===this.selectedDrawnFeature.id);o&&o.connection&&(this.connectionEntry=o.connection),this.annotationDrawModeEvent(e)}else this.annotationSidebar&&this.previousEditEvent.type==="updated"&&(this.annotationEntry=[{...this.previousEditEvent,resourceId:this.serverURL}],this.annotationEventCallback({},{type:"aborted"})),this.previousEditEvent={}}else{if(t.type==="created"||t.type==="updated"){t.type==="updated"&&t.feature.action&&(t.positionUpdated=t.feature.action==="move");const o=this.mapImp.refreshAnnotationFeatureGeometry(t.feature);e.feature.feature=o}t.type==="created"?this.drawnCreatedEvent=e:this.checkAndCreatePopups([e])}t.type==="updated"&&(this.previousEditEvent=t),t.type==="deleted"?this.previousDeletedEvent=t:this.previousDeletedEvent={}},getTaxons:function(e){let t;return e.taxons&&(typeof e.taxons!="object"?t=JSON.parse(e.taxons):t=e.taxons),t},eventCallback:function(){return(e,t,...o)=>{if(e==="annotation"){const i={feature:t,userData:o,eventType:e};this.annotationEventCallback(i,t)}else if(e==="context-lost")this.onContextLost();else if(e==="context-restored")this.onContextRestored();else if(e==="pan-zoom")this.$emit("pan-zoom-callback",t);else{const i=t.label,r=[t.models],a=this.entry,s=this.biologicalSex,l=Nt(t.alert),c=this.getTaxons(t);let d=[{dataset:t.dataset,biologicalSex:s,taxonomy:a,resource:r,label:i,feature:t,userData:o,eventType:e,provenanceTaxonomy:c,alert:l}];if(e==="click"){const f=!t[0];if(!f){d=[];const p=t.mapUUID,g=new Set;for(let[h,m]of Object.entries(t))if(h!=="mapUUID"){const y=m.featureId,b=m.label,C=[m.models],I=this.getTaxons(m);if(g.has(y))continue;g.add(y),d.push({dataset:m.dataset,biologicalSex:s,taxonomy:a,resource:C,label:b,feature:m,userData:o,eventType:e,provenanceTaxonomy:I,alert:Nt(m.alert),mapUUID:p})}}const u=f?t:t[0];if(this.setConnectivityDataSource(this.viewingMode,u),this.viewingMode!=="Neuron Connection"){if(this.currentActive=u.models?u.models:"",this.activeDrawTool&&!this.isValidDrawnCreated){const p=u.featureId||this.existDrawnFeatures.find(g=>g.id===u.id);if(this.activeDrawTool==="LineString"&&p){const g=u.featureId?u.featureId:u.id,h=u.label?u.label:`Feature ${u.id}`;this.connectionEntry[` ${g}`]=Object.assign({label:h},Object.fromEntries(Object.entries(u).filter(([m])=>["featureId","models"].includes(m)).map(([m,y])=>[m==="featureId"?"id":m,y])))}}}t&&t.type!=="marker"&&!this.activeDrawTool&&this.checkAndCreatePopups(d)}else e==="mouseenter"&&this.viewingMode!=="Neuron Connection"&&(this.currentHover=t.models?t.models:"");this.$emit("resource-selected",d)}}},setConnectivityDataSource:function(e,t){var o;e==="Exploration"?this.connectivityDataSource=(o=t.models)!=null&&o.startsWith("ilxtr:")?t.models:"":this.connectivityDataSource=t.featureId||t.id},changeViewingMode:function(e){e&&(this.viewingMode=e),this.manualAbortedOnClose()},removeActiveTooltips:function(){this.mapImp&&this.mapImp.removePopup(),this.$el.querySelectorAll(".flatmap-tooltip-popup").forEach(t=>t.remove())},createTooltipForConnectivity:function(e,t){const o=document.createElement("div");o.classList.add("flatmap-feature-label"),e.forEach((i,r)=>{const{label:a}=i;if(o.append(Qn(a)),r+1<e.length){const s=document.createElement("hr");o.appendChild(s)}}),this.mapImp.showPopup(t,o,{className:"custom-popup flatmap-tooltip-popup",positionAtLastClick:!1,preserveSelection:!0})},showConnectivityTooltips:function(e){const{connectivityInfo:t,data:o}=e,i=[],r=[],a=[],s=[];if(t&&t.featureId&&i.push(...t.featureId),this.mapImp){if(o.forEach(p=>{const g=this.mapImp.search(p.id);if(g!=null&&g.results.length){const h=g==null?void 0:g.results[0].featureId;a.push({featureId:h,...p})}else s.push(p)}),a.length){let p=a[0].featureId;this.mapImp.annotations.forEach(g=>{const h=g["anatomical-nodes"];if(h){const m=h.join("");a.every(b=>m.indexOf(b.id)!==-1)&&(p=g.featureId,r.push(p))}}),this.createTooltipForConnectivity(a,p)}else this.removeActiveTooltips();s.length&&this.emitConnectivityError(s);const l=i.reduce((p,g)=>{const h=this.mapImp.pathways.paths[g],m=h?h.connectivity:null;if(m){const y=m.flat(1/0);p.push(...y)}return p},[]),c=[...new Set(l)],d=[...i,...c],u=[...this.mapImp.modelFeatureIdList(d),...r];this.mapImp.selectGeoJSONFeatures(u)}},showConnectivitiesByReference:function(e){this.searchConnectivitiesByReference(e).then(t=>{this.mapImp.selectFeatures(t)})},searchConnectivitiesByReference:async function(e){const t=sessionStorage.getItem("flatmap-knowledge");let o=[];return t?o=await Ny(e):o=await _y(this.mapImp,e,this.flatmapQueries),o},getFlatmapKnowledge:function(){let e=[];const t=sessionStorage.getItem("flatmap-knowledge");return t&&(e=JSON.parse(t)),e},emitConnectivityError:function(e){this.$emit("connectivity-error",{data:{errorData:e,errorMessage:zy}})},checkConnectivityTooltipEntry:function(e){return e!=null&&e.length?e.find(t=>{var o,i;return((o=t==null?void 0:t.destinations)==null?void 0:o.length)||((i=t==null?void 0:t.components)==null?void 0:i.length)})!==void 0:!1},changeConnectivitySource:async function(e){const{entry:t,connectivitySource:o}=e;t.mapId===this.mapImp.id&&(await this.flatmapQueries.queryForConnectivityNew(this.mapImp,t.featureId[0],o),this.tooltipEntry=this.tooltipEntry.map(i=>i.featureId[0]===t.featureId[0]?this.flatmapQueries.updateTooltipData(i):i),this.checkConnectivityTooltipEntry(this.tooltipEntry)&&this.$emit("connectivity-info-open",this.tooltipEntry))},checkAndCreatePopups:async function(e,t=!0){var o;if(this.viewingMode==="Annotation"){const i=e.filter(r=>r.feature).map(r=>r.feature);if(i.length>0)if(this.annotationSidebar&&this.previousDeletedEvent.type==="deleted"&&(this.annotationEntry=[{...this.previousDeletedEvent,resourceId:this.serverURL}],this.annotationEventCallback({},{type:"aborted"})),this.annotationEntry=[],i.forEach(r=>{var a;this.annotationEntry.push({...r,resourceId:this.serverURL,featureId:r.featureId?r.featureId:(a=r.feature)==null?void 0:a.id,offline:this.offlineAnnotationEnabled})}),i[0].feature)this.activeDrawTool||this.activeDrawMode||this.isValidDrawnCreated?(this.featureAnnotationSubmitted=!1,this.activeDrawTool&&this.createConnectivityBody(),this.displayTooltip(i[0].feature.id,jy(i[0].feature.geometry))):this.rollbackAnnotationEvent();else{const r=this.annotationEntry.filter(a=>a.featureId&&a.models).map(a=>a.models);r.length>0&&this.displayTooltip(r)}else this.annotation={}}else if(this.viewingMode==="Neuron Connection"&&t){const i=e.map(a=>a.resource[0]);if(i.find(a=>!a.startsWith("ilxtr:"))){const a=Array.isArray(i)?[...i]:[i];a.length===1&&a.push([]);const s=(o=e[0].feature)==null?void 0:o.featureId,l=this.mapImp.annotations.get(s),c=l==null?void 0:l["anatomical-nodes"],d=l==null?void 0:l.models;let f,u=a;const p=l==null?void 0:l.models;c!=null&&c.length&&(f=c.find(S=>JSON.parse(S)[0]===d)),f?u=JSON.parse(f):p&&(u=[p,[]]);const g=this.mapImp.knowledgeSource,h=u.flat(1/0),m=[...new Set(h)],b=(await ut.fetchLabels(this.flatmapAPI,m)).reduce((S,E)=>{const O=E[0],x=JSON.parse(E[1]);return S.push({id:O,label:x.label,source:x.source}),S},[]);b.sort((S,E)=>S.id===E.id?S.source===g&&E.source!==g?-1:S.source!==g&&E.source===g?1:0:S.id.localeCompare(E.id));const C=[];for(let S=0;S<m.length;S++){const E=b.find(O=>O.id===m[S]);E&&C.push(E.label)}const I=Qn(C.join(", ")),k={facet:JSON.stringify(u),facetPropPath:`flatmap.connectivity.source.${this.connectionType.toLowerCase()}`,tagLabel:I,term:this.connectionType};this.connectivityFilters.some(S=>S.facet===k.facet&&S.facetPropPath===k.facetPropPath)||this.connectivityFilters.push(k),this.$emit("neuron-connection-feature-click",{filters:this.connectivityFilters,search:""})}else await this.openConnectivityInfo(e)}else await this.openConnectivityInfo(e)},openConnectivityInfo:async function(e){Cs(this.mapImp,this.flatmapQueries);let t=[];if(this.tooltipEntry=e.filter(o=>o.resource[0]in this.mapImp.pathways.paths).map(o=>({title:o.label,featureId:o.resource,ready:!1})),this.tooltipEntry.length){this.$emit("connectivity-info-open",this.tooltipEntry);for(let i=0;i<e.length;i++)t.push(await this.getKnowledgeTooltip(e[i]));this.tooltipEntry=await Promise.all(t);const o=this.tooltipEntry.map(i=>i.featureId[0]);o.length>0&&this.displayTooltip(o)}},updateConnectivityFilters:function(e){e.length&&(this.connectivityFilters=e.filter(t=>t.facet.toLowerCase()!=="show all"))},resetConnectivityfilters:function(e){e.length?this.connectivityFilters=this.connectivityFilters.filter(t=>e.some(o=>o.facetPropPath===t.facetPropPath&&o.facet!==t.facet)):this.connectivityFilters=[]},getKnowledgeTooltip:async function(e){const t=await this.flatmapQueries.retrieveFlatmapKnowledgeForEvent(this.mapImp,e);let o=await this.flatmapQueries.createTooltipData(this.mapImp,e);return(t&&t[0]||e.feature.hyperlinks&&e.feature.hyperlinks.length>0)&&(o.featuresAlert=Nt(e.alert),o.knowledgeSource=Zn(this.mapImp),o.mapId=this.mapImp.mapMetadata.id,o.mapuuid=this.mapImp.mapMetadata.uuid),o.ready=!0,o},popUpCssHacks:function(){const e=document.querySelector(".flatmap-tooltip-popup"),t=document.querySelector(".maplibregl-popup-close-button");e&&(e.style.display="none"),t.style.display="block",this.$refs.tooltip.$el.style.display="flex",t.onclick=()=>{this.$emit("connectivity-info-close"),e&&(e.style.display="block")}},closeTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.$el.style.display="none"),document.querySelectorAll(".maplibregl-popup").forEach(e=>{e.style.display="none"})},showPopup:function(e,t,o){let i=o;this.mapImp&&(i?i.className||(i.className="custom-popup"):i={className:"custom-popup",positionAtLastClick:!0},this.mapImp.showPopup(e,t,i))},showMarkerPopup:function(e,t,o){this.mapImp&&this.mapImp.showMarkerPopup(e,t,o)},closeMinimap:function(){let e=this.$refs.flatmapContainer.querySelector(".maplibregl-ctrl-minimap");this.minimapSmall?(e.classList.add("enlarge"),e.classList.remove("shrink")):(e.classList.add("shrink"),e.classList.remove("enlarge")),this.minimapSmall=!this.minimapSmall},addResizeButtonToMinimap:function(){let e=this.$refs.flatmapContainer.querySelector(".maplibregl-ctrl-minimap");e&&(this.$refs.minimapResize&&this.$refs.minimapResize.$el.parentNode&&this.$refs.minimapResize.$el.parentNode.removeChild(this.$refs.minimapResize.$el),e.appendChild(this.$refs.minimapResize.$el),this.minimapResizeShow=!0)},setHelpMode:function(e){const t=this.hoverVisibilities.length,o=t-1,i=this.hoverVisibilities[this.helpModeActiveIndex];if(i){const a=i==null?void 0:i.refs,s=i==null?void 0:i.ref,l=this.$refs[a||s];if(l){const{parentElement:c,nextElementSibling:d}=l.$el,f=u=>u&&(u.classList.contains("pathway-container")||u.classList.contains("pathway-location"));(f(c)||f(d))&&(this.requiresDrawer?this.drawerOpen=!0:this.helpModeActiveIndex+=1)}else this.helpModeActiveIndex+=1,this.setHelpMode(e)}const r=this.hoverVisibilities[this.helpModeActiveIndex];(r==null?void 0:r.ref)==="checkBoxPopover"&&!this.showPathwayFilter&&(this.helpModeActiveIndex+=1,this.setHelpMode(e)),e||(this.helpModeActiveIndex=this.helpModeInitialIndex),this.viewingMode!=="Annotation"&&this.helpModeActiveIndex>9&&(this.helpModeActiveIndex=o),e&&this.helpModeActiveIndex>=o&&this.$emit("help-mode-last-item",!0),e&&!this.helpModeDialog?(this.inHelp=!0,this.hoverVisibilities.forEach(a=>{a.value=!0})):e&&this.helpModeDialog&&t>this.helpModeActiveIndex?this.helpModeActiveIndex>-1?(this.closeFlatmapHelpPopup(),setTimeout(()=>{this.inHelp=!1,this.hoverVisibilities.forEach(a=>{a.value=!1}),this.showTooltip(this.helpModeActiveIndex,200)},300)):this.helpModeActiveIndex===-1&&this.openFlatmapHelpPopup():(this.inHelp=!1,this.hoverVisibilities.forEach(a=>{a.value=!1}),this.closeFlatmapHelpPopup())},showTooltip:function(e,t=500){this.inHelp||(clearTimeout(this.tooltipWait[e]),this.tooltipWait[e]=setTimeout(()=>{this.hoverVisibilities[e].value=!0,this.$emit("shown-tooltip")},t))},hideTooltip:function(e,t=500){this.inHelp||(clearTimeout(this.tooltipWait[e]),this.tooltipWait[e]=setTimeout(()=>{this.hoverVisibilities[e].value=!1},t))},displayTooltip:function(e,t=void 0){let o,i={className:"flatmapvuer-popover"};if(t)o=e,i.annotationFeatureGeometry=t,this.annotationEntry.length&&(i.annotationEvent={type:this.annotationEntry[0].type,feature:this.annotationEntry[0].feature});else{const r=Array.isArray(e)?e[0]:e;r&&(o=this.mapImp.modelFeatureIds(r)[0]),this.activeDrawTool||(i.positionAtLastClick=!0)}this.connectivityInfoSidebar&&this.tooltipEntry.length&&this.viewingMode!=="Annotation"&&this.checkConnectivityTooltipEntry(this.tooltipEntry)&&this.$emit("connectivity-info-open",this.tooltipEntry),this.annotationSidebar&&this.viewingMode==="Annotation"&&this.$emit("annotation-open",{annotationEntry:this.annotationEntry,commitCallback:this.commitAnnotationEvent}),o&&!this.disableUI&&(this.viewingMode==="Annotation"&&!this.annotationSidebar||this.viewingMode==="Exploration"&&!this.connectivityInfoSidebar)&&(this.tooltipDisplay=!0,this.$nextTick(()=>{this.mapImp.showPopup(o,this.$refs.tooltip.$el,i),this.popUpCssHacks()}))},moveMap:function(e,t={}){if(this.mapImp){const{offsetX:o=0,offsetY:i=0,zoom:r=4}=t,a=this.mapImp.map,s=this.mapImp.bounds.toArray();this.mapImp.zoomToFeatures(e,{noZoomIn:!0}),this.showPathwaysDrawer(!1),s!=null&&s.length&&setTimeout(()=>{a.fitBounds(s,{offset:[o,i],zoom:r,animate:!0})})}},openFlatmapHelpPopup:function(){if(this.mapImp){let e=this.mapImp.modelFeatureIds("UBERON:0000948");e&&e.length>0&&(this.mapImp.showPopup(e[0],"Click for more information",{anchor:"top",className:"flatmap-popup-popper"}),this.$emit("shown-map-tooltip"))}},closeFlatmapHelpPopup:function(){this.$el.querySelectorAll(".maplibregl-popup-close-button").forEach(e=>{e.click()})},getLabels:function(){let e=[];if(this.mapImp){let t=this.mapImp.annotations;for(let o of t.values())o.label&&e.push(o.label);return Array.from(new Set(e))}},getVisibilityState:function(e){if(["alertSelection","pathwaysSelection","taxonSelection"].forEach(o=>{let i=this.$refs[o];i&&(e[o]=i.getState())}),this.$refs.treeControls){const o=this.$refs.treeControls.$refs.regionTree.getCheckedKeys();e.systemsSelection=o.filter(i=>!i.includes("."))}},setVisibilityState:function(e){["alertSelection","pathwaysSelection","taxonSelection"].forEach(o=>{const i=e[o];if(i){const r=this.$refs[o];r&&r.setState(i)}}),"systemsSelection"in e&&this.$refs.treeControls&&(this.$refs.treeControls.$refs.regionTree.setCheckedKeys(e.systemsSelection),this.systems[0].children.forEach(o=>{this.mapImp.enableSystem(o.key,e.systemsSelection.includes(o.key))}))},getState:function(){if(this.mapImp){let e={entry:this.entry,viewport:this.mapImp.getState()};const t=this.mapImp.getIdentifier();return this.biologicalSex?e.biologicalSex=this.biologicalSex:t&&t.biologicalSex&&(e.biologicalSex=t.biologicalSex),t&&t.uuid&&(e.uuid=t.uuid),e.viewingMode=this.viewingMode,e.searchTerm=this.searchTerm,e.flightPath3D=this.flightPath3DRadio,e.colour=this.colourRadio,e.outlines=this.outlinesRadio,e.background=this.currentBackground,this.offlineAnnotationEnabled&&(e.offlineAnnotations=sessionStorage.getItem("anonymous-annotation")),this.getVisibilityState(e),e}},setState:function(e){e&&(this.mapImp&&e.entry&&this.entry==e.entry&&(!e.biologicalSex||e.biologicalSex===this.biologicalSex)?this.restoreMapState(e):this.createFlatmap(e),this.setStateRequired=!1)},restoreMapState:function(e){if(e){if(e.viewport&&this.mapImp.setState(e.viewport),e.offlineAnnotations&&sessionStorage.setItem("anonymous-annotation",e.offlineAnnotations),e.viewingMode&&this.changeViewingMode(e.viewingMode),"flightPath3D"in e&&this.setFlightPath3D(e.flightPath3D),"colour"in e&&this.setColour(e.colour),"outlines"in e&&this.setOutlines(e.outlines),e.background&&this.backgroundChangeCallback(e.background),e.searchTerm){const t=e.searchTerm;this.searchAndShowResult(t,!0,!0)}this.setVisibilityState(e)}},setFlightPathInfo:function(e){(e===1.6||e>1.6)&&(this.displayFlightPathOption=!0,this.setFlightPath3D(!1))},createFlatmap:function(e){if(!this.mapImp&&!this.loading){this.loading=!0,this.flatmapError=null;let t={taxon:this.entry};this.uuid&&(t.uuid=this.uuid),e?(e.uuid?t={uuid:e.uuid}:e.entry&&(t.taxon=e.entry),e.biologicalSex?t.biologicalSex=e.biologicalSex:t.taxon==="NCBITaxon:9606"&&(t.biologicalSex="PATO:0000384")):this.biologicalSex&&(t.biologicalSex=this.biologicalSex),this.mapManagerRef.loadMap(t,this.eventCallback(),{minZoom:this.minZoom,tooltips:this.tooltips,minimap:!1,container:this.$refs.display,tooltipDelay:15}).then(i=>{this.mapImp=i,this.serverURL=this.mapImp.makeServerUrl("").slice(0,-1);let r=this.mapImp.details.version;this.setFlightPathInfo(r);const a=this._stateToBeSet?this._stateToBeSet:e;this.onFlatmapReady(a),this.$nextTick(()=>this.restoreMapState(a))}).catch(i=>{var r,a;if(console.error("Flatmap loading error:",i),this.flatmapError={},i.message&&i.message.indexOf("Unknown map")!==-1?(this.flatmapError.title="Unknown Map!",this.flatmapError.messages=Object.keys(t).map(s=>`${s==="uuid"?"UUID":Qn(s)}: ${t[s]}`)):(this.flatmapError.title="Error Loading Map!",this.flatmapError.messages=[i.message?i.message:i.toString(),"Please try again later or contact support if the problem persists."]),(a=(r=this.$parent)==null?void 0:r.$refs)!=null&&a.multiContainer){const s=this.$parent;this.flatmapError.button={text:"Load Default Map",callback:()=>{const l=s.initial;s.setSpecies(l,void 0,3)}}}this.loading=!1})}else e&&(this._stateToBeSet={...e},this.mapImp&&!this.loading&&this.restoreMapState(this._stateToBeSet))},computePathControlsMaximumHeight(){const e=this.$refs.display;if(e){const t=getComputedStyle(e),o=parseInt(t.paddingTop)+parseInt(t.paddingBottom),i=e.clientHeight-o;this.pathwaysMaxHeight=i-170}},mapResize:function(){try{this.computePathControlsMaximumHeight(),this.mapImp&&this.mapImp.resize()}catch{console.error("Map resize error")}},getFilterSources:function(){const e=["kind","taxons"];let t=new Set,o=new Set,i=new Map;for(const a of this.mapImp.annotations.values())if(a.source){"alert"in a?t.add(a.source):o.add(a.source);for(const[s,l]of Object.entries(a))if(e.includes(s)){i.has(s)||i.set(s,new Map);const c=i.get(s),d=f=>{const u=f;c.has(u)||c.set(u,new Set),c.get(u).add(`${a.source}`)};Array.isArray(l)?l.forEach(d):d(l)}}let r={alert:{with:[...t],without:[...o]}};for(const[a,s]of i.entries()){r[a]={};for(const[l,c]of s.entries())r[a][l]=[...c.values()]}return r},getFilterOptions:async function(e,t){const o=t||this.getFlatmapKnowledge(),i=this.pathways;return await ut.getFlatmapFilterOptions(this.flatmapAPI,e,o,i)},onFlatmapReady:function(e){var t;if(this.sensor=n.markRaw(new Fy(this.$refs.display,this.mapResize)),((t=this.mapImp.options)==null?void 0:t.style)==="functional"&&(this.isFC=!0),this.mapImp.setBackgroundOpacity(1),this.backgroundChangeCallback(this.currentBackground),this.pathways=this.mapImp.pathTypes(),this.pathways=this.pathways.filter(o=>o.enabled&&o.type!=="other"),this.processSystems(this.mapImp.getSystems()),this.processTaxon(this.mapImp.taxonIdentifiers,e?e.taxonSelection:void 0),this.containsAlert="alert"in this.mapImp.featureFilterRanges(),this.flatmapLegends=this.mapImp.flatmapLegend,this.loading=!1,this.computePathControlsMaximumHeight(),this.mapResize(),this.handleMapClick(),this.setInitMapState(),this.displayMinimap){const o={position:"top-right"};this.mapImp.createMinimap(o),this.addResizeButtonToMinimap()}this.$emit("ready",this)},handleMapClick:function(){const e=this.mapImp.map;e&&e.on("click",t=>{this.connectivityDataSource||this.$emit("connectivity-info-close"),this.connectivityDataSource=""})},onContextLost:function(){this.lastViewport=n.markRaw(this.mapImp.getState()),this.flatmapError={},this.flatmapError.title="GL context lost!",this.flatmapError.messages=[`A display issue has occurred due
24
+ order by source desc`;Ss();const a=sessionStorage.getItem("flatmap-knowledge"),r=sessionStorage.getItem("flatmap-knowledge-source");if(!a||r!==o){const l=(await t.queryKnowledge(i)).map(c=>JSON.parse(c));return sessionStorage.setItem("flatmap-knowledge",JSON.stringify(l)),sessionStorage.setItem("flatmap-knowledge-source",o),Ly(),l}return JSON.parse(a)}function Ly(){const o=new Date().getTime()+864e5;sessionStorage.setItem("flatmap-knowledge-expiry",o)}function Py(){["flatmap-knowledge","flatmap-knowledge-expiry","flatmap-knowledge-source"].forEach(t=>{sessionStorage.removeItem(t)})}function Ss(){const e=sessionStorage.getItem("flatmap-knowledge-expiry");new Date().getTime()>e&&Py()}const Vy=(e,t)=>new URL(e,t).href,Ry=async(e,t)=>{var o;if(e){const a=await(await fetch(e)).json(),r=[];for(const s of a){let l=!1;if(s.flatmaps)for(const c of s.flatmaps)((o=c.associated_flatmap)==null?void 0:o.identifier)===t&&(l=!0);l&&"simulation"in s&&(s.simulation.forEach(c=>{var d;(d=c.resource)!=null&&d.url&&(c.resource.url=Vy(c.resource.url,e)),c.datasetId=s.datasetId}),r.push(...s.simulation))}if(r.length)return{testData:!0,simulation:r}}},Qn=e=>e&&e.charAt(0).toUpperCase()+e.slice(1),Nt=e=>{if(e==null)return[];if(Array.isArray(e))return e.flatMap(t=>Nt(t));if(typeof e=="string"){const t=e.trim();if(!t)return[];try{const o=JSON.parse(t);if(o!==e)return Nt(o)}catch{}return[t]}return typeof e=="number"||typeof e=="boolean"?[String(e)]:[]},Dy='<svg width="195px" height="24px" viewBox="0 0 200 24" fill="yellow"><path d="M22.0748 3.25583C22.4141 2.42845 23.5859 2.42845 23.9252 3.25583L25.6493 7.45955C25.793 7.80979 26.1221 8.04889 26.4995 8.07727L31.0303 8.41798C31.922 8.48504 32.2841 9.59942 31.6021 10.1778L28.1369 13.1166C27.8482 13.3614 27.7225 13.7483 27.8122 14.1161L28.8882 18.5304C29.1 19.3992 28.152 20.0879 27.3912 19.618L23.5255 17.2305C23.2034 17.0316 22.7966 17.0316 22.4745 17.2305L18.60881 19.618C17.84796 20.0879 16.9 19.3992 17.1118 18.5304L18.18785 14.1161C18.2775 13.7483 18.1518 13.3614 17.86309 13.1166L14.3979 10.1778C13.71588 9.59942 14.07796 8.48504 14.96971 8.41798L19.50046 8.07727C19.87794 8.04889 20.20704 7.80979 20.35068 7.45955L22.0748 3.25583Z" stroke="#000000" stroke-width="2"/><text x="47" y="52%" style="white-space: pre" dominant-baseline="middle" text-anchor="start" font-family="Asap, sans-serif" font-size="12" fill="#333333">Featured dataset marker</text></svg>';var ks={exports:{}};(function(e,t){(function(o,i){e.exports=i()})(typeof window<"u"?window:wm,function(){if(typeof window>"u")return null;var o=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")(),i=o.requestAnimationFrame||o.mozRequestAnimationFrame||o.webkitRequestAnimationFrame||function(f){return o.setTimeout(f,20)},a=o.cancelAnimationFrame||o.mozCancelAnimationFrame||o.webkitCancelAnimationFrame||function(f){o.clearTimeout(f)};function r(f,u){var p=Object.prototype.toString.call(f),g=p==="[object Array]"||p==="[object NodeList]"||p==="[object HTMLCollection]"||p==="[object Object]"||typeof jQuery<"u"&&f instanceof jQuery||typeof Elements<"u"&&f instanceof Elements,h=0,m=f.length;if(g)for(;h<m;h++)u(f[h]);else u(f)}function s(f){if(!f.getBoundingClientRect)return{width:f.offsetWidth,height:f.offsetHeight};var u=f.getBoundingClientRect();return{width:Math.round(u.width),height:Math.round(u.height)}}function l(f,u){Object.keys(u).forEach(function(p){f.style[p]=u[p]})}var c=function(f,u){var p=0;function g(){var m=[];this.add=function(v){m.push(v)};var b,y;this.call=function(v){for(b=0,y=m.length;b<y;b++)m[b].call(this,v)},this.remove=function(v){var T=[];for(b=0,y=m.length;b<y;b++)m[b]!==v&&T.push(m[b]);m=T},this.length=function(){return m.length}}function h(m,b){if(m){if(m.resizedAttached){m.resizedAttached.add(b);return}m.resizedAttached=new g,m.resizedAttached.add(b),m.resizeSensor=document.createElement("div"),m.resizeSensor.dir="ltr",m.resizeSensor.className="resize-sensor";var y={pointerEvents:"none",position:"absolute",left:"0px",top:"0px",right:"0px",bottom:"0px",overflow:"hidden",zIndex:"-1",visibility:"hidden",maxWidth:"100%"},v={position:"absolute",left:"0px",top:"0px",transition:"0s"};l(m.resizeSensor,y);var T=document.createElement("div");T.className="resize-sensor-expand",l(T,y);var S=document.createElement("div");l(S,v),T.appendChild(S);var w=document.createElement("div");w.className="resize-sensor-shrink",l(w,y);var k=document.createElement("div");l(k,v),l(k,{width:"200%",height:"200%"}),w.appendChild(k),m.resizeSensor.appendChild(T),m.resizeSensor.appendChild(w),m.appendChild(m.resizeSensor);var E=window.getComputedStyle(m),O=E?E.getPropertyValue("position"):null;O!=="absolute"&&O!=="relative"&&O!=="fixed"&&O!=="sticky"&&(m.style.position="relative");var B=!1,N=0,x=s(m),I=0,L=0,q=!0;p=0;var V=function(){var Z=m.offsetWidth,ce=m.offsetHeight;S.style.width=Z+10+"px",S.style.height=ce+10+"px",T.scrollLeft=Z+10,T.scrollTop=ce+10,w.scrollLeft=Z+10,w.scrollTop=ce+10},M=function(){if(q){var Z=m.offsetWidth===0&&m.offsetHeight===0;if(Z){p||(p=i(function(){p=0,M()}));return}else q=!1}V()};m.resizeSensor.resetSensor=M;var $=function(){N=0,B&&(I=x.width,L=x.height,m.resizedAttached&&m.resizedAttached.call(x))},pe=function(){x=s(m),B=x.width!==I||x.height!==L,B&&!N&&(N=i($)),M()},Y=function(Z,ce,Ee){Z.attachEvent?Z.attachEvent("on"+ce,Ee):Z.addEventListener(ce,Ee)};Y(T,"scroll",pe),Y(w,"scroll",pe),p=i(function(){p=0,M()})}}r(f,function(m){h(m,u)}),this.detach=function(m){p||(a(p),p=0),c.detach(f,m)},this.reset=function(){f.resizeSensor.resetSensor()}};if(c.reset=function(f){r(f,function(u){u.resizeSensor.resetSensor()})},c.detach=function(f,u){r(f,function(p){p&&(p.resizedAttached&&typeof u=="function"&&(p.resizedAttached.remove(u),p.resizedAttached.length())||p.resizeSensor&&(p.contains(p.resizeSensor)&&p.removeChild(p.resizeSensor),delete p.resizeSensor,delete p.resizedAttached))})},typeof MutationObserver<"u"){var d=new MutationObserver(function(f){for(var u in f)if(f.hasOwnProperty(u))for(var p=f[u].addedNodes,g=0;g<p.length;g++)p[g].resizeSensor&&c.reset(p[g])});document.addEventListener("DOMContentLoaded",function(f){d.observe(document.body,{childList:!0,subtree:!0})})}return c})})(ks);var Fy=ks.exports;const $y=Cm(Fy),zy=Si.defineStore("main",{state:()=>({userProfile:{token:""}}),getters:{userToken(e){return e.userProfile.token}},actions:{setUserToken(e){this.userProfile.token=e}}});function jy(e){return{all:e=e||new Map,on:function(t,o){var i=e.get(t);i?i.push(o):e.set(t,[o])},off:function(t,o){var i=e.get(t);i&&(o?i.splice(i.indexOf(o)>>>0,1):e.set(t,[]))},emit:function(t,o){var i=e.get(t);i&&i.slice().map(function(a){a(o)}),(i=e.get("*"))&&i.slice().map(function(a){a(t,o)})}}}const mi=new jy,Hy="cannot be found on the map.",Ky=e=>{let t={lng:0,lat:0},o;return e.type==="Polygon"?e.coordinates.length&&(o=e.coordinates[0]):o=e.coordinates,o&&(e.type!=="Point"?(o.map(i=>{t.lng+=parseFloat(i[0]),t.lat+=parseFloat(i[1])}),t.lng=t.lng/o.length,t.lat=t.lat/o.length):(t.lng+=parseFloat(o[0]),t.lat+=parseFloat(o[1]))),t},Es=(e,t)=>{const o=[];let i=e.organs?e.organs:e.ftus;const a=i?i.filter((r,s)=>i.findIndex(l=>l.label===r.label)===s):void 0;return a&&a.forEach(r=>{const s={label:r.label,models:r.models,key:`${t}.${r.label}`},l=Es(r,s.key);l.length>0&&(s.children=l),o.push(s)}),o},Uy={name:"FlatmapVuer",components:{Button:ii,Col:an,Loading:ty,Radio:as,Icon:be,RadioGroup:rs,Row:on,Select:qn,Dialog:Cg,MapSvgIcon:vi.MapSvgIcon,MapSvgSpriteColor:vi.MapSvgSpriteColor,Tooltip:ut.Tooltip,TreeControls:ut.TreeControls,SelectionsGroup:gs,SvgLegends:By,ElIconWarningFilled:W.WarningFilled,ElIconArrowDown:W.ArrowDown,ElIconArrowLeft:W.ArrowLeft,DrawToolbar:ut.DrawToolbar,DynamicLegends:bs,FlatmapError:Yn},beforeCreate:function(){this.setStateRequired=!1},setup(e){let t=n.inject("$annotator");return t||(t=n.markRaw(new _s.AnnotationService(`${e.flatmapAPI}annotator`)),n.provide("$annotator",t)),{annotator:t}},methods:{enableFeatureResetOnClick:function(e){this.mapImp&&this.mapImp.enableFeatureResetOnClick(e)},setVisibilityFilter:function(e){this.mapImp&&(this.mapImp.contextLost?e?this.filterToRestore=n.markRaw(JSON.parse(JSON.stringify(e))):this.filterToRestore=void 0:(e?this.mapImp.setVisibilityFilter(e):this.mapImp.clearVisibilityFilter(),this.filterToRestore=void 0))},manualAbortedOnClose:function(){this.annotationSidebar&&this.$emit("annotation-close"),this.closeTooltip(),this.annotationEventCallback({},{type:"aborted"}),this.initialiseDrawing()},initialiseDrawing:function(){this.connectionEntry={},this.activeDrawTool=void 0,this.activeDrawMode=void 0,this.drawnCreatedEvent={}},cancelDrawnFeature:function(){this.isValidDrawnCreated&&(this.annotationSidebar&&this.$emit("annotation-close"),this.closeTooltip(),this.annotationEntry=[{...this.drawnCreatedEvent.feature,resourceId:this.serverURL}],this.rollbackAnnotationEvent(),this.initialiseDrawing())},connectedFeatureTooltip:function(e){if(this.mapImp)if(e){const t=Number(e);let i={feature:t?this.mapImp.featureProperties(t):{feature:this.existDrawnFeatures.find(a=>a.id===e.trim())}};this.checkAndCreatePopups([i],!1)}else this.closeTooltip()},confirmDrawnFeature:function(){this.isValidDrawnCreated&&(this.checkAndCreatePopups([this.drawnCreatedEvent],!1),Object.keys(this.connectionEntry).length>0&&(this.annotationEntry[0].feature.connection=this.connectionEntry),this.initialiseDrawing())},toolbarEvent:function(e,t){if(!this.isValidDrawnCreated){if(this.manualAbortedOnClose(),this.doubleClickedFeature=!1,this.changeAnnotationDrawMode({mode:"simple_select"}),e==="mode")this.activeDrawMode=t;else if(e==="tool"){if(this.cancelDrawnFeature(),t){const o=t.replace(/[A-Z]/g,i=>`_${i.toLowerCase()}`);this.changeAnnotationDrawMode({mode:`draw${o}`})}this.activeDrawTool=t}}},annotationDrawModeEvent:function(e){this.activeDrawMode==="Edit"?this.doubleClickedFeature&&(e.feature.feature.geometry.type!=="Point"&&(this.changeAnnotationDrawMode({mode:"direct_select",options:{featureId:e.feature.feature.id}}),this.modifyAnnotationFeature()),this.doubleClickedFeature=!1):this.activeDrawMode==="Delete"&&(this.changeAnnotationDrawMode({mode:"simple_select",options:{featureIds:[e.feature.feature.id]}}),this.modifyAnnotationFeature())},createConnectivityBody:function(){if(Object.keys(this.connectionEntry).length>0){const e=Object.values(this.connectionEntry),t={type:"connectivity",source:e[0],target:e[e.length-1],intermediates:e.filter((o,i)=>i!==0&&i!==e.length-1)};this.annotationEntry[0].body=t}},changeAnnotationDrawMode:function(e){this.mapImp&&this.mapImp.changeAnnotationDrawMode(e)},clearAnnotationFeature:function(){this.mapImp&&this.mapImp.clearAnnotationFeature()},forceContextLoss:function(){this.mapImp&&!this.mapImp.contextLost&&!this.loading&&this.mapImp.forceContextLoss()},forceContextRestore:function(){this.mapImp&&(this.flatmapError=null,this.mapImp.forceContextRestore())},modifyAnnotationFeature:function(){this.mapImp&&this.mapImp.removeAnnotationFeature()},rollbackAnnotationEvent:function(){this.mapImp&&this.annotationEntry.length>0&&["created","updated","deleted"].includes(this.annotationEntry[0].type)&&(this.mapImp.rollbackAnnotationEvent(this.annotationEntry[0]),this.annotationEntry=[])},commitAnnotationEvent:function(e){this.mapImp&&(this.offlineAnnotationEnabled&&(this.offlineAnnotations=JSON.parse(sessionStorage.getItem("anonymous-annotation"))||[],this.offlineAnnotations.push(e),this.annotationEntry[0].type==="deleted"&&(this.offlineAnnotations=this.offlineAnnotations.filter(t=>t.resource!==this.serverURL||t.item.id!==e.item.id)),sessionStorage.setItem("anonymous-annotation",JSON.stringify(this.offlineAnnotations))),["created","updated","deleted"].includes(this.annotationEntry[0].type)&&(this.featureAnnotationSubmitted=!0,this.mapImp.commitAnnotationEvent(this.annotationEntry[0]),e.body.comment==="Position Updated"?this.annotationEntry[0].positionUpdated=!1:this.annotationEntry[0].type==="deleted"&&(this.annotationSidebar&&this.$emit("annotation-close"),this.closeTooltip(),this.annotationEntry=[]),this.addAnnotationFeature()))},fetchAnnotatedItemIds:async function(e=void 0,t=void 0){let o;return this.offlineAnnotationEnabled?(this.offlineAnnotations=JSON.parse(sessionStorage.getItem("anonymous-annotation"))||[],o=this.offlineAnnotations.filter(i=>i.resource===this.serverURL).map(i=>i.item.id)):(o=await this.annotator.annotatedItemIds(this.userToken,this.serverURL,e,t),"resource"in o&&(o=o.itemIds)),o},setFeatureAnnotated:async function(){if(this.mapImp){const e=await this.fetchAnnotatedItemIds();for(const t of e)this.mapImp.setFeatureAnnotated(t)}},fetchDrawnFeatures:async function(e,t){let o;if(this.offlineAnnotationEnabled)this.offlineAnnotations=JSON.parse(sessionStorage.getItem("anonymous-annotation"))||[],o=this.offlineAnnotations.filter(i=>i.feature&&i.resource===this.serverURL).map(i=>i.feature);else{const i=await this.fetchAnnotatedItemIds(e,t);o=await this.annotator.drawnFeatures(this.userToken,this.serverURL,i),"resource"in o&&(o=o.features)}return o},addAnnotationFeature:async function(){if(this.mapImp){this.featureAnnotationSubmitted||(this.clearAnnotationFeature(),this.loading=!0);const e=this.annotationFrom==="Anyone"?void 0:this.authorisedUser.orcid?this.authorisedUser.orcid:"0000-0000-0000-0000",t=this.annotationFrom==="Anyone"?void 0:this.annotationFrom==="Me",o=await this.fetchDrawnFeatures(e,t);if(this.existDrawnFeatures=o,this.loading=!1,!this.featureAnnotationSubmitted)for(const i of o)this.mapImp.addAnnotationFeature(i)}},showAnnotator:function(e){this.mapImp&&(this.mapImp.showAnnotator(e),this.$el.querySelector(".maplibregl-ctrl-group").style.display="none")},setAnnotationFrom:function(e){this.annotationFrom=e,this.mapImp&&(this.manualAbortedOnClose(),this.addAnnotationFeature())},emitOfflineAnnotationUpdate:function(){this.$emit("update-offline-annotation-enabled",this.offlineAnnotationEnabled)},setFlightPath3D:function(e){this.flightPath3DRadio=e,this.mapImp&&this.mapImp.enableFlightPaths(e)},viewLatestMap:function(){let e=this.biologicalSex?this.biologicalSex:void 0;this.entry==="NCBITaxon:9606"&&(e="PATO:0000384");const t={entry:this.entry,biologicalSex:e,viewport:this.mapImp.getState()};this.$emit("view-latest-map",t)},backgroundChangeCallback:function(e){this.currentBackground=e,this.mapImp&&this.mapImp.setBackgroundColour(this.currentBackground,1)},processSystems:function(e){if(this.systems.length=0,e&&e.length>0){const t={label:"All",key:"All",children:[]};e.forEach(o=>{const i={colour:o.colour,enabled:o.enabled,label:o.id,key:o.id},a=Es(o,i.key);a.length>0&&(i.children=a),t.children.push(i)}),this.systems.push(t)}},processTaxon:function(e,t){this.taxonConnectivity.length=0,pi(this.mapImp,e).then(o=>{o.length&&o.forEach(i=>{let a=!0;t&&(a=t.checkAll?!0:t.checked.includes(i.taxon)),this.taxonConnectivity.push({...i,enabled:a}),this.mapImp&&this.mapImp.enableConnectivityByTaxonIds(i.taxon,a)})})},toggleDrawer:function(){this.drawerOpen=!this.drawerOpen},setColour:function(e){this.colourRadio=e,this.mapImp&&this.mapImp.setPaint({coloured:e,outlined:this.outlinesRadio})},setOutlines:function(e){this.outlinesRadio=e,this.mapImp&&this.mapImp.setPaint({coloured:this.colourRadio,outlined:e})},setInitMapState:function(){if(this.mapImp){const e=this.mapImp.map,t=this.mapImp.options.bounds,o=[[t[0],t[1]],[t[2],t[3]]];e.setMaxBounds(null),e.setRenderWorldCopies(!1),this.initMapState=n.markRaw({initBounds:o})}},resetView:function(){if(this.mapImp){const e=this.mapImp.map,{initBounds:t}=this.initMapState;e.resetNorthPitch({animate:!1}),t&&e.fitBounds(t,{animate:!1}),this.$refs.skcanSelection&&this.$refs.skcanSelection.reset(),this.$refs.layersSelection&&this.$refs.layersSelection.reset(),this.$refs.systemsSelection&&this.$refs.pathwaysSelection.reset(),this.$refs.pathwaysSelection&&this.$refs.pathwaysSelection.reset()}},zoomIn:function(){this.mapImp&&this.mapImp.zoomIn()},zoomOut:function(){this.mapImp&&this.mapImp.zoomOut()},onSelectionsDataChanged:function(e){this.$emit("pathway-selection-changed",e)},sckanSelected:function(e){this.mapImp&&this.mapImp.enableSckanPath(e.key,e.value)},checkAllSCKAN:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enableSckanPath(t,e.value))},zoomToFeatures:function(e){this.mapImp&&this.mapImp.zoomToFeatures(e)},retrieveConnectedPaths:async function(e,t={}){var o,i,a,r,s;if(this.mapImp){let l=[],c=(o=t.target)!=null&&o.length?t.target:[];const d=[...this.mapImp.pathModelNodes(e)],f=await this.mapImp.queryPathsForFeatures(e);if(d.length){if(!c.length){const u=(i=t.type)!=null&&i.length?t.type:["all"],p=await this.flatmapQueries.queryForConnectivityNew(this.mapImp,e[0]),g=(a=p==null?void 0:p.ids)==null?void 0:a.dendrites.flat(1/0),h=(r=p==null?void 0:p.ids)==null?void 0:r.components.flat(1/0),m=(s=p==null?void 0:p.ids)==null?void 0:s.axons.flat(1/0);let b=[];u.includes("origins")&&b.push(...g),u.includes("components")&&b.push(...h),u.includes("destinations")&&b.push(...m),u.includes("all")&&b.push(...g,...h,...m),c=[...new Set(b)]}d.forEach(u=>{this.mapImp.nodePathModels(u).forEach(g=>{const m=this.mapImp.pathModelNodes(g).map(y=>this.mapImp.featureProperties(y).models);c.filter(y=>m.includes(y)).length&&!l.includes(g)&&l.push(g)})})}else f.length&&(c.length?f.forEach(u=>{const g=this.mapImp.pathModelNodes(u).map(m=>this.mapImp.featureProperties(m).models);c.filter(m=>g.includes(m)).length&&!l.includes(u)&&l.push(u)}):l=f);return l=[...new Set([...l,...e])],l}},resetMapFilter:function(){const e=this.mapFilters.alert;let t;const o={"tile-layer":"pathways"},i={NOT:o};e.with&&!e.without?t={OR:[i,{AND:[o,{HAS:"alert"}]}]}:!e.with&&e.without?t={OR:[i,{AND:[o,{NOT:{HAS:"alert"}}]}]}:!e.with&&!e.without&&(t=i),this.setVisibilityFilter(t)},alertMouseEnterEmitted:function(e){if(this.mapImp)if(e.value){let t;const o={"tile-layer":"pathways"},i={NOT:o};if(e.key==="alert"||e.key==="withoutAlert"){const a=e.key==="alert"?{HAS:"alert"}:{NOT:{HAS:"alert"}};t={OR:[i,{AND:[o,a]}]}}this.setVisibilityFilter(t)}else this.resetMapFilter()},alertSelected:function(e){this.mapImp&&(e.key==="alert"?e.value?this.mapFilters.alert.with=!0:this.mapFilters.alert.with=!1:e.key==="withoutAlert"&&(e.value?this.mapFilters.alert.without=!0:this.mapFilters.alert.without=!1),this.resetMapFilter())},checkAllAlerts:function(e){this.mapImp&&(e.value?(this.mapFilters.alert.without=!0,this.mapFilters.alert.with=!0):(this.mapFilters.alert.without=!1,this.mapFilters.alert.with=!1),this.resetMapFilter())},systemSelected:function(e){this.mapImp&&this.mapImp.enableSystem(e.key,e.value)},checkAllSystems:function(e){this.mapImp&&this.systems[0].children.forEach(t=>this.mapImp.enableSystem(t.label,e))},ftuSelected:function(e){this.searchAndShowResult(e,!0,!0)},layersSelected:function(e){this.mapImp&&this.mapImp.enableLayer(e.key,e.value)},checkAllLayers:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enableLayer(t,e.value))},taxonsSelected:function(e){this.mapImp&&this.mapImp.enableConnectivityByTaxonIds(e.key,e.value)},taxonMouseEnterEmitted:function(e){if(this.mapImp)if(e.value){clearTimeout(this.taxonLeaveDelay);let t=this.mapImp.taxonFeatureIds(e.key);this.mapImp.enableConnectivityByTaxonIds(e.key,e.value),this.mapImp.zoomToGeoJSONFeatures(t,{noZoomIn:!0})}else this.taxonLeaveDelay=setTimeout(()=>{this.mapImp.unselectGeoJSONFeatures(),e.selections.forEach(t=>{let o=e.checked.includes(t.taxon);this.mapImp.enableConnectivityByTaxonIds(t.taxon,o)})},1e3)},checkAllTaxons:function(e){this.mapImp&&this.mapImp.enableConnectivityByTaxonIds(e.keys,e.value)},pathwaysSelected:function(e){this.mapImp&&this.mapImp.enablePath(e.key,e.value)},checkAllPathways:function(e){this.mapImp&&e.keys.forEach(t=>this.mapImp.enablePath(t,e.value))},enablePanZoomEvents:function(e){this.mapImp.enablePanZoomEvents(e)},annotationEventCallback:function(e,t){if(t.type==="aborted")this.featureAnnotationSubmitted?this.featureAnnotationSubmitted=!1:this.rollbackAnnotationEvent(),this.annotationEntry=[];else if(t.type==="modeChanged")t.feature.mode==="direct_select"&&(this.doubleClickedFeature=!0),this.annotationSidebar&&t.feature.mode==="simple_select"&&this.activeDrawMode==="Deleted"&&this.annotationEventCallback({},{type:"aborted"});else if(t.type==="selectionChanged"){if(this.selectedDrawnFeature=t.feature.features.length===0?void 0:t.feature.features[0],e.feature.feature=this.selectedDrawnFeature,!this.activeDrawTool)if(this.connectionEntry={},this.selectedDrawnFeature){const o=this.existDrawnFeatures.find(i=>i.id===this.selectedDrawnFeature.id);o&&o.connection&&(this.connectionEntry=o.connection),this.annotationDrawModeEvent(e)}else this.annotationSidebar&&this.previousEditEvent.type==="updated"&&(this.annotationEntry=[{...this.previousEditEvent,resourceId:this.serverURL}],this.annotationEventCallback({},{type:"aborted"})),this.previousEditEvent={}}else{if(t.type==="created"||t.type==="updated"){t.type==="updated"&&t.feature.action&&(t.positionUpdated=t.feature.action==="move");const o=this.mapImp.refreshAnnotationFeatureGeometry(t.feature);e.feature.feature=o}t.type==="created"?this.drawnCreatedEvent=e:this.checkAndCreatePopups([e])}t.type==="updated"&&(this.previousEditEvent=t),t.type==="deleted"?this.previousDeletedEvent=t:this.previousDeletedEvent={}},getTaxons:function(e){let t;return e.taxons&&(typeof e.taxons!="object"?t=JSON.parse(e.taxons):t=e.taxons),t},eventCallback:function(){return(e,t,...o)=>{if(e==="annotation"){const i={feature:t,userData:o,eventType:e};this.annotationEventCallback(i,t)}else if(e==="context-lost")this.onContextLost();else if(e==="context-restored")this.onContextRestored();else if(e==="pan-zoom")this.$emit("pan-zoom-callback",t);else{const i=t.label,a=[t.models],r=this.entry,s=this.biologicalSex,l=Nt(t.alert),c=this.getTaxons(t);let d=[{dataset:t.dataset,biologicalSex:s,taxonomy:r,resource:a,label:i,feature:t,protocol:this.selectedSimulation,userData:o,eventType:e,provenanceTaxonomy:c,alert:l}];if(e==="click"){const f=!t[0];if(!f){d=[];const p=t.mapUUID,g=new Set;for(let[h,m]of Object.entries(t))if(h!=="mapUUID"){const b=m.featureId,y=m.label,v=[m.models],T=this.getTaxons(m);if(g.has(b))continue;g.add(b),d.push({dataset:m.dataset,biologicalSex:s,taxonomy:r,resource:v,label:y,feature:m,userData:o,eventType:e,provenanceTaxonomy:T,alert:Nt(m.alert),mapUUID:p})}}const u=f?t:t[0];if(this.setConnectivityDataSource(this.viewingMode,u),this.viewingMode!=="Neuron Connection"){if(this.currentActive=u.models?u.models:"",this.activeDrawTool&&!this.isValidDrawnCreated){const p=u.featureId||this.existDrawnFeatures.find(g=>g.id===u.id);if(this.activeDrawTool==="LineString"&&p){const g=u.featureId?u.featureId:u.id,h=u.label?u.label:`Feature ${u.id}`;this.connectionEntry[` ${g}`]=Object.assign({label:h},Object.fromEntries(Object.entries(u).filter(([m])=>["featureId","models"].includes(m)).map(([m,b])=>[m==="featureId"?"id":m,b])))}}}t&&t.type!=="marker"&&!this.activeDrawTool&&this.checkAndCreatePopups(d)}else e==="mouseenter"&&this.viewingMode!=="Neuron Connection"&&(this.currentHover=t.models?t.models:"");this.$emit("resource-selected",d)}}},setConnectivityDataSource:function(e,t){var o;e==="Exploration"?this.connectivityDataSource=(o=t.models)!=null&&o.startsWith("ilxtr:")?t.models:"":this.connectivityDataSource=t.featureId||t.id},changeViewingMode:function(e){e&&(this.viewingMode=e),this.manualAbortedOnClose()},removeActiveTooltips:function(){this.mapImp&&this.mapImp.removePopup(),this.$el.querySelectorAll(".flatmap-tooltip-popup").forEach(t=>t.remove())},createTooltipForConnectivity:function(e,t){const o=document.createElement("div");o.classList.add("flatmap-feature-label"),e.forEach((i,a)=>{const{label:r}=i;if(o.append(Qn(r)),a+1<e.length){const s=document.createElement("hr");o.appendChild(s)}}),this.mapImp.showPopup(t,o,{className:"custom-popup flatmap-tooltip-popup",positionAtLastClick:!1,preserveSelection:!0})},showConnectivityTooltips:function(e){const{connectivityInfo:t,data:o}=e,i=[],a=[],r=[],s=[];if(t&&t.featureId&&i.push(...t.featureId),this.mapImp){if(o.forEach(p=>{const g=this.mapImp.search(p.id);if(g!=null&&g.results.length){const h=g==null?void 0:g.results[0].featureId;r.push({featureId:h,...p})}else s.push(p)}),r.length){let p=r[0].featureId;this.mapImp.annotations.forEach(g=>{const h=g["anatomical-nodes"];if(h){const m=h.join("");r.every(y=>m.indexOf(y.id)!==-1)&&(p=g.featureId,a.push(p))}}),this.createTooltipForConnectivity(r,p)}else this.removeActiveTooltips();s.length&&this.emitConnectivityError(s);const l=i.reduce((p,g)=>{const h=this.mapImp.pathways.paths[g],m=h?h.connectivity:null;if(m){const b=m.flat(1/0);p.push(...b)}return p},[]),c=[...new Set(l)],d=[...i,...c],u=[...this.mapImp.modelFeatureIdList(d),...a];this.mapImp.selectGeoJSONFeatures(u)}},showConnectivitiesByReference:function(e){this.searchConnectivitiesByReference(e).then(t=>{this.mapImp.selectFeatures(t)})},searchConnectivitiesByReference:async function(e){const t=sessionStorage.getItem("flatmap-knowledge");let o=[];return t?o=await Ny(e):o=await _y(this.mapImp,e,this.flatmapQueries),o},emitConnectivityError:function(e){this.$emit("connectivity-error",{data:{errorData:e,errorMessage:Hy}})},checkConnectivityTooltipEntry:function(e){return e!=null&&e.length?e.find(t=>{var o,i;return((o=t==null?void 0:t.destinations)==null?void 0:o.length)||((i=t==null?void 0:t.components)==null?void 0:i.length)})!==void 0:!1},changeConnectivitySource:async function(e){const{entry:t,connectivitySource:o}=e;t.mapId===this.mapImp.id&&(await this.flatmapQueries.queryForConnectivityNew(this.mapImp,t.featureId[0],o),this.tooltipEntry=this.tooltipEntry.map(i=>i.featureId[0]===t.featureId[0]?this.flatmapQueries.updateTooltipData(i):i),this.checkConnectivityTooltipEntry(this.tooltipEntry)&&this.$emit("connectivity-info-open",this.tooltipEntry))},checkAndCreatePopups:async function(e,t=!0){var o;if(this.viewingMode==="Annotation"){const i=e.filter(a=>a.feature).map(a=>a.feature);if(i.length>0)if(this.annotationSidebar&&this.previousDeletedEvent.type==="deleted"&&(this.annotationEntry=[{...this.previousDeletedEvent,resourceId:this.serverURL}],this.annotationEventCallback({},{type:"aborted"})),this.annotationEntry=[],i.forEach(a=>{var r;this.annotationEntry.push({...a,resourceId:this.serverURL,featureId:a.featureId?a.featureId:(r=a.feature)==null?void 0:r.id,offline:this.offlineAnnotationEnabled})}),i[0].feature)this.activeDrawTool||this.activeDrawMode||this.isValidDrawnCreated?(this.featureAnnotationSubmitted=!1,this.activeDrawTool&&this.createConnectivityBody(),this.displayTooltip(i[0].feature.id,Ky(i[0].feature.geometry))):this.rollbackAnnotationEvent();else{const a=this.annotationEntry.filter(r=>r.featureId&&r.models).map(r=>r.models);a.length>0&&this.displayTooltip(a)}else this.annotation={}}else if(this.viewingMode==="Neuron Connection"&&t){const i=e.map(r=>r.resource[0]);if(i.find(r=>!r.startsWith("ilxtr:"))){const r=Array.isArray(i)?[...i]:[i];r.length===1&&r.push([]);const s=(o=e[0].feature)==null?void 0:o.featureId,l=this.mapImp.annotations.get(s),c=l==null?void 0:l["anatomical-nodes"],d=l==null?void 0:l.models;let f,u=r;const p=l==null?void 0:l.models;c!=null&&c.length&&(f=c.find(k=>JSON.parse(k)[0]===d)),f?u=JSON.parse(f):p&&(u=[p,[]]);const g=this.mapImp.knowledgeSource,h=u.flat(1/0),m=[...new Set(h)],y=(await ut.fetchLabels(this.flatmapAPI,m)).reduce((k,E)=>{const O=E[0],B=JSON.parse(E[1]);return k.push({id:O,label:B.label,source:B.source}),k},[]);y.sort((k,E)=>k.id===E.id?k.source===g&&E.source!==g?-1:k.source!==g&&E.source===g?1:0:k.id.localeCompare(E.id));const v=[];for(let k=0;k<m.length;k++){const E=y.find(O=>O.id===m[k]);E&&v.push(E.label)}const T=Qn(v.join(", ")),S={facet:JSON.stringify(u),facetPropPath:`flatmap.connectivity.source.${this.connectionType.toLowerCase()}`,tagLabel:T,term:this.connectionType};this.connectivityFilters.some(k=>k.facet===S.facet&&k.facetPropPath===S.facetPropPath)||this.connectivityFilters.push(S),this.$emit("neuron-connection-feature-click",{filters:this.connectivityFilters,search:""})}else await this.openConnectivityInfo(e)}else await this.openConnectivityInfo(e)},openConnectivityInfo:async function(e){vs(this.mapImp,this.flatmapQueries);let t=[];if(this.tooltipEntry=e.filter(o=>o.resource[0]in this.mapImp.pathways.paths).map(o=>({title:o.label,featureId:o.resource,ready:!1})),this.tooltipEntry.length){this.$emit("connectivity-info-open",this.tooltipEntry);for(let i=0;i<e.length;i++)t.push(await this.getKnowledgeTooltip(e[i]));this.tooltipEntry=await Promise.all(t);const o=this.tooltipEntry.map(i=>i.featureId[0]);o.length>0&&this.displayTooltip(o)}},updateConnectivityFilters:function(e){e.length&&(this.connectivityFilters=e.filter(t=>t.facet.toLowerCase()!=="show all"))},resetConnectivityfilters:function(e){e.length?this.connectivityFilters=this.connectivityFilters.filter(t=>e.some(o=>o.facetPropPath===t.facetPropPath&&o.facet!==t.facet)):this.connectivityFilters=[]},getKnowledgeTooltip:async function(e){const t=await this.flatmapQueries.retrieveFlatmapKnowledgeForEvent(this.mapImp,e);let o=await this.flatmapQueries.createTooltipData(this.mapImp,e);return(t&&t[0]||e.feature.hyperlinks&&e.feature.hyperlinks.length>0)&&(o.featuresAlert=Nt(e.alert),o.knowledgeSource=Zn(this.mapImp),o.mapId=this.mapImp.mapMetadata.id,o.mapuuid=this.mapImp.mapMetadata.uuid),o.ready=!0,o},popUpCssHacks:function(){const e=document.querySelector(".flatmap-tooltip-popup"),t=document.querySelector(".maplibregl-popup-close-button");e&&(e.style.display="none"),t.style.display="block",this.$refs.tooltip.$el.style.display="flex",t.onclick=()=>{this.$emit("connectivity-info-close"),e&&(e.style.display="block")}},closeTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.$el.style.display="none"),document.querySelectorAll(".maplibregl-popup").forEach(e=>{e.style.display="none"})},showPopup:function(e,t,o){let i=o;this.mapImp&&(i?i.className||(i.className="custom-popup"):i={className:"custom-popup",positionAtLastClick:!0},this.mapImp.showPopup(e,t,i))},showMarkerPopup:function(e,t,o){this.mapImp&&this.mapImp.showMarkerPopup(e,t,o)},closeMinimap:function(){let e=this.$refs.flatmapContainer.querySelector(".maplibregl-ctrl-minimap");this.minimapSmall?(e.classList.add("enlarge"),e.classList.remove("shrink")):(e.classList.add("shrink"),e.classList.remove("enlarge")),this.minimapSmall=!this.minimapSmall},addResizeButtonToMinimap:function(){let e=this.$refs.flatmapContainer.querySelector(".maplibregl-ctrl-minimap");e&&(this.$refs.minimapResize&&this.$refs.minimapResize.$el.parentNode&&this.$refs.minimapResize.$el.parentNode.removeChild(this.$refs.minimapResize.$el),e.appendChild(this.$refs.minimapResize.$el),this.minimapResizeShow=!0)},setHelpMode:function(e){const t=this.hoverVisibilities.length,o=t-1,i=this.hoverVisibilities[this.helpModeActiveIndex];if(i){const r=i==null?void 0:i.refs,s=i==null?void 0:i.ref,l=this.$refs[r||s];if(l){const{parentElement:c,nextElementSibling:d}=l.$el,f=u=>u&&(u.classList.contains("pathway-container")||u.classList.contains("pathway-location"));(f(c)||f(d))&&(this.requiresDrawer?this.drawerOpen=!0:this.helpModeActiveIndex+=1)}else this.helpModeActiveIndex+=1,this.setHelpMode(e)}const a=this.hoverVisibilities[this.helpModeActiveIndex];(a==null?void 0:a.ref)==="checkBoxPopover"&&!this.showPathwayFilter&&(this.helpModeActiveIndex+=1,this.setHelpMode(e)),e||(this.helpModeActiveIndex=this.helpModeInitialIndex),this.viewingMode!=="Annotation"&&this.helpModeActiveIndex>9&&(this.helpModeActiveIndex=o),e&&this.helpModeActiveIndex>=o&&this.$emit("help-mode-last-item",!0),e&&!this.helpModeDialog?(this.inHelp=!0,this.hoverVisibilities.forEach(r=>{r.value=!0})):e&&this.helpModeDialog&&t>this.helpModeActiveIndex?this.helpModeActiveIndex>-1?(this.closeFlatmapHelpPopup(),setTimeout(()=>{this.inHelp=!1,this.hoverVisibilities.forEach(r=>{r.value=!1}),this.showTooltip(this.helpModeActiveIndex,200)},300)):this.helpModeActiveIndex===-1&&this.openFlatmapHelpPopup():(this.inHelp=!1,this.hoverVisibilities.forEach(r=>{r.value=!1}),this.closeFlatmapHelpPopup())},showTooltip:function(e,t=500){this.inHelp||(clearTimeout(this.tooltipWait[e]),this.tooltipWait[e]=setTimeout(()=>{this.hoverVisibilities[e].value=!0,this.$emit("shown-tooltip")},t))},hideTooltip:function(e,t=500){this.inHelp||(clearTimeout(this.tooltipWait[e]),this.tooltipWait[e]=setTimeout(()=>{this.hoverVisibilities[e].value=!1},t))},displayTooltip:function(e,t=void 0){let o;console.log("Displaying tooltip for feature:",e);let i={className:"flatmapvuer-popover"};if(t)o=e,i.annotationFeatureGeometry=t,this.annotationEntry.length&&(i.annotationEvent={type:this.annotationEntry[0].type,feature:this.annotationEntry[0].feature});else{const a=Array.isArray(e)?e[0]:e;a&&(o=this.mapImp.modelFeatureIds(a)[0]),this.activeDrawTool||(i.positionAtLastClick=!0)}this.connectivityInfoSidebar&&this.tooltipEntry.length&&this.viewingMode!=="Annotation"&&this.checkConnectivityTooltipEntry(this.tooltipEntry)&&this.$emit("connectivity-info-open",this.tooltipEntry),this.annotationSidebar&&this.viewingMode==="Annotation"&&this.$emit("annotation-open",{annotationEntry:this.annotationEntry,commitCallback:this.commitAnnotationEvent}),o&&!this.disableUI&&(this.viewingMode==="Annotation"&&!this.annotationSidebar||this.viewingMode==="Exploration"&&!this.connectivityInfoSidebar)&&(this.tooltipDisplay=!0,this.$nextTick(()=>{this.mapImp.showPopup(o,this.$refs.tooltip.$el,i),this.popUpCssHacks()}))},moveMap:function(e,t={}){if(this.mapImp){const{offsetX:o=0,offsetY:i=0,zoom:a=4}=t,r=this.mapImp.map,s=this.mapImp.bounds.toArray();this.mapImp.zoomToFeatures(e,{noZoomIn:!0}),this.showPathwaysDrawer(!1),s!=null&&s.length&&setTimeout(()=>{r.fitBounds(s,{offset:[o,i],zoom:a,animate:!0})})}},openFlatmapHelpPopup:function(){if(this.mapImp){let e=this.mapImp.modelFeatureIds("UBERON:0000948");e&&e.length>0&&(this.mapImp.showPopup(e[0],"Click for more information",{anchor:"top",className:"flatmap-popup-popper"}),this.$emit("shown-map-tooltip"))}},closeFlatmapHelpPopup:function(){this.$el.querySelectorAll(".maplibregl-popup-close-button").forEach(e=>{e.click()})},getLabels:function(){let e=[];if(this.mapImp){let t=this.mapImp.annotations;for(let o of t.values())o.label&&e.push(o.label);return Array.from(new Set(e))}},getVisibilityState:function(e){if(["alertSelection","pathwaysSelection","taxonSelection"].forEach(o=>{let i=this.$refs[o];i&&(e[o]=i.getState())}),this.$refs.treeControls){const o=this.$refs.treeControls.$refs.regionTree.getCheckedKeys();e.systemsSelection=o.filter(i=>!i.includes("."))}},setVisibilityState:function(e){["alertSelection","pathwaysSelection","taxonSelection"].forEach(o=>{const i=e[o];if(i){const a=this.$refs[o];a&&a.setState(i)}}),"systemsSelection"in e&&this.$refs.treeControls&&(this.$refs.treeControls.$refs.regionTree.setCheckedKeys(e.systemsSelection),this.systems[0].children.forEach(o=>{this.mapImp.enableSystem(o.key,e.systemsSelection.includes(o.key))}))},getState:function(){if(this.mapImp){let e={entry:this.entry,viewport:this.mapImp.getState()};const t=this.mapImp.getIdentifier();return this.biologicalSex?e.biologicalSex=this.biologicalSex:t&&t.biologicalSex&&(e.biologicalSex=t.biologicalSex),t&&t.uuid&&(e.uuid=t.uuid),e.viewingMode=this.viewingMode,e.searchTerm=this.searchTerm,e.flightPath3D=this.flightPath3DRadio,e.colour=this.colourRadio,e.outlines=this.outlinesRadio,e.background=this.currentBackground,this.offlineAnnotationEnabled&&(e.offlineAnnotations=sessionStorage.getItem("anonymous-annotation")),this.getVisibilityState(e),e}},setState:function(e){e&&(this.mapImp&&e.entry&&this.entry==e.entry&&(!e.biologicalSex||e.biologicalSex===this.biologicalSex)?this.restoreMapState(e):this.createFlatmap(e),this.setStateRequired=!1)},restoreMapState:function(e){if(e){if(e.viewport&&this.mapImp.setState(e.viewport),e.offlineAnnotations&&sessionStorage.setItem("anonymous-annotation",e.offlineAnnotations),e.viewingMode&&this.changeViewingMode(e.viewingMode),"flightPath3D"in e&&this.setFlightPath3D(e.flightPath3D),"colour"in e&&this.setColour(e.colour),"outlines"in e&&this.setOutlines(e.outlines),e.background&&this.backgroundChangeCallback(e.background),e.searchTerm){const t=e.searchTerm;this.searchAndShowResult(t,!0,!0)}this.setVisibilityState(e)}},setFlightPathInfo:function(e){(e===1.6||e>1.6)&&(this.displayFlightPathOption=!0,this.setFlightPath3D(!1))},createFlatmap:function(e){if(!this.mapImp&&!this.loading){this.loading=!0,this.flatmapError=null;let t={taxon:this.entry};this.uuid&&(t.uuid=this.uuid),e?(e.uuid?t={uuid:e.uuid}:e.entry&&(t.taxon=e.entry),e.biologicalSex?t.biologicalSex=e.biologicalSex:t.taxon==="NCBITaxon:9606"&&(t.biologicalSex="PATO:0000384")):this.biologicalSex&&(t.biologicalSex=this.biologicalSex),this.mapManagerRef.loadMap(t,this.eventCallback(),{minZoom:this.minZoom,tooltips:this.tooltips,minimap:!1,container:this.$refs.display,tooltipDelay:15}).then(i=>{this.mapImp=i,this.serverURL=this.mapImp.makeServerUrl("").slice(0,-1);let a=this.mapImp.details.version;this.setFlightPathInfo(a);const r=this._stateToBeSet?this._stateToBeSet:e;this.onFlatmapReady(r),this.$nextTick(()=>this.restoreMapState(r))}).catch(i=>{var a,r;if(console.error("Flatmap loading error:",i),this.flatmapError={},i.message&&i.message.indexOf("Unknown map")!==-1?(this.flatmapError.title="Unknown Map!",this.flatmapError.messages=Object.keys(t).map(s=>`${s==="uuid"?"UUID":Qn(s)}: ${t[s]}`)):(this.flatmapError.title="Error Loading Map!",this.flatmapError.messages=[i.message?i.message:i.toString(),"Please try again later or contact support if the problem persists."]),(r=(a=this.$parent)==null?void 0:a.$refs)!=null&&r.multiContainer){const s=this.$parent;this.flatmapError.button={text:"Load Default Map",callback:()=>{const l=s.initial;s.setSpecies(l,void 0,3)}}}this.loading=!1})}else e&&(this._stateToBeSet={...e},this.mapImp&&!this.loading&&this.restoreMapState(this._stateToBeSet))},computePathControlsMaximumHeight(){const e=this.$refs.display;if(e){const t=getComputedStyle(e),o=parseInt(t.paddingTop)+parseInt(t.paddingBottom),i=e.clientHeight-o;this.pathwaysMaxHeight=i-170}},mapResize:function(){try{this.computePathControlsMaximumHeight(),this.mapImp&&this.mapImp.resize()}catch{console.error("Map resize error")}},getFilterSources:function(){const e=["kind","taxons"];let t=new Set,o=new Set,i=new Map;for(const r of this.mapImp.annotations.values())if(r.source){"alert"in r?t.add(r.source):o.add(r.source);for(const[s,l]of Object.entries(r))if(e.includes(s)){i.has(s)||i.set(s,new Map);const c=i.get(s),d=f=>{const u=f;c.has(u)||c.set(u,new Set),c.get(u).add(`${r.source}`)};Array.isArray(l)?l.forEach(d):d(l)}}let a={alert:{with:[...t],without:[...o]}};for(const[r,s]of i.entries()){a[r]={};for(const[l,c]of s.entries())a[r][l]=[...c.values()]}return a},getFilterOptions:async function(e,t){const o=t||this.getFlatmapKnowledge(),i=this.pathways;return await ut.getFlatmapFilterOptions(this.flatmapAPI,e,o,i)},onFlatmapReady:function(e){var t,o,i;if(this.sensor=n.markRaw(new $y(this.$refs.display,this.mapResize)),((t=this.mapImp.options)==null?void 0:t.style)==="functional"&&(this.isFC=!0),this.mapImp.setBackgroundOpacity(1),this.backgroundChangeCallback(this.currentBackground),this.pathways=this.mapImp.pathTypes(),this.pathways=this.pathways.filter(a=>a.enabled&&a.type!=="other"),this.processSystems(this.mapImp.getSystems()),this.processTaxon(this.mapImp.taxonIdentifiers,e?e.taxonSelection:void 0),this.containsAlert="alert"in this.mapImp.featureFilterRanges(),this.flatmapLegends=this.mapImp.flatmapLegend,this.loading=!1,this.computePathControlsMaximumHeight(),this.mapResize(),this.handleMapClick(),this.setInitMapState(),this.displayMinimap){const a={position:"top-right"};this.mapImp.createMinimap(a),this.addResizeButtonToMinimap()}this.currentFlatmapUuid=(i=(o=this.mapImp)==null?void 0:o.mapMetadata)==null?void 0:i.uuid,this.$emit("ready",this)},handleMapClick:function(){const e=this.mapImp.map;e&&e.on("click",t=>{this.connectivityDataSource||this.$emit("connectivity-info-close"),this.connectivityDataSource=""})},onContextLost:function(){this.lastViewport=n.markRaw(this.mapImp.getState()),this.flatmapError={},this.flatmapError.title="GL context lost!",this.flatmapError.messages=[`A display issue has occurred due
25
25
  to a limit on available WebGL contexts. You can restore the display
26
26
  using the Restore Context button. Please see the
27
27
  <a href="https://docs.sparc.science/docs/integrated-maps-viewer-overview#limit-on-available-webgl-contexts" target='_blank'>documentation</a>
28
- for more details.`],this.flatmapError.button={text:"Restore Context",callback:()=>{this.forceContextRestore()}}},onContextRestored:function(){if(this.mapImp){this.handleMapClick(),this.setInitMapState();const e=this.getState();if(e&&(e.viewport=this.lastViewport),this.restoreMapState(e),this.displayMinimap){const t={position:"top-right"};this.mapImp.createMinimap(t),this.addResizeButtonToMinimap()}this.filterToRestore&&(this.mapImp.setVisibilityFilter(this.filterToRestore),this.filterToRestore=void 0),this.$emit("context-restored",this)}},showPathwaysDrawer:function(e){this.drawerOpen=e},searchAndShowResult:function(e,t,o=!0){var i;if(this.mapImp){if(e===void 0||e==="")return this.mapImp.clearSearchResults(),this.viewingMode==="Exploration"?this.$emit("connectivity-info-close"):this.viewingMode==="Annotation"&&this.manualAbortedOnClose(),this.searchTerm="",!0;{const r=this.mapImp.search(e);if((i=r==null?void 0:r.results)!=null&&i.length){if(this.mapImp.showSearchResults(r),t){let a;for(let s=0;s<r.results.length;s++){a=r.results[s].featureId;const l=this.mapImp.annotation(a);if(a&&(l!=null&&l.label))break}if(a){const s=this.mapImp.featureProperties(a),l={resource:[s.models],feature:s,label:s.label,provenanceTaxonomy:s.taxons,alert:Nt(s.alert)};this.checkAndCreatePopups([l],o),this.mapImp.showPopup(a,Qn(s.label),{className:"custom-popup",positionAtLastClick:!1,preserveSelection:!0})}}return this.searchTerm=e,!0}else this.mapImp.clearSearchResults()}}return!1},highlightConnectedPaths:function(e){if(e.length){const t=e.filter(i=>i in this.mapImp.pathways.paths),o=this.mapImp.modelFeatureIdList(t);this.mapImp.selectGeoJSONFeatures(o)}},searchSuggestions:function(e){return this.mapImp?this.mapImp.search(e):[]},onActionClick:function(e){mi.emit("onActionClick",e)},setConnectionType:function(e){this.connectionType=e}},props:{entry:{type:String,required:!0},uuid:String,biologicalSex:{type:String,default:""},minZoom:{type:Number,default:1},tooltips:{type:Boolean,default:!0},helpMode:{type:Boolean,default:!1},helpModeActiveItem:{type:Number,default:0},helpModeDialog:{type:Boolean,default:!1},helpModeLastItem:{type:Boolean,default:!1},helpModeInitialIndex:{type:Number,default:0},render:{type:Boolean,default:!0},renderAtMounted:{type:Boolean,default:!0},displayMinimap:{type:Boolean,default:!1},displayWarning:{type:Boolean,default:!1},enableOpenMapUI:{type:Boolean,default:!1},openMapOptions:{type:Array,default:function(){return[{display:"Open AC Map",key:"AC"},{display:"Open FC Map",key:"FC"},{display:"Open 3D Human Map",key:"3D"}]}},showStarInLegend:{type:Boolean,default:!1},isLegacy:{type:Boolean,default:!1},displayLatestChanges:{type:Boolean,default:!1},state:{type:Object,default:void 0},mapManager:{type:Object,default:void 0},flatmapAPI:{type:String,default:"https://mapcore-demo.org/current/flatmap/v3/"},sparcAPI:{type:String,default:"https://api.sparc.science/"},disableUI:{type:Boolean,default:!1},connectivityInfoSidebar:{type:Boolean,default:!1},annotationSidebar:{type:Boolean,default:!1},showLocalSettings:{type:Boolean,default:!0},showOpenMapButton:{type:Boolean,default:!0},showPathwayFilter:{type:Boolean,default:!0},externalLegends:{type:Array,default:function(){return[]}}},provide(){return{flatmapAPI:this.flatmapAPI,sparcAPI:this.sparcAPI,userApiKey:this.userToken}},data:function(){return{filterToRestore:void 0,flatmapError:null,sensor:null,mapManagerRef:void 0,flatmapQueries:void 0,annotationEntry:[],tooltipDisplay:!1,serverURL:void 0,layers:[],pathways:[],initMapState:n.markRaw({}),sckanDisplay:[{label:"Display Path with SCKAN",key:"VALID"}],systems:[],taxonConnectivity:[],pathwaysMaxHeight:1e3,tooltipWait:n.markRaw([]),hoverVisibilities:[{value:!1,ref:"markerPopover"},{value:!1,ref:"zoomInPopover"},{value:!1,ref:"zoomOutPopover"},{value:!1,ref:"zoomFitPopover"},{value:!1,ref:"openMapPopover"},{value:!1,ref:"settingsPopover"},{value:!1,ref:"checkBoxPopover"},{value:!1,ref:"warningPopover"},{value:!1,ref:"whatsNewPopover"},{value:!1,ref:"featuredMarkerPopover"},{value:!1,refs:"toolbarPopover",ref:"editPopover"},{value:!1,refs:"toolbarPopover",ref:"deletePopover"},{value:!1,refs:"toolbarPopover",ref:"pointPopover"},{value:!1,refs:"toolbarPopover",ref:"lineStringPopover"},{value:!1,refs:"toolbarPopover",ref:"polygonPopover"},{value:!1,refs:"toolbarPopover",ref:"connectionPopover"}],helpModeActiveIndex:this.helpModeInitialIndex,yellowstar:Vy,isFC:!1,inHelp:!1,currentBackground:"white",availableBackground:["white","lightskyblue","black"],loading:!1,flatmapMarker:By,tooltipEntry:[],connectivityDataSource:"",connectivityTooltipVisible:!1,drawerOpen:!1,flightPath3DRadio:!1,displayFlightPathOption:!1,colourRadio:!0,outlinesRadio:!0,minimapResizeShow:!1,minimapSmall:!1,currentActive:"",selectedDrawnFeature:void 0,currentHover:"",viewingMode:"Exploration",viewingModes:{Exploration:"Find relevant research and view detail of neural pathways by selecting a pathway to view its connections and data sources","Neuron Connection":"Discover Neuron connections by selecting a neuron and viewing its associated network connections",Annotation:["View feature annotations","Add, comment on and view feature annotations"]},connectionType:"All",offlineAnnotationEnabled:!1,offlineAnnotations:[],annotationFrom:"Anyone",annotatedSource:["Anyone","Me","Others"],openMapRef:void 0,backgroundIconRef:void 0,toolbarOptions:["Edit","Delete","Point","LineString","Polygon","Connection"],annotator:void 0,authorisedUser:void 0,activeDrawMode:void 0,activeDrawTool:void 0,featureAnnotationSubmitted:!1,drawnCreatedEvent:{},previousEditEvent:{},previousDeletedEvent:{},connectionEntry:{},existDrawnFeatures:[],doubleClickedFeature:!1,containsAlert:!1,alertOptions:[{label:"Display Path With Notes",key:"alert",enabled:!0},{label:"Display Path Without Notes",key:"withoutAlert",enabled:!0}],mapFilters:n.markRaw({alert:{with:!0,without:!0}}),searchTerm:"",taxonLeaveDelay:void 0,connectivityFilters:[],flatmapLegends:[],lastViewport:void 0}},computed:{...Si.mapState(Dy,["userToken"]),isValidDrawnCreated:function(){return Object.keys(this.drawnCreatedEvent).length>0},requiresDrawer:function(){var e,t,o,i;return this.loading?(this.drawerOpen=!1,!1):((e=this.systems)==null?void 0:e.length)>0||this.containsAlert&&this.alertOptions||((t=this.pathways)==null?void 0:t.length)>0||((o=this.taxonConnectivity)==null?void 0:o.length)>0||((i=this.legendEntry)==null?void 0:i.length)>0?(this.drawerOpen=!0,!0):(this.drawerOpen=!1,!1)},modeDescription:function(){let e=this.viewingModes[this.viewingMode];return this.viewingMode==="Annotation"?this.authorisedUser?e[1]:e[0]:e},legendEntry:function(){return[...this.flatmapLegends,...this.externalLegends]},showDatasetMarkerTooltip:function(){return this.hoverVisibilities[9].value}},watch:{entry:function(){this.state||this.createFlatmap()},helpMode:function(e,t){e!==t&&this.setHelpMode(e)},helpModeActiveItem:function(){this.helpMode&&(this.helpModeActiveIndex+=1,this.setHelpMode(this.helpMode))},render:function(e){e&&this.mapImp&&this.mapImp.contextLost&&!this.loading&&this.$nextTick(()=>{this.forceContextRestore()})},state:{handler:function(e,t){e!==t&&(this.mapManagerRef?this.setState(e):this.setStateRequired=!0)},immediate:!0,deep:!0},viewingMode:function(e){this.clearAnnotationFeature(),e==="Annotation"&&(this.loading=!0,this.annotator.authenticate(this.userToken).then(t=>{t.name&&t.email&&t.canUpdate?(this.authorisedUser=t,this.offlineAnnotationEnabled=!1):(this.authorisedUser=void 0,this.offlineAnnotationEnabled=!0),this.emitOfflineAnnotationUpdate(),this.setFeatureAnnotated(),this.addAnnotationFeature(),this.loading=!1}))},disableUI:function(e){e&&this.closeTooltip()},activeDrawTool:function(e){let t=[],o={x:null,y:null};const i=this.$el.querySelector(".maplibregl-canvas"),r=()=>{i.removeEventListener("keydown",a),i.removeEventListener("click",s)},a=l=>{if(!["Escape","Enter"].includes(l.key))return;const c=e==="Point"&&t.length===1||e==="LineString"&&t.length>=2||e==="Polygon"&&t.length>=3;(l.key==="Escape"||l.key==="Enter"&&!c)&&(this.activeDrawTool=void 0),r()},s=l=>{const c=i.getBoundingClientRect(),d=l.clientX-c.left,f=l.clientY-c.top;if(Math.sqrt((d-o.x)**2+(f-o.y)**2)<8){this.isValidDrawnCreated||(this.activeDrawTool=void 0),r();return}o={x:d,y:f},t.push(o)};e&&(r(),i.addEventListener("keydown",a),i.addEventListener("click",s))}},created:function(){this.mapManager?this.mapManagerRef=this.mapManager:(this.mapManagerRef=n.markRaw(new ki.MapViewer(this.flatmapAPI,{container:void 0})),this.$emit("mapmanager-loaded",this.mapManagerRef))},mounted:function(){this.openMapRef=n.shallowRef(this.$refs.openMapRef),this.backgroundIconRef=n.shallowRef(this.$refs.backgroundIconRef),this.tooltipWait.length=this.hoverVisibilities.length,this.flatmapQueries=n.markRaw(new bs),this.flatmapQueries.initialise(this.flatmapAPI),this.state?this.setStateRequired&&this.setState(this.state):this.renderAtMounted&&this.createFlatmap(),vs()}},Ky={class:"flatmap-container",ref:"flatmapContainer","element-loading-text":"Loading...","element-loading-background":"rgba(0, 0, 0, 0.3)"},Uy={style:{height:"100%",width:"100%",position:"relative","overflow-y":"none"}},Wy={style:{height:"100%",width:"100%"},ref:"display",class:"flatmap-display"},qy={class:"beta-popovers"},Gy={key:2,class:"warning-text"},Jy={class:"bottom-right-control"},Yy=["innerHTML"],Zy={style:{"margin-bottom":"2px"}},Qy={key:0,class:"viewing-mode-title"},Xy=["onClick"],eb=["onClick"];function tb(e,t,o,i,r,a){const s=n.resolveComponent("map-svg-sprite-color"),l=Yn,c=W.WarningFilled,d=be,f=an,u=W.ArrowDown,p=n.resolveComponent("DrawToolbar"),g=n.resolveComponent("map-svg-icon"),h=yy,m=n.resolveComponent("tree-controls"),y=gs,b=W.ArrowLeft,C=ii,I=on,k=rn,v=li,S=qn,E=rs,O=as,x=n.resolveComponent("Tooltip"),N=ci,B=fi;return n.withDirectives((n.openBlock(),n.createElementBlock("div",Ky,[n.createVNode(s),n.createElementVNode("div",Uy,[n.createElementVNode("div",Wy,null,512),e.flatmapError?(n.openBlock(),n.createBlock(l,{key:0,flatmapError:e.flatmapError},null,8,["flatmapError"])):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("div",qy,[n.createElementVNode("div",null,[o.displayWarning||o.isLegacy?(n.openBlock(),n.createBlock(f,{key:0,placement:"right","popper-class":"warning-popper flatmap-popper",teleported:!1,visible:e.hoverVisibilities[7].value,ref:"warningPopover"},{reference:n.withCtx(()=>[n.createElementVNode("div",{class:"warning-icon",onMouseover:t[7]||(t[7]=T=>a.showTooltip(7)),onMouseout:t[8]||(t[8]=T=>a.hideTooltip(7))},[o.displayWarning||o.isLegacy?(n.openBlock(),n.createBlock(d,{key:0},{default:n.withCtx(()=>[n.createVNode(c)]),_:1})):n.createCommentVNode("",!0),o.isLegacy?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[t[31]||(t[31]=n.createElementVNode("span",{class:"warning-text"},"Legacy Map",-1)),n.createElementVNode("div",{class:"latest-map-text",onClick:t[6]||(t[6]=(...T)=>a.viewLatestMap&&a.viewLatestMap(...T))}," Click here for the latest map ")],64)):o.displayWarning?(n.openBlock(),n.createElementBlock("span",Gy,"Beta")):n.createCommentVNode("",!0)],32)]),default:n.withCtx(()=>[o.isLegacy?(n.openBlock(),n.createElementBlock("p",{key:0,onMouseover:t[0]||(t[0]=T=>a.showTooltip(7)),onMouseout:t[1]||(t[1]=T=>a.hideTooltip(7))}," This is a legacy map, you may view the latest map instead. ",32)):e.isFC?(n.openBlock(),n.createElementBlock("p",{key:1,onMouseover:t[2]||(t[2]=T=>a.showTooltip(7)),onMouseout:t[3]||(t[3]=T=>a.hideTooltip(7))},t[29]||(t[29]=[n.createTextVNode(" This map displays the connectivity of individual neurons. Specifically, those which align with (parts of) the neuron populations from the "),n.createElementVNode("a",{href:"https://sparc.science/resources/1ZUKXU2YmLcn2reCyXjlew",target:"_blank"}," ApiNATOMY ",-1),n.createTextVNode(" models available in "),n.createElementVNode("a",{href:"https://sparc.science/resources/6eg3VpJbwQR4B84CjrvmyD",target:"_blank"}," SCKAN ",-1),n.createTextVNode(". ")]),32)):(n.openBlock(),n.createElementBlock("p",{key:2,onMouseover:t[4]||(t[4]=T=>a.showTooltip(7)),onMouseout:t[5]||(t[5]=T=>a.hideTooltip(7))},t[30]||(t[30]=[n.createTextVNode(" This map displays the connectivity of neuron populations. Specifically, those from the primarily rat-based "),n.createElementVNode("a",{href:"https://sparc.science/resources/1ZUKXU2YmLcn2reCyXjlew",target:"_blank"}," ApiNATOMY ",-1),n.createTextVNode(" models available in "),n.createElementVNode("a",{href:"https://sparc.science/resources/6eg3VpJbwQR4B84CjrvmyD",target:"_blank"}," SCKAN ",-1),n.createTextVNode(". New connectivity and species specificity will be added as the SPARC program progresses. ")]),32))]),_:1},8,["visible"])):n.createCommentVNode("",!0)]),o.displayLatestChanges?(n.openBlock(),n.createBlock(f,{key:0,placement:"right",teleported:!1,trigger:"manual","popper-class":"warning-popper flatmap-popper",visible:e.hoverVisibilities[8].value,ref:"whatsNewPopover"},{reference:n.withCtx(()=>[o.displayLatestChanges?(n.openBlock(),n.createElementBlock("div",{key:0,class:"latest-changesicon",onMouseover:t[9]||(t[9]=T=>a.showTooltip(8)),onMouseout:t[10]||(t[10]=T=>a.hideTooltip(8))},[n.createVNode(d,null,{default:n.withCtx(()=>[n.createVNode(c)]),_:1}),t[32]||(t[32]=n.createElementVNode("span",{class:"warning-text"},"What's new?",-1))],32)):n.createCommentVNode("",!0)]),default:n.withCtx(()=>t[33]||(t[33]=[n.createElementVNode("b",null,"Connectivity References",-1),n.createElementVNode("p",null," Connectivity references have been improved and available in various formats. ",-1),n.createElementVNode("b",null,"Improved state storing",-1),n.createElementVNode("p",null," Current selection and visibility filters are now stored when creating a permalink. ",-1)])),_:1},8,["visible"])):n.createCommentVNode("",!0)],512),[[n.vShow,!o.disableUI]]),n.withDirectives(n.createVNode(d,{class:n.normalizeClass(["minimap-resize",{enlarge:e.minimapSmall,shrink:!e.minimapSmall}]),ref:"minimapResize",onClick:a.closeMinimap},{default:n.withCtx(()=>[n.createVNode(u)]),_:1},8,["class","onClick"]),[[n.vShow,e.minimapResizeShow]]),e.viewingMode==="Annotation"&&(e.authorisedUser||e.offlineAnnotationEnabled)&&!o.disableUI?(n.openBlock(),n.createBlock(p,{key:1,mapCanvas:{containerHTML:this.$el,class:".maplibregl-canvas"},toolbarOptions:e.toolbarOptions,activeDrawTool:e.activeDrawTool,activeDrawMode:e.activeDrawMode,newlyDrawnEntry:e.drawnCreatedEvent,connectionEntry:e.connectionEntry,hoverVisibilities:e.hoverVisibilities,onClickToolbar:a.toolbarEvent,onFeatureTooltip:a.connectedFeatureTooltip,onConfirmDrawn:a.confirmDrawnFeature,onCancelDrawn:a.cancelDrawnFeature,onShowTooltip:a.showTooltip,onHideTooltip:a.hideTooltip,ref:"toolbarPopover"},null,8,["mapCanvas","toolbarOptions","activeDrawTool","activeDrawMode","newlyDrawnEntry","connectionEntry","hoverVisibilities","onClickToolbar","onFeatureTooltip","onConfirmDrawn","onCancelDrawn","onShowTooltip","onHideTooltip"])):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("div",Jy,[n.createVNode(f,{content:"Zoom in",placement:"left",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper",visible:e.hoverVisibilities[1].value,ref:"zoomInPopover"},{reference:n.withCtx(()=>[n.createElementVNode("div",{class:"icon-button-container",onClick:t[11]||(t[11]=T=>a.zoomIn()),onMouseover:t[12]||(t[12]=T=>a.showTooltip(1)),onMouseout:t[13]||(t[13]=T=>a.hideTooltip(1))},[n.createVNode(g,{class:"icon-button zoomIn",icon:"zoomIn"})],32)]),_:1},8,["visible"]),n.createVNode(f,{content:"Zoom out",placement:"top-end",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper",visible:e.hoverVisibilities[2].value,ref:"zoomOutPopover"},{reference:n.withCtx(()=>[n.createElementVNode("div",{class:"icon-button-container",onClick:t[14]||(t[14]=T=>a.zoomOut()),onMouseover:t[15]||(t[15]=T=>a.showTooltip(2)),onMouseout:t[16]||(t[16]=T=>a.hideTooltip(2))},[n.createVNode(g,{class:"icon-button zoomOut",icon:"zoomOut"})],32)]),_:1},8,["visible"]),n.createVNode(f,{content:"Reset",placement:"top",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper",visible:e.hoverVisibilities[3].value,ref:"zoomFitPopover"},{reference:n.withCtx(()=>[n.createElementVNode("div",{class:"icon-button-container",onClick:t[17]||(t[17]=T=>a.resetView()),onMouseover:t[18]||(t[18]=T=>a.showTooltip(3)),onMouseout:t[19]||(t[19]=T=>a.hideTooltip(3))},[n.createVNode(g,{class:"icon-button fitWindow",icon:"fitWindow"})],32)]),default:n.withCtx(()=>[t[34]||(t[34]=n.createElementVNode("div",null,[n.createTextVNode(" Fit to "),n.createElementVNode("br"),n.createTextVNode(" window ")],-1))]),_:1},8,["visible"])],512),[[n.vShow,!o.disableUI]]),n.createVNode(f,{content:"Change pathway visibility",placement:"right",teleported:!1,trigger:"manual",offset:-18,"popper-class":"flatmap-popper",visible:e.hoverVisibilities[6].value,ref:"checkBoxPopover"},{reference:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(["pathway-location",{open:e.drawerOpen,close:!e.drawerOpen}])},[n.withDirectives((n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["pathway-container",{open:e.drawerOpen,close:!e.drawerOpen}]),style:n.normalizeStyle({"max-height":e.pathwaysMaxHeight+"px"})},[a.legendEntry.length?(n.openBlock(),n.createBlock(h,{key:0,identifierKey:"prompt",colourKey:"colour",styleKey:"style",legends:a.legendEntry,showStarInLegend:!0,showDatasetMarkerTooltip:a.showDatasetMarkerTooltip,ref:"featuredMarkerPopover",class:"svg-legends-container"},null,8,["legends","showDatasetMarkerTooltip"])):n.createCommentVNode("",!0),n.createVNode(f,{content:"Find these markers for data. The number inside the markers is the number of datasets available for each marker.",placement:"right",teleported:!1,width:"200",trigger:"manual","popper-class":"flatmap-popper flatmap-marker-popper",visible:e.hoverVisibilities[0].value,ref:"markerPopover"},{reference:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:"flatmap-marker-help",innerHTML:e.flatmapMarker},null,8,Yy),[[n.vShow,e.hoverVisibilities[0].value],[N,void 0,"markerPopover"]])]),_:1},8,["visible"]),e.isFC&&e.systems&&e.systems.length>0?(n.openBlock(),n.createBlock(m,{key:1,class:"treeControls",mapType:"flatmap",title:"Systems",treeData:e.systems,active:e.currentActive,hover:e.currentHover,onCheckChanged:a.systemSelected,onCheckAll:a.checkAllSystems,onChangeActive:a.ftuSelected,ref:"treeControls"},null,8,["treeData","active","hover","onCheckChanged","onCheckAll","onChangeActive"])):n.createCommentVNode("",!0),e.containsAlert&&e.alertOptions&&o.showPathwayFilter?(n.openBlock(),n.createBlock(y,{title:"Notes",labelKey:"label",identifierKey:"key",selections:e.alertOptions,onChanged:a.alertSelected,onCheckboxMouseEnter:a.alertMouseEnterEmitted,onSelectionsDataChanged:a.onSelectionsDataChanged,onCheckAll:a.checkAllAlerts,ref:"alertSelection",key:"alertSelection"},null,8,["selections","onChanged","onCheckboxMouseEnter","onSelectionsDataChanged","onCheckAll"])):n.createCommentVNode("",!0),e.pathways&&e.pathways.length>0?(n.openBlock(),n.createBlock(y,{title:"Pathways",labelKey:"label",identifierKey:"type",colourStyle:"line",selections:e.pathways,showAsLegend:!o.showPathwayFilter,onChanged:a.pathwaysSelected,onSelectionsDataChanged:a.onSelectionsDataChanged,onCheckAll:a.checkAllPathways,ref:"pathwaysSelection",key:"pathwaysSelection"},null,8,["selections","showAsLegend","onChanged","onSelectionsDataChanged","onCheckAll"])):n.createCommentVNode("",!0),e.taxonConnectivity&&e.taxonConnectivity.length>0&&o.showPathwayFilter?(n.openBlock(),n.createBlock(y,{title:"Studied in",labelKey:"label",identifierKey:"taxon",helpMessage:"Evidence exists that this set of neuron populations have been studied in the given species.",selections:e.taxonConnectivity,onChanged:a.taxonsSelected,onCheckboxMouseEnter:a.taxonMouseEnterEmitted,onSelectionsDataChanged:a.onSelectionsDataChanged,onCheckAll:a.checkAllTaxons,ref:"taxonSelection",key:"taxonSelection"},null,8,["selections","onChanged","onCheckboxMouseEnter","onSelectionsDataChanged","onCheckAll"])):n.createCommentVNode("",!0)],6)),[[N,void 0,"checkBoxPopover"]]),n.createElementVNode("div",{onClick:t[20]||(t[20]=(...T)=>a.toggleDrawer&&a.toggleDrawer(...T)),class:n.normalizeClass(["drawer-button",{open:e.drawerOpen,close:!e.drawerOpen}])},[n.createVNode(d,null,{default:n.withCtx(()=>[n.createVNode(b)]),_:1})],2)],2),[[n.vShow,!o.disableUI&&a.requiresDrawer]])]),_:1},8,["visible"]),e.openMapRef?(n.openBlock(),n.createBlock(f,{key:2,ref:"open-map-popover","virtual-ref":e.openMapRef,placement:"top-start",width:"136",teleported:!1,trigger:"click","popper-class":"open-map-popper non-selectable","virtual-triggering":""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.openMapOptions,T=>(n.openBlock(),n.createBlock(I,{key:T.key},{default:n.withCtx(()=>[n.createVNode(C,{type:"primary",plain:"",onClick:L=>e.$emit("open-map",T.key)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(T.display),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1},8,["virtual-ref"])):n.createCommentVNode("",!0),n.createVNode(f,{ref:"backgroundPopover","virtual-ref":e.backgroundIconRef,placement:"top-start",width:"320",teleported:!1,trigger:"click","popper-class":"background-popper h-auto","virtual-triggering":""},{default:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(I,{class:"backgroundText"},{default:n.withCtx(()=>t[35]||(t[35]=[n.createTextVNode("Viewing Mode")])),_:1}),n.createVNode(I,{class:"backgroundControl"},{default:n.withCtx(()=>[n.createElementVNode("div",Zy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.viewingModes,(T,L,q)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:L},[L===e.viewingMode?(n.openBlock(),n.createElementBlock("span",Qy,[n.createElementVNode("b",null,n.toDisplayString(L),1)])):(n.openBlock(),n.createElementBlock("span",{key:1,class:"viewing-mode-unselected",onClick:V=>a.changeViewingMode(L)},n.toDisplayString(L),9,Xy))],64))),128))]),n.createVNode(I,{class:"viewing-mode-description"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(a.modeDescription),1)]),_:1}),e.viewingMode==="Annotation"&&e.offlineAnnotationEnabled?(n.openBlock(),n.createBlock(I,{key:0,class:"viewing-mode-description"},{default:n.withCtx(()=>t[36]||(t[36]=[n.createTextVNode(" (Anonymous annotate) ")])),_:1})):n.createCommentVNode("",!0)]),_:1}),e.viewingMode==="Annotation"&&e.authorisedUser?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createVNode(I,{class:"backgroundText"},{default:n.withCtx(()=>t[37]||(t[37]=[n.createTextVNode("Annotations From")])),_:1}),n.createVNode(I,{class:"backgroundControl"},{default:n.withCtx(()=>[n.createVNode(S,{teleported:!1,modelValue:e.annotationFrom,"onUpdate:modelValue":t[21]||(t[21]=T=>e.annotationFrom=T),placeholder:"Select",class:"select-box","popper-class":"flatmap_dropdown",onChange:a.setAnnotationFrom},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.annotatedSource,T=>(n.openBlock(),n.createBlock(v,{key:T,label:T,value:T},{default:n.withCtx(()=>[n.createVNode(I,null,{default:n.withCtx(()=>[n.createVNode(k,{span:12},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(T),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1})],64)):n.createCommentVNode("",!0),e.displayFlightPathOption?(n.openBlock(),n.createBlock(I,{key:1,class:"backgroundSpacer"})):n.createCommentVNode("",!0),e.displayFlightPathOption?(n.openBlock(),n.createBlock(I,{key:2,class:"backgroundText"},{default:n.withCtx(()=>t[38]||(t[38]=[n.createTextVNode("Flight path display")])),_:1})):n.createCommentVNode("",!0),e.displayFlightPathOption?(n.openBlock(),n.createBlock(I,{key:3,class:"backgroundControl"},{default:n.withCtx(()=>[n.createVNode(O,{modelValue:e.flightPath3DRadio,"onUpdate:modelValue":t[22]||(t[22]=T=>e.flightPath3DRadio=T),class:"flatmap-radio",onChange:a.setFlightPath3D},{default:n.withCtx(()=>[n.createVNode(E,{value:!1},{default:n.withCtx(()=>t[39]||(t[39]=[n.createTextVNode("2D")])),_:1}),n.createVNode(E,{value:!0},{default:n.withCtx(()=>t[40]||(t[40]=[n.createTextVNode("3D")])),_:1})]),_:1},8,["modelValue","onChange"])]),_:1})):n.createCommentVNode("",!0),n.createVNode(I,{class:"backgroundSpacer"}),n.createVNode(I,{class:"backgroundText"},{default:n.withCtx(()=>t[41]||(t[41]=[n.createTextVNode("Organs display")])),_:1}),n.createVNode(I,{class:"backgroundControl"},{default:n.withCtx(()=>[n.createVNode(O,{modelValue:e.colourRadio,"onUpdate:modelValue":t[23]||(t[23]=T=>e.colourRadio=T),class:"flatmap-radio",onChange:a.setColour},{default:n.withCtx(()=>[n.createVNode(E,{value:!0},{default:n.withCtx(()=>t[42]||(t[42]=[n.createTextVNode("Colour")])),_:1}),n.createVNode(E,{value:!1},{default:n.withCtx(()=>t[43]||(t[43]=[n.createTextVNode("Greyscale")])),_:1})]),_:1},8,["modelValue","onChange"])]),_:1}),n.createVNode(I,{class:"backgroundSpacer"}),n.createVNode(I,{class:"backgroundText"},{default:n.withCtx(()=>t[44]||(t[44]=[n.createTextVNode("Outlines display")])),_:1}),n.createVNode(I,{class:"backgroundControl"},{default:n.withCtx(()=>[n.createVNode(O,{modelValue:e.outlinesRadio,"onUpdate:modelValue":t[24]||(t[24]=T=>e.outlinesRadio=T),class:"flatmap-radio",onChange:a.setOutlines},{default:n.withCtx(()=>[n.createVNode(E,{value:!0},{default:n.withCtx(()=>t[45]||(t[45]=[n.createTextVNode("Show")])),_:1}),n.createVNode(E,{value:!1},{default:n.withCtx(()=>t[46]||(t[46]=[n.createTextVNode("Hide")])),_:1})]),_:1},8,["modelValue","onChange"])]),_:1}),n.createVNode(I,{class:"backgroundSpacer"}),n.createVNode(I,{class:"backgroundText"},{default:n.withCtx(()=>t[47]||(t[47]=[n.createTextVNode("Change background")])),_:1}),n.createVNode(I,{class:"backgroundControl"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.availableBackground,T=>(n.openBlock(),n.createElementBlock("div",{key:T,class:n.normalizeClass(["backgroundChoice",T,T==e.currentBackground?"active":""]),onClick:L=>a.backgroundChangeCallback(T)},null,10,eb))),128))]),_:1})])]),_:1},8,["virtual-ref"]),n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(["settings-group",{open:e.drawerOpen,close:!e.drawerOpen}])},[o.showOpenMapButton?(n.openBlock(),n.createBlock(I,{key:0},{default:n.withCtx(()=>[n.createVNode(f,{visible:e.hoverVisibilities[4].value,content:"Open new map",placement:"right",teleported:!1,"popper-class":"flatmap-popper",ref:"openMapPopover"},{reference:n.withCtx(()=>[o.enableOpenMapUI&&o.openMapOptions.length>0?(n.openBlock(),n.createElementBlock("div",{key:0,ref:"openMapRef",class:"icon-button-container",onMouseover:t[25]||(t[25]=T=>a.showTooltip(4)),onMouseout:t[26]||(t[26]=T=>a.hideTooltip(4))},[n.createVNode(g,{icon:"openMap",class:"icon-button open-map-button"})],544)):n.createCommentVNode("",!0)]),_:1},8,["visible"])]),_:1})):n.createCommentVNode("",!0),o.showLocalSettings?(n.openBlock(),n.createBlock(I,{key:1},{default:n.withCtx(()=>[n.createVNode(f,{content:"Change settings",placement:"right",visible:e.hoverVisibilities[5].value,teleported:!1,trigger:"manual","popper-class":"flatmap-popper",ref:"settingsPopover"},{reference:n.withCtx(()=>[n.createElementVNode("div",{ref:"backgroundIconRef",class:"icon-button-container",onMouseover:t[27]||(t[27]=T=>a.showTooltip(5)),onMouseout:t[28]||(t[28]=T=>a.hideTooltip(5))},[n.createVNode(g,{icon:"changeBckgd",class:"icon-button"})],544)]),_:1},8,["visible"])]),_:1})):n.createCommentVNode("",!0)],2),[[n.vShow,!o.disableUI]]),e.tooltipDisplay?(n.openBlock(),n.createBlock(x,{key:3,ref:"tooltip",class:"tooltip",annotationEntry:e.annotationEntry,tooltipEntry:e.tooltipEntry,annotationDisplay:e.viewingMode==="Annotation",onAnnotation:a.commitAnnotationEvent,onOnActionClick:a.onActionClick},null,8,["annotationEntry","tooltipEntry","annotationDisplay","onAnnotation","onOnActionClick"])):n.createCommentVNode("",!0)])])),[[B,e.loading]])}const gi=st(Hy,[["render",tb],["__scopeId","data-v-26a69af4"]]),Es={"NCBITaxon:10114":"01fedbf9-d783-509c-a10c-827941ab13da","NCBITaxon:9823":"a336ac04-24db-561f-a25f-1c994fe17410","NCBITaxon:9606":"42ed6323-f645-5fbe-bada-9581819cf689","NCBITaxon:10090":"25285fab-48a0-5620-a6a0-f9a0374837d5","NCBITaxon:9685":"73060497-46a6-52bf-b975-cac511c127cb"},nb={name:"MultiFlatmapVuer",components:{Col:rn,Row:on,Option:li,Select:qn,Popover:an,FlatmapVuer:gi,FlatmapError:Yn},created:function(){this.loadMapManager()},mounted:function(){this.initialise(),mi.on("onActionClick",e=>{this.resourceSelected(e)}),mi.on("open-pubmed-url",e=>{this.$emit("open-pubmed-url",e)})},methods:{initialise:function(){return this.multiflatmapError=null,new Promise(e=>{if(this.requireInitialisation){this.requireInitialisation=!1;const t=new AbortController,o=t.signal,i=setTimeout(()=>t.abort(),5e3);fetch(this.flatmapAPI,{signal:o}).then(r=>{if(!r.ok){if(r.status===404)return this.multiflatmapError={},this.multiflatmapError.title="MultiFlatmap Error!",this.multiflatmapError.messages=[`Sorry, the component could not be loaded because the specified
28
+ for more details.`],this.flatmapError.button={text:"Restore Context",callback:()=>{this.forceContextRestore()}}},onContextRestored:function(){if(this.mapImp){this.handleMapClick(),this.setInitMapState();const e=this.getState();if(e&&(e.viewport=this.lastViewport),this.restoreMapState(e),this.displayMinimap){const t={position:"top-right"};this.mapImp.createMinimap(t),this.addResizeButtonToMinimap()}this.filterToRestore&&(this.mapImp.setVisibilityFilter(this.filterToRestore),this.filterToRestore=void 0),this.$emit("context-restored",this)}},showPathwaysDrawer:function(e){this.drawerOpen=e},searchAndShowResult:function(e,t,o=!0){var i;if(this.mapImp){if(e===void 0||e==="")return this.mapImp.clearSearchResults(),this.viewingMode==="Exploration"?this.$emit("connectivity-info-close"):this.viewingMode==="Annotation"&&this.manualAbortedOnClose(),this.searchTerm="",!0;{const a=this.mapImp.search(e);if((i=a==null?void 0:a.results)!=null&&i.length){if(this.mapImp.showSearchResults(a),t){let r;for(let s=0;s<a.results.length;s++){r=a.results[s].featureId;const l=this.mapImp.annotation(r);if(r&&(l!=null&&l.label))break}if(r){const s=this.mapImp.featureProperties(r),l={resource:[s.models],feature:s,label:s.label,provenanceTaxonomy:s.taxons,alert:Nt(s.alert)};this.checkAndCreatePopups([l],o),this.mapImp.showPopup(r,Qn(s.label),{className:"custom-popup",positionAtLastClick:!1,preserveSelection:!0})}}return this.searchTerm=e,!0}else this.mapImp.clearSearchResults()}}return!1},highlightConnectedPaths:function(e){if(e.length){const t=e.filter(i=>i in this.mapImp.pathways.paths),o=this.mapImp.modelFeatureIdList(t);this.mapImp.selectGeoJSONFeatures(o)}},searchSuggestions:function(e){return this.mapImp?this.mapImp.search(e):[]},onActionClick:function(e){mi.emit("onActionClick",e)},setConnectionType:function(e){this.connectionType=e},async fetchFlatmapProtocols(e){const t=`flatmap_dataset_${e}`,o=this.getSessionCache(t);if(o){this.datasetInfo=o,this.processDatasetFiles(o);return}const i=this.sparcAPI;if(!i){console.warn("VITE_API_LOCATION is not defined.");return}try{console.log("Fetching dataset info from API...");const a=await fetch(`${i}flatmap/uuid?uuid=${e}`);let r;if(a.ok?r=await a.json():this.testDataLocation&&(r=await Ry(this.testDataLocation,e)),!r)throw new Error("No protocol data available for map");this.setSessionCache(t,r),this.datasetInfo=r,this.processDatasetFiles(r)}catch(a){console.error("Error fetching flatmap protocols:",a)}},extractBucketNameFromS3Uri(e){try{return new URL(e).hostname}catch(t){return console.error("Error converting S3 URI:",t),null}},async processDatasetFiles(e){if(e){if(e.testData)this.simulationInfo=[],e.simulation.forEach(t=>{this.simulationInfo.push({label:t.name,path:t.dataset.path,dataset_id:t.datasetId,type:"Simulation",resource:t.resource.url})});else if(e.length!==0){this.simulationInfo=[];const t=e[0],i=`${this.sparcAPI}/s3-resource/${t.dataset_id}/files`,a=this.extractBucketNameFromS3Uri(t.s3uri);t.urls.map(async r=>{const s=`${i}/${r}?s3BucketName=${a}`;this.simulationInfo.push({label:t.title,s3uri:t.s3uri,dataset_id:t.dataset_id,version:t.version,path:r,type:"Simulation",resource:s})})}}},getSessionCache(e){const t=sessionStorage.getItem(e);if(!t)return null;try{const o=JSON.parse(t);return new Date().getTime()>o.expiry?(sessionStorage.removeItem(e),null):o.value}catch{return null}},setSessionCache(e,t){const a={value:t,expiry:new Date().getTime()+864e5};try{sessionStorage.setItem(e,JSON.stringify(a))}catch(r){console.warn("Session storage full or disabled",r)}},getSimulationLabel(e){return e.path.split("/").pop()},openSimulation(){this.selectedSimulation&&this.$emit("open-simulation",this.selectedSimulation)}},props:{entry:{type:String,required:!0},uuid:String,biologicalSex:{type:String,default:""},minZoom:{type:Number,default:1},tooltips:{type:Boolean,default:!0},helpMode:{type:Boolean,default:!1},helpModeActiveItem:{type:Number,default:0},helpModeDialog:{type:Boolean,default:!1},helpModeLastItem:{type:Boolean,default:!1},helpModeInitialIndex:{type:Number,default:0},render:{type:Boolean,default:!0},renderAtMounted:{type:Boolean,default:!0},displayMinimap:{type:Boolean,default:!1},displayWarning:{type:Boolean,default:!1},enableOpenMapUI:{type:Boolean,default:!1},openMapOptions:{type:Array,default:function(){return[{display:"Open AC Map",key:"AC"},{display:"Open FC Map",key:"FC"},{display:"Open 3D Human Map",key:"3D"}]}},showStarInLegend:{type:Boolean,default:!1},isLegacy:{type:Boolean,default:!1},displayLatestChanges:{type:Boolean,default:!1},state:{type:Object,default:void 0},mapManager:{type:Object,default:void 0},flatmapAPI:{type:String,default:"https://mapcore-demo.org/current/flatmap/v3/"},sparcAPI:{type:String,default:"https://api.sparc.science/"},testDataLocation:{type:String,default:""},disableUI:{type:Boolean,default:!1},connectivityInfoSidebar:{type:Boolean,default:!1},annotationSidebar:{type:Boolean,default:!1},showLocalSettings:{type:Boolean,default:!0},showOpenMapButton:{type:Boolean,default:!0},showPathwayFilter:{type:Boolean,default:!0},externalLegends:{type:Array,default:function(){return[]}}},provide(){return{flatmapAPI:this.flatmapAPI,sparcAPI:this.sparcAPI,userApiKey:this.userToken}},data:function(){return{filterToRestore:void 0,flatmapError:null,sensor:null,mapManagerRef:void 0,currentFlatmapUuid:void 0,flatmapQueries:void 0,annotationEntry:[],tooltipDisplay:!1,tooltipTimer:null,serverURL:void 0,layers:[],pathways:[],initMapState:n.markRaw({}),sckanDisplay:[{label:"Display Path with SCKAN",key:"VALID"}],systems:[],taxonConnectivity:[],pathwaysMaxHeight:1e3,tooltipWait:n.markRaw([]),hoverVisibilities:[{value:!1,ref:"markerPopover"},{value:!1,ref:"zoomInPopover"},{value:!1,ref:"zoomOutPopover"},{value:!1,ref:"zoomFitPopover"},{value:!1,ref:"openMapPopover"},{value:!1,ref:"settingsPopover"},{value:!1,ref:"checkBoxPopover"},{value:!1,ref:"warningPopover"},{value:!1,ref:"whatsNewPopover"},{value:!1,ref:"featuredMarkerPopover"},{value:!1,refs:"toolbarPopover",ref:"editPopover"},{value:!1,refs:"toolbarPopover",ref:"deletePopover"},{value:!1,refs:"toolbarPopover",ref:"pointPopover"},{value:!1,refs:"toolbarPopover",ref:"lineStringPopover"},{value:!1,refs:"toolbarPopover",ref:"polygonPopover"},{value:!1,refs:"toolbarPopover",ref:"connectionPopover"},{value:!1,ref:"simulationPopover"}],helpModeActiveIndex:this.helpModeInitialIndex,yellowstar:Dy,isFC:!1,inHelp:!1,currentBackground:"white",availableBackground:["white","lightskyblue","black"],loading:!1,flatmapMarker:xy,tooltipEntry:[],connectivityDataSource:"",connectivityTooltipVisible:!1,drawerOpen:!1,flightPath3DRadio:!1,displayFlightPathOption:!1,colourRadio:!0,outlinesRadio:!0,minimapResizeShow:!1,minimapSmall:!1,currentActive:"",selectedDrawnFeature:void 0,currentHover:"",viewingMode:"Exploration",viewingModes:{Exploration:"Find relevant research and view detail of neural pathways by selecting a pathway to view its connections and data sources","Neuron Connection":"Discover Neuron connections by selecting a neuron and viewing its associated network connections",Annotation:["View feature annotations","Add, comment on and view feature annotations"]},connectionType:"All",offlineAnnotationEnabled:!1,offlineAnnotations:[],annotationFrom:"Anyone",annotatedSource:["Anyone","Me","Others"],openMapRef:void 0,backgroundIconRef:void 0,toolbarOptions:["Edit","Delete","Point","LineString","Polygon","Connection"],annotator:void 0,authorisedUser:void 0,activeDrawMode:void 0,activeDrawTool:void 0,featureAnnotationSubmitted:!1,drawnCreatedEvent:{},previousEditEvent:{},previousDeletedEvent:{},connectionEntry:{},existDrawnFeatures:[],doubleClickedFeature:!1,containsAlert:!1,alertOptions:[{label:"Display Path With Notes",key:"alert",enabled:!0},{label:"Display Path Without Notes",key:"withoutAlert",enabled:!0}],mapFilters:n.markRaw({alert:{with:!0,without:!0}}),searchTerm:"",taxonLeaveDelay:void 0,connectivityFilters:[],flatmapLegends:[],lastViewport:void 0,simulationInfo:[],datasetInfo:null,simulationDrawerOpen:!1,selectedSimulation:null}},computed:{...Si.mapState(zy,["userToken"]),isValidDrawnCreated:function(){return Object.keys(this.drawnCreatedEvent).length>0},requiresDrawer:function(){var e,t,o,i;return this.loading?(this.drawerOpen=!1,!1):((e=this.systems)==null?void 0:e.length)>0||this.containsAlert&&this.alertOptions||((t=this.pathways)==null?void 0:t.length)>0||((o=this.taxonConnectivity)==null?void 0:o.length)>0||((i=this.legendEntry)==null?void 0:i.length)>0?(this.drawerOpen=!0,!0):(this.drawerOpen=!1,!1)},modeDescription:function(){let e=this.viewingModes[this.viewingMode];return this.viewingMode==="Annotation"?this.authorisedUser?e[1]:e[0]:e},legendEntry:function(){return[...this.flatmapLegends,...this.externalLegends]},showDatasetMarkerTooltip:function(){return this.hoverVisibilities[9].value}},watch:{entry:function(){this.state||this.createFlatmap()},helpMode:function(e,t){e!==t&&this.setHelpMode(e)},helpModeActiveItem:function(){this.helpMode&&(this.helpModeActiveIndex+=1,this.setHelpMode(this.helpMode))},render:function(e){e&&this.mapImp&&this.mapImp.contextLost&&!this.loading&&this.$nextTick(()=>{this.forceContextRestore()})},state:{handler:function(e,t){e!==t&&(this.mapManagerRef?this.setState(e):this.setStateRequired=!0)},immediate:!0,deep:!0},viewingMode:function(e){this.clearAnnotationFeature(),e==="Annotation"&&(this.loading=!0,this.annotator.authenticate(this.userToken).then(t=>{t.name&&t.email&&t.canUpdate?(this.authorisedUser=t,this.offlineAnnotationEnabled=!1):(this.authorisedUser=void 0,this.offlineAnnotationEnabled=!0),this.emitOfflineAnnotationUpdate(),this.setFeatureAnnotated(),this.addAnnotationFeature(),this.loading=!1}))},disableUI:function(e){e&&this.closeTooltip()},activeDrawTool:function(e){let t=[],o={x:null,y:null};const i=this.$el.querySelector(".maplibregl-canvas"),a=()=>{i.removeEventListener("keydown",r),i.removeEventListener("click",s)},r=l=>{if(!["Escape","Enter"].includes(l.key))return;const c=e==="Point"&&t.length===1||e==="LineString"&&t.length>=2||e==="Polygon"&&t.length>=3;(l.key==="Escape"||l.key==="Enter"&&!c)&&(this.activeDrawTool=void 0),a()},s=l=>{const c=i.getBoundingClientRect(),d=l.clientX-c.left,f=l.clientY-c.top;if(Math.sqrt((d-o.x)**2+(f-o.y)**2)<8){this.isValidDrawnCreated||(this.activeDrawTool=void 0),a();return}o={x:d,y:f},t.push(o)};e&&(a(),i.addEventListener("keydown",r),i.addEventListener("click",s))},currentFlatmapUuid:{handler(e){e&&this.fetchFlatmapProtocols(e)}}},created:function(){this.mapManager?this.mapManagerRef=this.mapManager:(this.mapManagerRef=n.markRaw(new ki.MapViewer(this.flatmapAPI,{container:void 0})),this.$emit("mapmanager-loaded",this.mapManagerRef))},mounted:function(){this.openMapRef=n.shallowRef(this.$refs.openMapRef),this.backgroundIconRef=n.shallowRef(this.$refs.backgroundIconRef),this.tooltipWait.length=this.hoverVisibilities.length,this.flatmapQueries=n.markRaw(new ws),this.flatmapQueries.initialise(this.flatmapAPI),this.state?this.setStateRequired&&this.setState(this.state):this.renderAtMounted&&this.createFlatmap(),Ss()}},Wy={class:"flatmap-container",ref:"flatmapContainer","element-loading-text":"Loading...","element-loading-background":"rgba(0, 0, 0, 0.3)"},qy={style:{height:"100%",width:"100%",position:"relative","overflow-y":"none"}},Gy={style:{height:"100%",width:"100%"},ref:"display",class:"flatmap-display"},Jy={class:"beta-popovers"},Yy={key:2,class:"warning-text"},Zy={class:"bottom-right-control"},Qy=["innerHTML"],Xy={style:{"margin-bottom":"2px"}},eb={key:0,class:"viewing-mode-title"},tb=["onClick"],nb=["onClick"];function ob(e,t,o,i,a,r){const s=n.resolveComponent("map-svg-sprite-color"),l=Yn,c=W.WarningFilled,d=be,f=rn,u=W.ArrowDown,p=n.resolveComponent("DrawToolbar"),g=li,h=qn,m=ii,b=W.ArrowLeft,y=n.resolveComponent("map-svg-icon"),v=bs,T=n.resolveComponent("tree-controls"),S=gs,w=on,k=an,E=as,O=rs,B=n.resolveComponent("Tooltip"),N=ci,x=fi;return n.withDirectives((n.openBlock(),n.createElementBlock("div",Wy,[n.createVNode(s),n.createElementVNode("div",qy,[n.createElementVNode("div",Gy,null,512),e.flatmapError?(n.openBlock(),n.createBlock(l,{key:0,flatmapError:e.flatmapError},null,8,["flatmapError"])):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("div",Jy,[n.createElementVNode("div",null,[o.displayWarning||o.isLegacy?(n.openBlock(),n.createBlock(f,{key:0,placement:"right","popper-class":"warning-popper flatmap-popper",teleported:!1,visible:e.hoverVisibilities[7].value,ref:"warningPopover"},{reference:n.withCtx(()=>[n.createElementVNode("div",{class:"warning-icon",onMouseover:t[7]||(t[7]=I=>r.showTooltip(7)),onMouseout:t[8]||(t[8]=I=>r.hideTooltip(7))},[o.displayWarning||o.isLegacy?(n.openBlock(),n.createBlock(d,{key:0},{default:n.withCtx(()=>[n.createVNode(c)]),_:1})):n.createCommentVNode("",!0),o.isLegacy?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[t[31]||(t[31]=n.createElementVNode("span",{class:"warning-text"},"Legacy Map",-1)),n.createElementVNode("div",{class:"latest-map-text",onClick:t[6]||(t[6]=(...I)=>r.viewLatestMap&&r.viewLatestMap(...I))}," Click here for the latest map ")],64)):o.displayWarning?(n.openBlock(),n.createElementBlock("span",Yy,"Beta")):n.createCommentVNode("",!0)],32)]),default:n.withCtx(()=>[o.isLegacy?(n.openBlock(),n.createElementBlock("p",{key:0,onMouseover:t[0]||(t[0]=I=>r.showTooltip(7)),onMouseout:t[1]||(t[1]=I=>r.hideTooltip(7))}," This is a legacy map, you may view the latest map instead. ",32)):e.isFC?(n.openBlock(),n.createElementBlock("p",{key:1,onMouseover:t[2]||(t[2]=I=>r.showTooltip(7)),onMouseout:t[3]||(t[3]=I=>r.hideTooltip(7))},t[29]||(t[29]=[n.createTextVNode(" This map displays the connectivity of individual neurons. Specifically, those which align with (parts of) the neuron populations from the "),n.createElementVNode("a",{href:"https://sparc.science/resources/1ZUKXU2YmLcn2reCyXjlew",target:"_blank"}," ApiNATOMY ",-1),n.createTextVNode(" models available in "),n.createElementVNode("a",{href:"https://sparc.science/resources/6eg3VpJbwQR4B84CjrvmyD",target:"_blank"}," SCKAN ",-1),n.createTextVNode(". ")]),32)):(n.openBlock(),n.createElementBlock("p",{key:2,onMouseover:t[4]||(t[4]=I=>r.showTooltip(7)),onMouseout:t[5]||(t[5]=I=>r.hideTooltip(7))},t[30]||(t[30]=[n.createTextVNode(" This map displays the connectivity of neuron populations. Specifically, those from the primarily rat-based "),n.createElementVNode("a",{href:"https://sparc.science/resources/1ZUKXU2YmLcn2reCyXjlew",target:"_blank"}," ApiNATOMY ",-1),n.createTextVNode(" models available in "),n.createElementVNode("a",{href:"https://sparc.science/resources/6eg3VpJbwQR4B84CjrvmyD",target:"_blank"}," SCKAN ",-1),n.createTextVNode(". New connectivity and species specificity will be added as the SPARC program progresses. ")]),32))]),_:1},8,["visible"])):n.createCommentVNode("",!0)]),o.displayLatestChanges?(n.openBlock(),n.createBlock(f,{key:0,placement:"right",teleported:!1,trigger:"manual","popper-class":"warning-popper flatmap-popper",visible:e.hoverVisibilities[8].value,ref:"whatsNewPopover"},{reference:n.withCtx(()=>[o.displayLatestChanges?(n.openBlock(),n.createElementBlock("div",{key:0,class:"latest-changesicon",onMouseover:t[9]||(t[9]=I=>r.showTooltip(8)),onMouseout:t[10]||(t[10]=I=>r.hideTooltip(8))},[n.createVNode(d,null,{default:n.withCtx(()=>[n.createVNode(c)]),_:1}),t[32]||(t[32]=n.createElementVNode("span",{class:"warning-text"},"What's new?",-1))],32)):n.createCommentVNode("",!0)]),default:n.withCtx(()=>t[33]||(t[33]=[n.createElementVNode("b",null,"Connectivity References",-1),n.createElementVNode("p",null," Connectivity references have been improved and available in various formats. ",-1),n.createElementVNode("b",null,"Improved state storing",-1),n.createElementVNode("p",null," Current selection and visibility filters are now stored when creating a permalink. ",-1)])),_:1},8,["visible"])):n.createCommentVNode("",!0)],512),[[n.vShow,!o.disableUI]]),n.withDirectives(n.createVNode(d,{class:n.normalizeClass(["minimap-resize",{enlarge:e.minimapSmall,shrink:!e.minimapSmall}]),ref:"minimapResize",onClick:r.closeMinimap},{default:n.withCtx(()=>[n.createVNode(u)]),_:1},8,["class","onClick"]),[[n.vShow,e.minimapResizeShow]]),e.viewingMode==="Annotation"&&(e.authorisedUser||e.offlineAnnotationEnabled)&&!o.disableUI?(n.openBlock(),n.createBlock(p,{key:1,mapCanvas:{containerHTML:this.$el,class:".maplibregl-canvas"},toolbarOptions:e.toolbarOptions,activeDrawTool:e.activeDrawTool,activeDrawMode:e.activeDrawMode,newlyDrawnEntry:e.drawnCreatedEvent,connectionEntry:e.connectionEntry,hoverVisibilities:e.hoverVisibilities,onClickToolbar:r.toolbarEvent,onFeatureTooltip:r.connectedFeatureTooltip,onConfirmDrawn:r.confirmDrawnFeature,onCancelDrawn:r.cancelDrawnFeature,onShowTooltip:r.showTooltip,onHideTooltip:r.hideTooltip,ref:"toolbarPopover"},null,8,["mapCanvas","toolbarOptions","activeDrawTool","activeDrawMode","newlyDrawnEntry","connectionEntry","hoverVisibilities","onClickToolbar","onFeatureTooltip","onConfirmDrawn","onCancelDrawn","onShowTooltip","onHideTooltip"])):n.createCommentVNode("",!0),e.simulationInfo.length>0?(n.openBlock(),n.createBlock(f,{key:2,content:"Open simulation protocols",placement:"right",teleported:!1,trigger:"manual",offset:-18,"popper-class":"flatmap-popper",visible:e.hoverVisibilities[16].value,ref:"simulationPopover"},{reference:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(["popover-location simulation top",{open:e.simulationDrawerOpen,close:!e.simulationDrawerOpen}])},[n.withDirectives((n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["pathway-container",{open:e.simulationDrawerOpen,close:!e.simulationDrawerOpen}])},[t[35]||(t[35]=n.createElementVNode("h4",{style:{"margin-top":"0","margin-bottom":"10px"}}," Available Protocols ",-1)),n.createVNode(h,{"popper-class":"flatmap-dropdown",modelValue:e.selectedSimulation,"onUpdate:modelValue":t[11]||(t[11]=I=>e.selectedSimulation=I),placeholder:"Select a simulation",size:"default",style:{width:"100%","margin-bottom":"10px"},"value-key":"path"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.simulationInfo,I=>(n.openBlock(),n.createBlock(g,{key:I.path,label:r.getSimulationLabel(I),value:I},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),n.createVNode(m,{type:"primary",onClick:r.openSimulation,disabled:!e.selectedSimulation,style:{width:"100%"}},{default:n.withCtx(()=>t[34]||(t[34]=[n.createTextVNode(" Open Simulation ")])),_:1},8,["onClick","disabled"])],2)),[[N,void 0,"simulationPopover"]]),n.createElementVNode("div",{onClick:t[12]||(t[12]=I=>e.simulationDrawerOpen=!e.simulationDrawerOpen),class:n.normalizeClass(["drawer-button",{open:e.simulationDrawerOpen,close:!e.simulationDrawerOpen}]),title:"Toggle Simulation Panel"},[n.createVNode(d,null,{default:n.withCtx(()=>[n.createVNode(b)]),_:1})],2)],2),[[n.vShow,!o.disableUI]])]),_:1},8,["visible"])):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("div",Zy,[n.createVNode(f,{content:"Zoom in",placement:"left",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper",visible:e.hoverVisibilities[1].value,ref:"zoomInPopover"},{reference:n.withCtx(()=>[n.createElementVNode("div",{class:"icon-button-container",onClick:t[13]||(t[13]=I=>r.zoomIn()),onMouseover:t[14]||(t[14]=I=>r.showTooltip(1)),onMouseout:t[15]||(t[15]=I=>r.hideTooltip(1))},[n.createVNode(y,{class:"icon-button zoomIn",icon:"zoomIn"})],32)]),_:1},8,["visible"]),n.createVNode(f,{content:"Zoom out",placement:"top-end",teleported:!1,"auto-close":1300,width:"70","popper-class":"flatmap-popper",ref:"zoomOutPopover"},{reference:n.withCtx(()=>[n.createElementVNode("div",{class:"icon-button-container",onClick:t[16]||(t[16]=I=>r.zoomOut())},[n.createVNode(y,{class:"icon-button zoomOut",icon:"zoomOut"})])]),_:1},512),n.createVNode(f,{content:"Reset",placement:"top",teleported:!1,trigger:"manual",width:"70","popper-class":"flatmap-popper",visible:e.hoverVisibilities[3].value,ref:"zoomFitPopover"},{reference:n.withCtx(()=>[n.createElementVNode("div",{class:"icon-button-container",onClick:t[17]||(t[17]=I=>r.resetView()),onMouseover:t[18]||(t[18]=I=>r.showTooltip(3)),onMouseout:t[19]||(t[19]=I=>r.hideTooltip(3))},[n.createVNode(y,{class:"icon-button fitWindow",icon:"fitWindow"})],32)]),default:n.withCtx(()=>[t[36]||(t[36]=n.createElementVNode("div",null,[n.createTextVNode(" Fit to "),n.createElementVNode("br"),n.createTextVNode(" window ")],-1))]),_:1},8,["visible"])],512),[[n.vShow,!o.disableUI]]),n.createVNode(f,{content:"Change pathway visibility",class:"somerandomclass",placement:"right",teleported:!1,trigger:"manual",offset:-18,"popper-class":"flatmap-popper",visible:e.hoverVisibilities[6].value,ref:"checkBoxPopover"},{reference:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(["popover-location bottom",{open:e.drawerOpen,close:!e.drawerOpen}])},[n.withDirectives((n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["pathway-container",{open:e.drawerOpen,close:!e.drawerOpen}]),style:n.normalizeStyle({"max-height":e.pathwaysMaxHeight+"px"})},[r.legendEntry.length?(n.openBlock(),n.createBlock(v,{key:0,identifierKey:"prompt",colourKey:"colour",styleKey:"style",legends:r.legendEntry,showStarInLegend:!0,showDatasetMarkerTooltip:r.showDatasetMarkerTooltip,ref:"featuredMarkerPopover",class:"svg-legends-container"},null,8,["legends","showDatasetMarkerTooltip"])):n.createCommentVNode("",!0),n.createVNode(f,{content:"Find these markers for data. The number inside the markers is the number of datasets available for each marker.",placement:"right",teleported:!1,width:"200",trigger:"manual","popper-class":"flatmap-popper flatmap-marker-popper",visible:e.hoverVisibilities[0].value,ref:"markerPopover"},{reference:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:"flatmap-marker-help",innerHTML:e.flatmapMarker},null,8,Qy),[[n.vShow,e.hoverVisibilities[0].value],[N,void 0,"markerPopover"]])]),_:1},8,["visible"]),e.isFC&&e.systems&&e.systems.length>0?(n.openBlock(),n.createBlock(T,{key:1,class:"treeControls",mapType:"flatmap",title:"Systems",treeData:e.systems,active:e.currentActive,hover:e.currentHover,onCheckChanged:r.systemSelected,onCheckAll:r.checkAllSystems,onChangeActive:r.ftuSelected,ref:"treeControls"},null,8,["treeData","active","hover","onCheckChanged","onCheckAll","onChangeActive"])):n.createCommentVNode("",!0),e.containsAlert&&e.alertOptions&&o.showPathwayFilter?(n.openBlock(),n.createBlock(S,{title:"Notes",labelKey:"label",identifierKey:"key",selections:e.alertOptions,onChanged:r.alertSelected,onCheckboxMouseEnter:r.alertMouseEnterEmitted,onSelectionsDataChanged:r.onSelectionsDataChanged,onCheckAll:r.checkAllAlerts,ref:"alertSelection",key:"alertSelection"},null,8,["selections","onChanged","onCheckboxMouseEnter","onSelectionsDataChanged","onCheckAll"])):n.createCommentVNode("",!0),e.pathways&&e.pathways.length>0?(n.openBlock(),n.createBlock(S,{title:"Pathways",labelKey:"label",identifierKey:"type",colourStyle:"line",selections:e.pathways,showAsLegend:!o.showPathwayFilter,onChanged:r.pathwaysSelected,onSelectionsDataChanged:r.onSelectionsDataChanged,onCheckAll:r.checkAllPathways,ref:"pathwaysSelection",key:"pathwaysSelection"},null,8,["selections","showAsLegend","onChanged","onSelectionsDataChanged","onCheckAll"])):n.createCommentVNode("",!0),e.taxonConnectivity&&e.taxonConnectivity.length>0&&o.showPathwayFilter?(n.openBlock(),n.createBlock(S,{title:"Studied in",labelKey:"label",identifierKey:"taxon",helpMessage:"Evidence exists that this set of neuron populations have been studied in the given species.",selections:e.taxonConnectivity,onChanged:r.taxonsSelected,onCheckboxMouseEnter:r.taxonMouseEnterEmitted,onSelectionsDataChanged:r.onSelectionsDataChanged,onCheckAll:r.checkAllTaxons,ref:"taxonSelection",key:"taxonSelection"},null,8,["selections","onChanged","onCheckboxMouseEnter","onSelectionsDataChanged","onCheckAll"])):n.createCommentVNode("",!0)],6)),[[N,void 0,"checkBoxPopover"]]),n.createElementVNode("div",{onClick:t[20]||(t[20]=(...I)=>r.toggleDrawer&&r.toggleDrawer(...I)),class:n.normalizeClass(["drawer-button",{open:e.drawerOpen,close:!e.drawerOpen}])},[n.createVNode(d,null,{default:n.withCtx(()=>[n.createVNode(b)]),_:1})],2)],2),[[n.vShow,!o.disableUI&&r.requiresDrawer]])]),_:1},8,["visible"]),e.openMapRef?(n.openBlock(),n.createBlock(f,{key:3,ref:"open-map-popover","virtual-ref":e.openMapRef,placement:"top-start",width:"136",teleported:!1,trigger:"click","popper-class":"open-map-popper non-selectable","virtual-triggering":""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.openMapOptions,I=>(n.openBlock(),n.createBlock(w,{key:I.key},{default:n.withCtx(()=>[n.createVNode(m,{type:"primary",plain:"",onClick:L=>e.$emit("open-map",I.key)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(I.display),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1},8,["virtual-ref"])):n.createCommentVNode("",!0),n.createVNode(f,{ref:"backgroundPopover","virtual-ref":e.backgroundIconRef,placement:"top-start",width:"320",teleported:!1,trigger:"click","popper-class":"background-popper h-auto","virtual-triggering":""},{default:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(w,{class:"backgroundText"},{default:n.withCtx(()=>t[37]||(t[37]=[n.createTextVNode("Viewing Mode")])),_:1}),n.createVNode(w,{class:"backgroundControl"},{default:n.withCtx(()=>[n.createElementVNode("div",Xy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.viewingModes,(I,L,q)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:L},[L===e.viewingMode?(n.openBlock(),n.createElementBlock("span",eb,[n.createElementVNode("b",null,n.toDisplayString(L),1)])):(n.openBlock(),n.createElementBlock("span",{key:1,class:"viewing-mode-unselected",onClick:V=>r.changeViewingMode(L)},n.toDisplayString(L),9,tb))],64))),128))]),n.createVNode(w,{class:"viewing-mode-description"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(r.modeDescription),1)]),_:1}),e.viewingMode==="Annotation"&&e.offlineAnnotationEnabled?(n.openBlock(),n.createBlock(w,{key:0,class:"viewing-mode-description"},{default:n.withCtx(()=>t[38]||(t[38]=[n.createTextVNode(" (Anonymous annotate) ")])),_:1})):n.createCommentVNode("",!0)]),_:1}),e.viewingMode==="Annotation"&&e.authorisedUser?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createVNode(w,{class:"backgroundText"},{default:n.withCtx(()=>t[39]||(t[39]=[n.createTextVNode("Annotations From")])),_:1}),n.createVNode(w,{class:"backgroundControl"},{default:n.withCtx(()=>[n.createVNode(h,{teleported:!1,modelValue:e.annotationFrom,"onUpdate:modelValue":t[21]||(t[21]=I=>e.annotationFrom=I),placeholder:"Select",class:"select-box","popper-class":"flatmap_dropdown",onChange:r.setAnnotationFrom},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.annotatedSource,I=>(n.openBlock(),n.createBlock(g,{key:I,label:I,value:I},{default:n.withCtx(()=>[n.createVNode(w,null,{default:n.withCtx(()=>[n.createVNode(k,{span:12},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(I),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1})],64)):n.createCommentVNode("",!0),e.displayFlightPathOption?(n.openBlock(),n.createBlock(w,{key:1,class:"backgroundSpacer"})):n.createCommentVNode("",!0),e.displayFlightPathOption?(n.openBlock(),n.createBlock(w,{key:2,class:"backgroundText"},{default:n.withCtx(()=>t[40]||(t[40]=[n.createTextVNode("Flight path display")])),_:1})):n.createCommentVNode("",!0),e.displayFlightPathOption?(n.openBlock(),n.createBlock(w,{key:3,class:"backgroundControl"},{default:n.withCtx(()=>[n.createVNode(O,{modelValue:e.flightPath3DRadio,"onUpdate:modelValue":t[22]||(t[22]=I=>e.flightPath3DRadio=I),class:"flatmap-radio",onChange:r.setFlightPath3D},{default:n.withCtx(()=>[n.createVNode(E,{value:!1},{default:n.withCtx(()=>t[41]||(t[41]=[n.createTextVNode("2D")])),_:1}),n.createVNode(E,{value:!0},{default:n.withCtx(()=>t[42]||(t[42]=[n.createTextVNode("3D")])),_:1})]),_:1},8,["modelValue","onChange"])]),_:1})):n.createCommentVNode("",!0),n.createVNode(w,{class:"backgroundSpacer"}),n.createVNode(w,{class:"backgroundText"},{default:n.withCtx(()=>t[43]||(t[43]=[n.createTextVNode("Organs display")])),_:1}),n.createVNode(w,{class:"backgroundControl"},{default:n.withCtx(()=>[n.createVNode(O,{modelValue:e.colourRadio,"onUpdate:modelValue":t[23]||(t[23]=I=>e.colourRadio=I),class:"flatmap-radio",onChange:r.setColour},{default:n.withCtx(()=>[n.createVNode(E,{value:!0},{default:n.withCtx(()=>t[44]||(t[44]=[n.createTextVNode("Colour")])),_:1}),n.createVNode(E,{value:!1},{default:n.withCtx(()=>t[45]||(t[45]=[n.createTextVNode("Greyscale")])),_:1})]),_:1},8,["modelValue","onChange"])]),_:1}),n.createVNode(w,{class:"backgroundSpacer"}),n.createVNode(w,{class:"backgroundText"},{default:n.withCtx(()=>t[46]||(t[46]=[n.createTextVNode("Outlines display")])),_:1}),n.createVNode(w,{class:"backgroundControl"},{default:n.withCtx(()=>[n.createVNode(O,{modelValue:e.outlinesRadio,"onUpdate:modelValue":t[24]||(t[24]=I=>e.outlinesRadio=I),class:"flatmap-radio",onChange:r.setOutlines},{default:n.withCtx(()=>[n.createVNode(E,{value:!0},{default:n.withCtx(()=>t[47]||(t[47]=[n.createTextVNode("Show")])),_:1}),n.createVNode(E,{value:!1},{default:n.withCtx(()=>t[48]||(t[48]=[n.createTextVNode("Hide")])),_:1})]),_:1},8,["modelValue","onChange"])]),_:1}),n.createVNode(w,{class:"backgroundSpacer"}),n.createVNode(w,{class:"backgroundText"},{default:n.withCtx(()=>t[49]||(t[49]=[n.createTextVNode("Change background")])),_:1}),n.createVNode(w,{class:"backgroundControl"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.availableBackground,I=>(n.openBlock(),n.createElementBlock("div",{key:I,class:n.normalizeClass(["backgroundChoice",I,I==e.currentBackground?"active":""]),onClick:L=>r.backgroundChangeCallback(I)},null,10,nb))),128))]),_:1})])]),_:1},8,["virtual-ref"]),n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(["settings-group",{open:e.drawerOpen,close:!e.drawerOpen}])},[o.showOpenMapButton?(n.openBlock(),n.createBlock(w,{key:0},{default:n.withCtx(()=>[n.createVNode(f,{visible:e.hoverVisibilities[4].value,content:"Open new map",placement:"right",teleported:!1,"popper-class":"flatmap-popper",ref:"openMapPopover"},{reference:n.withCtx(()=>[o.enableOpenMapUI&&o.openMapOptions.length>0?(n.openBlock(),n.createElementBlock("div",{key:0,ref:"openMapRef",class:"icon-button-container",onMouseover:t[25]||(t[25]=I=>r.showTooltip(4)),onMouseout:t[26]||(t[26]=I=>r.hideTooltip(4))},[n.createVNode(y,{icon:"openMap",class:"icon-button open-map-button"})],544)):n.createCommentVNode("",!0)]),_:1},8,["visible"])]),_:1})):n.createCommentVNode("",!0),o.showLocalSettings?(n.openBlock(),n.createBlock(w,{key:1},{default:n.withCtx(()=>[n.createVNode(f,{content:"Change settings",placement:"right",visible:e.hoverVisibilities[5].value,teleported:!1,trigger:"manual","popper-class":"flatmap-popper",ref:"settingsPopover"},{reference:n.withCtx(()=>[n.createElementVNode("div",{ref:"backgroundIconRef",class:"icon-button-container",onMouseover:t[27]||(t[27]=I=>r.showTooltip(5)),onMouseout:t[28]||(t[28]=I=>r.hideTooltip(5))},[n.createVNode(y,{icon:"changeBckgd",class:"icon-button"})],544)]),_:1},8,["visible"])]),_:1})):n.createCommentVNode("",!0)],2),[[n.vShow,!o.disableUI]]),e.tooltipDisplay?(n.openBlock(),n.createBlock(B,{key:4,ref:"tooltip",class:"tooltip",annotationEntry:e.annotationEntry,tooltipEntry:e.tooltipEntry,annotationDisplay:e.viewingMode==="Annotation",onAnnotation:r.commitAnnotationEvent,onOnActionClick:r.onActionClick},null,8,["annotationEntry","tooltipEntry","annotationDisplay","onAnnotation","onOnActionClick"])):n.createCommentVNode("",!0)])])),[[x,e.loading]])}const gi=st(Uy,[["render",ob],["__scopeId","data-v-6acb5f28"]]),Is={"NCBITaxon:10114":"01fedbf9-d783-509c-a10c-827941ab13da","NCBITaxon:9823":"a336ac04-24db-561f-a25f-1c994fe17410","NCBITaxon:9606":"42ed6323-f645-5fbe-bada-9581819cf689","NCBITaxon:10090":"25285fab-48a0-5620-a6a0-f9a0374837d5","NCBITaxon:9685":"73060497-46a6-52bf-b975-cac511c127cb"},ib={name:"MultiFlatmapVuer",components:{Col:an,Row:on,Option:li,Select:qn,Popover:rn,FlatmapVuer:gi,FlatmapError:Yn},created:function(){this.loadMapManager()},mounted:function(){this.initialise(),mi.on("onActionClick",e=>{this.resourceSelected(e)}),mi.on("open-pubmed-url",e=>{this.$emit("open-pubmed-url",e)})},methods:{initialise:function(){return this.multiflatmapError=null,new Promise(e=>{if(this.requireInitialisation){this.requireInitialisation=!1;const t=new AbortController,o=t.signal,i=setTimeout(()=>t.abort(),5e3);fetch(this.flatmapAPI,{signal:o}).then(a=>{if(!a.ok){if(a.status===404)return this.multiflatmapError={},this.multiflatmapError.title="MultiFlatmap Error!",this.multiflatmapError.messages=[`Sorry, the component could not be loaded because the specified
29
29
  flatmap API endpoint is incorrect. Please check the endpoint URL
30
- or contact support if the problem persists.`],this.initialised=!0,e(),this.resolveList.forEach(a=>a()),Promise.reject({handled:!0});throw new Error(`HTTP ${r.status}: ${r.statusText}`)}return r.json()}).then(r=>{if(r&&r.status_code===404){console.error("Flatmap API endpoint is incorrect",r),this.multiflatmapError={},this.multiflatmapError.title="MultiFlatmap Error!",this.multiflatmapError.messages=[`Sorry, the component could not be loaded because the specified
30
+ or contact support if the problem persists.`],this.initialised=!0,e(),this.resolveList.forEach(r=>r()),Promise.reject({handled:!0});throw new Error(`HTTP ${a.status}: ${a.statusText}`)}return a.json()}).then(a=>{if(a&&a.status_code===404){console.error("Flatmap API endpoint is incorrect",a),this.multiflatmapError={},this.multiflatmapError.title="MultiFlatmap Error!",this.multiflatmapError.messages=[`Sorry, the component could not be loaded because the specified
31
31
  flatmap API endpoint is incorrect. Please check the endpoint URL
32
- or contact support if the problem persists.`],this.initialised=!0,e(),this.resolveList.forEach(s=>s());return}Object.keys(this.availableSpecies).forEach(s=>{const l=this.availableSpecies[s].uuid;if(l&&r.length&&r.map(c=>c.uuid).indexOf(l)>0)this.speciesList[s]=this.availableSpecies[s];else for(let c=0;c<r.length;c++)if(this.availableSpecies[s].taxo===r[c].taxon)if(this.availableSpecies[s].biologicalSex){if(r[c].biologicalSex&&r[c].biologicalSex===this.availableSpecies[s].biologicalSex){this.speciesList[s]=this.availableSpecies[s];break}}else{this.speciesList[s]=this.availableSpecies[s];break}});let a=this.initial;if(this.state){const s=this.state.state;(!s||!s.uuid&&!s.entry)&&this.state.species?a=this.state.species:a=void 0}a&&(a&&this.speciesList[a]!==void 0?this.activeSpecies=a:this.activeSpecies=Object.keys(this.speciesList)[0],this.setSpecies(this.activeSpecies,this.state?this.state.state:void 0,5)),this.initialised=!0,e(),this.resolveList.forEach(s=>{s()})}).catch(r=>{r&&r.handled||(console.error("Error fetching flatmap:",r),this.initialised=!0,this.multiflatmapError={},this.multiflatmapError.title="MultiFlatmap Error!",this.multiflatmapError.messages=[`Sorry, the component could not be loaded due to an unexpected error.
33
- Please try again later or contact support if the problem persists.`],e(),this.resolveList.forEach(a=>{a()}))}).finally(()=>{clearTimeout(i)})}else this.initialised?e():this.resolveList.push(e)})},loadMapManager:function(){this.mapManagerRef||(this.mapManager?this.mapManagerRef=this.mapManager:(this.mapManagerRef=n.markRaw(new ki.MapViewer(this.flatmapAPI,{container:void 0})),this.$emit("mapmanager-loaded",this.mapManagerRef)))},resourceSelected:function(e){this.$emit("resource-selected",e)},onContextRestored:function(e){this.$emit("context-restored",e)},FlatmapReady:function(e){this.$emit("ready",e)},getCurrentFlatmap:function(){return this.$refs[this.activeSpecies][0]},panZoomCallback:function(e){this.$emit("pan-zoom-callback",e)},onAnnotationClose:function(){this.$emit("annotation-close")},onAnnotationOpen:function(e){this.$emit("annotation-open",e)},updateOfflineAnnotationEnabled:function(e){this.$emit("update-offline-annotation-enabled",e)},onConnectivityInfoClose:function(){this.$emit("connectivity-info-close")},onConnectivityInfoOpen:function(e){this.$emit("connectivity-info-open",e)},onConnectivityError:function(e){this.$emit("connectivity-error",e)},onNeuronConnectionFeatureClick:function(e){this.$emit("neuron-connection-feature-click",e)},onSelectionsDataChanged:function(e){this.$emit("pathway-selection-changed",e)},showPopup:function(e,t,o){this.getCurrentFlatmap().showPopup(e,t,o)},showMarkerPopup:function(e,t,o){this.getCurrentFlatmap().showMarkerPopup(e,t,o)},setSpecies:function(e,t,o){if(this.$refs&&e in this.$refs)this.activeSpecies=e,this.$refs[this.activeSpecies][0].createFlatmap(t),this.$emit("flatmapChanged",this.activeSpecies);else if(o){const i=o-1;i>=0&&this.$nextTick(()=>{this.setSpecies(e,t,i)})}},viewLatestMap:function(e){const t=Object.keys(this.speciesList);for(let o=0;o<t.length;o++){const i=this.speciesList[t[o]];if(!i.isLegacy&&i.taxo===e.entry&&i.biologicalSex===e.biologicalSex){this.setSpecies(t[o],e,0);return}}},createLegacyEntry:function(e,t,o){if(o&&t){let i="Legacy";return e.species&&(e.species.slice(0,6)==="Legacy"?i=e.species:i=i+` ${e.species}`),this.speciesList[i]={taxo:t,isLegacy:!0,displayWarning:!0},{species:i,state:{entry:t,uuid:o,viewport:e.state.viewport,searchTerm:e.state.searchTerm}}}},updateState:function(e){return new Promise(t=>{if(e&&e.state){const o=e.state;if(o.uuid){if(o.entry)return new Promise(()=>{const i={taxon:o.entry};o.biologicalSex&&(i.biologicalSex=o.biologicalSex),this.mapManagerRef.findMap(i).then(r=>{if(r.uuid!==o.uuid)return this.createLegacyEntry(e,o.entry,o.uuid)}).then(r=>{t(r||e)}).catch(()=>{t(e)})})}else if(o.entry){const i=o.entry in Es?Es[o.entry]:void 0,r=this.createLegacyEntry(e,o.entry,i);t(r||e)}}t(e)})},getState:function(){let e={species:this.activeSpecies,state:void 0},t=this.getCurrentFlatmap();return e.state=t.getState(),e},setState:function(e){e&&(this.loadMapManager(),this.updateState(e).then(t=>{this.initialise().then(()=>{t.species&&t.species!==this.activeSpecies?this.setSpecies(t.species,t.state,5):t.state&&this.getCurrentFlatmap().setState(t.state)})}))},activateTooltipByIndex:function(e){return e===this.helpModeActiveItem&&this.helpMode},onHelpModeLastItem:function(e){e&&this.$emit("help-mode-last-item",!0)},onTooltipShown:function(){this.$emit("shown-tooltip")},onMapTooltipShown:function(){this.$emit("shown-map-tooltip")},changeViewingMode:function(e){this.getCurrentFlatmap().changeViewingMode(e)},setConnectionType:function(e){this.getCurrentFlatmap().setConnectionType(e)}},props:{initial:{type:String,default:""},minZoom:{type:Number,default:1},renderAtMounted:{type:Boolean,default:!1},render:{type:Boolean,default:!0},helpMode:{type:Boolean,default:!1},helpModeActiveItem:{type:Number,default:0},helpModeDialog:{type:Boolean,default:!1},helpModeLastItem:{type:Boolean,default:!1},displayMinimap:{type:Boolean,default:!1},showStarInLegend:{type:Boolean,default:!1},enableOpenMapUI:{type:Boolean,default:!1},openMapOptions:{type:Array},availableSpecies:{type:Object,default:function(){return{"Human Female":{taxo:"NCBITaxon:9606",biologicalSex:"PATO:0000383",iconClass:"mapicon-icon_human",displayWarning:!0},"Human Male":{taxo:"NCBITaxon:9606",biologicalSex:"PATO:0000384",iconClass:"mapicon-icon_human",displayWarning:!0},Rat:{taxo:"NCBITaxon:10114",iconClass:"mapicon-icon_rat",displayLatestChanges:!0},Mouse:{taxo:"NCBITaxon:10090",iconClass:"mapicon-icon_mouse",displayWarning:!0},Pig:{taxo:"NCBITaxon:9823",iconClass:"mapicon-icon_pig",displayWarning:!0},Cat:{taxo:"NCBITaxon:9685",iconClass:"mapicon-icon_cat",displayWarning:!0}}}},state:{type:Object,default:void 0},mapManager:{type:Object,default:void 0},flatmapAPI:{type:String,default:"https://mapcore-demo.org/current/flatmap/v3/"},sparcAPI:{type:String,default:"https://api.sparc.science/"},disableUI:{type:Boolean,default:!1},connectivityInfoSidebar:{type:Boolean,default:!1},annotationSidebar:{type:Boolean,default:!1},showLocalSettings:{type:Boolean,default:!0},showOpenMapButton:{type:Boolean,default:!0},showPathwayFilter:{type:Boolean,default:!0},externalLegends:{type:Array,default:function(){return[]}}},data:function(){return{activeSpecies:void 0,speciesList:{},requireInitialisation:!0,resolveList:n.markRaw([]),initialised:!1,mapManagerRef:void 0,multiflatmapError:null}},watch:{state:{handler:function(e){this.setState(e)},immediate:!0,deep:!0},activeSpecies:{handler:function(e,t){t&&this.$refs[t][0].forceContextLoss()}}}},ob={class:"multi-container",ref:"multiContainer"},ib={key:0,style:{position:"absolute","z-index":"100"}},rb={class:"select-box-icon"};function ab(e,t,o,i,r,a){const s=li,l=qn,c=an,d=gi,f=Yn;return n.openBlock(),n.createElementBlock("div",ob,[o.disableUI?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",ib,[t[2]||(t[2]=n.createElementVNode("div",{class:"species-display-text"},"Species",-1)),n.createVNode(c,{content:"Select a species",placement:"right",trigger:"manual","popper-class":"flatmap-popper flatmap-teleport-popper right-popper",width:"max-content",visible:a.activateTooltipByIndex(0),teleported:!1,ref:"selectPopover"},{reference:n.withCtx(()=>[n.createVNode(l,{id:"flatmap-select",teleported:!1,modelValue:e.activeSpecies,"onUpdate:modelValue":t[0]||(t[0]=u=>e.activeSpecies=u),placeholder:"Select",class:"select-box","popper-class":"flatmap-dropdown",onChange:a.setSpecies},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.speciesList,(u,p)=>(n.openBlock(),n.createBlock(s,{key:p,label:p,value:p},{default:n.withCtx(()=>[n.createElementVNode("span",rb,[n.createElementVNode("i",{class:n.normalizeClass(u.iconClass)},null,2)]),n.createTextVNode(" "+n.toDisplayString(p),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["visible"])])),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.speciesList,(u,p)=>n.withDirectives((n.openBlock(),n.createBlock(d,{key:p,entry:u.taxo,uuid:u.uuid,biologicalSex:u.biologicalSex,displayWarning:u.displayWarning,displayLatestChanges:u.displayLatestChanges,isLegacy:u.isLegacy,ref_for:!0,ref:p,enableOpenMapUI:o.enableOpenMapUI,openMapOptions:o.openMapOptions,disableUI:o.disableUI,onContextRestored:a.onContextRestored,onViewLatestMap:a.viewLatestMap,onResourceSelected:a.resourceSelected,onReady:a.FlatmapReady,onPanZoomCallback:a.panZoomCallback,annotationSidebar:o.annotationSidebar,onAnnotationOpen:a.onAnnotationOpen,onAnnotationClose:a.onAnnotationClose,onUpdateOfflineAnnotationEnabled:a.updateOfflineAnnotationEnabled,connectivityInfoSidebar:o.connectivityInfoSidebar,onConnectivityInfoOpen:a.onConnectivityInfoOpen,onConnectivityInfoClose:a.onConnectivityInfoClose,onConnectivityError:a.onConnectivityError,onNeuronConnectionFeatureClick:a.onNeuronConnectionFeatureClick,onOpenMap:t[1]||(t[1]=g=>e.$emit("open-map",g)),onPathwaySelectionChanged:a.onSelectionsDataChanged,minZoom:o.minZoom,helpMode:e.activeSpecies==p&&o.helpMode,helpModeActiveItem:o.helpModeActiveItem,helpModeDialog:o.helpModeDialog,helpModeInitialIndex:-2,onHelpModeLastItem:a.onHelpModeLastItem,onShownTooltip:a.onTooltipShown,onShownMapTooltip:a.onMapTooltipShown,renderAtMounted:o.renderAtMounted,render:o.render&&e.activeSpecies==p,displayMinimap:o.displayMinimap,showStarInLegend:o.showStarInLegend,style:{height:"100%"},mapManager:e.mapManagerRef,flatmapAPI:o.flatmapAPI,sparcAPI:o.sparcAPI,showLocalSettings:o.showLocalSettings,showOpenMapButton:o.showOpenMapButton,showPathwayFilter:o.showPathwayFilter,externalLegends:o.externalLegends},null,8,["entry","uuid","biologicalSex","displayWarning","displayLatestChanges","isLegacy","enableOpenMapUI","openMapOptions","disableUI","onContextRestored","onViewLatestMap","onResourceSelected","onReady","onPanZoomCallback","annotationSidebar","onAnnotationOpen","onAnnotationClose","onUpdateOfflineAnnotationEnabled","connectivityInfoSidebar","onConnectivityInfoOpen","onConnectivityInfoClose","onConnectivityError","onNeuronConnectionFeatureClick","onPathwaySelectionChanged","minZoom","helpMode","helpModeActiveItem","helpModeDialog","onHelpModeLastItem","onShownTooltip","onShownMapTooltip","renderAtMounted","render","displayMinimap","showStarInLegend","mapManager","flatmapAPI","sparcAPI","showLocalSettings","showOpenMapButton","showPathwayFilter","externalLegends"])),[[n.vShow,e.activeSpecies==p]])),128)),e.multiflatmapError?(n.openBlock(),n.createBlock(f,{key:1,flatmapError:e.multiflatmapError},null,8,["flatmapError"])):n.createCommentVNode("",!0)],512)}const sb=st(nb,[["render",ab],["__scopeId","data-v-1d2454a8"]]);z.FlatmapQueries=bs,z.FlatmapVuer=gi,z.MultiFlatmapVuer=sb,z.getKnowledgeSource=Zn,z.getKnowledgeSourceFromProvenance=ws,z.loadAndStoreKnowledge=Cs,Object.defineProperty(z,Symbol.toStringTag,{value:"Module"})});
32
+ or contact support if the problem persists.`],this.initialised=!0,e(),this.resolveList.forEach(s=>s());return}Object.keys(this.availableSpecies).forEach(s=>{const l=this.availableSpecies[s].uuid;if(l&&a.length&&a.map(c=>c.uuid).indexOf(l)>0)this.speciesList[s]=this.availableSpecies[s];else for(let c=0;c<a.length;c++)if(this.availableSpecies[s].taxo===a[c].taxon)if(this.availableSpecies[s].biologicalSex){if(a[c].biologicalSex&&a[c].biologicalSex===this.availableSpecies[s].biologicalSex){this.speciesList[s]=this.availableSpecies[s];break}}else{this.speciesList[s]=this.availableSpecies[s];break}});let r=this.initial;if(this.state){const s=this.state.state;(!s||!s.uuid&&!s.entry)&&this.state.species?r=this.state.species:r=void 0}r&&(r&&this.speciesList[r]!==void 0?this.activeSpecies=r:this.activeSpecies=Object.keys(this.speciesList)[0],this.setSpecies(this.activeSpecies,this.state?this.state.state:void 0,5)),this.initialised=!0,e(),this.resolveList.forEach(s=>{s()})}).catch(a=>{a&&a.handled||(console.error("Error fetching flatmap:",a),this.initialised=!0,this.multiflatmapError={},this.multiflatmapError.title="MultiFlatmap Error!",this.multiflatmapError.messages=[`Sorry, the component could not be loaded due to an unexpected error.
33
+ Please try again later or contact support if the problem persists.`],e(),this.resolveList.forEach(r=>{r()}))}).finally(()=>{clearTimeout(i)})}else this.initialised?e():this.resolveList.push(e)})},loadMapManager:function(){this.mapManagerRef||(this.mapManager?this.mapManagerRef=this.mapManager:(this.mapManagerRef=n.markRaw(new ki.MapViewer(this.flatmapAPI,{container:void 0})),this.$emit("mapmanager-loaded",this.mapManagerRef)))},resourceSelected:function(e){this.$emit("resource-selected",e)},onContextRestored:function(e){this.$emit("context-restored",e)},FlatmapReady:function(e){this.$emit("ready",e)},getCurrentFlatmap:function(){return this.$refs[this.activeSpecies][0]},panZoomCallback:function(e){this.$emit("pan-zoom-callback",e)},onAnnotationClose:function(){this.$emit("annotation-close")},onAnnotationOpen:function(e){this.$emit("annotation-open",e)},updateOfflineAnnotationEnabled:function(e){this.$emit("update-offline-annotation-enabled",e)},onConnectivityInfoClose:function(){this.$emit("connectivity-info-close")},onConnectivityInfoOpen:function(e){this.$emit("connectivity-info-open",e)},onConnectivityError:function(e){this.$emit("connectivity-error",e)},onNeuronConnectionFeatureClick:function(e){this.$emit("neuron-connection-feature-click",e)},onSelectionsDataChanged:function(e){this.$emit("pathway-selection-changed",e)},showPopup:function(e,t,o){this.getCurrentFlatmap().showPopup(e,t,o)},showMarkerPopup:function(e,t,o){this.getCurrentFlatmap().showMarkerPopup(e,t,o)},setSpecies:function(e,t,o){if(this.$refs&&e in this.$refs)this.activeSpecies=e,this.$refs[this.activeSpecies][0].createFlatmap(t),this.$emit("flatmapChanged",this.activeSpecies);else if(o){const i=o-1;i>=0&&this.$nextTick(()=>{this.setSpecies(e,t,i)})}},viewLatestMap:function(e){const t=Object.keys(this.speciesList);for(let o=0;o<t.length;o++){const i=this.speciesList[t[o]];if(!i.isLegacy&&i.taxo===e.entry&&i.biologicalSex===e.biologicalSex){this.setSpecies(t[o],e,0);return}}},createLegacyEntry:function(e,t,o){if(o&&t){let i="Legacy";return e.species&&(e.species.slice(0,6)==="Legacy"?i=e.species:i=i+` ${e.species}`),this.speciesList[i]={taxo:t,isLegacy:!0,displayWarning:!0},{species:i,state:{entry:t,uuid:o,viewport:e.state.viewport,searchTerm:e.state.searchTerm}}}},updateState:function(e){return new Promise(t=>{if(e&&e.state){const o=e.state;if(o.uuid){if(o.entry)return new Promise(()=>{const i={taxon:o.entry};o.biologicalSex&&(i.biologicalSex=o.biologicalSex),this.mapManagerRef.findMap(i).then(a=>{if(a.uuid!==o.uuid)return this.createLegacyEntry(e,o.entry,o.uuid)}).then(a=>{t(a||e)}).catch(()=>{t(e)})})}else if(o.entry){const i=o.entry in Is?Is[o.entry]:void 0,a=this.createLegacyEntry(e,o.entry,i);t(a||e)}}t(e)})},getState:function(){let e={species:this.activeSpecies,state:void 0},t=this.getCurrentFlatmap();return e.state=t.getState(),e},setState:function(e){e&&(this.loadMapManager(),this.updateState(e).then(t=>{this.initialise().then(()=>{t.species&&t.species!==this.activeSpecies?this.setSpecies(t.species,t.state,5):t.state&&this.getCurrentFlatmap().setState(t.state)})}))},activateTooltipByIndex:function(e){return e===this.helpModeActiveItem&&this.helpMode},onHelpModeLastItem:function(e){e&&this.$emit("help-mode-last-item",!0)},onTooltipShown:function(){this.$emit("shown-tooltip")},onMapTooltipShown:function(){this.$emit("shown-map-tooltip")},changeViewingMode:function(e){this.getCurrentFlatmap().changeViewingMode(e)},setConnectionType:function(e){this.getCurrentFlatmap().setConnectionType(e)}},props:{initial:{type:String,default:""},minZoom:{type:Number,default:1},renderAtMounted:{type:Boolean,default:!1},render:{type:Boolean,default:!0},helpMode:{type:Boolean,default:!1},helpModeActiveItem:{type:Number,default:0},helpModeDialog:{type:Boolean,default:!1},helpModeLastItem:{type:Boolean,default:!1},displayMinimap:{type:Boolean,default:!1},showStarInLegend:{type:Boolean,default:!1},enableOpenMapUI:{type:Boolean,default:!1},openMapOptions:{type:Array},availableSpecies:{type:Object,default:function(){return{"Human Female":{taxo:"NCBITaxon:9606",biologicalSex:"PATO:0000383",iconClass:"mapicon-icon_human",displayWarning:!0},"Human Male":{taxo:"NCBITaxon:9606",biologicalSex:"PATO:0000384",iconClass:"mapicon-icon_human",displayWarning:!0},Rat:{taxo:"NCBITaxon:10114",iconClass:"mapicon-icon_rat",displayLatestChanges:!0},Mouse:{taxo:"NCBITaxon:10090",iconClass:"mapicon-icon_mouse",displayWarning:!0},Pig:{taxo:"NCBITaxon:9823",iconClass:"mapicon-icon_pig",displayWarning:!0},Cat:{taxo:"NCBITaxon:9685",iconClass:"mapicon-icon_cat",displayWarning:!0}}}},state:{type:Object,default:void 0},mapManager:{type:Object,default:void 0},flatmapAPI:{type:String,default:"https://mapcore-demo.org/current/flatmap/v3/"},sparcAPI:{type:String,default:"https://api.sparc.science/"},disableUI:{type:Boolean,default:!1},connectivityInfoSidebar:{type:Boolean,default:!1},annotationSidebar:{type:Boolean,default:!1},showLocalSettings:{type:Boolean,default:!0},showOpenMapButton:{type:Boolean,default:!0},showPathwayFilter:{type:Boolean,default:!0},externalLegends:{type:Array,default:function(){return[]}}},data:function(){return{activeSpecies:void 0,speciesList:{},requireInitialisation:!0,resolveList:n.markRaw([]),initialised:!1,mapManagerRef:void 0,multiflatmapError:null}},watch:{state:{handler:function(e){this.setState(e)},immediate:!0,deep:!0},activeSpecies:{handler:function(e,t){t&&this.$refs[t][0].forceContextLoss()}}}},ab={class:"multi-container",ref:"multiContainer"},rb={key:0,style:{position:"absolute","z-index":"100"}},sb={class:"select-box-icon"};function lb(e,t,o,i,a,r){const s=li,l=qn,c=rn,d=gi,f=Yn;return n.openBlock(),n.createElementBlock("div",ab,[o.disableUI?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",rb,[t[2]||(t[2]=n.createElementVNode("div",{class:"species-display-text"},"Species",-1)),n.createVNode(c,{content:"Select a species",placement:"right",trigger:"manual","popper-class":"flatmap-popper flatmap-teleport-popper right-popper",width:"max-content",visible:r.activateTooltipByIndex(0),teleported:!1,ref:"selectPopover"},{reference:n.withCtx(()=>[n.createVNode(l,{id:"flatmap-select",teleported:!1,modelValue:e.activeSpecies,"onUpdate:modelValue":t[0]||(t[0]=u=>e.activeSpecies=u),placeholder:"Select",class:"select-box","popper-class":"flatmap-dropdown",onChange:r.setSpecies},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.speciesList,(u,p)=>(n.openBlock(),n.createBlock(s,{key:p,label:p,value:p},{default:n.withCtx(()=>[n.createElementVNode("span",sb,[n.createElementVNode("i",{class:n.normalizeClass(u.iconClass)},null,2)]),n.createTextVNode(" "+n.toDisplayString(p),1)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["visible"])])),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.speciesList,(u,p)=>n.withDirectives((n.openBlock(),n.createBlock(d,{key:p,entry:u.taxo,uuid:u.uuid,biologicalSex:u.biologicalSex,displayWarning:u.displayWarning,displayLatestChanges:u.displayLatestChanges,isLegacy:u.isLegacy,ref_for:!0,ref:p,enableOpenMapUI:o.enableOpenMapUI,openMapOptions:o.openMapOptions,disableUI:o.disableUI,onContextRestored:r.onContextRestored,onViewLatestMap:r.viewLatestMap,onResourceSelected:r.resourceSelected,onReady:r.FlatmapReady,onPanZoomCallback:r.panZoomCallback,annotationSidebar:o.annotationSidebar,onAnnotationOpen:r.onAnnotationOpen,onAnnotationClose:r.onAnnotationClose,onUpdateOfflineAnnotationEnabled:r.updateOfflineAnnotationEnabled,connectivityInfoSidebar:o.connectivityInfoSidebar,onConnectivityInfoOpen:r.onConnectivityInfoOpen,onConnectivityInfoClose:r.onConnectivityInfoClose,onConnectivityError:r.onConnectivityError,onNeuronConnectionFeatureClick:r.onNeuronConnectionFeatureClick,onOpenMap:t[1]||(t[1]=g=>e.$emit("open-map",g)),onPathwaySelectionChanged:r.onSelectionsDataChanged,minZoom:o.minZoom,helpMode:e.activeSpecies==p&&o.helpMode,helpModeActiveItem:o.helpModeActiveItem,helpModeDialog:o.helpModeDialog,helpModeInitialIndex:-2,onHelpModeLastItem:r.onHelpModeLastItem,onShownTooltip:r.onTooltipShown,onShownMapTooltip:r.onMapTooltipShown,renderAtMounted:o.renderAtMounted,render:o.render&&e.activeSpecies==p,displayMinimap:o.displayMinimap,showStarInLegend:o.showStarInLegend,style:{height:"100%"},mapManager:e.mapManagerRef,flatmapAPI:o.flatmapAPI,sparcAPI:o.sparcAPI,showLocalSettings:o.showLocalSettings,showOpenMapButton:o.showOpenMapButton,showPathwayFilter:o.showPathwayFilter,externalLegends:o.externalLegends},null,8,["entry","uuid","biologicalSex","displayWarning","displayLatestChanges","isLegacy","enableOpenMapUI","openMapOptions","disableUI","onContextRestored","onViewLatestMap","onResourceSelected","onReady","onPanZoomCallback","annotationSidebar","onAnnotationOpen","onAnnotationClose","onUpdateOfflineAnnotationEnabled","connectivityInfoSidebar","onConnectivityInfoOpen","onConnectivityInfoClose","onConnectivityError","onNeuronConnectionFeatureClick","onPathwaySelectionChanged","minZoom","helpMode","helpModeActiveItem","helpModeDialog","onHelpModeLastItem","onShownTooltip","onShownMapTooltip","renderAtMounted","render","displayMinimap","showStarInLegend","mapManager","flatmapAPI","sparcAPI","showLocalSettings","showOpenMapButton","showPathwayFilter","externalLegends"])),[[n.vShow,e.activeSpecies==p]])),128)),e.multiflatmapError?(n.openBlock(),n.createBlock(f,{key:1,flatmapError:e.multiflatmapError},null,8,["flatmapError"])):n.createCommentVNode("",!0)],512)}const cb=st(ib,[["render",lb],["__scopeId","data-v-1d2454a8"]]);z.FlatmapQueries=ws,z.FlatmapVuer=gi,z.MultiFlatmapVuer=cb,z.getKnowledgeSource=Zn,z.getKnowledgeSourceFromProvenance=Cs,z.loadAndStoreKnowledge=vs,Object.defineProperty(z,Symbol.toStringTag,{value:"Module"})});