ray-template/js/directives-jkwfeMNs.js

4041 lines
2.4 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/dashboard-DKMln7_M.js","js/Close-D8ap5Wyu.js","js/toString-BWDzaUQG.js","js/AppPageHeader-CO0MytOU.js","css/AppPageHeader-Cmbeex-u.css","js/AppShareLink-5MrcMhap.js","js/utils-CWEcFevi.js","js/_toKey-BqfG5Sv9.js","js/preload-helper-B5zr4nmU.js","css/AppShareLink-DuLpNZwg.css","js/DescriptionsItem-_nNI9Jvz.js","js/InputNumber-Bc7oBMaF.js","css/dashboard-B0Tmmw0j.css","js/axios-CAZjkYUE.js","js/axios-mAkDPGD8.js","js/DemoPage-CMRMo_Jz.js","css/DemoPage-B2axJfLX.css","js/DemoResult-BGvfyduH.js","js/barcode-demo-DBC00tBi.js","js/cache-demo-BV16SGxO.js","js/RadioButton-BJ41dc68.js","js/context-menu-f6TP0-Tn.js","js/useContextmenuCoordinate-BJl38S6g.js","js/effect-dispose-C4M3LySX.js","js/directive-CbB7oUuG.js","js/Alert-BUxnvOqF.js","js/doc-DldMqOMb.js","js/draggable-card--XFtfy2t.js","js/echart-BEyzkMbN.js","css/echart-CWexkpE6.css","js/flow-demo-CdYHDyki.js","js/form-B4Ps2wbl.js","js/web-hooks-Dh_gXum8.js","js/HookExample-CMNt7_yt.js","js/example-focus-BDYDJaky.js","css/hooks-CHBAZRoO.css","js/iframe-CWjbkV9h.js","js/layout-demo-DJw1Z8R2.js","js/modal-demo-CxOk1FX8.js","js/multi-menu-one-ujp97kGd.js","js/CacheRouteExample-DtsaNKPx.js","js/sub-menu-other-DzZfQolX.js","js/multi-menu-two-one-Bj4Jsxnd.js","js/precision-C0oCSHDS.js","js/qrcode-BXgxMvip.js","js/qrcode-C5hq4Ixo.js","js/rely-about-5z3Sh1X4.js","css/rely-about-bR5obMuP.css","js/router-demo-detail-d9xNgbIx.js","js/people-hNdz2wNj.js","js/router-demo-home-DYUiONFm.js","js/scroll-reveal-CvQUwNsw.js","css/scroll-reveal-attPPlqS.css","js/segment-BjNnQ3VU.js","js/svg-icons-Pansy1Zc.js","css/svg-icons-DGBbzeIL.css","js/auto-height-uzDE0u5O.js","js/people-BA0yvZ_x.js","js/people-C08APQny.js","js/basic-B44Wl_rq.js","js/columns-hC0JKoJc.js","js/controlled-BpuxVz4H.js","js/custom-X3PTb_R3.js","js/useTablePro-B4Jbduxv.js","js/hooks-output-BH0UqjH4.js","js/hooks-query-BfiOKpDr.js","js/person-BS5LqdTv.js","js/hooks-selection-CQXnB4lF.js","js/printing-bpOct_Wz.js","css/printing-Bs_5DdXD.css","js/remote-BI21TtQo.js","js/search-BrfYOWI3.js","css/search-C6pKRRcz.css","js/template-hooks-WDjNVMS5.js","js/visual-D_LZvZ45.js","js/download-json-DbeOpoOd.js","css/download-json-oSLQ5vu3.css","js/contract-Bd-rjgfA.js","js/route-management-BCo0uhZJ.js","js/login-z3SA6K94.js","css/login-kJyH12WM.css","js/Error404-DUaUhA8C.js","css/Error404-1t9cMIau.css"])))=>i.map(i=>d[i]);
import{At as e,D as t,E as n,G as r,J as i,L as a,M as o,N as s,P as c,R as l,T as u,U as d,V as f,W as p,X as m,Y as h,_ as g,a as _,b as v,c as y,d as b,et as x,f as S,g as C,h as w,j as T,k as E,kt as D,m as O,n as k,o as A,p as j,r as ee,s as te,tt as M,u as ne,v as re,y as ie,z as N}from"./toString-BWDzaUQG.js";import{$ as P,$t as ae,A as oe,An as se,At as ce,B as le,Bn as ue,Bt as de,C as fe,Cn as pe,Ct as me,D as F,Dn as he,Dt as ge,E as _e,En as I,Et as ve,F as ye,Fn as L,Ft as be,G as xe,Gn as Se,Gt as Ce,H as we,Hn as Te,Ht as Ee,I as De,In as Oe,It as ke,J as Ae,Jt as je,K as Me,Kt as Ne,L as Pe,Ln as Fe,Lt as Ie,M as Le,Mn as Re,Mt as ze,N as Be,Nn as Ve,Nt as He,O as Ue,On as We,Ot as Ge,P as Ke,Pn as qe,Pt as Je,Q as Ye,Qt as Xe,R as Ze,Rt as Qe,S as $e,Sn as et,St as tt,T as nt,Tn as rt,Tt as it,U as at,Un as ot,Ut as st,V as ct,Vn as lt,Vt as ut,W as dt,Wn as ft,Wt as pt,X as mt,Xt as ht,Y as gt,Yt as _t,Z as vt,Zt as yt,_ as R,_n as bt,_t as z,a as xt,an as St,at as Ct,b as wt,bn as Tt,bt as B,c as Et,cn as Dt,ct as Ot,d as kt,dn as At,dt as jt,en as Mt,et as Nt,f as Pt,fn as V,ft as Ft,g as It,gn as H,gt as U,h as Lt,hn as Rt,ht as zt,i as Bt,in as Vt,it as Ht,j as Ut,jn as Wt,jt as Gt,k as Kt,kn as qt,kt as Jt,l as Yt,ln as Xt,lt as Zt,m as Qt,mn as W,mt as $t,n as en,nn as tn,nt as G,o as nn,on as K,ot as rn,p as an,pn as q,pt as on,q as sn,qt as cn,r as ln,rn as un,rt as dn,s as fn,sn as pn,st as mn,t as hn,tn as gn,tt as _n,u as vn,un as yn,ut as bn,v as xn,vn as J,vt as Sn,w as Cn,wn,wt as Tn,x as En,xn as Dn,xt as On,y as kn,yn as Y,yt as X,z as An,zn as jn,zt as Mn}from"./Close-D8ap5Wyu.js";import{A as Nn,C as Pn,E as Fn,O as In,S as Ln,T as Rn,_ as zn,a as Bn,b as Vn,d as Hn,f as Un,g as Wn,h as Gn,i as Kn,k as eee,l as tee,m as nee,n as qn,o as ree,p as iee,t as Jn,u as Yn,v as Xn,w as Zn,x as Qn,y as aee}from"./utils-CWEcFevi.js";import{n as $n,r as er,t as tr}from"./_toKey-BqfG5Sv9.js";import{A as nr,B as rr,C as ir,D as ar,E as or,F as sr,G as cr,H as oee,I as lr,K as ur,L as dr,M as fr,N as pr,O as mr,P as hr,R as gr,S as see,T as _r,U as vr,V as yr,W as br,_ as xr,b as Sr,c as cee,d as lee,f as uee,g as Cr,h as wr,j as Tr,k as dee,l as fee,m as Er,n as Dr,o as Or,p as kr,q as Ar,r as jr,s as pee,t as Mr,u as Nr,v as mee,w as hee,x as Pr,y as Fr,z as Ir}from"./InputNumber-Bc7oBMaF.js";import{t as Lr}from"./preload-helper-B5zr4nmU.js";import{_ as Rr,a as zr,b as Br,c as Vr,d as Hr,f as Ur,g as Wr,h as Gr,i as gee,l as Kr,m as qr,n as _ee,o as vee,p as yee,r as bee,s as xee,t as Jr,u as See,v as Cee,x as Yr,y as wee}from"./schema-rQn3Oa0L.js";var Tee=Object.create,Xr=Object.defineProperty,Eee=Object.getOwnPropertyDescriptor,Dee=Object.getOwnPropertyNames,Oee=Object.getPrototypeOf,Zr=Object.prototype.hasOwnProperty,Qr=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),$r=(e,t)=>{let n={};for(var r in e)Xr(n,r,{get:e[r],enumerable:!0});return t||Xr(n,Symbol.toStringTag,{value:`Module`}),n},kee=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=Dee(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Zr.call(e,s)&&s!==n&&Xr(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Eee(t,s))||r.enumerable});return e},ei=(e,t,n)=>(n=e==null?{}:Tee(Oee(e)),kee(t||!e||!e.__esModule||!Zr.call(e,`default`)?Xr(n,`default`,{value:e,enumerable:!0}):n,e)),Aee=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var jee=typeof window<`u`,ti,ni=e=>ti=e,ri=Symbol();function ii(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var ai=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:typeof globalThis==`object`?globalThis:{HTMLElement:null};function Mee(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function oi(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){Nee(r.response,t,n)},r.onerror=function(){},r.send()}function si(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function ci(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(t)}}var li=typeof navigator==`object`?navigator:{userAgent:``},ui=/Macintosh/.test(li.userAgent)&&/AppleWebKit/.test(li.userAgent)&&!/Safari/.test(li.userAgent),Nee=jee?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!ui?Pee:`msSaveOrOpenBlob`in li?Fee:Iee:()=>{};function Pee(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?ci(r):si(r.href)?oi(e,t,n):(r.target=`_blank`,ci(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){ci(r)},0))}function Fee(e,t=`download`,n){if(typeof e==`string`){if(si(e))oi(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){ci(t)})}}else navigator.msSaveOrOpenBlob(Mee(e,n),t)}function Iee(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return oi(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(ai.HTMLElement))||`safari`in ai,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||ui)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}var{assign:Lee}=Object;function di(){let e=n(!0),t=e.run(()=>N({})),r=[],i=[],a=s({install(e){ni(a),a._a=e,e.provide(ri,a),e.config.globalProperties.$pinia=a,i.forEach(e=>r.push(e)),i=[]},use(e){return this._a?r.push(e):i.push(e),this},_p:r,_a:null,_e:e,_s:new Map,state:t});return a}function Ree(e){e._e.stop(),e._s.clear(),e._p.splice(0),e.state.value={},e._a=null}var fi=()=>{};function pi(e,n,r,i=fi){e.add(n);let a=()=>{e.delete(n)&&i()};return!r&&t()&&c(a),a}function mi(e,...t){e.forEach(e=>{e(...t)})}var zee=e=>e(),hi=Symbol(),gi=Symbol();function _i(e,t){e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(let n in t){if(!Object.hasOwn(t,n))continue;let i=t[n],a=e[n];if(ii(a)&&ii(i)&&Object.hasOwn(e,n)&&!T(i)&&!E(i)){e[n]=_i(a,i);let t=r(e)[n];T(t)&&o(t)&&x(t)}else e[n]=i}return e}var Bee=Symbol();function Vee(e){return!e||typeof e!=`object`||!Object.hasOwn(e,Bee)}var{assign:vi}=Object;function Hee(e){return!!(T(e)&&e.effect)}function Uee(e,t,n,r){let{state:i,actions:a,getters:o}=t,c=n.state.value[e],l;function u(){return c||(n.state.value[e]=i?i():{}),vi(h(n.state.value[e]),a,Object.keys(o||{}).reduce((t,r)=>(t[r]=s(V(()=>{ni(n);let t=n._s.get(e);return o[r].call(t,t)})),t),{}))}return l=yi(e,u,t,n,r,!0),l}function yi(e,t,i={},o,s,c){let l,u=vi({actions:{}},i),d={deep:!0},f,p,m=new Set,h=new Set,g,_=o.state.value[e];!c&&!_&&(o.state.value[e]={});let v;function y(t){let n;f=p=!1,typeof t==`function`?(t(o.state.value[e]),n={type:`patch function`,storeId:e,events:g}):(_i(o.state.value[e],t),n={type:`patch object`,payload:t,storeId:e,events:g});let r=v=Symbol();he().then(()=>{v===r&&(f=!0)}),p=!0,mi(m,n,o.state.value[e])}let b=c?function(){let{state:e}=i,t=e?e():{};this.$patch(e=>{vi(e,t)})}:fi;function x(){l.stop(),m.clear(),h.clear(),o._s.delete(e)}let S=(t,n=``)=>{if(hi in t)return t[gi]=n,t;let r=function(){ni(o);let n=Array.from(arguments),i=new Set,a=new Set;function s(e){i.add(e)}function c(e){a.add(e)}mi(h,{args:n,name:r[gi],store:w,after:s,onError:c});let l;try{l=t.apply(this&&this.$id===e?this:w,n)}catch(e){throw mi(a,e),e}return l instanceof Promise?l.then(e=>(mi(i,e),e)).catch(e=>(mi(a,e),Promise.reject(e))):(mi(i,l),l)};return r[hi]=!0,r[gi]=n,r},C={_p:o,$id:e,$onAction:pi.bind(null,h),$patch:y,$reset:b,$subscribe(t,n={}){if(m.has(t))return fi;let r=pi(m,t,n.detached,()=>i()),i=l.run(()=>Te(()=>o.state.value[e],r=>{(n.flush===`sync`?p:f)&&t({storeId:e,type:`direct`,events:g},r)},vi({},d,n)));return r},$dispose:x},w=a(C);o._s.set(e,w);let D=(o._a&&o._a.runWithContext||zee)(()=>o._e.run(()=>(l=n()).run(()=>t({action:S}))));for(let t in D){let n=D[t];T(n)&&!Hee(n)||E(n)?c||(_&&Vee(n)&&(T(n)?n.value=_[t]:((n instanceof Set||n instanceof Map)&&n.clear(),_i(n,_[t]))),o.state.value[e][t]=n):typeof n==`function`&&(D[t]=S(n,t),u.actions[t]=n)}return vi(w,D),vi(r(w),D),Object.defineProperty(w,"$state",{get:()=>o.state.value[e],set:e=>{y(t=>{vi(t,e)})}}),o._p.forEach(e=>{let t=l.run(()=>e({store:w,app:o._a,pinia:o,options:u}));vi(w,t)}),_&&c&&i.hydrate&&i.hydrate(w.$state,_),f=!0,p=!0,w}function bi(e,t,n){let r,i=typeof t==`function`;r=i?n:t;function a(n,a){let o=et();return n||=o?pe(ri,null):null,n&&ni(n),n=ti,n._s.has(e)||(i?yi(e,t,r,n):Uee(e,r,n)),n._s.get(e)}return a.$id=e,a}function Wee(e){let t=r(e),n={};for(let r in t){let a=t[r];a?.effect?n[r]=V({get:()=>e[r],set(t){e[r]=t}}):(T(a)||E(a))&&(n[r]=i(e,r))}return n}function Gee(e,t){if(e==null)return;let n=e;for(let e=0;e<t.length;e++){if(n===void 0||n[t[e]]===void 0)return;if(n===null||n[t[e]]===null)return null;n=n[t[e]]}return n}function xi(e,t,n){if(n.length===0)return t;let r=n[0];return n.length>1&&(t=xi(typeof e!=`object`||!e||!Object.prototype.hasOwnProperty.call(e,r)?Number.isInteger(Number(n[1]))?[]:{}:e[r],t,Array.prototype.slice.call(n,1))),Number.isInteger(Number(r))&&Array.isArray(e)?e.slice()[r]:Object.assign({},e,{[r]:t})}function Si(e,t){if(e==null||t.length===0)return e;if(t.length===1){if(e==null)return e;if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.slice.call(e,0).splice(t[0],1);let n={};for(let t in e)n[t]=e[t];return delete n[t[0]],n}if(e[t[0]]==null){if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.concat.call([],e);let n={};for(let t in e)n[t]=e[t];return n}return xi(e,Si(e[t[0]],Array.prototype.slice.call(t,1)),[t[0]])}function Ci(e,t){return t.map(e=>e.split(`.`)).map(t=>[t,Gee(e,t)]).filter(e=>e[1]!==void 0).reduce((e,t)=>xi(e,t[1],t[0]),{})}function wi(e,t){return t.map(e=>e.split(`.`)).reduce((e,t)=>Si(e,t),e)}function Ti(e,{storage:t,serializer:n,key:r,debug:i,pick:a,omit:o,beforeHydrate:s,afterHydrate:c},l,u=!0){try{u&&s?.(l);let i=t.getItem(r);if(i){let t=n.deserialize(i),r=a?Ci(t,a):t,s=o?wi(r,o):r;e.$patch(s)}u&&c?.(l)}catch{}}function Ei(e,{storage:t,serializer:n,key:r,debug:i,pick:a,omit:o}){try{let i=a?Ci(e,a):e,s=o?wi(i,o):i,c=n.serialize(s);t.setItem(r,c)}catch{}}function Kee(e,t){return typeof e==`function`?e(t):typeof e==`string`?e:t}function qee(e,t,n){let{pinia:r,store:i,options:{persist:a=n}}=e;if(!a)return;if(!(i.$id in r.state.value)){let e=r._s.get(i.$id.replace(`__hot:`,``));e&&Promise.resolve().then(()=>e.$persist());return}let o=(Array.isArray(a)?a:a===!0?[{}]:[a]).map(t);i.$hydrate=({runHooks:t=!0}={})=>{o.forEach(n=>{Ti(i,n,e,t)})},i.$persist=()=>{o.forEach(e=>{Ei(i.$state,e)})},o.forEach(t=>{Ti(i,t,e),i.$subscribe((e,n)=>Ei(n,t),{detached:!0})})}function Jee(e={}){return function(t){qee(t,n=>{let r=Kee(n.key,t.store.$id);return{key:(e.key?e.key:e=>e)(r),debug:n.debug??e.debug??!1,serializer:n.serializer??e.serializer??{serialize:e=>JSON.stringify(e),deserialize:e=>JSON.parse(e)},storage:n.storage??e.storage??window.localStorage,beforeHydrate:n.beforeHydrate??e.beforeHydrate,afterHydrate:n.afterHydrate??e.afterHydrate,pick:n.pick,omit:n.omit}},e.auto??!1)}}var Yee=Jee(),Xee={baseURL:``,withCredentials:!1,timeout:5e3,headers:{"Content-Type":`application/json`}};function Di(e,n){return t()?(c(e,n),!0):!1}var Oi=new WeakMap,Zee=(...e)=>{let n=e[0],r=Tt()?.proxy??t();if(r==null&&!et())throw Error(`injectLocal must be called in setup`);return r&&Oi.has(r)&&n in Oi.get(r)?Oi.get(r)[n]:pe(...e)},ki=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var Ai=e=>e!=null,Qee=Object.prototype.toString,$ee=e=>Qee.call(e)===`[object Object]`,ji=()=>{},ete=tte();function tte(){var e,t;return ki&&!!((e=window)!=null&&(e=e.navigator)!=null&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)==null||(t=t.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function nte(...e){if(e.length!==1)return i(...e);let t=e[0];return typeof t==`function`?l(u(()=>({get:t,set:ji}))):N(t)}function rte(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return`cancel`in e&&Object.assign(n,{cancel:e.cancel,flush:e.flush,isPending:e.isPending}),n}var Mi=e=>e();function ite(...e){let t=0,n,r=!0,i=ji,a,o,s,c,l;!T(e[0])&&typeof e[0]==`object`?{delay:o,trailing:s=!0,leading:c=!0,rejectOnCancel:l=!1}=e[0]:[o,s=!0,c=!0,l=!1]=e;let u=()=>{n&&(clearTimeout(n),n=void 0,i(),i=ji)};return e=>{let d=m(o),f=Date.now()-t,p=()=>a=e();return u(),d<=0?(t=Date.now(),p()):(f>d?(t=Date.now(),(c||!r)&&p()):s&&(a=new Promise((e,a)=>{i=l?a:e,n=setTimeout(()=>{t=Date.now(),r=!0,e(p()),u()},Math.max(0,d-f))})),!c&&!n&&(n=setTimeout(()=>r=!0,d)),r=!1,a)}}function ate(e=Mi,t={}){let{initialState:n=`active`}=t,r=nte(n===`active`);function i(){r.value=!1}function a(){r.value=!0}return{isActive:d(r),pause:i,resume:a,eventFilter:(...t)=>{r.value&&e(...t)}}}function Ni(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function Pi(e){return Array.isArray(e)?e:[e]}function ote(e){return e||Tt()}function Fi(e,t,n={}){let{eventFilter:r=Mi,...i}=n;return Te(e,rte(r,t),i)}function ste(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=ate(r,{initialState:i});return{stop:Fi(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}function Ii(e,t=!0,n){ote(n)?Ve(e,n):t?e():he(e)}function cte(e,t,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,a=p(!1),o;function s(){o&&=(clearTimeout(o),void 0)}function c(){a.value=!1,s()}function l(...n){i&&e(),s(),a.value=!0,o=setTimeout(()=>{a.value=!1,o=void 0,e(...n)},m(t))}return r&&(a.value=!0,ki&&l()),Di(c),{isPending:d(a),start:l,stop:c}}function lte(e,t,n){return Te(e,t,{...n,immediate:!0})}function ute(e,t,n={}){let{throttle:r=0,trailing:i=!0,leading:a=!0,...o}=n;return Fi(e,t,{...o,eventFilter:ite(r,i,a)})}var Li=ki?window:void 0;ki&&window.document,ki&&window.navigator,ki&&window.location;function Ri(e){let t=m(e);return t?.$el??t}function zi(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),n=V(()=>{let t=Pi(m(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return lte(()=>[n.value?.map(e=>Ri(e))??[Li].filter(e=>e!=null),Pi(m(n.value?e[1]:e[0])),Pi(M(n.value?e[2]:e[1])),m(n.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!e?.length||!n?.length||!r?.length)return;let s=$ee(i)?{...i}:i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}var Bi=!1;function dte(e,t,n={}){let{window:r=Li,ignore:i=[],capture:a=!0,detectIframe:o=!1,controls:s=!1}=n;if(!r)return s?{stop:ji,cancel:ji,trigger:ji}:ji;if(ete&&!Bi){Bi=!0;let e={passive:!0};Array.from(r.document.body.children).forEach(t=>t.addEventListener(`click`,ji,e)),r.document.documentElement.addEventListener(`click`,ji,e)}let c=!0,l=e=>m(i).some(t=>{if(typeof t==`string`)return Array.from(r.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{let n=Ri(t);return n&&(e.target===n||e.composedPath().includes(n))}});function u(e){let t=m(e);return t&&t.$.subTree.shapeFlag===16}function d(e,t){let n=m(e),r=n.$.subTree&&n.$.subTree.children;return r==null||!Array.isArray(r)?!1:r.some(e=>e.el===t.target||t.composedPath().includes(e.el))}let f=n=>{let r=Ri(e);n.target!=null&&(!(r instanceof Element)&&u(e)&&d(e,n)||r&&r!==n.target&&!n.composedPath().includes(r)&&(`detail`in n&&n.detail===0&&(c=!l(n)),c?t(n):c=!0))},p=!1,h=[zi(r,`click`,e=>{p||(p=!0,setTimeout(()=>{p=!1},0),f(e))},{passive:!0,capture:a}),zi(r,`pointerdown`,t=>{let n=Ri(e);c=!l(t)&&!(!n||t.composedPath().includes(n))},{passive:!0}),o&&zi(r,`blur`,n=>{setTimeout(()=>{let i=Ri(e),a=r.document.activeElement;for(;a?.shadowRoot;)a=a.shadowRoot.activeElement;a?.tagName===`IFRAME`&&!i?.contains(r.document.activeElement)&&t(n)},0)},{passive:!0})].filter(Boolean),g=()=>h.forEach(e=>e());return s?{stop:g,cancel:()=>{c=!1},trigger:e=>{c=!0,f(e),c=!1}}:g}function fte(){let e=p(!1),t=Tt();return t&&Ve(()=>{e.value=!0},t),e}function Vi(e){let t=fte();return V(()=>(t.value,!!e()))}function pte(e,t,n={}){let{window:r=Li,...i}=n,a,o=Vi(()=>r&&`MutationObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},c=V(()=>{let t=Pi(m(e)).map(Ri).filter(Ai);return new Set(t)}),l=Te(c,e=>{s(),o.value&&e.size&&(a=new MutationObserver(t),e.forEach(e=>a.observe(e,i)))},{immediate:!0,flush:`post`}),u=()=>a?.takeRecords(),d=()=>{l(),s()};return Di(d),{isSupported:o,stop:d,takeRecords:u}}var mte=Symbol(`vueuse-ssr-width`);function Hi(){let e=et()?Zee(mte,null):null;return typeof e==`number`?e:void 0}function Ui(e,t={}){let{window:n=Li,ssrWidth:r=Hi()}=t,i=Vi(()=>n&&`matchMedia`in n&&typeof n.matchMedia==`function`),a=p(typeof r==`number`),o=p(),s=p(!1);return ot(()=>{if(a.value){a.value=!i.value;let t=m(e).split(`,`);s.value=t.some(e=>{let t=e.includes(`not all`),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),i=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),a=!!(n||i);return n&&a&&(a=r>=Ni(n[1])),i&&a&&(a=r<=Ni(i[1])),t?!a:a})}else i.value&&(o.value=n.matchMedia(m(e)),s.value=o.value.matches)}),zi(o,`change`,e=>{s.value=e.matches},{passive:!0}),V(()=>s.value)}var Wi=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},Gi=`__vueuse_ssr_handlers__`,Ki=qi();function qi(){return Gi in Wi||(Wi[Gi]=Wi[Gi]||{}),Wi[Gi]}function Ji(e,t){return Ki[e]||t}function hte(e){return Ui(`(prefers-color-scheme: dark)`,e)}function gte(e){return e==null?`any`:e instanceof Set?`set`:e instanceof Map?`map`:e instanceof Date?`date`:typeof e==`boolean`?`boolean`:typeof e==`string`?`string`:typeof e==`object`?`object`:Number.isNaN(e)?`any`:`number`}var _te={boolean:{read:e=>e===`true`,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Yi=`vueuse-storage`;function vte(e,t,n,r={}){let{flush:i=`pre`,deep:a=!0,listenToStorageChanges:o=!0,writeDefaults:s=!0,mergeDefaults:c=!1,shallow:l,window:u=Li,eventFilter:d,onError:f=e=>{},initOnMounted:h}=r,g=(l?p:N)(typeof t==`function`?t():t),_=V(()=>m(e));if(!n)try{n=Ji(`getDefaultStorage`,()=>Li?.localStorage)()}catch(e){f(e)}if(!n)return g;let v=m(t),y=gte(v),b=r.serializer??_te[y],{pause:x,resume:S}=ste(g,e=>T(e),{flush:i,deep:a,eventFilter:d});Te(_,()=>D(),{flush:i});let C=!1;u&&o&&(n instanceof Storage?zi(u,`storage`,e=>{(!h||C)&&D(e)},{passive:!0}):zi(u,Yi,e=>{(!h||C)&&O(e)})),h?Ii(()=>{C=!0,D()}):D();function w(e,t){if(u){let r={key:_.value,oldValue:e,newValue:t,storageArea:n};u.dispatchEvent(n instanceof Storage?new StorageEvent(`storage`,r):new CustomEvent(Yi,{detail:r}))}}function T(e){try{let t=n.getItem(_.value);if(e==null)w(t,null),n.removeItem(_.value);else{let r=b.write(e);t!==r&&(n.setItem(_.value,r),w(t,r))}}catch(e){f(e)}}function E(e){let t=e?e.newValue:n.getItem(_.value);if(t==null)return s&&v!=null&&n.setItem(_.value,b.write(v)),v;if(!e&&c){let e=b.read(t);return typeof c==`function`?c(e,v):y===`object`&&!Array.isArray(e)?{...v,...e}:e}return typeof t==`string`?b.read(t):t}function D(e){if(!(e&&e.storageArea!==n)){if(e&&e.key==null)g.value=v;else if(!(e&&e.key!==_.value)){x();try{let t=b.write(g.value);(e===void 0||e?.newValue!==t)&&(g.value=E(e))}catch(e){f(e)}finally{e?he(S):S()}}}}function O(e){D(e.detail)}return g}function Xi(e,t,n={}){let{window:r=Li,...i}=n,a,o=Vi(()=>r&&`ResizeObserver`in r),s=()=>{a&&=(a.disconnect(),void 0)},c=V(()=>{let t=m(e);return Array.isArray(t)?t.map(e=>Ri(e)):[Ri(t)]}),l=Te(c,e=>{if(s(),o.value&&r){a=new ResizeObserver(t);for(let t of e)t instanceof Element&&a.observe(t,i)}},{immediate:!0,flush:`post`}),u=()=>{s(),l()};return Di(u),{isSupported:o,stop:u}}function Zi(e,t={}){let{reset:n=!0,windowResize:r=!0,windowScroll:i=!0,immediate:a=!0,updateTiming:o=`sync`}=t,s=p(0),c=p(0),l=p(0),u=p(0),d=p(0),f=p(0),m=p(0),h=p(0);function g(){let t=Ri(e);if(!t){n&&(s.value=0,c.value=0,l.value=0,u.value=0,d.value=0,f.value=0,m.value=0,h.value=0);return}let r=t.getBoundingClientRect();s.value=r.height,c.value=r.bottom,l.value=r.left,u.value=r.right,d.value=r.top,f.value=r.width,m.value=r.x,h.value=r.y}function _(){o===`sync`?g():o===`next-frame`&&requestAnimationFrame(()=>g())}return Xi(e,_),Te(()=>Ri(e),e=>!e&&_()),pte(e,_,{attributeFilter:[`style`,`class`]}),i&&zi(`scroll`,_,{capture:!0,passive:!0}),r&&zi(`resize`,_,{passive:!0}),Ii(()=>{a&&_()}),{height:s,bottom:c,left:l,right:u,top:d,width:f,x:m,y:h,update:_}}function Qi(e,t={width:0,height:0},n={}){let{window:r=Li,box:i=`content-box`}=n,a=V(()=>{var t;return(t=Ri(e))==null||(t=t.namespaceURI)==null?void 0:t.includes(`svg`)}),o=p(t.width),s=p(t.height),{stop:c}=Xi(e,([t])=>{let n=i===`border-box`?t.borderBoxSize:i===`content-box`?t.contentBoxSize:t.devicePixelContentBoxSize;if(r&&a.value){let t=Ri(e);if(t){let e=t.getBoundingClientRect();o.value=e.width,s.value=e.height}}else if(n){let e=Pi(n);o.value=e.reduce((e,{inlineSize:t})=>e+t,0),s.value=e.reduce((e,{blockSize:t})=>e+t,0)}else o.value=t.contentRect.width,s.value=t.contentRect.height},n);Ii(()=>{let n=Ri(e);if(n&&`offsetWidth`in n){if(i===`content-box`&&r){let e=r.getComputedStyle(n),t=Number.parseFloat(e.paddingLeft)+Number.parseFloat(e.paddingRight),i=Number.parseFloat(e.paddingTop)+Number.parseFloat(e.paddingBottom),a=Number.parseFloat(e.borderLeftWidth)+Number.parseFloat(e.borderRightWidth),c=Number.parseFloat(e.borderTopWidth)+Number.parseFloat(e.borderBottomWidth);o.value=n.offsetWidth-t-a,s.value=n.offsetHeight-i-c}else o.value=n.offsetWidth,s.value=n.offsetHeight}else n&&(o.value=t.width,s.value=t.height)});let l=Te(()=>Ri(e),e=>{o.value=e?t.width:0,s.value=e?t.height:0});function u(){c(),l()}return{width:o,height:s,stop:u}}function yte(e,t,n={}){let{root:r,rootMargin:i,threshold:a=0,window:o=Li,immediate:s=!0}=n,c=Vi(()=>o&&`IntersectionObserver`in o),l=V(()=>Pi(m(e)).map(Ri).filter(Ai)),u=ji,d=p(s),f=c.value?Te(()=>[l.value,Ri(r),m(i),d.value],([e,n,r])=>{if(u(),!d.value||!e.length)return;let i=new IntersectionObserver(t,{root:Ri(n),rootMargin:r,threshold:a});e.forEach(e=>e&&i.observe(e)),u=()=>{i.disconnect(),u=ji}},{immediate:s,flush:`post`}):ji,h=()=>{u(),f(),d.value=!1};return Di(h),{isSupported:c,isActive:d,pause(){u(),d.value=!1},resume(){d.value=!0},stop:h}}function $i(e={}){let{window:t=Li,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:i=!0,includeScrollbar:a=!0,type:o=`inner`}=e,s=p(n),c=p(r),l=()=>{if(t){if(o===`outer`)s.value=t.outerWidth,c.value=t.outerHeight;else if(o===`visual`&&t.visualViewport){let{width:e,height:n,scale:r}=t.visualViewport;s.value=Math.round(e*r),c.value=Math.round(n*r)}else a?(s.value=t.innerWidth,c.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,c.value=t.document.documentElement.clientHeight)}};l(),Ii(l);let u={passive:!0};if(zi(`resize`,l,u),t&&o===`visual`&&t.visualViewport&&zi(t.visualViewport,`resize`,l,u),i){let e=Ui(`(orientation: portrait)`);Te(e,()=>l())}return{width:s,height:c}}var bte=/\s/;function xte(e){for(var t=e.length;t--&&bte.test(e.charAt(t)););return t}var Ste=/^\s+/;function Cte(e){return e&&e.slice(0,xte(e)+1).replace(Ste,``)}var ea=NaN,wte=/^[-+]0x[0-9a-f]+$/i,Tte=/^0b[01]+$/i,Ete=/^0o[0-7]+$/i,Dte=parseInt;function ta(e){if(typeof e==`number`)return e;if(C(e))return ea;if(j(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=j(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=Cte(e);var n=Tte.test(e);return n||Ete.test(e)?Dte(e.slice(2),n?2:8):wte.test(e)?ea:+e}var na=1/0,Ote=17976931348623157e292;function kte(e){return e?(e=ta(e),e===na||e===-na?(e<0?-1:1)*Ote:e===e?e:0):e===0?e:0}function ra(e){var t=kte(e),n=t%1;return t===t?n?t-n:t:0}var ia=ne(v,`WeakMap`);function aa(){}function oa(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function sa(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function Ate(e){return e!==e}function jte(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function Mte(e,t,n){return t===t?jte(e,t,n):sa(e,Ate,n)}var Nte=Mn(Object.keys,Object),Pte=Object.prototype.hasOwnProperty;function ca(e){if(!Ne(e))return Nte(e);var t=[];for(var n in Object(e))Pte.call(e,n)&&n!=`constructor`&&t.push(n);return t}function la(e){return je(e)?de(e):ca(e)}var Fte=Object.prototype.hasOwnProperty,ua=cn(function(e,t){if(Ne(t)||je(t))yt(t,la(t),e);else for(var n in t)Fte.call(t,n)&&_(e,n,t[n])});function da(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var fa=ie?ie.isConcatSpreadable:void 0;function Ite(e){return O(e)||Ce(e)||!!(fa&&e&&e[fa])}function pa(e,t,n,r,i){var a=-1,o=e.length;for(n||=Ite,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?pa(s,t-1,n,r,i):da(i,s):r||(i[i.length]=s)}return i}function Lte(e){return e!=null&&e.length?pa(e,1):[]}function ma(e){return Xe(ht(e,void 0,Lte),e+``)}function Rte(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function zte(e,t){return e&&yt(t,la(t),e)}function Bte(e,t){return e&&yt(t,Qe(t),e)}function Vte(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function ha(){return[]}var Hte=Object.prototype.propertyIsEnumerable,ga=Object.getOwnPropertySymbols,_a=ga?function(e){return e==null?[]:(e=Object(e),Vte(ga(e),function(t){return Hte.call(e,t)}))}:ha;function Ute(e,t){return yt(e,_a(e),t)}var va=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)da(t,_a(e)),e=Ie(e);return t}:ha;function Wte(e,t){return yt(e,va(e),t)}function ya(e,t,n){var r=t(e);return O(e)?r:da(r,n(e))}function ba(e){return ya(e,la,_a)}function xa(e){return ya(e,Qe,va)}var Sa=ne(v,`DataView`),Ca=ne(v,`Promise`),wa=ne(v,`Set`),Ta=`[object Map]`,Gte=`[object Object]`,Ea=`[object Promise]`,Da=`[object Set]`,Oa=`[object WeakMap]`,ka=`[object DataView]`,Kte=b(Sa),qte=b(ee),Jte=b(Ca),Yte=b(wa),Xte=b(ia),Aa=re;(Sa&&Aa(new Sa(new ArrayBuffer(1)))!=ka||ee&&Aa(new ee)!=Ta||Ca&&Aa(Ca.resolve())!=Ea||wa&&Aa(new wa)!=Da||ia&&Aa(new ia)!=Oa)&&(Aa=function(e){var t=re(e),n=t==Gte?e.constructor:void 0,r=n?b(n):``;if(r)switch(r){case Kte:return ka;case qte:return Ta;case Jte:return Ea;case Yte:return Da;case Xte:return Oa}return t});var ja=Aa,Zte=Object.prototype.hasOwnProperty;function Qte(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&Zte.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function $te(e,t){var n=t?Gt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var ene=/\w*$/;function tne(e){var t=new e.constructor(e.source,ene.exec(e));return t.lastIndex=e.lastIndex,t}var Ma=ie?ie.prototype:void 0,Na=Ma?Ma.valueOf:void 0;function nne(e){return Na?Object(Na.call(e)):{}}var rne=`[object Boolean]`,ine=`[object Date]`,ane=`[object Map]`,one=`[object Number]`,sne=`[object RegExp]`,cne=`[object Set]`,lne=`[object String]`,une=`[object Symbol]`,dne=`[object ArrayBuffer]`,fne=`[object DataView]`,pne=`[object Float32Array]`,mne=`[object Float64Array]`,hne=`[object Int8Array]`,gne=`[object Int16Array]`,_ne=`[object Int32Array]`,vne=`[object Uint8Array]`,yne=`[object Uint8ClampedArray]`,bne=`[object Uint16Array]`,xne=`[object Uint32Array]`;function Sne(e,t,n){var r=e.constructor;switch(t){case dne:return Gt(e);case rne:case ine:return new r(+e);case fne:return $te(e,n);case pne:case mne:case hne:case gne:case _ne:case vne:case yne:case bne:case xne:return ce(e,n);case ane:return new r;case one:case lne:return new r(e);case sne:return tne(e);case cne:return new r;case une:return nne(e)}}var Cne=`[object Map]`;function wne(e){return g(e)&&ja(e)==Cne}var Pa=Ee&&Ee.isMap,Tne=Pa?st(Pa):wne,Ene=`[object Set]`;function Dne(e){return g(e)&&ja(e)==Ene}var Fa=Ee&&Ee.isSet,One=Fa?st(Fa):Dne,kne=1,Ane=2,jne=4,Ia=`[object Arguments]`,Mne=`[object Array]`,Nne=`[object Boolean]`,Pne=`[object Date]`,Fne=`[object Error]`,La=`[object Function]`,Ine=`[object GeneratorFunction]`,Lne=`[object Map]`,Rne=`[object Number]`,Ra=`[object Object]`,zne=`[object RegExp]`,Bne=`[object Set]`,Vne=`[object String]`,Hne=`[object Symbol]`,Une=`[object WeakMap]`,Wne=`[object ArrayBuffer]`,Gne=`[object DataView]`,Kne=`[object Float32Array]`,qne=`[object Float64Array]`,Jne=`[object Int8Array]`,Yne=`[object Int16Array]`,Xne=`[object Int32Array]`,Zne=`[object Uint8Array]`,Qne=`[object Uint8ClampedArray]`,$ne=`[object Uint16Array]`,ere=`[object Uint32Array]`,za={};za[Ia]=za[Mne]=za[Wne]=za[Gne]=za[Nne]=za[Pne]=za[Kne]=za[qne]=za[Jne]=za[Yne]=za[Xne]=za[Lne]=za[Rne]=za[Ra]=za[zne]=za[Bne]=za[Vne]=za[Hne]=za[Zne]=za[Qne]=za[$ne]=za[ere]=!0,za[Fne]=za[La]=za[Une]=!1;function Ba(e,t,n,r,i,a){var o,s=t&kne,c=t&Ane,l=t&jne;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!j(e))return e;var u=O(e);if(u){if(o=Qte(e),!s)return ae(e,o)}else{var d=ja(e),f=d==La||d==Ine;if(pt(e))return He(e,s);if(d==Ra||d==Ia||f&&!i){if(o=c||f?{}:Jt(e),!s)return c?Wte(e,Bte(o,e)):Ute(e,zte(o,e))}else{if(!za[d])return i?e:{};o=Sne(e,d,s)}}a||=new Je;var p=a.get(e);if(p)return p;a.set(e,o),One(e)?e.forEach(function(r){o.add(Ba(r,t,n,r,e,a))}):Tne(e)&&e.forEach(function(r,i){o.set(i,Ba(r,t,n,i,e,a))});var m=u?void 0:(l?c?xa:ba:c?Qe:la)(e);return oa(m||e,function(r,i){m&&(i=r,r=e[i]),_(o,i,Ba(r,t,n,i,e,a))}),o}var tre=1,nre=4;function Va(e){return Ba(e,tre|nre)}var rre=`__lodash_hash_undefined__`;function ire(e){return this.__data__.set(e,rre),this}function are(e){return this.__data__.has(e)}function Ha(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new k;++t<n;)this.add(e[t])}Ha.prototype.add=Ha.prototype.push=ire,Ha.prototype.has=are;function ore(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function sre(e,t){return e.has(t)}var cre=1,lre=2;function Ua(e,t,n,r,i,a){var o=n&cre,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&lre?new Ha:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],h=t[d];if(r)var g=o?r(h,m,d,t,e,a):r(m,h,d,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!ore(t,function(e,t){if(!sre(p,t)&&(m===e||i(m,e,n,r,a)))return p.push(t)})){f=!1;break}}else if(!(m===h||i(m,h,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}function Wa(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function ure(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var dre=1,fre=2,pre=`[object Boolean]`,mre=`[object Date]`,hre=`[object Error]`,gre=`[object Map]`,_re=`[object Number]`,vre=`[object RegExp]`,yre=`[object Set]`,bre=`[object String]`,xre=`[object Symbol]`,Sre=`[object ArrayBuffer]`,Cre=`[object DataView]`,Ga=ie?ie.prototype:void 0,Ka=Ga?Ga.valueOf:void 0;function wre(e,t,n,r,i,a,o){switch(n){case Cre:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Sre:return!(e.byteLength!=t.byteLength||!a(new ze(e),new ze(t)));case pre:case mre:case _re:return A(+e,+t);case hre:return e.name==t.name&&e.message==t.message;case vre:case bre:return e==t+``;case gre:var s=Wa;case yre:var c=r&dre;if(s||=ure,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=fre,o.set(e,t);var u=Ua(s(e),s(t),r,i,a,o);return o.delete(e),u;case xre:if(Ka)return Ka.call(e)==Ka.call(t)}return!1}var Tre=1,Ere=Object.prototype.hasOwnProperty;function Dre(e,t,n,r,i,a){var o=n&Tre,s=ba(e),c=s.length;if(c!=ba(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:Ere.call(t,u)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=o;++l<c;){u=s[l];var h=e[u],g=t[u];if(r)var _=o?r(g,h,u,t,e,a):r(h,g,u,e,t,a);if(!(_===void 0?h===g||i(h,g,n,r,a):_)){p=!1;break}m||=u==`constructor`}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}var Ore=1,qa=`[object Arguments]`,Ja=`[object Array]`,Ya=`[object Object]`,Xa=Object.prototype.hasOwnProperty;function kre(e,t,n,r,i,a){var o=O(e),s=O(t),c=o?Ja:ja(e),l=s?Ja:ja(t);c=c==qa?Ya:c,l=l==qa?Ya:l;var u=c==Ya,d=l==Ya,f=c==l;if(f&&pt(e)){if(!pt(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new Je,o||ut(e)?Ua(e,t,n,r,i,a):wre(e,t,c,n,r,i,a);if(!(n&Ore)){var p=u&&Xa.call(e,`__wrapped__`),m=d&&Xa.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new Je,i(h,g,n,r,a)}}return f?(a||=new Je,Dre(e,t,n,r,i,a)):!1}function Za(e,t,n,r,i){return e===t?!0:e==null||t==null||!g(e)&&!g(t)?e!==e&&t!==t:kre(e,t,n,r,Za,i)}var Are=1,jre=2;function Mre(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var c=s[0],l=e[c],u=s[1];if(o&&s[2]){if(l===void 0&&!(c in e))return!1}else{var d=new Je;if(r)var f=r(l,u,c,e,t,d);if(!(f===void 0?Za(u,l,Are|jre,r,d):f))return!1}}return!0}function Qa(e){return e===e&&!j(e)}function Nre(e){for(var t=la(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Qa(i)]}return t}function $a(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}}function Pre(e){var t=Nre(e);return t.length==1&&t[0][2]?$a(t[0][0],t[0][1]):function(n){return n===e||Mre(n,e,t)}}function Fre(e,t){return e!=null&&t in Object(e)}function eo(e,t,n){t=$n(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=tr(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&_t(i)&&y(o,i)&&(O(e)||Ce(e)))}function to(e,t){return e!=null&&eo(e,t,Fre)}var Ire=1,Lre=2;function Rre(e,t){return er(e)&&Qa(t)?$a(tr(e),t):function(n){var r=ur(n,e);return r===void 0&&r===t?to(n,e):Za(t,r,Ire|Lre)}}function zre(e){return function(t){return t?.[e]}}function Bre(e){return function(t){return Ar(t,e)}}function Vre(e){return er(e)?zre(tr(e)):Bre(e)}function no(e){return typeof e==`function`?e:e==null?Mt:typeof e==`object`?O(e)?Rre(e[0],e[1]):Pre(e):Vre(e)}function ro(e,t){return e&&Ge(e,t,la)}function Hre(e,t){return function(n,r){if(n==null)return n;if(!je(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var io=Hre(ro),ao=function(){return v.Date.now()},Ure=`Expected a function`,Wre=Math.max,Gre=Math.min;function oo(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,f=!0;if(typeof e!=`function`)throw TypeError(Ure);t=ta(t)||0,j(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?Wre(ta(n.maxWait)||0,t):a,f=`trailing`in n?!!n.trailing:f);function p(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function m(e){return l=e,s=setTimeout(_,t),u?p(e):o}function h(e){var n=e-c,r=e-l,i=t-n;return d?Gre(i,a-r):i}function g(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function _(){var e=ao();if(g(e))return v(e);s=setTimeout(_,h(e))}function v(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function y(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function b(){return s===void 0?o:v(ao())}function x(){var e=ao(),n=g(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return clearTimeout(s),s=setTimeout(_,t),p(c)}return s===void 0&&(s=setTimeout(_,t)),o}return x.cancel=y,x.flush=b,x}function so(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function co(e){return typeof e==`function`?e:Mt}function lo(e,t){return(O(e)?oa:io)(e,co(t))}function Kre(e,t){return w(t,function(t){return[t,e[t]]})}function qre(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}var Jre=`[object Map]`,Yre=`[object Set]`;function uo(e){return function(t){var n=ja(t);return n==Jre?Wa(t):n==Yre?qre(t):Kre(t,e(t))}}var fo=uo(la);function po(e){return function(t,n,r){var i=Object(t);if(!je(t)){var a=no(n,3);t=la(t),n=function(e){return a(i[e],e,i)}}var o=e(t,n,r);return o>-1?i[a?t[o]:o]:void 0}}var mo=Math.max;function ho(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:ra(n);return i<0&&(i=mo(r+i,0)),sa(e,no(t,3),i)}var go=po(ho);function _o(e,t){var n=-1,r=je(e)?Array(e.length):[];return io(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function vo(e,t){return(O(e)?w:_o)(e,no(t,3))}function yo(e,t){return e==null?e:Ge(e,co(t),Qe)}var bo=Object.prototype.hasOwnProperty;function xo(e,t){return e!=null&&bo.call(e,t)}function So(e,t){return e!=null&&eo(e,t,xo)}var Co=Math.max;function wo(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:ra(n);return i<0&&(i=Co(r+i,0)),Mte(e,t,i)}function To(e,t){return t.length<2?e:Ar(e,be(t,0,-1))}var Eo=`[object Boolean]`;function Do(e){return e===!0||e===!1||g(e)&&re(e)==Eo}var Oo=`[object Map]`,ko=`[object Set]`,Ao=Object.prototype.hasOwnProperty;function jo(e){if(e==null)return!0;if(je(e)&&(O(e)||typeof e==`string`||typeof e.splice==`function`||pt(e)||ut(e)||Ce(e)))return!e.length;var t=ja(e);if(t==Oo||t==ko)return!e.size;if(Ne(e))return!ca(e).length;for(var n in e)if(Ao.call(e,n))return!1;return!0}function Mo(e,t){return Za(e,t)}function No(e){return e==null}function Po(e){return e===void 0}function Xre(e,t){var n={};return t=no(t,3),ro(e,function(e,r,i){te(n,t(e,r,i),e)}),n}var Zre=Object.prototype.hasOwnProperty;function Qre(e,t){t=$n(t,e);var n=-1,r=t.length;if(!r)return!0;for(;++n<r;){var i=tr(t[n]);if(i===`__proto__`&&!Zre.call(e,`__proto__`)||(i===`constructor`||i===`prototype`)&&n<r-1)return!1}var a=To(e,t);return a==null||delete a[tr(so(t))]}function $re(e){return ke(e)?void 0:e}var eie=1,tie=2,nie=4,Fo=ma(function(e,t){var n={};if(e==null)return n;var r=!1;t=w(t,function(t){return t=$n(t,e),r||=t.length>1,t}),yt(e,xa(e),n),r&&(n=Ba(n,eie|tie|nie,$re));for(var i=t.length;i--;)Qre(n,t[i]);return n});function rie(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=Ar(e,o);n(s,o)&&Yn(a,$n(o,e),s)}return a}function iie(e,t){return rie(e,t,function(t,n){return to(e,n)})}var Io=ma(function(e,t){return e==null?{}:iie(e,t)});function aie(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function oie(e,t,n){var r=O(e)?Rte:aie,i=arguments.length<3;return r(e,no(t,4),n,i,io)}function Lo(e,t,n){return e==null?e:Yn(e,t,n)}var sie=`Expected a function`;function Ro(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(sie);return j(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),oo(e,t,{leading:r,maxWait:t,trailing:i})}var zo=e=>{let{layoutContentMaximize:t,layoutContentMaximizeVersion:n}=B9(),{setRuntimeState:r}=V9(),i=(i,a)=>{if(t.value===i)return;let o={...e,...a};i?(o.beforeEnter?.(),r(`layoutContentMaximizeStyle`,{zIndex:o.zIndex??999,backgroundColor:o.backgroundColor,transition:o.transition})):o.beforeExit?.(),r(`layoutContentMaximize`,i);let s=n.value;he(()=>{n.value===s&&(i&&o.scrollToOptions&&Hn.value?.scrollTo(o.scrollToOptions),i?o.enter?.():o.exit?.())})};return{isLayoutContentMaximized:t,isFullscreen:t,maximize:i,toggleFullscreen:()=>i(!t.value)}},Bo=()=>{let{reloadContent:e,setRuntimeState:t}=V9();return{reload:e,openSpin:()=>t(`layoutContentSpinning`,!0),closeSpin:()=>t(`layoutContentSpinning`,!1)}},cie=()=>({setWatermarkContent:e=>{if(!e)return;let{getWatermarkConfig:t}=L9(),n=Object.assign({},t.value,{content:e}),{updateSettingState:r}=R9();r(`watermarkConfig`,n)},showWatermark:()=>{let{updateSettingState:e}=R9();e(`watermarkSwitch`,!0)},hiddenWatermark:()=>{let{updateSettingState:e}=R9();e(`watermarkSwitch`,!1)},toggleWatermark:()=>{let{getWatermarkSwitch:e}=L9(),{updateSettingState:t}=R9();t(`watermarkSwitch`,!e.value)}});function lie(e,t){if(!e)return;let n=document.createElement(`a`);n.href=e,t!==void 0&&(n.download=t),document.body.appendChild(n),n.click(),document.body.removeChild(n)}var Vo={name:`zh-CN`,global:{undo:`撤销`,redo:`重做`,confirm:`确认`,clear:`清除`},Popconfirm:{positiveText:`确认`,negativeText:`取消`},Cascader:{placeholder:`请选择`,loading:`加载中`,loadingRequiredMessage:e=>`加载全部 ${e} 的子节点后才可选中`},Time:{dateFormat:`yyyy-MM-dd`,dateTimeFormat:`yyyy-MM-dd HH:mm:ss`},DatePicker:{yearFormat:`yyyy年`,monthFormat:`MMM`,dayFormat:`eeeeee`,yearTypeFormat:`yyyy`,monthTypeFormat:`yyyy-MM`,dateFormat:`yyyy-MM-dd`,dateTimeFormat:`yyyy-MM-dd HH:mm:ss`,quarterFormat:`yyyy-qqq`,weekFormat:`YYYY-w周`,clear:`清除`,now:`此刻`,confirm:`确认`,selectTime:`选择时间`,selectDate:`选择日期`,datePlaceholder:`选择日期`,datetimePlaceholder:`选择日期时间`,monthPlaceholder:`选择月份`,yearPlaceholder:`选择年份`,quarterPlaceholder:`选择季度`,weekPlaceholder:`选择周`,startDatePlaceholder:`开始日期`,endDatePlaceholder:`结束日期`,startDatetimePlaceholder:`开始日期时间`,endDatetimePlaceholder:`结束日期时间`,startMonthPlaceholder:`开始月份`,endMonthPlaceholder:`结束月份`,monthBeforeYear:!1,firstDayOfWeek:0,today:`今天`},DataTable:{checkTableAll:`选择全部表格数据`,uncheckTableAll:`取消选择全部表格数据`,confirm:`确认`,clear:`重置`},LegacyTransfer:{sourceTitle:`源项`,targetTitle:`目标项`},Transfer:{selectAll:`全选`,clearAll:`清除`,unselectAll:`取消全选`,total:e=>`共 ${e} 项`,selected:e=>`已选 ${e} 项`},Empty:{description:`无数据`},Select:{placeholder:`请选择`},TimePicker:{placeholder:`请选择时间`,positiveText:`确认`,negativeText:`取消`,now:`此刻`,clear:`清除`},Pagination:{goto:`跳至`,selectionSuffix:`页`},DynamicTags:{add:`添加`},Log:{loading:`加载中`},Input:{placeholder:`请输入`},InputNumber:{placeholder:`请输入`},DynamicInput:{create:`添加`},ThemeEditor:{title:`主题编辑器`,clearAllVars:`清除全部变量`,clearSearch:`清除搜索`,filterCompName:`过滤组件名`,filterVarName:`过滤变量名`,import:`导入`,export:`导出`,restore:`恢复默认`},Image:{tipPrevious:`上一张(←)`,tipNext:`下一张(→)`,tipCounterclockwise:`向左旋转`,tipClockwise:`向右旋转`,tipZoomOut:`缩小`,tipZoomIn:`放大`,tipDownload:`下载`,tipClose:`关闭(Esc)`,tipOriginalSize:`缩放到原始尺寸`},Heatmap:{less:`少`,more:`多`,monthFormat:`MMM`,weekdayFormat:`eeeeee`}},Ho=6048e5,uie=864e5,die=6e4,fie=36e5,pie=1e3,Uo=Symbol.for(`constructDateFrom`);function Wo(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&Uo in e?e[Uo](t):e instanceof Date?new e.constructor(t):new Date(t)}function Go(e,...t){let n=Wo.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}var mie={};function Ko(){return mie}function qo(e,t){return Wo(t||e,e)}function Jo(e,t){let n=Ko(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=qo(e,t?.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function Yo(e,t,n){let[r,i]=Go(n?.in,e,t);return+Jo(r,n)==+Jo(i,n)}var hie={lessThanXSeconds:{one:`不到 1 秒`,other:`不到 {{count}} 秒`},xSeconds:{one:`1 秒`,other:`{{count}} 秒`},halfAMinute:`半分钟`,lessThanXMinutes:{one:`不到 1 分钟`,other:`不到 {{count}} 分钟`},xMinutes:{one:`1 分钟`,other:`{{count}} 分钟`},xHours:{one:`1 小时`,other:`{{count}} 小时`},aboutXHours:{one:`大约 1 小时`,other:`大约 {{count}} 小时`},xDays:{one:`1 天`,other:`{{count}} 天`},aboutXWeeks:{one:`大约 1 个星期`,other:`大约 {{count}} 个星期`},xWeeks:{one:`1 个星期`,other:`{{count}} 个星期`},aboutXMonths:{one:`大约 1 个月`,other:`大约 {{count}} 个月`},xMonths:{one:`1 个月`,other:`{{count}} 个月`},aboutXYears:{one:`大约 1 年`,other:`大约 {{count}} 年`},xYears:{one:`1 年`,other:`{{count}} 年`},overXYears:{one:`超过 1 年`,other:`超过 {{count}} 年`},almostXYears:{one:`将近 1 年`,other:`将近 {{count}} 年`}},gie=(e,t,n)=>{let r,i=hie[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+`内`:r+`前`:r},_ie={date:cr({formats:{full:`y'年'M'月'd'日' EEEE`,long:`y'年'M'月'd'日'`,medium:`yyyy-MM-dd`,short:`yy-MM-dd`},defaultWidth:`full`}),time:cr({formats:{full:`zzzz a h:mm:ss`,long:`z a h:mm:ss`,medium:`a h:mm:ss`,short:`a h:mm`},defaultWidth:`full`}),dateTime:cr({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})};function Xo(e,t,n){return Yo(e,t,n)?`eeee p`:e.getTime()>t.getTime()?`'下个'eeee p`:`'上个'eeee p`}var vie={lastWeek:Xo,yesterday:`'昨天' p`,today:`'今天' p`,tomorrow:`'明天' p`,nextWeek:Xo,other:`PP p`},Zo={name:`zh-CN`,locale:{code:`zh-CN`,formatDistance:gie,formatLong:_ie,formatRelative:(e,t,n,r)=>{let i=vie[e];return typeof i==`function`?i(t,n,r):i},localize:{ordinalNumber:(e,t)=>{let n=Number(e);switch(t?.unit){case`date`:return n.toString()+`日`;case`hour`:return n.toString()+`时`;case`minute`:return n.toString()+`分`;case`second`:return n.toString()+`秒`;default:return`第 `+n.toString()}},era:br({values:{narrow:[`前`,`公元`],abbreviated:[`前`,`公元`],wide:[`公元前`,`公元`]},defaultWidth:`wide`}),quarter:br({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`第一季`,`第二季`,`第三季`,`第四季`],wide:[`第一季度`,`第二季度`,`第三季度`,`第四季度`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:br({values:{narrow:[`一`,`二`,`三`,`四`,`五`,`六`,`七`,`八`,`九`,`十`,`十一`,`十二`],abbreviated:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],wide:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`]},defaultWidth:`wide`}),day:br({values:{narrow:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],short:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],abbreviated:[`周日`,`周一`,`周二`,`周三`,`周四`,`周五`,`周六`],wide:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`]},defaultWidth:`wide`}),dayPeriod:br({values:{narrow:{am:`上`,pm:`下`,midnight:`凌晨`,noon:`午`,morning:`早`,afternoon:`下午`,evening:`晚`,night:`夜`},abbreviated:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜间`},wide:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜间`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`上`,pm:`下`,midnight:`凌晨`,noon:`午`,morning:`早`,afternoon:`下午`,evening:`晚`,night:`夜`},abbreviated:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜间`},wide:{am:`上午`,pm:`下午`,midnight:`凌晨`,noon:`中午`,morning:`早晨`,afternoon:`中午`,evening:`晚上`,night:`夜间`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:oee({matchPattern:/^(第\s*)?\d+(日|时|分|秒)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:vr({matchPatterns:{narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(前)/i,/^(公元)/i]},defaultParseWidth:`any`}),quarter:vr({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:vr({matchPatterns:{narrow:/^(一|二|三|四|五|六|七|八|九|十[二一]?)/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]?|\d|1[0-2])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一]?)月/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^(一|1(?!\d))/i,/^(二|2)/i,/^(三|3)/i,/^(四|4)/i,/^(五|5)/i,/^(六|6)/i,/^(七|7)/i,/^(八|8)/i,/^(九|9)/i,/^(十(?!(一|二))|10)/i,/^(十一|11)/i,/^(十二|12)/i]},defaultParseWidth:`any`}),day:vr({matchPatterns:{narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},defaultParseWidth:`any`}),dayPeriod:vr({matchPatterns:{any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}}},Qo=[],$o=new WeakMap;function yie(){Qo.forEach(e=>e(...$o.get(e))),Qo=[]}function es(e,...t){$o.set(e,t),Qo.includes(e)||Qo.push(e)===1&&requestAnimationFrame(yie)}function ts(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function bie(e){if(typeof e==`number`)return{"":e.toString()};let t={};return e.split(/ +/).forEach(e=>{if(e===``)return;let[n,r]=e.split(`:`);r===void 0?t[``]=n:t[n]=r}),t}function ns(e,t){if(e==null)return;let n=bie(e);if(t===void 0)return n[``];if(typeof t==`string`)return n[t]??n[``];if(Array.isArray(t)){for(let e=t.length-1;e>=0;--e){let r=t[e];if(r in n)return n[r]}return n[``]}{let e,r=-1;return Object.keys(n).forEach(i=>{let a=Number(i);!Number.isNaN(a)&&t>=a&&a>=r&&(r=a,e=n[i])}),e}}var rs={neutralBase:`#000`,neutralInvertBase:`#fff`,neutralTextBase:`#fff`,neutralPopover:`rgb(72, 72, 78)`,neutralCard:`rgb(24, 24, 28)`,neutralModal:`rgb(44, 44, 50)`,neutralBody:`rgb(16, 16, 20)`,alpha1:`0.9`,alpha2:`0.82`,alpha3:`0.52`,alpha4:`0.38`,alpha5:`0.28`,alphaClose:`0.52`,alphaDisabled:`0.38`,alphaDisabledInput:`0.06`,alphaPending:`0.09`,alphaTablePending:`0.06`,alphaTableStriped:`0.05`,alphaPressed:`0.05`,alphaAvatar:`0.18`,alphaRail:`0.2`,alphaProgressRail:`0.12`,alphaBorder:`0.24`,alphaDivider:`0.09`,alphaInput:`0.1`,alphaAction:`0.06`,alphaTab:`0.04`,alphaScrollbar:`0.2`,alphaScrollbarHover:`0.3`,alphaCode:`0.12`,alphaTag:`0.2`,primaryHover:`#7fe7c4`,primaryDefault:`#63e2b7`,primaryActive:`#5acea7`,primarySuppl:`rgb(42, 148, 125)`,infoHover:`#8acbec`,infoDefault:`#70c0e8`,infoActive:`#66afd3`,infoSuppl:`rgb(56, 137, 197)`,errorHover:`#e98b8b`,errorDefault:`#e88080`,errorActive:`#e57272`,errorSuppl:`rgb(208, 58, 82)`,warningHover:`#f5d599`,warningDefault:`#f2c97d`,warningActive:`#e6c260`,warningSuppl:`rgb(240, 138, 0)`,successHover:`#7fe7c4`,successDefault:`#63e2b7`,successActive:`#5acea7`,successSuppl:`rgb(42, 148, 125)`},xie=Ut(rs.neutralBase),is=Ut(rs.neutralInvertBase),Sie=`rgba(${is.slice(0,3).join(`, `)}, `;function as(e){return`${Sie+String(e)})`}function Cie(e){let t=Array.from(is);return t[3]=Number(e),Ue(xie,t)}var os={name:`common`,...Ct,baseColor:rs.neutralBase,primaryColor:rs.primaryDefault,primaryColorHover:rs.primaryHover,primaryColorPressed:rs.primaryActive,primaryColorSuppl:rs.primarySuppl,infoColor:rs.infoDefault,infoColorHover:rs.infoHover,infoColorPressed:rs.infoActive,infoColorSuppl:rs.infoSuppl,successColor:rs.successDefault,successColorHover:rs.successHover,successColorPressed:rs.successActive,successColorSuppl:rs.successSuppl,warningColor:rs.warningDefault,warningColorHover:rs.warningHover,warningColorPressed:rs.warningActive,warningColorSuppl:rs.warningSuppl,errorColor:rs.errorDefault,errorColorHover:rs.errorHover,errorColorPressed:rs.errorActive,errorColorSuppl:rs.errorSuppl,textColorBase:rs.neutralTextBase,textColor1:as(rs.alpha1),textColor2:as(rs.alpha2),textColor3:as(rs.alpha3),textColorDisabled:as(rs.alpha4),placeholderColor:as(rs.alpha4),placeholderColorDisabled:as(rs.alpha5),iconColor:as(rs.alpha4),iconColorDisabled:as(rs.alpha5),iconColorHover:as(Number(rs.alpha4)*1.25),iconColorPressed:as(Number(rs.alpha4)*.8),opacity1:rs.alpha1,opacity2:rs.alpha2,opacity3:rs.alpha3,opacity4:rs.alpha4,opacity5:rs.alpha5,dividerColor:as(rs.alphaDivider),borderColor:as(rs.alphaBorder),closeIconColorHover:as(Number(rs.alphaClose)),closeIconColor:as(Number(rs.alphaClose)),closeIconColorPressed:as(Number(rs.alphaClose)),closeColorHover:`rgba(255, 255, 255, .12)`,closeColorPressed:`rgba(255, 255, 255, .08)`,clearColor:as(rs.alpha4),clearColorHover:Le(as(rs.alpha4),{alpha:1.25}),clearColorPressed:Le(as(rs.alpha4),{alpha:.8}),scrollbarColor:as(rs.alphaScrollbar),scrollbarColorHover:as(rs.alphaScrollbarHover),scrollbarWidth:`5px`,scrollbarHeight:`5px`,scrollbarBorderRadius:`5px`,progressRailColor:as(rs.alphaProgressRail),railColor:as(rs.alphaRail),popoverColor:rs.neutralPopover,tableColor:rs.neutralCard,cardColor:rs.neutralCard,modalColor:rs.neutralModal,bodyColor:rs.neutralBody,tagColor:Cie(rs.alphaTag),avatarColor:as(rs.alphaAvatar),invertedColor:rs.neutralBase,inputColor:as(rs.alphaInput),codeColor:as(rs.alphaCode),tabColor:as(rs.alphaTab),actionColor:as(rs.alphaAction),tableHeaderColor:as(rs.alphaAction),hoverColor:as(rs.alphaPending),tableColorHover:as(rs.alphaTablePending),tableColorStriped:as(rs.alphaTableStriped),pressedColor:as(rs.alphaPressed),opacityDisabled:rs.alphaDisabled,inputColorDisabled:as(rs.alphaDisabledInput),buttonColor2:`rgba(255, 255, 255, .08)`,buttonColor2Hover:`rgba(255, 255, 255, .12)`,buttonColor2Pressed:`rgba(255, 255, 255, .08)`,boxShadow1:`0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)`,boxShadow2:`0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)`,boxShadow3:`0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)`},ss={name:`Scrollbar`,common:os,self:nt},wie={iconSizeTiny:`28px`,iconSizeSmall:`34px`,iconSizeMedium:`40px`,iconSizeLarge:`46px`,iconSizeHuge:`52px`};function cs(e){let{textColorDisabled:t,iconColor:n,textColor2:r,fontSizeTiny:i,fontSizeSmall:a,fontSizeMedium:o,fontSizeLarge:s,fontSizeHuge:c}=e;return{...wie,fontSizeTiny:i,fontSizeSmall:a,fontSizeMedium:o,fontSizeLarge:s,fontSizeHuge:c,textColor:t,iconColor:n,extraTextColor:r}}var ls={name:`Empty`,common:_e,self:cs},us={name:`Empty`,common:os,self:cs},Tie=Y({name:`Empty`,render(){return(()=>{let e=Ye(`15c1a247ae156450`);return e[0]||=q(`svg`,{viewBox:`0 0 28 28`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},[q(`path`,{d:`M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z`,fill:`currentColor`}),q(`path`,{d:`M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z`,fill:`currentColor`})],-1)})()}}),Eie=z(`empty`,`
display: flex;
flex-direction: column;
align-items: center;
font-size: var(--n-font-size);
`,[X(`icon`,`
width: var(--n-icon-size);
height: var(--n-icon-size);
font-size: var(--n-icon-size);
line-height: var(--n-icon-size);
color: var(--n-icon-color);
transition:
color .3s var(--n-bezier);
`,[U(`+`,[X(`description`,`
margin-top: 8px;
`)])]),X(`description`,`
transition: color .3s var(--n-bezier);
color: var(--n-text-color);
`),X(`extra`,`
text-align: center;
transition: color .3s var(--n-bezier);
margin-top: 12px;
color: var(--n-extra-text-color);
`)]),Die={...$e.props,description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:`medium`},renderIcon:Function},ds=Y({name:`Empty`,props:Die,slots:Object,setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedComponentPropsRef:r}=mn(e),i=$e(`Empty`,`-empty`,Eie,ls,e,t),{localeRef:a}=gr(`Empty`),o=V(()=>e.description??r?.value?.Empty?.description),s=V(()=>r?.value?.Empty?.renderIcon||(()=>(L(),W(Tie)))),c=V(()=>{let{size:t}=e,{common:{cubicBezierEaseInOut:n},self:{[tt(`iconSize`,t)]:r,[tt(`fontSize`,t)]:a,textColor:o,iconColor:s,extraTextColor:c}}=i.value;return{"--n-icon-size":r,"--n-font-size":a,"--n-bezier":n,"--n-text-color":o,"--n-icon-color":s,"--n-extra-text-color":c}}),l=n?fe(`empty`,V(()=>{let t=``,{size:n}=e;return t+=n[0],t}),c,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:s,localizedDescription:V(()=>o.value||a.value.description),cssVars:n?void 0:c,themeClass:l?.themeClass,onRender:l?.onRender}},render(){let{$slots:t,mergedClsPrefix:n,onRender:r}=this;return r?.(),L(),H(`div`,{class:P([`${n}-empty`,this.themeClass]),style:e(this.cssVars)},[this.showIcon?(L(),H(`div`,{key:0,class:P(`${n}-empty__icon`)},[t.icon?(L(),H(K,{key:0},[G(()=>t.icon())],64)):(L(),W(wt,{key:1,clsPrefix:n},{default:this.mergedRenderIcon},1032,[`clsPrefix`]))],2)):G(()=>null),this.showDescription?(L(),H(`div`,{key:2,class:P(`${n}-empty__description`)},[t.default?(L(),H(K,{key:0},[G(()=>t.default())],64)):(L(),H(K,{key:1},[G(()=>this.localizedDescription)],64))],2)):G(()=>null),t.extra?(L(),H(`div`,{key:4,class:P(`${n}-empty__extra`)},[G(()=>t.extra())],2)):G(()=>null)],6)}}),Oie={height:`calc(var(--n-option-height) * 7.6)`,paddingTiny:`4px 0`,paddingSmall:`4px 0`,paddingMedium:`4px 0`,paddingLarge:`4px 0`,paddingHuge:`4px 0`,optionPaddingTiny:`0 12px`,optionPaddingSmall:`0 12px`,optionPaddingMedium:`0 12px`,optionPaddingLarge:`0 12px`,optionPaddingHuge:`0 12px`,loadingSize:`18px`};function fs(e){let{borderRadius:t,popoverColor:n,textColor3:r,dividerColor:i,textColor2:a,primaryColorPressed:o,textColorDisabled:s,primaryColor:c,opacityDisabled:l,hoverColor:u,fontSizeTiny:d,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:m,fontSizeHuge:h,heightTiny:g,heightSmall:_,heightMedium:v,heightLarge:y,heightHuge:b}=e;return{...Oie,optionFontSizeTiny:d,optionFontSizeSmall:f,optionFontSizeMedium:p,optionFontSizeLarge:m,optionFontSizeHuge:h,optionHeightTiny:g,optionHeightSmall:_,optionHeightMedium:v,optionHeightLarge:y,optionHeightHuge:b,borderRadius:t,color:n,groupHeaderTextColor:r,actionDividerColor:i,optionTextColor:a,optionTextColorPressed:o,optionTextColorDisabled:s,optionTextColorActive:c,optionOpacityDisabled:l,optionCheckColor:c,optionColorPending:u,optionColorActive:`rgba(0, 0, 0, 0)`,optionColorActivePending:u,actionTextColor:a,loadingColor:c}}var ps=En({name:`InternalSelectMenu`,common:_e,peers:{Scrollbar:Cn,Empty:ls},self:fs}),ms={name:`InternalSelectMenu`,common:os,peers:{Scrollbar:ss,Empty:us},self:fs},kie={space:`6px`,spaceArrow:`10px`,arrowOffset:`10px`,arrowOffsetVertical:`10px`,arrowHeight:`6px`,padding:`8px 14px`};function hs(e){let{boxShadow2:t,popoverColor:n,textColor2:r,borderRadius:i,fontSize:a,dividerColor:o}=e;return{...kie,fontSize:a,borderRadius:i,color:n,dividerColor:o,textColor:r,boxShadow:t}}var gs=En({name:`Popover`,common:_e,peers:{Scrollbar:Cn},self:hs}),_s={name:`Popover`,common:os,peers:{Scrollbar:ss},self:hs},vs=bn(`n-internal-select-menu`),ys=bn(`n-internal-select-menu-body`),bs=bn(`n-drawer-body`),xs=bn(`n-drawer`),Ss=bn(`n-modal-body`),Aie=bn(`n-modal-provider`),Cs=bn(`n-modal`),ws=bn(`n-popover-body`);function jie(e){let t=N(!!e.value);if(t.value)return l(t);let n=Te(e,e=>{e&&(t.value=!0,n())});return l(t)}function Ts(){return Tt()!==null}var Es=typeof window<`u`,Ds=Es?document?.fonts?.ready:void 0,Os=!1;Ds===void 0?Os=!0:Ds.then(()=>{Os=!0});function ks(e){if(Os)return;let t=!1;Ve(()=>{Os||Ds?.then(()=>{t||e()})}),se(()=>{t=!0})}var As=N(null);function js(e){if(e.clientX>0||e.clientY>0)As.value={x:e.clientX,y:e.clientY};else{let{target:t}=e;if(t instanceof Element){let{left:e,top:n,width:r,height:i}=t.getBoundingClientRect();As.value=e>0||n>0?{x:e+r/2,y:n+i/2}:{x:0,y:0}}else As.value=null}}var Ms=0,Mie=!0;function Ns(){if(!Es)return l(N(null));Ms===0&&kn(`click`,document,js,!0);let e=()=>{Ms+=1};return(Mie&&=Ts())?(qt(e),se(()=>{--Ms,Ms===0&&xn(`click`,document,js,!0)})):e(),l(As)}var Nie=N(void 0),Ps=0;function Fs(){Nie.value=Date.now()}var Pie=!0;function Is(e){if(!Es)return l(N(!1));let t=N(!1),n=null;function r(){n!==null&&window.clearTimeout(n)}function i(){r(),t.value=!0,n=window.setTimeout(()=>{t.value=!1},e)}Ps===0&&kn(`click`,window,Fs,!0);let a=()=>{Ps+=1,kn(`click`,window,i,!0)};return(Pie&&=Ts())?(qt(a),se(()=>{--Ps,Ps===0&&xn(`click`,window,Fs,!0),xn(`click`,window,i,!0),r()})):a(),l(t)}function Ls(e,t){return V(()=>{for(let n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}var Fie={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function Iie(e){return`(min-width: ${e}px)`}var Rs={};function Lie(e=Fie){if(!Es||typeof window.matchMedia!=`function`)return V(()=>[]);let t=N({}),n=Object.keys(e),r=(e,n)=>{e.matches?t.value[n]=!0:t.value[n]=!1};return n.forEach(t=>{let n=e[t],i,a;Rs[n]===void 0?(i=window.matchMedia(Iie(n)),i.addEventListener?i.addEventListener(`change`,e=>{a.forEach(n=>{n(e,t)})}):i.addListener&&i.addListener(e=>{a.forEach(n=>{n(e,t)})}),a=new Set,Rs[n]={mql:i,cbs:a}):(i=Rs[n].mql,a=Rs[n].cbs),a.add(r),i.matches&&a.forEach(e=>{e(i,t)})}),se(()=>{n.forEach(t=>{let{cbs:n}=Rs[e[t]];n.has(r)&&n.delete(r)})}),V(()=>{let{value:e}=t;return n.filter(t=>e[t])})}function zs(e={},t){let n=a({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:r,keyup:i}=e,o=e=>{switch(e.key){case`Control`:n.ctrl=!0;break;case`Meta`:n.command=!0,n.win=!0;break;case`Shift`:n.shift=!0;break;case`Tab`:n.tab=!0}r!==void 0&&Object.keys(r).forEach(t=>{if(t!==e.key)return;let n=r[t];if(typeof n==`function`)n(e);else{let{stop:t=!1,prevent:r=!1}=n;t&&e.stopPropagation(),r&&e.preventDefault(),n.handler(e)}})},s=e=>{switch(e.key){case`Control`:n.ctrl=!1;break;case`Meta`:n.command=!1,n.win=!1;break;case`Shift`:n.shift=!1;break;case`Tab`:n.tab=!1}i!==void 0&&Object.keys(i).forEach(t=>{if(t!==e.key)return;let n=i[t];if(typeof n==`function`)n(e);else{let{stop:t=!1,prevent:r=!1}=n;t&&e.stopPropagation(),r&&e.preventDefault(),n.handler(e)}})},c=()=>{(t===void 0||t.value)&&(kn(`keydown`,document,o),kn(`keyup`,document,s)),t!==void 0&&Te(t,e=>{e?(kn(`keydown`,document,o),kn(`keyup`,document,s)):(xn(`keydown`,document,o),xn(`keyup`,document,s))})};return Ts()?(qt(c),se(()=>{(t===void 0||t.value)&&(xn(`keydown`,document,o),xn(`keyup`,document,s))})):c(),l(n)}var Bs=`__disabled__`;function Vs(e){let t=pe(Ss,null),n=pe(bs,null),r=pe(ws,null),i=pe(ys,null),a=N();if(typeof document<`u`){a.value=document.fullscreenElement;let e=()=>{a.value=document.fullscreenElement};Ve(()=>{kn(`fullscreenchange`,document,e)}),se(()=>{xn(`fullscreenchange`,document,e)})}return dr(()=>{let{to:o}=e;return o===void 0?t?.value?t.value.$el??t.value:n?.value?n.value:r?.value?r.value:i?.value?i.value:o??(a.value||`body`):o===!1?Bs:o===!0?a.value||`body`:o})}Vs.tdkey=Bs,Vs.propTo={type:[String,Object,Boolean],default:void 0};function Rie(e,t=`default`,n=void 0){let r=e[t];if(!r)return on(`getFirstSlotVNode`,`slot[${t}] is empty`),null;let i=hr(r(n));return i.length===1?i[0]:(on(`getFirstSlotVNode`,`slot[${t}] should have exactly one child`),null)}function zie(e,t,n){if(!t)return null;let r=hr(t(n));return r.length===1?r[0]:(on(`getFirstSlotVNode`,`slot[${e}] should have exactly one child`),null)}function Hs(e,t=[],n){let r={};return t.forEach(t=>{r[t]=e[t]}),Object.assign(r,n)}var Us;function Bie(){return Us===void 0&&(Us=navigator.userAgent.includes(`Node.js`)||navigator.userAgent.includes(`jsdom`)),Us}function Ws(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function Gs(e,t=!0,n=[]){return e.forEach(e=>{if(e!==null){if(typeof e!=`object`)(typeof e==`string`||typeof e==`number`)&&n.push(bt(String(e)));else if(Array.isArray(e))Gs(e,t,n);else if(e.type===K){if(e.children===null)return;Array.isArray(e.children)&&Gs(e.children,t,n)}else e.type===St&&t||n.push(e)}}),n}function Ks(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);let i=Gs(r());if(i.length===1)return i[0];throw Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}var qs=null;function Js(){if(qs===null&&(qs=document.getElementById(`v-binder-view-measurer`),qs===null)){qs=document.createElement(`div`),qs.id=`v-binder-view-measurer`;let{style:e}=qs;e.position=`fixed`,e.left=`0`,e.right=`0`,e.top=`0`,e.bottom=`0`,e.pointerEvents=`none`,e.visibility=`hidden`,document.body.appendChild(qs)}return qs.getBoundingClientRect()}function Vie(e,t){let n=Js();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function Ys(e){let t=e.getBoundingClientRect(),n=Js();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function Hie(e){return e.nodeType===9?null:e.parentNode}function Xs(e){if(e===null)return null;let t=Hie(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){let{overflow:e,overflowX:n,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(e+r+n))return t}return Xs(t)}var Zs=Y({name:`Binder`,props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){Oe(`VBinder`,Tt()?.proxy);let t=pe(`VBinder`,null),n=N(null),r=r=>{n.value=r,t&&e.syncTargetWithParent&&t.setTargetRef(r)},i=[],a=()=>{let e=n.value;for(;e=Xs(e),e!==null;)i.push(e);for(let e of i)kn(`scroll`,e,u,!0)},o=()=>{for(let e of i)xn(`scroll`,e,u,!0);i=[]},s=new Set,c=e=>{s.size===0&&a(),s.has(e)||s.add(e)},l=e=>{s.has(e)&&s.delete(e),s.size===0&&o()},u=()=>{es(d)},d=()=>{s.forEach(e=>e())},f=new Set,p=e=>{f.size===0&&kn(`resize`,window,h),f.has(e)||f.add(e)},m=e=>{f.has(e)&&f.delete(e),f.size===0&&xn(`resize`,window,h)},h=()=>{f.forEach(e=>e())};return se(()=>{xn(`resize`,window,h),o()}),{targetRef:n,setTargetRef:r,addScrollListener:c,removeScrollListener:l,addResizeListener:p,removeResizeListener:m}},render(){return Ws(`binder`,this.$slots)}}),Qs=Y({name:`Target`,setup(){let{setTargetRef:e,syncTarget:t}=pe(`VBinder`);return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){let{syncTarget:e,setTargetDirective:t}=this;return e?Se(Ks(`follower`,this.$slots),[[t]]):Ks(`follower`,this.$slots)}}),$s=`@@mmoContext`,Uie={mounted(e,{value:t}){e[$s]={handler:void 0},typeof t==`function`&&(e[$s].handler=t,kn(`mousemoveoutside`,e,t))},updated(e,{value:t}){let n=e[$s];typeof t==`function`?n.handler?n.handler!==t&&(xn(`mousemoveoutside`,e,n.handler),n.handler=t,kn(`mousemoveoutside`,e,t)):(e[$s].handler=t,kn(`mousemoveoutside`,e,t)):n.handler&&=(xn(`mousemoveoutside`,e,n.handler),void 0)},unmounted(e){let{handler:t}=e[$s];t&&xn(`mousemoveoutside`,e,t),e[$s].handler=void 0}},ec=`@@coContext`,tc={mounted(e,{value:t,modifiers:n}){e[ec]={handler:void 0},typeof t==`function`&&(e[ec].handler=t,kn(`clickoutside`,e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){let r=e[ec];typeof t==`function`?r.handler?r.handler!==t&&(xn(`clickoutside`,e,r.handler,{capture:n.capture}),r.handler=t,kn(`clickoutside`,e,t,{capture:n.capture})):(e[ec].handler=t,kn(`clickoutside`,e,t,{capture:n.capture})):r.handler&&=(xn(`clickoutside`,e,r.handler,{capture:n.capture}),void 0)},unmounted(e,{modifiers:t}){let{handler:n}=e[ec];n&&xn(`clickoutside`,e,n,{capture:t.capture}),e[ec].handler=void 0}},nc=new class{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(e,t){let{elementZIndex:n}=this;if(t!==void 0){e.style.zIndex=`${t}`,n.delete(e);return}let{nextZIndex:r}=this;n.has(e)&&n.get(e)+1===this.nextZIndex||(e.style.zIndex=`${r}`,n.set(e,r),this.nextZIndex=r+1,this.squashState())}unregister(e,t){let{elementZIndex:n}=this;n.has(e)&&n.delete(e),this.squashState()}squashState(){let{elementCount:e}=this;e||(this.nextZIndex=2e3),this.nextZIndex-e>2500&&this.rearrange()}rearrange(){let e=Array.from(this.elementZIndex.entries());e.sort((e,t)=>e[1]-t[1]),this.nextZIndex=2e3,e.forEach(e=>{let t=e[0],n=this.nextZIndex++;`${n}`!==t.style.zIndex&&(t.style.zIndex=`${n}`)})}},rc=`@@ziContext`,ic={mounted(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n;e[rc]={enabled:!!i,initialized:!1},i&&(nc.ensureZIndex(e,r),e[rc].initialized=!0)},updated(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n,a=e[rc].enabled;i&&!a&&(nc.ensureZIndex(e,r),e[rc].initialized=!0),e[rc].enabled=!!i},unmounted(e,t){if(!e[rc].initialized)return;let{value:n={}}=t,{zIndex:r}=n;nc.unregister(e,r)}},{c:ac}=it(),oc=`vueuc-style`;function sc(e){return e&-e}var cc=class{constructor(e,t){this.l=e,this.min=t;let n=Array(e+1);for(let t=0;t<e+1;++t)n[t]=0;this.ft=n}add(e,t){if(t===0)return;let{l:n,ft:r}=this;for(e+=1;e<=n;)r[e]+=t,e+=sc(e)}get(e){return this.sum(e+1)-this.sum(e)}sum(e){if(e===void 0&&(e=this.l),e<=0)return 0;let{ft:t,min:n,l:r}=this;if(e>r)throw Error("[FinweckTree.sum]: `i` is larger than length.");let i=e*n;for(;e>0;)i+=t[e],e-=sc(e);return i}getBound(e){let t=0,n=this.l;for(;n>t;){let r=Math.floor((t+n)/2),i=this.sum(r);if(i>e)n=r;else if(i<e){if(t===r)return this.sum(t+1)<=e?t+1:r;t=r}else return r}return t}};function lc(e){return typeof e==`string`?document.querySelector(e):e()??null}var uc=Y({name:`LazyTeleport`,props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:jie(i(e,`show`)),mergedTo:V(()=>{let{to:t}=e;return t??`body`})}},render(){return this.showTeleport?this.disabled?Ws(`lazy-teleport`,this.$slots):Dn(Xt,{disabled:this.disabled,to:this.mergedTo},Ws(`lazy-teleport`,this.$slots)):null}}),dc={top:`bottom`,bottom:`top`,left:`right`,right:`left`},fc={start:`end`,center:`center`,end:`start`},pc={top:`height`,bottom:`height`,left:`width`,right:`width`},Wie={"bottom-start":`top left`,bottom:`top center`,"bottom-end":`top right`,"top-start":`bottom left`,top:`bottom center`,"top-end":`bottom right`,"right-start":`top left`,right:`center left`,"right-end":`bottom left`,"left-start":`top right`,left:`center right`,"left-end":`bottom right`},Gie={"bottom-start":`bottom left`,bottom:`bottom center`,"bottom-end":`bottom right`,"top-start":`top left`,top:`top center`,"top-end":`top right`,"right-start":`top right`,right:`center right`,"right-end":`bottom right`,"left-start":`top left`,left:`center left`,"left-end":`bottom left`},Kie={"bottom-start":`right`,"bottom-end":`left`,"top-start":`right`,"top-end":`left`,"right-start":`bottom`,"right-end":`top`,"left-start":`bottom`,"left-end":`top`},mc={top:!0,bottom:!1,left:!0,right:!1},hc={top:`end`,bottom:`start`,left:`end`,right:`start`};function qie(e,t,n,r,i,a){if(!i||a)return{placement:e,top:0,left:0};let[o,s]=e.split(`-`),c=s??`center`,l={top:0,left:0},u=(e,i,a)=>{let o=0,s=0,c=n[e]-t[i]-t[e];return c>0&&r&&(a?s=mc[i]?c:-c:o=mc[i]?c:-c),{left:o,top:s}},d=o===`left`||o===`right`;if(c!==`center`){let r=Kie[e],i=dc[r],a=pc[r];if(n[a]>t[a]){if(t[r]+t[a]<n[a]){let e=(n[a]-t[a])/2;t[r]<e||t[i]<e?t[r]<t[i]?(c=fc[s],l=u(a,i,d)):l=u(a,r,d):c=`center`}}else n[a]<t[a]&&t[i]<0&&t[r]>t[i]&&(c=fc[s])}else{let e=o===`bottom`||o===`top`?`left`:`top`,r=dc[e],i=pc[e],a=(n[i]-t[i])/2;(t[e]<a||t[r]<a)&&(t[e]>t[r]?(c=hc[e],l=u(i,e,d)):(c=hc[r],l=u(i,r,d)))}let f=o;return t[o]<n[pc[o]]&&t[o]<t[dc[o]]&&(f=dc[o]),{placement:c===`center`?f:`${f}-${c}`,left:l.left,top:l.top}}function Jie(e,t){return t?Gie[e]:Wie[e]}function Yie(e,t,n,r,i,a){if(a)switch(e){case`bottom-start`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:`translateY(-100%)`};case`bottom-end`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%) translateY(-100%)`};case`top-start`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:``};case`top-end`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%)`};case`right-start`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%)`};case`right-end`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%) translateY(-100%)`};case`left-start`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:``};case`left-end`:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:`translateY(-100%)`};case`top`:return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:`translateX(-50%)`};case`right`:return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:`translateX(-100%) translateY(-50%)`};case`left`:return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left)}px`,transform:`translateY(-50%)`};default:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:`translateX(-50%) translateY(-100%)`}}switch(e){case`bottom-start`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:``};case`bottom-end`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateX(-100%)`};case`top-start`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateY(-100%)`};case`top-end`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateX(-100%) translateY(-100%)`};case`right-start`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:``};case`right-end`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateY(-100%)`};case`left-start`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateX(-100%)`};case`left-end`:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateX(-100%) translateY(-100%)`};case`top`:return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+i)}px`,transform:`translateY(-100%) translateX(-50%)`};case`right`:return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+n.width+i)}px`,transform:`translateY(-50%)`};case`left`:return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+i)}px`,transform:`translateY(-50%) translateX(-100%)`};default:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+i)}px`,transform:`translateX(-50%)`}}}var Xie=ac([ac(`.v-binder-follower-container`,{position:`absolute`,left:`0`,right:`0`,top:`0`,height:`0`,pointerEvents:`none`,zIndex:`auto`}),ac(`.v-binder-follower-content`,{position:`absolute`,zIndex:`auto`},[ac(`> *`,{pointerEvents:`all`})])]),gc=Y({name:`Follower`,inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:`bottom`},syncTrigger:{type:Array,default:[`resize`,`scroll`]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){let t=pe(`VBinder`),n=dr(()=>e.enabled===void 0?e.show:e.enabled),r=N(null),a=N(null),o=()=>{let{syncTrigger:n}=e;n.includes(`scroll`)&&t.addScrollListener(l),n.includes(`resize`)&&t.addResizeListener(l)},s=()=>{t.removeScrollListener(l),t.removeResizeListener(l)};Ve(()=>{n.value&&(l(),o())});let c=Ht();Xie.mount({id:`vueuc/binder`,head:!0,anchorMetaName:oc,ssr:c}),se(()=>{s()}),ks(()=>{n.value&&l()});let l=()=>{if(!n.value)return;let i=r.value;if(i===null)return;let o=t.targetRef,{x:s,y:c,overlap:l}=e,u=s!==void 0&&c!==void 0?Vie(s,c):Ys(o);i.style.setProperty(`--v-target-width`,`${Math.round(u.width)}px`),i.style.setProperty(`--v-target-height`,`${Math.round(u.height)}px`);let{width:d,minWidth:f,placement:p,internalShift:m,flip:h}=e;i.setAttribute(`v-placement`,p),l?i.setAttribute(`v-overlap`,``):i.removeAttribute(`v-overlap`);let{style:g}=i;g.width=d===`target`?`${u.width}px`:d===void 0?``:d,g.minWidth=f===`target`?`${u.width}px`:f===void 0?``:f;let _=Ys(i),v=Ys(a.value),{left:y,top:b,placement:x}=qie(p,u,_,m,h,l),S=Jie(x,l),{left:C,top:w,transform:T}=Yie(x,v,u,b,y,l);i.setAttribute(`v-placement`,x),i.style.setProperty(`--v-offset-left`,`${Math.round(y)}px`),i.style.setProperty(`--v-offset-top`,`${Math.round(b)}px`),i.style.transform=`translateX(${C}) translateY(${w}) ${T}`,i.style.setProperty(`--v-transform-origin`,S),i.style.transformOrigin=S};Te(n,e=>{e?(o(),u()):s()});let u=()=>{he().then(l).catch(e=>void 0)};[`placement`,`x`,`y`,`internalShift`,`flip`,`width`,`overlap`,`minWidth`].forEach(t=>{Te(i(e,t),l)}),[`teleportDisabled`].forEach(t=>{Te(i(e,t),u)}),Te(i(e,`syncTrigger`),e=>{e.includes(`resize`)?t.addResizeListener(l):t.removeResizeListener(l),e.includes(`scroll`)?t.addScrollListener(l):t.removeScrollListener(l)});let d=sr();return{VBinder:t,mergedEnabled:n,offsetContainerRef:a,followerRef:r,mergedTo:dr(()=>{let{to:t}=e;if(t!==void 0)return t;d.value}),syncPosition:l}},render(){return Dn(uc,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e;let t=Dn(`div`,{class:[`v-binder-follower-container`,this.containerClass],ref:`offsetContainerRef`},[Dn(`div`,{class:`v-binder-follower-content`,ref:`followerRef`},(e=this.$slots).default?.call(e))]);return this.zindexable?Se(t,[[ic,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):t}})}}),_c;function Zie(){return typeof document>`u`?!1:(_c===void 0&&(_c=`matchMedia`in window&&window.matchMedia(`(pointer:coarse)`).matches),_c)}var vc;function yc(){return typeof document>`u`?1:(vc===void 0&&(vc=`chrome`in window?window.devicePixelRatio:1),vc)}var bc=`VVirtualListXScroll`;function Qie({columnsRef:e,renderColRef:t,renderItemWithColsRef:n}){let r=N(0),i=N(0),a=V(()=>{let t=e.value;if(t.length===0)return null;let n=new cc(t.length,0);return t.forEach((e,t)=>{n.add(t,e.width)}),n}),o=dr(()=>{let e=a.value;return e===null?0:Math.max(e.getBound(i.value)-1,0)}),s=e=>{let t=a.value;return t===null?0:t.sum(e)},c=dr(()=>{let t=a.value;return t===null?0:Math.min(t.getBound(i.value+r.value)+1,e.value.length-1)});return Oe(bc,{startIndexRef:o,endIndexRef:c,columnsRef:e,renderColRef:t,renderItemWithColsRef:n,getLeft:s}),{listWidthRef:r,scrollLeftRef:i}}var xc=Y({name:`VirtualListRow`,props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){let{startIndexRef:e,endIndexRef:t,columnsRef:n,getLeft:r,renderColRef:i,renderItemWithColsRef:a}=pe(bc);return{startIndex:e,endIndex:t,columns:n,renderCol:i,renderItemWithCols:a,getLeft:r}},render(){let{startIndex:e,endIndex:t,columns:n,renderCol:r,renderItemWithCols:i,getLeft:a,item:o}=this;if(i!=null)return i({itemIndex:this.index,startColIndex:e,endColIndex:t,allColumns:n,item:o,getLeft:a});if(r!=null){let i=[];for(let s=e;s<=t;++s){let e=n[s];i.push(r({column:e,left:a(s),item:o}))}return i}return null}}),$ie=ac(`.v-vl`,{maxHeight:`inherit`,height:`100%`,overflow:`auto`,minWidth:`1px`},[ac(`&:not(.v-vl--show-scrollbar)`,{scrollbarWidth:`none`},[ac(`&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb`,{width:0,height:0,display:`none`})])]),Sc=Y({name:`VirtualList`,inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:`div`},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:`key`},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){let t=Ht();$ie.mount({id:`vueuc/virtual-list`,head:!0,anchorMetaName:oc,ssr:t}),Ve(()=>{let{defaultScrollIndex:t,defaultScrollKey:n}=e;t==null?n!=null&&_({key:n}):_({index:t})});let n=!1,r=!1;We(()=>{n=!1,r?_({top:m.value,left:s.value}):r=!0}),Re(()=>{n=!0,r||=!0});let a=dr(()=>{if(e.renderCol==null&&e.renderItemWithCols==null||e.columns.length===0)return;let t=0;return e.columns.forEach(e=>{t+=e.width}),t}),o=V(()=>{let t=new Map,{keyField:n}=e;return e.items.forEach((e,r)=>{t.set(e[n],r)}),t}),{scrollLeftRef:s,listWidthRef:c}=Qie({columnsRef:i(e,`columns`),renderColRef:i(e,`renderCol`),renderItemWithColsRef:i(e,`renderItemWithCols`)}),l=N(null),u=N(void 0),d=new Map,f=V(()=>{let{items:t,itemSize:n,keyField:r}=e,i=new cc(t.length,n);return t.forEach((e,t)=>{let n=e[r],a=d.get(n);a!==void 0&&i.add(t,a)}),i}),p=N(0),m=N(0),h=dr(()=>Math.max(f.value.getBound(m.value-sn(e.paddingTop))-1,0)),g=V(()=>{let{value:t}=u;if(t===void 0)return[];let{items:n,itemSize:r}=e,i=h.value,a=Math.min(i+Math.ceil(t/r+1),n.length-1),o=[];for(let e=i;e<=a;++e)o.push(n[e]);return o}),_=(e,t)=>{if(typeof e==`number`){x(e,t,`auto`);return}let{left:n,top:r,index:i,key:a,position:s,behavior:c,debounce:l=!0}=e;if(n!==void 0||r!==void 0)x(n,r,c);else if(i!==void 0)b(i,c,l);else if(a!==void 0){let e=o.value.get(a);e!==void 0&&b(e,c,l)}else s===`bottom`?x(0,2**53-1,c):s===`top`&&x(0,0,c)},v,y=null;function b(t,n,r){let i=l.value;if(i==null)return;let{value:a}=f,o=a.sum(t)+sn(e.paddingTop);if(!r)i.scrollTo({left:0,top:o,behavior:n});else{v=t,y!==null&&window.clearTimeout(y),y=window.setTimeout(()=>{v=void 0,y=null},16);let{scrollTop:e,offsetHeight:r}=i;if(o>e){let s=a.get(t);o+s<=e+r||i.scrollTo({left:0,top:o+s-r,behavior:n})}else i.scrollTo({left:0,top:o,behavior:n})}}function x(e,t,n){l.value?.scrollTo({left:e,top:t,behavior:n})}function S(t,r){if(n||e.ignoreItemResize||k(r.target))return;let{value:i}=f,a=o.value.get(t),s=i.get(a),c=r.borderBoxSize?.[0]?.blockSize??r.contentRect.height;if(c===s)return;c-e.itemSize===0?d.delete(t):d.set(t,c-e.itemSize);let u=c-s;if(u===0)return;i.add(a,u);let m=l.value;if(m!=null){if(v===void 0){let e=i.sum(a);m.scrollTop>e&&m.scrollBy(0,u)}else(a<v||a===v&&c+i.sum(a)>m.scrollTop+m.offsetHeight)&&m.scrollBy(0,u);O()}p.value++}let C=!Zie(),w=!1;function T(t){var n;(n=e.onScroll)==null||n.call(e,t),C&&w||O()}function E(t){var n;if((n=e.onWheel)==null||n.call(e,t),C){let e=l.value;if(e!=null){if(t.deltaX===0&&(e.scrollTop===0&&t.deltaY<=0||e.scrollTop+e.offsetHeight>=e.scrollHeight&&t.deltaY>=0))return;t.preventDefault(),e.scrollTop+=t.deltaY/yc(),e.scrollLeft+=t.deltaX/yc(),O(),w=!0,es(()=>{w=!1})}}}function D(t){if(n||k(t.target))return;if(e.renderCol==null&&e.renderItemWithCols==null){if(t.contentRect.height===u.value)return}else if(t.contentRect.height===u.value&&t.contentRect.width===c.value)return;u.value=t.contentRect.height,c.value=t.contentRect.width;let{onResize:r}=e;r!==void 0&&r(t)}function O(){let{value:e}=l;e!=null&&(m.value=e.scrollTop,s.value=e.scrollLeft)}function k(e){let t=e;for(;t!==null;){if(t.style.display===`none`)return!0;t=t.parentElement}return!1}return{listHeight:u,listStyle:{overflow:`auto`},keyToIndex:o,itemsStyle:V(()=>{let{itemResizable:t}=e,n=mt(f.value.sum());return p.value,[e.itemsStyle,{boxSizing:`content-box`,width:mt(a.value),height:t?``:n,minHeight:t?n:``,paddingTop:mt(e.paddingTop),paddingBottom:mt(e.paddingBottom)}]}),visibleItemsStyle:V(()=>(p.value,{transform:`translateY(${mt(f.value.sum(h.value))})`})),viewportItems:g,listElRef:l,itemsElRef:N(null),scrollTo:_,handleListResize:D,handleListScroll:T,handleListWheel:E,handleItemResize:S}},render(){let{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:r}=this;return Dn(xt,{onResize:this.handleListResize},{default:()=>{var i;return Dn(`div`,I(this.$attrs,{class:[`v-vl`,this.showScrollbar&&`v-vl--show-scrollbar`],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:`listElRef`}),[this.items.length===0?(i=this.$slots).empty?.call(i):Dn(`div`,{ref:`itemsElRef`,class:`v-vl-items`,style:this.itemsStyle},[Dn(r,Object.assign({class:`v-vl-visible-items`,style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{let{renderCol:r,renderItemWithCols:i}=this;return this.viewportItems.map(a=>{let o=a[t],s=n.get(o),c=r==null?void 0:Dn(xc,{index:s,item:a}),l=i==null?void 0:Dn(xc,{index:s,item:a}),u=this.$slots.default({item:a,renderedCols:c,renderedItemWithCols:l,index:s})[0];return e?Dn(xt,{key:o,onResize:e=>this.handleItemResize(o,e)},{default:()=>u}):(u.key=o,u)})}})])])}})}}),eae=ac(`.v-x-scroll`,{overflow:`auto`,scrollbarWidth:`none`},[ac(`&::-webkit-scrollbar`,{width:0,height:0})]),tae=Y({name:`XScroll`,props:{disabled:Boolean,onScroll:Function},setup(){let e=N(null);function t(e){e.currentTarget.offsetWidth<e.currentTarget.scrollWidth&&e.deltaY!==0&&(e.currentTarget.scrollLeft+=e.deltaY+e.deltaX,e.preventDefault())}let n=Ht();return eae.mount({id:`vueuc/x-scroll`,head:!0,anchorMetaName:oc,ssr:n}),Object.assign({selfRef:e,handleWheel:t},{scrollTo(...t){var n;(n=e.value)==null||n.scrollTo(...t)}})},render(){return Dn(`div`,{ref:`selfRef`,onScroll:this.onScroll,onWheel:this.disabled?void 0:this.handleWheel,class:`v-x-scroll`},this.$slots)}}),Cc=`v-hidden`,nae=ac(`[v-hidden]`,{display:`none!important`}),wc=Y({name:`Overflow`,props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){let n=N(null),r=N(null);function i(i){let{value:a}=n,{getCounter:o,getTail:s}=e,c;if(c=o===void 0?r.value:o(),!a||!c)return;c.hasAttribute(Cc)&&c.removeAttribute(Cc);let{children:l}=a;if(i.showAllItemsBeforeCalculate)for(let e of l)e.hasAttribute(Cc)&&e.removeAttribute(Cc);let u=a.offsetWidth,d=[],f=t.tail?s?.():null,p=f?f.offsetWidth:0,m=!1,h=a.children.length-+!!t.tail;for(let t=0;t<h-1;++t){if(t<0)continue;let n=l[t];if(m){n.hasAttribute(Cc)||n.setAttribute(Cc,``);continue}n.hasAttribute(Cc)&&n.removeAttribute(Cc);let r=n.offsetWidth;if(p+=r,d[t]=r,p>u){let{updateCounter:n}=e;for(let r=t;r>=0;--r){let i=h-1-r;n===void 0?c.textContent=`${i}`:n(i);let a=c.offsetWidth;if(p-=d[r],p+a<=u||r===0){m=!0,t=r-1,f&&(t===-1?(f.style.maxWidth=`${u-a}px`,f.style.boxSizing=`border-box`):f.style.maxWidth=``);let{onUpdateCount:n}=e;n&&n(i);break}}}}let{onUpdateOverflow:g}=e;m?g!==void 0&&g(!0):(g!==void 0&&g(!1),c.setAttribute(Cc,``))}let a=Ht();return nae.mount({id:`vueuc/overflow`,head:!0,anchorMetaName:oc,ssr:a}),Ve(()=>i({showAllItemsBeforeCalculate:!1})),{selfRef:n,counterRef:r,sync:i}},render(){let{$slots:e}=this;return he(()=>this.sync({showAllItemsBeforeCalculate:!1})),Dn(`div`,{class:`v-overflow`,ref:`selfRef`},[Fe(e,`default`),e.counter?e.counter():Dn(`span`,{style:{display:`inline-block`},ref:`counterRef`}),e.tail?e.tail():null])}});function Tc(e){return e instanceof HTMLElement}function Ec(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if(Tc(n)&&(Oc(n)||Ec(n)))return!0}return!1}function Dc(e){for(let t=e.childNodes.length-1;t>=0;t--){let n=e.childNodes[t];if(Tc(n)&&(Oc(n)||Dc(n)))return!0}return!1}function Oc(e){if(!rae(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function rae(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute(`tabIndex`)!==null)return!0;if(e.getAttribute(`disabled`))return!1;switch(e.nodeName){case`A`:return!!e.href&&e.rel!==`ignore`;case`INPUT`:return e.type!==`hidden`&&e.type!==`file`;case`SELECT`:case`TEXTAREA`:return!0;default:return!1}}var kc=[],Ac=Y({name:`FocusTrap`,props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:[String,Function],finalFocusTo:[String,Function],returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){let t=Ir(),n=N(null),r=N(null),i=!1,a=!1,o=typeof document>`u`?null:document.activeElement;function s(){return kc[kc.length-1]===t}function c(t){var n;t.code===`Escape`&&s()&&((n=e.onEsc)==null||n.call(e,t))}Ve(()=>{Te(()=>e.active,e=>{e?(d(),kn(`keydown`,document,c)):(xn(`keydown`,document,c),i&&f())},{immediate:!0})}),se(()=>{xn(`keydown`,document,c),i&&f()});function l(e){if(!a&&s()){let t=u();if(t===null||t.contains(vt(e)))return;p(`first`)}}function u(){let e=n.value;if(e===null)return null;let t=e;for(;t=t.nextSibling,!(t===null||t instanceof Element&&t.tagName===`DIV`););return t}function d(){var n;if(!e.disabled){if(kc.push(t),e.autoFocus){let{initialFocusTo:t}=e;t===void 0?p(`first`):(n=lc(t))==null||n.focus({preventScroll:!0})}i=!0,document.addEventListener(`focus`,l,!0)}}function f(){var n;if(e.disabled||(document.removeEventListener(`focus`,l,!0),kc=kc.filter(e=>e!==t),s()))return;let{finalFocusTo:r}=e;r===void 0?e.returnFocusOnDeactivated&&o instanceof HTMLElement&&(a=!0,o.focus({preventScroll:!0}),a=!1):(n=lc(r))==null||n.focus({preventScroll:!0})}function p(t){if(s()&&e.active){let e=n.value,i=r.value;if(e!==null&&i!==null){let n=u();if(n==null||n===i){a=!0,e.focus({preventScroll:!0}),a=!1;return}a=!0;let r=t===`first`?Ec(n):Dc(n);a=!1,r||(a=!0,e.focus({preventScroll:!0}),a=!1)}}}function m(e){if(a)return;let t=u();t!==null&&(e.relatedTarget!==null&&t.contains(e.relatedTarget)?p(`last`):p(`first`))}function h(e){a||(e.relatedTarget!==null&&e.relatedTarget===n.value?p(`last`):p(`first`))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:`position: absolute; height: 0; width: 0;`,handleStartFocus:m,handleEndFocus:h}},render(){let{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();let{active:t,focusableStyle:n}=this;return Dn(K,null,[Dn(`div`,{"aria-hidden":`true`,tabindex:t?`0`:`-1`,ref:`focusableStartRef`,style:n,onFocus:this.handleStartFocus}),e(),Dn(`div`,{"aria-hidden":`true`,style:n,ref:`focusableEndRef`,tabindex:t?`0`:`-1`,onFocus:this.handleEndFocus})])}}),jc={top:`bottom`,bottom:`top`,left:`right`,right:`left`},Mc=`var(--n-arrow-height) * 1.414`,iae=U([z(`popover`,`
transition:
box-shadow .3s var(--n-bezier),
background-color .3s var(--n-bezier),
color .3s var(--n-bezier);
position: relative;
font-size: var(--n-font-size);
color: var(--n-text-color);
box-shadow: var(--n-box-shadow);
word-break: break-word;
`,[U(`>`,[z(`scrollbar`,`
height: inherit;
max-height: inherit;
`)]),On(`raw`,`
background-color: var(--n-color);
border-radius: var(--n-border-radius);
`,[On(`scrollable`,[On(`show-header-or-footer`,`padding: var(--n-padding);`)])]),X(`header`,`
padding: var(--n-padding);
border-bottom: 1px solid var(--n-divider-color);
transition: border-color .3s var(--n-bezier);
`),X(`footer`,`
padding: var(--n-padding);
border-top: 1px solid var(--n-divider-color);
transition: border-color .3s var(--n-bezier);
`),B(`scrollable, show-header-or-footer`,[X(`content`,`
padding: var(--n-padding);
`)])]),z(`popover-shared`,`
transform-origin: inherit;
`,[z(`popover-arrow-wrapper`,`
position: absolute;
overflow: hidden;
pointer-events: none;
`,[z(`popover-arrow`,`
transition: background-color .3s var(--n-bezier);
position: absolute;
display: block;
width: calc(${Mc});
height: calc(${Mc});
box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);
transform: rotate(45deg);
background-color: var(--n-color);
pointer-events: all;
`)]),U(`&.popover-transition-enter-from, &.popover-transition-leave-to`,`
opacity: 0;
transform: scale(.85);
`),U(`&.popover-transition-enter-to, &.popover-transition-leave-from`,`
transform: scale(1);
opacity: 1;
`),U(`&.popover-transition-enter-active`,`
transition:
box-shadow .3s var(--n-bezier),
background-color .3s var(--n-bezier),
color .3s var(--n-bezier),
opacity .15s var(--n-bezier-ease-out),
transform .15s var(--n-bezier-ease-out);
`),U(`&.popover-transition-leave-active`,`
transition:
box-shadow .3s var(--n-bezier),
background-color .3s var(--n-bezier),
color .3s var(--n-bezier),
opacity .15s var(--n-bezier-ease-in),
transform .15s var(--n-bezier-ease-in);
`)]),Pc(`top-start`,`
top: calc(${Mc} / -2);
left: calc(${Nc(`top-start`)} - var(--v-offset-left));
`),Pc(`top`,`
top: calc(${Mc} / -2);
transform: translateX(calc(${Mc} / -2)) rotate(45deg);
left: 50%;
`),Pc(`top-end`,`
top: calc(${Mc} / -2);
right: calc(${Nc(`top-end`)} + var(--v-offset-left));
`),Pc(`bottom-start`,`
bottom: calc(${Mc} / -2);
left: calc(${Nc(`bottom-start`)} - var(--v-offset-left));
`),Pc(`bottom`,`
bottom: calc(${Mc} / -2);
transform: translateX(calc(${Mc} / -2)) rotate(45deg);
left: 50%;
`),Pc(`bottom-end`,`
bottom: calc(${Mc} / -2);
right: calc(${Nc(`bottom-end`)} + var(--v-offset-left));
`),Pc(`left-start`,`
left: calc(${Mc} / -2);
top: calc(${Nc(`left-start`)} - var(--v-offset-top));
`),Pc(`left`,`
left: calc(${Mc} / -2);
transform: translateY(calc(${Mc} / -2)) rotate(45deg);
top: 50%;
`),Pc(`left-end`,`
left: calc(${Mc} / -2);
bottom: calc(${Nc(`left-end`)} + var(--v-offset-top));
`),Pc(`right-start`,`
right: calc(${Mc} / -2);
top: calc(${Nc(`right-start`)} - var(--v-offset-top));
`),Pc(`right`,`
right: calc(${Mc} / -2);
transform: translateY(calc(${Mc} / -2)) rotate(45deg);
top: 50%;
`),Pc(`right-end`,`
right: calc(${Mc} / -2);
bottom: calc(${Nc(`right-end`)} + var(--v-offset-top));
`),...vo({top:[`right-start`,`left-start`],right:[`top-end`,`bottom-end`],bottom:[`right-end`,`left-end`],left:[`top-start`,`bottom-start`]},(e,t)=>{let n=[`right`,`left`].includes(t),r=n?`width`:`height`;return e.map(e=>{let i=e.split(`-`)[1]===`end`,a=`calc((${`var(--v-target-${r}, 0px)`} - ${Mc}) / 2)`,o=Nc(e);return U(`[v-placement="${e}"] >`,[z(`popover-shared`,[B(`center-arrow`,[z(`popover-arrow`,`${t}: calc(max(${a}, ${o}) ${i?`+`:`-`} var(--v-offset-${n?`left`:`top`}));`)])])])})})]);function Nc(e){return[`top`,`bottom`].includes(e.split(`-`)[0])?`var(--n-arrow-offset)`:`var(--n-arrow-offset-vertical)`}function Pc(e,t){let n=e.split(`-`)[0],r=[`top`,`bottom`].includes(n)?`height: var(--n-space-arrow);`:`width: var(--n-space-arrow);`;return U(`[v-placement="${e}"] >`,[z(`popover-shared`,`
margin-${jc[n]}: var(--n-space);
`,[B(`show-arrow`,`
margin-${jc[n]}: var(--n-space-arrow);
`),B(`overlap`,`
margin: 0;
`),Sn(`popover-arrow-wrapper`,`
right: 0;
left: 0;
top: 0;
bottom: 0;
${n}: 100%;
${jc[n]}: auto;
${r}
`,[z(`popover-arrow`,t)])])])}var Fc={...$e.props,to:Vs.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number};function Ic({arrowClass:t,arrowStyle:n,arrowWrapperClass:r,arrowWrapperStyle:i,clsPrefix:a}){return L(),H(`div`,{key:`__popover-arrow__`,style:e(i),class:P([`${a}-popover-arrow-wrapper`,r])},[q(`div`,{class:P([`${a}-popover-arrow`,t]),style:e(n)},null,6)],6)}var aae=Y({name:`PopoverBody`,inheritAttrs:!1,props:Fc,setup(t,{slots:n,attrs:r}){let{namespaceRef:a,mergedClsPrefixRef:o,inlineThemeDisabled:s,mergedRtlRef:c}=mn(t),l=$e(`Popover`,`-popover`,iae,gs,t,o),u=vn(`Popover`,c,o),d=N(null),f=pe(`NPopover`),p=N(null),m=N(t.show),h=N(!1);ot(()=>{let{show:e}=t;e&&!Bie()&&!t.internalDeactivateImmediately&&(h.value=!0)});let g=V(()=>{let{trigger:e,onClickoutside:n}=t,r=[],{positionManuallyRef:{value:i}}=f;return i||(e===`click`&&!n&&r.push([tc,w,void 0,{capture:!0}]),e===`hover`&&r.push([Uie,C])),n&&r.push([tc,w,void 0,{capture:!0}]),(t.displayDirective===`show`||t.animated&&h.value)&&r.push([Vt,t.show]),r}),_=V(()=>{let{common:{cubicBezierEaseInOut:e,cubicBezierEaseIn:t,cubicBezierEaseOut:n},self:{space:r,spaceArrow:i,padding:a,fontSize:o,textColor:s,dividerColor:c,color:u,boxShadow:d,borderRadius:f,arrowHeight:p,arrowOffset:m,arrowOffsetVertical:h}}=l.value;return{"--n-box-shadow":d,"--n-bezier":e,"--n-bezier-ease-in":t,"--n-bezier-ease-out":n,"--n-font-size":o,"--n-text-color":s,"--n-color":u,"--n-divider-color":c,"--n-border-radius":f,"--n-arrow-height":p,"--n-arrow-offset":m,"--n-arrow-offset-vertical":h,"--n-padding":a,"--n-space":r,"--n-space-arrow":i}}),v=V(()=>{let e=t.width===`trigger`?void 0:pr(t.width),n=[];e&&n.push({width:e});let{maxWidth:r,minWidth:i}=t;return r&&n.push({maxWidth:pr(r)}),i&&n.push({maxWidth:pr(i)}),s||n.push(_.value),n}),y=s?fe(`popover`,void 0,_,t):void 0;f.setBodyInstance({syncPosition:b}),se(()=>{f.setBodyInstance(null)}),Te(i(t,`show`),e=>{t.animated||(e?m.value=!0:m.value=!1)});function b(){d.value?.syncPosition()}function x(e){t.trigger===`hover`&&t.keepAliveOnHover&&t.show&&f.handleMouseEnter(e)}function S(e){t.trigger===`hover`&&t.keepAliveOnHover&&f.handleMouseLeave(e)}function C(e){t.trigger===`hover`&&!T().contains(vt(e))&&f.handleMouseMoveOutside(e)}function w(e){(t.trigger===`click`&&!T().contains(vt(e))||t.onClickoutside)&&f.handleClickOutside(e)}function T(){return f.getTriggerElement()}Oe(ws,p),Oe(bs,null),Oe(Ss,null);function E(){if(y?.onRender(),!(t.displayDirective===`show`||t.show||t.animated&&h.value))return null;let i,a=f.internalRenderBodyRef.value,{value:s}=o;if(a)i=a([`${s}-popover-shared`,u?.value&&`${s}-popover--rtl`,y?.themeClass.value,t.overlap&&`${s}-popover-shared--overlap`,t.showArrow&&`${s}-popover-shared--show-arrow`,t.arrowPointToCenter&&`${s}-popover-shared--center-arrow`],p,v.value,x,S);else{let{value:a}=f.extraClassRef,{internalTrapFocus:o}=t,c=!Pt(n.header)||!Pt(n.footer),d=()=>{let r=c?(L(),H(K,{key:1},[G(()=>Lt(n.header,n=>n?(L(),H(`div`,{key:2,class:P([`${s}-popover__header`,t.headerClass]),style:e(t.headerStyle)},[G(()=>n)],6)):null)),G(()=>Lt(n.default,r=>r?(L(),H(`div`,{key:3,class:P([`${s}-popover__content`,t.contentClass]),style:e(t.contentStyle)},[G(()=>n.default?.())],6)):null)),G(()=>Lt(n.footer,n=>n?(L(),H(`div`,{key:4,class:P([`${s}-popover__footer`,t.footerClass]),style:e(t.footerStyle)},[G(()=>n)],6)):null))],64)):t.scrollable?n.default?.():(L(),H(`div`,{key:5,class:P([`${s}-popover__content`,t.contentClass]),style:e(t.contentStyle)},[G(()=>n.default?.())],6));return[t.scrollable?(L(),W(Bt,{key:6,themeOverrides:l.value.peerOverrides.Scrollbar,theme:l.value.peers.Scrollbar,contentClass:c?void 0:`${s}-popover__content ${t.contentClass??``}`,contentStyle:c?void 0:t.contentStyle},{default:()=>r},1032,[`themeOverrides`,`theme`,`contentClass`,`contentStyle`])):r,t.showArrow?Ic({arrowClass:t.arrowClass,arrowStyle:t.arrowStyle,arrowWrapperClass:t.arrowWrapperClass,arrowWrapperStyle:t.arrowWrapperStyle,clsPrefix:s}):null]};i=Dn(`div`,I({class:[`${s}-popover`,`${s}-popover-shared`,u?.value&&`${s}-popover--rtl`,y?.themeClass.value,a.map(e=>`${s}-${e}`),{[`${s}-popover--scrollable`]:t.scrollable,[`${s}-popover--show-header-or-footer`]:c,[`${s}-popover--raw`]:t.raw,[`${s}-popover-shared--overlap`]:t.overlap,[`${s}-popover-shared--show-arrow`]:t.showArrow,[`${s}-popover-shared--center-arrow`]:t.arrowPointToCenter}],ref:p,style:v.value,onKeydown:f.handleKeydown,onMouseenter:x,onMouseleave:S},r),o?(L(),W(Ac,{key:7,active:t.show,autoFocus:!0},{default:d},1032,[`active`])):d())}return Se(i,g.value)}return{displayed:h,namespace:a,isMounted:f.isMountedRef,zIndex:f.zIndexRef,followerRef:d,adjustedTo:Vs(t),followerEnabled:m,renderContentNode:E}},render(){return L(),W(gc,{ref:`followerRef`,zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width===`trigger`?`target`:void 0,teleportDisabled:this.adjustedTo===Vs.tdkey},{_:1,default:Nt(()=>this.animated?(L(),W(gn,{key:8,name:`popover-transition`,appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{this.internalOnAfterLeave?.(),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode},1032,[`appear`,`onEnter`,`onAfterLeave`])):this.renderContentNode())},8,[`zIndex`,`show`,`enabled`,`to`,`x`,`y`,`flip`,`placement`,`containerClass`,`overlap`,`width`,`teleportDisabled`])}}),oae={key:1,style:{position:`fixed`,top:0,right:0,bottom:0,left:0}},sae=Object.keys(Fc),cae={focus:[`onFocus`,`onBlur`],click:[`onClick`],hover:[`onMouseenter`,`onMouseleave`],manual:[],nested:[`onFocus`,`onBlur`,`onMouseenter`,`onMouseleave`,`onClick`]};function lae(e,t,n){cae[t].forEach(t=>{e.props=e.props?Object.assign({},e.props):{};let r=e.props[t],i=n[t];r?e.props[t]=(...e)=>{r(...e),i(...e)}:e.props[t]=i})}var Lc={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:`hover`},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:`top`},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:`if`},arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:Vs.propTo,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},uae={...$e.props,...Lc,internalOnAfterLeave:Function,internalRenderBody:Function},Rc=Y({name:`Popover`,inheritAttrs:!1,props:uae,slots:Object,__popover__:!0,setup(e){let t=sr(),n=N(null),r=V(()=>e.show),a=N(e.defaultShow),o=lr(r,a),s=dr(()=>!e.disabled&&o.value),c=()=>{if(e.disabled)return!0;let{getDisabled:t}=e;return!!t?.()},l=()=>!c()&&o.value,u=Ls(e,[`arrow`,`showArrow`]),d=V(()=>!e.overlap&&u.value),f=null,p=N(null),m=N(null),h=dr(()=>e.x!==void 0&&e.y!==void 0);function g(t){let{"onUpdate:show":n,onUpdateShow:r,onShow:i,onHide:o}=e;a.value=t,n&&R(n,t),r&&R(r,t),t&&i&&R(i,!0),t&&o&&R(o,!1)}function _(){f&&f.syncPosition()}function v(){let{value:e}=p;e&&(window.clearTimeout(e),p.value=null)}function y(){let{value:e}=m;e&&(window.clearTimeout(e),m.value=null)}function b(){let t=c();if(e.trigger===`focus`&&!t){if(l())return;g(!0)}}function x(){let t=c();if(e.trigger===`focus`&&!t){if(!l())return;g(!1)}}function S(){let t=c();if(e.trigger===`hover`&&!t){if(y(),p.value!==null||l())return;let t=()=>{g(!0),p.value=null},{delay:n}=e;n===0?t():p.value=window.setTimeout(t,n)}}function C(){let t=c();if(e.trigger===`hover`&&!t){if(v(),m.value!==null||!l())return;let t=()=>{g(!1),m.value=null},{duration:n}=e;n===0?t():m.value=window.setTimeout(t,n)}}function w(){C()}function T(t){l()&&(e.trigger===`click`&&(v(),y(),g(!1)),e.onClickoutside?.(t))}function E(){e.trigger===`click`&&!c()&&(v(),y(),g(!l()))}function D(t){e.internalTrapFocus&&t.key===`Escape`&&(v(),y(),g(!1))}function O(e){a.value=e}function k(){return n.value?.targetRef}function A(e){f=e}return Oe(`NPopover`,{getTriggerElement:k,handleKeydown:D,handleMouseEnter:S,handleMouseLeave:C,handleClickOutside:T,handleMouseMoveOutside:w,setBodyInstance:A,positionManuallyRef:h,isMountedRef:t,zIndexRef:i(e,`zIndex`),extraClassRef:i(e,`internalExtraClass`),internalRenderBodyRef:i(e,`internalRenderBody`)}),ot(()=>{o.value&&c()&&g(!1)}),{binderInstRef:n,positionManually:h,mergedShowConsideringDisabledProp:s,uncontrolledShow:a,mergedShowArrow:d,getMergedShow:l,setShow:O,handleClick:E,handleMouseEnter:S,handleMouseLeave:C,handleFocus:b,handleBlur:x,syncPosition:_}},render(){let{positionManually:e,$slots:t}=this,n,r=!1;if(!e&&(n=Rie(t,`trigger`),n)){n=At(n),n=n.type===yn?Dn(`span`,[n]):n;let t={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(n.type?.__popover__)r=!0,n.props||(n.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),n.props.internalSyncTargetWithParent=!0,n.props.internalInheritedEventHandlers?n.props.internalInheritedEventHandlers=[t,...n.props.internalInheritedEventHandlers]:n.props.internalInheritedEventHandlers=[t];else{let{internalInheritedEventHandlers:r}=this,i=[t,...r];lae(n,r?`nested`:e?`manual`:this.trigger,{onBlur:e=>{i.forEach(t=>{t.onBlur(e)})},onFocus:e=>{i.forEach(t=>{t.onFocus(e)})},onClick:e=>{i.forEach(t=>{t.onClick(e)})},onMouseenter:e=>{i.forEach(t=>{t.onMouseenter(e)})},onMouseleave:e=>{i.forEach(t=>{t.onMouseleave(e)})}})}}return L(),W(Zs,{ref:`binderInstRef`,syncTarget:!r,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;let t=this.getMergedShow();return[this.internalTrapFocus&&t?Se((L(),H(`div`,oae)),[[ic,{enabled:t,zIndex:this.zIndex}]]):null,e?null:Dn(Qs,null,{default:()=>n}),Dn(aae,Hs(this.$props,sae,{...this.$attrs,showArrow:this.mergedShowArrow,show:t}),{default:()=>this.$slots.default?.(),header:()=>this.$slots.header?.(),footer:()=>this.$slots.footer?.()})]}},1032,[`syncTarget`,`syncTargetWithParent`])}}),zc={closeIconSizeTiny:`12px`,closeIconSizeSmall:`12px`,closeIconSizeMedium:`14px`,closeIconSizeLarge:`14px`,closeSizeTiny:`16px`,closeSizeSmall:`16px`,closeSizeMedium:`18px`,closeSizeLarge:`18px`,padding:`0 7px`,closeMargin:`0 0 0 4px`},Bc={name:`Tag`,common:os,self(e){let{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:i,infoColor:a,successColor:o,warningColor:s,errorColor:c,baseColor:l,borderColor:u,tagColor:d,opacityDisabled:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,closeColorHover:g,closeColorPressed:_,borderRadiusSmall:v,fontSizeMini:y,fontSizeTiny:b,fontSizeSmall:x,fontSizeMedium:S,heightMini:C,heightTiny:w,heightSmall:T,heightMedium:E,buttonColor2Hover:D,buttonColor2Pressed:O,fontWeightStrong:k}=e;return{...zc,closeBorderRadius:v,heightTiny:C,heightSmall:w,heightMedium:T,heightLarge:E,borderRadius:v,opacityDisabled:f,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,fontSizeLarge:S,fontWeightStrong:k,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:l,colorCheckable:`#0000`,colorHoverCheckable:D,colorPressedCheckable:O,colorChecked:i,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${u}`,textColor:t,color:d,colorBordered:`#0000`,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,closeColorHover:g,closeColorPressed:_,borderPrimary:`1px solid ${F(i,{alpha:.3})}`,textColorPrimary:i,colorPrimary:F(i,{alpha:.16}),colorBorderedPrimary:`#0000`,closeIconColorPrimary:Le(i,{lightness:.7}),closeIconColorHoverPrimary:Le(i,{lightness:.7}),closeIconColorPressedPrimary:Le(i,{lightness:.7}),closeColorHoverPrimary:F(i,{alpha:.16}),closeColorPressedPrimary:F(i,{alpha:.12}),borderInfo:`1px solid ${F(a,{alpha:.3})}`,textColorInfo:a,colorInfo:F(a,{alpha:.16}),colorBorderedInfo:`#0000`,closeIconColorInfo:Le(a,{alpha:.7}),closeIconColorHoverInfo:Le(a,{alpha:.7}),closeIconColorPressedInfo:Le(a,{alpha:.7}),closeColorHoverInfo:F(a,{alpha:.16}),closeColorPressedInfo:F(a,{alpha:.12}),borderSuccess:`1px solid ${F(o,{alpha:.3})}`,textColorSuccess:o,colorSuccess:F(o,{alpha:.16}),colorBorderedSuccess:`#0000`,closeIconColorSuccess:Le(o,{alpha:.7}),closeIconColorHoverSuccess:Le(o,{alpha:.7}),closeIconColorPressedSuccess:Le(o,{alpha:.7}),closeColorHoverSuccess:F(o,{alpha:.16}),closeColorPressedSuccess:F(o,{alpha:.12}),borderWarning:`1px solid ${F(s,{alpha:.3})}`,textColorWarning:s,colorWarning:F(s,{alpha:.16}),colorBorderedWarning:`#0000`,closeIconColorWarning:Le(s,{alpha:.7}),closeIconColorHoverWarning:Le(s,{alpha:.7}),closeIconColorPressedWarning:Le(s,{alpha:.7}),closeColorHoverWarning:F(s,{alpha:.16}),closeColorPressedWarning:F(s,{alpha:.11}),borderError:`1px solid ${F(c,{alpha:.3})}`,textColorError:c,colorError:F(c,{alpha:.16}),colorBorderedError:`#0000`,closeIconColorError:Le(c,{alpha:.7}),closeIconColorHoverError:Le(c,{alpha:.7}),closeIconColorPressedError:Le(c,{alpha:.7}),closeColorHoverError:F(c,{alpha:.16}),closeColorPressedError:F(c,{alpha:.12})}}};function dae(e){let{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:i,infoColor:a,successColor:o,warningColor:s,errorColor:c,baseColor:l,borderColor:u,opacityDisabled:d,tagColor:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,borderRadiusSmall:g,fontSizeMini:_,fontSizeTiny:v,fontSizeSmall:y,fontSizeMedium:b,heightMini:x,heightTiny:S,heightSmall:C,heightMedium:w,closeColorHover:T,closeColorPressed:E,buttonColor2Hover:D,buttonColor2Pressed:O,fontWeightStrong:k}=e;return{...zc,closeBorderRadius:g,heightTiny:x,heightSmall:S,heightMedium:C,heightLarge:w,borderRadius:g,opacityDisabled:d,fontSizeTiny:_,fontSizeSmall:v,fontSizeMedium:y,fontSizeLarge:b,fontWeightStrong:k,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:l,colorCheckable:`#0000`,colorHoverCheckable:D,colorPressedCheckable:O,colorChecked:i,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${u}`,textColor:t,color:f,colorBordered:`rgb(250, 250, 252)`,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,closeColorHover:T,closeColorPressed:E,borderPrimary:`1px solid ${F(i,{alpha:.3})}`,textColorPrimary:i,colorPrimary:F(i,{alpha:.12}),colorBorderedPrimary:F(i,{alpha:.1}),closeIconColorPrimary:i,closeIconColorHoverPrimary:i,closeIconColorPressedPrimary:i,closeColorHoverPrimary:F(i,{alpha:.12}),closeColorPressedPrimary:F(i,{alpha:.18}),borderInfo:`1px solid ${F(a,{alpha:.3})}`,textColorInfo:a,colorInfo:F(a,{alpha:.12}),colorBorderedInfo:F(a,{alpha:.1}),closeIconColorInfo:a,closeIconColorHoverInfo:a,closeIconColorPressedInfo:a,closeColorHoverInfo:F(a,{alpha:.12}),closeColorPressedInfo:F(a,{alpha:.18}),borderSuccess:`1px solid ${F(o,{alpha:.3})}`,textColorSuccess:o,colorSuccess:F(o,{alpha:.12}),colorBorderedSuccess:F(o,{alpha:.1}),closeIconColorSuccess:o,closeIconColorHoverSuccess:o,closeIconColorPressedSuccess:o,closeColorHoverSuccess:F(o,{alpha:.12}),closeColorPressedSuccess:F(o,{alpha:.18}),borderWarning:`1px solid ${F(s,{alpha:.35})}`,textColorWarning:s,colorWarning:F(s,{alpha:.15}),colorBorderedWarning:F(s,{alpha:.12}),closeIconColorWarning:s,closeIconColorHoverWarning:s,closeIconColorPressedWarning:s,closeColorHoverWarning:F(s,{alpha:.12}),closeColorPressedWarning:F(s,{alpha:.18}),borderError:`1px solid ${F(c,{alpha:.23})}`,textColorError:c,colorError:F(c,{alpha:.1}),colorBorderedError:F(c,{alpha:.08}),closeIconColorError:c,closeIconColorHoverError:c,closeIconColorPressedError:c,closeColorHoverError:F(c,{alpha:.12}),closeColorPressedError:F(c,{alpha:.18})}}var Vc={name:`Tag`,common:_e,self:dae},Hc={color:Object,type:{type:String,default:`default`},round:Boolean,size:String,closable:Boolean,disabled:{type:Boolean,default:void 0}},fae=z(`tag`,`
--n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left);
white-space: nowrap;
position: relative;
box-sizing: border-box;
cursor: default;
display: inline-flex;
align-items: center;
flex-wrap: nowrap;
padding: var(--n-padding);
border-radius: var(--n-border-radius);
color: var(--n-text-color);
background-color: var(--n-color);
transition:
border-color .3s var(--n-bezier),
background-color .3s var(--n-bezier),
color .3s var(--n-bezier),
box-shadow .3s var(--n-bezier),
opacity .3s var(--n-bezier);
line-height: 1;
height: var(--n-height);
font-size: var(--n-font-size);
`,[B(`strong`,`
font-weight: var(--n-font-weight-strong);
`),X(`border`,`
pointer-events: none;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
border-radius: inherit;
border: var(--n-border);
transition: border-color .3s var(--n-bezier);
`),X(`icon`,`
display: flex;
margin: 0 4px 0 0;
color: var(--n-text-color);
transition: color .3s var(--n-bezier);
font-size: var(--n-avatar-size-override);
`),X(`avatar`,`
display: flex;
margin: 0 6px 0 0;
`),X(`close`,`
margin: var(--n-close-margin);
transition:
background-color .3s var(--n-bezier),
color .3s var(--n-bezier);
`),B(`round`,`
padding: 0 calc(var(--n-height) / 3);
border-radius: calc(var(--n-height) / 2);
`,[X(`icon`,`
margin: 0 4px 0 calc((var(--n-height) - 8px) / -2);
`),X(`avatar`,`
margin: 0 6px 0 calc((var(--n-height) - 8px) / -2);
`),B(`closable`,`
padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3);
`)]),B(`icon, avatar`,[B(`round`,`
padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2);
`)]),B(`disabled`,`
cursor: not-allowed !important;
opacity: var(--n-opacity-disabled);
`),B(`checkable`,`
cursor: pointer;
box-shadow: none;
color: var(--n-text-color-checkable);
background-color: var(--n-color-checkable);
`,[On(`disabled`,[U(`&:hover`,`background-color: var(--n-color-hover-checkable);`,[On(`checked`,`color: var(--n-text-color-hover-checkable);`)]),U(`&:active`,`background-color: var(--n-color-pressed-checkable);`,[On(`checked`,`color: var(--n-text-color-pressed-checkable);`)])]),B(`checked`,`
color: var(--n-text-color-checked);
background-color: var(--n-color-checked);
`,[On(`disabled`,[U(`&:hover`,`background-color: var(--n-color-checked-hover);`),U(`&:active`,`background-color: var(--n-color-checked-pressed);`)])])])]),pae=[`onClick`,`onMouseenter`,`onMouseleave`],mae={...$e.props,...Hc,bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function},Uc=bn(`n-tag`),Wc=Y({name:`Tag`,props:mae,slots:Object,setup(e){let t=N(null),{mergedBorderedRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:a,mergedRtlRef:o,mergedComponentPropsRef:s}=mn(e),c=V(()=>e.size||s?.value?.Tag?.size||`medium`),l=$e(`Tag`,`-tag`,fae,Vc,e,r);Oe(Uc,{roundRef:i(e,`round`)});function u(){if(!e.disabled&&e.checkable){let{checked:t,onCheckedChange:n,onUpdateChecked:r,"onUpdate:checked":i}=e;r&&r(!t),i&&i(!t),n&&n(!t)}}function d(t){if(e.triggerClickOnClose||t.stopPropagation(),!e.disabled){let{onClose:n}=e;n&&R(n,t)}}let f={setTextContent(e){let{value:n}=t;n&&(n.textContent=e)}},p=vn(`Tag`,o,r),m=V(()=>{let{type:t,color:{color:r,textColor:i}={}}=e,a=c.value,{common:{cubicBezierEaseInOut:o},self:{padding:s,closeMargin:u,borderRadius:d,opacityDisabled:f,textColorCheckable:p,textColorHoverCheckable:m,textColorPressedCheckable:h,textColorChecked:g,colorCheckable:_,colorHoverCheckable:v,colorPressedCheckable:y,colorChecked:b,colorCheckedHover:x,colorCheckedPressed:S,closeBorderRadius:C,fontWeightStrong:w,[tt(`colorBordered`,t)]:T,[tt(`closeSize`,a)]:E,[tt(`closeIconSize`,a)]:D,[tt(`fontSize`,a)]:O,[tt(`height`,a)]:k,[tt(`color`,t)]:A,[tt(`textColor`,t)]:j,[tt(`border`,t)]:ee,[tt(`closeIconColor`,t)]:te,[tt(`closeIconColorHover`,t)]:M,[tt(`closeIconColorPressed`,t)]:ne,[tt(`closeColorHover`,t)]:re,[tt(`closeColorPressed`,t)]:ie}}=l.value,N=gt(u);return{"--n-font-weight-strong":w,"--n-avatar-size-override":`calc(${k} - 8px)`,"--n-bezier":o,"--n-border-radius":d,"--n-border":ee,"--n-close-icon-size":D,"--n-close-color-pressed":ie,"--n-close-color-hover":re,"--n-close-border-radius":C,"--n-close-icon-color":te,"--n-close-icon-color-hover":M,"--n-close-icon-color-pressed":ne,"--n-close-icon-color-disabled":te,"--n-close-margin-top":N.top,"--n-close-margin-right":N.right,"--n-close-margin-bottom":N.bottom,"--n-close-margin-left":N.left,"--n-close-size":E,"--n-color":r||(n.value?T:A),"--n-color-checkable":_,"--n-color-checked":b,"--n-color-checked-hover":x,"--n-color-checked-pressed":S,"--n-color-hover-checkable":v,"--n-color-pressed-checkable":y,"--n-font-size":O,"--n-height":k,"--n-opacity-disabled":f,"--n-padding":s,"--n-text-color":i||j,"--n-text-color-checkable":p,"--n-text-color-checked":g,"--n-text-color-hover-checkable":m,"--n-text-color-pressed-checkable":h}}),h=a?fe(`tag`,V(()=>{let t=``,{type:r,color:{color:i,textColor:a}={}}=e;return t+=r[0],t+=c.value[0],i&&(t+=`a${fr(i)}`),a&&(t+=`b${fr(a)}`),n.value&&(t+=`c`),t}),m,e):void 0;return{...f,rtlEnabled:p,mergedClsPrefix:r,contentRef:t,mergedBordered:n,handleClick:u,handleCloseClick:d,cssVars:a?void 0:m,themeClass:h?.themeClass,onRender:h?.onRender}},render(){let{mergedClsPrefix:t,rtlEnabled:n,closable:r,color:{borderColor:i}={},round:a,onRender:o,$slots:s}=this;o?.();let c=Lt(s.avatar,e=>e&&(L(),H(`div`,{class:P(`${t}-tag__avatar`)},[G(()=>e)],2))),l=Lt(s.icon,e=>e&&(L(),H(`div`,{class:P(`${t}-tag__icon`)},[G(()=>e)],2)));return L(),H(`div`,{class:P([`${t}-tag`,this.themeClass,{[`${t}-tag--rtl`]:n,[`${t}-tag--strong`]:this.strong,[`${t}-tag--disabled`]:this.disabled,[`${t}-tag--checkable`]:this.checkable,[`${t}-tag--checked`]:this.checkable&&this.checked,[`${t}-tag--round`]:a,[`${t}-tag--avatar`]:c,[`${t}-tag--icon`]:l,[`${t}-tag--closable`]:r}]),style:e(this.cssVars),onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},[G(()=>l||c),q(`span`,{class:P(`${t}-tag__content`),ref:`contentRef`},[G(()=>this.$slots.default?.())],2),!this.checkable&&r?(L(),W(hn,{key:0,clsPrefix:t,class:P(`${t}-tag__close`),disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:a,isButtonTag:this.internalCloseIsButtonTag,absolute:!0},null,8,[`clsPrefix`,`class`,`disabled`,`onClick`,`focusable`,`round`,`isButtonTag`])):G(()=>null),!this.checkable&&this.mergedBordered?(L(),H(`div`,{key:2,class:P(`${t}-tag__border`),style:e({borderColor:i})},null,6)):G(()=>null)],46,pae)}}),Gc={paddingSingle:`0 26px 0 12px`,paddingMultiple:`3px 26px 0 12px`,clearSize:`16px`,arrowSize:`16px`},Kc={name:`InternalSelection`,common:os,peers:{Popover:_s},self(e){let{borderRadius:t,textColor2:n,textColorDisabled:r,inputColor:i,inputColorDisabled:a,primaryColor:o,primaryColorHover:s,warningColor:c,warningColorHover:l,errorColor:u,errorColorHover:d,iconColor:f,iconColorDisabled:p,clearColor:m,clearColorHover:h,clearColorPressed:g,placeholderColor:_,placeholderColorDisabled:v,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,fontSizeLarge:S,heightTiny:C,heightSmall:w,heightMedium:T,heightLarge:E,fontWeight:D}=e;return{...Gc,fontWeight:D,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,fontSizeLarge:S,heightTiny:C,heightSmall:w,heightMedium:T,heightLarge:E,borderRadius:t,textColor:n,textColorDisabled:r,placeholderColor:_,placeholderColorDisabled:v,color:i,colorDisabled:a,colorActive:F(o,{alpha:.1}),border:`1px solid #0000`,borderHover:`1px solid ${s}`,borderActive:`1px solid ${o}`,borderFocus:`1px solid ${s}`,boxShadowHover:`none`,boxShadowActive:`0 0 8px 0 ${F(o,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${F(o,{alpha:.4})}`,caretColor:o,arrowColor:f,arrowColorDisabled:p,loadingColor:o,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${l}`,borderActiveWarning:`1px solid ${c}`,borderFocusWarning:`1px solid ${l}`,boxShadowHoverWarning:`none`,boxShadowActiveWarning:`0 0 8px 0 ${F(c,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${F(c,{alpha:.4})}`,colorActiveWarning:F(c,{alpha:.1}),caretColorWarning:c,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${d}`,boxShadowHoverError:`none`,boxShadowActiveError:`0 0 8px 0 ${F(u,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${F(u,{alpha:.4})}`,colorActiveError:F(u,{alpha:.1}),caretColorError:u,clearColor:m,clearColorHover:h,clearColorPressed:g}}},qc={iconMargin:`11px 8px 0 12px`,iconMarginRtl:`11px 12px 0 8px`,iconSize:`24px`,closeIconSize:`16px`,closeSize:`20px`,closeMargin:`13px 14px 0 0`,closeMarginRtl:`13px 0 0 14px`,padding:`13px`},hae={name:`Alert`,common:os,self(e){let{lineHeight:t,borderRadius:n,fontWeightStrong:r,dividerColor:i,inputColor:a,textColor1:o,textColor2:s,closeColorHover:c,closeColorPressed:l,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,infoColorSuppl:p,successColorSuppl:m,warningColorSuppl:h,errorColorSuppl:g,fontSize:_}=e;return{...qc,fontSize:_,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${i}`,color:a,titleTextColor:o,iconColor:s,contentTextColor:s,closeBorderRadius:n,closeColorHover:c,closeColorPressed:l,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,borderInfo:`1px solid ${F(p,{alpha:.35})}`,colorInfo:F(p,{alpha:.25}),titleTextColorInfo:o,iconColorInfo:p,contentTextColorInfo:s,closeColorHoverInfo:c,closeColorPressedInfo:l,closeIconColorInfo:u,closeIconColorHoverInfo:d,closeIconColorPressedInfo:f,borderSuccess:`1px solid ${F(m,{alpha:.35})}`,colorSuccess:F(m,{alpha:.25}),titleTextColorSuccess:o,iconColorSuccess:m,contentTextColorSuccess:s,closeColorHoverSuccess:c,closeColorPressedSuccess:l,closeIconColorSuccess:u,closeIconColorHoverSuccess:d,closeIconColorPressedSuccess:f,borderWarning:`1px solid ${F(h,{alpha:.35})}`,colorWarning:F(h,{alpha:.25}),titleTextColorWarning:o,iconColorWarning:h,contentTextColorWarning:s,closeColorHoverWarning:c,closeColorPressedWarning:l,closeIconColorWarning:u,closeIconColorHoverWarning:d,closeIconColorPressedWarning:f,borderError:`1px solid ${F(g,{alpha:.35})}`,colorError:F(g,{alpha:.25}),titleTextColorError:o,iconColorError:g,contentTextColorError:s,closeColorHoverError:c,closeColorPressedError:l,closeIconColorError:u,closeIconColorHoverError:d,closeIconColorPressedError:f}}},Jc=en(`error`,()=>(()=>{let e=Ye(`550229f72e94547c`);return e[0]||=q(`svg`,{viewBox:`0 0 48 48`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},[q(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},[q(`g`,{"fill-rule":`nonzero`},[q(`path`,{d:`M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z`})])])],-1)})()),Yc=en(`info`,()=>(()=>{let e=Ye(`1d7d3032c5ab60`);return e[0]||=q(`svg`,{viewBox:`0 0 28 28`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},[q(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},[q(`g`,{"fill-rule":`nonzero`},[q(`path`,{d:`M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z`})])])],-1)})()),Xc=en(`success`,()=>(()=>{let e=Ye(`2d4548faff86b4af`);return e[0]||=q(`svg`,{viewBox:`0 0 48 48`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},[q(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},[q(`g`,{"fill-rule":`nonzero`},[q(`path`,{d:`M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z`})])])],-1)})()),Zc=en(`warning`,()=>(()=>{let e=Ye(`eb9505c3181fdf04`);return e[0]||=q(`svg`,{viewBox:`0 0 24 24`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},[q(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},[q(`g`,{"fill-rule":`nonzero`},[q(`path`,{d:`M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z`})])])],-1)})());function gae(e){let{lineHeight:t,borderRadius:n,fontWeightStrong:r,baseColor:i,dividerColor:a,actionColor:o,textColor1:s,textColor2:c,closeColorHover:l,closeColorPressed:u,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:p,infoColor:m,successColor:h,warningColor:g,errorColor:_,fontSize:v}=e;return{...qc,fontSize:v,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${a}`,color:o,titleTextColor:s,iconColor:c,contentTextColor:c,closeBorderRadius:n,closeColorHover:l,closeColorPressed:u,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:p,borderInfo:`1px solid ${Ue(i,F(m,{alpha:.25}))}`,colorInfo:Ue(i,F(m,{alpha:.08})),titleTextColorInfo:s,iconColorInfo:m,contentTextColorInfo:c,closeColorHoverInfo:l,closeColorPressedInfo:u,closeIconColorInfo:d,closeIconColorHoverInfo:f,closeIconColorPressedInfo:p,borderSuccess:`1px solid ${Ue(i,F(h,{alpha:.25}))}`,colorSuccess:Ue(i,F(h,{alpha:.08})),titleTextColorSuccess:s,iconColorSuccess:h,contentTextColorSuccess:c,closeColorHoverSuccess:l,closeColorPressedSuccess:u,closeIconColorSuccess:d,closeIconColorHoverSuccess:f,closeIconColorPressedSuccess:p,borderWarning:`1px solid ${Ue(i,F(g,{alpha:.33}))}`,colorWarning:Ue(i,F(g,{alpha:.08})),titleTextColorWarning:s,iconColorWarning:g,contentTextColorWarning:c,closeColorHoverWarning:l,closeColorPressedWarning:u,closeIconColorWarning:d,closeIconColorHoverWarning:f,closeIconColorPressedWarning:p,borderError:`1px solid ${Ue(i,F(_,{alpha:.25}))}`,colorError:Ue(i,F(_,{alpha:.08})),titleTextColorError:s,iconColorError:_,contentTextColorError:c,closeColorHoverError:l,closeColorPressedError:u,closeIconColorError:d,closeIconColorHoverError:f,closeIconColorPressedError:p}}var Qc={name:`Alert`,common:_e,self:gae},_ae={linkFontSize:`13px`,linkPadding:`0 0 0 16px`,railWidth:`4px`};function $c(e){let{borderRadius:t,railColor:n,primaryColor:r,primaryColorHover:i,primaryColorPressed:a,textColor2:o}=e;return{..._ae,borderRadius:t,railColor:n,railColorActive:r,linkColor:F(r,{alpha:.15}),linkTextColor:o,linkTextColorHover:i,linkTextColorPressed:a,linkTextColorActive:r}}var vae={name:`Anchor`,common:_e,self:$c},yae={name:`Anchor`,common:os,self:$c};function el(e){switch(typeof e){case`string`:return e||void 0;case`number`:return String(e);default:return}}function bae(e){let{textColor2:t,textColor3:n,textColorDisabled:r,primaryColor:i,primaryColorHover:a,inputColor:o,inputColorDisabled:s,warningColor:c,warningColorHover:l,errorColor:u,errorColorHover:d,borderRadius:f,lineHeight:p,fontSizeTiny:m,fontSizeSmall:h,fontSizeMedium:g,fontSizeLarge:_,heightTiny:v,heightSmall:y,heightMedium:b,heightLarge:x,clearColor:S,clearColorHover:C,clearColorPressed:w,placeholderColor:T,placeholderColorDisabled:E,iconColor:D,iconColorDisabled:O,iconColorHover:k,iconColorPressed:A,fontWeight:j}=e;return{...dee,fontWeight:j,countTextColorDisabled:r,countTextColor:n,heightTiny:v,heightSmall:y,heightMedium:b,heightLarge:x,fontSizeTiny:m,fontSizeSmall:h,fontSizeMedium:g,fontSizeLarge:_,lineHeight:p,lineHeightTextarea:p,borderRadius:f,iconSize:`16px`,groupLabelColor:o,textColor:t,textColorDisabled:r,textDecorationColor:t,groupLabelTextColor:t,caretColor:i,placeholderColor:T,placeholderColorDisabled:E,color:o,colorHover:o,colorDisabled:s,colorFocus:F(i,{alpha:.1}),groupLabelBorder:`1px solid #0000`,border:`1px solid #0000`,borderHover:`1px solid ${a}`,borderDisabled:`1px solid #0000`,borderFocus:`1px solid ${a}`,boxShadowFocus:`0 0 8px 0 ${F(i,{alpha:.3})}`,loadingColor:i,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${l}`,colorFocusWarning:F(c,{alpha:.1}),borderFocusWarning:`1px solid ${l}`,boxShadowFocusWarning:`0 0 8px 0 ${F(c,{alpha:.3})}`,caretColorWarning:c,loadingColorError:u,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,colorFocusError:F(u,{alpha:.1}),borderFocusError:`1px solid ${d}`,boxShadowFocusError:`0 0 8px 0 ${F(u,{alpha:.3})}`,caretColorError:u,clearColor:S,clearColorHover:C,clearColorPressed:w,iconColor:D,iconColorDisabled:O,iconColorHover:k,iconColorPressed:A,suffixTextColor:t}}var tl=En({name:`Input`,common:os,peers:{Scrollbar:ss},self:bae}),xae=z(`input-group`,`
display: inline-flex;
width: 100%;
flex-wrap: nowrap;
vertical-align: bottom;
`,[U(`>`,[z(`input`,[U(`&:not(:last-child)`,`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`),U(`&:not(:first-child)`,`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
margin-left: -1px!important;
`)]),z(`button`,[U(`&:not(:last-child)`,`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`,[X(`state-border, border`,`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`)]),U(`&:not(:first-child)`,`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`,[X(`state-border, border`,`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`)])]),U(`*`,[U(`&:not(:last-child)`,`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`,[U(`>`,[z(`input`,`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`),z(`base-selection`,[z(`base-selection-label`,`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`),z(`base-selection-tags`,`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`),X(`box-shadow, border, state-border`,`
border-top-right-radius: 0!important;
border-bottom-right-radius: 0!important;
`)])])]),U(`&:not(:first-child)`,`
margin-left: -1px!important;
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`,[U(`>`,[z(`input`,`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`),z(`base-selection`,[z(`base-selection-label`,`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`),z(`base-selection-tags`,`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`),X(`box-shadow, border, state-border`,`
border-top-left-radius: 0!important;
border-bottom-left-radius: 0!important;
`)])])])])])]),nl=Y({name:`InputGroup`,props:{},setup(e){let{mergedClsPrefixRef:t}=mn(e);return dn(`-input-group`,xae,t),{mergedClsPrefix:t}},render(){let{mergedClsPrefix:e}=this;return L(),H(`div`,{class:P(`${e}-input-group`)},[G(()=>this.$slots.default?.())],2)}});function rl(e){let{boxShadow2:t}=e;return{menuBoxShadow:t}}var Sae=En({name:`AutoComplete`,common:_e,peers:{InternalSelectMenu:ps,Input:Sr},self:rl}),Cae={name:`AutoComplete`,common:os,peers:{InternalSelectMenu:ms,Input:tl},self:rl};function il(e,t){t&&(Ve(()=>{let{value:n}=e;n&&nn.registerHandler(n,t)}),Te(e,(e,t)=>{t&&nn.unregisterHandler(t)},{deep:!1}),se(()=>{let{value:t}=e;t&&nn.unregisterHandler(t)}))}var al=Y({props:{onFocus:Function,onBlur:Function},setup(e){return()=>(()=>{let t=Ye(`d16ead82505dc285`);return L(),H(`div`,{style:`width: 0; height: 0`,tabindex:0,onFocus:t[0]||=t=>e.onFocus?.(t),onBlur:t[1]||=t=>e.onBlur?.(t)},null,32)})()}});function ol(e,...t){return typeof e==`function`?e(...t):typeof e==`string`?bt(e):typeof e==`number`?bt(String(e)):null}var sl=Y({name:`NBaseSelectGroupHeader`,props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){let{renderLabelRef:e,renderOptionRef:t,labelFieldRef:n,nodePropsRef:r}=pe(vs);return{labelField:n,nodeProps:r,renderLabel:e,renderOption:t}},render(){let{clsPrefix:e,renderLabel:t,renderOption:n,nodeProps:r,tmNode:{rawNode:i}}=this,a=r?.(i),o=t?t(i,!1):ol(i[this.labelField],i,!1),s=(L(),H(`div`,I(a,{class:[`${e}-base-select-group-header`,a?.class]}),[G(()=>o)],16));return i.render?i.render({node:s,option:i}):n?n({node:s,option:i,selected:!1}):s}});function cl(e){let t=e.filter(e=>e!==void 0);if(t.length!==0)return t.length===1?t[0]:t=>{e.forEach(e=>{e&&e(t)})}}var ll=Y({name:`Checkmark`,render(){return(()=>{let e=Ye(`3c84eac8ae4e1f96`);return e[0]||=q(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`},[q(`g`,{fill:`none`},[q(`path`,{d:`M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z`,fill:`currentColor`})])],-1)})()}}),wae=[`onClick`,`onMouseenter`,`onMousemove`];function Tae(e,t){return L(),W(gn,{name:`fade-in-scale-up-transition`},{default:()=>e?(L(),W(wt,{key:1,clsPrefix:t,class:P(`${t}-base-select-option__check`)},{default:()=>Dn(ll)},1032,[`clsPrefix`,`class`])):null},1024)}var ul=Y({name:`NBaseSelectOption`,props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){let{valueRef:t,pendingTmNodeRef:n,multipleRef:r,valueSetRef:i,renderLabelRef:a,renderOptionRef:o,labelFieldRef:s,valueFieldRef:c,showCheckmarkRef:l,nodePropsRef:u,handleOptionClick:d,handleOptionMouseEnter:f}=pe(vs),p=dr(()=>{let{value:t}=n;return t?e.tmNode.key===t.key:!1});function m(t){let{tmNode:n}=e;n.disabled||d(t,n)}function h(t){let{tmNode:n}=e;n.disabled||f(t,n)}function g(t){let{tmNode:n}=e,{value:r}=p;n.disabled||r||f(t,n)}return{multiple:r,isGrouped:dr(()=>{let{tmNode:t}=e,{parent:n}=t;return n&&n.rawNode.type===`group`}),showCheckmark:l,nodeProps:u,isPending:p,isSelected:dr(()=>{let{value:n}=t,{value:a}=r;if(n===null)return!1;let o=e.tmNode.rawNode[c.value];if(a){let{value:e}=i;return e.has(o)}return n===o}),labelField:s,renderLabel:a,renderOption:o,handleMouseMove:g,handleMouseEnter:h,handleClick:m}},render(){let{clsPrefix:e,tmNode:{rawNode:t},isSelected:n,isPending:r,isGrouped:i,showCheckmark:a,nodeProps:o,renderOption:s,renderLabel:c,handleClick:l,handleMouseEnter:u,handleMouseMove:d}=this,f=Tae(n,e),p=c?[c(t,n),a&&f]:[ol(t[this.labelField],t,n),a&&f],m=o?.(t),h=(L(),H(`div`,I(m,{class:[`${e}-base-select-option`,t.class,m?.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:n,[`${e}-base-select-option--grouped`]:i,[`${e}-base-select-option--pending`]:r,[`${e}-base-select-option--show-checkmark`]:a}],style:[m?.style||``,t.style||``],onClick:cl([l,m?.onClick]),onMouseenter:cl([u,m?.onMouseenter]),onMousemove:cl([d,m?.onMousemove])}),[q(`div`,{class:P(`${e}-base-select-option__content`)},[G(()=>p)],2)],16,wae));return t.render?t.render({node:h,option:t,selected:n}):s?s({node:h,option:t,selected:n}):h}}),{cubicBezierEaseIn:dl,cubicBezierEaseOut:fl}=Ct;function pl({transformOrigin:e=`inherit`,duration:t=`.2s`,enterScale:n=`.9`,originalTransform:r=``,originalTransition:i=``}={}){return[U(`&.fade-in-scale-up-transition-leave-active`,{transformOrigin:e,transition:`opacity ${t} ${dl}, transform ${t} ${dl} ${i&&`,${i}`}`}),U(`&.fade-in-scale-up-transition-enter-active`,{transformOrigin:e,transition:`opacity ${t} ${fl}, transform ${t} ${fl} ${i&&`,${i}`}`}),U(`&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to`,{opacity:0,transform:`${r} scale(${n})`}),U(`&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to`,{opacity:1,transform:`${r} scale(1)`})]}var Eae=z(`base-select-menu`,`
line-height: 1.5;
outline: none;
z-index: 0;
position: relative;
border-radius: var(--n-border-radius);
transition:
background-color .3s var(--n-bezier),
box-shadow .3s var(--n-bezier);
background-color: var(--n-color);
`,[z(`scrollbar`,`
max-height: var(--n-height);
`),z(`virtual-list`,`
max-height: var(--n-height);
`),z(`base-select-option`,`
min-height: var(--n-option-height);
font-size: var(--n-option-font-size);
display: flex;
align-items: center;
`,[X(`content`,`
z-index: 1;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
`)]),z(`base-select-group-header`,`
min-height: var(--n-option-height);
font-size: .93em;
display: flex;
align-items: center;
`),z(`base-select-menu-option-wrapper`,`
position: relative;
width: 100%;
`),X(`loading, empty`,`
display: flex;
padding: 12px 32px;
flex: 1;
justify-content: center;
`),X(`loading`,`
color: var(--n-loading-color);
font-size: var(--n-loading-size);
`),X(`header`,`
padding: 8px var(--n-option-padding-left);
font-size: var(--n-option-font-size);
transition:
color .3s var(--n-bezier),
border-color .3s var(--n-bezier);
border-bottom: 1px solid var(--n-action-divider-color);
color: var(--n-action-text-color);
`),X(`action`,`
padding: 8px var(--n-option-padding-left);
font-size: var(--n-option-font-size);
transition:
color .3s var(--n-bezier),
border-color .3s var(--n-bezier);
border-top: 1px solid var(--n-action-divider-color);
color: var(--n-action-text-color);
`),z(`base-select-group-header`,`
position: relative;
cursor: default;
padding: var(--n-option-padding);
color: var(--n-group-header-text-color);
`),z(`base-select-option`,`
cursor: pointer;
position: relative;
padding: var(--n-option-padding);
transition:
color .3s var(--n-bezier),
opacity .3s var(--n-bezier);
box-sizing: border-box;
color: var(--n-option-text-color);
opacity: 1;
`,[B(`show-checkmark`,`
padding-right: calc(var(--n-option-padding-right) + 20px);
`),U(`&::before`,`
content: "";
position: absolute;
left: 4px;
right: 4px;
top: 0;
bottom: 0;
border-radius: var(--n-border-radius);
transition: background-color .3s var(--n-bezier);
`),U(`&:active`,`
color: var(--n-option-text-color-pressed);
`),B(`grouped`,`
padding-left: calc(var(--n-option-padding-left) * 1.5);
`),B(`pending`,[U(`&::before`,`
background-color: var(--n-option-color-pending);
`)]),B(`selected`,`
color: var(--n-option-text-color-active);
`,[U(`&::before`,`
background-color: var(--n-option-color-active);
`),B(`pending`,[U(`&::before`,`
background-color: var(--n-option-color-active-pending);
`)])]),B(`disabled`,`
cursor: not-allowed;
`,[On(`selected`,`
color: var(--n-option-text-color-disabled);
`),B(`selected`,`
opacity: var(--n-option-opacity-disabled);
`)]),X(`check`,`
font-size: 16px;
position: absolute;
right: calc(var(--n-option-padding-right) - 4px);
top: calc(50% - 7px);
color: var(--n-option-check-color);
transition: color .3s var(--n-bezier);
`,[pl({enterScale:`0.5`})])])]);function ml(e){return Array.isArray(e)?e:[e]}var hl={STOP:`STOP`};function gl(e,t){let n=t(e);e.children!==void 0&&n!==hl.STOP&&e.children.forEach(e=>gl(e,t))}function Dae(e,t={}){let{preserveGroup:n=!1}=t,r=[],i=n?e=>{e.isLeaf||(r.push(e.key),a(e.children))}:e=>{e.isLeaf||(e.isGroup||r.push(e.key),a(e.children))};function a(e){e.forEach(i)}return a(e),r}function Oae(e,t){let{isLeaf:n}=e;return n===void 0?!t(e):n}function kae(e){return e.children}function Aae(e){return e.key}function jae(){return!1}function Mae(e,t){let{isLeaf:n}=e;return!(n===!1&&!Array.isArray(t(e)))}function Nae(e){return e.disabled===!0}function Pae(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function _l(e){return e==null?[]:Array.isArray(e)?e:e.checkedKeys??[]}function vl(e){return e==null||Array.isArray(e)?[]:e.indeterminateKeys??[]}function Fae(e,t){let n=new Set(e);return t.forEach(e=>{n.has(e)||n.add(e)}),Array.from(n)}function Iae(e,t){let n=new Set(e);return t.forEach(e=>{n.has(e)&&n.delete(e)}),Array.from(n)}function Lae(e){return e?.type===`group`}function yl(e){let t=new Map;return e.forEach((e,n)=>{t.set(e.key,n)}),e=>t.get(e)??null}var bl=class extends Error{constructor(){super(),this.message=`SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded.`}};function Rae(e,t,n,r){return Sl(t.concat(e),n,r,!1)}function zae(e,t){let n=new Set;return e.forEach(e=>{let r=t.treeNodeMap.get(e);if(r!==void 0){let e=r.parent;for(;e!==null&&!(e.disabled||n.has(e.key));)n.add(e.key),e=e.parent}}),n}function Bae(e,t,n,r){let i=Sl(t,n,r,!1),a=Sl(e,n,r,!0),o=zae(e,n),s=[];return i.forEach(e=>{(a.has(e)||o.has(e))&&s.push(e)}),s.forEach(e=>i.delete(e)),i}function xl(e,t){let{checkedKeys:n,keysToCheck:r,keysToUncheck:i,indeterminateKeys:a,cascade:o,leafOnly:s,checkStrategy:c,allowNotLoaded:l}=e;if(!o)return r===void 0?i===void 0?{checkedKeys:Array.from(n),indeterminateKeys:Array.from(a)}:{checkedKeys:Iae(n,i),indeterminateKeys:Array.from(a)}:{checkedKeys:Fae(n,r),indeterminateKeys:Array.from(a)};let{levelTreeNodeMap:u}=t,d;d=i===void 0?r===void 0?Sl(n,t,l,!1):Rae(r,n,t,l):Bae(i,n,t,l);let f=c===`parent`,p=c===`child`||s,m=d,h=new Set,g=Math.max.apply(null,Array.from(u.keys()));for(let e=g;e>=0;--e){let t=e===0,n=u.get(e);for(let e of n){if(e.isLeaf)continue;let{key:n,shallowLoaded:r}=e;if(p&&r&&e.children.forEach(e=>{!e.disabled&&!e.isLeaf&&e.shallowLoaded&&m.has(e.key)&&m.delete(e.key)}),e.disabled||!r)continue;let i=!0,a=!1,o=!0;for(let t of e.children){let e=t.key;if(!t.disabled){if(o&&=!1,m.has(e))a=!0;else if(h.has(e)){a=!0,i=!1;break}else if(i=!1,a)break}}i&&!o?(f&&e.children.forEach(e=>{!e.disabled&&m.has(e.key)&&m.delete(e.key)}),m.add(n)):a&&h.add(n),t&&p&&m.has(n)&&m.delete(n)}}return{checkedKeys:Array.from(m),indeterminateKeys:Array.from(h)}}function Sl(e,t,n,r){let{treeNodeMap:i,getChildren:a}=t,o=new Set,s=new Set(e);return e.forEach(e=>{let t=i.get(e);t!==void 0&&gl(t,e=>{if(e.disabled)return hl.STOP;let{key:t}=e;if(!o.has(t)&&(o.add(t),s.add(t),Pae(e.rawNode,a))){if(r)return hl.STOP;if(!n)throw new bl}})}),s}function Vae(e,{includeGroup:t=!1,includeSelf:n=!0},r){let i=r.treeNodeMap,a=e==null?null:i.get(e)??null,o={keyPath:[],treeNodePath:[],treeNode:a};if(a?.ignored)return o.treeNode=null,o;for(;a;)a.ignored||!t&&a.isGroup||o.treeNodePath.push(a),a=a.parent;return o.treeNodePath.reverse(),n||o.treeNodePath.pop(),o.keyPath=o.treeNodePath.map(e=>e.key),o}function Hae(e){if(e.length===0)return null;let t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function Uae(e,t){let n=e.siblings,r=n.length,{index:i}=e;return t?n[(i+1)%r]:i===n.length-1?null:n[i+1]}function Cl(e,t,{loop:n=!1,includeDisabled:r=!1}={}){let i=t===`prev`?Wae:Uae,a={reverse:t===`prev`},o=!1,s=null;function c(t){if(t!==null){if(t===e){if(!o)o=!0;else if(!e.disabled&&!e.isGroup){s=e;return}}else if((!t.disabled||r)&&!t.ignored&&!t.isGroup){s=t;return}if(t.isGroup){let e=wl(t,a);e===null?c(i(t,n)):s=e}else{let e=i(t,!1);if(e!==null)c(e);else{let e=Gae(t);e?.isGroup?c(i(e,n)):n&&c(i(t,!0))}}}}return c(e),s}function Wae(e,t){let n=e.siblings,r=n.length,{index:i}=e;return t?n[(i-1+r)%r]:i===0?null:n[i-1]}function Gae(e){return e.parent}function wl(e,t={}){let{reverse:n=!1}=t,{children:r}=e;if(r){let{length:e}=r,i=n?e-1:0,a=n?-1:e,o=n?-1:1;for(let e=i;e!==a;e+=o){let n=r[e];if(!n.disabled&&!n.ignored){if(n.isGroup){let e=wl(n,t);if(e!==null)return e}else return n}}}return null}var Kae={getChild(){return this.ignored?null:wl(this)},getParent(){let{parent:e}=this;return e?.isGroup?e.getParent():e},getNext(e={}){return Cl(this,`next`,e)},getPrev(e={}){return Cl(this,`prev`,e)}};function Tl(e,t){let n=t?new Set(t):void 0,r=[];function i(e){e.forEach(e=>{r.push(e),e.isLeaf||!e.children||e.ignored||(e.isGroup||n===void 0||n.has(e.key))&&i(e.children)})}return i(e),r}function qae(e,t){let n=e.key;for(;t;){if(t.key===n)return!0;t=t.parent}return!1}function El(e,t,n,r,i,a=null,o=0){let s=[];return e.forEach((c,l)=>{var u;let d=Object.create(r);if(d.rawNode=c,d.siblings=s,d.level=o,d.index=l,d.isFirstChild=l===0,d.isLastChild=l+1===e.length,d.parent=a,!d.ignored){let e=i(c);Array.isArray(e)&&(d.children=El(e,t,n,r,i,d,o+1))}s.push(d),t.set(d.key,d),n.has(o)||n.set(o,[]),(u=n.get(o))==null||u.push(d)}),s}function Dl(e,t={}){let n=new Map,r=new Map,{getDisabled:i=Nae,getIgnored:a=jae,getIsGroup:o=Lae,getKey:s=Aae}=t,c=t.getChildren??kae,l=t.ignoreEmptyChildren?e=>{let t=c(e);return Array.isArray(t)?t.length?t:null:t}:c,u=El(e,n,r,Object.assign({get key(){return s(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return o(this.rawNode)},get isLeaf(){return Oae(this.rawNode,l)},get shallowLoaded(){return Mae(this.rawNode,l)},get ignored(){return a(this.rawNode)},contains(e){return qae(this,e)}},Kae),l);function d(e){if(e==null)return null;let t=n.get(e);return t&&!t.isGroup&&!t.ignored?t:null}function f(e){if(e==null)return null;let t=n.get(e);return t&&!t.ignored?t:null}function p(e,t){let n=f(e);return n?n.getPrev(t):null}function m(e,t){let n=f(e);return n?n.getNext(t):null}function h(e){let t=f(e);return t?t.getParent():null}function g(e){let t=f(e);return t?t.getChild():null}let _={treeNodes:u,treeNodeMap:n,levelTreeNodeMap:r,maxLevel:Math.max(...r.keys()),getChildren:l,getFlattenedNodes(e){return Tl(u,e)},getNode:d,getPrev:p,getNext:m,getParent:h,getChild:g,getFirstAvailableNode(){return Hae(u)},getPath(e,t={}){return Vae(e,t,_)},getCheckedKeys(e,t={}){let{cascade:n=!0,leafOnly:r=!1,checkStrategy:i=`all`,allowNotLoaded:a=!1}=t;return xl({checkedKeys:_l(e),indeterminateKeys:vl(e),cascade:n,leafOnly:r,checkStrategy:i,allowNotLoaded:a},_)},check(e,t,n={}){let{cascade:r=!0,leafOnly:i=!1,checkStrategy:a=`all`,allowNotLoaded:o=!1}=n;return xl({checkedKeys:_l(t),indeterminateKeys:vl(t),keysToCheck:e==null?[]:ml(e),cascade:r,leafOnly:i,checkStrategy:a,allowNotLoaded:o},_)},uncheck(e,t,n={}){let{cascade:r=!0,leafOnly:i=!1,checkStrategy:a=`all`,allowNotLoaded:o=!1}=n;return xl({checkedKeys:_l(t),indeterminateKeys:vl(t),keysToUncheck:e==null?[]:ml(e),cascade:r,leafOnly:i,checkStrategy:a,allowNotLoaded:o},_)},getNonLeafKeys(e={}){return Dae(u,e)}};return _}var Jae=[`tabindex`,`onFocusin`,`onFocusout`,`onKeyup`,`onKeydown`,`onMousedown`,`onMouseenter`,`onMouseleave`],Ol=Y({name:`InternalSelectMenu`,props:{...$e.props,clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:`medium`},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:`label`},valueField:{type:String,default:`value`},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,scrollbarProps:Object,onToggle:Function},setup(e){let{mergedClsPrefixRef:t,mergedRtlRef:n,mergedComponentPropsRef:r}=mn(e),a=vn(`InternalSelectMenu`,n,t),o=$e(`InternalSelectMenu`,`-internal-select-menu`,Eae,ps,e,i(e,`clsPrefix`)),s=N(null),c=N(null),l=N(null),u=V(()=>e.treeMate.getFlattenedNodes()),d=V(()=>yl(u.value)),f=N(null);function p(){let{treeMate:t}=e,n=null,{value:r}=e;r===null?n=t.getFirstAvailableNode():(n=e.multiple?t.getNode((r||[])[(r||[]).length-1]):t.getNode(r),(!n||n.disabled)&&(n=t.getFirstAvailableNode())),te(n||null)}function m(){let{value:t}=f;t&&!e.treeMate.getNode(t.key)&&(f.value=null)}let h;Te(()=>e.show,t=>{t?h=Te(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?p():m(),he(M)):m()},{immediate:!0}):h?.()},{immediate:!0}),se(()=>{h?.()});let g=V(()=>sn(o.value.self[tt(`optionHeight`,e.size)])),_=V(()=>gt(o.value.self[tt(`padding`,e.size)])),v=V(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),y=V(()=>{let e=u.value;return e&&e.length===0}),b=V(()=>r?.value?.Select?.renderEmpty);function x(t){let{onToggle:n}=e;n&&n(t)}function S(t){let{onScroll:n}=e;n&&n(t)}function C(e){l.value?.sync(),S(e)}function w(){l.value?.sync()}function T(){let{value:e}=f;return e||null}function E(e,t){t.disabled||te(t,!1)}function D(e,t){t.disabled||x(t)}function O(t){ts(t,`action`)||e.onKeyup?.(t)}function k(t){ts(t,`action`)||e.onKeydown?.(t)}function A(t){e.onMousedown?.(t),e.focusable||t.preventDefault()}function j(){let{value:e}=f;e&&te(e.getNext({loop:!0}),!0)}function ee(){let{value:e}=f;e&&te(e.getPrev({loop:!0}),!0)}function te(e,t=!1){f.value=e,t&&M()}function M(){let t=f.value;if(!t)return;let n=d.value(t.key);n!==null&&(e.virtualScroll?c.value?.scrollTo({index:n}):l.value?.scrollTo({index:n,elSize:g.value}))}function ne(t){s.value?.contains(t.target)&&e.onFocus?.(t)}function re(t){s.value?.contains(t.relatedTarget)||e.onBlur?.(t)}Oe(vs,{handleOptionMouseEnter:E,handleOptionClick:D,valueSetRef:v,pendingTmNodeRef:f,nodePropsRef:i(e,`nodeProps`),showCheckmarkRef:i(e,`showCheckmark`),multipleRef:i(e,`multiple`),valueRef:i(e,`value`),renderLabelRef:i(e,`renderLabel`),renderOptionRef:i(e,`renderOption`),labelFieldRef:i(e,`labelField`),valueFieldRef:i(e,`valueField`)}),Oe(ys,s),Ve(()=>{let{value:e}=l;e&&e.sync()});let ie=V(()=>{let{size:t}=e,{common:{cubicBezierEaseInOut:n},self:{height:r,borderRadius:i,color:a,groupHeaderTextColor:s,actionDividerColor:c,optionTextColorPressed:l,optionTextColor:u,optionTextColorDisabled:d,optionTextColorActive:f,optionOpacityDisabled:p,optionCheckColor:m,actionTextColor:h,optionColorPending:g,optionColorActive:_,loadingColor:v,loadingSize:y,optionColorActivePending:b,[tt(`optionFontSize`,t)]:x,[tt(`optionHeight`,t)]:S,[tt(`optionPadding`,t)]:C}}=o.value;return{"--n-height":r,"--n-action-divider-color":c,"--n-action-text-color":h,"--n-bezier":n,"--n-border-radius":i,"--n-color":a,"--n-option-font-size":x,"--n-group-header-text-color":s,"--n-option-check-color":m,"--n-option-color-pending":g,"--n-option-color-active":_,"--n-option-color-active-pending":b,"--n-option-height":S,"--n-option-opacity-disabled":p,"--n-option-text-color":u,"--n-option-text-color-active":f,"--n-option-text-color-disabled":d,"--n-option-text-color-pressed":l,"--n-option-padding":C,"--n-option-padding-left":gt(C,`left`),"--n-option-padding-right":gt(C,`right`),"--n-loading-color":v,"--n-loading-size":y}}),{inlineThemeDisabled:P}=e,ae=P?fe(`internal-select-menu`,V(()=>e.size[0]),ie,e):void 0,oe={selfRef:s,next:j,prev:ee,getPendingTmNode:T};return il(s,e.onResize),{mergedTheme:o,mergedClsPrefix:t,rtlEnabled:a,virtualListRef:c,scrollbarRef:l,itemSize:g,padding:_,flattenedNodes:u,empty:y,mergedRenderEmpty:b,virtualListContainer(){let{value:e}=c;return e?.listElRef},virtualListContent(){let{value:e}=c;return e?.itemsElRef},doScroll:S,handleFocusin:ne,handleFocusout:re,handleKeyUp:O,handleKeyDown:k,handleMouseDown:A,handleVirtualListResize:w,handleVirtualListScroll:C,cssVars:P?void 0:ie,themeClass:ae?.themeClass,onRender:ae?.onRender,...oe}},render(){let{$slots:t,virtualScroll:n,clsPrefix:r,mergedTheme:i,themeClass:a,onRender:o}=this;return o?.(),L(),H(`div`,{ref:`selfRef`,tabindex:this.focusable?0:-1,class:P([`${r}-base-select-menu`,`${r}-base-select-menu--${this.size}-size`,this.rtlEnabled&&`${r}-base-select-menu--rtl`,a,this.multiple&&`${r}-base-select-menu--multiple`]),style:e(this.cssVars),onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},[G(()=>Lt(t.header,e=>e&&(L(),H(`div`,{class:P(`${r}-base-select-menu__header`),"data-header":!0,key:`header`},[G(()=>e)],2)))),this.loading?(L(),H(`div`,{key:0,class:P(`${r}-base-select-menu__loading`)},[(L(),W(ir,{clsPrefix:r,strokeWidth:20},null,8,[`clsPrefix`]))],2)):(L(),H(K,{key:1},[this.empty?(L(),H(`div`,{key:1,class:P(`${r}-base-select-menu__empty`),"data-empty":!0},[G(()=>an(t.empty,()=>[this.mergedRenderEmpty?.()||(L(),W(ds,{theme:i.peers.Empty,themeOverrides:i.peerOverrides.Empty,size:this.size},null,8,[`theme`,`themeOverrides`,`size`]))]))],2)):(L(),W(ln,I({key:0,ref:`scrollbarRef`,theme:i.peers.Scrollbar,themeOverrides:i.peerOverrides.Scrollbar,scrollable:this.scrollable,container:n?this.virtualListContainer:void 0,content:n?this.virtualListContent:void 0,onScroll:n?void 0:this.doScroll},this.scrollbarProps),{default:()=>n?(L(),W(Sc,{key:1,ref:`virtualListRef`,class:P(`${r}-virtual-list`),items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:e})=>e.isGroup?(L(),W(sl,{key:e.key,clsPrefix:r,tmNode:e},null,8,[`clsPrefix`,`tmNode`])):e.ignored?null:(L(),W(ul,{clsPrefix:r,key:e.key,tmNode:e},null,8,[`clsPrefix`,`tmNode`]))},1032,[`class`,`items`,`itemSize`,`paddingTop`,`paddingBottom`,`onResize`,`onScroll`])):(L(),H(`div`,{key:4,class:P(`${r}-base-select-menu-option-wrapper`),style:e({paddingTop:this.padding.top,paddingBottom:this.padding.bottom})},[G(()=>this.flattenedNodes.map(e=>e.isGroup?(L(),W(sl,{key:e.key,clsPrefix:r,tmNode:e},null,8,[`clsPrefix`,`tmNode`])):(L(),W(ul,{clsPrefix:r,key:e.key,tmNode:e},null,8,[`clsPrefix`,`tmNode`]))))],6))},1040,[`theme`,`themeOverrides`,`scrollable`,`container`,`content`,`onScroll`]))],64)),G(()=>Lt(t.action,e=>e&&[(L(),H(`div`,{class:P(`${r}-base-select-menu__action`),"data-action":!0,key:`action`},[G(()=>e)],2)),(L(),W(al,{onFocus:this.onTabOut,key:`focus-detector`},null,8,[`onFocus`]))]))],46,Jae)}});function kl(e){return e.type===`group`}function Al(e){return e.type===`ignored`}function jl(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function Ml(e,t){return{getIsGroup:kl,getIgnored:Al,getKey(t){return kl(t)?t.name||t.key||`key-required`:t[e]},getChildren(e){return e[t]}}}function Yae(e,t,n,r){if(!t)return e;function i(e){if(!Array.isArray(e))return[];let a=[];for(let o of e)if(kl(o)){let e=i(o[r]);e.length&&a.push(Object.assign({},o,{[r]:e}))}else if(Al(o))continue;else t(n,o)&&a.push(o);return a}return i(e)}function Xae(e,t,n){let r=new Map;return e.forEach(e=>{kl(e)?e[n].forEach(e=>{r.set(e[t],e)}):r.set(e[t],e)}),r}function Nl(e){let{borderRadius:t,avatarColor:n,cardColor:r,fontSize:i,heightTiny:a,heightSmall:o,heightMedium:s,heightLarge:c,heightHuge:l,modalColor:u,popoverColor:d}=e;return{borderRadius:t,fontSize:i,border:`2px solid ${r}`,heightTiny:a,heightSmall:o,heightMedium:s,heightLarge:c,heightHuge:l,color:Ue(r,n),colorModal:Ue(u,n),colorPopover:Ue(d,n)}}var Pl={name:`Avatar`,common:_e,self:Nl},Fl={name:`Avatar`,common:os,self:Nl},Zae=Pr&&`loading`in document.createElement(`img`);function Qae(e={}){let{root:t=null}=e;return{hash:`${e.rootMargin||`0px 0px 0px 0px`}-${Array.isArray(e.threshold)?e.threshold.join(`,`):e.threshold??`0`}`,options:{...e,root:(typeof t==`string`?document.querySelector(t):t)||document.documentElement}}}var Il=new WeakMap,Ll=new WeakMap,Rl=new WeakMap,$ae=(e,t,n)=>{if(!e)return()=>{};let r=Qae(t),{root:i}=r.options,a,o=Il.get(i);o?a=o:(a=new Map,Il.set(i,a));let s,c;a.has(r.hash)?(c=a.get(r.hash),c[1].has(e)||(s=c[0],c[1].add(e),s.observe(e))):(s=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting){let t=Ll.get(e.target),n=Rl.get(e.target);t&&t(),n&&(n.value=!0)}})},r.options),s.observe(e),c=[s,new Set([e])],a.set(r.hash,c));let l=!1,u=()=>{l||(Ll.delete(e),Rl.delete(e),l=!0,c[1].has(e)&&(c[0].unobserve(e),c[1].delete(e)),c[1].size<=0&&a.delete(r.hash),a.size||Il.delete(i))};return Ll.set(e,u),Rl.set(e,n),u},eoe=bn(`n-avatar-group`),toe=z(`avatar`,`
width: var(--n-merged-size);
height: var(--n-merged-size);
color: #FFF;
font-size: var(--n-font-size);
display: inline-flex;
position: relative;
overflow: hidden;
text-align: center;
border: var(--n-border);
border-radius: var(--n-border-radius);
--n-merged-color: var(--n-color);
background-color: var(--n-merged-color);
transition:
border-color .3s var(--n-bezier),
background-color .3s var(--n-bezier),
color .3s var(--n-bezier);
`,[me(U(`&`,`--n-merged-color: var(--n-color-modal);`)),Tn(U(`&`,`--n-merged-color: var(--n-color-popover);`)),U(`img`,`
width: 100%;
height: 100%;
`),X(`text`,`
white-space: nowrap;
display: inline-block;
position: absolute;
left: 50%;
top: 50%;
`),z(`icon`,`
vertical-align: bottom;
font-size: calc(var(--n-merged-size) - 6px);
`),X(`text`,`line-height: 1.25`)]),noe=[`src`],zl={...$e.props,size:[String,Number],src:String,circle:{type:Boolean,default:void 0},objectFit:String,round:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},onError:Function,fallbackSrc:String,intersectionObserverOptions:Object,lazy:Boolean,onLoad:Function,renderPlaceholder:Function,renderFallback:Function,imgProps:Object,color:String},Bl=Y({name:`Avatar`,props:zl,slots:Object,setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:n}=mn(e),r=N(!1),i=null,a=N(null),o=N(null),s=()=>{let{value:e}=a;if(e&&(i===null||i!==e.innerHTML)){i=e.innerHTML;let{value:t}=o;if(t){let{offsetWidth:n,offsetHeight:r}=t,{offsetWidth:i,offsetHeight:a}=e,o=.9,s=Math.min(n/i*o,r/a*o,1);e.style.transform=`translateX(-50%) translateY(-50%) scale(${s})`}}},c=pe(eoe,null),l=V(()=>{let{size:t}=e;if(t)return t;let{size:n}=c||{};return n||`medium`}),u=$e(`Avatar`,`-avatar`,toe,Pl,e,t),d=pe(Uc,null),f=V(()=>{if(c)return!0;let{round:t,circle:n}=e;return t!==void 0||n!==void 0?t||n:d?d.roundRef.value:!1}),p=V(()=>c?!0:e.bordered||!1),m=V(()=>{let t=l.value,n=f.value,r=p.value,{color:i}=e,{self:{borderRadius:a,fontSize:o,color:s,border:c,colorModal:d,colorPopover:m},common:{cubicBezierEaseInOut:h}}=u.value,g;return g=typeof t==`number`?`${t}px`:u.value.self[tt(`height`,t)],{"--n-font-size":o,"--n-border":r?c:`none`,"--n-border-radius":n?`50%`:a,"--n-color":i||s,"--n-color-modal":i||d,"--n-color-popover":i||m,"--n-bezier":h,"--n-merged-size":`var(--n-avatar-size-override, ${g})`}}),h=n?fe(`avatar`,V(()=>{let t=l.value,n=f.value,r=p.value,{color:i}=e,a=``;return t&&(a+=typeof t==`number`?`a${t}`:t[0]),n&&(a+=`b`),r&&(a+=`c`),i&&(a+=fr(i)),a}),m,e):void 0,g=N(!e.lazy);Ve(()=>{if(e.lazy&&e.intersectionObserverOptions){let t,n=ot(()=>{t?.(),t=void 0,e.lazy&&(t=$ae(o.value,e.intersectionObserverOptions,g))});se(()=>{n(),t?.()})}}),Te(()=>e.src||e.imgProps?.src,()=>{r.value=!1});let _=N(!e.lazy);return{textRef:a,selfRef:o,mergedRoundRef:f,mergedClsPrefix:t,fitTextTransform:s,cssVars:n?void 0:m,themeClass:h?.themeClass,onRender:h?.onRender,hasLoadError:r,shouldStartLoading:g,loaded:_,mergedOnError:t=>{if(!g.value)return;r.value=!0;let{onError:n,imgProps:{onError:i}={}}=e;n?.(t),i?.(t)},mergedOnLoad:t=>{let{onLoad:n,imgProps:{onLoad:r}={}}=e;n?.(t),r?.(t),_.value=!0}}},render(){let{$slots:t,src:n,mergedClsPrefix:r,lazy:i,onRender:a,loaded:o,hasLoadError:s,imgProps:c={}}=this;a?.();let l,u=!o&&!s&&(this.renderPlaceholder?this.renderPlaceholder():this.$slots.placeholder?.());return l=this.hasLoadError?this.renderFallback?this.renderFallback():an(t.fallback,()=>[(L(),H(`img`,{src:this.fallbackSrc,style:e({objectFit:this.objectFit})},null,12,noe))]):Lt(t.default,e=>{if(e)return L(),W(xt,{key:1,onResize:this.fitTextTransform},{default:()=>(L(),H(`span`,{ref:`textRef`,class:P(`${r}-avatar__text`)},[G(()=>e)],2))},1032,[`onResize`]);if(n||c.src){let e=this.src||c.src;return Dn(`img`,{...c,loading:Zae&&!this.intersectionObserverOptions&&i?`lazy`:`eager`,src:i&&this.intersectionObserverOptions?this.shouldStartLoading?e:void 0:e,"data-image-src":e,onLoad:this.mergedOnLoad,onError:this.mergedOnError,style:[c.style||``,{objectFit:this.objectFit},u?{height:`0`,width:`0`,visibility:`hidden`,position:`absolute`}:``]})}}),L(),H(`span`,{ref:`selfRef`,class:P([`${r}-avatar`,this.themeClass]),style:e(this.cssVars)},[G(()=>l),G(()=>i&&u)],6)}});function Vl(){return{gap:`-12px`}}var roe=En({name:`AvatarGroup`,common:_e,peers:{Avatar:Pl},self:Vl}),Hl={width:`44px`,height:`44px`,borderRadius:`22px`,iconSize:`26px`},ioe={name:`BackTop`,common:os,self(e){let{popoverColor:t,textColor2:n,primaryColorHover:r,primaryColorPressed:i}=e;return{...Hl,color:t,textColor:n,iconColor:n,iconColorHover:r,iconColorPressed:i,boxShadow:`0 2px 8px 0px rgba(0, 0, 0, .12)`,boxShadowHover:`0 2px 12px 0px rgba(0, 0, 0, .18)`,boxShadowPressed:`0 2px 12px 0px rgba(0, 0, 0, .18)`}}},Ul=0,Wl=``,Gl=``,Kl=``,ql=``,Jl=N(`0px`);function Yl(e){if(typeof document>`u`)return;let t=document.documentElement,n,r=!1,i=()=>{t.style.marginRight=Wl,t.style.overflow=Gl,t.style.overflowX=Kl,t.style.overflowY=ql,Jl.value=`0px`};Ve(()=>{n=Te(e,e=>{if(e){if(!Ul){let e=window.innerWidth-t.offsetWidth;e>0&&(Wl=t.style.marginRight,t.style.marginRight=`${e}px`,Jl.value=`${e}px`),Gl=t.style.overflow,Kl=t.style.overflowX,ql=t.style.overflowY,t.style.overflow=`hidden`,t.style.overflowX=`hidden`,t.style.overflowY=`hidden`}r=!0,Ul++}else Ul--,Ul||i(),r=!1},{immediate:!0})}),se(()=>{n?.(),r&&=(Ul--,Ul||i(),!1)})}function aoe(e){let{popoverColor:t,textColor2:n,primaryColorHover:r,primaryColorPressed:i}=e;return{...Hl,color:t,textColor:n,iconColor:n,iconColorHover:r,iconColorPressed:i,boxShadow:`0 2px 8px 0px rgba(0, 0, 0, .12)`,boxShadowHover:`0 2px 12px 0px rgba(0, 0, 0, .18)`,boxShadowPressed:`0 2px 12px 0px rgba(0, 0, 0, .18)`}}var ooe={name:`BackTop`,common:_e,self:aoe},soe={name:`Badge`,common:os,self(e){let{errorColorSuppl:t,infoColorSuppl:n,successColorSuppl:r,warningColorSuppl:i,fontFamily:a}=e;return{color:t,colorInfo:n,colorSuccess:r,colorError:t,colorWarning:i,fontSize:`12px`,fontFamily:a}}};function coe(e){let{errorColor:t,infoColor:n,successColor:r,warningColor:i,fontFamily:a}=e;return{color:t,colorInfo:n,colorSuccess:r,colorError:t,colorWarning:i,fontSize:`12px`,fontFamily:a}}var loe={name:`Badge`,common:_e,self:coe},uoe={fontWeightActive:`400`};function Xl(e){let{fontSize:t,textColor3:n,textColor2:r,borderRadius:i,buttonColor2Hover:a,buttonColor2Pressed:o}=e;return{...uoe,fontSize:t,itemLineHeight:`1.25`,itemTextColor:n,itemTextColorHover:r,itemTextColorPressed:r,itemTextColorActive:r,itemBorderRadius:i,itemColorHover:a,itemColorPressed:o,separatorColor:n}}var Zl={name:`Breadcrumb`,common:_e,self:Xl},doe={name:`Breadcrumb`,common:os,self:Xl},foe=z(`breadcrumb`,`
white-space: nowrap;
cursor: default;
line-height: var(--n-item-line-height);
`,[U(`ul`,`
list-style: none;
padding: 0;
margin: 0;
`),U(`a`,`
color: inherit;
text-decoration: inherit;
`),z(`breadcrumb-item`,`
font-size: var(--n-font-size);
transition: color .3s var(--n-bezier);
display: inline-flex;
align-items: center;
`,[z(`icon`,`
font-size: 18px;
vertical-align: -.2em;
transition: color .3s var(--n-bezier);
color: var(--n-item-text-color);
`),U(`&:not(:last-child)`,[B(`clickable`,[X(`link`,`
cursor: pointer;
`,[U(`&:hover`,`
background-color: var(--n-item-color-hover);
`),U(`&:active`,`
background-color: var(--n-item-color-pressed);
`)])])]),X(`link`,`
padding: 4px;
border-radius: var(--n-item-border-radius);
transition:
background-color .3s var(--n-bezier),
color .3s var(--n-bezier);
color: var(--n-item-text-color);
position: relative;
`,[U(`&:hover`,`
color: var(--n-item-text-color-hover);
`,[z(`icon`,`
color: var(--n-item-text-color-hover);
`)]),U(`&:active`,`
color: var(--n-item-text-color-pressed);
`,[z(`icon`,`
color: var(--n-item-text-color-pressed);
`)])]),X(`separator`,`
margin: 0 8px;
color: var(--n-separator-color);
transition: color .3s var(--n-bezier);
user-select: none;
-webkit-user-select: none;
`),U(`&:last-child`,[X(`link`,`
font-weight: var(--n-font-weight-active);
cursor: unset;
color: var(--n-item-text-color-active);
`,[z(`icon`,`
color: var(--n-item-text-color-active);
`)]),X(`separator`,`
display: none;
`)])])]),Ql=bn(`n-breadcrumb`),poe={...$e.props,separator:{type:String,default:`/`}},moe=Y({name:`Breadcrumb`,props:poe,setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:n}=mn(e),r=$e(`Breadcrumb`,`-breadcrumb`,foe,Zl,e,t);Oe(Ql,{separatorRef:i(e,`separator`),mergedClsPrefixRef:t});let a=V(()=>{let{common:{cubicBezierEaseInOut:e},self:{separatorColor:t,itemTextColor:n,itemTextColorHover:i,itemTextColorPressed:a,itemTextColorActive:o,fontSize:s,fontWeightActive:c,itemBorderRadius:l,itemColorHover:u,itemColorPressed:d,itemLineHeight:f}}=r.value;return{"--n-font-size":s,"--n-bezier":e,"--n-item-text-color":n,"--n-item-text-color-hover":i,"--n-item-text-color-pressed":a,"--n-item-text-color-active":o,"--n-separator-color":t,"--n-item-color-hover":u,"--n-item-color-pressed":d,"--n-item-border-radius":l,"--n-font-weight-active":c,"--n-item-line-height":f}}),o=n?fe(`breadcrumb`,void 0,a,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:a,themeClass:o?.themeClass,onRender:o?.onRender}},render(){return this.onRender?.(),L(),H(`nav`,{class:P([`${this.mergedClsPrefix}-breadcrumb`,this.themeClass]),style:e(this.cssVars),"aria-label":`Breadcrumb`},[q(`ul`,null,[G(()=>this.$slots.default?.())])],6)}});function hoe(e=Pr?window:null){let t=()=>{let{hash:t,host:n,hostname:r,href:i,origin:a,pathname:o,port:s,protocol:c,search:l}=e?.location||{};return{hash:t,host:n,hostname:r,href:i,origin:a,pathname:o,port:s,protocol:c,search:l}},n=N(t()),r=()=>{n.value=t()};return Ve(()=>{e&&(e.addEventListener(`popstate`,r),e.addEventListener(`hashchange`,r))}),qe(()=>{e&&(e.removeEventListener(`popstate`,r),e.removeEventListener(`hashchange`,r))}),n}var goe=Y({name:`BreadcrumbItem`,props:{separator:String,href:String,clickable:{type:Boolean,default:!0},showSeparator:{type:Boolean,default:!0},onClick:Function},slots:Object,setup(e,{slots:t}){let n=pe(Ql,null);if(!n)return()=>null;let{separatorRef:r,mergedClsPrefixRef:i}=n,a=hoe(),o=V(()=>e.href?`a`:`span`),s=V(()=>a.value.href===e.href?`location`:null);return()=>{let{value:n}=i;return L(),H(`li`,{class:P([`${n}-breadcrumb-item`,e.clickable&&`${n}-breadcrumb-item--clickable`])},[G(()=>Dn(o.value,{class:`${n}-breadcrumb-item__link`,"aria-current":s.value,href:e.href,onClick:e.onClick},t)),G(()=>e.showSeparator&&(L(),H(`span`,{class:P(`${n}-breadcrumb-item__separator`),"aria-hidden":`true`},[G(()=>an(t.separator,()=>[e.separator??r.value]))],2)))],2)}}}),$l={name:`Button`,common:os,self(e){let t=mee(e);return t.waveOpacity=`0.8`,t.colorOpacitySecondary=`0.16`,t.colorOpacitySecondaryHover=`0.2`,t.colorOpacitySecondaryPressed=`0.12`,t}},_oe=Y({name:`ChevronLeft`,render(){return(()=>{let e=Ye(`dfe229c2639b2082`);return e[0]||=q(`svg`,{viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},[q(`path`,{d:`M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z`,fill:`currentColor`})],-1)})()}}),eu=Y({name:`ChevronRight`,render(){return(()=>{let e=Ye(`6ab04425f4fcb756`);return e[0]||=q(`svg`,{viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},[q(`path`,{d:`M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z`,fill:`currentColor`})],-1)})()}});function tu(e,t,n){let r=qo(e,n?.in);return isNaN(t)?Wo(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function nu(e,t,n){let r=qo(e,n?.in);if(isNaN(t))return Wo(n?.in||e,NaN);if(!t)return r;let i=r.getDate(),a=Wo(n?.in||e,r.getTime());return a.setMonth(r.getMonth()+t+1,0),i>=a.getDate()?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}function ru(e,t){return Jo(e,{...t,weekStartsOn:1})}function iu(e,t){let n=qo(e,t?.in),r=n.getFullYear(),i=Wo(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);let a=ru(i),o=Wo(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);let s=ru(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function au(e){let t=qo(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-n}function ou(e,t){let n=qo(e,t?.in);return n.setHours(0,0,0,0),n}function voe(e,t,n){let[r,i]=Go(n?.in,e,t),a=ou(r),o=ou(i),s=+a-au(a),c=+o-au(o);return Math.round((s-c)/uie)}function yoe(e,t){let n=iu(e,t),r=Wo(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ru(r)}function boe(e,t,n){return nu(e,t*3,n)}function su(e,t,n){return nu(e,t*12,n)}function xoe(e,t,n){let[r,i]=Go(n?.in,e,t);return+ou(r)==+ou(i)}function Soe(e){return e instanceof Date||typeof e==`object`&&Object.prototype.toString.call(e)===`[object Date]`}function cu(e){return!(!Soe(e)&&typeof e!=`number`||isNaN(+qo(e)))}function Coe(e,t){let n=qo(e,t?.in);return Math.trunc(n.getMonth()/3)+1}function lu(e,t){let n=qo(e,t?.in),r=n.getMonth(),i=r-r%3;return n.setMonth(i,1),n.setHours(0,0,0,0),n}function uu(e,t){let n=qo(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function du(e,t){let n=qo(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function woe(e,t){let n=qo(e,t?.in);return voe(n,du(n))+1}function fu(e,t){let n=qo(e,t?.in),r=+ru(n)-yoe(n);return Math.round(r/Ho)+1}function pu(e,t){let n=qo(e,t?.in),r=n.getFullYear(),i=Ko(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=Wo(t?.in||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);let s=Jo(o,t),c=Wo(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);let l=Jo(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function Toe(e,t){let n=Ko(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=pu(e,t),a=Wo(t?.in||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),Jo(a,t)}function mu(e,t){let n=qo(e,t?.in),r=+Jo(n,t)-Toe(n,t);return Math.round(r/Ho)+1}function hu(e,t){return(e<0?`-`:``)+Math.abs(e).toString().padStart(t,`0`)}var gu={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return hu(t===`yy`?r%100:r,t.length)},M(e,t){let n=e.getMonth();return t===`M`?String(n+1):hu(n+1,2)},d(e,t){return hu(e.getDate(),t.length)},a(e,t){let n=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.toUpperCase();case`aaa`:return n;case`aaaaa`:return n[0];default:return n===`am`?`a.m.`:`p.m.`}},h(e,t){return hu(e.getHours()%12||12,t.length)},H(e,t){return hu(e.getHours(),t.length)},m(e,t){return hu(e.getMinutes(),t.length)},s(e,t){return hu(e.getSeconds(),t.length)},S(e,t){let n=t.length,r=e.getMilliseconds();return hu(Math.trunc(r*10**(n-3)),t.length)}},_u={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},vu={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case`G`:case`GG`:case`GGG`:return n.era(r,{width:`abbreviated`});case`GGGGG`:return n.era(r,{width:`narrow`});default:return n.era(r,{width:`wide`})}},y:function(e,t,n){if(t===`yo`){let t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:`year`})}return gu.y(e,t)},Y:function(e,t,n,r){let i=pu(e,r),a=i>0?i:1-i;return t===`YY`?hu(a%100,2):t===`Yo`?n.ordinalNumber(a,{unit:`year`}):hu(a,t.length)},R:function(e,t){return hu(iu(e),t.length)},u:function(e,t){return hu(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`Q`:return String(r);case`QQ`:return hu(r,2);case`Qo`:return n.ordinalNumber(r,{unit:`quarter`});case`QQQ`:return n.quarter(r,{width:`abbreviated`,context:`formatting`});case`QQQQQ`:return n.quarter(r,{width:`narrow`,context:`formatting`});default:return n.quarter(r,{width:`wide`,context:`formatting`})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`q`:return String(r);case`qq`:return hu(r,2);case`qo`:return n.ordinalNumber(r,{unit:`quarter`});case`qqq`:return n.quarter(r,{width:`abbreviated`,context:`standalone`});case`qqqqq`:return n.quarter(r,{width:`narrow`,context:`standalone`});default:return n.quarter(r,{width:`wide`,context:`standalone`})}},M:function(e,t,n){let r=e.getMonth();switch(t){case`M`:case`MM`:return gu.M(e,t);case`Mo`:return n.ordinalNumber(r+1,{unit:`month`});case`MMM`:return n.month(r,{width:`abbreviated`,context:`formatting`});case`MMMMM`:return n.month(r,{width:`narrow`,context:`formatting`});default:return n.month(r,{width:`wide`,context:`formatting`})}},L:function(e,t,n){let r=e.getMonth();switch(t){case`L`:return String(r+1);case`LL`:return hu(r+1,2);case`Lo`:return n.ordinalNumber(r+1,{unit:`month`});case`LLL`:return n.month(r,{width:`abbreviated`,context:`standalone`});case`LLLLL`:return n.month(r,{width:`narrow`,context:`standalone`});default:return n.month(r,{width:`wide`,context:`standalone`})}},w:function(e,t,n,r){let i=mu(e,r);return t===`wo`?n.ordinalNumber(i,{unit:`week`}):hu(i,t.length)},I:function(e,t,n){let r=fu(e);return t===`Io`?n.ordinalNumber(r,{unit:`week`}):hu(r,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(e.getDate(),{unit:`date`}):gu.d(e,t)},D:function(e,t,n){let r=woe(e);return t===`Do`?n.ordinalNumber(r,{unit:`dayOfYear`}):hu(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case`E`:case`EE`:case`EEE`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`EEEEE`:return n.day(r,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},e:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`e`:return String(a);case`ee`:return hu(a,2);case`eo`:return n.ordinalNumber(a,{unit:`day`});case`eee`:return n.day(i,{width:`abbreviated`,context:`formatting`});case`eeeee`:return n.day(i,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(i,{width:`short`,context:`formatting`});default:return n.day(i,{width:`wide`,context:`formatting`})}},c:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`c`:return String(a);case`cc`:return hu(a,t.length);case`co`:return n.ordinalNumber(a,{unit:`day`});case`ccc`:return n.day(i,{width:`abbreviated`,context:`standalone`});case`ccccc`:return n.day(i,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(i,{width:`short`,context:`standalone`});default:return n.day(i,{width:`wide`,context:`standalone`})}},i:function(e,t,n){let r=e.getDay(),i=r===0?7:r;switch(t){case`i`:return String(i);case`ii`:return hu(i,t.length);case`io`:return n.ordinalNumber(i,{unit:`day`});case`iii`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`iiiii`:return n.day(r,{width:`narrow`,context:`formatting`});case`iiiiii`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},a:function(e,t,n){let r=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`});case`aaa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`aaaaa`:return n.dayPeriod(r,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(r,{width:`wide`,context:`formatting`})}},b:function(e,t,n){let r=e.getHours(),i;switch(i=r===12?_u.noon:r===0?_u.midnight:r/12>=1?`pm`:`am`,t){case`b`:case`bb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`bbb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`bbbbb`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},B:function(e,t,n){let r=e.getHours(),i;switch(i=r>=17?_u.evening:r>=12?_u.afternoon:r>=4?_u.morning:_u.night,t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`BBBBB`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},h:function(e,t,n){if(t===`ho`){let t=e.getHours()%12;return t===0&&(t=12),n.ordinalNumber(t,{unit:`hour`})}return gu.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getHours(),{unit:`hour`}):gu.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):hu(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):hu(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getMinutes(),{unit:`minute`}):gu.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getSeconds(),{unit:`second`}):gu.s(e,t)},S:function(e,t){return gu.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(r===0)return`Z`;switch(t){case`X`:return bu(r);case`XXXX`:case`XX`:return xu(r);default:return xu(r,`:`)}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`x`:return bu(r);case`xxxx`:case`xx`:return xu(r);default:return xu(r,`:`)}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+yu(r,`:`);default:return`GMT`+xu(r,`:`)}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+yu(r,`:`);default:return`GMT`+xu(r,`:`)}},t:function(e,t,n){return hu(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return hu(+e,t.length)}};function yu(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+hu(a,2)}function bu(e,t){return e%60==0?(e>0?`-`:`+`)+hu(Math.abs(e)/60,2):xu(e,t)}function xu(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=hu(Math.trunc(r/60),2),a=hu(r%60,2);return n+i+t+a}var Su=(e,t)=>{switch(e){case`P`:return t.date({width:`short`});case`PP`:return t.date({width:`medium`});case`PPP`:return t.date({width:`long`});default:return t.date({width:`full`})}},Cu=(e,t)=>{switch(e){case`p`:return t.time({width:`short`});case`pp`:return t.time({width:`medium`});case`ppp`:return t.time({width:`long`});default:return t.time({width:`full`})}},wu={p:Cu,P:(e,t)=>{let n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Su(e,t);let a;switch(r){case`P`:a=t.dateTime({width:`short`});break;case`PP`:a=t.dateTime({width:`medium`});break;case`PPP`:a=t.dateTime({width:`long`});break;default:a=t.dateTime({width:`full`})}return a.replace(`{{date}}`,Su(r,t)).replace(`{{time}}`,Cu(i,t))}},Eoe=/^D+$/,Doe=/^Y+$/,Ooe=[`D`,`DD`,`YY`,`YYYY`];function Tu(e){return Eoe.test(e)}function Eu(e){return Doe.test(e)}function Du(e,t,n){let r=koe(e,t,n);if(Ooe.includes(e))throw RangeError(r)}function koe(e,t,n){let r=e[0]===`Y`?`years`:`days of the month`;return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var Aoe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,joe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Moe=/^'([^]*?)'?$/,Noe=/''/g,Poe=/[a-zA-Z]/;function Ou(e,t,n){let r=Ko(),i=n?.locale??r.locale??yr,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=qo(e,n?.in);if(!cu(s))throw RangeError(`Invalid time value`);let c=t.match(joe).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=wu[t];return n(e,i.formatLong)}return e}).join(``).match(Aoe).map(e=>{if(e===`''`)return{isToken:!1,value:`'`};let t=e[0];if(t===`'`)return{isToken:!1,value:ku(e)};if(vu[t])return{isToken:!0,value:e};if(t.match(Poe))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));let l={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return c.map(r=>{if(!r.isToken)return r.value;let a=r.value;(!n?.useAdditionalWeekYearTokens&&Eu(a)||!n?.useAdditionalDayOfYearTokens&&Tu(a))&&Du(a,t,String(e));let o=vu[a[0]];return o(s,a,i.localize,l)}).join(``)}function ku(e){let t=e.match(Moe);return t?t[1].replace(Noe,`'`):e}function Au(e,t){return qo(e,t?.in).getDate()}function ju(e,t){return qo(e,t?.in).getDay()}function Mu(e,t){let n=qo(e,t?.in),r=n.getFullYear(),i=n.getMonth(),a=Wo(n,0);return a.setFullYear(r,i+1,0),a.setHours(0,0,0,0),a.getDate()}function Nu(){return Object.assign({},Ko())}function Pu(e,t){return qo(e,t?.in).getHours()}function Fu(e,t){let n=qo(e,t?.in).getDay();return n===0?7:n}function Iu(e){return qo(e).getMilliseconds()}function Lu(e,t){return qo(e,t?.in).getMinutes()}function Ru(e,t){return qo(e,t?.in).getMonth()}function zu(e){return qo(e).getSeconds()}function Bu(e){return+qo(e)}function Vu(e,t){return qo(e,t?.in).getFullYear()}function Hu(e,t){let n=Uu(t)?new t(0):Wo(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}function Uu(e){return typeof e==`function`&&e.prototype?.constructor===e}var Wu=10,Gu=class{subPriority=0;validate(e,t){return!0}},Ku=class extends Gu{constructor(e,t,n,r,i){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}},qu=class extends Gu{priority=Wu;subPriority=-1;constructor(e,t){super(),this.context=e||(e=>Wo(t,e))}set(e,t){return t.timestampIsSet?e:Wo(e,Hu(e,this.context))}},Ju=class{run(e,t,n,r){let i=this.parse(e,t,n,r);return i?{setter:new Ku(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,t,n){return!0}},Yu=class extends Ju{priority=140;parse(e,t,n){switch(t){case`G`:case`GG`:case`GGG`:return n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`});case`GGGGG`:return n.era(e,{width:`narrow`});default:return n.era(e,{width:`wide`})||n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`R`,`u`,`t`,`T`]},Xu={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Zu={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Qu(e,t){return e&&{value:t(e.value),rest:e.rest}}function $u(e,t){let n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function ed(e,t){let n=t.match(e);if(!n)return null;if(n[0]===`Z`)return{value:0,rest:t.slice(1)};let r=n[1]===`+`?1:-1,i=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(i*fie+a*die+o*pie),rest:t.slice(n[0].length)}}function td(e){return $u(Xu.anyDigitsSigned,e)}function nd(e,t){switch(e){case 1:return $u(Xu.singleDigit,t);case 2:return $u(Xu.twoDigits,t);case 3:return $u(Xu.threeDigits,t);case 4:return $u(Xu.fourDigits,t);default:return $u(RegExp(`^\\d{1,`+e+`}`),t)}}function rd(e,t){switch(e){case 1:return $u(Xu.singleDigitSigned,t);case 2:return $u(Xu.twoDigitsSigned,t);case 3:return $u(Xu.threeDigitsSigned,t);case 4:return $u(Xu.fourDigitsSigned,t);default:return $u(RegExp(`^-?\\d{1,`+e+`}`),t)}}function id(e){switch(e){case`morning`:return 4;case`evening`:return 17;case`pm`:case`noon`:case`afternoon`:return 12;default:return 0}}function ad(e,t){let n=t>0,r=n?t:1-t,i;if(r<=50)i=e||100;else{let t=r+50,n=Math.trunc(t/100)*100,a=e>=t%100;i=e+n-(a?100:0)}return n?i:1-i}function od(e){return e%400==0||e%4==0&&e%100!=0}var Foe=class extends Ju{priority=130;incompatibleTokens=[`Y`,`R`,`u`,`w`,`I`,`i`,`e`,`c`,`t`,`T`];parse(e,t,n){let r=e=>({year:e,isTwoDigitYear:t===`yy`});switch(t){case`y`:return Qu(nd(4,e),r);case`yo`:return Qu(n.ordinalNumber(e,{unit:`year`}),r);default:return Qu(nd(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){let r=e.getFullYear();if(n.isTwoDigitYear){let t=ad(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}let i=!(`era`in t)||t.era===1?n.year:1-n.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}},Ioe=class extends Ju{priority=130;parse(e,t,n){let r=e=>({year:e,isTwoDigitYear:t===`YY`});switch(t){case`Y`:return Qu(nd(4,e),r);case`Yo`:return Qu(n.ordinalNumber(e,{unit:`year`}),r);default:return Qu(nd(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){let i=pu(e,r);if(n.isTwoDigitYear){let t=ad(n.year,i);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),Jo(e,r)}let a=!(`era`in t)||t.era===1?n.year:1-n.year;return e.setFullYear(a,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),Jo(e,r)}incompatibleTokens=[`y`,`R`,`u`,`Q`,`q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]},Loe=class extends Ju{priority=130;parse(e,t){return rd(t===`R`?4:t.length,e)}set(e,t,n){let r=Wo(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),ru(r)}incompatibleTokens=[`G`,`y`,`Y`,`u`,`Q`,`q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]},Roe=class extends Ju{priority=130;parse(e,t){return rd(t===`u`?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`G`,`y`,`Y`,`R`,`w`,`I`,`i`,`e`,`c`,`t`,`T`]},zoe=class extends Ju{priority=120;parse(e,t,n){switch(t){case`Q`:case`QQ`:return nd(t.length,e);case`Qo`:return n.ordinalNumber(e,{unit:`quarter`});case`QQQ`:return n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`});case`QQQQQ`:return n.quarter(e,{width:`narrow`,context:`formatting`});default:return n.quarter(e,{width:`wide`,context:`formatting`})||n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]},Boe=class extends Ju{priority=120;parse(e,t,n){switch(t){case`q`:case`qq`:return nd(t.length,e);case`qo`:return n.ordinalNumber(e,{unit:`quarter`});case`qqq`:return n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`});case`qqqqq`:return n.quarter(e,{width:`narrow`,context:`standalone`});default:return n.quarter(e,{width:`wide`,context:`standalone`})||n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`Q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]},Voe=class extends Ju{incompatibleTokens=[`Y`,`R`,`q`,`Q`,`L`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`];priority=110;parse(e,t,n){let r=e=>e-1;switch(t){case`M`:return Qu($u(Xu.month,e),r);case`MM`:return Qu(nd(2,e),r);case`Mo`:return Qu(n.ordinalNumber(e,{unit:`month`}),r);case`MMM`:return n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`});case`MMMMM`:return n.month(e,{width:`narrow`,context:`formatting`});default:return n.month(e,{width:`wide`,context:`formatting`})||n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},Hoe=class extends Ju{priority=110;parse(e,t,n){let r=e=>e-1;switch(t){case`L`:return Qu($u(Xu.month,e),r);case`LL`:return Qu(nd(2,e),r);case`Lo`:return Qu(n.ordinalNumber(e,{unit:`month`}),r);case`LLL`:return n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`});case`LLLLL`:return n.month(e,{width:`narrow`,context:`standalone`});default:return n.month(e,{width:`wide`,context:`standalone`})||n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`M`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]};function Uoe(e,t,n){let r=qo(e,n?.in),i=mu(r,n)-t;return r.setDate(r.getDate()-i*7),qo(r,n?.in)}var Woe=class extends Ju{priority=100;parse(e,t,n){switch(t){case`w`:return $u(Xu.week,e);case`wo`:return n.ordinalNumber(e,{unit:`week`});default:return nd(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return Jo(Uoe(e,n,r),r)}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]};function Goe(e,t,n){let r=qo(e,n?.in),i=fu(r,n)-t;return r.setDate(r.getDate()-i*7),r}var Koe=class extends Ju{priority=100;parse(e,t,n){switch(t){case`I`:return $u(Xu.week,e);case`Io`:return n.ordinalNumber(e,{unit:`week`});default:return nd(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return ru(Goe(e,n))}incompatibleTokens=[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]},qoe=[31,28,31,30,31,30,31,31,30,31,30,31],Joe=[31,29,31,30,31,30,31,31,30,31,30,31],Yoe=class extends Ju{priority=90;subPriority=1;parse(e,t,n){switch(t){case`d`:return $u(Xu.date,e);case`do`:return n.ordinalNumber(e,{unit:`date`});default:return nd(t.length,e)}}validate(e,t){let n=od(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=Joe[r]:t>=1&&t<=qoe[r]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]},Xoe=class extends Ju{priority=90;subpriority=1;parse(e,t,n){switch(t){case`D`:case`DD`:return $u(Xu.dayOfYear,e);case`Do`:return n.ordinalNumber(e,{unit:`date`});default:return nd(t.length,e)}}validate(e,t){return od(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`M`,`L`,`w`,`I`,`d`,`E`,`i`,`e`,`c`,`t`,`T`]};function sd(e,t,n){let r=Ko(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=qo(e,n?.in),o=a.getDay(),s=(t%7+7)%7,c=7-i;return tu(a,t<0||t>6?t-(o+c)%7:(s+c)%7-(o+c)%7,n)}var Zoe=class extends Ju{priority=90;parse(e,t,n){switch(t){case`E`:case`EE`:case`EEE`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`EEEEE`:return n.day(e,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=sd(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`D`,`i`,`e`,`c`,`t`,`T`]},Qoe=class extends Ju{priority=90;parse(e,t,n,r){let i=e=>{let t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case`e`:case`ee`:return Qu(nd(t.length,e),i);case`eo`:return Qu(n.ordinalNumber(e,{unit:`day`}),i);case`eee`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`eeeee`:return n.day(e,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=sd(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`c`,`t`,`T`]},$oe=class extends Ju{priority=90;parse(e,t,n,r){let i=e=>{let t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case`c`:case`cc`:return Qu(nd(t.length,e),i);case`co`:return Qu(n.ordinalNumber(e,{unit:`day`}),i);case`ccc`:return n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});case`ccccc`:return n.day(e,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});default:return n.day(e,{width:`wide`,context:`standalone`})||n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=sd(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`e`,`t`,`T`]};function ese(e,t,n){let r=qo(e,n?.in);return tu(r,t-Fu(r,n),n)}var tse=class extends Ju{priority=90;parse(e,t,n){let r=e=>e===0?7:e;switch(t){case`i`:case`ii`:return nd(t.length,e);case`io`:return n.ordinalNumber(e,{unit:`day`});case`iii`:return Qu(n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiii`:return Qu(n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiiii`:return Qu(n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);default:return Qu(n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return e=ese(e,n),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`E`,`e`,`c`,`t`,`T`]},nse=class extends Ju{priority=80;parse(e,t,n){switch(t){case`a`:case`aa`:case`aaa`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`aaaaa`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(id(n),0,0,0),e}incompatibleTokens=[`b`,`B`,`H`,`k`,`t`,`T`]},rse=class extends Ju{priority=80;parse(e,t,n){switch(t){case`b`:case`bb`:case`bbb`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`bbbbb`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(id(n),0,0,0),e}incompatibleTokens=[`a`,`B`,`H`,`k`,`t`,`T`]},ise=class extends Ju{priority=80;parse(e,t,n){switch(t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`BBBBB`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(id(n),0,0,0),e}incompatibleTokens=[`a`,`b`,`t`,`T`]},ase=class extends Ju{priority=70;parse(e,t,n){switch(t){case`h`:return $u(Xu.hour12h,e);case`ho`:return n.ordinalNumber(e,{unit:`hour`});default:return nd(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){let r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):!r&&n===12?e.setHours(0,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=[`H`,`K`,`k`,`t`,`T`]},ose=class extends Ju{priority=70;parse(e,t,n){switch(t){case`H`:return $u(Xu.hour23h,e);case`Ho`:return n.ordinalNumber(e,{unit:`hour`});default:return nd(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=[`a`,`b`,`h`,`K`,`k`,`t`,`T`]},sse=class extends Ju{priority=70;parse(e,t,n){switch(t){case`K`:return $u(Xu.hour11h,e);case`Ko`:return n.ordinalNumber(e,{unit:`hour`});default:return nd(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=[`h`,`H`,`k`,`t`,`T`]},cse=class extends Ju{priority=70;parse(e,t,n){switch(t){case`k`:return $u(Xu.hour24h,e);case`ko`:return n.ordinalNumber(e,{unit:`hour`});default:return nd(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){let r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=[`a`,`b`,`h`,`H`,`K`,`t`,`T`]},lse=class extends Ju{priority=60;parse(e,t,n){switch(t){case`m`:return $u(Xu.minute,e);case`mo`:return n.ordinalNumber(e,{unit:`minute`});default:return nd(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=[`t`,`T`]},use=class extends Ju{priority=50;parse(e,t,n){switch(t){case`s`:return $u(Xu.second,e);case`so`:return n.ordinalNumber(e,{unit:`second`});default:return nd(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=[`t`,`T`]},dse=class extends Ju{priority=30;parse(e,t){return Qu(nd(t.length,e),e=>Math.trunc(e*10**(-t.length+3)))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=[`t`,`T`]},fse=class extends Ju{priority=10;parse(e,t){switch(t){case`X`:return ed(Zu.basicOptionalMinutes,e);case`XX`:return ed(Zu.basic,e);case`XXXX`:return ed(Zu.basicOptionalSeconds,e);case`XXXXX`:return ed(Zu.extendedOptionalSeconds,e);default:return ed(Zu.extended,e)}}set(e,t,n){return t.timestampIsSet?e:Wo(e,e.getTime()-au(e)-n)}incompatibleTokens=[`t`,`T`,`x`]},pse=class extends Ju{priority=10;parse(e,t){switch(t){case`x`:return ed(Zu.basicOptionalMinutes,e);case`xx`:return ed(Zu.basic,e);case`xxxx`:return ed(Zu.basicOptionalSeconds,e);case`xxxxx`:return ed(Zu.extendedOptionalSeconds,e);default:return ed(Zu.extended,e)}}set(e,t,n){return t.timestampIsSet?e:Wo(e,e.getTime()-au(e)-n)}incompatibleTokens=[`t`,`T`,`X`]},mse=class extends Ju{priority=40;parse(e){return td(e)}set(e,t,n){return[Wo(e,n*1e3),{timestampIsSet:!0}]}incompatibleTokens=`*`},hse=class extends Ju{priority=20;parse(e){return td(e)}set(e,t,n){return[Wo(e,n),{timestampIsSet:!0}]}incompatibleTokens=`*`},gse={G:new Yu,y:new Foe,Y:new Ioe,R:new Loe,u:new Roe,Q:new zoe,q:new Boe,M:new Voe,L:new Hoe,w:new Woe,I:new Koe,d:new Yoe,D:new Xoe,E:new Zoe,e:new Qoe,c:new $oe,i:new tse,a:new nse,b:new rse,B:new ise,h:new ase,H:new ose,K:new sse,k:new cse,m:new lse,s:new use,S:new dse,X:new fse,x:new pse,t:new mse,T:new hse},_se=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,vse=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yse=/^'([^]*?)'?$/,bse=/''/g,xse=/\S/,Sse=/[a-zA-Z]/;function Cse(e,t,n,r){let i=()=>Wo(r?.in||n,NaN),a=Nu(),o=r?.locale??a.locale??yr,s=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,c=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0;if(!t)return e?i():qo(n,r?.in);let l={firstWeekContainsDate:s,weekStartsOn:c,locale:o},u=[new qu(r?.in,n)],d=t.match(vse).map(e=>{let t=e[0];if(t in wu){let n=wu[t];return n(e,o.formatLong)}return e}).join(``).match(_se),f=[];for(let n of d){!r?.useAdditionalWeekYearTokens&&Eu(n)&&Du(n,t,e),!r?.useAdditionalDayOfYearTokens&&Tu(n)&&Du(n,t,e);let a=n[0],s=gse[a];if(s){let{incompatibleTokens:t}=s;if(Array.isArray(t)){let e=f.find(e=>t.includes(e.token)||e.token===a);if(e)throw RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${n}\` at the same time`)}else if(s.incompatibleTokens===`*`&&f.length>0)throw RangeError(`The format string mustn't contain \`${n}\` and any other token at the same time`);f.push({token:a,fullToken:n});let r=s.run(e,n,o.match,l);if(!r)return i();u.push(r.setter),e=r.rest}else{if(a.match(Sse))throw RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");if(n===`''`?n=`'`:a===`'`&&(n=wse(n)),e.indexOf(n)===0)e=e.slice(n.length);else return i()}}if(e.length>0&&xse.test(e))return i();let p=u.map(e=>e.priority).sort((e,t)=>t-e).filter((e,t,n)=>n.indexOf(e)===t).map(e=>u.filter(t=>t.priority===e).sort((e,t)=>t.subPriority-e.subPriority)).map(e=>e[0]),m=qo(n,r?.in);if(isNaN(+m))return i();let h={};for(let e of p){if(!e.validate(m,l))return i();let t=e.set(m,h,l);Array.isArray(t)?(m=t[0],Object.assign(h,t[1])):m=t}return m}function wse(e){return e.match(yse)[1].replace(bse,`'`)}function Tse(e,t){let n=qo(e,t?.in);return n.setMinutes(0,0,0),n}function Ese(e,t){let n=qo(e,t?.in);return n.setSeconds(0,0),n}function cd(e,t,n){let[r,i]=Go(n?.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function ld(e,t,n){let[r,i]=Go(n?.in,e,t);return+lu(r)==+lu(i)}function ud(e,t){let n=qo(e,t?.in);return n.setMilliseconds(0),n}function dd(e,t,n){let[r,i]=Go(n?.in,e,t);return r.getFullYear()===i.getFullYear()}function fd(e,t,n){let r=qo(e,n?.in),i=r.getFullYear(),a=r.getDate(),o=Wo(n?.in||e,0);o.setFullYear(i,t,15),o.setHours(0,0,0,0);let s=Mu(o);return r.setMonth(t,Math.min(a,s)),r}function pd(e,t,n){let r=qo(e,n?.in);return isNaN(+r)?Wo(n?.in||e,NaN):(t.year!=null&&r.setFullYear(t.year),t.month!=null&&(r=fd(r,t.month)),t.date!=null&&r.setDate(t.date),t.hours!=null&&r.setHours(t.hours),t.minutes!=null&&r.setMinutes(t.minutes),t.seconds!=null&&r.setSeconds(t.seconds),t.milliseconds!=null&&r.setMilliseconds(t.milliseconds),r)}function md(e,t,n){let r=qo(e,n?.in);return r.setHours(t),r}function hd(e,t,n){let r=qo(e,n?.in);return r.setMinutes(t),r}function Dse(e,t,n){let r=qo(e,n?.in),i=t-(Math.trunc(r.getMonth()/3)+1);return fd(r,r.getMonth()+i*3)}function gd(e,t,n){let r=qo(e,n?.in);return r.setSeconds(t),r}function _d(e,t,n){let r=qo(e,n?.in);return isNaN(+r)?Wo(n?.in||e,NaN):(r.setFullYear(t),r)}var Ose={date:xoe,month:cd,year:dd,quarter:ld};function kse(e){return(t,n)=>Yo(t,n,{weekStartsOn:Ase(e)})}function Ase(e){return(e+1)%7}function vd(e,t,n,r=0){return(n===`week`?kse(r):Ose[n])(e,t)}function yd(e,t,n,r,i,a){return i===`date`?jse(e,t,n,r):Mse(e,t,n,r,a)}function jse(e,t,n,r){let i=!1,a=!1,o=!1;Array.isArray(n)&&(n[0]<e&&e<n[1]&&(i=!0),vd(n[0],e,`date`)&&(a=!0),vd(n[1],e,`date`)&&(o=!0));let s=n!==null&&(Array.isArray(n)?vd(n[0],e,`date`)||vd(n[1],e,`date`):vd(n,e,`date`));return{type:`date`,dateObject:{date:Au(e),month:Ru(e),year:Vu(e)},inCurrentMonth:cd(e,t),isCurrentDate:vd(r,e,`date`),inSpan:i,inSelectedWeek:!1,startOfSpan:a,endOfSpan:o,selected:s,ts:Bu(e)}}function bd(e,t,n){return Ou(new Date(2e3,e,1).getTime(),t,{locale:n})}function xd(e,t,n){return Ou(new Date(e,1,1).getTime(),t,{locale:n})}function Sd(e,t,n){return Ou(new Date(2e3,e*3-2,1).getTime(),t,{locale:n})}function Mse(e,t,n,r,i){let a=!1,o=!1,s=!1;Array.isArray(n)&&(n[0]<e&&e<n[1]&&(a=!0),vd(n[0],e,`week`,i)&&(o=!0),vd(n[1],e,`week`,i)&&(s=!0));let c=n!==null&&(Array.isArray(n)?vd(n[0],e,`week`,i)||vd(n[1],e,`week`,i):vd(n,e,`week`,i));return{type:`date`,dateObject:{date:Au(e),month:Ru(e),year:Vu(e)},inCurrentMonth:cd(e,t),isCurrentDate:vd(r,e,`date`),inSpan:a,startOfSpan:o,endOfSpan:s,selected:!1,inSelectedWeek:c,ts:Bu(e)}}function Nse(e,t,n,{monthFormat:r}){return{type:`month`,monthFormat:r,dateObject:{month:Ru(e),year:Vu(e)},isCurrent:cd(n,e),selected:t!==null&&vd(t,e,`month`),ts:Bu(e)}}function Pse(e,t,n,{yearFormat:r}){return{type:`year`,yearFormat:r,dateObject:{year:Vu(e)},isCurrent:dd(n,e),selected:t!==null&&vd(t,e,`year`),ts:Bu(e)}}function Fse(e,t,n,{quarterFormat:r}){return{type:`quarter`,quarterFormat:r,dateObject:{quarter:Coe(e),year:Vu(e)},isCurrent:ld(n,e),selected:t!==null&&vd(t,e,`quarter`),ts:Bu(e)}}function Cd(e,t,n,r,i=!1,a=!1){let o=a?`week`:`date`,s=Ru(e),c=Bu(uu(e)),l=Bu(tu(c,-1)),u=[],d=!i;for(;ju(l)!==r||d;)u.unshift(yd(l,e,t,n,o,r)),l=Bu(tu(l,-1)),d=!1;for(;Ru(c)===s;)u.push(yd(c,e,t,n,o,r)),c=Bu(tu(c,1));let f=i?u.length<=28?28:u.length<=35?35:42:42;for(;u.length<f;)u.push(yd(c,e,t,n,o,r)),c=Bu(tu(c,1));return u}function wd(e,t,n,r){let i=[],a=du(e);for(let e=0;e<12;e++)i.push(Nse(Bu(nu(a,e)),t,n,r));return i}function Td(e,t,n,r){let i=[],a=du(e);for(let e=0;e<4;e++)i.push(Fse(Bu(boe(a,e)),t,n,r));return i}function Ed(e,t,n,r){let i=r.value,a=[],o=du(_d(new Date,i[0]));for(let r=0;r<i[1]-i[0];r++)a.push(Pse(Bu(su(o,r)),e,t,n));return a}function Dd(e,t,n,r){let i=Cse(e,t,n,r);return!cu(i)||Ou(i,t,r)===e?i:new Date(NaN)}function Ise(e,t){return kd(t(e))}function Od(e,t,n,r){return kd(t(e,n,r))}function kd(e){if(e===void 0)return;if(typeof e==`number`)return e;let[t,n,r]=e.split(`:`);return{hours:Number(t),minutes:Number(n),seconds:Number(r)}}function Ad(e,t){return Array.isArray(e)?e[t===`start`?0:1]:null}var Lse={titleFontSize:`22px`};function jd(e){let{borderRadius:t,fontSize:n,lineHeight:r,textColor2:i,textColor1:a,textColorDisabled:o,dividerColor:s,fontWeightStrong:c,primaryColor:l,baseColor:u,hoverColor:d,cardColor:f,modalColor:p,popoverColor:m}=e;return{...Lse,borderRadius:t,borderColor:Ue(f,s),borderColorModal:Ue(p,s),borderColorPopover:Ue(m,s),textColor:i,titleFontWeight:c,titleTextColor:a,dayTextColor:o,fontSize:n,lineHeight:r,dateColorCurrent:l,dateTextColorCurrent:u,cellColorHover:Ue(f,d),cellColorHoverModal:Ue(p,d),cellColorHoverPopover:Ue(m,d),cellColor:f,cellColorModal:p,cellColorPopover:m,barColor:l}}var Rse=En({name:`Calendar`,common:_e,peers:{Button:xr},self:jd}),zse={paddingSmall:`12px 16px 12px`,paddingMedium:`19px 24px 20px`,paddingLarge:`23px 32px 24px`,paddingHuge:`27px 40px 28px`,titleFontSizeSmall:`16px`,titleFontSizeMedium:`18px`,titleFontSizeLarge:`18px`,titleFontSizeHuge:`18px`,closeIconSize:`18px`,closeSize:`22px`};function Md(e){let{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:i,cardColor:a,textColor2:o,textColor1:s,dividerColor:c,fontWeightStrong:l,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,closeColorHover:p,closeColorPressed:m,modalColor:h,boxShadow1:g,popoverColor:_,actionColor:v}=e;return{...zse,lineHeight:r,color:a,colorModal:h,colorPopover:_,colorTarget:t,colorEmbedded:v,colorEmbeddedModal:v,colorEmbeddedPopover:v,textColor:o,titleTextColor:s,borderColor:c,actionColor:v,titleFontWeight:l,closeColorHover:p,closeColorPressed:m,closeBorderRadius:n,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,fontSizeSmall:i,fontSizeMedium:i,fontSizeLarge:i,fontSizeHuge:i,boxShadow:g,borderRadius:n}}var Nd={name:`Card`,common:_e,self:Md},Pd={name:`Card`,common:os,self(e){let t=Md(e),{cardColor:n,modalColor:r,popoverColor:i}=e;return t.colorEmbedded=n,t.colorEmbeddedModal=r,t.colorEmbeddedPopover=i,t}},Fd=z(`card-content`,`
flex: 1;
min-width: 0;
box-sizing: border-box;
padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left);
font-size: var(--n-font-size);
`),Bse=U([z(`card`,`
font-size: var(--n-font-size);
line-height: var(--n-line-height);
display: flex;
flex-direction: column;
width: 100%;
box-sizing: border-box;
position: relative;
border-radius: var(--n-border-radius);
background-color: var(--n-color);
color: var(--n-text-color);
word-break: break-word;
transition:
color .3s var(--n-bezier),
background-color .3s var(--n-bezier),
box-shadow .3s var(--n-bezier),
border-color .3s var(--n-bezier);
`,[zt({background:`var(--n-color-modal)`}),B(`hoverable`,[U(`&:hover`,`box-shadow: var(--n-box-shadow);`)]),B(`content-segmented`,[U(`>`,[z(`card-content`,`
padding-top: var(--n-padding-bottom);
`),X(`content-scrollbar`,[U(`>`,[z(`scrollbar-container`,[U(`>`,[z(`card-content`,`
padding-top: var(--n-padding-bottom);
`)])])])])])]),B(`content-soft-segmented`,[U(`>`,[z(`card-content`,`
margin: 0 var(--n-padding-left);
padding: var(--n-padding-bottom) 0;
`),X(`content-scrollbar`,[U(`>`,[z(`scrollbar-container`,[U(`>`,[z(`card-content`,`
margin: 0 var(--n-padding-left);
padding: var(--n-padding-bottom) 0;
`)])])])])])]),B(`footer-segmented`,[U(`>`,[X(`footer`,`
padding-top: var(--n-padding-bottom);
`)])]),B(`footer-soft-segmented`,[U(`>`,[X(`footer`,`
padding: var(--n-padding-bottom) 0;
margin: 0 var(--n-padding-left);
`)])]),U(`>`,[z(`card-header`,`
box-sizing: border-box;
display: flex;
align-items: center;
font-size: var(--n-title-font-size);
padding:
var(--n-padding-top)
var(--n-padding-left)
var(--n-padding-bottom)
var(--n-padding-left);
`,[X(`main`,`
font-weight: var(--n-title-font-weight);
transition: color .3s var(--n-bezier);
flex: 1;
min-width: 0;
color: var(--n-title-text-color);
`),X(`extra`,`
display: flex;
align-items: center;
font-size: var(--n-font-size);
font-weight: 400;
transition: color .3s var(--n-bezier);
color: var(--n-text-color);
`),X(`close`,`
margin: 0 0 0 8px;
transition:
background-color .3s var(--n-bezier),
color .3s var(--n-bezier);
`)]),X(`action`,`
box-sizing: border-box;
transition:
background-color .3s var(--n-bezier),
border-color .3s var(--n-bezier);
background-clip: padding-box;
background-color: var(--n-action-color);
`),Fd,z(`card-content`,[U(`&:first-child`,`
padding-top: var(--n-padding-bottom);
`)]),X(`content-scrollbar`,`
display: flex;
flex-direction: column;
`,[U(`>`,[z(`scrollbar-container`,[U(`>`,[Fd])])]),U(`&:first-child >`,[z(`scrollbar-container`,[U(`>`,[z(`card-content`,`
padding-top: var(--n-padding-bottom);
`)])])])]),X(`footer`,`
box-sizing: border-box;
padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left);
font-size: var(--n-font-size);
`,[U(`&:first-child`,`
padding-top: var(--n-padding-bottom);
`)]),X(`action`,`
background-color: var(--n-action-color);
padding: var(--n-padding-bottom) var(--n-padding-left);
border-bottom-left-radius: var(--n-border-radius);
border-bottom-right-radius: var(--n-border-radius);
`)]),z(`card-cover`,`
overflow: hidden;
width: 100%;
border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;
`,[U(`img`,`
display: block;
width: 100%;
`)]),B(`bordered`,`
border: 1px solid var(--n-border-color);
`,[U(`&:target`,`border-color: var(--n-color-target);`)]),B(`action-segmented`,[U(`>`,[X(`action`,[U(`&:not(:first-child)`,`
border-top: 1px solid var(--n-border-color);
`)])])]),B(`content-segmented, content-soft-segmented`,[U(`>`,[z(`card-content`,`
transition: border-color 0.3s var(--n-bezier);
`,[U(`&:not(:first-child)`,`
border-top: 1px solid var(--n-border-color);
`)]),X(`content-scrollbar`,`
transition: border-color 0.3s var(--n-bezier);
`,[U(`&:not(:first-child)`,`
border-top: 1px solid var(--n-border-color);
`)])])]),B(`footer-segmented, footer-soft-segmented`,[U(`>`,[X(`footer`,`
transition: border-color 0.3s var(--n-bezier);
`,[U(`&:not(:first-child)`,`
border-top: 1px solid var(--n-border-color);
`)])])]),B(`embedded`,`
background-color: var(--n-color-embedded);
`)]),me(z(`card`,`
background: var(--n-color-modal);
`,[B(`embedded`,`
background-color: var(--n-color-embedded-modal);
`)])),Tn(z(`card`,`
background: var(--n-color-popover);
`,[B(`embedded`,`
background-color: var(--n-color-embedded-popover);
`)]))]),Id={title:[String,Function],contentClass:String,contentStyle:[Object,String],contentScrollable:Boolean,headerClass:String,headerStyle:[Object,String],headerExtraClass:String,headerExtraStyle:[Object,String],footerClass:String,footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:String,bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:`div`},cover:Function,content:[String,Function],footer:Function,action:Function,headerExtra:Function,closeFocusable:Boolean},Vse=jt(Id),Ld={...$e.props,...Id},Rd=Y({name:`Card`,props:Ld,slots:Object,setup(e){let t=()=>{let{onClose:t}=e;t&&R(t)},{inlineThemeDisabled:n,mergedClsPrefixRef:r,mergedRtlRef:i,mergedComponentPropsRef:a}=mn(e),o=$e(`Card`,`-card`,Bse,Nd,e,r),s=vn(`Card`,i,r),c=V(()=>e.size||a?.value?.Card?.size||`medium`),l=V(()=>{let e=c.value,{self:{color:t,colorModal:n,colorTarget:r,textColor:i,titleTextColor:a,titleFontWeight:s,borderColor:l,actionColor:u,borderRadius:d,lineHeight:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,closeColorHover:g,closeColorPressed:_,closeBorderRadius:v,closeIconSize:y,closeSize:b,boxShadow:x,colorPopover:S,colorEmbedded:C,colorEmbeddedModal:w,colorEmbeddedPopover:T,[tt(`padding`,e)]:E,[tt(`fontSize`,e)]:D,[tt(`titleFontSize`,e)]:O},common:{cubicBezierEaseInOut:k}}=o.value,{top:A,left:j,bottom:ee}=gt(E);return{"--n-bezier":k,"--n-border-radius":d,"--n-color":t,"--n-color-modal":n,"--n-color-popover":S,"--n-color-embedded":C,"--n-color-embedded-modal":w,"--n-color-embedded-popover":T,"--n-color-target":r,"--n-text-color":i,"--n-line-height":f,"--n-action-color":u,"--n-title-text-color":a,"--n-title-font-weight":s,"--n-close-icon-color":p,"--n-close-icon-color-hover":m,"--n-close-icon-color-pressed":h,"--n-close-color-hover":g,"--n-close-color-pressed":_,"--n-border-color":l,"--n-box-shadow":x,"--n-padding-top":A,"--n-padding-bottom":ee,"--n-padding-left":j,"--n-font-size":D,"--n-title-font-size":O,"--n-close-size":b,"--n-close-icon-size":y,"--n-close-border-radius":v}}),u=n?fe(`card`,V(()=>c.value[0]),l,e):void 0;return{rtlEnabled:s,mergedClsPrefix:r,mergedTheme:o,handleCloseClick:t,cssVars:n?void 0:l,themeClass:u?.themeClass,onRender:u?.onRender}},render(){let{segmented:t,bordered:n,hoverable:r,mergedClsPrefix:i,rtlEnabled:a,onRender:o,embedded:s,tag:c,$slots:l}=this;return o?.(),L(),W(c,{class:P([`${i}-card`,this.themeClass,s&&`${i}-card--embedded`,{[`${i}-card--rtl`]:a,[`${i}-card--content-scrollable`]:this.contentScrollable,[`${i}-card--content${typeof t!=`boolean`&&t.content===`soft`?`-soft`:``}-segmented`]:t===!0||t!==!1&&t.content,[`${i}-card--footer${typeof t!=`boolean`&&t.footer===`soft`?`-soft`:``}-segmented`]:t===!0||t!==!1&&t.footer,[`${i}-card--action-segmented`]:t===!0||t!==!1&&t.action,[`${i}-card--bordered`]:n,[`${i}-card--hoverable`]:r}]),style:e(this.cssVars),role:this.role},{default:ft(()=>[G(()=>Lt(l.cover,e=>{let t=this.cover?kt([this.cover()]):e;return t&&(L(),H(`div`,{class:P(`${i}-card-cover`),role:`none`},[G(()=>t)],2))})),G(()=>Lt(l.header,t=>{let{title:n}=this,r=n?kt(typeof n==`function`?[n()]:[n]):t;return r||this.closable?(L(),H(`div`,{key:1,class:P([`${i}-card-header`,this.headerClass]),style:e(this.headerStyle),role:`heading`},[q(`div`,{class:P(`${i}-card-header__main`),role:`heading`},[G(()=>r)],2),G(()=>Lt(l[`header-extra`],t=>{let n=this.headerExtra?kt([this.headerExtra()]):t;return n&&(L(),H(`div`,{class:P([`${i}-card-header__extra`,this.headerExtraClass]),style:e(this.headerExtraStyle)},[G(()=>n)],6))})),G(()=>this.closable&&(L(),W(hn,{clsPrefix:i,class:P(`${i}-card-header__close`),onClick:this.handleCloseClick,focusable:this.closeFocusable,absolute:!0},null,8,[`clsPrefix`,`class`,`onClick`,`focusable`])))],6)):null})),G(()=>Lt(l.default,t=>{let{content:n}=this,r=n?kt(typeof n==`function`?[n()]:[n]):t;return r?this.contentScrollable?(L(),W(ln,{key:2,class:P(`${i}-card__content-scrollbar`),contentClass:[`${i}-card-content`,this.contentClass],contentStyle:this.contentStyle},{default:()=>r},1032,[`class`,`contentClass`,`contentStyle`])):(L(),H(`div`,{key:3,class:P([`${i}-card-content`,this.contentClass]),style:e(this.contentStyle),role:`none`},[G(()=>r)],6)):null})),G(()=>Lt(l.footer,t=>{let n=this.footer?kt([this.footer()]):t;return n&&(L(),H(`div`,{class:P([`${i}-card__footer`,this.footerClass]),style:e(this.footerStyle),role:`none`},[G(()=>n)],6))})),G(()=>Lt(l.action,e=>{let t=this.action?kt([this.action()]):e;return t&&(L(),H(`div`,{class:P(`${i}-card__action`),role:`none`},[G(()=>t)],2))}))]),_:2},1032,[`class`,`style`,`role`])}});function zd(){return{dotSize:`8px`,dotColor:`rgba(255, 255, 255, .3)`,dotColorActive:`rgba(255, 255, 255, 1)`,dotColorFocus:`rgba(255, 255, 255, .5)`,dotLineWidth:`16px`,dotLineWidthActive:`24px`,arrowColor:`#eee`}}var Hse={name:`Carousel`,common:_e,self:zd},Use={sizeSmall:`14px`,sizeMedium:`16px`,sizeLarge:`18px`,labelPadding:`0 8px`,labelFontWeight:`400`};function Bd(e){let{baseColor:t,inputColorDisabled:n,cardColor:r,modalColor:i,popoverColor:a,textColorDisabled:o,borderColor:s,primaryColor:c,textColor2:l,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,borderRadiusSmall:p,lineHeight:m}=e;return{...Use,labelLineHeight:m,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,borderRadius:p,color:t,colorChecked:c,colorDisabled:n,colorDisabledChecked:n,colorTableHeader:r,colorTableHeaderModal:i,colorTableHeaderPopover:a,checkMarkColor:t,checkMarkColorDisabled:o,checkMarkColorDisabledChecked:o,border:`1px solid ${s}`,borderDisabled:`1px solid ${s}`,borderDisabledChecked:`1px solid ${s}`,borderChecked:`1px solid ${c}`,borderFocus:`1px solid ${c}`,boxShadowFocus:`0 0 0 2px ${F(c,{alpha:.3})}`,textColor:l,textColorDisabled:o}}var Vd={name:`Checkbox`,common:_e,self:Bd},Hd={name:`Checkbox`,common:os,self(e){let{cardColor:t}=e,n=Bd(e);return n.color=`#0000`,n.checkMarkColor=t,n}};function Wse(e){let{borderRadius:t,textColor2:n,textColorDisabled:r,inputColor:i,inputColorDisabled:a,primaryColor:o,primaryColorHover:s,warningColor:c,warningColorHover:l,errorColor:u,errorColorHover:d,borderColor:f,iconColor:p,iconColorDisabled:m,clearColor:h,clearColorHover:g,clearColorPressed:_,placeholderColor:v,placeholderColorDisabled:y,fontSizeTiny:b,fontSizeSmall:x,fontSizeMedium:S,fontSizeLarge:C,heightTiny:w,heightSmall:T,heightMedium:E,heightLarge:D,fontWeight:O}=e;return{...Gc,fontSizeTiny:b,fontSizeSmall:x,fontSizeMedium:S,fontSizeLarge:C,heightTiny:w,heightSmall:T,heightMedium:E,heightLarge:D,borderRadius:t,fontWeight:O,textColor:n,textColorDisabled:r,placeholderColor:v,placeholderColorDisabled:y,color:i,colorDisabled:a,colorActive:i,border:`1px solid ${f}`,borderHover:`1px solid ${s}`,borderActive:`1px solid ${o}`,borderFocus:`1px solid ${s}`,boxShadowHover:`none`,boxShadowActive:`0 0 0 2px ${F(o,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${F(o,{alpha:.2})}`,caretColor:o,arrowColor:p,arrowColorDisabled:m,loadingColor:o,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${l}`,borderActiveWarning:`1px solid ${c}`,borderFocusWarning:`1px solid ${l}`,boxShadowHoverWarning:`none`,boxShadowActiveWarning:`0 0 0 2px ${F(c,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${F(c,{alpha:.2})}`,colorActiveWarning:i,caretColorWarning:c,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${d}`,boxShadowHoverError:`none`,boxShadowActiveError:`0 0 0 2px ${F(u,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${F(u,{alpha:.2})}`,colorActiveError:i,caretColorError:u,clearColor:h,clearColorHover:g,clearColorPressed:_}}var Ud=En({name:`InternalSelection`,common:_e,peers:{Popover:gs},self:Wse});function Wd(e){let{borderRadius:t,boxShadow2:n,popoverColor:r,textColor2:i,textColor3:a,primaryColor:o,textColorDisabled:s,dividerColor:c,hoverColor:l,fontSizeMedium:u,heightMedium:d}=e;return{menuBorderRadius:t,menuColor:r,menuBoxShadow:n,menuDividerColor:c,menuHeight:`calc(var(--n-option-height) * 6.6)`,optionArrowColor:a,optionHeight:d,optionFontSize:u,optionColorHover:l,optionTextColor:i,optionTextColorActive:o,optionTextColorDisabled:s,optionCheckMarkColor:o,loadingColor:o,columnWidth:`180px`}}var Gd=En({name:`Cascader`,common:_e,peers:{InternalSelectMenu:ps,InternalSelection:Ud,Scrollbar:Cn,Checkbox:Vd,Empty:ls},self:Wd}),Gse={name:`Cascader`,common:os,peers:{InternalSelectMenu:ms,InternalSelection:Kc,Scrollbar:ss,Checkbox:Hd,Empty:ls},self:Wd},Kse=()=>(()=>{let e=Ye(`75be776d8875fa17`);return e[0]||=q(`svg`,{viewBox:`0 0 64 64`,class:`check-icon`},[q(`path`,{d:`M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z`})],-1)})(),qse=()=>(()=>{let e=Ye(`c6eed899356c8404`);return e[0]||=q(`svg`,{viewBox:`0 0 100 100`,class:`line-icon`},[q(`path`,{d:`M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z`})],-1)})(),Jse=U([z(`checkbox`,`
font-size: var(--n-font-size);
outline: none;
cursor: pointer;
display: inline-flex;
flex-wrap: nowrap;
align-items: flex-start;
word-break: break-word;
line-height: var(--n-size);
--n-merged-color-table: var(--n-color-table);
`,[B(`show-label`,`line-height: var(--n-label-line-height);`),U(`&:hover`,[z(`checkbox-box`,[X(`border`,`border: var(--n-border-checked);`)])]),U(`&:focus:not(:active)`,[z(`checkbox-box`,[X(`border`,`
border: var(--n-border-focus);
box-shadow: var(--n-box-shadow-focus);
`)])]),B(`inside-table`,[z(`checkbox-box`,`
background-color: var(--n-merged-color-table);
`)]),B(`checked`,[z(`checkbox-box`,`
background-color: var(--n-color-checked);
`,[z(`checkbox-icon`,[U(`.check-icon`,`
opacity: 1;
transform: scale(1);
`)])])]),B(`indeterminate`,[z(`checkbox-box`,[z(`checkbox-icon`,[U(`.check-icon`,`
opacity: 0;
transform: scale(.5);
`),U(`.line-icon`,`
opacity: 1;
transform: scale(1);
`)])])]),B(`checked, indeterminate`,[U(`&:focus:not(:active)`,[z(`checkbox-box`,[X(`border`,`
border: var(--n-border-checked);
box-shadow: var(--n-box-shadow-focus);
`)])]),z(`checkbox-box`,`
background-color: var(--n-color-checked);
border-left: 0;
border-top: 0;
`,[X(`border`,{border:`var(--n-border-checked)`})])]),B(`disabled`,{cursor:`not-allowed`},[B(`checked`,[z(`checkbox-box`,`
background-color: var(--n-color-disabled-checked);
`,[X(`border`,{border:`var(--n-border-disabled-checked)`}),z(`checkbox-icon`,[U(`.check-icon, .line-icon`,{fill:`var(--n-check-mark-color-disabled-checked)`})])])]),z(`checkbox-box`,`
background-color: var(--n-color-disabled);
`,[X(`border`,`
border: var(--n-border-disabled);
`),z(`checkbox-icon`,[U(`.check-icon, .line-icon`,`
fill: var(--n-check-mark-color-disabled);
`)])]),X(`label`,`
color: var(--n-text-color-disabled);
`)]),z(`checkbox-box-wrapper`,`
position: relative;
width: var(--n-size);
flex-shrink: 0;
flex-grow: 0;
user-select: none;
-webkit-user-select: none;
`),z(`checkbox-box`,`
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
height: var(--n-size);
width: var(--n-size);
display: inline-block;
box-sizing: border-box;
border-radius: var(--n-border-radius);
background-color: var(--n-color);
transition: background-color 0.3s var(--n-bezier);
`,[X(`border`,`
transition:
border-color .3s var(--n-bezier),
box-shadow .3s var(--n-bezier);
border-radius: inherit;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
border: var(--n-border);
`),z(`checkbox-icon`,`
display: flex;
align-items: center;
justify-content: center;
position: absolute;
left: 1px;
right: 1px;
top: 1px;
bottom: 1px;
`,[U(`.check-icon, .line-icon`,`
width: 100%;
fill: var(--n-check-mark-color);
opacity: 0;
transform: scale(0.5);
transform-origin: center;
transition:
fill 0.3s var(--n-bezier),
transform 0.3s var(--n-bezier),
opacity 0.3s var(--n-bezier),
border-color 0.3s var(--n-bezier);
`),or({left:`1px`,top:`1px`})])]),X(`label`,`
color: var(--n-text-color);
transition: color .3s var(--n-bezier);
user-select: none;
-webkit-user-select: none;
padding: var(--n-label-padding);
font-weight: var(--n-label-font-weight);
`,[U(`&:empty`,{display:`none`})])]),me(z(`checkbox`,`
--n-merged-color-table: var(--n-color-table-modal);
`)),Tn(z(`checkbox`,`
--n-merged-color-table: var(--n-color-table-popover);
`))]),Yse=[`id`],Xse=[`tabindex`,`aria-checked`,`aria-labelledby`,`onKeyup`,`onKeydown`,`onClick`],Zse={...$e.props,size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]},Kd=Y({name:`Checkbox`,props:Zse,setup(e){let t=pe(qd,null),n=N(null),{mergedClsPrefixRef:r,inlineThemeDisabled:a,mergedRtlRef:o,mergedComponentPropsRef:s}=mn(e),c=N(e.defaultChecked),l=i(e,`checked`),u=lr(l,c),d=dr(()=>{if(t){let n=t.valueSetRef.value;return n&&e.value!==void 0?n.has(e.value):!1}return u.value===e.checkedValue}),f=mr(e,{mergedSize(n){let{size:r}=e;if(r!==void 0)return r;if(t){let{value:e}=t.mergedSizeRef;if(e!==void 0)return e}if(n){let{mergedSize:e}=n;if(e!==void 0)return e.value}return s?.value?.Checkbox?.size||`medium`},mergedDisabled(n){let{disabled:r}=e;if(r!==void 0)return r;if(t){if(t.disabledRef.value)return!0;let{maxRef:{value:e},checkedCountRef:n}=t;if(e!==void 0&&n.value>=e&&!d.value)return!0;let{minRef:{value:r}}=t;if(r!==void 0&&n.value<=r&&d.value)return!0}return n?n.disabled.value:!1}}),{mergedDisabledRef:p,mergedSizeRef:m}=f,h=$e(`Checkbox`,`-checkbox`,Jse,Vd,e,r);function g(n){if(t&&e.value!==void 0)t.toggleCheckbox(!d.value,e.value);else{let{onChange:t,"onUpdate:checked":r,onUpdateChecked:i}=e,{nTriggerFormInput:a,nTriggerFormChange:o}=f,s=d.value?e.uncheckedValue:e.checkedValue;r&&R(r,s,n),i&&R(i,s,n),t&&R(t,s,n),a(),o(),c.value=s}}function _(e){p.value||g(e)}function v(e){if(!p.value)switch(e.key){case` `:case`Enter`:g(e)}}function y(e){e.key===` `&&e.preventDefault()}let b={focus:()=>{n.value?.focus()},blur:()=>{n.value?.blur()}},x=vn(`Checkbox`,o,r),S=V(()=>{let{value:e}=m,{common:{cubicBezierEaseInOut:t},self:{borderRadius:n,color:r,colorChecked:i,colorDisabled:a,colorTableHeader:o,colorTableHeaderModal:s,colorTableHeaderPopover:c,checkMarkColor:l,checkMarkColorDisabled:u,border:d,borderFocus:f,borderDisabled:p,borderChecked:g,boxShadowFocus:_,textColor:v,textColorDisabled:y,checkMarkColorDisabledChecked:b,colorDisabledChecked:x,borderDisabledChecked:S,labelPadding:C,labelLineHeight:w,labelFontWeight:T,[tt(`fontSize`,e)]:E,[tt(`size`,e)]:D}}=h.value;return{"--n-label-line-height":w,"--n-label-font-weight":T,"--n-size":D,"--n-bezier":t,"--n-border-radius":n,"--n-border":d,"--n-border-checked":g,"--n-border-focus":f,"--n-border-disabled":p,"--n-border-disabled-checked":S,"--n-box-shadow-focus":_,"--n-color":r,"--n-color-checked":i,"--n-color-table":o,"--n-color-table-modal":s,"--n-color-table-popover":c,"--n-color-disabled":a,"--n-color-disabled-checked":x,"--n-text-color":v,"--n-text-color-disabled":y,"--n-check-mark-color":l,"--n-check-mark-color-disabled":u,"--n-check-mark-color-disabled-checked":b,"--n-font-size":E,"--n-label-padding":C}}),C=a?fe(`checkbox`,V(()=>m.value[0]),S,e):void 0;return Object.assign(f,b,{rtlEnabled:x,selfRef:n,mergedClsPrefix:r,mergedDisabled:p,renderedChecked:d,mergedTheme:h,labelId:Ir(),handleClick:_,handleKeyUp:v,handleKeyDown:y,cssVars:a?void 0:S,themeClass:C?.themeClass,onRender:C?.onRender})},render(){let{$slots:t,renderedChecked:n,mergedDisabled:r,indeterminate:i,privateInsideTable:a,cssVars:o,labelId:s,label:c,mergedClsPrefix:l,focusable:u,handleKeyUp:d,handleKeyDown:f,handleClick:p}=this;this.onRender?.();let m=Lt(t.default,e=>c||e?(L(),H(`span`,{key:1,class:P(`${l}-checkbox__label`),id:s},[G(()=>c||e)],10,Yse)):null);return(()=>{let t=Ye(`70be6e74cd27cb50`);return L(),H(`div`,{ref:`selfRef`,class:P([`${l}-checkbox`,this.themeClass,this.rtlEnabled&&`${l}-checkbox--rtl`,n&&`${l}-checkbox--checked`,r&&`${l}-checkbox--disabled`,i&&`${l}-checkbox--indeterminate`,a&&`${l}-checkbox--inside-table`,m&&`${l}-checkbox--show-label`]),tabindex:r||!u?void 0:0,role:`checkbox`,"aria-checked":i?`mixed`:n,"aria-labelledby":s,style:e(o),onKeyup:d,onKeydown:f,onClick:p,onMousedown:t[0]||=()=>{kn(`selectstart`,window,e=>{e.preventDefault()},{once:!0})}},[q(`div`,{class:P(`${l}-checkbox-box-wrapper`)},[t[1]||=G(`\xA0`,-1),q(`div`,{class:P(`${l}-checkbox-box`)},[J(ar,null,{default:()=>this.indeterminate?(L(),H(`div`,{key:`indeterminate`,class:P(`${l}-checkbox-icon`)},[G(()=>qse())],2)):(L(),H(`div`,{key:`check`,class:P(`${l}-checkbox-icon`)},[G(()=>Kse())],2))},1024),q(`div`,{class:P(`${l}-checkbox-box__border`)},null,2)],2)],2),G(()=>m)],46,Xse)})()}}),qd=bn(`n-checkbox-group`),Qse=Y({name:`CheckboxGroup`,props:{min:Number,max:Number,size:String,options:Array,labelField:{type:String,default:`label`},valueField:{type:String,default:`value`},value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},setup(e){let{mergedClsPrefixRef:t}=mn(e),n=mr(e),{mergedSizeRef:r,mergedDisabledRef:a}=n,o=N(e.defaultValue),s=V(()=>e.value),c=lr(s,o),l=V(()=>c.value?.length||0),u=V(()=>Array.isArray(c.value)?new Set(c.value):new Set);function d(t,r){let{nTriggerFormInput:i,nTriggerFormChange:a}=n,{onChange:s,"onUpdate:value":l,onUpdateValue:u}=e;if(Array.isArray(c.value)){let e=Array.from(c.value),n=e.findIndex(e=>e===r);t?~n||(e.push(r),u&&R(u,e,{actionType:`check`,value:r}),l&&R(l,e,{actionType:`check`,value:r}),i(),a(),o.value=e,s&&R(s,e)):~n&&(e.splice(n,1),u&&R(u,e,{actionType:`uncheck`,value:r}),l&&R(l,e,{actionType:`uncheck`,value:r}),s&&R(s,e),o.value=e,i(),a())}else t?(u&&R(u,[r],{actionType:`check`,value:r}),l&&R(l,[r],{actionType:`check`,value:r}),s&&R(s,[r]),o.value=[r],i(),a()):(u&&R(u,[],{actionType:`uncheck`,value:r}),l&&R(l,[],{actionType:`uncheck`,value:r}),s&&R(s,[]),o.value=[],i(),a())}return Oe(qd,{checkedCountRef:l,maxRef:i(e,`max`),minRef:i(e,`min`),valueSetRef:u,disabledRef:a,mergedSizeRef:r,toggleCheckbox:d}),{mergedClsPrefix:t}},render(){let{options:e,labelField:t,valueField:n}=this.$props;return L(),H(`div`,{class:P(`${this.mergedClsPrefix}-checkbox-group`),role:`group`},[e?(L(),H(K,{key:0},[G(()=>e.map(e=>{let r=e[n];return L(),W(Kd,{key:r,value:r,disabled:e.disabled,label:e[t]},null,8,[`value`,`disabled`,`label`])}))],64)):(L(),H(K,{key:1},[G(()=>this.$slots.default?.())],64))],2)}}),Jd=new WeakSet;function Yd(e){Jd.add(e)}function Xd(e){return!Jd.has(e)}var $se=U([z(`base-selection`,`
--n-padding-single: var(--n-padding-single-top) var(--n-padding-single-right) var(--n-padding-single-bottom) var(--n-padding-single-left);
--n-padding-multiple: var(--n-padding-multiple-top) var(--n-padding-multiple-right) var(--n-padding-multiple-bottom) var(--n-padding-multiple-left);
position: relative;
z-index: auto;
box-shadow: none;
width: 100%;
max-width: 100%;
display: inline-block;
vertical-align: bottom;
border-radius: var(--n-border-radius);
min-height: var(--n-height);
line-height: 1.5;
font-size: var(--n-font-size);
`,[z(`base-loading`,`
color: var(--n-loading-color);
`),z(`base-selection-tags`,`min-height: var(--n-height);`),X(`border, state-border`,`
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
pointer-events: none;
border: var(--n-border);
border-radius: inherit;
transition:
box-shadow .3s var(--n-bezier),
border-color .3s var(--n-bezier);
`),X(`state-border`,`
z-index: 1;
border-color: #0000;
`),z(`base-suffix`,`
cursor: pointer;
position: absolute;
top: 50%;
transform: translateY(-50%);
right: 10px;
`,[X(`arrow`,`
font-size: var(--n-arrow-size);
color: var(--n-arrow-color);
transition: color .3s var(--n-bezier);
`)]),z(`base-selection-overlay`,`
display: flex;
align-items: center;
white-space: nowrap;
pointer-events: none;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
padding: var(--n-padding-single);
transition: color .3s var(--n-bezier);
`,[X(`wrapper`,`
flex-basis: 0;
flex-grow: 1;
overflow: hidden;
text-overflow: ellipsis;
`)]),z(`base-selection-placeholder`,`
color: var(--n-placeholder-color);
`,[X(`inner`,`
max-width: 100%;
overflow: hidden;
`)]),z(`base-selection-tags`,`
cursor: pointer;
outline: none;
box-sizing: border-box;
position: relative;
z-index: auto;
display: flex;
padding: var(--n-padding-multiple);
flex-wrap: wrap;
align-items: center;
width: 100%;
vertical-align: bottom;
background-color: var(--n-color);
border-radius: inherit;
transition:
color .3s var(--n-bezier),
box-shadow .3s var(--n-bezier),
background-color .3s var(--n-bezier);
`),z(`base-selection-label`,`
height: var(--n-height);
display: inline-flex;
width: 100%;
vertical-align: bottom;
cursor: pointer;
outline: none;
z-index: auto;
box-sizing: border-box;
position: relative;
transition:
color .3s var(--n-bezier),
box-shadow .3s var(--n-bezier),
background-color .3s var(--n-bezier);
border-radius: inherit;
background-color: var(--n-color);
align-items: center;
`,[z(`base-selection-input`,`
font-size: inherit;
line-height: inherit;
outline: none;
cursor: pointer;
box-sizing: border-box;
border:none;
width: 100%;
padding: var(--n-padding-single);
background-color: #0000;
color: var(--n-text-color);
transition: color .3s var(--n-bezier);
caret-color: var(--n-caret-color);
`,[X(`content`,`
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
`)]),X(`render-label`,`
color: var(--n-text-color);
`)]),On(`disabled`,[U(`&:hover`,[X(`state-border`,`
box-shadow: var(--n-box-shadow-hover);
border: var(--n-border-hover);
`)]),B(`focus`,[X(`state-border`,`
box-shadow: var(--n-box-shadow-focus);
border: var(--n-border-focus);
`)]),B(`active`,[X(`state-border`,`
box-shadow: var(--n-box-shadow-active);
border: var(--n-border-active);
`),z(`base-selection-label`,`background-color: var(--n-color-active);`),z(`base-selection-tags`,`background-color: var(--n-color-active);`)])]),B(`disabled`,`cursor: not-allowed;`,[X(`arrow`,`
color: var(--n-arrow-color-disabled);
`),z(`base-selection-label`,`
cursor: not-allowed;
background-color: var(--n-color-disabled);
`,[z(`base-selection-input`,`
cursor: not-allowed;
color: var(--n-text-color-disabled);
`),X(`render-label`,`
color: var(--n-text-color-disabled);
`)]),z(`base-selection-tags`,`
cursor: not-allowed;
background-color: var(--n-color-disabled);
`),z(`base-selection-placeholder`,`
cursor: not-allowed;
color: var(--n-placeholder-color-disabled);
`)]),z(`base-selection-input-tag`,`
height: calc(var(--n-height) - 6px);
line-height: calc(var(--n-height) - 6px);
outline: none;
display: none;
position: relative;
margin-bottom: 3px;
max-width: 100%;
vertical-align: bottom;
`,[X(`input`,`
font-size: inherit;
font-family: inherit;
min-width: 1px;
padding: 0;
background-color: #0000;
outline: none;
border: none;
max-width: 100%;
overflow: hidden;
width: 1em;
line-height: inherit;
cursor: pointer;
color: var(--n-text-color);
caret-color: var(--n-caret-color);
`),X(`mirror`,`
position: absolute;
left: 0;
top: 0;
white-space: pre;
visibility: hidden;
user-select: none;
-webkit-user-select: none;
opacity: 0;
`)]),[`warning`,`error`].map(e=>B(`${e}-status`,[X(`state-border`,`border: var(--n-border-${e});`),On(`disabled`,[U(`&:hover`,[X(`state-border`,`
box-shadow: var(--n-box-shadow-hover-${e});
border: var(--n-border-hover-${e});
`)]),B(`active`,[X(`state-border`,`
box-shadow: var(--n-box-shadow-active-${e});
border: var(--n-border-active-${e});
`),z(`base-selection-label`,`background-color: var(--n-color-active-${e});`),z(`base-selection-tags`,`background-color: var(--n-color-active-${e});`)]),B(`focus`,[X(`state-border`,`
box-shadow: var(--n-box-shadow-focus-${e});
border: var(--n-border-focus-${e});
`)])])]))]),z(`base-selection-popover`,`
margin-bottom: -3px;
display: flex;
flex-wrap: wrap;
margin-right: -8px;
`),z(`base-selection-tag-wrapper`,`
max-width: 100%;
display: inline-flex;
padding: 0 7px 3px 0;
`,[U(`&:last-child`,`padding-right: 0;`),z(`tag`,`
font-size: 14px;
max-width: 100%;
`,[X(`content`,`
line-height: 1.25;
text-overflow: ellipsis;
overflow: hidden;
`)])])]),ece=[`disabled`,`value`,`autofocus`,`onBlur`,`onFocus`,`onKeydown`,`onInput`,`onCompositionstart`,`onCompositionend`],tce=[`tabindex`],nce=[`title`],rce=[`value`,`readonly`,`disabled`,`autofocus`,`onFocus`,`onBlur`,`onInput`,`onCompositionstart`,`onCompositionend`],ice=[`tabindex`],ace=[`onClick`,`onMouseenter`,`onMouseleave`,`onKeydown`,`onFocusin`,`onFocusout`,`onMousedown`],Zd=Y({name:`InternalSelection`,props:{...$e.props,clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:``},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:`label`},valueField:{type:String,default:`value`},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:`medium`},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],ellipsisTagPopoverProps:Object,onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function},setup(e){let{mergedClsPrefixRef:t,mergedRtlRef:n}=mn(e),r=vn(`InternalSelection`,n,t),a=N(null),o=N(null),s=N(null),c=N(null),l=N(null),u=N(null),d=N(null),f=N(null),p=N(null),m=N(null),h=N(!1),g=N(!1),_=N(!1),v=$e(`InternalSelection`,`-internal-selection`,$se,Ud,e,i(e,`clsPrefix`)),y=V(()=>e.clearable&&!e.disabled&&(_.value||e.active)),b=V(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):ol(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),x=V(()=>{let t=e.selectedOption;if(t)return t[e.labelField]}),S=V(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function C(){let{value:t}=a;if(t){let{value:n}=o;n&&(n.style.width=`${t.offsetWidth}px`,e.maxTagCount!==`responsive`&&p.value?.sync({showAllItemsBeforeCalculate:!1}))}}function w(){let{value:e}=m;e&&(e.style.display=`none`)}function T(){let{value:e}=m;e&&(e.style.display=`inline-block`)}Te(i(e,`active`),e=>{e||w()}),Te(i(e,`pattern`),()=>{e.multiple&&he(C)});function E(t){let{onFocus:n}=e;n&&n(t)}function D(t){let{onBlur:n}=e;n&&n(t)}function O(t){let{onDeleteOption:n}=e;n&&n(t)}function k(t){let{onClear:n}=e;n&&n(t)}function A(t){let{onPatternInput:n}=e;n&&n(t)}function j(e){e.relatedTarget&&s.value?.contains(e.relatedTarget)||E(e)}function ee(e){s.value?.contains(e.relatedTarget)||D(e)}function te(e){k(e)}function M(){_.value=!0}function ne(){_.value=!1}function re(t){e.active&&e.filterable&&t.target!==o.value&&t.preventDefault()}function ie(e){O(e)}let P=N(!1);function ae(t){if(t.key===`Backspace`&&!P.value&&!e.pattern.length){let{selectedOptions:t}=e;t?.length&&ie(t[t.length-1])}}let oe=null;function se(t){let{value:n}=a;n&&(n.textContent=t.target.value,C()),e.ignoreComposition&&P.value?oe=t:A(t)}function ce(){P.value=!0}function le(){P.value=!1,e.ignoreComposition&&A(oe),oe=null}function ue(t){g.value=!0,e.onPatternFocus?.(t)}function de(t){g.value=!1,e.onPatternBlur?.(t)}function pe(){if(e.filterable)g.value=!1,u.value?.blur(),o.value?.blur();else if(e.multiple){let{value:e}=c;e?.blur()}else{let{value:e}=l;e?.blur()}}function me(){e.filterable?(g.value=!1,u.value?.focus()):e.multiple?c.value?.focus():l.value?.focus()}function F(){let{value:e}=o;e&&(T(),e.focus())}function ge(){let{value:e}=o;e&&e.blur()}function _e(e){let{value:t}=d;t&&t.setTextContent(`+${e}`)}function I(){let{value:e}=f;return e}function ve(){return o.value}let ye=null;function L(){ye!==null&&window.clearTimeout(ye)}function be(){e.active||(L(),ye=window.setTimeout(()=>{S.value&&(h.value=!0)},100))}function xe(){L()}function Se(e){e||(L(),h.value=!1)}Te(S,e=>{e||(h.value=!1)}),Ve(()=>{ot(()=>{let t=u.value;t&&(e.disabled?t.removeAttribute(`tabindex`):t.tabIndex=g.value?-1:0)})}),il(s,e.onResize);let{inlineThemeDisabled:Ce}=e,we=V(()=>{let{size:t}=e,{common:{cubicBezierEaseInOut:n},self:{fontWeight:r,borderRadius:i,color:a,placeholderColor:o,textColor:s,paddingSingle:c,paddingMultiple:l,caretColor:u,colorDisabled:d,textColorDisabled:f,placeholderColorDisabled:p,colorActive:m,boxShadowFocus:h,boxShadowActive:g,boxShadowHover:_,border:y,borderFocus:b,borderHover:x,borderActive:S,arrowColor:C,arrowColorDisabled:w,loadingColor:T,colorActiveWarning:E,boxShadowFocusWarning:D,boxShadowActiveWarning:O,boxShadowHoverWarning:k,borderWarning:A,borderFocusWarning:j,borderHoverWarning:ee,borderActiveWarning:te,colorActiveError:M,boxShadowFocusError:ne,boxShadowActiveError:re,boxShadowHoverError:ie,borderError:N,borderFocusError:P,borderHoverError:ae,borderActiveError:oe,clearColor:se,clearColorHover:ce,clearColorPressed:le,clearSize:ue,arrowSize:de,[tt(`height`,t)]:fe,[tt(`fontSize`,t)]:pe}}=v.value,me=gt(c),F=gt(l);return{"--n-bezier":n,"--n-border":y,"--n-border-active":S,"--n-border-focus":b,"--n-border-hover":x,"--n-border-radius":i,"--n-box-shadow-active":g,"--n-box-shadow-focus":h,"--n-box-shadow-hover":_,"--n-caret-color":u,"--n-color":a,"--n-color-active":m,"--n-color-disabled":d,"--n-font-size":pe,"--n-height":fe,"--n-padding-single-top":me.top,"--n-padding-multiple-top":F.top,"--n-padding-single-right":me.right,"--n-padding-multiple-right":F.right,"--n-padding-single-left":me.left,"--n-padding-multiple-left":F.left,"--n-padding-single-bottom":me.bottom,"--n-padding-multiple-bottom":F.bottom,"--n-placeholder-color":o,"--n-placeholder-color-disabled":p,"--n-text-color":s,"--n-text-color-disabled":f,"--n-arrow-color":C,"--n-arrow-color-disabled":w,"--n-loading-color":T,"--n-color-active-warning":E,"--n-box-shadow-focus-warning":D,"--n-box-shadow-active-warning":O,"--n-box-shadow-hover-warning":k,"--n-border-warning":A,"--n-border-focus-warning":j,"--n-border-hover-warning":ee,"--n-border-active-warning":te,"--n-color-active-error":M,"--n-box-shadow-focus-error":ne,"--n-box-shadow-active-error":re,"--n-box-shadow-hover-error":ie,"--n-border-error":N,"--n-border-focus-error":P,"--n-border-hover-error":ae,"--n-border-active-error":oe,"--n-clear-size":ue,"--n-clear-color":se,"--n-clear-color-hover":ce,"--n-clear-color-pressed":le,"--n-arrow-size":de,"--n-font-weight":r}}),Ee=Ce?fe(`internal-selection`,V(()=>e.size[0]),we,e):void 0;return{mergedTheme:v,mergedClearable:y,mergedClsPrefix:t,rtlEnabled:r,patternInputFocused:g,filterablePlaceholder:b,label:x,selected:S,showTagsPanel:h,isComposing:P,counterRef:d,counterWrapperRef:f,patternInputMirrorRef:a,patternInputRef:o,selfRef:s,multipleElRef:c,singleElRef:l,patternInputWrapperRef:u,overflowRef:p,inputTagElRef:m,handleMouseDown:re,handleFocusin:j,handleClear:te,handleMouseEnter:M,handleMouseLeave:ne,handleDeleteOption:ie,handlePatternKeyDown:ae,handlePatternInputInput:se,handlePatternInputBlur:de,handlePatternInputFocus:ue,handleMouseEnterCounter:be,handleMouseLeaveCounter:xe,handleFocusout:ee,handleCompositionEnd:le,handleCompositionStart:ce,onPopoverUpdateShow:Se,focus:me,focusInput:F,blur:pe,blurInput:ge,updateCounter:_e,getCounter:I,getTail:ve,renderLabel:e.renderLabel,cssVars:Ce?void 0:we,themeClass:Ee?.themeClass,onRender:Ee?.onRender}},render(){let{status:t,multiple:n,size:r,disabled:i,filterable:a,maxTagCount:o,bordered:s,clsPrefix:c,ellipsisTagPopoverProps:l,onRender:u,renderTag:d,renderLabel:f}=this;u?.();let p=o===`responsive`,m=typeof o==`number`,h=p||m,g=(L(),W(Et,null,{default:()=>(L(),W(see,{clsPrefix:c,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>this.$slots.arrow?.()},1032,[`clsPrefix`,`loading`,`showArrow`,`showClear`,`onClear`]))},1024)),_;if(n){let{labelField:e}=this,t=t=>(L(),H(`div`,{class:P(`${c}-base-selection-tag-wrapper`),key:t.value},[d?(L(),H(K,{key:0},[G(()=>d({option:t,handleClose:()=>{this.handleDeleteOption(t)}}))],64)):(L(),W(Wc,{key:1,size:r,closable:!t.disabled,disabled:i,onClose:()=>{this.handleDeleteOption(t)},internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>f?f(t,!0):ol(t[e],t,!0)},1032,[`size`,`closable`,`disabled`,`onClose`]))],2)),n=()=>(m?this.selectedOptions.slice(0,o):this.selectedOptions).map(t),s=a?(L(),H(`div`,{class:P(`${c}-base-selection-input-tag`),ref:`inputTagElRef`,key:`__input-tag__`},[q(`input`,I(this.inputProps,{ref:`patternInputRef`,tabindex:-1,disabled:i,value:this.pattern,autofocus:this.autofocus,class:`${c}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd}),null,16,ece),q(`span`,{ref:`patternInputMirrorRef`,class:P(`${c}-base-selection-input-tag__mirror`)},[G(()=>this.pattern)],2)],2)):null,u=p?()=>(L(),H(`div`,{class:P(`${c}-base-selection-tag-wrapper`),ref:`counterWrapperRef`},[(L(),W(Wc,{size:r,ref:`counterRef`,onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:i},null,8,[`size`,`onMouseenter`,`onMouseleave`,`disabled`]))],2)):void 0,v;if(m){let e=this.selectedOptions.length-o;e>0&&(v=(t=>(L(),H(`div`,{class:P(`${c}-base-selection-tag-wrapper`),key:`__counter__`},[(L(),W(Wc,{size:r,ref:`counterRef`,onMouseenter:this.handleMouseEnterCounter,disabled:i},{default:()=>`+${e}`},1032,[`size`,`onMouseenter`,`disabled`]))],2)))(v))}let y=p?a?(L(),W(wc,{key:3,ref:`overflowRef`,updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:`100%`,display:`flex`,overflow:`hidden`}},{default:n,counter:u,tail:()=>s},1032,[`updateCounter`,`getCounter`,`getTail`])):(L(),W(wc,{key:4,ref:`overflowRef`,updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:`100%`,display:`flex`,overflow:`hidden`}},{default:n,counter:u},1032,[`updateCounter`,`getCounter`])):m&&v?n().concat(v):n(),b=h?()=>(L(),H(`div`,{class:P(`${c}-base-selection-popover`)},[p?(L(),H(K,{key:0},[G(()=>n())],64)):(L(),H(K,{key:1},[G(()=>this.selectedOptions.map(t))],64))],2)):void 0,x=h?{show:this.showTagsPanel,trigger:`hover`,overlap:!0,placement:`top`,width:`trigger`,onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover,...l}:null,S=!this.selected&&(!this.active||!this.pattern&&!this.isComposing)?(L(),H(`div`,{key:5,class:P(`${c}-base-selection-placeholder ${c}-base-selection-overlay`)},[q(`div`,{class:P(`${c}-base-selection-placeholder__inner`)},[G(()=>this.placeholder)],2)],2)):null,C=a?(L(),H(`div`,{key:6,ref:`patternInputWrapperRef`,class:P(`${c}-base-selection-tags`)},[G(()=>y),p?G(()=>null):(L(),H(K,{key:1},[G(()=>s)],64)),G(()=>g)],2)):(L(),H(`div`,{key:7,ref:`multipleElRef`,class:P(`${c}-base-selection-tags`),tabindex:i?void 0:0},[G(()=>y),G(()=>g)],10,tce));_=(e=>(L(),H(K,{key:8},[h?(L(),W(Rc,I({key:0},x,{scrollable:!0,style:`max-height: calc(var(--v-target-height) * 6.6);`}),{trigger:()=>C,default:b},1040)):(L(),H(K,{key:1},[G(()=>C)],64)),G(()=>S)],64)))(_)}else if(a){let e=this.pattern||this.isComposing,t=this.active?!e:!this.selected,n=!this.active&&this.selected;_=(e=>(L(),H(`div`,{key:9,ref:`patternInputWrapperRef`,class:P(`${c}-base-selection-label`),title:this.patternInputFocused?void 0:el(this.label)},[q(`input`,I(this.inputProps,{ref:`patternInputRef`,class:`${c}-base-selection-input`,value:this.active?this.pattern:``,placeholder:``,readonly:i,disabled:i,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd}),null,16,rce),n?(L(),H(`div`,{class:P(`${c}-base-selection-label__render-label ${c}-base-selection-overlay`),key:`input`},[q(`div`,{class:P(`${c}-base-selection-overlay__wrapper`)},[d?(L(),H(K,{key:0},[G(()=>d({option:this.selectedOption,handleClose:()=>{}}))],64)):(L(),H(K,{key:1},[f?(L(),H(K,{key:0},[G(()=>f(this.selectedOption,!0))],64)):(L(),H(K,{key:1},[G(()=>ol(this.label,this.selectedOption,!0))],64))],64))],2)],2)):G(()=>null),t?(L(),H(`div`,{class:P(`${c}-base-selection-placeholder ${c}-base-selection-overlay`),key:`placeholder`},[q(`div`,{class:P(`${c}-base-selection-overlay__wrapper`)},[G(()=>this.filterablePlaceholder)],2)],2)):G(()=>null),G(()=>g)],10,nce)))(_)}else _=(e=>(L(),H(`div`,{key:10,ref:`singleElRef`,class:P(`${c}-base-selection-label`),tabindex:this.disabled?void 0:0},[this.label===void 0?(L(),H(`div`,{class:P(`${c}-base-selection-placeholder ${c}-base-selection-overlay`),key:`placeholder`},[q(`div`,{class:P(`${c}-base-selection-placeholder__inner`)},[G(()=>this.placeholder)],2)],2)):(L(),H(`div`,{class:P(`${c}-base-selection-input`),title:el(this.label),key:`input`},[q(`div`,{class:P(`${c}-base-selection-input__content`)},[d?(L(),H(K,{key:0},[G(()=>d({option:this.selectedOption,handleClose:()=>{}}))],64)):(L(),H(K,{key:1},[f?(L(),H(K,{key:0},[G(()=>f(this.selectedOption,!0))],64)):(L(),H(K,{key:1},[G(()=>ol(this.label,this.selectedOption,!0))],64))],64))],2)],10,[`title`])),G(()=>g)],10,ice)))(_);return L(),H(`div`,{ref:`selfRef`,class:P([`${c}-base-selection`,this.rtlEnabled&&`${c}-base-selection--rtl`,this.themeClass,t&&`${c}-base-selection--${t}-status`,{[`${c}-base-selection--active`]:this.active,[`${c}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${c}-base-selection--disabled`]:this.disabled,[`${c}-base-selection--multiple`]:this.multiple,[`${c}-base-selection--focus`]:this.focused}]),style:e(this.cssVars),onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},[G(()=>_),s?(L(),H(`div`,{key:0,class:P(`${c}-base-selection__border`)},null,2)):G(()=>null),s?(L(),H(`div`,{key:2,class:P(`${c}-base-selection__state-border`)},null,2)):G(()=>null)],46,ace)}}),Qd=bn(`n-cascader`),oce=z(`base-menu-mask`,`
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 14px;
overflow: hidden;
`,[fn()]),sce=Y({name:`BaseMenuMask`,props:{clsPrefix:{type:String,required:!0}},setup(e){dn(`-base-menu-mask`,oce,i(e,`clsPrefix`));let t=N(null),n=null,r=N(!1);return se(()=>{n!==null&&window.clearTimeout(n)}),{message:t,show:r,showOnce(e,i=1500){n&&window.clearTimeout(n),r.value=!0,t.value=e,n=window.setTimeout(()=>{r.value=!1,t.value=null},i)}}},render(){return L(),W(gn,{name:`fade-in-transition`},{_:1,default:Nt(()=>this.show?(L(),H(`div`,{key:1,class:P(`${this.clsPrefix}-base-menu-mask`)},[G(()=>this.message)],2)):null)})}}),cce=[`onMouseenter`,`onMousemove`,`onClick`],$d=Y({name:`NCascaderOption`,props:{tmNode:{type:Object,required:!0}},setup(e){let{expandTriggerRef:t,remoteRef:n,multipleRef:r,mergedValueRef:i,checkedKeysRef:a,indeterminateKeysRef:o,hoverKeyPathRef:s,keyboardKeyRef:c,loadingKeySetRef:l,cascadeRef:u,mergedCheckStrategyRef:d,onLoadRef:f,mergedClsPrefixRef:p,mergedThemeRef:m,labelFieldRef:h,showCheckboxRef:g,renderPrefixRef:_,renderSuffixRef:v,spinPropsRef:y,updateHoverKey:b,updateKeyboardKey:x,addLoadingKey:S,deleteLoadingKey:C,closeMenu:w,doCheck:T,doUncheck:E,renderLabelRef:D}=pe(Qd),O=V(()=>e.tmNode.key),k=V(()=>{let{value:e}=t,{value:r}=n;return!r&&e===`hover`}),A=V(()=>{if(k.value)return se}),j=V(()=>{if(k.value)return ce}),ee=dr(()=>{let{value:e}=r;return e?a.value.includes(O.value):i.value===O.value}),te=dr(()=>r.value?o.value.includes(O.value):!1),M=dr(()=>s.value.includes(O.value)),ne=dr(()=>{let{value:e}=c;return e!==null&&e===O.value}),re=dr(()=>n.value?l.value.has(O.value):!1),ie=V(()=>e.tmNode.isLeaf),N=V(()=>e.tmNode.disabled),P=V(()=>e.tmNode.rawNode[h.value]),ae=V(()=>e.tmNode.shallowLoaded);function oe(t){if(N.value)return;let{value:r}=n,{value:i}=l,{value:a}=f,{value:o}=O,{value:s}=ie,{value:c}=ae;ts(t,`checkbox`)||(r&&!c&&!i.has(o)&&a&&(S(o),a(e.tmNode.rawNode).then(()=>{C(o)}).catch(()=>{C(o)})),b(o),x(o)),s&&ue()}function se(){if(!k.value||N.value)return;let{value:e}=O;b(e),x(e)}function ce(){k.value&&se()}function le(){let{value:e}=ie;e||ue()}function ue(){let{value:e}=r,{value:t}=O;e?te.value||ee.value?E(t):T(t):(T(t),w(!0))}return{checkStrategy:d,multiple:r,cascade:u,checked:ee,indeterminate:te,hoverPending:M,keyboardPending:ne,isLoading:re,showCheckbox:g,isLeaf:ie,disabled:N,label:P,mergedClsPrefix:p,mergedTheme:m,spinProps:y,handleClick:oe,handleCheckboxUpdateValue:le,mergedHandleMouseEnter:A,mergedHandleMouseMove:j,renderLabel:D,renderPrefix:_,renderSuffix:v}},render(){let{mergedClsPrefix:e,showCheckbox:t,renderLabel:n,renderPrefix:r,renderSuffix:i}=this,a=null;if(t||r){let t=this.showCheckbox?(L(),W(Kd,{key:1,focusable:!1,"data-checkbox":!0,disabled:this.disabled,checked:this.checked,indeterminate:this.indeterminate,theme:this.mergedTheme.peers.Checkbox,themeOverrides:this.mergedTheme.peerOverrides.Checkbox,onUpdateChecked:this.handleCheckboxUpdateValue},null,8,[`disabled`,`checked`,`indeterminate`,`theme`,`themeOverrides`,`onUpdateChecked`])):null;a=(n=>(L(),H(`div`,{key:2,class:P(`${e}-cascader-option__prefix`)},[r?(L(),H(K,{key:0},[G(()=>r({option:this.tmNode.rawNode,checked:this.checked,node:t}))],64)):(L(),H(K,{key:1},[G(()=>t)],64))],2)))(a)}let o=null,s=(L(),H(`div`,{class:P(`${e}-cascader-option-icon-placeholder`)},[this.isLeaf?(L(),H(K,{key:1},[this.checkStrategy===`child`&&!(this.multiple&&this.cascade)?(L(),W(gn,{key:0,name:`fade-in-scale-up-transition`},{default:()=>this.checked?(L(),W(wt,{key:3,clsPrefix:e,class:P(`${e}-cascader-option-icon ${e}-cascader-option-icon--checkmark`)},{default:()=>(L(),W(ll))},1032,[`clsPrefix`,`class`])):null},1024)):G(()=>null)],64)):(L(),W(ir,I({key:0,clsPrefix:e,scale:.85,strokeWidth:24,show:this.isLoading,class:`${e}-cascader-option-icon`},this.spinProps),{default:()=>(L(),W(wt,{clsPrefix:e,key:`arrow`,class:P(`${e}-cascader-option-icon ${e}-cascader-option-icon--arrow`)},{default:()=>(L(),W(eu))},1032,[`clsPrefix`,`class`]))},1040,[`clsPrefix`,`show`,`class`]))],2));return o=(t=>(L(),H(`div`,{class:P(`${e}-cascader-option__suffix`)},[i?(L(),H(K,{key:0},[G(()=>i({option:this.tmNode.rawNode,checked:this.checked,node:s}))],64)):(L(),H(K,{key:1},[G(()=>s)],64))],2)))(o),L(),H(`div`,{class:P([`${e}-cascader-option`,this.keyboardPending||this.hoverPending&&`${e}-cascader-option--pending`,this.disabled&&`${e}-cascader-option--disabled`,this.showCheckbox&&`${e}-cascader-option--show-prefix`]),onMouseenter:this.mergedHandleMouseEnter,onMousemove:this.mergedHandleMouseMove,onClick:this.handleClick},[G(()=>a),q(`span`,{class:P(`${e}-cascader-option__label`)},[n?(L(),H(K,{key:0},[G(()=>n(this.tmNode.rawNode,this.checked))],64)):(L(),H(K,{key:1},[G(()=>this.label)],64))],2),G(()=>o)],42,cce)}}),lce=Y({name:`CascaderSubmenu`,props:{depth:{type:Number,required:!0},tmNodes:{type:Array,required:!0}},setup(){let{virtualScrollRef:e,mergedClsPrefixRef:t,mergedThemeRef:n,optionHeightRef:r}=pe(Qd),i=N(null),a=N(null);return{mergedClsPrefix:t,mergedTheme:n,scrollbarInstRef:i,vlInstRef:a,virtualScroll:e,itemSize:V(()=>sn(r.value)),handleVlScroll:()=>{i.value?.sync()},getVlContainer:()=>a.value?.listElRef,getVlContent:()=>a.value?.itemsElRef,scroll(t,n){e.value?a.value?.scrollTo({index:t}):i.value?.scrollTo({index:t,elSize:n})}}},render(){let{mergedClsPrefix:e,mergedTheme:t,virtualScroll:n}=this;return L(),H(`div`,{class:P([n&&`${e}-cascader-submenu--virtual`,`${e}-cascader-submenu`])},[(L(),W(ln,{ref:`scrollbarInstRef`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:n?this.getVlContainer:void 0,content:n?this.getVlContent:void 0},{default:()=>n?(L(),W(Sc,{key:1,items:this.tmNodes,itemSize:this.itemSize,onScroll:this.handleVlScroll,showScrollbar:!1,ref:`vlInstRef`},{_:1,default:Nt(({item:e})=>(L(),W($d,{key:e.key,tmNode:e},null,8,[`tmNode`])))},8,[`items`,`itemSize`,`onScroll`])):this.tmNodes.map(e=>(L(),W($d,{key:e.key,tmNode:e},null,8,[`tmNode`])))},1032,[`theme`,`themeOverrides`,`container`,`content`]))],2)}}),uce=[`onMousedown`,`onFocusin`,`onFocusout`,`onKeydown`],dce=Y({name:`NCascaderMenu`,props:{value:[String,Number,Array],placement:{type:String,default:`bottom-start`},show:Boolean,menuModel:{type:Array,required:!0},loading:Boolean,onFocus:{type:Function,required:!0},onBlur:{type:Function,required:!0},onKeydown:{type:Function,required:!0},onMousedown:{type:Function,required:!0},onTabout:{type:Function,required:!0}},setup(e){let{localeRef:t,isMountedRef:n,mergedClsPrefixRef:r,syncCascaderMenuPosition:i,handleCascaderMenuClickOutside:a,mergedThemeRef:o,getColumnStyleRef:s}=pe(Qd),{mergedComponentPropsRef:c}=mn(),l=[],u=N(null),d=N(null);function f(){i()}il(d,f);function p(e){let{value:{loadingRequiredMessage:n}}=t;u.value?.showOnce(n(e))}function m(e){a(e)}function h(t){let{value:n}=d;n&&(n.contains(t.relatedTarget)||e.onFocus(t))}function g(t){let{value:n}=d;n&&(n.contains(t.relatedTarget)||e.onBlur(t))}let _={scroll(e,t,n){let r=l[e];r&&r.scroll(t,n)},showErrorMessage:p};return{isMounted:n,mergedClsPrefix:r,selfElRef:d,submenuInstRefs:l,maskInstRef:u,mergedTheme:o,mergedRenderEmpty:V(()=>c?.value?.Cascader?.renderEmpty),getColumnStyle:s,handleFocusin:h,handleFocusout:g,handleClickOutside:m,..._}},render(){let{submenuInstRefs:t,mergedClsPrefix:n,mergedTheme:r}=this;return L(),W(gn,{name:`fade-in-scale-up-transition`,appear:this.isMounted},{default:()=>this.show?Se((L(),H(`div`,{tabindex:`0`,ref:`selfElRef`,class:P(`${n}-cascader-menu`),onMousedown:this.onMousedown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeydown:this.onKeydown},[this.menuModel[0].length?(L(),H(`div`,{key:0,class:P(`${n}-cascader-submenu-wrapper`)},[G(()=>this.menuModel.map((n,r)=>(L(),W(lce,{style:e(this.getColumnStyle?.({level:r})),ref:e=>{e&&(t[r]=e)},key:r,tmNodes:n,depth:r+1},null,8,[`style`,`tmNodes`,`depth`])))),(L(),W(sce,{clsPrefix:n,ref:`maskInstRef`},null,8,[`clsPrefix`]))],2)):(L(),H(`div`,{key:1,class:P(`${n}-cascader-menu__empty`)},[G(()=>an(this.$slots.empty,()=>[this.mergedRenderEmpty?.()||(L(),W(ds,{theme:r.peers.Empty,themeOverrides:r.peerOverrides.Empty},null,8,[`theme`,`themeOverrides`]))]))],2)),G(()=>Lt(this.$slots.action,e=>e&&(L(),H(`div`,{class:P(`${n}-cascader-menu-action`),"data-action":!0},[G(()=>e)],2)))),(L(),W(al,{onFocus:this.onTabout},null,8,[`onFocus`]))],42,uce)),[[tc,this.handleClickOutside,void 0,{capture:!0}]]):null},1032,[`appear`])}});function ef(e){return e?e.map(e=>e.rawNode):null}function fce(e,t,n,r){let i=[],a=[];function o(e){for(let s of e){if(s.disabled)continue;let{rawNode:e}=s;a.push(e),(s.isLeaf||!t)&&i.push({label:tf(s,r,n),value:s.key,rawNode:s.rawNode,path:Array.from(a)}),!s.isLeaf&&s.children&&o(s.children),a.pop()}}return o(e),i}function tf(e,t,n){let r=[];for(;e;)r.push(e.rawNode[n]),e=e.parent;return r.reverse().join(t)}var pce=Y({name:`NCascaderSelectMenu`,props:{value:{type:[String,Number,Array],default:null},show:Boolean,pattern:{type:String,default:``},multiple:Boolean,tmNodes:{type:Array,default:()=>[]},filter:Function,labelField:{type:String,required:!0},separator:{type:String,required:!0}},setup(e){let{isMountedRef:t,mergedValueRef:n,mergedClsPrefixRef:r,mergedThemeRef:i,mergedCheckStrategyRef:a,slots:o,syncSelectMenuPosition:s,closeMenu:c,handleSelectMenuClickOutside:l,doUncheck:u,doCheck:d,scrollbarPropsRef:f,clearPattern:p}=pe(Qd),m=N(null),h=V(()=>fce(e.tmNodes,a.value===`child`,e.labelField,e.separator)),g=V(()=>{let{filter:t}=e;if(t)return t;let{labelField:n}=e;return(e,t,r)=>r.some(t=>t[n]&&~t[n].toLowerCase().indexOf(e.toLowerCase()))}),_=V(()=>{let{pattern:t}=e,{value:n}=g;return(t?h.value.filter(e=>n(t,e.rawNode,e.path)):h.value).map(e=>({value:e.value,label:e.label}))}),v=V(()=>Dl(_.value,Ml(`value`,`children`)));function y(){s()}function b(e){x(e)}function x(t){if(e.multiple){let{value:e}=n;Array.isArray(e)?e.includes(t.key)?u(t.key):d(t.key):e===null&&d(t.key),p()}else d(t.key),c(!0)}function S(){m.value?.prev()}function C(){m.value?.next()}function w(){if(m){let e=m.value?.getPendingTmNode();return e&&x(e),!0}return!1}function T(e){l(e)}return{isMounted:t,mergedTheme:i,mergedClsPrefix:r,menuInstRef:m,selectTreeMate:v,handleResize:y,handleToggle:b,handleClickOutside:T,cascaderSlots:o,scrollbarProps:f,prev:S,next:C,enter:w}},render(){let{mergedClsPrefix:e,isMounted:t,mergedTheme:n,cascaderSlots:r}=this;return L(),W(gn,{name:`fade-in-scale-up-transition`,appear:t},{default:()=>this.show?Se((L(),W(Ol,{key:1,ref:`menuInstRef`,onResize:this.handleResize,clsPrefix:e,class:P(`${e}-cascader-menu`),autoPending:!0,themeOverrides:n.peerOverrides.InternalSelectMenu,theme:n.peers.InternalSelectMenu,treeMate:this.selectTreeMate,multiple:this.multiple,value:this.value,onToggle:this.handleToggle,scrollbarProps:this.scrollbarProps},{empty:()=>an(r[`not-found`],()=>[])},1032,[`onResize`,`clsPrefix`,`class`,`themeOverrides`,`theme`,`treeMate`,`multiple`,`value`,`onToggle`,`scrollbarProps`])),[[tc,this.handleClickOutside,void 0,{capture:!0}]]):null},1032,[`appear`])}}),mce=U([z(`cascader-menu`,`
outline: none;
position: relative;
margin: 4px 0;
display: flex;
flex-flow: column nowrap;
border-radius: var(--n-menu-border-radius);
overflow: hidden;
box-shadow: var(--n-menu-box-shadow);
color: var(--n-option-text-color);
background-color: var(--n-menu-color);
`,[pl({transformOrigin:`inherit`,duration:`0.2s`}),X(`empty`,`
display: flex;
padding: 12px 32px;
flex: 1;
justify-content: center;
`),z(`scrollbar`,`
width: 100%;
`),z(`base-menu-mask`,`
background-color: var(--n-menu-mask-color);
`),z(`base-loading`,`
color: var(--n-loading-color);
`),z(`cascader-submenu-wrapper`,`
position: relative;
display: flex;
flex-wrap: nowrap;
`),z(`cascader-submenu`,`
height: var(--n-menu-height);
min-width: var(--n-column-width);
position: relative;
`,[B(`virtual`,`
width: var(--n-column-width);
`),z(`scrollbar-content`,`
position: relative;
`),U(`&:first-child`,`
border-top-left-radius: var(--n-menu-border-radius);
border-bottom-left-radius: var(--n-menu-border-radius);
`),U(`&:last-child`,`
border-top-right-radius: var(--n-menu-border-radius);
border-bottom-right-radius: var(--n-menu-border-radius);
`),U(`&:not(:first-child)`,`
border-left: 1px solid var(--n-menu-divider-color);
`)]),z(`cascader-menu-action`,`
box-sizing: border-box;
padding: 8px;
border-top: 1px solid var(--n-menu-divider-color);
`),z(`cascader-option`,`
height: var(--n-option-height);
line-height: var(--n-option-height);
font-size: var(--n-option-font-size);
padding: 0 0 0 18px;
box-sizing: border-box;
min-width: 182px;
background-color: #0000;
display: flex;
align-items: center;
white-space: nowrap;
position: relative;
cursor: pointer;
transition:
background-color .2s var(--n-bezier),
color 0.2s var(--n-bezier);
`,[B(`show-prefix`,`
padding-left: 0;
`),X(`label`,`
flex: 1 0 0;
overflow: hidden;
text-overflow: ellipsis;
`),X(`prefix`,`
min-width: 32px;
display: flex;
align-items: center;
justify-content: center;
`),X(`suffix`,`
min-width: 32px;
display: flex;
align-items: center;
justify-content: center;
`),z(`cascader-option-icon-placeholder`,`
line-height: 0;
position: relative;
width: 16px;
height: 16px;
font-size: 16px;
`,[z(`cascader-option-icon`,[B(`checkmark`,`
color: var(--n-option-check-mark-color);
`,[pl({originalTransition:`background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)`})]),B(`arrow`,`
color: var(--n-option-arrow-color);
`)])]),B(`selected`,`
color: var(--n-option-text-color-active);
`),B(`active`,`
color: var(--n-option-text-color-active);
background-color: var(--n-option-color-hover);
`),B(`pending`,`
background-color: var(--n-option-color-hover);
`),U(`&:hover`,`
background-color: var(--n-option-color-hover);
`),B(`disabled`,`
color: var(--n-option-text-color-disabled);
background-color: #0000;
cursor: not-allowed;
`,[z(`cascader-option-icon`,[B(`arrow`,`
color: var(--n-option-text-color-disabled);
`)])])])]),z(`cascader`,`
z-index: auto;
position: relative;
width: 100%;
`)]),hce={...$e.props,allowCheckingNotLoaded:Boolean,to:Vs.propTo,bordered:{type:Boolean,default:void 0},options:{type:Array,default:()=>[]},value:[String,Number,Array],defaultValue:{type:[String,Number,Array],default:null},placeholder:String,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},disabledField:{type:String,default:`disabled`},expandTrigger:{type:String,default:`click`},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},remote:Boolean,onLoad:Function,separator:{type:String,default:` / `},filter:Function,placement:{type:String,default:`bottom-start`},cascade:{type:Boolean,default:!0},leafOnly:Boolean,showPath:{type:Boolean,default:!0},show:{type:Boolean,default:void 0},maxTagCount:[String,Number],ellipsisTagPopoverProps:Object,menuProps:Object,filterMenuProps:Object,virtualScroll:{type:Boolean,default:!0},checkStrategy:{type:String,default:`all`},valueField:{type:String,default:`value`},labelField:{type:String,default:`label`},childrenField:{type:String,default:`children`},renderLabel:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onBlur:Function,onFocus:Function,getColumnStyle:Function,spinProps:Object,renderPrefix:Function,renderSuffix:Function,scrollbarProps:Object,onChange:[Function,Array]},gce=Y({name:`Cascader`,props:hce,slots:Object,setup(e,{slots:t}){let{mergedBorderedRef:n,mergedClsPrefixRef:r,namespaceRef:a,inlineThemeDisabled:o,mergedComponentPropsRef:s}=mn(e),c=$e(`Cascader`,`-cascader`,mce,Gd,e,r),{localeRef:l}=gr(`Cascader`),u=N(e.defaultValue),d=V(()=>e.value),f=lr(d,u),p=V(()=>e.leafOnly?`child`:e.checkStrategy),m=N(``),h=mr(e,{mergedSize:t=>{let{size:n}=e;if(n)return n;let{mergedSize:r}=t||{};return r?.value?r.value:s?.value?.Cascader?.size||`medium`}}),{mergedSizeRef:g,mergedDisabledRef:_,mergedStatusRef:v}=h,y=N(null),b=N(null),x=N(null),S=N(null),C=N(null),w=N(new Set),T=N(null),D=N(null),O=Vs(e),k=N(!1),A=e=>{w.value.add(e)},j=e=>{w.value.delete(e)},ee=V(()=>{let{valueField:t,childrenField:n,disabledField:r}=e;return Dl(e.options,{getDisabled(e){return e[r]},getKey(e){return e[t]},getChildren(e){return e[n]}})}),te=V(()=>{let{cascade:t,multiple:n}=e;return n&&Array.isArray(f.value)?ee.value.getCheckedKeys(f.value,{cascade:t,allowNotLoaded:e.allowCheckingNotLoaded}):{checkedKeys:[],indeterminateKeys:[]}}),M=V(()=>te.value.checkedKeys),ne=V(()=>te.value.indeterminateKeys),re=V(()=>{let{treeNodePath:e,treeNode:t}=ee.value.getPath(C.value),n;return t===null?n=[ee.value.treeNodes]:(n=e.map(e=>e.siblings),!t.isLeaf&&!w.value.has(t.key)&&t.children&&n.push(t.children)),n}),ie=V(()=>{let{keyPath:e}=ee.value.getPath(C.value);return e}),P=V(()=>c.value.self.optionHeight);E(e.options)&&Te(e.options,(e,t)=>{e!==t&&(C.value=null,S.value=null)});let ae=N(!1);function oe(t){let{onUpdateShow:n,"onUpdate:show":r}=e;n&&R(n,t),r&&R(r,t),ae.value=t}function se(t,n,r){let{onUpdateValue:i,"onUpdate:value":a,onChange:o}=e,{nTriggerFormInput:s,nTriggerFormChange:c}=h;i&&R(i,t,n,r),a&&R(a,t,n,r),o&&R(o,t,n,r),u.value=t,s(),c()}function ce(e){S.value=e}function le(e){C.value=e}function ue(e){let{value:{getNode:t}}=ee;return e.map(e=>t(e)?.rawNode||null)}function de(t){let{cascade:n,multiple:r,filterable:i}=e,{value:{check:a,getNode:o,getPath:s}}=ee;if(r)try{let{checkedKeys:r}=a(t,te.value.checkedKeys,{cascade:n,checkStrategy:p.value,allowNotLoaded:e.allowCheckingNotLoaded});se(r,ue(r),r.map(e=>ef(s(e)?.treeNodePath))),i&&xe(),S.value=t,C.value=t}catch(n){if(n instanceof bl){if(y.value){let n=o(t);n!==null&&y.value.showErrorMessage(n.rawNode[e.labelField])}}else throw n}else if(p.value===`child`){let e=o(t);if(e?.isLeaf)se(t,e.rawNode,ef(s(t).treeNodePath));else return!1}else se(t,o(t)?.rawNode||null,ef(s(t)?.treeNodePath));return!0}function pe(t){let{cascade:n,multiple:r}=e;if(r){let{value:{uncheck:r,getNode:i,getPath:a}}=ee,{checkedKeys:o}=r(t,te.value.checkedKeys,{cascade:n,checkStrategy:p.value,allowNotLoaded:e.allowCheckingNotLoaded});se(o,o.map(e=>i(e)?.rawNode||null),o.map(e=>ef(a(e)?.treeNodePath))),S.value=t,C.value=t}}let me=V(()=>{if(e.multiple){let{showPath:t,separator:n,labelField:r,cascade:i}=e,{getCheckedKeys:a,getNode:o}=ee.value;return a(M.value,{cascade:i,checkStrategy:p.value,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys.map(e=>{let i=o(e);return i===null?{label:String(e),value:e}:{label:t?tf(i,n,r):i.rawNode[r],value:i.key}})}return[]}),ge=V(()=>{let{multiple:t,showPath:n,separator:r,labelField:i}=e,{value:a}=f;if(!t&&!Array.isArray(a)){let{getNode:e}=ee.value;if(a===null)return null;let t=e(a);return t===null?{label:String(a),value:a}:{label:n?tf(t,r,i):t.rawNode[i],value:t.key}}return null}),_e=i(e,`show`),I=lr(_e,ae),ve=V(()=>{let{placeholder:t}=e;return t===void 0?l.value.placeholder:t}),ye=V(()=>!!(e.filterable&&m.value));Te(I,t=>{if(!t||e.multiple)return;let{value:n}=f;!Array.isArray(n)&&n!==null?(S.value=n,C.value=n,he(()=>{if(!I.value)return;let{value:e}=C;if(f.value!==null){let t=ee.value.getNode(e);t&&y.value?.scroll(t.level,t.index,sn(P.value))}})):(S.value=null,C.value=null)},{immediate:!0});function L(t){let{onBlur:n}=e,{nTriggerFormBlur:r}=h;n&&R(n,t),r()}function be(t){let{onFocus:n}=e,{nTriggerFormFocus:r}=h;n&&R(n,t),r()}function xe(){x.value?.focusInput()}function Se(){x.value?.focus()}function Ce(){_.value||(m.value=``,oe(!0),e.filterable&&xe())}function we(e=!1){e&&Se(),oe(!1),m.value=``}function Ee(e){ye.value||I.value&&(x.value?.$el.contains(vt(e))||we())}function De(e){ye.value&&Ee(e)}function ke(){e.clearFilterAfterSelect&&(m.value=``)}function Ae(t){let{value:n}=S,{value:r}=ee;switch(t){case`prev`:if(n!==null){let e=r.getPrev(n,{loop:!0});e!==null&&(ce(e.key),y.value?.scroll(e.level,e.index,sn(P.value)))}break;case`next`:if(n===null){let e=r.getFirstAvailableNode();e!==null&&(ce(e.key),y.value?.scroll(e.level,e.index,sn(P.value)))}else{let e=r.getNext(n,{loop:!0});e!==null&&(ce(e.key),y.value?.scroll(e.level,e.index,sn(P.value)))}break;case`child`:if(n!==null){let t=r.getNode(n);if(t!==null){if(t.shallowLoaded){let e=r.getChild(n);e!==null&&(le(n),ce(e.key))}else{let{value:r}=w;if(!r.has(n)){A(n),le(n);let{onLoad:r}=e;r&&r(t.rawNode).then(()=>{j(n)}).catch(()=>{j(n)})}}}}break;case`parent`:if(n!==null){let e=r.getParent(n);if(e!==null){ce(e.key);let t=e.getParent();le(t===null?null:t.key)}}}}function je(t){switch(t.key){case` `:case`ArrowDown`:case`ArrowUp`:if(e.filterable&&I.value)break;t.preventDefault()}if(!ts(t,`action`))switch(t.key){case` `:if(e.filterable)return;case`Enter`:if(!I.value)Ce();else{let{value:t}=ye,{value:n}=S;if(t)b.value&&b.value.enter()&&ke();else if(n!==null){if(M.value.includes(n)||ne.value.includes(n))pe(n);else{let t=de(n);!e.multiple&&t&&we(!0)}}}break;case`ArrowUp`:t.preventDefault(),I.value&&(ye.value?b.value?.prev():Ae(`prev`));break;case`ArrowDown`:t.preventDefault(),I.value?ye.value?b.value?.next():Ae(`next`):Ce();break;case`ArrowLeft`:t.preventDefault(),I.value&&!ye.value&&Ae(`parent`);break;case`ArrowRight`:t.preventDefault(),I.value&&!ye.value&&Ae(`child`);break;case`Escape`:I.value&&(Yd(t),we(!0))}}function Me(e){je(e)}function Ne(t){t.stopPropagation(),e.multiple?se([],[],[]):se(null,null,null)}function Pe(e){y.value?.$el.contains(e.relatedTarget)||(k.value=!0,be(e))}function Fe(e){y.value?.$el.contains(e.relatedTarget)||(k.value=!1,L(e),we())}function Ie(e){x.value?.$el.contains(e.relatedTarget)||(k.value=!0,be(e))}function Le(e){x.value?.$el.contains(e.relatedTarget)||(k.value=!1,L(e))}function Re(t){ts(t,`action`)||e.multiple&&e.filter&&(t.preventDefault(),xe())}function ze(){we(!0)}function Be(){e.filterable?Ce():I.value?we(!0):Ce()}function Ve(e){m.value=e.target.value}function He(t){let{multiple:n}=e,{value:r}=f;n&&Array.isArray(r)&&t.value!==void 0?pe(t.value):se(null,null,null)}function Ue(){T.value?.syncPosition()}function We(){D.value?.syncPosition()}function Ge(){I.value&&(ye.value?Ue():We())}let Ke=V(()=>!!(e.multiple&&e.cascade||p.value!==`child`));Oe(Qd,{slots:t,mergedClsPrefixRef:r,mergedThemeRef:c,mergedValueRef:f,checkedKeysRef:M,indeterminateKeysRef:ne,hoverKeyPathRef:ie,mergedCheckStrategyRef:p,showCheckboxRef:Ke,cascadeRef:i(e,`cascade`),multipleRef:i(e,`multiple`),keyboardKeyRef:S,hoverKeyRef:C,remoteRef:i(e,`remote`),loadingKeySetRef:w,expandTriggerRef:i(e,`expandTrigger`),isMountedRef:sr(),onLoadRef:i(e,`onLoad`),virtualScrollRef:i(e,`virtualScroll`),optionHeightRef:P,localeRef:l,labelFieldRef:i(e,`labelField`),renderLabelRef:i(e,`renderLabel`),getColumnStyleRef:i(e,`getColumnStyle`),renderPrefixRef:i(e,`renderPrefix`),renderSuffixRef:i(e,`renderSuffix`),spinPropsRef:i(e,`spinProps`),syncCascaderMenuPosition:We,syncSelectMenuPosition:Ue,updateKeyboardKey:ce,updateHoverKey:le,addLoadingKey:A,deleteLoadingKey:j,doCheck:de,doUncheck:pe,closeMenu:we,handleSelectMenuClickOutside:De,handleCascaderMenuClickOutside:Ee,scrollbarPropsRef:i(e,`scrollbarProps`),clearPattern:ke});let qe={focus:()=>{x.value?.focus()},blur:()=>{x.value?.blur()},getCheckedData:()=>{if(Ke.value){let e=M.value;return{keys:e,options:ue(e)}}return{keys:[],options:[]}},getIndeterminateData:()=>{if(Ke.value){let e=ne.value;return{keys:e,options:ue(e)}}return{keys:[],options:[]}}},Je=V(()=>{let{self:{optionArrowColor:e,optionTextColor:t,optionTextColorActive:n,optionTextColorDisabled:r,optionCheckMarkColor:i,menuColor:a,menuBoxShadow:o,menuDividerColor:s,menuBorderRadius:l,menuHeight:u,optionColorHover:d,optionHeight:f,optionFontSize:p,loadingColor:m,columnWidth:h},common:{cubicBezierEaseInOut:g}}=c.value;return{"--n-bezier":g,"--n-menu-border-radius":l,"--n-menu-box-shadow":o,"--n-menu-height":u,"--n-column-width":h,"--n-menu-color":a,"--n-menu-divider-color":s,"--n-option-height":f,"--n-option-font-size":p,"--n-option-text-color":t,"--n-option-text-color-disabled":r,"--n-option-text-color-active":n,"--n-option-color-hover":d,"--n-option-check-mark-color":i,"--n-option-arrow-color":e,"--n-menu-mask-color":F(a,{alpha:.75}),"--n-loading-color":m}}),Ye=o?fe(`cascader`,void 0,Je,e):void 0;return{...qe,handleTriggerResize:Ge,mergedStatus:v,selectMenuFollowerRef:T,cascaderMenuFollowerRef:D,triggerInstRef:x,selectMenuInstRef:b,cascaderMenuInstRef:y,mergedBordered:n,mergedClsPrefix:r,namespace:a,mergedValue:f,mergedShow:I,showSelectMenu:ye,pattern:m,treeMate:ee,mergedSize:g,mergedDisabled:_,localizedPlaceholder:ve,selectedOption:ge,selectedOptions:me,adjustedTo:O,menuModel:re,handleMenuTabout:ze,handleMenuFocus:Ie,handleMenuBlur:Le,handleMenuKeydown:Me,handleMenuMousedown:Re,handleTriggerFocus:Pe,handleTriggerBlur:Fe,handleTriggerClick:Be,handleClear:Ne,handleDeleteOption:He,handlePatternInput:Ve,handleKeydown:je,focused:k,optionHeight:P,mergedTheme:c,cssVars:o?void 0:Je,themeClass:Ye?.themeClass,onRender:Ye?.onRender}},render(){let{mergedClsPrefix:e}=this;return L(),H(`div`,{class:P(`${e}-cascader`)},[J(Zs,null,{default:()=>[(L(),W(Qs,null,{default:()=>(L(),W(Zd,{onResize:this.handleTriggerResize,ref:`triggerInstRef`,status:this.mergedStatus,clsPrefix:e,maxTagCount:this.maxTagCount,ellipsisTagPopoverProps:this.ellipsisTagPopoverProps,bordered:this.mergedBordered,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,active:this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,focused:this.focused,onFocus:this.handleTriggerFocus,onBlur:this.handleTriggerBlur,onClick:this.handleTriggerClick,onClear:this.handleClear,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onKeydown:this.handleKeydown},{arrow:()=>this.$slots.arrow?.()},1032,`onResize.status.clsPrefix.maxTagCount.ellipsisTagPopoverProps.bordered.size.theme.themeOverrides.active.pattern.placeholder.selectedOption.selectedOptions.multiple.filterable.clearable.disabled.focused.onFocus.onBlur.onClick.onClear.onDeleteOption.onPatternInput.onKeydown`.split(`.`)))},1024)),(L(),W(gc,{key:`cascaderMenu`,ref:`cascaderMenuFollowerRef`,show:this.mergedShow&&!this.showSelectMenu,containerClass:this.namespace,placement:this.placement,width:this.options.length?void 0:`target`,teleportDisabled:this.adjustedTo===Vs.tdkey,to:this.adjustedTo},{_:1,default:Nt(()=>{this.onRender?.();let{menuProps:e}=this;return L(),W(dce,I(e,{ref:`cascaderMenuInstRef`,class:[this.themeClass,e?.class],value:this.mergedValue,show:this.mergedShow&&!this.showSelectMenu,menuModel:this.menuModel,style:[this.cssVars,e?.style],onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onMousedown:this.handleMenuMousedown,onTabout:this.handleMenuTabout}),{action:()=>this.$slots.action?.(),empty:()=>this.$slots.empty?.()},1040,[`class`,`value`,`show`,`menuModel`,`style`,`onFocus`,`onBlur`,`onKeydown`,`onMousedown`,`onTabout`])})},8,[`show`,`containerClass`,`placement`,`width`,`teleportDisabled`,`to`])),(L(),W(gc,{key:`selectMenu`,ref:`selectMenuFollowerRef`,show:this.mergedShow&&this.showSelectMenu,containerClass:this.namespace,width:`target`,placement:this.placement,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Vs.tdkey},{_:1,default:Nt(()=>{this.onRender?.();let{filterMenuProps:e}=this;return L(),W(pce,I(e,{ref:`selectMenuInstRef`,class:[this.themeClass,e?.class],value:this.mergedValue,show:this.mergedShow&&this.showSelectMenu,pattern:this.pattern,multiple:this.multiple,tmNodes:this.treeMate.treeNodes,filter:this.filter,labelField:this.labelField,separator:this.separator,style:[this.cssVars,e?.style]}),null,16,[`class`,`value`,`show`,`pattern`,`multiple`,`tmNodes`,`filter`,`labelField`,`separator`,`style`])})},8,[`show`,`containerClass`,`placement`,`to`,`teleportDisabled`]))]},1024)],2)}}),nf={name:`Code`,common:os,self(e){let{textColor2:t,fontSize:n,fontWeightStrong:r,textColor3:i}=e;return{textColor:t,fontSize:n,fontWeightStrong:r,"mono-3":`#5c6370`,"hue-1":`#56b6c2`,"hue-2":`#61aeee`,"hue-3":`#c678dd`,"hue-4":`#98c379`,"hue-5":`#e06c75`,"hue-5-2":`#be5046`,"hue-6":`#d19a66`,"hue-6-2":`#e6c07b`,lineNumberTextColor:i}}};function _ce(e){let{textColor2:t,fontSize:n,fontWeightStrong:r,textColor3:i}=e;return{textColor:t,fontSize:n,fontWeightStrong:r,"mono-3":`#a0a1a7`,"hue-1":`#0184bb`,"hue-2":`#4078f2`,"hue-3":`#a626a4`,"hue-4":`#50a14f`,"hue-5":`#e45649`,"hue-5-2":`#c91243`,"hue-6":`#986801`,"hue-6-2":`#c18401`,lineNumberTextColor:i}}var rf={name:`Code`,common:_e,self:_ce};function af(e){let{fontWeight:t,textColor1:n,textColor2:r,textColorDisabled:i,dividerColor:a,fontSize:o}=e;return{titleFontSize:o,titleFontWeight:t,dividerColor:a,titleTextColor:n,titleTextColorDisabled:i,fontSize:o,textColor:r,arrowColor:r,arrowColorDisabled:i,itemMargin:`16px 0 0 0`,titlePadding:`16px 0 0 0`}}var vce={name:`Collapse`,common:_e,self:af},yce={name:`Collapse`,common:os,self:af};function of(e){let{cubicBezierEaseInOut:t}=e;return{bezier:t}}var bce={name:`CollapseTransition`,common:_e,self:of};function sf(e){let{fontSize:t,boxShadow2:n,popoverColor:r,textColor2:i,borderRadius:a,borderColor:o,heightSmall:s,heightMedium:c,heightLarge:l,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,dividerColor:p}=e;return{panelFontSize:t,boxShadow:n,color:r,textColor:i,borderRadius:a,border:`1px solid ${o}`,heightSmall:s,heightMedium:c,heightLarge:l,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,dividerColor:p}}var cf=En({name:`ColorPicker`,common:_e,peers:{Input:Sr,Button:xr},self:sf});function xce(e,t){switch(e[0]){case`hex`:return t?`#000000FF`:`#000000`;case`rgb`:return t?`rgba(0, 0, 0, 1)`:`rgb(0, 0, 0)`;case`hsl`:return t?`hsla(0, 0%, 0%, 1)`:`hsl(0, 0%, 0%)`;case`hsv`:return t?`hsva(0, 0%, 0%, 1)`:`hsv(0, 0%, 0%)`}return`#000000`}function lf(e){return e===null?null:/^ *#/.test(e)?`hex`:e.includes(`rgb`)?`rgb`:e.includes(`hsl`)?`hsl`:e.includes(`hsv`)?`hsv`:null}function Sce(e,t=[255,255,255],n=`AA`){let[r,i,a,o]=Ut(De(e));if(o===1){let e=uf([r,i,a]),o=uf(t);return(Math.max(e,o)+.05)/(Math.min(e,o)+.05)>=(n===`AA`?4.5:7)}let s=uf([Math.round(r*o+t[0]*(1-o)),Math.round(i*o+t[1]*(1-o)),Math.round(a*o+t[2]*(1-o))]),c=uf(t);return(Math.max(s,c)+.05)/(Math.min(s,c)+.05)>=(n===`AA`?4.5:7)}function uf(e){let[t,n,r]=e.map(e=>(e/=255,e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return .2126*t+.7152*n+.0722*r}function Cce(e){return e=Math.round(e),e>=360?359:e<0?0:e}function wce(e){return e=Math.round(e*100)/100,e>1?1:e<0?0:e}var Tce={rgb:{hex(e){return Ke(Ut(e))},hsl(e){let[t,n,r,i]=Ut(e);return De([...xe(t,n,r),i])},hsv(e){let[t,n,r,i]=Ut(e);return Ze([...Me(t,n,r),i])}},hex:{rgb(e){return le(Ut(e))},hsl(e){let[t,n,r,i]=Ut(e);return De([...xe(t,n,r),i])},hsv(e){let[t,n,r,i]=Ut(e);return Ze([...Me(t,n,r),i])}},hsl:{hex(e){let[t,n,r,i]=Kt(e);return Ke([...we(t,n,r),i])},rgb(e){let[t,n,r,i]=Kt(e);return le([...we(t,n,r),i])},hsv(e){let[t,n,r,i]=Kt(e);return Ze([...ct(t,n,r),i])}},hsv:{hex(e){let[t,n,r,i]=oe(e);return Ke([...dt(t,n,r),i])},rgb(e){let[t,n,r,i]=oe(e);return le([...dt(t,n,r),i])},hsl(e){let[t,n,r,i]=oe(e);return De([...at(t,n,r),i])}}};function df(e,t,n){return n||=lf(e),n?n===t?e:Tce[n][t](e):null}var Ece=[`onMousedown`],ff=`12px`,Dce=12,pf=`6px`,Oce=Y({name:`AlphaSlider`,props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},alpha:{type:Number,default:0},onUpdateAlpha:{type:Function,required:!0},onComplete:Function},setup(e){let t=N(null);function n(n){t.value&&e.rgba&&(kn(`mousemove`,document,r),kn(`mouseup`,document,i),r(n))}function r(n){let{value:r}=t;if(!r)return;let{width:i,left:a}=r.getBoundingClientRect(),o=(n.clientX-a)/(i-Dce);e.onUpdateAlpha(wce(o))}function i(){xn(`mousemove`,document,r),xn(`mouseup`,document,i),e.onComplete?.()}return{railRef:t,railBackgroundImage:V(()=>{let{rgba:t}=e;return t?`linear-gradient(to right, rgba(${t[0]}, ${t[1]}, ${t[2]}, 0) 0%, rgba(${t[0]}, ${t[1]}, ${t[2]}, 1) 100%)`:``}),handleMouseDown:n}},render(){let{clsPrefix:t}=this;return L(),H(`div`,{class:P(`${t}-color-picker-slider`),ref:`railRef`,style:e({height:ff,borderRadius:pf}),onMousedown:this.handleMouseDown},[q(`div`,{style:e({borderRadius:pf,position:`absolute`,left:0,right:0,top:0,bottom:0,overflow:`hidden`})},[q(`div`,{class:P(`${t}-color-picker-checkboard`)},null,2),q(`div`,{class:P(`${t}-color-picker-slider__image`),style:e({backgroundImage:this.railBackgroundImage})},null,6)],4),G(()=>this.rgba&&(L(),H(`div`,{style:e({position:`absolute`,left:pf,right:pf,top:0,bottom:0})},[q(`div`,{class:P(`${t}-color-picker-handle`),style:e({left:`calc(${this.alpha*100}% - ${pf})`,borderRadius:pf,width:ff,height:ff})},[q(`div`,{class:P(`${t}-color-picker-handle__fill`),style:e({backgroundColor:le(this.rgba),borderRadius:pf,width:ff,height:ff})},null,6)],6)],4)))],46,Ece)}}),mf=bn(`n-color-picker`);function kce(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e),255)):!1}function Ace(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e),360)):!1}function jce(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e),100)):!1}function Mce(e){let t=e.trim();return/^#[0-9a-fA-F]+$/.test(t)?[4,5,7,9].includes(t.length):!1}function Nce(e){return/^\d{1,3}\.?\d*%$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e)/100,100)):!1}var Pce={paddingSmall:`0 4px`},hf=Y({name:`ColorInputUnit`,props:{label:{type:String,required:!0},value:{type:[Number,String],default:null},showAlpha:Boolean,onUpdateValue:{type:Function,required:!0}},setup(e){let t=N(``),{themeRef:n}=pe(mf,null);ot(()=>{t.value=r()});function r(){let{value:t}=e;if(t===null)return``;let{label:n}=e;return n===`HEX`?t:n===`A`?`${Math.floor(t*100)}%`:String(Math.floor(t))}function i(e){t.value=e}function a(n){let i,a;switch(e.label){case`HEX`:a=Mce(n),a&&e.onUpdateValue(n),t.value=r();break;case`H`:i=Ace(n),i===!1?t.value=r():e.onUpdateValue(i);break;case`S`:case`L`:case`V`:i=jce(n),i===!1?t.value=r():e.onUpdateValue(i);break;case`A`:i=Nce(n),i===!1?t.value=r():e.onUpdateValue(i);break;case`R`:case`G`:case`B`:i=kce(n),i===!1?t.value=r():e.onUpdateValue(i)}}return{mergedTheme:n,inputValue:t,handleInputChange:a,handleInputUpdateValue:i}},render(){let{mergedTheme:t}=this;return L(),W(Fr,{size:`small`,placeholder:this.label,theme:t.peers.Input,themeOverrides:t.peerOverrides.Input,builtinThemeOverrides:Pce,value:this.inputValue,onUpdateValue:this.handleInputUpdateValue,onChange:this.handleInputChange,style:e(this.label===`A`?`flex-grow: 1.25;`:``)},null,8,[`placeholder`,`theme`,`themeOverrides`,`builtinThemeOverrides`,`value`,`onUpdateValue`,`onChange`,`style`])}}),Fce=[`onClick`],Ice=Y({name:`ColorInput`,props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},modes:{type:Array,required:!0},showAlpha:{type:Boolean,required:!0},value:{type:String,default:null},valueArr:{type:Array,default:null},onUpdateValue:{type:Function,required:!0},onUpdateMode:{type:Function,required:!0}},setup(e){return{handleUnitUpdateValue(t,n){let{showAlpha:r}=e;if(e.mode===`hex`){e.onUpdateValue((r?Ke:Be)(n));return}let i;switch(i=e.valueArr===null?[0,0,0,0]:Array.from(e.valueArr),e.mode){case`hsv`:i[t]=n,e.onUpdateValue((r?Ze:Pe)(i));break;case`rgb`:i[t]=n,e.onUpdateValue((r?le:An)(i));break;case`hsl`:i[t]=n,e.onUpdateValue((r?De:ye)(i))}}}},render(){let{clsPrefix:t,modes:n}=this;return L(),H(`div`,{class:P(`${t}-color-picker-input`)},[q(`div`,{class:P(`${t}-color-picker-input__mode`),onClick:this.onUpdateMode,style:e({cursor:n.length===1?``:`pointer`})},[G(()=>this.mode.toUpperCase()+(this.showAlpha?`A`:``))],14,Fce),J(nl,null,{default:()=>{let{mode:e,valueArr:t,showAlpha:n}=this;if(e===`hex`){let e=null;try{e=t===null?null:(n?Ke:Be)(t)}catch{}return L(),W(hf,{key:1,label:`HEX`,showAlpha:n,value:e,onUpdateValue:e=>{this.handleUnitUpdateValue(0,e)}},null,8,[`showAlpha`,`value`,`onUpdateValue`])}return(e+(n?`a`:``)).split(``).map((e,n)=>(L(),W(hf,{label:e.toUpperCase(),value:t===null?null:t[n],onUpdateValue:e=>{this.handleUnitUpdateValue(n,e)}},null,8,[`label`,`value`,`onUpdateValue`])))}},1024)],2)}}),Lce=[`onClick`,`onKeydown`];function Rce(e,t){if(t===`hsv`){let[t,n,r,i]=oe(e);return le([...dt(t,n,r),i])}return e}function zce(e){let t=document.createElement(`canvas`).getContext(`2d`);return t?(t.fillStyle=e,t.fillStyle):`#000000`}var Bce=Y({name:`ColorPickerSwatches`,props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},swatches:{type:Array,required:!0},onUpdateColor:{type:Function,required:!0}},setup(e){let t=V(()=>e.swatches.map(e=>{let t=lf(e);return{value:e,mode:t,legalValue:Rce(e,t)}}));function n(t){let{mode:n}=e,{value:r,mode:i}=t;return i||(i=`hex`,/^[a-zA-Z]+$/.test(r)?r=zce(r):(on(`color-picker`,`color ${r} in swatches is invalid.`),r=`#000000`)),i===n?r:df(r,n,i)}function r(t){e.onUpdateColor(n(t))}function i(e,t){e.key===`Enter`&&r(t)}return{parsedSwatchesRef:t,handleSwatchSelect:r,handleSwatchKeyDown:i}},render(){let{clsPrefix:t}=this;return L(),H(`div`,{class:P(`${t}-color-picker-swatches`)},[G(()=>this.parsedSwatchesRef.map(n=>(L(),H(`div`,{class:P(`${t}-color-picker-swatch`),tabindex:0,onClick:()=>{this.handleSwatchSelect(n)},onKeydown:e=>{this.handleSwatchKeyDown(e,n)}},[q(`div`,{class:P(`${t}-color-picker-swatch__fill`),style:e({background:n.legalValue})},null,6)],42,Lce))))],2)}}),Vce=[`onClick`],Hce=Y({name:`ColorPickerTrigger`,slots:Object,props:{clsPrefix:{type:String,required:!0},value:{type:String,default:null},hsla:{type:Array,default:null},disabled:Boolean,onClick:Function},setup(t){let{colorPickerSlots:n,renderLabelRef:r}=pe(mf,null);return()=>{let{hsla:i,value:a,clsPrefix:o,onClick:s,disabled:c}=t,l=n.label||r.value;return L(),H(`div`,{class:P([`${o}-color-picker`,c&&`${o}-color-picker--disabled`]),onClick:c?void 0:s},[q(`div`,{class:P(`${o}-color-picker__fill`)},[q(`div`,{class:P(`${o}-color-picker-checkboard`)},null,2),q(`div`,{style:e({position:`absolute`,left:0,right:0,top:0,bottom:0,backgroundColor:i?De(i):``})},null,4),a&&i?(L(),H(`div`,{key:0,class:P(`${o}-color-picker__value`),style:e({color:Sce(i)?`white`:`black`})},[l?(L(),H(K,{key:0},[G(()=>l(a))],64)):(L(),H(K,{key:1},[G(()=>a)],64))],6)):G(()=>null)],2)],10,Vce)}}}),Uce=[`value`,`onChange`],Wce=Y({name:`ColorPreview`,props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},color:{type:String,default:null,validator:e=>{let t=lf(e);return!!(!e||t&&t!==`hsv`)}},onUpdateColor:{type:Function,required:!0}},setup(e){function t(t){let n=t.target.value;e.onUpdateColor?.(df(n.toUpperCase(),e.mode,`hex`)),t.stopPropagation()}return{handleChange:t}},render(){let{clsPrefix:t}=this;return L(),H(`div`,{class:P(`${t}-color-picker-preview__preview`)},[q(`span`,{class:P(`${t}-color-picker-preview__fill`),style:e({background:this.color||`#000000`})},null,6),q(`input`,{class:P(`${t}-color-picker-preview__input`),type:`color`,value:this.color,onChange:this.handleChange},null,42,Uce)],2)}}),Gce=[`onMousedown`],gf=`12px`,Kce=12,_f=`6px`,qce=6,Jce=`linear-gradient(90deg,red,#ff0 16.66%,#0f0 33.33%,#0ff 50%,#00f 66.66%,#f0f 83.33%,red)`,Yce=Y({name:`HueSlider`,props:{clsPrefix:{type:String,required:!0},hue:{type:Number,required:!0},onUpdateHue:{type:Function,required:!0},onComplete:Function},setup(e){let t=N(null);function n(e){t.value&&(kn(`mousemove`,document,r),kn(`mouseup`,document,i),r(e))}function r(n){let{value:r}=t;if(!r)return;let{width:i,left:a}=r.getBoundingClientRect(),o=Cce((n.clientX-a-qce)/(i-Kce)*360);e.onUpdateHue(o)}function i(){xn(`mousemove`,document,r),xn(`mouseup`,document,i),e.onComplete?.()}return{railRef:t,handleMouseDown:n}},render(){let{clsPrefix:t}=this;return L(),H(`div`,{class:P(`${t}-color-picker-slider`),style:e({height:gf,borderRadius:_f})},[q(`div`,{ref:`railRef`,style:e({boxShadow:`inset 0 0 2px 0 rgba(0, 0, 0, .24)`,boxSizing:`border-box`,backgroundImage:Jce,height:gf,borderRadius:_f,position:`relative`}),onMousedown:this.handleMouseDown},[q(`div`,{style:e({position:`absolute`,left:_f,right:_f,top:0,bottom:0})},[q(`div`,{class:P(`${t}-color-picker-handle`),style:e({left:`calc((${this.hue}%) / 359 * 100 - ${_f})`,borderRadius:_f,width:gf,height:gf})},[q(`div`,{class:P(`${t}-color-picker-handle__fill`),style:e({backgroundColor:`hsl(${this.hue}, 100%, 50%)`,borderRadius:_f,width:gf,height:gf})},null,6)],6)],4)],44,Gce)],6)}}),Xce=[`onMousedown`],vf=`12px`,yf=`6px`,Zce=Y({name:`Pallete`,props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},displayedHue:{type:Number,required:!0},displayedSv:{type:Array,required:!0},onUpdateSV:{type:Function,required:!0},onComplete:Function},setup(e){let t=N(null);function n(e){t.value&&(kn(`mousemove`,document,r),kn(`mouseup`,document,i),r(e))}function r(n){let{value:r}=t;if(!r)return;let{width:i,height:a,left:o,bottom:s}=r.getBoundingClientRect(),c=(s-n.clientY)/a,l=(n.clientX-o)/i,u=100*(l>1?1:l<0?0:l),d=100*(c>1?1:c<0?0:c);e.onUpdateSV(u,d)}function i(){xn(`mousemove`,document,r),xn(`mouseup`,document,i),e.onComplete?.()}return{palleteRef:t,handleColor:V(()=>{let{rgba:t}=e;return t?`rgb(${t[0]}, ${t[1]}, ${t[2]})`:``}),handleMouseDown:n}},render(){let{clsPrefix:t}=this;return L(),H(`div`,{class:P(`${t}-color-picker-pallete`),onMousedown:this.handleMouseDown,ref:`palleteRef`},[q(`div`,{class:P(`${t}-color-picker-pallete__layer`),style:e({backgroundImage:`linear-gradient(90deg, white, hsl(${this.displayedHue}, 100%, 50%))`})},null,6),q(`div`,{class:P(`${t}-color-picker-pallete__layer ${t}-color-picker-pallete__layer--shadowed`),style:{backgroundImage:`linear-gradient(180deg, rgba(0, 0, 0, 0%), rgba(0, 0, 0, 100%))`}},null,2),G(()=>this.rgba&&(L(),H(`div`,{class:P(`${t}-color-picker-handle`),style:e({width:vf,height:vf,borderRadius:yf,left:`calc(${this.displayedSv[0]}% - ${yf})`,bottom:`calc(${this.displayedSv[1]}% - ${yf})`})},[q(`div`,{class:P(`${t}-color-picker-handle__fill`),style:e({backgroundColor:this.handleColor,borderRadius:yf,width:vf,height:vf})},null,6)],6)))],42,Xce)}}),Qce=U([z(`color-picker-panel`,`
margin: 4px 0;
width: 240px;
font-size: var(--n-panel-font-size);
color: var(--n-text-color);
background-color: var(--n-color);
transition:
box-shadow .3s var(--n-bezier),
color .3s var(--n-bezier),
background-color .3s var(--n-bezier);
border-radius: var(--n-border-radius);
box-shadow: var(--n-box-shadow);
`,[pl(),z(`input`,`
text-align: center;
`)]),z(`color-picker-checkboard`,`
background: white;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
`,[U(`&::after`,`
background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%);
background-size: 12px 12px;
background-position: 0 0, 0 6px, 6px -6px, -6px 0px;
background-repeat: repeat;
content: "";
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
`)]),z(`color-picker-slider`,`
margin-bottom: 8px;
position: relative;
box-sizing: border-box;
`,[X(`image`,`
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
`),U(`&::after`,`
content: "";
position: absolute;
border-radius: inherit;
left: 0;
right: 0;
top: 0;
bottom: 0;
box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24);
pointer-events: none;
`)]),z(`color-picker-handle`,`
z-index: 1;
box-shadow: 0 0 2px 0 rgba(0, 0, 0, .45);
position: absolute;
background-color: white;
overflow: hidden;
`,[X(`fill`,`
box-sizing: border-box;
border: 2px solid white;
`)]),z(`color-picker-pallete`,`
height: 180px;
position: relative;
margin-bottom: 8px;
cursor: crosshair;
`,[X(`layer`,`
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
`,[B(`shadowed`,`
box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24);
`)])]),z(`color-picker-preview`,`
display: flex;
`,[X(`sliders`,`
flex: 1 0 auto;
`),X(`preview`,`
position: relative;
height: 30px;
width: 30px;
margin: 0 0 8px 6px;
border-radius: 50%;
box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset;
overflow: hidden;
`),X(`fill`,`
display: block;
width: 30px;
height: 30px;
`),X(`input`,`
position: absolute;
top: 0;
left: 0;
width: 30px;
height: 30px;
opacity: 0;
z-index: 1;
`)]),z(`color-picker-input`,`
display: flex;
align-items: center;
`,[z(`input`,`
flex-grow: 1;
flex-basis: 0;
`),X(`mode`,`
width: 72px;
text-align: center;
`)]),z(`color-picker-control`,`
padding: 12px;
`),z(`color-picker-action`,`
display: flex;
margin-top: -4px;
border-top: 1px solid var(--n-divider-color);
padding: 8px 12px;
justify-content: flex-end;
`,[z(`button`,`margin-left: 8px;`)]),z(`color-picker`,`
display: inline-block;
box-sizing: border-box;
height: var(--n-height);
font-size: var(--n-font-size);
width: 100%;
position: relative;
cursor: pointer;
border: var(--n-border);
border-radius: var(--n-border-radius);
transition: border-color .3s var(--n-bezier);
`,[B(`disabled`,`cursor: not-allowed`),X(`value`,`
white-space: nowrap;
position: relative;
`),X(`fill`,`
border-radius: var(--n-border-radius);
position: absolute;
display: flex;
align-items: center;
justify-content: center;
left: 4px;
right: 4px;
top: 4px;
bottom: 4px;
`),z(`color-picker-checkboard`,`
border-radius: var(--n-border-radius);
`,[U(`&::after`,`
--n-block-size: calc((var(--n-height) - 8px) / 3);
background-size: calc(var(--n-block-size) * 2) calc(var(--n-block-size) * 2);
background-position: 0 0, 0 var(--n-block-size), var(--n-block-size) calc(-1 * var(--n-block-size)), calc(-1 * var(--n-block-size)) 0px;
`)])]),z(`color-picker-swatches`,`
display: grid;
grid-gap: 8px;
flex-wrap: wrap;
position: relative;
grid-template-columns: repeat(auto-fill, 18px);
margin-top: 10px;
`,[z(`color-picker-swatch`,`
width: 18px;
height: 18px;
background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%);
background-size: 8px 8px;
background-position: 0px 0, 0px 4px, 4px -4px, -4px 0px;
background-repeat: repeat;
`,[X(`fill`,`
position: relative;
width: 100%;
height: 100%;
border-radius: 3px;
box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset;
cursor: pointer;
`),U(`&:focus`,`
outline: none;
`,[X(`fill`,[U(`&::after`,`
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: inherit;
filter: blur(2px);
content: "";
`)])])])])]),$ce={...$e.props,value:String,show:{type:Boolean,default:void 0},defaultShow:Boolean,defaultValue:String,modes:{type:Array,default:()=>[`rgb`,`hex`,`hsl`]},placement:{type:String,default:`bottom-start`},to:Vs.propTo,showAlpha:{type:Boolean,default:!0},showPreview:Boolean,swatches:Array,disabled:{type:Boolean,default:void 0},actions:{type:Array,default:null},internalActions:Array,size:String,renderLabel:Function,onComplete:Function,onConfirm:Function,onClear:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]},ele=Y({name:`ColorPicker`,inheritAttrs:!1,props:$ce,slots:Object,setup(t,{slots:n}){let r=null;function a(e){r=e}let o=null,{mergedClsPrefixRef:s,namespaceRef:c,inlineThemeDisabled:l,mergedComponentPropsRef:u}=mn(t),d=mr(t,{mergedSize:e=>{let{size:n}=t;if(n)return n;let{mergedSize:r}=e||{};return r?.value?r.value:u?.value?.ColorPicker?.size||`medium`}}),{mergedSizeRef:f,mergedDisabledRef:p}=d,{localeRef:m}=gr(`global`),h=$e(`ColorPicker`,`-color-picker`,Qce,cf,t,s);Oe(mf,{themeRef:h,renderLabelRef:i(t,`renderLabel`),colorPickerSlots:n});let g=N(t.defaultShow),_=lr(i(t,`show`),g);function v(e){let{onUpdateShow:n,"onUpdate:show":r}=t;n&&R(n,e),r&&R(r,e),g.value=e}let{defaultValue:y}=t,b=N(y===void 0?xce(t.modes,t.showAlpha):y),x=lr(i(t,`value`),b),S=N([x.value]),C=N(0),w=V(()=>lf(x.value)),{modes:T}=t,E=N(lf(x.value)||T[0]||`rgb`);function D(){let{modes:e}=t,{value:n}=E,r=e.findIndex(e=>e===n);~r?E.value=e[(r+1)%e.length]:E.value=`rgb`}let O,k,A,j,ee,te,M,ne,re=V(()=>{let{value:e}=x;if(!e)return null;switch(w.value){case`hsv`:return oe(e);case`hsl`:return[O,k,A,ne]=Kt(e),[...ct(O,k,A),ne];case`rgb`:case`hex`:return[ee,te,M,ne]=Ut(e),[...Me(ee,te,M),ne]}}),ie=V(()=>{let{value:e}=x;if(!e)return null;switch(w.value){case`rgb`:case`hex`:return Ut(e);case`hsv`:return[O,k,j,ne]=oe(e),[...dt(O,k,j),ne];case`hsl`:return[O,k,A,ne]=Kt(e),[...we(O,k,A),ne]}}),ae=V(()=>{let{value:e}=x;if(!e)return null;switch(w.value){case`hsl`:return Kt(e);case`hsv`:return[O,k,j,ne]=oe(e),[...at(O,k,j),ne];case`rgb`:case`hex`:return[ee,te,M,ne]=Ut(e),[...xe(ee,te,M),ne]}}),se=V(()=>{switch(E.value){case`rgb`:case`hex`:return ie.value;case`hsv`:return re.value;case`hsl`:return ae.value}}),ce=N(0),ue=N(1),de=N([0,0]);function pe(e,n){let{value:r}=re,i=ce.value,a=r?r[3]:1;de.value=[e,n];let{showAlpha:o}=t;switch(E.value){case`hsv`:ge((o?Ze:Pe)([i,e,n,a]),`cursor`);break;case`hsl`:ge((o?De:ye)([...at(i,e,n),a]),`cursor`);break;case`rgb`:ge((o?le:An)([...dt(i,e,n),a]),`cursor`);break;case`hex`:ge((o?Ke:Be)([...dt(i,e,n),a]),`cursor`)}}function me(e){ce.value=e;let{value:n}=re;if(!n)return;let[,r,i,a]=n,{showAlpha:o}=t;switch(E.value){case`hsv`:ge((o?Ze:Pe)([e,r,i,a]),`cursor`);break;case`rgb`:ge((o?le:An)([...dt(e,r,i),a]),`cursor`);break;case`hex`:ge((o?Ke:Be)([...dt(e,r,i),a]),`cursor`);break;case`hsl`:ge((o?De:ye)([...at(e,r,i),a]),`cursor`)}}function F(e){switch(E.value){case`hsv`:[O,k,j]=re.value,ge(Ze([O,k,j,e]),`cursor`);break;case`rgb`:[ee,te,M]=ie.value,ge(le([ee,te,M,e]),`cursor`);break;case`hex`:[ee,te,M]=ie.value,ge(Ke([ee,te,M,e]),`cursor`);break;case`hsl`:[O,k,A]=ae.value,ge(De([O,k,A,e]),`cursor`)}ue.value=e}function ge(e,n){o=n===`cursor`?e:null;let{nTriggerFormChange:r,nTriggerFormInput:i}=d,{onUpdateValue:a,"onUpdate:value":s}=t;a&&R(a,e),s&&R(s,e),r(),i(),b.value=e}function _e(e){ge(e,`input`),he(I)}function I(e=!0){let{value:n}=x;if(n){let{nTriggerFormChange:r,nTriggerFormInput:i}=d,{onComplete:a}=t;a&&a(n);let{value:o}=S,{value:s}=C;e&&(o.splice(s+1,o.length,n),C.value=s+1),r(),i()}}function ve(){let{value:e}=C;e-1<0||(ge(S.value[e-1],`input`),I(!1),C.value=e-1)}function be(){let{value:e}=C;e<0||e+1>=S.value.length||(ge(S.value[e+1],`input`),I(!1),C.value=e+1)}function Se(){ge(null,`input`);let{onClear:e}=t;e&&e(),v(!1)}function Ce(){let{value:e}=x,{onConfirm:n}=t;n&&n(e),v(!1)}let Ee=V(()=>C.value>=1),ke=V(()=>{let{value:e}=S;return e.length>1&&C.value<e.length-1});Te(_,e=>{e||(S.value=[x.value],C.value=0)}),ot(()=>{if(!(o&&o===x.value)){let{value:e}=re;e&&(ce.value=e[0],ue.value=e[3],de.value=[e[1],e[2]])}o=null});let Ae=V(()=>{let{value:e}=f,{common:{cubicBezierEaseInOut:t},self:{textColor:n,color:r,panelFontSize:i,boxShadow:a,border:o,borderRadius:s,dividerColor:c,[tt(`height`,e)]:l,[tt(`fontSize`,e)]:u}}=h.value;return{"--n-bezier":t,"--n-text-color":n,"--n-color":r,"--n-panel-font-size":i,"--n-font-size":u,"--n-box-shadow":a,"--n-border":o,"--n-border-radius":s,"--n-height":l,"--n-divider-color":c}}),je=l?fe(`color-picker`,V(()=>f.value[0]),Ae,t):void 0;function Ne(){let{value:r}=ie,{value:i}=ce,{internalActions:a,modes:o,actions:c}=t,{value:u}=h,{value:d}=s;return(()=>{let s=Ye(`550d4636453f407b`);return L(),H(`div`,{class:P([`${d}-color-picker-panel`,je?.themeClass.value]),onDragstart:s[0]||=e=>{e.preventDefault()},style:e(l?void 0:Ae.value)},[q(`div`,{class:P(`${d}-color-picker-control`)},[(L(),W(Zce,{clsPrefix:d,rgba:r,displayedHue:i,displayedSv:de.value,onUpdateSV:pe,onComplete:I},null,8,[`clsPrefix`,`rgba`,`displayedHue`,`displayedSv`,`onUpdateSV`,`onComplete`])),q(`div`,{class:P(`${d}-color-picker-preview`)},[q(`div`,{class:P(`${d}-color-picker-preview__sliders`)},[(L(),W(Yce,{clsPrefix:d,hue:i,onUpdateHue:me,onComplete:I},null,8,[`clsPrefix`,`hue`,`onUpdateHue`,`onComplete`])),t.showAlpha?(L(),W(Oce,{key:0,clsPrefix:d,rgba:r,alpha:ue.value,onUpdateAlpha:F,onComplete:I},null,8,[`clsPrefix`,`rgba`,`alpha`,`onUpdateAlpha`,`onComplete`])):G(()=>null)],2),t.showPreview?(L(),W(Wce,{key:0,clsPrefix:d,mode:E.value,color:ie.value&&Be(ie.value),onUpdateColor:s[1]||=e=>{ge(e,`input`)}},null,8,[`clsPrefix`,`mode`,`color`])):G(()=>null)],2),(L(),W(Ice,{clsPrefix:d,showAlpha:t.showAlpha,mode:E.value,modes:o,onUpdateMode:D,value:x.value,valueArr:se.value,onUpdateValue:_e},null,8,[`clsPrefix`,`showAlpha`,`mode`,`modes`,`onUpdateMode`,`value`,`valueArr`,`onUpdateValue`])),G(()=>t.swatches?.length&&(()=>{let e=Ye(`1de0b88852ebf5cb`);return L(),W(Bce,{clsPrefix:d,mode:E.value,swatches:t.swatches,onUpdateColor:e[0]||=e=>{ge(e,`input`)}},null,8,[`clsPrefix`,`mode`,`swatches`])})())],2),c?.length?(L(),H(`div`,{key:0,class:P(`${d}-color-picker-action`)},[G(()=>c.includes(`confirm`)&&(L(),W(wr,{size:`small`,onClick:Ce,theme:u.peers.Button,themeOverrides:u.peerOverrides.Button},{default:()=>m.value.confirm},1032,[`onClick`,`theme`,`themeOverrides`]))),G(()=>c.includes(`clear`)&&(L(),W(wr,{size:`small`,onClick:Se,disabled:!x.value,theme:u.peers.Button,themeOverrides:u.peerOverrides.Button},{default:()=>m.value.clear},1032,[`onClick`,`disabled`,`theme`,`themeOverrides`])))],2)):G(()=>null),n.action?(L(),H(`div`,{key:2,class:P(`${d}-color-picker-action`)},[G(()=>n.action?.())],2)):(L(),H(K,{key:3},[a?(L(),H(`div`,{key:0,class:P(`${d}-color-picker-action`)},[G(()=>a.includes(`undo`)&&(L(),W(wr,{size:`small`,onClick:ve,disabled:!Ee.value,theme:u.peers.Button,themeOverrides:u.peerOverrides.Button},{default:()=>m.value.undo},1032,[`onClick`,`disabled`,`theme`,`themeOverrides`]))),G(()=>a.includes(`redo`)&&(L(),W(wr,{size:`small`,onClick:be,disabled:!ke.value,theme:u.peers.Button,themeOverrides:u.peerOverrides.Button},{default:()=>m.value.redo},1032,[`onClick`,`disabled`,`theme`,`themeOverrides`])))],2)):G(()=>null)],64))],38)})()}return{mergedClsPrefix:s,namespace:c,hsla:ae,rgba:ie,mergedShow:_,mergedDisabled:p,isMounted:sr(),adjustedTo:Vs(t),mergedValue:x,handleTriggerClick(){p.value||v(!0)},setTriggerRef:a,handleClickOutside(e){if(r instanceof Element){if(r.contains(vt(e)))return}else if(r&&r.$el.contains(vt(e)))return;v(!1)},renderPanel:Ne,cssVars:l?void 0:Ae,themeClass:je?.themeClass,onRender:je?.onRender}},render(){let{mergedClsPrefix:e,onRender:t}=this;return t?.(),L(),W(Zs,null,{default:()=>[(L(),W(Qs,null,{default:()=>{let t=I(this.$attrs,{ref:this.setTriggerRef,value:this.mergedValue,style:this.cssVars,class:this.themeClass});return t.onClick=cl([this.mergedDisabled?void 0:this.handleTriggerClick,this.$attrs.onClick]),It(this.$slots.trigger,Hs(t,[`value`,`onClick`,`ref`]),n=>n||(L(),W(Hce,I(t,{clsPrefix:e,hsla:this.hsla,disabled:this.mergedDisabled}),null,16,[`clsPrefix`,`hsla`,`disabled`])))}},1024)),(L(),W(gc,{placement:this.placement,show:this.mergedShow,containerClass:this.namespace,teleportDisabled:this.adjustedTo===Vs.tdkey,to:this.adjustedTo},{_:1,default:Nt(()=>(L(),W(gn,{name:`fade-in-scale-up-transition`,appear:this.isMounted},{_:1,default:Nt(()=>this.mergedShow?Se(this.renderPanel(),[[tc,this.handleClickOutside,void 0,{capture:!0}]]):null)},8,[`appear`])))},8,[`placement`,`show`,`containerClass`,`teleportDisabled`,`to`]))]},1024)}}),bf=Y({name:`ConfigProvider`,alias:[`App`],props:{abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:`div`},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,styleMountTarget:Object,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(on(`config-provider`,"`as` is deprecated, please use `tag` instead."),!0),default:void 0}},setup(e){let t=pe(Zt,null),n=V(()=>{let{theme:n}=e;if(n===null)return;let r=t?.mergedThemeRef.value;return n===void 0?r:r===void 0?n:Object.assign({},r,n)}),r=V(()=>{let{themeOverrides:n}=e;if(n!==null){if(n===void 0)return t?.mergedThemeOverridesRef.value;{let e=t?.mergedThemeOverridesRef.value;return e===void 0?n:ge({},e,n)}}}),i=dr(()=>{let{namespace:n}=e;return n===void 0?t?.mergedNamespaceRef.value:n}),a=dr(()=>{let{bordered:n}=e;return n===void 0?t?.mergedBorderedRef.value:n}),o=V(()=>{let{icons:n}=e;return n===void 0?t?.mergedIconsRef.value:n}),c=V(()=>{let{componentOptions:n}=e;return n===void 0?t?.mergedComponentPropsRef.value:n}),l=V(()=>{let{clsPrefix:n}=e;return n===void 0?t?t.mergedClsPrefixRef.value:`n`:n}),u=V(()=>{let{rtl:n}=e;if(n===void 0)return t?.mergedRtlRef.value;let r={};for(let e of n)r[e.name]=s(e),e.peers?.forEach(e=>{e.name in r||(r[e.name]=s(e))});return r}),d=V(()=>e.breakpoints||t?.mergedBreakpointsRef.value),f=e.inlineThemeDisabled||t?.inlineThemeDisabled,p=e.preflightStyleDisabled||t?.preflightStyleDisabled,m=e.styleMountTarget||t?.styleMountTarget,h=V(()=>{let{value:e}=n,{value:t}=r,i=t&&Object.keys(t).length!==0,a=e?.name;return a?i?`${a}-${ve(JSON.stringify(r.value))}`:a:i?ve(JSON.stringify(r.value)):``});return Oe(Zt,{mergedThemeHashRef:h,mergedBreakpointsRef:d,mergedRtlRef:u,mergedIconsRef:o,mergedComponentPropsRef:c,mergedBorderedRef:a,mergedNamespaceRef:i,mergedClsPrefixRef:l,mergedLocaleRef:V(()=>{let{locale:n}=e;if(n!==null)return n===void 0?t?.mergedLocaleRef.value:n}),mergedDateLocaleRef:V(()=>{let{dateLocale:n}=e;if(n!==null)return n===void 0?t?.mergedDateLocaleRef.value:n}),mergedHljsRef:V(()=>{let{hljs:n}=e;return n===void 0?t?.mergedHljsRef.value:n}),mergedKatexRef:V(()=>{let{katex:n}=e;return n===void 0?t?.mergedKatexRef.value:n}),mergedThemeRef:n,mergedThemeOverridesRef:r,inlineThemeDisabled:f||!1,preflightStyleDisabled:p||!1,styleMountTarget:m}),{mergedClsPrefix:l,mergedBordered:a,mergedNamespace:i,mergedTheme:n,mergedThemeOverrides:r}},render(){return this.abstract?this.$slots.default?.():Dn(this.as||this.tag,{class:`${this.mergedClsPrefix||`n`}-config-provider`},this.$slots.default?.())}}),xf={name:`Popselect`,common:os,peers:{Popover:_s,InternalSelectMenu:ms}};function Sf(e){return t=>{e.value=t?t.$el:null}}function Cf(e,t=[],n){let r={};return Object.getOwnPropertyNames(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),Object.assign(r,n)}function tle(e){let{boxShadow2:t}=e;return{menuBoxShadow:t}}var wf=En({name:`Popselect`,common:_e,peers:{Popover:gs,InternalSelectMenu:ps},self:tle}),Tf=bn(`n-popselect`),nle=z(`popselect-menu`,`
box-shadow: var(--n-menu-box-shadow);
`),Ef={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:String,scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},Df=jt(Ef),rle=Y({name:`PopselectPanel`,props:Ef,setup(e){let t=pe(Tf),{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedComponentPropsRef:a}=mn(e),o=V(()=>e.size||a?.value?.Popselect?.size||`medium`),s=$e(`Popselect`,`-pop-select`,nle,wf,t.props,n),c=V(()=>Dl(e.options,Ml(`value`,`children`)));function l(t,n){let{onUpdateValue:r,"onUpdate:value":i,onChange:a}=e;r&&R(r,t,n),i&&R(i,t,n),a&&R(a,t,n)}function u(e){f(e.key)}function d(e){ts(e,`action`)||ts(e,`empty`)||ts(e,`header`)||e.preventDefault()}function f(n){let{value:{getNode:r}}=c;if(e.multiple){if(Array.isArray(e.value)){let t=[],i=[],a=!0;e.value.forEach(e=>{if(e===n){a=!1;return}let o=r(e);o&&(t.push(o.key),i.push(o.rawNode))}),a&&(t.push(n),i.push(r(n).rawNode)),l(t,i)}else{let e=r(n);e&&l([n],[e.rawNode])}}else if(e.value===n&&e.cancelable)l(null,null);else{let e=r(n);e&&l(n,e.rawNode);let{"onUpdate:show":i,onUpdateShow:a}=t.props;i&&R(i,!1),a&&R(a,!1),t.setShow(!1)}he(()=>{t.syncPosition()})}Te(i(e,`options`),()=>{he(()=>{t.syncPosition()})});let p=V(()=>{let{self:{menuBoxShadow:e}}=s.value;return{"--n-menu-box-shadow":e}}),m=r?fe(`select`,void 0,p,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:n,treeMate:c,handleToggle:u,handleMenuMousedown:d,cssVars:r?void 0:p,themeClass:m?.themeClass,onRender:m?.onRender,mergedSize:o,scrollbarProps:t.props.scrollbarProps}},render(){return this.onRender?.(),L(),W(Ol,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:P([`${this.mergedClsPrefix}-popselect-menu`,this.themeClass]),style:e(this.cssVars),theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.mergedSize,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,scrollbarProps:this.scrollbarProps,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{_:1,header:Nt(()=>this.$slots.header?.()||[]),action:Nt(()=>this.$slots.action?.()||[]),empty:Nt(()=>this.$slots.empty?.()||[])},8,[`clsPrefix`,`nodeProps`,`class`,`style`,`theme`,`themeOverrides`,`multiple`,`treeMate`,`size`,`value`,`virtualScroll`,`scrollable`,`scrollbarProps`,`renderLabel`,`onToggle`,`onMouseenter`,`onMouseleave`,`onMousedown`,`showCheckmark`])}}),ile={...$e.props,...Cf(Lc,[`showArrow`,`arrow`]),placement:{...Lc.placement,default:`bottom`},trigger:{type:String,default:`hover`},...Ef,scrollbarProps:Object},Of=Y({name:`Popselect`,props:ile,slots:Object,inheritAttrs:!1,__popover__:!0,setup(e){let{mergedClsPrefixRef:t}=mn(e),n=$e(`Popselect`,`-popselect`,void 0,wf,e,t),r=N(null);function i(){r.value?.syncPosition()}function a(e){r.value?.setShow(e)}return Oe(Tf,{props:e,mergedThemeRef:n,syncPosition:i,setShow:a}),{syncPosition:i,setShow:a,popoverInstRef:r,mergedTheme:n}},render(){let{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:`0`},ref:`popoverInstRef`,internalRenderBody:(e,t,n,r,i)=>{let{$attrs:a}=this;return L(),W(rle,I(a,{class:[a.class,e],style:[a.style,...n]},Hs(this.$props,Df),{ref:Sf(t),onMouseenter:cl([r,a.onMouseenter]),onMouseleave:cl([i,a.onMouseleave])}),{header:()=>this.$slots.header?.(),action:()=>this.$slots.action?.(),empty:()=>this.$slots.empty?.()},1040,[`class`,`style`,`onMouseenter`,`onMouseleave`])}};return L(),W(Rc,I(Cf(this.$props,Df),t,{internalDeactivateImmediately:!0}),{_:1,trigger:Nt(()=>this.$slots.default?.())},16)}});function kf(e){let{boxShadow2:t}=e;return{menuBoxShadow:t}}var Af=En({name:`Select`,common:_e,peers:{InternalSelection:Ud,InternalSelectMenu:ps},self:kf}),jf={name:`Select`,common:os,peers:{InternalSelection:Kc,InternalSelectMenu:ms},self:kf},ale=U([z(`select`,`
z-index: auto;
outline: none;
width: 100%;
position: relative;
font-weight: var(--n-font-weight);
`),z(`select-menu`,`
margin: 4px 0;
box-shadow: var(--n-menu-box-shadow);
`,[pl({originalTransition:`background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)`})])]),ole={...$e.props,to:Vs.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearCreatedOptionsOnClear:{type:Boolean,default:!0},clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},keyboard:{type:Boolean,default:!0},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,menuSize:{type:String},filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:`bottom-start`},widthMode:{type:String,default:`trigger`},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],ellipsisTagPopoverProps:Object,consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:`label`},valueField:{type:String,default:`value`},childrenField:{type:String,default:`children`},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:`show`},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},scrollbarProps:Object,onChange:[Function,Array],items:Array},Mf=Y({name:`Select`,props:ole,slots:Object,setup(e){let{mergedClsPrefixRef:t,mergedBorderedRef:n,namespaceRef:r,inlineThemeDisabled:a,mergedComponentPropsRef:o}=mn(e),s=$e(`Select`,`-select`,ale,Af,e,t),c=N(e.defaultValue),l=i(e,`value`),u=lr(l,c),d=N(!1),f=N(``),p=Ls(e,[`items`,`options`]),m=N([]),h=N([]),g=V(()=>h.value.concat(m.value).concat(p.value)),_=V(()=>{let{filter:t}=e;if(t)return t;let{labelField:n,valueField:r}=e;return(e,t)=>{if(!t)return!1;let i=t[n];if(typeof i==`string`)return jl(e,i);let a=t[r];return typeof a==`string`?jl(e,a):typeof a==`number`&&jl(e,String(a))}}),v=V(()=>{if(e.remote)return p.value;{let{value:t}=g,{value:n}=f;return!n.length||!e.filterable?t:Yae(t,_.value,n,e.childrenField)}}),y=V(()=>{let{valueField:t,childrenField:n}=e,r=Ml(t,n);return Dl(v.value,r)}),b=V(()=>Xae(g.value,e.valueField,e.childrenField)),x=N(!1),S=lr(i(e,`show`),x),C=N(null),w=N(null),T=N(null),{localeRef:E}=gr(`Select`),D=V(()=>e.placeholder??E.value.placeholder),O=[],k=N(new Map),A=V(()=>{let{fallbackOption:t}=e;if(t===void 0){let{labelField:t,valueField:n}=e;return e=>({[t]:String(e),[n]:e})}return t===!1?!1:e=>Object.assign(t(e),{value:e})});function j(t){let n=e.remote,{value:r}=k,{value:i}=b,{value:a}=A,o=[];return t.forEach(e=>{if(i.has(e))o.push(i.get(e));else if(n&&r.has(e))o.push(r.get(e));else if(a){let t=a(e);t&&o.push(t)}}),o}let ee=V(()=>{if(e.multiple){let{value:e}=u;return Array.isArray(e)?j(e):[]}return null}),te=V(()=>{let{value:t}=u;return!e.multiple&&!Array.isArray(t)?t===null?null:j([t])[0]||null:null}),M=mr(e,{mergedSize:t=>{let{size:n}=e;if(n)return n;let{mergedSize:r}=t||{};return r?.value?r.value:o?.value?.Select?.size||`medium`}}),{mergedSizeRef:ne,mergedDisabledRef:re,mergedStatusRef:ie}=M;function P(t,n){let{onChange:r,"onUpdate:value":i,onUpdateValue:a}=e,{nTriggerFormChange:o,nTriggerFormInput:s}=M;r&&R(r,t,n),a&&R(a,t,n),i&&R(i,t,n),c.value=t,o(),s()}function ae(t){let{onBlur:n}=e,{nTriggerFormBlur:r}=M;n&&R(n,t),r()}function oe(){let{onClear:t}=e;t&&R(t)}function se(t){let{onFocus:n,showOnFocus:r}=e,{nTriggerFormFocus:i}=M;n&&R(n,t),i(),r&&pe()}function ce(t){let{onSearch:n}=e;n&&R(n,t)}function le(t){let{onScroll:n}=e;n&&R(n,t)}function ue(){let{remote:t,multiple:n}=e;if(t){let{value:t}=k;if(n){let{valueField:n}=e;ee.value?.forEach(e=>{t.set(e[n],e)})}else{let n=te.value;n&&t.set(n[e.valueField],n)}}}function de(t){let{onUpdateShow:n,"onUpdate:show":r}=e;n&&R(n,t),r&&R(r,t),x.value=t}function pe(){re.value||(de(!0),x.value=!0,e.filterable&&Pe())}function me(){de(!1)}function F(){f.value=``,h.value=O}let he=N(!1);function ge(){e.filterable&&(he.value=!0)}function _e(){e.filterable&&(he.value=!1,S.value||F())}function I(){re.value||(S.value?e.filterable?Pe():me():pe())}function ve(e){T.value?.selfRef?.contains(e.relatedTarget)||(d.value=!1,ae(e),me())}function ye(e){se(e),d.value=!0}function L(){d.value=!0}function be(e){C.value?.$el.contains(e.relatedTarget)||(d.value=!1,ae(e),me())}function xe(){C.value?.focus(),me()}function Se(e){S.value&&(C.value?.$el.contains(vt(e))||me())}function Ce(t){if(!Array.isArray(t))return[];if(A.value)return Array.from(t);{let{remote:n}=e,{value:r}=b;if(n){let{value:e}=k;return t.filter(t=>r.has(t)||e.has(t))}return t.filter(e=>r.has(e))}}function we(e){Ee(e.rawNode)}function Ee(t){if(re.value)return;let{tag:n,remote:r,clearFilterAfterSelect:i,valueField:a}=e;if(n&&!r){let{value:e}=h,t=e[0]||null;if(t){let e=m.value;e.length?e.push(t):m.value=[t],h.value=O}}if(r&&k.value.set(t[a],t),e.multiple){let e=Ce(u.value),o=e.findIndex(e=>e===t[a]);if(~o){if(e.splice(o,1),n&&!r){let e=De(t[a]);~e&&(m.value.splice(e,1),i&&(f.value=``))}}else e.push(t[a]),i&&(f.value=``);P(e,j(e))}else{if(n&&!r){let e=De(t[a]);~e?m.value=[m.value[e]]:m.value=O}Ne(),me(),P(t[a],t)}}function De(t){return m.value.findIndex(n=>n[e.valueField]===t)}function Oe(t){S.value||pe();let{value:n}=t.target;f.value=n;let{tag:r,remote:i}=e;if(ce(n),r&&!i){if(!n){h.value=O;return}let{onCreate:t}=e,r=t?t(n):{[e.labelField]:n,[e.valueField]:n},{valueField:i,labelField:a}=e;p.value.some(e=>e[i]===r[i]||e[a]===r[a])||m.value.some(e=>e[i]===r[i]||e[a]===r[a])?h.value=O:h.value=[r]}}function ke(t){t.stopPropagation();let{multiple:n,tag:r,remote:i,clearCreatedOptionsOnClear:a}=e;!n&&e.filterable&&me(),r&&!i&&a&&(m.value=O),oe(),n?P([],[]):P(null,null)}function Ae(e){ts(e,`action`)||ts(e,`empty`)||ts(e,`header`)||e.preventDefault()}function je(e){le(e)}function Me(t){if(!e.keyboard)t.preventDefault();else switch(t.key){case` `:if(e.filterable)break;t.preventDefault();case`Enter`:if(!C.value?.isComposing){if(S.value){let t=T.value?.getPendingTmNode();t?we(t):e.filterable||(me(),Ne())}else if(pe(),e.tag&&he.value){let t=h.value[0];if(t){let n=t[e.valueField],{value:r}=u;e.multiple&&Array.isArray(r)&&r.includes(n)||Ee(t)}}}t.preventDefault();break;case`ArrowUp`:if(t.preventDefault(),e.loading)return;S.value&&T.value?.prev();break;case`ArrowDown`:if(t.preventDefault(),e.loading)return;S.value?T.value?.next():pe();break;case`Escape`:S.value&&(Yd(t),me()),C.value?.focus()}}function Ne(){C.value?.focus()}function Pe(){C.value?.focusInput()}function Fe(){S.value&&w.value?.syncPosition()}ue(),Te(i(e,`options`),ue);let Ie={focus:()=>{C.value?.focus()},focusInput:()=>{C.value?.focusInput()},blur:()=>{C.value?.blur()},blurInput:()=>{C.value?.blurInput()}},Le=V(()=>{let{self:{menuBoxShadow:e}}=s.value;return{"--n-menu-box-shadow":e}}),Re=a?fe(`select`,void 0,Le,e):void 0;return{...Ie,mergedStatus:ie,mergedClsPrefix:t,mergedBordered:n,namespace:r,treeMate:y,isMounted:sr(),triggerRef:C,menuRef:T,pattern:f,uncontrolledShow:x,mergedShow:S,adjustedTo:Vs(e),uncontrolledValue:c,mergedValue:u,followerRef:w,localizedPlaceholder:D,selectedOption:te,selectedOptions:ee,mergedSize:ne,mergedDisabled:re,focused:d,activeWithoutMenuOpen:he,inlineThemeDisabled:a,onTriggerInputFocus:ge,onTriggerInputBlur:_e,handleTriggerOrMenuResize:Fe,handleMenuFocus:L,handleMenuBlur:be,handleMenuTabOut:xe,handleTriggerClick:I,handleToggle:we,handleDeleteOption:Ee,handlePatternInput:Oe,handleClear:ke,handleTriggerBlur:ve,handleTriggerFocus:ye,handleKeydown:Me,handleMenuAfterLeave:F,handleMenuClickOutside:Se,handleMenuScroll:je,handleMenuKeydown:Me,handleMenuMousedown:Ae,mergedTheme:s,cssVars:a?void 0:Le,themeClass:Re?.themeClass,onRender:Re?.onRender}},render(){return L(),H(`div`,{class:P(`${this.mergedClsPrefix}-select`)},[J(Zs,null,{_:1,default:Nt(()=>[(L(),W(Qs,null,{_:1,default:Nt(()=>(L(),W(Zd,{ref:`triggerRef`,inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,ellipsisTagPopoverProps:this.ellipsisTagPopoverProps,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{_:1,arrow:Nt(()=>[this.$slots.arrow?.()])},8,`inlineThemeDisabled.status.inputProps.clsPrefix.showArrow.maxTagCount.ellipsisTagPopoverProps.bordered.active.pattern.placeholder.selectedOption.selectedOptions.multiple.renderTag.renderLabel.filterable.clearable.disabled.size.theme.labelField.valueField.themeOverrides.loading.focused.onClick.onDeleteOption.onPatternInput.onClear.onBlur.onFocus.onKeydown.onPatternBlur.onPatternFocus.onResize.ignoreComposition`.split(`.`))))})),(L(),W(gc,{ref:`followerRef`,show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Vs.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?`target`:void 0,minWidth:`target`,placement:this.placement},{_:1,default:Nt(()=>(L(),W(gn,{name:`fade-in-scale-up-transition`,appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{_:1,default:Nt(()=>this.mergedShow||this.displayDirective===`show`?(this.onRender?.(),Se((L(),W(Ol,I(this.menuProps,{ref:`menuRef`,onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,this.menuProps?.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:this.menuSize,renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[this.menuProps?.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange,scrollbarProps:this.scrollbarProps}),{_:1,empty:Nt(()=>[this.$slots.empty?.()]),header:Nt(()=>[this.$slots.header?.()]),action:Nt(()=>[this.$slots.action?.()])},16,`onResize.inlineThemeDisabled.virtualScroll.class.clsPrefix.labelField.valueField.nodeProps.theme.themeOverrides.treeMate.multiple.size.renderOption.renderLabel.value.style.onToggle.onScroll.onFocus.onBlur.onKeydown.onTabOut.onMousedown.show.showCheckmark.resetMenuOnOptionsChange.scrollbarProps`.split(`.`))),this.displayDirective===`show`?[[Vt,this.mergedShow],[tc,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[tc,this.handleMenuClickOutside,void 0,{capture:!0}]])):null)},8,[`appear`,`onAfterLeave`])))},8,[`show`,`to`,`teleportDisabled`,`containerClass`,`width`,`placement`]))])})],2)}}),sle={itemPaddingSmall:`0 4px`,itemMarginSmall:`0 0 0 8px`,itemMarginSmallRtl:`0 8px 0 0`,itemPaddingMedium:`0 4px`,itemMarginMedium:`0 0 0 8px`,itemMarginMediumRtl:`0 8px 0 0`,itemPaddingLarge:`0 4px`,itemMarginLarge:`0 0 0 8px`,itemMarginLargeRtl:`0 8px 0 0`,buttonIconSizeSmall:`14px`,buttonIconSizeMedium:`16px`,buttonIconSizeLarge:`18px`,inputWidthSmall:`60px`,selectWidthSmall:`unset`,inputMarginSmall:`0 0 0 8px`,inputMarginSmallRtl:`0 8px 0 0`,selectMarginSmall:`0 0 0 8px`,prefixMarginSmall:`0 8px 0 0`,suffixMarginSmall:`0 0 0 8px`,inputWidthMedium:`60px`,selectWidthMedium:`unset`,inputMarginMedium:`0 0 0 8px`,inputMarginMediumRtl:`0 8px 0 0`,selectMarginMedium:`0 0 0 8px`,prefixMarginMedium:`0 8px 0 0`,suffixMarginMedium:`0 0 0 8px`,inputWidthLarge:`60px`,selectWidthLarge:`unset`,inputMarginLarge:`0 0 0 8px`,inputMarginLargeRtl:`0 8px 0 0`,selectMarginLarge:`0 0 0 8px`,prefixMarginLarge:`0 8px 0 0`,suffixMarginLarge:`0 0 0 8px`};function Nf(e){let{textColor2:t,primaryColor:n,primaryColorHover:r,primaryColorPressed:i,inputColorDisabled:a,textColorDisabled:o,borderColor:s,borderRadius:c,fontSizeTiny:l,fontSizeSmall:u,fontSizeMedium:d,heightTiny:f,heightSmall:p,heightMedium:m}=e;return{...sle,buttonColor:`#0000`,buttonColorHover:`#0000`,buttonColorPressed:`#0000`,buttonBorder:`1px solid ${s}`,buttonBorderHover:`1px solid ${s}`,buttonBorderPressed:`1px solid ${s}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:r,itemTextColorPressed:i,itemTextColorActive:n,itemTextColorDisabled:o,itemColor:`#0000`,itemColorHover:`#0000`,itemColorPressed:`#0000`,itemColorActive:`#0000`,itemColorActiveHover:`#0000`,itemColorDisabled:a,itemBorder:`1px solid #0000`,itemBorderHover:`1px solid #0000`,itemBorderPressed:`1px solid #0000`,itemBorderActive:`1px solid ${n}`,itemBorderDisabled:`1px solid ${s}`,itemBorderRadius:c,itemSizeSmall:f,itemSizeMedium:p,itemSizeLarge:m,itemFontSizeSmall:l,itemFontSizeMedium:u,itemFontSizeLarge:d,jumperFontSizeSmall:l,jumperFontSizeMedium:u,jumperFontSizeLarge:d,jumperTextColor:t,jumperTextColorDisabled:o}}var Pf=En({name:`Pagination`,common:_e,peers:{Select:Af,Input:Sr,Popselect:wf},self:Nf}),Ff={name:`Pagination`,common:os,peers:{Select:jf,Input:tl,Popselect:xf},self(e){let{primaryColor:t,opacity3:n}=e,r=F(t,{alpha:Number(n)}),i=Nf(e);return i.itemBorderActive=`1px solid ${r}`,i.itemBorderDisabled=`1px solid #0000`,i}},cle={tiny:`mini`,small:`tiny`,medium:`small`,large:`medium`,huge:`large`};function If(e){let t=cle[e];if(t===void 0)throw Error(`${e} has no smaller size.`);return t}var Lf=Y({name:`Backward`,render(){return(()=>{let e=Ye(`20cdf29399dd0749`);return e[0]||=q(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},[q(`path`,{d:`M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z`,fill:`currentColor`})],-1)})()}}),Rf=Y({name:`FastBackward`,render(){return(()=>{let e=Ye(`9d0d04cc580afefa`);return e[0]||=q(`svg`,{viewBox:`0 0 20 20`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},[q(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},[q(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},[q(`path`,{d:`M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z`})])])],-1)})()}}),zf=Y({name:`FastForward`,render(){return(()=>{let e=Ye(`c2e477dd1211740a`);return e[0]||=q(`svg`,{viewBox:`0 0 20 20`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},[q(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},[q(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},[q(`path`,{d:`M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z`})])])],-1)})()}}),Bf=Y({name:`Forward`,render(){return(()=>{let e=Ye(`6fb2c33c1e576c93`);return e[0]||=q(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},[q(`path`,{d:`M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z`,fill:`currentColor`})],-1)})()}}),Vf=Y({name:`More`,render(){return(()=>{let e=Ye(`e4a3e3d3803c676d`);return e[0]||=q(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},[q(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},[q(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},[q(`path`,{d:`M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z`})])])],-1)})()}}),Hf=`
background: var(--n-item-color-hover);
color: var(--n-item-text-color-hover);
border: var(--n-item-border-hover);
`,Uf=[B(`button`,`
background: var(--n-button-color-hover);
border: var(--n-button-border-hover);
color: var(--n-button-icon-color-hover);
`)],lle=z(`pagination`,`
display: flex;
vertical-align: middle;
font-size: var(--n-item-font-size);
flex-wrap: nowrap;
`,[z(`pagination-prefix`,`
display: flex;
align-items: center;
margin: var(--n-prefix-margin);
`),z(`pagination-suffix`,`
display: flex;
align-items: center;
margin: var(--n-suffix-margin);
`),U(`> *:not(:first-child)`,`
margin: var(--n-item-margin);
`),z(`select`,`
width: var(--n-select-width);
`),U(`&.transition-disabled`,[z(`pagination-item`,`transition: none!important;`)]),z(`pagination-quick-jumper`,`
white-space: nowrap;
display: flex;
color: var(--n-jumper-text-color);
transition: color .3s var(--n-bezier);
align-items: center;
font-size: var(--n-jumper-font-size);
`,[z(`input`,`
margin: var(--n-input-margin);
width: var(--n-input-width);
`)]),z(`pagination-item`,`
position: relative;
cursor: pointer;
user-select: none;
-webkit-user-select: none;
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
min-width: var(--n-item-size);
height: var(--n-item-size);
padding: var(--n-item-padding);
background-color: var(--n-item-color);
color: var(--n-item-text-color);
border-radius: var(--n-item-border-radius);
border: var(--n-item-border);
fill: var(--n-button-icon-color);
transition:
color .3s var(--n-bezier),
border-color .3s var(--n-bezier),
background-color .3s var(--n-bezier),
fill .3s var(--n-bezier);
`,[B(`button`,`
background: var(--n-button-color);
color: var(--n-button-icon-color);
border: var(--n-button-border);
padding: 0;
`,[z(`base-icon`,`
font-size: var(--n-button-icon-size);
`)]),On(`disabled`,[B(`hover`,Hf,Uf),U(`&:hover`,Hf,Uf),U(`&:active`,`
background: var(--n-item-color-pressed);
color: var(--n-item-text-color-pressed);
border: var(--n-item-border-pressed);
`,[B(`button`,`
background: var(--n-button-color-pressed);
border: var(--n-button-border-pressed);
color: var(--n-button-icon-color-pressed);
`)]),B(`active`,`
background: var(--n-item-color-active);
color: var(--n-item-text-color-active);
border: var(--n-item-border-active);
`,[U(`&:hover`,`
background: var(--n-item-color-active-hover);
`)])]),B(`disabled`,`
cursor: not-allowed;
color: var(--n-item-text-color-disabled);
`,[B(`active, button`,`
background-color: var(--n-item-color-disabled);
border: var(--n-item-border-disabled);
`)])]),B(`disabled`,`
cursor: not-allowed;
`,[z(`pagination-quick-jumper`,`
color: var(--n-jumper-text-color-disabled);
`)]),B(`simple`,`
display: flex;
align-items: center;
flex-wrap: nowrap;
`,[z(`pagination-quick-jumper`,[z(`input`,`
margin: 0;
`)])])]);function Wf(e){if(!e)return 10;let{defaultPageSize:t}=e;if(t!==void 0)return t;let n=e.pageSizes?.[0];return typeof n==`number`?n:n?.value||10}function ule(e,t,n,r){let i=!1,a=!1,o=1,s=t;if(t===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:s,fastBackwardTo:o,items:[{type:`page`,label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(t===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:s,fastBackwardTo:o,items:[{type:`page`,label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:`page`,label:2,active:e===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};let c=t,l=e,u=e,d=(n-5)/2;u+=Math.ceil(d),u=Math.min(Math.max(u,1+n-3),c-2),l-=Math.floor(d),l=Math.max(Math.min(l,c-n+3),3);let f=!1,p=!1;l>3&&(f=!0),u<c-2&&(p=!0);let m=[];m.push({type:`page`,label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}),f?(i=!0,o=l-1,m.push({type:`fast-backward`,active:!1,label:void 0,options:r?Gf(2,l-1):null})):c>=2&&m.push({type:`page`,label:2,mayBeFastBackward:!0,mayBeFastForward:!1,active:e===2});for(let t=l;t<=u;++t)m.push({type:`page`,label:t,mayBeFastBackward:!1,mayBeFastForward:!1,active:e===t});return p?(a=!0,s=u+1,m.push({type:`fast-forward`,active:!1,label:void 0,options:r?Gf(u+1,c-1):null})):u===c-2&&m[m.length-1].label!==c-1&&m.push({type:`page`,mayBeFastForward:!0,mayBeFastBackward:!1,label:c-1,active:e===c-1}),m[m.length-1].label!==c&&m.push({type:`page`,mayBeFastForward:!1,mayBeFastBackward:!1,label:c,active:e===c}),{hasFastBackward:i,hasFastForward:a,fastBackwardTo:o,fastForwardTo:s,items:m}}function Gf(e,t){let n=[];for(let r=e;r<=t;++r)n.push({label:`${r}`,value:r});return n}var dle=[`onClick`,`onMouseenter`,`onMouseleave`],fle=[`onClick`],ple=[`onClick`],mle={...$e.props,simple:Boolean,page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:Number,pageSizes:{type:Array,default(){return[10]}},showQuickJumper:Boolean,size:String,disabled:Boolean,pageSlot:{type:Number,default:9},selectProps:Object,prev:Function,next:Function,goto:Function,prefix:Function,suffix:Function,label:Function,displayOrder:{type:Array,default:[`pages`,`size-picker`,`quick-jumper`]},to:Vs.propTo,showQuickJumpDropdown:{type:Boolean,default:!0},scrollbarProps:Object,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]},Kf=Y({name:`Pagination`,props:mle,slots:Object,setup(e){let{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:a}=mn(e),o=V(()=>e.size||t?.value?.Pagination?.size||`medium`),s=$e(`Pagination`,`-pagination`,lle,Pf,e,n),{localeRef:c}=gr(`Pagination`),l=N(null),u=N(e.defaultPage),d=N(Wf(e)),f=lr(i(e,`page`),u),p=lr(i(e,`pageSize`),d),m=V(()=>{let{itemCount:t}=e;if(t!==void 0)return Math.max(1,Math.ceil(t/p.value));let{pageCount:n}=e;return n===void 0?1:Math.max(n,1)}),h=N(``);ot(()=>{e.simple,h.value=String(f.value)});let g=N(!1),_=N(!1),v=N(!1),y=N(!1),b=()=>{e.disabled||(g.value=!0,te())},x=()=>{e.disabled||(g.value=!1,te())},S=()=>{_.value=!0,te()},C=()=>{_.value=!1,te()},w=e=>{M(e)},T=V(()=>ule(f.value,m.value,e.pageSlot,e.showQuickJumpDropdown));ot(()=>{T.value.hasFastBackward?T.value.hasFastForward||(g.value=!1,v.value=!1):(_.value=!1,y.value=!1)});let E=V(()=>{let t=c.value.selectionSuffix;return e.pageSizes.map(e=>typeof e==`number`?{label:`${e} / ${t}`,value:e}:e)}),D=V(()=>t?.value?.Pagination?.inputSize||If(o.value)),O=V(()=>t?.value?.Pagination?.selectSize||If(o.value)),k=V(()=>(f.value-1)*p.value),A=V(()=>{let t=f.value*p.value-1,{itemCount:n}=e;return n===void 0?t:t>n-1?n-1:t}),j=V(()=>{let{itemCount:t}=e;return t===void 0?(e.pageCount||1)*p.value:t}),ee=vn(`Pagination`,a,n);function te(){he(()=>{let{value:e}=l;e&&(e.classList.add(`transition-disabled`),l.value?.offsetWidth,e.classList.remove(`transition-disabled`))})}function M(t){if(t===f.value)return;let{"onUpdate:page":n,onUpdatePage:r,onChange:i,simple:a}=e;n&&R(n,t),r&&R(r,t),i&&R(i,t),u.value=t,a&&(h.value=String(t))}function ne(t){if(t===p.value)return;let{"onUpdate:pageSize":n,onUpdatePageSize:r,onPageSizeChange:i}=e;n&&R(n,t),r&&R(r,t),i&&R(i,t),d.value=t,m.value<f.value&&M(m.value)}function re(){e.disabled||M(Math.min(f.value+1,m.value))}function ie(){e.disabled||M(Math.max(f.value-1,1))}function P(){e.disabled||M(Math.min(T.value.fastForwardTo,m.value))}function ae(){e.disabled||M(Math.max(T.value.fastBackwardTo,1))}function oe(e){ne(e)}function se(){let t=Number.parseInt(h.value);Number.isNaN(t)||(M(Math.max(1,Math.min(t,m.value))),e.simple||(h.value=``))}function ce(){se()}function le(t){if(!e.disabled)switch(t.type){case`page`:M(t.label);break;case`fast-backward`:ae();break;case`fast-forward`:P()}}function ue(e){h.value=e.replace(/\D+/g,``)}ot(()=>{f.value,p.value,te()});let de=V(()=>{let e=o.value,{self:{buttonBorder:t,buttonBorderHover:n,buttonBorderPressed:r,buttonIconColor:i,buttonIconColorHover:a,buttonIconColorPressed:c,itemTextColor:l,itemTextColorHover:u,itemTextColorPressed:d,itemTextColorActive:f,itemTextColorDisabled:p,itemColor:m,itemColorHover:h,itemColorPressed:g,itemColorActive:_,itemColorActiveHover:v,itemColorDisabled:y,itemBorder:b,itemBorderHover:x,itemBorderPressed:S,itemBorderActive:C,itemBorderDisabled:w,itemBorderRadius:T,jumperTextColor:E,jumperTextColorDisabled:D,buttonColor:O,buttonColorHover:k,buttonColorPressed:A,[tt(`itemPadding`,e)]:j,[tt(`itemMargin`,e)]:ee,[tt(`inputWidth`,e)]:te,[tt(`selectWidth`,e)]:M,[tt(`inputMargin`,e)]:ne,[tt(`selectMargin`,e)]:re,[tt(`jumperFontSize`,e)]:ie,[tt(`prefixMargin`,e)]:N,[tt(`suffixMargin`,e)]:P,[tt(`itemSize`,e)]:ae,[tt(`buttonIconSize`,e)]:oe,[tt(`itemFontSize`,e)]:se,[`${tt(`itemMargin`,e)}Rtl`]:ce,[`${tt(`inputMargin`,e)}Rtl`]:le},common:{cubicBezierEaseInOut:ue}}=s.value;return{"--n-prefix-margin":N,"--n-suffix-margin":P,"--n-item-font-size":se,"--n-select-width":M,"--n-select-margin":re,"--n-input-width":te,"--n-input-margin":ne,"--n-input-margin-rtl":le,"--n-item-size":ae,"--n-item-text-color":l,"--n-item-text-color-disabled":p,"--n-item-text-color-hover":u,"--n-item-text-color-active":f,"--n-item-text-color-pressed":d,"--n-item-color":m,"--n-item-color-hover":h,"--n-item-color-disabled":y,"--n-item-color-active":_,"--n-item-color-active-hover":v,"--n-item-color-pressed":g,"--n-item-border":b,"--n-item-border-hover":x,"--n-item-border-disabled":w,"--n-item-border-active":C,"--n-item-border-pressed":S,"--n-item-padding":j,"--n-item-border-radius":T,"--n-bezier":ue,"--n-jumper-font-size":ie,"--n-jumper-text-color":E,"--n-jumper-text-color-disabled":D,"--n-item-margin":ee,"--n-item-margin-rtl":ce,"--n-button-icon-size":oe,"--n-button-icon-color":i,"--n-button-icon-color-hover":a,"--n-button-icon-color-pressed":c,"--n-button-color-hover":k,"--n-button-color":O,"--n-button-color-pressed":A,"--n-button-border":t,"--n-button-border-hover":n,"--n-button-border-pressed":r}}),pe=r?fe(`pagination`,V(()=>{let e=``;return e+=o.value[0],e}),de,e):void 0;return{rtlEnabled:ee,mergedClsPrefix:n,locale:c,selfRef:l,mergedPage:f,pageItems:V(()=>T.value.items),mergedItemCount:j,jumperValue:h,pageSizeOptions:E,mergedPageSize:p,inputSize:D,selectSize:O,mergedTheme:s,mergedPageCount:m,startIndex:k,endIndex:A,showFastForwardMenu:v,showFastBackwardMenu:y,fastForwardActive:g,fastBackwardActive:_,handleMenuSelect:w,handleFastForwardMouseenter:b,handleFastForwardMouseleave:x,handleFastBackwardMouseenter:S,handleFastBackwardMouseleave:C,handleJumperInput:ue,handleBackwardClick:ie,handleForwardClick:re,handlePageItemClick:le,handleSizePickerChange:oe,handleQuickJumperChange:ce,cssVars:r?void 0:de,themeClass:pe?.themeClass,onRender:pe?.onRender}},render(){let{$slots:t,mergedClsPrefix:n,disabled:r,cssVars:i,mergedPage:a,mergedPageCount:o,pageItems:s,showSizePicker:c,showQuickJumper:l,mergedTheme:u,locale:d,inputSize:f,selectSize:p,mergedPageSize:m,pageSizeOptions:h,jumperValue:g,simple:_,prev:v,next:y,prefix:b,suffix:x,label:S,goto:C,handleJumperInput:w,handleSizePickerChange:T,handleBackwardClick:E,handlePageItemClick:D,handleForwardClick:O,handleQuickJumperChange:k,onRender:A}=this;A?.();let j=b||t.prefix,ee=x||t.suffix,te=v||t.prev,M=y||t.next,ne=S||t.label;return L(),H(`div`,{ref:`selfRef`,class:P([`${n}-pagination`,this.themeClass,this.rtlEnabled&&`${n}-pagination--rtl`,r&&`${n}-pagination--disabled`,_&&`${n}-pagination--simple`]),style:e(i)},[j?(L(),H(`div`,{key:0,class:P(`${n}-pagination-prefix`)},[G(()=>j({page:a,pageSize:m,pageCount:o,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}))],2)):G(()=>null),G(()=>this.displayOrder.map(e=>{switch(e){case`pages`:return(()=>{let e=Ye(`9d36e2972681a71c`);return L(),H(K,{key:`pages`},[q(`div`,{class:P([`${n}-pagination-item`,!te&&`${n}-pagination-item--button`,(a<=1||a>o||r)&&`${n}-pagination-item--disabled`]),onClick:E},[te?(L(),H(K,{key:0},[G(()=>te({page:a,pageSize:m,pageCount:o,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}))],64)):(L(),W(wt,{key:1,clsPrefix:n},{default:()=>this.rtlEnabled?(L(),W(Bf,{key:2})):(L(),W(Lf,{key:3}))},1032,[`clsPrefix`]))],10,fle),_?(L(),H(K,{key:0},[q(`div`,{class:P(`${n}-pagination-quick-jumper`)},[(L(),W(Fr,{value:g,onUpdateValue:w,size:f,placeholder:``,disabled:r,theme:u.peers.Input,themeOverrides:u.peerOverrides.Input,onChange:k},null,8,[`value`,`onUpdateValue`,`size`,`disabled`,`theme`,`themeOverrides`,`onChange`]))],2),e[0]||=G(`\xA0/`,-1),e[1]||=G(` `,-1),G(()=>o)],64)):(L(),H(K,{key:1},[G(()=>s.map(e=>{let t,i,a,{type:o}=e,s=o===`page`?`page-${e.label}`:o;switch(o){case`page`:let r=e.label;t=ne?ne({type:`page`,node:r,active:e.active}):r;break;case`fast-forward`:let o=this.fastForwardActive?(L(),W(wt,{key:6,clsPrefix:n},{default:()=>this.rtlEnabled?(L(),W(Rf,{key:7})):(L(),W(zf,{key:8}))},1032,[`clsPrefix`])):(L(),W(wt,{key:9,clsPrefix:n},{default:()=>(L(),W(Vf))},1032,[`clsPrefix`]));t=ne?ne({type:`fast-forward`,node:o,active:this.fastForwardActive||this.showFastForwardMenu}):o,i=this.handleFastForwardMouseenter,a=this.handleFastForwardMouseleave;break;case`fast-backward`:let s=this.fastBackwardActive?(L(),W(wt,{key:10,clsPrefix:n},{default:()=>this.rtlEnabled?(L(),W(zf,{key:11})):(L(),W(Rf,{key:12}))},1032,[`clsPrefix`])):(L(),W(wt,{key:13,clsPrefix:n},{default:()=>(L(),W(Vf))},1032,[`clsPrefix`]));t=ne?ne({type:`fast-backward`,node:s,active:this.fastBackwardActive||this.showFastBackwardMenu}):s,i=this.handleFastBackwardMouseenter,a=this.handleFastBackwardMouseleave}let c=(L(),H(`div`,{key:s,class:P([`${n}-pagination-item`,e.active&&`${n}-pagination-item--active`,o!==`page`&&(o===`fast-backward`&&this.showFastBackwardMenu||o===`fast-forward`&&this.showFastForwardMenu)&&`${n}-pagination-item--hover`,r&&`${n}-pagination-item--disabled`,o===`page`&&`${n}-pagination-item--clickable`]),onClick:()=>{D(e)},onMouseenter:i,onMouseleave:a},[G(()=>t)],42,dle));return o===`page`||!e.options?c:(L(),W(Of,{to:this.to,key:s,disabled:r,trigger:`hover`,virtualScroll:!0,style:{width:`60px`},theme:u.peers.Popselect,themeOverrides:u.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:`calc(var(--n-option-height) * 4.6)`}}},nodeProps:()=>({style:{justifyContent:`center`}}),show:o===`fast-backward`?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:e=>{e?o===`fast-backward`?this.showFastBackwardMenu=e:this.showFastForwardMenu=e:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1)},options:e.options,onUpdateValue:this.handleMenuSelect,scrollable:!0,scrollbarProps:this.scrollbarProps,showCheckmark:!1},{default:()=>c},1032,[`to`,`disabled`,`theme`,`themeOverrides`,`show`,`onUpdateShow`,`options`,`onUpdateValue`,`scrollbarProps`]))}))],64)),q(`div`,{class:P([`${n}-pagination-item`,!M&&`${n}-pagination-item--button`,{[`${n}-pagination-item--disabled`]:a<1||a>=o||r}]),onClick:O},[M?(L(),H(K,{key:0},[G(()=>M({page:a,pageSize:m,pageCount:o,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}))],64)):(L(),W(wt,{key:1,clsPrefix:n},{default:()=>this.rtlEnabled?(L(),W(Lf,{key:4})):(L(),W(Bf,{key:5}))},1032,[`clsPrefix`]))],10,ple)],64)})();case`size-picker`:return!_&&c?(L(),W(Mf,I({key:14,consistentMenuWidth:!1,placeholder:``,showCheckmark:!1,to:this.to},this.selectProps,{size:p,options:h,value:m,disabled:r,scrollbarProps:this.scrollbarProps,theme:u.peers.Select,themeOverrides:u.peerOverrides.Select,onUpdateValue:T}),null,16,[`to`,`size`,`options`,`value`,`disabled`,`scrollbarProps`,`theme`,`themeOverrides`,`onUpdateValue`])):null;case`quick-jumper`:return!_&&l?(L(),H(`div`,{key:15,class:P(`${n}-pagination-quick-jumper`)},[C?(L(),H(K,{key:0},[G(()=>C())],64)):(L(),H(K,{key:1},[G(()=>an(this.$slots.goto,()=>[d.goto]))],64)),(L(),W(Fr,{value:g,onUpdateValue:w,size:f,placeholder:``,disabled:r,theme:u.peers.Input,themeOverrides:u.peerOverrides.Input,onChange:k},null,8,[`value`,`onUpdateValue`,`size`,`disabled`,`theme`,`themeOverrides`,`onChange`]))],2)):null;default:return null}})),ee?(L(),H(`div`,{key:2,class:P(`${n}-pagination-suffix`)},[G(()=>ee({page:a,pageSize:m,pageCount:o,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}))],2)):G(()=>null)],6)}}),hle={padding:`4px 0`,optionIconSizeSmall:`14px`,optionIconSizeMedium:`16px`,optionIconSizeLarge:`16px`,optionIconSizeHuge:`18px`,optionSuffixWidthSmall:`14px`,optionSuffixWidthMedium:`14px`,optionSuffixWidthLarge:`16px`,optionSuffixWidthHuge:`16px`,optionIconSuffixWidthSmall:`32px`,optionIconSuffixWidthMedium:`32px`,optionIconSuffixWidthLarge:`36px`,optionIconSuffixWidthHuge:`36px`,optionPrefixWidthSmall:`14px`,optionPrefixWidthMedium:`14px`,optionPrefixWidthLarge:`16px`,optionPrefixWidthHuge:`16px`,optionIconPrefixWidthSmall:`36px`,optionIconPrefixWidthMedium:`36px`,optionIconPrefixWidthLarge:`40px`,optionIconPrefixWidthHuge:`40px`};function qf(e){let{primaryColor:t,textColor2:n,dividerColor:r,hoverColor:i,popoverColor:a,invertedColor:o,borderRadius:s,fontSizeSmall:c,fontSizeMedium:l,fontSizeLarge:u,fontSizeHuge:d,heightSmall:f,heightMedium:p,heightLarge:m,heightHuge:h,textColor3:g,opacityDisabled:_}=e;return{...hle,optionHeightSmall:f,optionHeightMedium:p,optionHeightLarge:m,optionHeightHuge:h,borderRadius:s,fontSizeSmall:c,fontSizeMedium:l,fontSizeLarge:u,fontSizeHuge:d,optionTextColor:n,optionTextColorHover:n,optionTextColorActive:t,optionTextColorChildActive:t,color:a,dividerColor:r,suffixColor:n,prefixColor:n,optionColorHover:i,optionColorActive:F(t,{alpha:.1}),groupHeaderTextColor:g,optionTextColorInverted:`#BBB`,optionTextColorHoverInverted:`#FFF`,optionTextColorActiveInverted:`#FFF`,optionTextColorChildActiveInverted:`#FFF`,colorInverted:o,dividerColorInverted:`#BBB`,suffixColorInverted:`#BBB`,prefixColorInverted:`#BBB`,optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:`#AAA`,optionOpacityDisabled:_}}var Jf=En({name:`Dropdown`,common:_e,peers:{Popover:gs},self:qf}),Yf={name:`Dropdown`,common:os,peers:{Popover:_s},self(e){let{primaryColorSuppl:t,primaryColor:n,popoverColor:r}=e,i=qf(e);return i.colorInverted=r,i.optionColorActive=F(n,{alpha:.15}),i.optionColorActiveInverted=t,i.optionColorHoverInverted=t,i}},Xf={padding:`8px 14px`},Zf={name:`Tooltip`,common:os,peers:{Popover:_s},self(e){let{borderRadius:t,boxShadow2:n,popoverColor:r,textColor2:i}=e;return{...Xf,borderRadius:t,boxShadow:n,color:r,textColor:i}}},Qf={radioSizeSmall:`14px`,radioSizeMedium:`16px`,radioSizeLarge:`18px`,labelPadding:`0 8px`,labelFontWeight:`400`},$f={name:`Radio`,common:os,self(e){let{borderColor:t,primaryColor:n,baseColor:r,textColorDisabled:i,inputColorDisabled:a,textColor2:o,opacityDisabled:s,borderRadius:c,fontSizeSmall:l,fontSizeMedium:u,fontSizeLarge:d,heightSmall:f,heightMedium:p,heightLarge:m,lineHeight:h}=e;return{...Qf,labelLineHeight:h,buttonHeightSmall:f,buttonHeightMedium:p,buttonHeightLarge:m,fontSizeSmall:l,fontSizeMedium:u,fontSizeLarge:d,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${F(n,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:`#0000`,colorDisabled:a,colorActive:`#0000`,textColor:o,textColorDisabled:i,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:n,buttonColor:`#0000`,buttonColorActive:n,buttonTextColor:o,buttonTextColorActive:r,buttonTextColorHover:n,opacityDisabled:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${F(n,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${n}`,buttonBoxShadow:`inset 0 0 0 1px #0000`,buttonBorderRadius:c}}},ep={name:`Ellipsis`,common:os,peers:{Tooltip:Zf}};function gle(e){let{borderRadius:t,boxShadow2:n,baseColor:r}=e;return{...Xf,borderRadius:t,boxShadow:n,color:Ue(r,`rgba(0, 0, 0, .85)`),textColor:r}}var tp=En({name:`Tooltip`,common:_e,peers:{Popover:gs},self:gle}),np=En({name:`Ellipsis`,common:_e,peers:{Tooltip:tp}});function _le(e){let{borderColor:t,primaryColor:n,baseColor:r,textColorDisabled:i,inputColorDisabled:a,textColor2:o,opacityDisabled:s,borderRadius:c,fontSizeSmall:l,fontSizeMedium:u,fontSizeLarge:d,heightSmall:f,heightMedium:p,heightLarge:m,lineHeight:h}=e;return{...Qf,labelLineHeight:h,buttonHeightSmall:f,buttonHeightMedium:p,buttonHeightLarge:m,fontSizeSmall:l,fontSizeMedium:u,fontSizeLarge:d,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${F(n,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:r,colorDisabled:a,colorActive:`#0000`,textColor:o,textColorDisabled:i,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:t,buttonColor:r,buttonColorActive:r,buttonTextColor:o,buttonTextColorActive:n,buttonTextColorHover:n,opacityDisabled:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${F(n,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px #0000`,buttonBoxShadow:`inset 0 0 0 1px #0000`,buttonBorderRadius:c}}var rp={name:`Radio`,common:_e,self:_le},vle={thPaddingSmall:`8px`,thPaddingMedium:`12px`,thPaddingLarge:`12px`,tdPaddingSmall:`8px`,tdPaddingMedium:`12px`,tdPaddingLarge:`12px`,sorterSize:`15px`,resizableContainerSize:`8px`,resizableSize:`2px`,filterSize:`15px`,paginationMargin:`12px 0 0 0`,emptyPadding:`48px 0`,actionPadding:`8px 12px`,actionButtonMargin:`0 8px 0 0`};function ip(e){let{cardColor:t,modalColor:n,popoverColor:r,textColor2:i,textColor1:a,tableHeaderColor:o,tableColorHover:s,iconColor:c,primaryColor:l,fontWeightStrong:u,borderRadius:d,lineHeight:f,fontSizeSmall:p,fontSizeMedium:m,fontSizeLarge:h,dividerColor:g,heightSmall:_,opacityDisabled:v,tableColorStriped:y}=e;return{...vle,actionDividerColor:g,lineHeight:f,borderRadius:d,fontSizeSmall:p,fontSizeMedium:m,fontSizeLarge:h,borderColor:Ue(t,g),tdColorHover:Ue(t,s),tdColorSorting:Ue(t,s),tdColorStriped:Ue(t,y),thColor:Ue(t,o),thColorHover:Ue(Ue(t,o),s),thColorSorting:Ue(Ue(t,o),s),tdColor:t,tdTextColor:i,thTextColor:a,thFontWeight:u,thButtonColorHover:s,thIconColor:c,thIconColorActive:l,borderColorModal:Ue(n,g),tdColorHoverModal:Ue(n,s),tdColorSortingModal:Ue(n,s),tdColorStripedModal:Ue(n,y),thColorModal:Ue(n,o),thColorHoverModal:Ue(Ue(n,o),s),thColorSortingModal:Ue(Ue(n,o),s),tdColorModal:n,borderColorPopover:Ue(r,g),tdColorHoverPopover:Ue(r,s),tdColorSortingPopover:Ue(r,s),tdColorStripedPopover:Ue(r,y),thColorPopover:Ue(r,o),thColorHoverPopover:Ue(Ue(r,o),s),thColorSortingPopover:Ue(Ue(r,o),s),tdColorPopover:r,boxShadowBefore:`inset -12px 0 8px -12px rgba(0, 0, 0, .18)`,boxShadowAfter:`inset 12px 0 8px -12px rgba(0, 0, 0, .18)`,loadingColor:l,loadingSize:_,opacityLoading:v}}var ap=En({name:`DataTable`,common:_e,peers:{Button:xr,Checkbox:Vd,Radio:rp,Pagination:Pf,Scrollbar:Cn,Empty:ls,Popover:gs,Ellipsis:np,Dropdown:Jf},self:ip}),yle={name:`DataTable`,common:os,peers:{Button:$l,Checkbox:Hd,Radio:$f,Pagination:Ff,Scrollbar:ss,Empty:us,Popover:_s,Ellipsis:ep,Dropdown:Yf},self(e){let t=ip(e);return t.boxShadowAfter=`inset 12px 0 8px -12px rgba(0, 0, 0, .36)`,t.boxShadowBefore=`inset -12px 0 8px -12px rgba(0, 0, 0, .36)`,t}},op={...$e.props,onUnstableColumnResize:Function,pagination:{type:[Object,Boolean],default:!1},paginateSinglePage:{type:Boolean,default:!0},minHeight:[Number,String],maxHeight:[Number,String],columns:{type:Array,default:()=>[]},rowClassName:[String,Function],rowProps:Function,rowKey:Function,summary:[Function],data:{type:Array,default:()=>[]},loading:Boolean,bordered:{type:Boolean,default:void 0},bottomBordered:{type:Boolean,default:void 0},striped:Boolean,scrollX:[Number,String],defaultCheckedRowKeys:{type:Array,default:()=>[]},checkedRowKeys:Array,singleLine:{type:Boolean,default:!0},singleColumn:Boolean,size:String,remote:Boolean,defaultExpandedRowKeys:{type:Array,default:[]},defaultExpandAll:Boolean,expandedRowKeys:Array,stickyExpandedRows:Boolean,virtualScroll:Boolean,virtualScrollX:Boolean,virtualScrollHeader:Boolean,headerHeight:{type:Number,default:28},heightForRow:Function,minRowHeight:{type:Number,default:28},tableLayout:{type:String,default:`auto`},allowCheckingNotLoaded:Boolean,cascade:{type:Boolean,default:!0},childrenKey:{type:String,default:`children`},indent:{type:Number,default:16},flexHeight:Boolean,summaryPlacement:{type:String,default:`bottom`},paginationBehaviorOnFilter:{type:String,default:`current`},filterIconPopoverProps:Object,scrollbarProps:Object,renderCell:Function,renderExpandIcon:Function,spinProps:Object,getCsvCell:Function,getCsvHeader:Function,onLoad:Function,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],"onUpdate:sorter":[Function,Array],onUpdateSorter:[Function,Array],"onUpdate:filters":[Function,Array],onUpdateFilters:[Function,Array],"onUpdate:checkedRowKeys":[Function,Array],onUpdateCheckedRowKeys:[Function,Array],"onUpdate:expandedRowKeys":[Function,Array],onUpdateExpandedRowKeys:[Function,Array],onScroll:Function,onPageChange:[Function,Array],onPageSizeChange:[Function,Array],onSorterChange:[Function,Array],onFiltersChange:[Function,Array],onCheckedRowKeysChange:[Function,Array]},sp=bn(`n-data-table`),ble=z(`radio`,`
line-height: var(--n-label-line-height);
outline: none;
position: relative;
user-select: none;
-webkit-user-select: none;
display: inline-flex;
align-items: flex-start;
flex-wrap: nowrap;
font-size: var(--n-font-size);
word-break: break-word;
`,[B(`checked`,[X(`dot`,`
background-color: var(--n-color-active);
`)]),X(`dot-wrapper`,`
position: relative;
flex-shrink: 0;
flex-grow: 0;
width: var(--n-radio-size);
`),z(`radio-input`,`
position: absolute;
border: 0;
width: 0;
height: 0;
opacity: 0;
margin: 0;
`),X(`dot`,`
position: absolute;
top: 50%;
left: 0;
transform: translateY(-50%);
height: var(--n-radio-size);
width: var(--n-radio-size);
background: var(--n-color);
box-shadow: var(--n-box-shadow);
border-radius: 50%;
transition:
background-color .3s var(--n-bezier),
box-shadow .3s var(--n-bezier);
`,[U(`&::before`,`
content: "";
opacity: 0;
position: absolute;
left: 4px;
top: 4px;
height: calc(100% - 8px);
width: calc(100% - 8px);
border-radius: 50%;
transform: scale(.8);
background: var(--n-dot-color-active);
transition:
opacity .3s var(--n-bezier),
background-color .3s var(--n-bezier),
transform .3s var(--n-bezier);
`),B(`checked`,{boxShadow:`var(--n-box-shadow-active)`},[U(`&::before`,`
opacity: 1;
transform: scale(1);
`)])]),X(`label`,`
color: var(--n-text-color);
padding: var(--n-label-padding);
font-weight: var(--n-label-font-weight);
display: inline-block;
transition: color .3s var(--n-bezier);
`),On(`disabled`,`
cursor: pointer;
`,[U(`&:hover`,[X(`dot`,{boxShadow:`var(--n-box-shadow-hover)`})]),B(`focus`,[U(`&:not(:active)`,[X(`dot`,{boxShadow:`var(--n-box-shadow-focus)`})])])]),B(`disabled`,`
cursor: not-allowed;
`,[X(`dot`,{boxShadow:`var(--n-box-shadow-disabled)`,backgroundColor:`var(--n-color-disabled)`},[U(`&::before`,{backgroundColor:`var(--n-dot-color-disabled)`}),B(`checked`,`
opacity: 1;
`)]),X(`label`,{color:`var(--n-text-color-disabled)`}),z(`radio-input`,`
cursor: not-allowed;
`)])]),cp={name:String,value:{type:[String,Number,Boolean],default:`on`},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},lp=bn(`n-radio-group`);function up(e){let t=pe(lp,null),{mergedClsPrefixRef:n,mergedComponentPropsRef:r}=mn(e),a=mr(e,{mergedSize(n){let{size:i}=e;if(i!==void 0)return i;if(t){let{mergedSizeRef:{value:e}}=t;if(e!==void 0)return e}return n?n.mergedSize.value:r?.value?.Radio?.size||`medium`},mergedDisabled(n){return!!(e.disabled||t?.disabledRef.value||n?.disabled.value)}}),{mergedSizeRef:o,mergedDisabledRef:s}=a,c=N(null),l=N(null),u=N(e.defaultChecked),d=i(e,`checked`),f=lr(d,u),p=dr(()=>t?t.valueRef.value===e.value:f.value),m=dr(()=>{let{name:n}=e;if(n!==void 0)return n;if(t)return t.nameRef.value}),h=N(!1);function g(){if(t){let{doUpdateValue:n}=t,{value:r}=e;R(n,r)}else{let{onUpdateChecked:t,"onUpdate:checked":n}=e,{nTriggerFormInput:r,nTriggerFormChange:i}=a;t&&R(t,!0),n&&R(n,!0),r(),i(),u.value=!0}}function _(){s.value||p.value||g()}function v(){_(),c.value&&(c.value.checked=p.value)}function y(){h.value=!1}function b(){h.value=!0}return{mergedClsPrefix:t?t.mergedClsPrefixRef:n,inputRef:c,labelRef:l,mergedName:m,mergedDisabled:s,renderSafeChecked:p,focus:h,mergedSize:o,handleRadioInputChange:v,handleRadioInputBlur:y,handleRadioInputFocus:b}}var xle=[`value`,`name`,`checked`,`disabled`,`onChange`,`onFocus`,`onBlur`],Sle={...$e.props,...cp},dp=Y({name:`Radio`,props:Sle,setup(e){let t=up(e),n=$e(`Radio`,`-radio`,ble,rp,e,t.mergedClsPrefix),r=V(()=>{let{mergedSize:{value:e}}=t,{common:{cubicBezierEaseInOut:r},self:{boxShadow:i,boxShadowActive:a,boxShadowDisabled:o,boxShadowFocus:s,boxShadowHover:c,color:l,colorDisabled:u,colorActive:d,textColor:f,textColorDisabled:p,dotColorActive:m,dotColorDisabled:h,labelPadding:g,labelLineHeight:_,labelFontWeight:v,[tt(`fontSize`,e)]:y,[tt(`radioSize`,e)]:b}}=n.value;return{"--n-bezier":r,"--n-label-line-height":_,"--n-label-font-weight":v,"--n-box-shadow":i,"--n-box-shadow-active":a,"--n-box-shadow-disabled":o,"--n-box-shadow-focus":s,"--n-box-shadow-hover":c,"--n-color":l,"--n-color-active":d,"--n-color-disabled":u,"--n-dot-color-active":m,"--n-dot-color-disabled":h,"--n-font-size":y,"--n-radio-size":b,"--n-text-color":f,"--n-text-color-disabled":p,"--n-label-padding":g}}),{inlineThemeDisabled:i,mergedClsPrefixRef:a,mergedRtlRef:o}=mn(e),s=vn(`Radio`,o,a),c=i?fe(`radio`,V(()=>t.mergedSize.value[0]),r,e):void 0;return Object.assign(t,{rtlEnabled:s,cssVars:i?void 0:r,themeClass:c?.themeClass,onRender:c?.onRender})},render(){let{$slots:t,mergedClsPrefix:n,onRender:r,label:i}=this;return r?.(),(()=>{let r=Ye(`f8c6901d8cd45c02`);return L(),H(`label`,{class:P([`${n}-radio`,this.themeClass,this.rtlEnabled&&`${n}-radio--rtl`,this.mergedDisabled&&`${n}-radio--disabled`,this.renderSafeChecked&&`${n}-radio--checked`,this.focus&&`${n}-radio--focus`]),style:e(this.cssVars)},[q(`div`,{class:P(`${n}-radio__dot-wrapper`)},[r[0]||=G(`\xA0`,-1),q(`div`,{class:P([`${n}-radio__dot`,this.renderSafeChecked&&`${n}-radio__dot--checked`])},null,2),q(`input`,{ref:`inputRef`,type:`radio`,class:P(`${n}-radio-input`),value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur},null,42,xle)],2),G(()=>Lt(t.default,e=>!e&&!i?null:(L(),H(`div`,{ref:`labelRef`,class:P(`${n}-radio__label`)},[G(()=>e||i)],2))))],6)})()}}),Cle=z(`radio-group`,`
display: inline-block;
font-size: var(--n-font-size);
`,[X(`splitor`,`
display: inline-block;
vertical-align: bottom;
width: 1px;
transition:
background-color .3s var(--n-bezier),
opacity .3s var(--n-bezier);
background: var(--n-button-border-color);
`,[B(`checked`,{backgroundColor:`var(--n-button-border-color-active)`}),B(`disabled`,{opacity:`var(--n-opacity-disabled)`})]),B(`button-group`,`
white-space: nowrap;
height: var(--n-height);
line-height: var(--n-height);
`,[z(`radio-button`,{height:`var(--n-height)`,lineHeight:`var(--n-height)`}),X(`splitor`,{height:`var(--n-height)`})]),z(`radio-button`,`
vertical-align: bottom;
outline: none;
position: relative;
user-select: none;
-webkit-user-select: none;
display: inline-block;
box-sizing: border-box;
padding-left: 14px;
padding-right: 14px;
white-space: nowrap;
transition:
background-color .3s var(--n-bezier),
opacity .3s var(--n-bezier),
border-color .3s var(--n-bezier),
color .3s var(--n-bezier);
background: var(--n-button-color);
color: var(--n-button-text-color);
border-top: 1px solid var(--n-button-border-color);
border-bottom: 1px solid var(--n-button-border-color);
`,[z(`radio-input`,`
pointer-events: none;
position: absolute;
border: 0;
border-radius: inherit;
left: 0;
right: 0;
top: 0;
bottom: 0;
opacity: 0;
z-index: 1;
`),X(`state-border`,`
z-index: 1;
pointer-events: none;
position: absolute;
box-shadow: var(--n-button-box-shadow);
transition: box-shadow .3s var(--n-bezier);
left: -1px;
bottom: -1px;
right: -1px;
top: -1px;
`),U(`&:first-child`,`
border-top-left-radius: var(--n-button-border-radius);
border-bottom-left-radius: var(--n-button-border-radius);
border-left: 1px solid var(--n-button-border-color);
`,[X(`state-border`,`
border-top-left-radius: var(--n-button-border-radius);
border-bottom-left-radius: var(--n-button-border-radius);
`)]),U(`&:last-child`,`
border-top-right-radius: var(--n-button-border-radius);
border-bottom-right-radius: var(--n-button-border-radius);
border-right: 1px solid var(--n-button-border-color);
`,[X(`state-border`,`
border-top-right-radius: var(--n-button-border-radius);
border-bottom-right-radius: var(--n-button-border-radius);
`)]),On(`disabled`,`
cursor: pointer;
`,[U(`&:hover`,[X(`state-border`,`
transition: box-shadow .3s var(--n-bezier);
box-shadow: var(--n-button-box-shadow-hover);
`),On(`checked`,{color:`var(--n-button-text-color-hover)`})]),B(`focus`,[U(`&:not(:active)`,[X(`state-border`,{boxShadow:`var(--n-button-box-shadow-focus)`})])])]),B(`checked`,`
background: var(--n-button-color-active);
color: var(--n-button-text-color-active);
border-color: var(--n-button-border-color-active);
`),B(`disabled`,`
cursor: not-allowed;
opacity: var(--n-opacity-disabled);
`)])]),wle=[`onFocusin`,`onFocusout`];function Tle(e,t,n){let r=[],i=!1;for(let a=0;a<e.length;++a){let o=e[a],s=o.type?.name;s===`RadioButton`&&(i=!0);let c=o.props;if(s!==`RadioButton`)r.push(o);else if(a===0)r.push(o);else{let e=r[r.length-1].props,i=t===e.value,a=e.disabled,s=t===c.value,l=c.disabled,u=(i?2:0)+ +!a,d=(s?2:0)+ +!l,f={[`${n}-radio-group__splitor--disabled`]:a,[`${n}-radio-group__splitor--checked`]:i},p={[`${n}-radio-group__splitor--disabled`]:l,[`${n}-radio-group__splitor--checked`]:s},m=u<d?p:f;r.push((L(),H(`div`,{key:1,class:P([`${n}-radio-group__splitor`,m])},null,2)),o)}}return{children:r,isButtonGroup:i}}var Ele={...$e.props,name:String,options:Array,labelField:{type:String,default:`label`},valueField:{type:String,default:`value`},value:[String,Number,Boolean],defaultValue:{type:[String,Number,Boolean],default:null},size:String,disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]},fp=Y({name:`RadioGroup`,props:Ele,setup(e){let t=N(null),{mergedSizeRef:n,mergedDisabledRef:r,nTriggerFormChange:a,nTriggerFormInput:o,nTriggerFormBlur:s,nTriggerFormFocus:c}=mr(e),{mergedClsPrefixRef:l,inlineThemeDisabled:u,mergedRtlRef:d}=mn(e),f=$e(`Radio`,`-radio-group`,Cle,rp,e,l),p=N(e.defaultValue),m=i(e,`value`),h=lr(m,p);function g(t){let{onUpdateValue:n,"onUpdate:value":r}=e;n&&R(n,t),r&&R(r,t),p.value=t,a(),o()}function _(e){let{value:n}=t;n&&(n.contains(e.relatedTarget)||c())}function v(e){let{value:n}=t;n&&(n.contains(e.relatedTarget)||s())}Oe(lp,{mergedClsPrefixRef:l,nameRef:i(e,`name`),valueRef:h,disabledRef:r,mergedSizeRef:n,doUpdateValue:g});let y=vn(`Radio`,d,l),b=V(()=>{let{value:e}=n,{common:{cubicBezierEaseInOut:t},self:{buttonBorderColor:r,buttonBorderColorActive:i,buttonBorderRadius:a,buttonBoxShadow:o,buttonBoxShadowFocus:s,buttonBoxShadowHover:c,buttonColor:l,buttonColorActive:u,buttonTextColor:d,buttonTextColorActive:p,buttonTextColorHover:m,opacityDisabled:h,[tt(`buttonHeight`,e)]:g,[tt(`fontSize`,e)]:_}}=f.value;return{"--n-font-size":_,"--n-bezier":t,"--n-button-border-color":r,"--n-button-border-color-active":i,"--n-button-border-radius":a,"--n-button-box-shadow":o,"--n-button-box-shadow-focus":s,"--n-button-box-shadow-hover":c,"--n-button-color":l,"--n-button-color-active":u,"--n-button-text-color":d,"--n-button-text-color-hover":m,"--n-button-text-color-active":p,"--n-height":g,"--n-opacity-disabled":h}}),x=u?fe(`radio-group`,V(()=>n.value[0]),b,e):void 0;return{selfElRef:t,rtlEnabled:y,mergedClsPrefix:l,mergedValue:h,handleFocusout:v,handleFocusin:_,cssVars:u?void 0:b,themeClass:x?.themeClass,onRender:x?.onRender}},render(){let{mergedValue:t,mergedClsPrefix:n,handleFocusin:r,handleFocusout:i}=this,{options:a,labelField:o,valueField:s}=this.$props,{children:c,isButtonGroup:l}=Tle(a?a.map(e=>{let t=e[s];return L(),W(dp,{key:typeof t==`boolean`?`__n_${t}`:t,value:t,disabled:e.disabled,label:e[o]},null,8,[`value`,`disabled`,`label`])}):hr(Er(this)),t,n);return this.onRender?.(),L(),H(`div`,{onFocusin:r,onFocusout:i,ref:`selfElRef`,class:P([`${n}-radio-group`,this.rtlEnabled&&`${n}-radio-group--rtl`,this.themeClass,l&&`${n}-radio-group--button-group`]),style:e(this.cssVars)},[G(()=>c)],46,wle)}}),pp={...Lc,...$e.props},mp=Y({name:`Tooltip`,props:pp,slots:Object,__popover__:!0,setup(e){let{mergedClsPrefixRef:t}=mn(e),n=$e(`Tooltip`,`-tooltip`,void 0,tp,e,t),r=N(null);return{syncPosition(){r.value.syncPosition()},setShow(e){r.value.setShow(e)},popoverRef:r,mergedTheme:n,popoverThemeOverrides:V(()=>n.value.self)}},render(){let{mergedTheme:e,internalExtraClass:t}=this;return Dn(Rc,{...this.$props,theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat(`tooltip`),ref:`popoverRef`},this.$slots)}}),hp=z(`ellipsis`,{overflow:`hidden`},[On(`line-clamp`,`
white-space: nowrap;
display: inline-block;
vertical-align: bottom;
max-width: 100%;
`),B(`line-clamp`,`
display: -webkit-inline-box;
-webkit-box-orient: vertical;
`),B(`cursor-pointer`,`
cursor: pointer;
`)]),Dle=[`onClick`];function gp(e){return`${e}-ellipsis--line-clamp`}function _p(e,t){return`${e}-ellipsis--cursor-${t}`}var vp={...$e.props,expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}},yp=Y({name:`Ellipsis`,inheritAttrs:!1,props:vp,slots:Object,setup(e,{slots:t,attrs:n}){let r=Ot(),i=$e(`Ellipsis`,`-ellipsis`,hp,np,e,r),a=N(null),o=N(null),s=N(null),c=N(!1),l=V(()=>{let{lineClamp:t}=e,{value:n}=c;return t===void 0?{textOverflow:n?``:`ellipsis`,"-webkit-line-clamp":``}:{textOverflow:``,"-webkit-line-clamp":n?``:t}});function u(){let t=!1,{value:n}=c;if(n)return!0;let{value:r}=a;if(r){let{lineClamp:n}=e;if(p(r),n!==void 0)t=r.scrollHeight<=r.offsetHeight;else{let{value:e}=o;e&&(t=e.getBoundingClientRect().width<=r.getBoundingClientRect().width)}m(r,t)}return t}function d(){if(e.expandTrigger!==`click`)return;let{value:t}=c;t&&s.value?.setShow(!1),c.value=!t}Re(()=>{e.tooltip&&s.value?.setShow(!1)});let f=()=>(()=>{let i=Ye(`c61f52eafd841df5`);return L(),H(`span`,I(I(n,{class:[`${r.value}-ellipsis`,e.lineClamp===void 0?void 0:gp(r.value),e.expandTrigger===`click`?_p(r.value,`pointer`):void 0],style:l.value}),{ref:`triggerRef`,onClick:d,onMouseenter:i[0]||=e.expandTrigger===`click`?u:void 0}),[e.lineClamp?(L(),H(K,{key:0},[G(()=>t.default?.())],64)):(L(),H(`span`,{key:1,ref:`triggerInnerRef`},[G(()=>t.default?.())],512))],16,Dle)})();function p(t){if(!t)return;let n=l.value,i=gp(r.value);e.lineClamp===void 0?h(t,i,`remove`):h(t,i,`add`);for(let e in n)t.style[e]!==n[e]&&(t.style[e]=n[e])}function m(t,n){let i=_p(r.value,`pointer`);e.expandTrigger===`click`&&!n?h(t,i,`add`):h(t,i,`remove`)}function h(e,t,n){n===`add`?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}return{mergedTheme:i,triggerRef:a,triggerInnerRef:o,tooltipRef:s,renderTrigger:f,getTooltipDisabled:u}},render(){let{tooltip:e,renderTrigger:t,$slots:n}=this;if(e){let{mergedTheme:r}=this;return L(),W(mp,I({key:1,ref:`tooltipRef`,placement:`top`},e,{getDisabled:this.getTooltipDisabled,theme:r.peers.Tooltip,themeOverrides:r.peerOverrides.Tooltip}),{trigger:t,default:n.tooltip??n.default},1040,[`getDisabled`,`theme`,`themeOverrides`])}return t()}}),Ole=Y({name:`PerformantEllipsis`,props:vp,inheritAttrs:!1,setup(e,{attrs:t,slots:n}){let r=N(!1),i=Ot();return dn(`-ellipsis`,hp,i),{mouseEntered:r,renderTrigger:()=>{let{lineClamp:a}=e,o=i.value;return(()=>{let i=Ye(`dba02f32d69b23e6`);return L(),H(`span`,I(I(t,{class:[`${o}-ellipsis`,a===void 0?void 0:gp(o),e.expandTrigger===`click`?_p(o,`pointer`):void 0],style:a===void 0?{textOverflow:`ellipsis`}:{"-webkit-line-clamp":a}}),{onMouseenter:i[0]||=()=>{r.value=!0}}),[a?(L(),H(K,{key:0},[G(()=>n.default?.())],64)):(L(),H(`span`,{key:1},[G(()=>n.default?.())]))],16)})()}}},render(){return this.mouseEntered?Dn(yp,I({},this.$attrs,this.$props),this.$slots):this.renderTrigger()}});function bp(e){let{textColorBase:t,opacity1:n,opacity2:r,opacity3:i,opacity4:a,opacity5:o}=e;return{color:t,opacity1Depth:n,opacity2Depth:r,opacity3Depth:i,opacity4Depth:a,opacity5Depth:o}}var xp={name:`Icon`,common:_e,self:bp},kle={name:`Icon`,common:os,self:bp},Ale=z(`icon`,`
height: 1em;
width: 1em;
line-height: 1em;
text-align: center;
display: inline-block;
position: relative;
fill: currentColor;
`,[B(`color-transition`,{transition:`color .3s var(--n-bezier)`}),B(`depth`,{color:`var(--n-color)`},[U(`svg`,{opacity:`var(--n-opacity)`,transition:`opacity .3s var(--n-bezier)`})]),U(`svg`,{height:`1em`,width:`1em`})]),jle={...$e.props,depth:[String,Number],size:[Number,String],color:String,component:[Object,Function]},Mle=Y({_n_icon__:!0,name:`Icon`,inheritAttrs:!1,props:jle,setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:n}=mn(e),r=$e(`Icon`,`-icon`,Ale,xp,e,t),i=V(()=>{let{depth:t}=e,{common:{cubicBezierEaseInOut:n},self:i}=r.value;if(t!==void 0){let{color:e,[`opacity${t}Depth`]:r}=i;return{"--n-bezier":n,"--n-color":e,"--n-opacity":r}}return{"--n-bezier":n,"--n-color":``,"--n-opacity":``}}),a=n?fe(`icon`,V(()=>`${e.depth||`d`}`),i,e):void 0;return{mergedClsPrefix:t,mergedStyle:V(()=>{let{size:t,color:n}=e;return{fontSize:pr(t),color:n}}),cssVars:n?void 0:i,themeClass:a?.themeClass,onRender:a?.onRender}},render(){let{$parent:e,depth:t,mergedClsPrefix:n,component:r,onRender:i,themeClass:a}=this;return e?.$options?._n_icon__&&on(`icon`,"don't wrap `n-icon` inside `n-icon`"),i?.(),Dn(`i`,I(this.$attrs,{role:`img`,class:[`${n}-icon`,a,{[`${n}-icon--depth`]:t,[`${n}-icon--color-transition`]:t!==void 0}],style:[this.cssVars,this.mergedStyle]}),r?Dn(r):this.$slots.default?.())}}),Sp=bn(`n-dropdown-menu`),Cp=bn(`n-dropdown`),wp=bn(`n-dropdown-option`),Tp=Y({name:`DropdownDivider`,props:{clsPrefix:{type:String,required:!0}},render(){return L(),H(`div`,{class:P(`${this.clsPrefix}-dropdown-divider`)},null,2)}});function Ep(e,t){return e.type===`submenu`||e.type===void 0&&e[t]!==void 0}function Nle(e){return e.type===`group`}function Dp(e){return e.type===`divider`}function Ple(e){return e.type===`render`}function Fle(e,t,n){if(!t)return e;let r=N(e.value),i=null;return Te(e,e=>{i!==null&&window.clearTimeout(i),e===!0?n&&!n.value?r.value=!0:i=window.setTimeout(()=>{r.value=!0},t):r.value=!1}),r}var Op=Y({name:`DropdownOption`,props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:`right-start`},props:Object,scrollable:Boolean},setup(e){let t=pe(Cp),{hoverKeyRef:n,keyboardKeyRef:r,lastToggledSubmenuKeyRef:i,pendingKeyPathRef:a,activeKeyPathRef:o,animatedRef:s,mergedShowRef:c,renderLabelRef:l,renderIconRef:u,labelFieldRef:d,childrenFieldRef:f,renderOptionRef:p,nodePropsRef:m,menuPropsRef:h}=t,g=pe(wp,null),_=pe(Sp),v=pe(ws),y=V(()=>e.tmNode.rawNode),b=V(()=>{let{value:t}=f;return Ep(e.tmNode.rawNode,t)}),x=V(()=>{let{disabled:t}=e.tmNode;return t}),S=Fle(V(()=>{if(!b.value)return!1;let{key:t,disabled:o}=e.tmNode;if(o)return!1;let{value:s}=n,{value:c}=r,{value:l}=i,{value:u}=a;return s===null?c===null?l!==null&&u.includes(t):u.includes(t)&&u[u.length-1]!==t:u.includes(t)}),300,V(()=>r.value===null&&!s.value)),C=V(()=>!!g?.enteringSubmenuRef.value),w=N(!1);Oe(wp,{enteringSubmenuRef:w});function T(){w.value=!0}function E(){w.value=!1}function D(){let{parentKey:t,tmNode:a}=e;a.disabled||c.value&&(i.value=t,r.value=null,n.value=a.key)}function O(){let{tmNode:t}=e;t.disabled||c.value&&n.value!==t.key&&D()}function k(t){if(e.tmNode.disabled||!c.value)return;let{relatedTarget:r}=t;r&&!ts({target:r},`dropdownOption`)&&!ts({target:r},`scrollbarRail`)&&(n.value=null)}function A(){let{value:n}=b,{tmNode:r}=e;c.value&&!n&&!r.disabled&&(t.doSelect(r.key,r.rawNode),t.doUpdateShow(!1))}return{labelField:d,renderLabel:l,renderIcon:u,siblingHasIcon:_.showIconRef,siblingHasSubmenu:_.hasSubmenuRef,menuProps:h,popoverBody:v,animated:s,mergedShowSubmenu:V(()=>S.value&&!C.value),rawNode:y,hasSubmenu:b,pending:dr(()=>{let{value:t}=a,{key:n}=e.tmNode;return t.includes(n)}),childActive:dr(()=>{let{value:t}=o,{key:n}=e.tmNode,r=t.findIndex(e=>n===e);return r!==-1&&r<t.length-1}),active:dr(()=>{let{value:t}=o,{key:n}=e.tmNode,r=t.findIndex(e=>n===e);return r!==-1&&r===t.length-1}),mergedDisabled:x,renderOption:p,nodeProps:m,handleClick:A,handleMouseMove:O,handleMouseEnter:D,handleMouseLeave:k,handleSubmenuBeforeEnter:T,handleSubmenuAfterEnter:E}},render(){let{animated:e,rawNode:t,mergedShowSubmenu:n,clsPrefix:r,siblingHasIcon:i,siblingHasSubmenu:a,renderLabel:o,renderIcon:s,renderOption:c,nodeProps:l,props:u,scrollable:d}=this,f=null;if(n){let e=this.menuProps?.(t,t.children);f=(t=>(L(),W(kp,I({key:1},e,{clsPrefix:r,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}),null,16,[`clsPrefix`,`scrollable`,`tmNodes`,`parentKey`])))(f)}let p={class:[`${r}-dropdown-option-body`,this.pending&&`${r}-dropdown-option-body--pending`,this.active&&`${r}-dropdown-option-body--active`,this.childActive&&`${r}-dropdown-option-body--child-active`,this.mergedDisabled&&`${r}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},m=l?.(t),h=(L(),H(`div`,I({class:[`${r}-dropdown-option`,m?.class],"data-dropdown-option":!0},m),[G(()=>Dn(`div`,I(p,u),[(L(),H(`div`,{class:P([`${r}-dropdown-option-body__prefix`,i&&`${r}-dropdown-option-body__prefix--show-icon`])},[G(()=>[s?s(t):ol(t.icon)])],2)),(L(),H(`div`,{"data-dropdown-option":!0,class:P(`${r}-dropdown-option-body__label`)},[o?(L(),H(K,{key:0},[G(()=>o(t))],64)):(L(),H(K,{key:1},[G(()=>ol(t[this.labelField]??t.title))],64))],2)),(L(),H(`div`,{"data-dropdown-option":!0,class:P([`${r}-dropdown-option-body__suffix`,a&&`${r}-dropdown-option-body__suffix--has-submenu`])},[this.hasSubmenu?(L(),W(Mle,{key:0},{_:1,default:Nt(()=>(L(),W(eu)))})):G(()=>null)],2))])),this.hasSubmenu?(L(),W(Zs,{key:0},{default:()=>[(L(),W(Qs,null,{default:()=>(L(),H(`div`,{class:P(`${r}-dropdown-offset-container`)},[(L(),W(gc,{show:this.mergedShowSubmenu,placement:this.placement,to:d&&this.popoverBody||void 0,teleportDisabled:!d},{default:()=>(L(),H(`div`,{class:P(`${r}-dropdown-menu-wrapper`)},[e?(L(),W(gn,{key:0,onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:`fade-in-scale-up-transition`,appear:!0},{default:()=>f},1032,[`onBeforeEnter`,`onAfterEnter`])):(L(),H(K,{key:1},[G(()=>f)],64))],2))},1032,[`show`,`placement`,`to`,`teleportDisabled`]))],2))},1024))]},1024)):G(()=>null)],16));return c?c({node:h,option:t}):h}}),Ile=Y({name:`DropdownGroupHeader`,props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){let{showIconRef:e,hasSubmenuRef:t}=pe(Sp),{renderLabelRef:n,labelFieldRef:r,nodePropsRef:i,renderOptionRef:a}=pe(Cp);return{labelField:r,showIcon:e,hasSubmenu:t,renderLabel:n,nodeProps:i,renderOption:a}},render(){let{clsPrefix:e,hasSubmenu:t,showIcon:n,nodeProps:r,renderLabel:i,renderOption:a}=this,{rawNode:o}=this.tmNode,s=(L(),H(`div`,I({class:`${e}-dropdown-option`},r?.(o)),[q(`div`,{class:P(`${e}-dropdown-option-body ${e}-dropdown-option-body--group`)},[q(`div`,{"data-dropdown-option":!0,class:P([`${e}-dropdown-option-body__prefix`,n&&`${e}-dropdown-option-body__prefix--show-icon`])},[G(()=>ol(o.icon))],2),q(`div`,{class:P(`${e}-dropdown-option-body__label`),"data-dropdown-option":!0},[i?(L(),H(K,{key:0},[G(()=>i(o))],64)):(L(),H(K,{key:1},[G(()=>ol(o.title??o[this.labelField]))],64))],2),q(`div`,{class:P([`${e}-dropdown-option-body__suffix`,t&&`${e}-dropdown-option-body__suffix--has-submenu`]),"data-dropdown-option":!0},null,2)],2)],16));return a?a({node:s,option:o}):s}}),Lle=Y({name:`NDropdownGroup`,props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){let{tmNode:e,parentKey:t,clsPrefix:n}=this,{children:r}=e;return L(),H(K,null,[(L(),W(Ile,{clsPrefix:n,tmNode:e,key:e.key},null,8,[`clsPrefix`,`tmNode`])),G(()=>r?.map(e=>{let{rawNode:r}=e;return r.show===!1?null:Dp(r)?Dn(Tp,{clsPrefix:n,key:e.key}):e.isGroup?(on(`dropdown`,"`group` node is not allowed to be put in `group` node."),null):(L(),W(Op,{clsPrefix:n,tmNode:e,parentKey:t,key:e.key},null,8,[`clsPrefix`,`tmNode`,`parentKey`]))}))],64)}}),Rle=Y({name:`DropdownRenderOption`,props:{tmNode:{type:Object,required:!0}},render(){let{rawNode:{render:e,props:t}}=this.tmNode;return Dn(`div`,t,[e?.()])}}),kp=Y({name:`DropdownMenu`,props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){let{renderIconRef:t,childrenFieldRef:n}=pe(Cp);Oe(Sp,{showIconRef:V(()=>{let n=t.value;return e.tmNodes.some(e=>{if(e.isGroup)return e.children?.some(({rawNode:e})=>n?n(e):e.icon);let{rawNode:t}=e;return n?n(t):t.icon})}),hasSubmenuRef:V(()=>{let{value:t}=n;return e.tmNodes.some(e=>{if(e.isGroup)return e.children?.some(({rawNode:e})=>Ep(e,t));let{rawNode:n}=e;return Ep(n,t)})})});let r=N(null);return Oe(Ss,null),Oe(bs,null),Oe(ws,r),{bodyRef:r}},render(){let{parentKey:e,clsPrefix:t,scrollable:n}=this,r=this.tmNodes.map(r=>{let{rawNode:i}=r;return i.show===!1?null:Ple(i)?(L(),W(Rle,{tmNode:r,key:r.key},null,8,[`tmNode`])):Dp(i)?(L(),W(Tp,{clsPrefix:t,key:r.key},null,8,[`clsPrefix`])):Nle(i)?(L(),W(Lle,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key},null,8,[`clsPrefix`,`tmNode`,`parentKey`])):(L(),W(Op,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key,props:i.props,scrollable:n},null,8,[`clsPrefix`,`tmNode`,`parentKey`,`props`,`scrollable`]))});return L(),H(`div`,{class:P([`${t}-dropdown-menu`,n&&`${t}-dropdown-menu--scrollable`]),ref:`bodyRef`},[n?(L(),W(Bt,{key:0,contentClass:`${t}-dropdown-menu__content`},{default:()=>r},1032,[`contentClass`])):(L(),H(K,{key:1},[G(()=>r)],64)),this.showArrow?(L(),H(K,{key:2},[G(()=>Ic({clsPrefix:t,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}))],64)):G(()=>null)],2)}}),zle=z(`dropdown-menu`,`
transform-origin: var(--v-transform-origin);
background-color: var(--n-color);
border-radius: var(--n-border-radius);
box-shadow: var(--n-box-shadow);
position: relative;
transition:
background-color .3s var(--n-bezier),
box-shadow .3s var(--n-bezier);
`,[pl(),z(`dropdown-option`,`
position: relative;
`,[U(`a`,`
text-decoration: none;
color: inherit;
outline: none;
`,[U(`&::before`,`
content: "";
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
`)]),z(`dropdown-option-body`,`
display: flex;
cursor: pointer;
position: relative;
height: var(--n-option-height);
line-height: var(--n-option-height);
font-size: var(--n-font-size);
color: var(--n-option-text-color);
transition: color .3s var(--n-bezier);
`,[U(`&::before`,`
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 4px;
right: 4px;
transition: background-color .3s var(--n-bezier);
border-radius: var(--n-border-radius);
`),On(`disabled`,[B(`pending`,`
color: var(--n-option-text-color-hover);
`,[X(`prefix, suffix`,`
color: var(--n-option-text-color-hover);
`),U(`&::before`,`background-color: var(--n-option-color-hover);`)]),B(`active`,`
color: var(--n-option-text-color-active);
`,[X(`prefix, suffix`,`
color: var(--n-option-text-color-active);
`),U(`&::before`,`background-color: var(--n-option-color-active);`)]),B(`child-active`,`
color: var(--n-option-text-color-child-active);
`,[X(`prefix, suffix`,`
color: var(--n-option-text-color-child-active);
`)])]),B(`disabled`,`
cursor: not-allowed;
opacity: var(--n-option-opacity-disabled);
`),B(`group`,`
font-size: calc(var(--n-font-size) - 1px);
color: var(--n-group-header-text-color);
`,[X(`prefix`,`
width: calc(var(--n-option-prefix-width) / 2);
`,[B(`show-icon`,`
width: calc(var(--n-option-icon-prefix-width) / 2);
`)])]),X(`prefix`,`
width: var(--n-option-prefix-width);
display: flex;
justify-content: center;
align-items: center;
color: var(--n-prefix-color);
transition: color .3s var(--n-bezier);
z-index: 1;
`,[B(`show-icon`,`
width: var(--n-option-icon-prefix-width);
`),z(`icon`,`
font-size: var(--n-option-icon-size);
`)]),X(`label`,`
white-space: nowrap;
flex: 1;
z-index: 1;
`),X(`suffix`,`
box-sizing: border-box;
flex-grow: 0;
flex-shrink: 0;
display: flex;
justify-content: flex-end;
align-items: center;
min-width: var(--n-option-suffix-width);
padding: 0 8px;
transition: color .3s var(--n-bezier);
color: var(--n-suffix-color);
z-index: 1;
`,[B(`has-submenu`,`
width: var(--n-option-icon-suffix-width);
`),z(`icon`,`
font-size: var(--n-option-icon-size);
`)]),z(`dropdown-menu`,`pointer-events: all;`)]),z(`dropdown-offset-container`,`
pointer-events: none;
position: absolute;
left: 0;
right: 0;
top: -4px;
bottom: -4px;
`)]),z(`dropdown-divider`,`
transition: background-color .3s var(--n-bezier);
background-color: var(--n-divider-color);
height: 1px;
margin: 4px 0;
`),z(`dropdown-menu-wrapper`,`
transform-origin: var(--v-transform-origin);
width: fit-content;
`),U(`>`,[z(`scrollbar`,`
height: inherit;
max-height: inherit;
`)]),On(`scrollable`,`
padding: var(--n-padding);
`),B(`scrollable`,[X(`content`,`
padding: var(--n-padding);
`)])]),Ble={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:String,inverted:Boolean,placement:{type:String,default:`bottom`},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:`label`},keyField:{type:String,default:`key`},childrenField:{type:String,default:`children`},value:[String,Number]},Vle=Object.keys(Lc),Ap={...Lc,...Ble,...$e.props},jp=Y({name:`Dropdown`,inheritAttrs:!1,props:Ap,setup(e){let t=N(!1),n=lr(i(e,`show`),t),r=V(()=>{let{keyField:t,childrenField:n}=e;return Dl(e.options,{getKey(e){return e[t]},getDisabled(e){return e.disabled===!0},getIgnored(e){return e.type===`divider`||e.type===`render`},getChildren(e){return e[n]}})}),a=V(()=>r.value.treeNodes),o=N(null),s=N(null),c=N(null),l=V(()=>o.value??s.value??c.value??null),u=V(()=>r.value.getPath(l.value).keyPath),d=V(()=>r.value.getPath(e.value).keyPath),f=dr(()=>e.keyboard&&n.value);zs({keydown:{ArrowUp:{prevent:!0,handler:w},ArrowRight:{prevent:!0,handler:C},ArrowDown:{prevent:!0,handler:T},ArrowLeft:{prevent:!0,handler:S},Enter:{prevent:!0,handler:E},Escape:x}},f);let{mergedClsPrefixRef:p,inlineThemeDisabled:m,mergedComponentPropsRef:h}=mn(e),g=V(()=>e.size||h?.value?.Dropdown?.size||`medium`),_=$e(`Dropdown`,`-dropdown`,zle,Jf,e,p);Oe(Cp,{labelFieldRef:i(e,`labelField`),childrenFieldRef:i(e,`childrenField`),renderLabelRef:i(e,`renderLabel`),renderIconRef:i(e,`renderIcon`),hoverKeyRef:o,keyboardKeyRef:s,lastToggledSubmenuKeyRef:c,pendingKeyPathRef:u,activeKeyPathRef:d,animatedRef:i(e,`animated`),mergedShowRef:n,nodePropsRef:i(e,`nodeProps`),renderOptionRef:i(e,`renderOption`),menuPropsRef:i(e,`menuProps`),doSelect:v,doUpdateShow:y}),Te(n,t=>{!e.animated&&!t&&b()});function v(t,n){let{onSelect:r}=e;r&&R(r,t,n)}function y(n){let{"onUpdate:show":r,onUpdateShow:i}=e;r&&R(r,n),i&&R(i,n),t.value=n}function b(){o.value=null,s.value=null,c.value=null}function x(){y(!1)}function S(){O(`left`)}function C(){O(`right`)}function w(){O(`up`)}function T(){O(`down`)}function E(){let e=D();e?.isLeaf&&n.value&&(v(e.key,e.rawNode),y(!1))}function D(){let{value:e}=r,{value:t}=l;return!e||t===null?null:e.getNode(t)??null}function O(e){let{value:t}=l,{value:{getFirstAvailableNode:n}}=r,i=null;if(t===null){let e=n();e!==null&&(i=e.key)}else{let t=D();if(t){let n;switch(e){case`down`:n=t.getNext();break;case`up`:n=t.getPrev();break;case`right`:n=t.getChild();break;case`left`:n=t.getParent()}n&&(i=n.key)}}i!==null&&(o.value=null,s.value=i)}let k=V(()=>{let{inverted:t}=e,n=g.value,{common:{cubicBezierEaseInOut:r},self:i}=_.value,{padding:a,dividerColor:o,borderRadius:s,optionOpacityDisabled:c,[tt(`optionIconSuffixWidth`,n)]:l,[tt(`optionSuffixWidth`,n)]:u,[tt(`optionIconPrefixWidth`,n)]:d,[tt(`optionPrefixWidth`,n)]:f,[tt(`fontSize`,n)]:p,[tt(`optionHeight`,n)]:m,[tt(`optionIconSize`,n)]:h}=i,v={"--n-bezier":r,"--n-font-size":p,"--n-padding":a,"--n-border-radius":s,"--n-option-height":m,"--n-option-prefix-width":f,"--n-option-icon-prefix-width":d,"--n-option-suffix-width":u,"--n-option-icon-suffix-width":l,"--n-option-icon-size":h,"--n-divider-color":o,"--n-option-opacity-disabled":c};return t?(v[`--n-color`]=i.colorInverted,v[`--n-option-color-hover`]=i.optionColorHoverInverted,v[`--n-option-color-active`]=i.optionColorActiveInverted,v[`--n-option-text-color`]=i.optionTextColorInverted,v[`--n-option-text-color-hover`]=i.optionTextColorHoverInverted,v[`--n-option-text-color-active`]=i.optionTextColorActiveInverted,v[`--n-option-text-color-child-active`]=i.optionTextColorChildActiveInverted,v[`--n-prefix-color`]=i.prefixColorInverted,v[`--n-suffix-color`]=i.suffixColorInverted,v[`--n-group-header-text-color`]=i.groupHeaderTextColorInverted):(v[`--n-color`]=i.color,v[`--n-option-color-hover`]=i.optionColorHover,v[`--n-option-color-active`]=i.optionColorActive,v[`--n-option-text-color`]=i.optionTextColor,v[`--n-option-text-color-hover`]=i.optionTextColorHover,v[`--n-option-text-color-active`]=i.optionTextColorActive,v[`--n-option-text-color-child-active`]=i.optionTextColorChildActive,v[`--n-prefix-color`]=i.prefixColor,v[`--n-suffix-color`]=i.suffixColor,v[`--n-group-header-text-color`]=i.groupHeaderTextColor),v}),A=m?fe(`dropdown`,V(()=>`${g.value[0]}${e.inverted?`i`:``}`),k,e):void 0;return{mergedClsPrefix:p,mergedTheme:_,mergedSize:g,tmNodes:a,mergedShow:n,handleAfterLeave:()=>{e.animated&&b()},doUpdateShow:y,cssVars:m?void 0:k,themeClass:A?.themeClass,onRender:A?.onRender}},render(){let e=(e,t,n,r,i)=>{let{mergedClsPrefix:a,menuProps:o}=this;this.onRender?.();let s=o?.(void 0,this.tmNodes.map(e=>e.rawNode))||{},c={ref:Sf(t),class:[e,`${a}-dropdown`,`${a}-dropdown--${this.mergedSize}-size`,this.themeClass],clsPrefix:a,tmNodes:this.tmNodes,style:[...n,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:r,onMouseleave:i};return Dn(kp,I(this.$attrs,c,s))},{mergedTheme:t}=this,n={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return L(),W(Rc,Hs(this.$props,Vle,n),{_:1,trigger:Nt(()=>this.$slots.default?.())},16)}});function Mp(e){if(e.type===`selection`||e.type===`expand`)return e.width===void 0?40:sn(e.width);if(!(`children`in e))return typeof e.width==`string`?sn(e.width):e.width}function Hle(e){if(e.type===`selection`||e.type===`expand`)return pr(e.width??40);if(!(`children`in e))return pr(e.width)}function Np(e){return e.type===`selection`?`__n_selection__`:e.type===`expand`?`__n_expand__`:e.key}function Pp(e){return e&&(typeof e==`object`?Object.assign({},e):e)}function Ule(e){return e===`ascend`?1:e===`descend`?-1:0}function Wle(e,t,n){return n!==void 0&&(e=Math.min(e,typeof n==`number`?n:Number.parseFloat(n))),t!==void 0&&(e=Math.max(e,typeof t==`number`?t:Number.parseFloat(t))),e}function Gle(e,t){if(t!==void 0)return{width:t,minWidth:t,maxWidth:t};let n=Hle(e),{minWidth:r,maxWidth:i}=e;return{width:n,minWidth:pr(r)||n,maxWidth:pr(i)}}function Kle(e,t,n){return typeof n==`function`?n(e,t):n||``}function Fp(e){return e.filterOptionValues!==void 0||e.filterOptionValue===void 0&&e.defaultFilterOptionValues!==void 0}function Ip(e){return`children`in e?!1:!!e.sorter}function Lp(e){return`children`in e&&e.children.length?!1:!!e.resizable}function Rp(e){return`children`in e?!1:!!e.filter&&(!!e.filterOptions||!!e.renderFilterMenu)}function zp(e){return e?e===`descend`&&`ascend`:`descend`}function qle(e,t){if(e.sorter===void 0)return null;let{customNextSortOrder:n}=e;return t===null||t.columnKey!==e.key?{columnKey:e.key,sorter:e.sorter,order:zp(!1)}:{...t,order:(n||zp)(t.order)}}function Bp(e,t){return t.find(t=>t.columnKey===e.key&&t.order)!==void 0}function Jle(e){return typeof e==`string`?e.replace(/,/g,`\\,`):e==null?``:`${e}`.replace(/,/g,`\\,`)}function Yle(e,t,n,r){let i=e.filter(e=>e.type!==`expand`&&e.type!==`selection`&&e.allowExport!==!1);return[i.map(e=>r?r(e):e.title).join(`,`),...t.map(e=>i.map(t=>n?n(e[t.key],e,t):Jle(e[t.key])).join(`,`))].join(`
`)}var Xle=Y({name:`Filter`,render(){return(()=>{let e=Ye(`32f755e984c27f19`);return e[0]||=q(`svg`,{viewBox:`0 0 28 28`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},[q(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},[q(`g`,{"fill-rule":`nonzero`},[q(`path`,{d:`M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z`})])])],-1)})()}}),Zle=Y({name:`DataTableFilterMenu`,props:{column:{type:Object,required:!0},radioGroupName:{type:String,required:!0},multiple:{type:Boolean,required:!0},value:{type:[Array,String,Number],default:null},options:{type:Array,required:!0},onConfirm:{type:Function,required:!0},onClear:{type:Function,required:!0},onChange:{type:Function,required:!0}},setup(e){let{mergedClsPrefixRef:t,mergedRtlRef:n}=mn(e),r=vn(`DataTable`,n,t),{mergedClsPrefixRef:i,mergedThemeRef:a,localeRef:o}=pe(sp),s=N(e.value),c=V(()=>{let{value:e}=s;return Array.isArray(e)?e:null}),l=V(()=>{let{value:t}=s;return Fp(e.column)?Array.isArray(t)&&t.length&&t[0]||null:Array.isArray(t)?null:t});function u(t){e.onChange(t)}function d(t){e.multiple&&Array.isArray(t)?s.value=t:Fp(e.column)&&!Array.isArray(t)?s.value=[t]:s.value=t}function f(){u(s.value),e.onConfirm()}function p(){e.multiple||Fp(e.column)?u([]):u(null),e.onClear()}return{mergedClsPrefix:i,rtlEnabled:r,mergedTheme:a,locale:o,checkboxGroupValue:c,radioGroupValue:l,handleChange:d,handleConfirmClick:f,handleClearClick:p}},render(){let{mergedTheme:e,locale:t,mergedClsPrefix:n}=this;return L(),H(`div`,{class:P([`${n}-data-table-filter-menu`,this.rtlEnabled&&`${n}-data-table-filter-menu--rtl`])},[J(ln,null,{default:()=>{let{checkboxGroupValue:t,handleChange:r}=this;return this.multiple?(L(),W(Qse,{key:1,value:t,class:P(`${n}-data-table-filter-menu__group`),onUpdateValue:r},{default:()=>this.options.map(t=>(L(),W(Kd,{key:t.value,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,value:t.value},{default:()=>t.label},1032,[`theme`,`themeOverrides`,`value`])))},1032,[`value`,`class`,`onUpdateValue`])):(L(),W(fp,{key:2,name:this.radioGroupName,class:P(`${n}-data-table-filter-menu__group`),value:this.radioGroupValue,onUpdateValue:this.handleChange},{default:()=>this.options.map(t=>(L(),W(dp,{key:t.value,value:t.value,theme:e.peers.Radio,themeOverrides:e.peerOverrides.Radio},{default:()=>t.label},1032,[`value`,`theme`,`themeOverrides`])))},1032,[`name`,`class`,`value`,`onUpdateValue`]))}},1024),q(`div`,{class:P(`${n}-data-table-filter-menu__action`)},[(L(),W(wr,{size:`tiny`,theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,onClick:this.handleClearClick},{default:()=>t.clear},1032,[`theme`,`themeOverrides`,`onClick`])),(L(),W(wr,{theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,type:`primary`,size:`tiny`,onClick:this.handleConfirmClick},{default:()=>t.confirm},1032,[`theme`,`themeOverrides`,`onClick`]))],2)],2)}}),Qle=Y({name:`DataTableRenderFilter`,props:{render:{type:Function,required:!0},active:Boolean,show:Boolean},render(){let{render:e,active:t,show:n}=this;return e({active:t,show:n})}});function $le(e,t,n){let r=Object.assign({},e);return r[t]=n,r}var eue=Y({name:`DataTableFilterButton`,props:{column:{type:Object,required:!0},options:{type:Array,default:()=>[]}},setup(e){let{mergedComponentPropsRef:t}=mn(),{mergedThemeRef:n,mergedClsPrefixRef:r,mergedFilterStateRef:i,filterMenuCssVarsRef:a,paginationBehaviorOnFilterRef:o,doUpdatePage:s,doUpdateFilters:c,filterIconPopoverPropsRef:l}=pe(sp),u=N(!1),d=i,f=V(()=>e.column.filterMultiple!==!1),p=V(()=>{let t=d.value[e.column.key];if(t===void 0){let{value:e}=f;return e?[]:null}return t}),m=V(()=>{let{value:e}=p;return Array.isArray(e)?e.length>0:e!==null}),h=V(()=>t?.value?.DataTable?.renderFilter||e.column.renderFilter);function g(t){let n=$le(d.value,e.column.key,t);c(n,e.column),o.value===`first`&&s(1)}function _(){u.value=!1}function v(){u.value=!1}return{mergedTheme:n,mergedClsPrefix:r,active:m,showPopover:u,mergedRenderFilter:h,filterIconPopoverProps:l,filterMultiple:f,mergedFilterValue:p,filterMenuCssVars:a,handleFilterChange:g,handleFilterMenuConfirm:v,handleFilterMenuCancel:_}},render(){let{mergedTheme:t,mergedClsPrefix:n,handleFilterMenuCancel:r,filterIconPopoverProps:i}=this;return L(),W(Rc,I({show:this.showPopover,onUpdateShow:e=>this.showPopover=e,trigger:`click`,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,placement:`bottom`},i,{style:{padding:0}}),{trigger:()=>{let{mergedRenderFilter:e}=this;if(e)return L(),W(Qle,{key:1,"data-data-table-filter":!0,render:e,active:this.active,show:this.showPopover},null,8,[`render`,`active`,`show`]);let{renderFilterIcon:t}=this.column;return L(),H(`div`,{"data-data-table-filter":!0,class:P([`${n}-data-table-filter`,{[`${n}-data-table-filter--active`]:this.active,[`${n}-data-table-filter--show`]:this.showPopover}])},[t?(L(),H(K,{key:0},[G(()=>t({active:this.active,show:this.showPopover}))],64)):(L(),W(wt,{key:1,clsPrefix:n},{default:()=>(L(),W(Xle))},1032,[`clsPrefix`]))],2)},default:()=>{let{renderFilterMenu:t}=this.column;return t?t({hide:r}):(L(),W(Zle,{key:2,style:e(this.filterMenuCssVars),radioGroupName:String(this.column.key),multiple:this.filterMultiple,value:this.mergedFilterValue,options:this.options,column:this.column,onChange:this.handleFilterChange,onClear:this.handleFilterMenuCancel,onConfirm:this.handleFilterMenuConfirm},null,8,[`style`,`radioGroupName`,`multiple`,`value`,`options`,`column`,`onChange`,`onClear`,`onConfirm`]))}},1040,[`show`,`onUpdateShow`,`theme`,`themeOverrides`])}}),tue=[`onMousedown`],nue=Y({name:`ColumnResizeButton`,props:{onResizeStart:Function,onResize:Function,onResizeEnd:Function},setup(e){let{mergedClsPrefixRef:t}=pe(sp),n=N(!1),r=0;function i(e){return e.clientX}function a(t){t.preventDefault();let a=n.value;r=i(t),n.value=!0,a||(kn(`mousemove`,window,o),kn(`mouseup`,window,s),e.onResizeStart?.())}function o(t){e.onResize?.(i(t)-r)}function s(){n.value=!1,e.onResizeEnd?.(),xn(`mousemove`,window,o),xn(`mouseup`,window,s)}return se(()=>{xn(`mousemove`,window,o),xn(`mouseup`,window,s)}),{mergedClsPrefix:t,active:n,handleMousedown:a}},render(){let{mergedClsPrefix:e}=this;return L(),H(`span`,{"data-data-table-resizable":!0,class:P([`${e}-data-table-resize-button`,this.active&&`${e}-data-table-resize-button--active`]),onMousedown:this.handleMousedown},null,42,tue)}}),rue=Y({name:`ArrowDown`,render(){return(()=>{let e=Ye(`bd1a1948a64f963c`);return e[0]||=q(`svg`,{viewBox:`0 0 28 28`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},[q(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},[q(`g`,{"fill-rule":`nonzero`},[q(`path`,{d:`M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z`})])])],-1)})()}}),iue=Y({name:`DataTableRenderSorter`,props:{render:{type:Function,required:!0},order:{type:[String,Boolean],default:!1}},render(){let{render:e,order:t}=this;return e({order:t})}}),aue=Y({name:`SortIcon`,props:{column:{type:Object,required:!0}},setup(e){let{mergedComponentPropsRef:t}=mn(),{mergedSortStateRef:n,mergedClsPrefixRef:r}=pe(sp),i=V(()=>n.value.find(t=>t.columnKey===e.column.key)),a=V(()=>i.value!==void 0);return{mergedClsPrefix:r,active:a,mergedSortOrder:V(()=>{let{value:e}=i;return e&&a.value?e.order:!1}),mergedRenderSorter:V(()=>t?.value?.DataTable?.renderSorter||e.column.renderSorter)}},render(){let{mergedRenderSorter:e,mergedSortOrder:t,mergedClsPrefix:n}=this,{renderSorterIcon:r}=this.column;return e?(L(),W(iue,{key:1,render:e,order:t},null,8,[`render`,`order`])):(L(),H(`span`,{key:2,class:P([`${n}-data-table-sorter`,t===`ascend`&&`${n}-data-table-sorter--asc`,t===`descend`&&`${n}-data-table-sorter--desc`])},[r?(L(),H(K,{key:0},[G(()=>r({order:t}))],64)):(L(),W(wt,{key:1,clsPrefix:n},{default:()=>(L(),W(rue))},1032,[`clsPrefix`]))],2))}}),Vp=`_n_all__`,Hp=`_n_none__`;function oue(e,t,n,r){return e?i=>{for(let a of e)switch(i){case Vp:n(!0);return;case Hp:r(!0);return;default:if(typeof a==`object`&&a.key===i){a.onSelect(t.value);return}}}:()=>{}}function sue(e,t){return e?e.map(e=>{switch(e){case`all`:return{label:t.checkTableAll,key:Vp};case`none`:return{label:t.uncheckTableAll,key:Hp};default:return e}}):[]}var cue=Y({name:`DataTableSelectionMenu`,props:{clsPrefix:{type:String,required:!0}},setup(e){let{props:t,localeRef:n,checkOptionsRef:r,rawPaginatedDataRef:i,doCheckAll:a,doUncheckAll:o}=pe(sp),s=V(()=>oue(r.value,i,a,o)),c=V(()=>sue(r.value,n.value));return()=>{let{clsPrefix:n}=e;return L(),W(jp,{theme:t.theme?.peers?.Dropdown,themeOverrides:t.themeOverrides?.peers?.Dropdown,options:c.value,onSelect:s.value},{default:()=>(L(),W(wt,{clsPrefix:n,class:P(`${n}-data-table-check-extra`)},{default:()=>(L(),W(_r))},1032,[`clsPrefix`,`class`]))},1032,[`theme`,`themeOverrides`,`options`,`onSelect`])}}}),lue=[`data-n-id`],uue=[`colspan`],due={style:{position:`relative`}},fue=[`data-n-id`],pue=[`onScroll`];function Up(e){return typeof e.title==`function`?e.title(e):e.title}var mue=Y({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},width:String},render(){let{clsPrefix:t,id:n,cols:r,width:i}=this;return L(),H(`table`,{style:e({tableLayout:`fixed`,width:i}),class:P(`${t}-data-table-table`)},[q(`colgroup`,null,[G(()=>r.map(t=>(L(),H(`col`,{key:t.key,style:e(t.style)},null,4))))]),q(`thead`,{"data-n-id":n,class:P(`${t}-data-table-thead`)},[G(()=>this.$slots.default?.())],10,lue)],6)}}),Wp=Y({name:`DataTableHeader`,props:{discrete:{type:Boolean,default:!0}},setup(){let{mergedClsPrefixRef:e,scrollXRef:t,fixedColumnLeftMapRef:n,fixedColumnRightMapRef:r,mergedCurrentPageRef:i,allRowsCheckedRef:a,someRowsCheckedRef:o,rowsRef:s,colsRef:c,mergedThemeRef:l,checkOptionsRef:u,mergedSortStateRef:d,componentId:f,mergedTableLayoutRef:p,headerCheckboxDisabledRef:m,virtualScrollHeaderRef:h,headerHeightRef:g,onUnstableColumnResize:_,doUpdateResizableWidth:v,handleTableHeaderScroll:y,deriveNextSorter:b,doUncheckAll:x,doCheckAll:S}=pe(sp),C=N(),w=N({});function T(e){return w.value[e]?.getBoundingClientRect().width}function E(){a.value?x():S()}function D(e,t){if(ts(e,`dataTableFilter`)||ts(e,`dataTableResizable`)||!Ip(t))return;let n=qle(t,d.value.find(e=>e.columnKey===t.key)||null);b(n)}let O=new Map;function k(e){O.set(e.key,T(e.key))}function A(e,t){let n=O.get(e.key);if(n===void 0)return;let r=n+t,i=Wle(r,e.minWidth,e.maxWidth);_(r,i,e,T),v(e,i)}return{cellElsRef:w,componentId:f,mergedSortState:d,mergedClsPrefix:e,scrollX:t,fixedColumnLeftMap:n,fixedColumnRightMap:r,currentPage:i,allRowsChecked:a,someRowsChecked:o,rows:s,cols:c,mergedTheme:l,checkOptions:u,mergedTableLayout:p,headerCheckboxDisabled:m,headerHeight:g,virtualScrollHeader:h,virtualListRef:C,handleCheckboxUpdateChecked:E,handleColHeaderClick:D,handleTableHeaderScroll:y,handleColumnResizeStart:k,handleColumnResize:A}},render(){let{cellElsRef:t,mergedClsPrefix:n,fixedColumnLeftMap:r,fixedColumnRightMap:i,currentPage:a,allRowsChecked:o,someRowsChecked:s,rows:c,cols:l,mergedTheme:u,checkOptions:d,componentId:f,discrete:p,mergedTableLayout:m,headerCheckboxDisabled:h,mergedSortState:g,virtualScrollHeader:_,handleColHeaderClick:v,handleCheckboxUpdateChecked:y,handleColumnResizeStart:b,handleColumnResize:x}=this,S=!1,C=(c,l,f)=>c.map(({column:c,colIndex:p,colSpan:m,rowSpan:_,isLast:C})=>{let w=Np(c),{ellipsis:T}=c;!S&&T&&(S=!0);let E=()=>c.type===`selection`?c.multiple===!1?null:(L(),H(K,{key:1},[(L(),W(Kd,{key:a,privateInsideTable:!0,checked:o,indeterminate:s,disabled:h,onUpdateChecked:y},null,8,[`checked`,`indeterminate`,`disabled`,`onUpdateChecked`])),d?(L(),W(cue,{key:0,clsPrefix:n},null,8,[`clsPrefix`])):G(()=>null)],64)):(L(),H(K,null,[q(`div`,{class:P(`${n}-data-table-th__title-wrapper`)},[q(`div`,{class:P(`${n}-data-table-th__title`)},[T===!0||T&&!T.tooltip?(L(),H(`div`,{key:0,class:P(`${n}-data-table-th__ellipsis`)},[G(()=>Up(c))],2)):(L(),H(K,{key:1},[T&&typeof T==`object`?(L(),W(yp,I({key:0},T,{theme:u.peers.Ellipsis,themeOverrides:u.peerOverrides.Ellipsis}),{default:()=>Up(c)},1040,[`theme`,`themeOverrides`])):(L(),H(K,{key:1},[G(()=>Up(c))],64))],64))],2),Ip(c)?(L(),W(aue,{key:0,column:c},null,8,[`column`])):G(()=>null)],2),Rp(c)?(L(),W(eue,{key:0,column:c,options:c.filterOptions},null,8,[`column`,`options`])):G(()=>null),Lp(c)?(L(),W(nue,{key:2,onResizeStart:()=>{b(c)},onResize:e=>{x(c,e)}},null,8,[`onResizeStart`,`onResize`])):G(()=>null)],64)),D=w in r,O=w in i,k=l&&!c.fixed?`div`:`th`;return L(),W(k,{ref:e=>t[w]=e,key:w,style:e([l&&!c.fixed?{position:`absolute`,left:mt(l(p)),top:0,bottom:0}:{left:mt(r[w]?.start),right:mt(i[w]?.start)},{width:mt(c.width),textAlign:c.titleAlign||c.align,height:f}]),colspan:m,rowspan:_,"data-col-key":w,class:P([`${n}-data-table-th`,(D||O)&&`${n}-data-table-th--fixed-${D?`left`:`right`}`,{[`${n}-data-table-th--sorting`]:Bp(c,g),[`${n}-data-table-th--filterable`]:Rp(c),[`${n}-data-table-th--sortable`]:Ip(c),[`${n}-data-table-th--selection`]:c.type===`selection`,[`${n}-data-table-th--last`]:C},c.className]),onClick:c.type!==`selection`&&c.type!==`expand`&&!(`children`in c)?e=>{v(e,c)}:void 0},{default:ft(()=>[G(()=>E())]),_:2},1032,[`style`,`colspan`,`rowspan`,`data-col-key`,`class`,`onClick`])});if(_){let{headerHeight:t}=this,r=0,i=0;return l.forEach(e=>{e.column.fixed===`left`?r++:e.column.fixed===`right`&&i++}),L(),W(Sc,{key:2,ref:`virtualListRef`,class:P(`${n}-data-table-base-table-header`),style:e({height:mt(t)}),onScroll:this.handleTableHeaderScroll,columns:l,itemSize:t,showScrollbar:!1,items:[{}],itemResizable:!1,visibleItemsTag:mue,visibleItemsProps:{clsPrefix:n,id:f,cols:l,width:pr(this.scrollX)},renderItemWithCols:({startColIndex:e,endColIndex:n,getLeft:a})=>{let o=l.map((e,t)=>({column:e.column,isLast:t===l.length-1,colIndex:e.index,colSpan:1,rowSpan:1})).filter(({column:t},r)=>!!(e<=r&&r<=n||t.fixed)),s=C(o,a,mt(t));return s.splice(r,0,(L(),H(`th`,{colspan:l.length-r-i,style:{pointerEvents:`none`,visibility:`hidden`,height:0}},null,8,uue))),L(),H(`tr`,due,[G(()=>s)])}},{default:({renderedItemWithCols:e})=>e},1032,[`class`,`style`,`onScroll`,`columns`,`itemSize`,`visibleItemsTag`,`visibleItemsProps`,`renderItemWithCols`])}let w=(L(),H(`thead`,{class:P(`${n}-data-table-thead`),"data-n-id":f},[G(()=>c.map(e=>(L(),H(`tr`,{class:P(`${n}-data-table-tr`)},[G(()=>C(e,null,void 0))],2))))],10,fue));if(!p)return w;let{handleTableHeaderScroll:T,scrollX:E}=this;return L(),H(`div`,{class:P(`${n}-data-table-base-table-header`),onScroll:T},[q(`table`,{class:P(`${n}-data-table-table`),style:e({minWidth:pr(E),tableLayout:m})},[q(`colgroup`,null,[G(()=>l.map(t=>(L(),H(`col`,{key:t.key,style:e(t.style)},null,4))))]),G(()=>w)],6)],42,pue)}}),hue=Y({name:`DataTableBodyCheckbox`,props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){let{mergedCheckedRowKeySetRef:t,mergedInderminateRowKeySetRef:n}=pe(sp);return()=>{let{rowKey:r}=e;return L(),W(Kd,{privateInsideTable:!0,disabled:e.disabled,indeterminate:n.value.has(r),checked:t.value.has(r),onUpdateChecked:e.onUpdateChecked},null,8,[`disabled`,`indeterminate`,`checked`,`onUpdateChecked`])}}}),gue=Y({name:`DataTableBodyRadio`,props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){let{mergedCheckedRowKeySetRef:t,componentId:n}=pe(sp);return()=>{let{rowKey:r}=e;return L(),W(dp,{name:n,disabled:e.disabled,checked:t.value.has(r),onUpdateChecked:e.onUpdateChecked},null,8,[`name`,`disabled`,`checked`,`onUpdateChecked`])}}}),_ue=Y({name:`DataTableCell`,props:{clsPrefix:{type:String,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},isSummary:Boolean,mergedTheme:{type:Object,required:!0},renderCell:Function},render(){let{isSummary:e,column:t,row:n,renderCell:r}=this,i,{render:a,key:o,ellipsis:s}=t;if(i=a&&!e?a(n,this.index):e?n[o]?.value:r?r(ur(n,o),n,t):ur(n,o),s){if(typeof s==`object`){let{mergedTheme:e}=this;return t.ellipsisComponent===`performant-ellipsis`?(L(),W(Ole,I({key:1},s,{theme:e.peers.Ellipsis,themeOverrides:e.peerOverrides.Ellipsis}),{default:()=>i},1040,[`theme`,`themeOverrides`])):(L(),W(yp,I({key:2},s,{theme:e.peers.Ellipsis,themeOverrides:e.peerOverrides.Ellipsis}),{default:()=>i},1040,[`theme`,`themeOverrides`]))}return L(),H(`span`,{key:3,class:P(`${this.clsPrefix}-data-table-td__ellipsis`)},[G(()=>i)],2)}return i}}),vue=[`onClick`],Gp=Y({name:`DataTableExpandTrigger`,props:{clsPrefix:{type:String,required:!0},expanded:Boolean,loading:Boolean,onClick:{type:Function,required:!0},renderExpandIcon:{type:Function},rowData:{type:Object,required:!0}},render(){let{clsPrefix:e}=this;return(()=>{let t=Ye(`82f30e69bbec5134`);return L(),H(`div`,{class:P([`${e}-data-table-expand-trigger`,this.expanded&&`${e}-data-table-expand-trigger--expanded`]),onClick:this.onClick,onMousedown:t[0]||=e=>{e.preventDefault()}},[J(ar,null,{default:()=>this.loading?(L(),W(ir,{key:`loading`,clsPrefix:this.clsPrefix,radius:85,strokeWidth:15,scale:.88},null,8,[`clsPrefix`])):this.renderExpandIcon?this.renderExpandIcon({expanded:this.expanded,rowData:this.rowData}):(L(),W(wt,{clsPrefix:e,key:`base-icon`},{default:()=>(L(),W(eu))},1032,[`clsPrefix`]))},1024)],42,vue)})()}}),yue=[`onMouseenter`,`onMouseleave`],bue=[`data-n-id`],xue=[`colspan`],Sue=[`colspan`],Cue=[`onMouseenter`],wue=[`onMouseleave`];function Tue(e,t){let n=[];function r(e,i){e.forEach(e=>{e.children&&t.has(e.key)?(n.push({tmNode:e,striped:!1,key:e.key,index:i}),r(e.children,i)):n.push({key:e.key,tmNode:e,striped:!1,index:i})})}return e.forEach(e=>{n.push(e);let{children:i}=e.tmNode;i&&t.has(e.key)&&r(i,e.index)}),n}var Eue=Y({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},onMouseenter:Function,onMouseleave:Function},render(){let{clsPrefix:t,id:n,cols:r,onMouseenter:i,onMouseleave:a}=this;return L(),H(`table`,{style:{tableLayout:`fixed`},class:P(`${t}-data-table-table`),onMouseenter:i,onMouseleave:a},[q(`colgroup`,null,[G(()=>r.map(t=>(L(),H(`col`,{key:t.key,style:e(t.style)},null,4))))]),q(`tbody`,{"data-n-id":n,class:P(`${t}-data-table-tbody`)},[G(()=>this.$slots.default?.())],10,bue)],42,yue)}}),Due=Y({name:`DataTableBody`,props:{onResize:Function,showHeader:Boolean,flexHeight:Boolean,bodyStyle:Object},setup(e){let{slots:t,bodyWidthRef:n,mergedExpandedRowKeysRef:r,mergedClsPrefixRef:i,mergedThemeRef:a,scrollXRef:o,colsRef:s,paginatedDataRef:c,rawPaginatedDataRef:l,fixedColumnLeftMapRef:u,fixedColumnRightMapRef:d,mergedCurrentPageRef:f,rowClassNameRef:p,leftActiveFixedColKeyRef:m,leftActiveFixedChildrenColKeysRef:h,rightActiveFixedColKeyRef:g,rightActiveFixedChildrenColKeysRef:_,renderExpandRef:v,hoverKeyRef:y,summaryRef:b,mergedSortStateRef:x,virtualScrollRef:S,virtualScrollXRef:C,heightForRowRef:w,minRowHeightRef:T,componentId:E,mergedTableLayoutRef:D,childTriggerColIndexRef:O,indentRef:k,rowPropsRef:A,stripedRef:j,loadingRef:ee,onLoadRef:te,loadingKeySetRef:M,expandableRef:ne,stickyExpandedRowsRef:re,renderExpandIconRef:ie,summaryPlacementRef:P,treeMateRef:ae,scrollbarPropsRef:oe,setHeaderScrollLeft:se,doUpdateExpandedRowKeys:ce,handleTableBodyScroll:le,doCheck:ue,doUncheck:de,renderCell:fe,xScrollableRef:me,explicitlyScrollableRef:F}=pe(sp),he=pe(Zt,null),ge=N(null),_e=N(null),I=N(null),ve=V(()=>he?.mergedComponentPropsRef.value?.DataTable?.renderEmpty),ye=dr(()=>c.value.length===0),L=dr(()=>S.value&&!ye.value),be=``,xe=V(()=>new Set(r.value));function Se(e){return ae.value.getNode(e)?.rawNode}function Ce(e,t,n){let r=Se(e.key);if(!r)on(`data-table`,`fail to get row data with key ${e.key}`);else{if(n){let n=c.value.findIndex(e=>e.key===be);if(n!==-1){let i=c.value.findIndex(t=>t.key===e.key),a=Math.min(n,i),o=Math.max(n,i),s=[];c.value.slice(a,o+1).forEach(e=>{e.disabled||s.push(e.key)}),t?ue(s,!1,r):de(s,r),be=e.key;return}}t?ue(e.key,!1,r):de(e.key,r),be=e.key}}function we(e){let t=Se(e.key);t?ue(e.key,!0,t):on(`data-table`,`fail to get row data with key ${e.key}`)}function Te(){if(L.value)return Oe();let{value:e}=ge;return e?e.containerRef:null}function Ee(e,t){if(M.value.has(e))return;let{value:n}=r,i=n.indexOf(e),a=Array.from(n);~i?(a.splice(i,1),ce(a)):t&&!t.isLeaf&&!t.shallowLoaded?(M.value.add(e),te.value?.(t.rawNode).then(()=>{let{value:t}=r,n=Array.from(t);~n.indexOf(e)||n.push(e),ce(n)}).finally(()=>{M.value.delete(e)})):(a.push(e),ce(a))}function De(){y.value=null}function Oe(){let{value:e}=_e;return e?.listElRef||null}function ke(){let{value:e}=_e;return e?.itemsElRef||null}function Ae(e){le(e),ge.value?.sync()}function je(t){let{onResize:n}=e;n&&n(t),ge.value?.sync()}let Me={getScrollContainer:Te,scrollTo(e,t){S.value?_e.value?.scrollTo(e,t):ge.value?.scrollTo(e,t)}},Ne=U([({props:e})=>{let t=t=>t===null?null:U(`[data-n-id="${e.componentId}"] [data-col-key="${t}"]::after`,{boxShadow:`var(--n-box-shadow-after)`}),n=t=>t===null?null:U(`[data-n-id="${e.componentId}"] [data-col-key="${t}"]::before`,{boxShadow:`var(--n-box-shadow-before)`});return U([t(e.leftActiveFixedColKey),n(e.rightActiveFixedColKey),e.leftActiveFixedChildrenColKeys.map(e=>t(e)),e.rightActiveFixedChildrenColKeys.map(e=>n(e))])}]),Pe=!1;return ot(()=>{let{value:e}=m,{value:t}=h,{value:n}=g,{value:r}=_;if(!Pe&&e===null&&n===null)return;let i={leftActiveFixedColKey:e,leftActiveFixedChildrenColKeys:t,rightActiveFixedColKey:n,rightActiveFixedChildrenColKeys:r,componentId:E};Ne.mount({id:`n-${E}`,force:!0,props:i,anchorMetaName:rn,parent:he?.styleMountTarget}),Pe=!0}),qe(()=>{Ne.unmount({id:`n-${E}`,parent:he?.styleMountTarget})}),{bodyWidth:n,summaryPlacement:P,dataTableSlots:t,componentId:E,scrollbarInstRef:ge,virtualListRef:_e,emptyElRef:I,summary:b,mergedClsPrefix:i,mergedTheme:a,mergedRenderEmpty:ve,scrollX:o,cols:s,loading:ee,shouldDisplayVirtualList:L,empty:ye,paginatedDataAndInfo:V(()=>{let{value:e}=j,t=!1;return{data:c.value.map(e?(e,n)=>(e.isLeaf||(t=!0),{tmNode:e,key:e.key,striped:n%2==1,index:n}):(e,n)=>(e.isLeaf||(t=!0),{tmNode:e,key:e.key,striped:!1,index:n})),hasChildren:t}}),rawPaginatedData:l,fixedColumnLeftMap:u,fixedColumnRightMap:d,currentPage:f,rowClassName:p,renderExpand:v,mergedExpandedRowKeySet:xe,hoverKey:y,mergedSortState:x,virtualScroll:S,virtualScrollX:C,heightForRow:w,minRowHeight:T,mergedTableLayout:D,childTriggerColIndex:O,indent:k,rowProps:A,loadingKeySet:M,expandable:ne,stickyExpandedRows:re,renderExpandIcon:ie,scrollbarProps:oe,setHeaderScrollLeft:se,handleVirtualListScroll:Ae,handleVirtualListResize:je,handleMouseleaveTable:De,virtualListContainer:Oe,virtualListContent:ke,handleTableBodyScroll:le,handleCheckboxUpdateChecked:Ce,handleRadioUpdateChecked:we,handleUpdateExpanded:Ee,renderCell:fe,explicitlyScrollable:F,xScrollable:me,...Me}},render(){let{mergedTheme:t,scrollX:n,mergedClsPrefix:r,explicitlyScrollable:i,xScrollable:a,loadingKeySet:o,onResize:s,setHeaderScrollLeft:c,empty:l,shouldDisplayVirtualList:u}=this,d={minWidth:pr(n)||`100%`};n&&(d.width=`100%`);let f=()=>(L(),H(`div`,{class:P([`${r}-data-table-empty`,this.loading&&`${r}-data-table-empty--hide`]),style:e([this.bodyStyle,a?`position: sticky; left: 0; width: var(--n-scrollbar-current-width);`:void 0]),ref:`emptyElRef`},[G(()=>an(this.dataTableSlots.empty,()=>[this.mergedRenderEmpty?.()||(L(),W(ds,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty},null,8,[`theme`,`themeOverrides`]))]))],6));return L(),W(ln,I(this.scrollbarProps,{ref:`scrollbarInstRef`,scrollable:i||a,class:`${r}-data-table-base-table-body`,style:l?void 0:this.bodyStyle,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,contentStyle:d,container:u?this.virtualListContainer:void 0,content:u?this.virtualListContent:void 0,horizontalRailStyle:{zIndex:3},verticalRailStyle:{zIndex:3},internalExposeWidthCssVar:a&&l,xScrollable:a,onScroll:u?void 0:this.handleTableBodyScroll,internalOnUpdateScrollLeft:c,onResize:s}),{default:()=>{if(this.empty&&!this.showHeader&&(this.explicitlyScrollable||this.xScrollable))return f();let t={},n={},{cols:i,paginatedDataAndInfo:a,mergedTheme:s,fixedColumnLeftMap:c,fixedColumnRightMap:l,currentPage:u,rowClassName:p,mergedSortState:m,mergedExpandedRowKeySet:h,stickyExpandedRows:g,componentId:_,childTriggerColIndex:v,expandable:y,rowProps:b,handleMouseleaveTable:x,renderExpand:S,summary:C,handleCheckboxUpdateChecked:w,handleRadioUpdateChecked:T,handleUpdateExpanded:E,heightForRow:D,minRowHeight:O,virtualScrollX:k}=this,{length:A}=i,j,{data:ee,hasChildren:te}=a,M=te?Tue(ee,h):ee;if(C){let e=C(this.rawPaginatedData);if(Array.isArray(e)){let t=e.map((e,t)=>({isSummaryRow:!0,key:`__n_summary__${t}`,tmNode:{rawNode:e,disabled:!0},index:-1}));j=this.summaryPlacement===`top`?[...t,...M]:[...M,...t]}else{let t={isSummaryRow:!0,key:`__n_summary__`,tmNode:{rawNode:e,disabled:!0},index:-1};j=this.summaryPlacement===`top`?[t,...M]:[...M,t]}}else j=M;let ne=te?{width:mt(this.indent)}:void 0,re=[];j.forEach(e=>{S&&h.has(e.key)&&(!y||y(e.tmNode.rawNode))?re.push(e,{isExpandedRow:!0,key:`${e.key}-expand`,tmNode:e.tmNode,index:e.index}):re.push(e)});let{length:ie}=re,N={};ee.forEach(({tmNode:e},t)=>{N[t]=e.key});let ae=g?this.bodyWidth:null,oe=ae===null?void 0:`${ae}px`,se=this.virtualScrollX?`div`:`td`,ce=0,le=0;k&&i.forEach(e=>{e.column.fixed===`left`?ce++:e.column.fixed===`right`&&le++});let ue=({rowInfo:a,displayedRowIndex:d,isVirtual:f,isVirtualX:_,startColIndex:y,endColIndex:x,getLeft:C})=>{let{index:k}=a;if(`isExpandedRow`in a){let{tmNode:{key:t,rawNode:n}}=a;return L(),H(`tr`,{class:P(`${r}-data-table-tr ${r}-data-table-tr--expanded`),key:`${t}__expand`},[q(`td`,{class:P([`${r}-data-table-td`,`${r}-data-table-td--last-col`,d+1===ie&&`${r}-data-table-td--last-row`]),colspan:A},[g?(L(),H(`div`,{key:0,class:P(`${r}-data-table-expand`),style:e({width:oe})},[G(()=>S(n,k))],6)):(L(),H(K,{key:1},[G(()=>S(n,k))],64))],10,xue)],2)}let j=`isSummaryRow`in a,ee=!j&&a.striped,{tmNode:M,key:re}=a,{rawNode:ae}=M,ue=h.has(re),de=b?b(ae,k):void 0,fe=typeof p==`string`?p:Kle(ae,k,p),pe=_?i.filter((e,t)=>!!(y<=t&&t<=x||e.column.fixed)):i,me=_?mt(D?.(ae,k)||O):void 0,F=pe.map(i=>{let p=i.index;if(d in t){let e=t[d],n=e.indexOf(p);if(~n)return e.splice(n,1),null}let{column:h}=i,g=Np(i),{rowSpan:y,colSpan:b}=h,x=j?a.tmNode.rawNode[g]?.colSpan||1:b?b(ae,k):1,S=j?a.tmNode.rawNode[g]?.rowSpan||1:y?y(ae,k):1,D=p+x===A,O=d+S===ie,ee=S>1;if(ee&&(n[d]={[p]:[]}),x>1||ee)for(let e=d;e<d+S;++e){ee&&n[d][p].push(N[e]);for(let n=p;n<p+x;++n)(e!==d||n!==p)&&(e in t?t[e].push(n):t[e]=[n])}let M=ee?this.hoverKey:null,{cellProps:oe}=h,ce=oe?.(ae,k),le={"--indent-offset":``},de=h.fixed?`td`:se;return L(),W(de,I(ce,{key:g,style:[{textAlign:h.align||void 0,width:mt(h.width)},_&&{height:me},_&&!h.fixed?{position:`absolute`,left:mt(C(p)),top:0,bottom:0}:{left:mt(c[g]?.start),right:mt(l[g]?.start)},le,ce?.style||``],colspan:x,rowspan:f?void 0:S,"data-col-key":g,class:[`${r}-data-table-td`,h.className,ce?.class,j&&`${r}-data-table-td--summary`,M!==null&&n[d][p].includes(M)&&`${r}-data-table-td--hover`,Bp(h,m)&&`${r}-data-table-td--sorting`,h.fixed&&`${r}-data-table-td--fixed-${h.fixed}`,h.align&&`${r}-data-table-td--${h.align}-align`,h.type===`selection`&&`${r}-data-table-td--selection`,h.type===`expand`&&`${r}-data-table-td--expand`,D&&`${r}-data-table-td--last-col`,O&&`${r}-data-table-td--last-row`]}),{default:ft(()=>[te&&p===v?(L(),H(K,{key:0},[G(()=>[rr(le[`--indent-offset`]=j?0:a.tmNode.level,(L(),H(`div`,{class:P(`${r}-data-table-indent`),style:e(ne)},null,6))),j||a.tmNode.isLeaf?(L(),H(`div`,{key:2,class:P(`${r}-data-table-expand-placeholder`)},null,2)):(L(),W(Gp,{key:3,class:P(`${r}-data-table-expand-trigger`),clsPrefix:r,expanded:ue,rowData:ae,renderExpandIcon:this.renderExpandIcon,loading:o.has(a.key),onClick:()=>{E(re,a.tmNode)}},null,8,[`class`,`clsPrefix`,`expanded`,`rowData`,`renderExpandIcon`,`loading`,`onClick`]))])],64)):G(()=>null),h.type===`selection`?(L(),H(K,{key:2},[j?G(()=>null):(L(),H(K,{key:0},[h.multiple===!1?(L(),W(gue,{key:u,rowKey:re,disabled:a.tmNode.disabled,onUpdateChecked:()=>{T(a.tmNode)}},null,8,[`rowKey`,`disabled`,`onUpdateChecked`])):(L(),W(hue,{key:u,rowKey:re,disabled:a.tmNode.disabled,onUpdateChecked:(e,t)=>{w(a.tmNode,e,t.shiftKey)}},null,8,[`rowKey`,`disabled`,`onUpdateChecked`]))],64))],64)):(L(),H(K,{key:3},[h.type===`expand`?(L(),H(K,{key:0},[j?G(()=>null):(L(),H(K,{key:0},[!h.expandable||h.expandable?.(ae)?(L(),W(Gp,{key:0,clsPrefix:r,rowData:ae,expanded:ue,renderExpandIcon:this.renderExpandIcon,onClick:()=>{E(re,null)}},null,8,[`clsPrefix`,`rowData`,`expanded`,`renderExpandIcon`,`onClick`])):G(()=>null)],64))],64)):(L(),W(_ue,{key:1,clsPrefix:r,index:k,row:ae,column:h,isSummary:j,mergedTheme:s,renderCell:this.renderCell},null,8,[`clsPrefix`,`index`,`row`,`column`,`isSummary`,`mergedTheme`,`renderCell`]))],64))]),_:2},1040,[`style`,`colspan`,`rowspan`,`data-col-key`,`class`])});return _&&ce&&le&&F.splice(ce,0,(L(),H(`td`,{key:4,colspan:i.length-ce-le,style:{pointerEvents:`none`,visibility:`hidden`,height:0}},null,8,Sue))),L(),H(`tr`,I(de,{onMouseenter:e=>{this.hoverKey=re,de?.onMouseenter?.(e)},key:re,class:[`${r}-data-table-tr`,j&&`${r}-data-table-tr--summary`,ee&&`${r}-data-table-tr--striped`,ue&&`${r}-data-table-tr--expanded`,fe,de?.class],style:[de?.style,_&&{height:me}]}),[G(()=>F)],16,Cue)};return this.shouldDisplayVirtualList?(L(),W(Sc,{key:6,ref:`virtualListRef`,items:re,itemSize:this.minRowHeight,visibleItemsTag:Eue,visibleItemsProps:{clsPrefix:r,id:_,cols:i,onMouseleave:x},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:d,itemResizable:!k,columns:i,renderItemWithCols:k?({itemIndex:e,item:t,startColIndex:n,endColIndex:r,getLeft:i})=>ue({displayedRowIndex:e,isVirtual:!0,isVirtualX:!0,rowInfo:t,startColIndex:n,endColIndex:r,getLeft:i}):void 0},{default:({item:e,index:t,renderedItemWithCols:n})=>n||ue({rowInfo:e,displayedRowIndex:t,isVirtual:!0,isVirtualX:!1,startColIndex:0,endColIndex:0,getLeft(e){return 0}})},1032,[`items`,`itemSize`,`visibleItemsTag`,`visibleItemsProps`,`onResize`,`onScroll`,`itemsStyle`,`itemResizable`,`columns`,`renderItemWithCols`])):(L(),H(K,{key:5},[q(`table`,{class:P(`${r}-data-table-table`),onMouseleave:x,style:e({tableLayout:this.mergedTableLayout})},[q(`colgroup`,null,[G(()=>i.map(t=>(L(),H(`col`,{key:t.key,style:e(t.style)},null,4))))]),this.showHeader?(L(),W(Wp,{key:0,discrete:!1})):G(()=>null),this.empty?G(()=>null):(L(),H(`tbody`,{key:2,"data-n-id":_,class:P(`${r}-data-table-tbody`)},[G(()=>re.map((e,t)=>ue({rowInfo:e,displayedRowIndex:t,isVirtual:!1,isVirtualX:!1,startColIndex:-1,endColIndex:-1,getLeft(e){return-1}})))],10,[`data-n-id`]))],46,wue),this.empty?(L(),H(K,{key:0},[G(()=>f())],64)):G(()=>null)],64))}},1040,[`scrollable`,`class`,`style`,`theme`,`themeOverrides`,`contentStyle`,`container`,`content`,`internalExposeWidthCssVar`,`xScrollable`,`onScroll`,`internalOnUpdateScrollLeft`,`onResize`])}}),Oue=Y({name:`MainTable`,setup(){let{mergedClsPrefixRef:e,rightFixedColumnsRef:t,leftFixedColumnsRef:n,bodyWidthRef:r,maxHeightRef:i,minHeightRef:a,flexHeightRef:o,virtualScrollHeaderRef:s,syncScrollState:c,scrollXRef:l}=pe(sp),u=N(null),d=N(null),f=N(null),p=N(!(n.value.length||t.value.length)),m=V(()=>({maxHeight:pr(i.value),minHeight:pr(a.value)}));function h(e){r.value=e.contentRect.width,c(`layout`),p.value||=!0}function g(){let{value:e}=u;return e?s.value?e.virtualListRef?.listElRef||null:e.$el:null}function _(){let{value:e}=d;return e?e.getScrollContainer():null}let v={getBodyElement:_,getHeaderElement:g,scrollTo(e,t){d.value?.scrollTo(e,t)}};return ot(()=>{let{value:t}=f;if(!t)return;let n=`${e.value}-data-table-base-table--transition-disabled`;p.value?setTimeout(()=>{t.classList.remove(n)},0):t.classList.add(n)}),{maxHeight:i,mergedClsPrefix:e,selfElRef:f,headerInstRef:u,bodyInstRef:d,bodyStyle:m,flexHeight:o,handleBodyResize:h,scrollX:l,...v}},render(){let{mergedClsPrefix:e,maxHeight:t,flexHeight:n}=this,r=t===void 0&&!n;return L(),H(`div`,{class:P(`${e}-data-table-base-table`),ref:`selfElRef`},[r?G(()=>null):(L(),W(Wp,{key:1,ref:`headerInstRef`},null,512)),(L(),W(Due,{ref:`bodyInstRef`,bodyStyle:this.bodyStyle,showHeader:r,flexHeight:n,onResize:this.handleBodyResize},null,8,[`bodyStyle`,`showHeader`,`flexHeight`,`onResize`]))],2)}}),Kp=Aue(),kue=U([z(`data-table`,`
width: 100%;
font-size: var(--n-font-size);
display: flex;
flex-direction: column;
position: relative;
--n-merged-th-color: var(--n-th-color);
--n-merged-td-color: var(--n-td-color);
--n-merged-border-color: var(--n-border-color);
--n-merged-th-color-hover: var(--n-th-color-hover);
--n-merged-th-color-sorting: var(--n-th-color-sorting);
--n-merged-td-color-hover: var(--n-td-color-hover);
--n-merged-td-color-sorting: var(--n-td-color-sorting);
--n-merged-td-color-striped: var(--n-td-color-striped);
`,[z(`data-table-wrapper`,`
flex-grow: 1;
display: flex;
flex-direction: column;
`),B(`empty`,[z(`data-table-base-table`,`
height: 100%;
display: flex;
flex-direction: column;
`),z(`data-table-base-table-body`,[`height: 100%;`,z(`scrollbar-content`,`
height: 100%;
display: flex;
flex-direction: column;
`)])]),B(`flex-height`,[U(`>`,[z(`data-table-wrapper`,[U(`>`,[z(`data-table-base-table`,`
display: flex;
flex-direction: column;
flex-grow: 1;
`,[U(`>`,[z(`data-table-base-table-body`,`flex-basis: 0;`,[U(`&:last-child`,`flex-grow: 1;`)])])])])])])]),U(`>`,[z(`data-table-loading-wrapper`,`
color: var(--n-loading-color);
font-size: var(--n-loading-size);
position: absolute;
left: 50%;
top: 50%;
transform: translateX(-50%) translateY(-50%);
transition: color .3s var(--n-bezier);
display: flex;
align-items: center;
justify-content: center;
`,[pl({originalTransform:`translateX(-50%) translateY(-50%)`})])]),z(`data-table-expand-placeholder`,`
margin-right: 8px;
display: inline-block;
width: 16px;
height: 1px;
`),z(`data-table-indent`,`
display: inline-block;
height: 1px;
`),z(`data-table-expand-trigger`,`
display: inline-flex;
margin-right: 8px;
cursor: pointer;
font-size: 16px;
vertical-align: -0.2em;
position: relative;
width: 16px;
height: 16px;
color: var(--n-td-text-color);
transition: color .3s var(--n-bezier);
`,[B(`expanded`,[z(`icon`,`transform: rotate(90deg);`,[or({originalTransform:`rotate(90deg)`})]),z(`base-icon`,`transform: rotate(90deg);`,[or({originalTransform:`rotate(90deg)`})])]),z(`base-loading`,`
color: var(--n-loading-color);
transition: color .3s var(--n-bezier);
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
`,[or()]),z(`icon`,`
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
`,[or()]),z(`base-icon`,`
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
`,[or()])]),z(`data-table-thead`,`
transition: background-color .3s var(--n-bezier);
background-color: var(--n-merged-th-color);
`),z(`data-table-tr`,`
position: relative;
box-sizing: border-box;
background-clip: padding-box;
transition: background-color .3s var(--n-bezier);
`,[z(`data-table-expand`,`
position: sticky;
left: 0;
overflow: hidden;
margin: calc(var(--n-th-padding) * -1);
padding: var(--n-th-padding);
box-sizing: border-box;
`),B(`striped`,`background-color: var(--n-merged-td-color-striped);`,[z(`data-table-td`,`background-color: var(--n-merged-td-color-striped);`)]),On(`summary`,[U(`&:hover`,`background-color: var(--n-merged-td-color-hover);`,[U(`>`,[z(`data-table-td`,`background-color: var(--n-merged-td-color-hover);`)])])])]),z(`data-table-th`,`
padding: var(--n-th-padding);
position: relative;
text-align: start;
box-sizing: border-box;
background-color: var(--n-merged-th-color);
border-color: var(--n-merged-border-color);
border-bottom: 1px solid var(--n-merged-border-color);
color: var(--n-th-text-color);
transition:
border-color .3s var(--n-bezier),
color .3s var(--n-bezier),
background-color .3s var(--n-bezier);
font-weight: var(--n-th-font-weight);
`,[B(`filterable`,`
padding-right: 36px;
`,[B(`sortable`,`
padding-right: calc(var(--n-th-padding) + 36px);
`)]),Kp,B(`selection`,`
padding: 0;
text-align: center;
line-height: 0;
z-index: 3;
`),X(`title-wrapper`,`
display: flex;
align-items: center;
flex-wrap: nowrap;
max-width: 100%;
`,[X(`title`,`
flex: 1;
min-width: 0;
`)]),X(`ellipsis`,`
display: inline-block;
vertical-align: bottom;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
max-width: 100%;
`),B(`hover`,`
background-color: var(--n-merged-th-color-hover);
`),B(`sorting`,`
background-color: var(--n-merged-th-color-sorting);
`),B(`sortable`,`
cursor: pointer;
`,[X(`ellipsis`,`
max-width: calc(100% - 18px);
`),U(`&:hover`,`
background-color: var(--n-merged-th-color-hover);
`)]),z(`data-table-sorter`,`
height: var(--n-sorter-size);
width: var(--n-sorter-size);
margin-left: 4px;
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
vertical-align: -0.2em;
color: var(--n-th-icon-color);
transition: color .3s var(--n-bezier);
`,[z(`base-icon`,`transition: transform .3s var(--n-bezier)`),B(`desc`,[z(`base-icon`,`
transform: rotate(0deg);
`)]),B(`asc`,[z(`base-icon`,`
transform: rotate(-180deg);
`)]),B(`asc, desc`,`
color: var(--n-th-icon-color-active);
`)]),z(`data-table-resize-button`,`
width: var(--n-resizable-container-size);
position: absolute;
top: 0;
right: calc(var(--n-resizable-container-size) / 2);
bottom: 0;
cursor: col-resize;
user-select: none;
`,[U(`&::after`,`
width: var(--n-resizable-size);
height: 50%;
position: absolute;
top: 50%;
left: calc(var(--n-resizable-container-size) / 2);
bottom: 0;
background-color: var(--n-merged-border-color);
transform: translateY(-50%);
transition: background-color .3s var(--n-bezier);
z-index: 1;
content: '';
`),B(`active`,[U(`&::after`,`
background-color: var(--n-th-icon-color-active);
`)]),U(`&:hover::after`,`
background-color: var(--n-th-icon-color-active);
`)]),z(`data-table-filter`,`
position: absolute;
z-index: auto;
right: 0;
width: 36px;
top: 0;
bottom: 0;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
transition:
background-color .3s var(--n-bezier),
color .3s var(--n-bezier);
font-size: var(--n-filter-size);
color: var(--n-th-icon-color);
`,[U(`&:hover`,`
background-color: var(--n-th-button-color-hover);
`),B(`show`,`
background-color: var(--n-th-button-color-hover);
`),B(`active`,`
background-color: var(--n-th-button-color-hover);
color: var(--n-th-icon-color-active);
`)])]),z(`data-table-td`,`
padding: var(--n-td-padding);
text-align: start;
box-sizing: border-box;
border: none;
background-color: var(--n-merged-td-color);
color: var(--n-td-text-color);
border-bottom: 1px solid var(--n-merged-border-color);
transition:
box-shadow .3s var(--n-bezier),
background-color .3s var(--n-bezier),
border-color .3s var(--n-bezier),
color .3s var(--n-bezier);
`,[B(`expand`,[z(`data-table-expand-trigger`,`
margin-right: 0;
`)]),B(`last-row`,`
border-bottom: 0 solid var(--n-merged-border-color);
`,[U(`&::after`,`
bottom: 0 !important;
`),U(`&::before`,`
bottom: 0 !important;
`)]),B(`summary`,`
background-color: var(--n-merged-th-color);
`),B(`hover`,`
background-color: var(--n-merged-td-color-hover);
`),B(`sorting`,`
background-color: var(--n-merged-td-color-sorting);
`),X(`ellipsis`,`
display: inline-block;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
max-width: 100%;
vertical-align: bottom;
max-width: calc(100% - var(--indent-offset, -1.5) * 16px - 24px);
`),B(`selection, expand`,`
text-align: center;
padding: 0;
line-height: 0;
`),Kp]),z(`data-table-empty`,`
box-sizing: border-box;
padding: var(--n-empty-padding);
flex-grow: 1;
flex-shrink: 0;
opacity: 1;
display: flex;
align-items: center;
justify-content: center;
transition: opacity .3s var(--n-bezier);
`,[B(`hide`,`
opacity: 0;
`)]),X(`pagination`,`
margin: var(--n-pagination-margin);
display: flex;
justify-content: flex-end;
`),z(`data-table-wrapper`,`
position: relative;
opacity: 1;
transition: opacity .3s var(--n-bezier), border-color .3s var(--n-bezier);
border-top-left-radius: var(--n-border-radius);
border-top-right-radius: var(--n-border-radius);
line-height: var(--n-line-height);
`),B(`loading`,[z(`data-table-wrapper`,`
opacity: var(--n-opacity-loading);
pointer-events: none;
`)]),B(`single-column`,[z(`data-table-td`,`
border-bottom: 0 solid var(--n-merged-border-color);
`,[U(`&::after, &::before`,`
bottom: 0 !important;
`)])]),On(`single-line`,[z(`data-table-th`,`
border-right: 1px solid var(--n-merged-border-color);
`,[B(`last`,`
border-right: 0 solid var(--n-merged-border-color);
`)]),z(`data-table-td`,`
border-right: 1px solid var(--n-merged-border-color);
`,[B(`last-col`,`
border-right: 0 solid var(--n-merged-border-color);
`)])]),B(`bordered`,[z(`data-table-wrapper`,`
border: 1px solid var(--n-merged-border-color);
border-bottom-left-radius: var(--n-border-radius);
border-bottom-right-radius: var(--n-border-radius);
overflow: hidden;
`)]),z(`data-table-base-table`,[B(`transition-disabled`,[z(`data-table-th`,[U(`&::after, &::before`,`transition: none;`)]),z(`data-table-td`,[U(`&::after, &::before`,`transition: none;`)])])]),B(`bottom-bordered`,[z(`data-table-td`,[B(`last-row`,`
border-bottom: 1px solid var(--n-merged-border-color);
`)])]),z(`data-table-table`,`
font-variant-numeric: tabular-nums;
width: 100%;
word-break: break-word;
transition: background-color .3s var(--n-bezier);
border-collapse: separate;
border-spacing: 0;
background-color: var(--n-merged-td-color);
`),z(`data-table-base-table-header`,`
border-top-left-radius: calc(var(--n-border-radius) - 1px);
border-top-right-radius: calc(var(--n-border-radius) - 1px);
z-index: 3;
overflow: scroll;
flex-shrink: 0;
transition: border-color .3s var(--n-bezier);
scrollbar-width: none;
`,[U(`&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb`,`
display: none;
width: 0;
height: 0;
`)]),z(`data-table-check-extra`,`
transition: color .3s var(--n-bezier);
color: var(--n-th-icon-color);
position: absolute;
font-size: 14px;
right: -4px;
top: 50%;
transform: translateY(-50%);
z-index: 1;
`)]),z(`data-table-filter-menu`,[z(`scrollbar`,`
max-height: 240px;
`),X(`group`,`
display: flex;
flex-direction: column;
padding: 12px 12px 0 12px;
`,[z(`checkbox`,`
margin-bottom: 12px;
margin-right: 0;
`),z(`radio`,`
margin-bottom: 12px;
margin-right: 0;
`)]),X(`action`,`
padding: var(--n-action-padding);
display: flex;
flex-wrap: nowrap;
justify-content: space-evenly;
border-top: 1px solid var(--n-action-divider-color);
`,[z(`button`,[U(`&:not(:last-child)`,`
margin: var(--n-action-button-margin);
`),U(`&:last-child`,`
margin-right: 0;
`)])]),z(`divider`,`
margin: 0 !important;
`)]),me(z(`data-table`,`
--n-merged-th-color: var(--n-th-color-modal);
--n-merged-td-color: var(--n-td-color-modal);
--n-merged-border-color: var(--n-border-color-modal);
--n-merged-th-color-hover: var(--n-th-color-hover-modal);
--n-merged-td-color-hover: var(--n-td-color-hover-modal);
--n-merged-th-color-sorting: var(--n-th-color-hover-modal);
--n-merged-td-color-sorting: var(--n-td-color-hover-modal);
--n-merged-td-color-striped: var(--n-td-color-striped-modal);
`)),Tn(z(`data-table`,`
--n-merged-th-color: var(--n-th-color-popover);
--n-merged-td-color: var(--n-td-color-popover);
--n-merged-border-color: var(--n-border-color-popover);
--n-merged-th-color-hover: var(--n-th-color-hover-popover);
--n-merged-td-color-hover: var(--n-td-color-hover-popover);
--n-merged-th-color-sorting: var(--n-th-color-hover-popover);
--n-merged-td-color-sorting: var(--n-td-color-hover-popover);
--n-merged-td-color-striped: var(--n-td-color-striped-popover);
`))]);function Aue(){return[B(`fixed-left`,`
left: 0;
position: sticky;
z-index: 2;
`,[U(`&::after`,`
pointer-events: none;
content: "";
width: 36px;
display: inline-block;
position: absolute;
top: 0;
bottom: -1px;
transition: box-shadow .2s var(--n-bezier);
right: -36px;
`)]),B(`fixed-right`,`
right: 0;
position: sticky;
z-index: 1;
`,[U(`&::before`,`
pointer-events: none;
content: "";
width: 36px;
display: inline-block;
position: absolute;
top: 0;
bottom: -1px;
transition: box-shadow .2s var(--n-bezier);
left: -36px;
`)])]}function jue(e,t){let{paginatedDataRef:n,treeMateRef:r,selectionColumnRef:i}=t,a=N(e.defaultCheckedRowKeys),o=V(()=>{let{checkedRowKeys:t}=e,n=t===void 0?a.value:t;return i.value?.multiple===!1?{checkedKeys:n.slice(0,1),indeterminateKeys:[]}:r.value.getCheckedKeys(n,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})}),s=V(()=>o.value.checkedKeys),c=V(()=>o.value.indeterminateKeys),l=V(()=>new Set(s.value)),u=V(()=>new Set(c.value)),d=V(()=>{let{value:e}=l;return n.value.reduce((t,n)=>{let{key:r,disabled:i}=n;return t+(!i&&e.has(r)?1:0)},0)}),f=V(()=>n.value.filter(e=>e.disabled).length),p=V(()=>{let{length:e}=n.value,{value:t}=u;return d.value>0&&d.value<e-f.value||n.value.some(e=>t.has(e.key))}),m=V(()=>{let{length:e}=n.value;return d.value!==0&&d.value===e-f.value}),h=V(()=>n.value.length===0);function g(t,n,i){let{"onUpdate:checkedRowKeys":o,onUpdateCheckedRowKeys:s,onCheckedRowKeysChange:c}=e,l=[],{value:{getNode:u}}=r;t.forEach(e=>{let t=u(e)?.rawNode;l.push(t)}),o&&R(o,t,l,{row:n,action:i}),s&&R(s,t,l,{row:n,action:i}),c&&R(c,t,l,{row:n,action:i}),a.value=t}function _(t,n=!1,i){e.loading||g(n?Array.isArray(t)?t.slice(0,1):[t]:r.value.check(t,s.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,i,`check`)}function v(t,n){e.loading||g(r.value.uncheck(t,s.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,n,`uncheck`)}function y(t=!1){let{value:a}=i;if(!a||e.loading)return;let o=[];(t?r.value.treeNodes:n.value).forEach(e=>{e.disabled||o.push(e.key)}),g(r.value.check(o,s.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,`checkAll`)}function b(t=!1){let{value:a}=i;if(!a||e.loading)return;let o=[];(t?r.value.treeNodes:n.value).forEach(e=>{e.disabled||o.push(e.key)}),g(r.value.uncheck(o,s.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,`uncheckAll`)}return{mergedCheckedRowKeySetRef:l,mergedCheckedRowKeysRef:s,mergedInderminateRowKeySetRef:u,someRowsCheckedRef:p,allRowsCheckedRef:m,headerCheckboxDisabledRef:h,doUpdateCheckedRowKeys:g,doCheckAll:y,doUncheckAll:b,doCheck:_,doUncheck:v}}function Mue(e,t){let n=dr(()=>{for(let t of e.columns)if(t.type===`expand`)return t.renderExpand}),r=dr(()=>{let t;for(let n of e.columns)if(n.type===`expand`){t=n.expandable;break}return t}),a=N(e.defaultExpandAll?n?.value?(()=>{let e=[];return t.value.treeNodes.forEach(t=>{r.value?.(t.rawNode)&&e.push(t.key)}),e})():t.value.getNonLeafKeys():e.defaultExpandedRowKeys),o=i(e,`expandedRowKeys`),s=i(e,`stickyExpandedRows`),c=lr(o,a);function l(t){let{onUpdateExpandedRowKeys:n,"onUpdate:expandedRowKeys":r}=e;n&&R(n,t),r&&R(r,t),a.value=t}return{stickyExpandedRowsRef:s,mergedExpandedRowKeysRef:c,renderExpandRef:n,expandableRef:r,doUpdateExpandedRowKeys:l}}function Nue(e,t){let n=[],r=[],i=[],a=new WeakMap,o=-1,s=0,c=!1,l=0;function u(e,a){a>o&&(n[a]=[],o=a),e.forEach(e=>{if(`children`in e)u(e.children,a+1);else{let n=`key`in e?e.key:void 0;r.push({key:Np(e),style:Gle(e,n===void 0?void 0:pr(t(n))),column:e,index:l++,width:e.width===void 0?128:Number(e.width)}),s+=1,c||=!!e.ellipsis,i.push(e)}})}u(e,0),l=0;function d(e,t){let r=0;e.forEach(e=>{if(`children`in e){let r=l,i={column:e,colIndex:l,colSpan:0,rowSpan:1,isLast:!1};d(e.children,t+1),e.children.forEach(e=>{i.colSpan+=a.get(e)?.colSpan??0}),r+i.colSpan===s&&(i.isLast=!0),a.set(e,i),n[t].push(i)}else{if(l<r){l+=1;return}let i=1;`titleColSpan`in e&&(i=e.titleColSpan??1),i>1&&(r=l+i);let c=l+i===s,u={column:e,colSpan:i,colIndex:l,rowSpan:o-t+1,isLast:c};a.set(e,u),n[t].push(u),l+=1}})}return d(e,0),{hasEllipsis:c,rows:n,cols:r,dataRelatedCols:i}}function Pue(e,t){let n=V(()=>Nue(e.columns,t));return{rowsRef:V(()=>n.value.rows),colsRef:V(()=>n.value.cols),hasEllipsisRef:V(()=>n.value.hasEllipsis),dataRelatedColsRef:V(()=>n.value.dataRelatedCols)}}function Fue(){let e=N({});function t(t){return e.value[t]}function n(t,n){Lp(t)&&`key`in t&&(e.value[t.key]=n)}function r(){e.value={}}return{getResizableWidth:t,doUpdateResizableWidth:n,clearResizableWidth:r}}function Iue(e,{mainTableInstRef:t,mergedCurrentPageRef:n,bodyWidthRef:r,maxHeightRef:i,mergedTableLayoutRef:a,mergedEmptyRef:o}){let s=V(()=>e.scrollX!==void 0||i.value!==void 0||e.flexHeight),c=V(()=>{let t=!s.value&&a.value===`auto`;return e.scrollX!==void 0||t}),l=0,u=N(),d=N(null),f=N([]),p=N(null),m=N([]),h=V(()=>pr(e.scrollX)),g=V(()=>e.columns.filter(e=>e.fixed===`left`)),_=V(()=>e.columns.filter(e=>e.fixed===`right`)),v=V(()=>{let e={},t=0;function n(r){r.forEach(r=>{let i={start:t,end:0};e[Np(r)]=i,`children`in r?(n(r.children),i.end=t):(t+=Mp(r)||0,i.end=t)})}return n(g.value),e}),y=V(()=>{let e={},t=0;function n(r){for(let i=r.length-1;i>=0;--i){let a=r[i],o={start:t,end:0};e[Np(a)]=o,`children`in a?(n(a.children),o.end=t):(t+=Mp(a)||0,o.end=t)}}return n(_.value),e});function b(){let{value:e}=g,t=0,{value:n}=v,r=null;for(let i=0;i<e.length;++i){let a=Np(e[i]);if(l>(n[a]?.start||0)-t)r=a,t=n[a]?.end||0;else break}d.value=r}function x(){f.value=[];let t=e.columns.find(e=>Np(e)===d.value);for(;t&&`children`in t;){let e=t.children.length;if(e===0)break;let n=t.children[e-1];f.value.push(Np(n)),t=n}}function S(){let{value:t}=_,n=Number(e.scrollX),{value:i}=r;if(i===null)return;let a=0,o=null,{value:s}=y;for(let e=t.length-1;e>=0;--e){let r=Np(t[e]);if(Math.round(l+(s[r]?.start||0)+i-a)<n)o=r,a=s[r]?.end||0;else break}p.value=o}function C(){m.value=[];let t=e.columns.find(e=>Np(e)===p.value);for(;t&&`children`in t&&t.children.length;){let e=t.children[0];m.value.push(Np(e)),t=e}}function w(){return{header:t.value?t.value.getHeaderElement():null,body:t.value?t.value.getBodyElement():null}}function T(){let{body:e}=w();e&&(e.scrollTop=0)}function E(){u.value===`body`?u.value=void 0:es(O,`head`)}function D(t){e.onScroll?.(t),u.value===`head`?u.value=void 0:es(O,`body`)}function O(e){let{header:t,body:n}=w();if(!n)return;if(e===`layout`)t&&(t.scrollLeft=l),n.scrollLeft=l;else if(t){if(e===`head`)l=t.scrollLeft,n.scrollLeft=l,u.value=`head`;else if(e===`body`)l=n.scrollLeft,t.scrollLeft=l,u.value=`body`;else{let e=l-t.scrollLeft;u.value=e===0?`body`:`head`,u.value===`head`?(l=t.scrollLeft,n.scrollLeft=l):(l=n.scrollLeft,t.scrollLeft=l)}}else e!==`head`&&(l=n.scrollLeft);let{value:i}=r;i!==null&&(b(),x(),S(),C())}function k(e){let{header:t}=w();t&&(t.scrollLeft=e,l=e,O(`head`))}return Te(n,()=>{T()}),Te([()=>e.virtualScroll,o],()=>{he(()=>{O(`layout`)})}),{styleScrollXRef:h,fixedColumnLeftMapRef:v,fixedColumnRightMapRef:y,leftFixedColumnsRef:g,rightFixedColumnsRef:_,leftActiveFixedColKeyRef:d,leftActiveFixedChildrenColKeysRef:f,rightActiveFixedColKeyRef:p,rightActiveFixedChildrenColKeysRef:m,syncScrollState:O,handleTableBodyScroll:D,handleTableHeaderScroll:E,setHeaderScrollLeft:k,explicitlyScrollableRef:s,xScrollableRef:c}}function qp(e){return typeof e==`object`&&typeof e.multiple==`number`&&e.multiple}function Lue(e,t){return t&&(e===void 0||e==="default"||typeof e==`object`&&e.compare==="default")?Rue(t):typeof e==`function`?e:e&&typeof e==`object`&&e.compare&&e.compare!=="default"?e.compare:!1}function Rue(e){return(t,n)=>{let r=t[e],i=n[e];return r==null?i==null?0:-1:i==null?1:typeof r==`number`&&typeof i==`number`?r-i:typeof r==`string`&&typeof i==`string`?r.localeCompare(i):0}}function zue(e,{dataRelatedColsRef:t,filteredDataRef:n}){let r=[];t.value.forEach(e=>{e.sorter!==void 0&&f(r,{columnKey:e.key,sorter:e.sorter,order:e.defaultSortOrder??!1})});let i=N(r),a=V(()=>{let e=t.value.filter(e=>e.type!==`selection`&&e.sorter!==void 0&&(e.sortOrder===`ascend`||e.sortOrder===`descend`||e.sortOrder===!1)),n=e.filter(e=>e.sortOrder!==!1);if(n.length)return n.map(e=>({columnKey:e.key,order:e.sortOrder,sorter:e.sorter}));if(e.length)return[];let{value:r}=i;return Array.isArray(r)?r:r?[r]:[]}),o=V(()=>{let e=a.value.slice().sort((e,t)=>{let n=qp(e.sorter)||0;return(qp(t.sorter)||0)-n});return e.length?n.value.slice().sort((t,n)=>{let r=0;return e.some(e=>{let{columnKey:i,sorter:a,order:o}=e,s=Lue(a,i);return s&&o&&(r=s(t.rawNode,n.rawNode),r!==0)?(r*=Ule(o),!0):!1}),r}):n.value});function s(e){let t=a.value.slice();return e&&qp(e.sorter)!==!1?(t=t.filter(e=>qp(e.sorter)!==!1),f(t,e),t):e||null}function c(e){l(s(e))}function l(t){let{"onUpdate:sorter":n,onUpdateSorter:r,onSorterChange:a}=e;n&&R(n,t),r&&R(r,t),a&&R(a,t),i.value=t}function u(e,n=`ascend`){if(!e)d();else{let r=t.value.find(t=>t.type!==`selection`&&t.type!==`expand`&&t.key===e);if(!r?.sorter)return;let i=r.sorter;c({columnKey:e,sorter:i,order:n})}}function d(){l(null)}function f(e,t){let n=e.findIndex(e=>t?.columnKey&&e.columnKey===t.columnKey);n!==void 0&&n>=0?e[n]=t:e.push(t)}return{clearSorter:d,sort:u,sortedDataRef:o,mergedSortStateRef:a,deriveNextSorter:c}}function Bue(e,{dataRelatedColsRef:t}){let n=V(()=>{let t=e=>{for(let n=0;n<e.length;++n){let r=e[n];if(`children`in r)return t(r.children);if(r.type===`selection`)return r}return null};return t(e.columns)}),r=V(()=>{let{childrenKey:t}=e;return Dl(e.data,{ignoreEmptyChildren:!0,getKey:e.rowKey,getChildren:e=>e[t],getDisabled:e=>!!n.value?.disabled?.(e)})}),i=dr(()=>{let{columns:t}=e,{length:n}=t,r=null;for(let e=0;e<n;++e){let n=t[e];if(!n.type&&r===null&&(r=e),`tree`in n&&n.tree)return e}return r||0}),a=N({}),{pagination:o}=e,s=N(o&&o.defaultPage||1),c=N(Wf(o)),l=V(()=>{let e=t.value.filter(e=>e.filterOptionValues!==void 0||e.filterOptionValue!==void 0),n={};return e.forEach(e=>{e.type!==`selection`&&e.type!==`expand`&&(e.filterOptionValues===void 0?n[e.key]=e.filterOptionValue??null:n[e.key]=e.filterOptionValues)}),Object.assign(Pp(a.value),n)}),u=V(()=>{let t=l.value,{columns:n}=e;function i(e){return(t,n)=>!!~String(n[e]).indexOf(String(t))}let{value:{treeNodes:a}}=r,o=[];return n.forEach(e=>{e.type===`selection`||e.type===`expand`||`children`in e||o.push([e.key,e])}),a?a.filter(e=>{let{rawNode:n}=e;for(let[e,r]of o){let a=t[e];if(a==null||(Array.isArray(a)||(a=[a]),!a.length))continue;let o=r.filter==="default"?i(e):r.filter;if(r&&typeof o==`function`){if(r.filterMode===`and`){if(a.some(e=>!o(e,n)))return!1}else if(a.some(e=>o(e,n)))continue;else return!1}}return!0}):[]}),{sortedDataRef:d,deriveNextSorter:f,mergedSortStateRef:p,sort:m,clearSorter:h}=zue(e,{dataRelatedColsRef:t,filteredDataRef:u});t.value.forEach(e=>{if(e.filter){let t=e.defaultFilterOptionValues;e.filterMultiple?a.value[e.key]=t||[]:t===void 0?a.value[e.key]=e.defaultFilterOptionValue??null:a.value[e.key]=t===null?[]:t}});let g=V(()=>{let{pagination:t}=e;if(t!==!1)return t.page}),_=V(()=>{let{pagination:t}=e;if(t!==!1)return t.pageSize}),v=lr(g,s),y=lr(_,c),b=dr(()=>{let t=v.value;return e.remote?t:Math.max(1,Math.min(Math.ceil(u.value.length/y.value),t))}),x=V(()=>{let{pagination:t}=e;if(t){let{pageCount:e}=t;if(e!==void 0)return e}}),S=V(()=>{if(e.remote)return r.value.treeNodes;if(!e.pagination)return d.value;let t=y.value,n=(b.value-1)*t;return d.value.slice(n,n+t)}),C=V(()=>S.value.map(e=>e.rawNode)),w=V(()=>d.value.map(e=>e.rawNode));function T(t){let{pagination:n}=e;if(n){let{onChange:e,"onUpdate:page":r,onUpdatePage:i}=n;e&&R(e,t),i&&R(i,t),r&&R(r,t),k(t)}}function E(t){let{pagination:n}=e;if(n){let{onPageSizeChange:e,"onUpdate:pageSize":r,onUpdatePageSize:i}=n;e&&R(e,t),i&&R(i,t),r&&R(r,t),A(t)}}let D=V(()=>{if(e.remote){let{pagination:t}=e;if(t){let{itemCount:e}=t;if(e!==void 0)return e}}else return u.value.length}),O=V(()=>({...e.pagination,onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":T,"onUpdate:pageSize":E,page:b.value,pageSize:y.value,pageCount:D.value===void 0?x.value:void 0,itemCount:D.value}));function k(t){let{"onUpdate:page":n,onPageChange:r,onUpdatePage:i}=e;i&&R(i,t),n&&R(n,t),r&&R(r,t),s.value=t}function A(t){let{"onUpdate:pageSize":n,onPageSizeChange:r,onUpdatePageSize:i}=e;r&&R(r,t),i&&R(i,t),n&&R(n,t),c.value=t}function j(t,n){let{onUpdateFilters:r,"onUpdate:filters":i,onFiltersChange:o}=e;r&&R(r,t,n),i&&R(i,t,n),o&&R(o,t,n),a.value=t}function ee(t,n,r,i){e.onUnstableColumnResize?.(t,n,r,i)}function te(e){k(e)}function M(){ne()}function ne(){re({})}function re(e){ie(e)}function ie(e){e?e&&(a.value=Pp(e)):a.value={}}return{treeMateRef:r,mergedCurrentPageRef:b,mergedPaginationRef:O,paginatedDataRef:S,rawPaginatedDataRef:C,rawSortedDataRef:w,mergedFilterStateRef:l,mergedSortStateRef:p,hoverKeyRef:N(null),selectionColumnRef:n,childTriggerColIndexRef:i,doUpdateFilters:j,deriveNextSorter:f,doUpdatePageSize:A,doUpdatePage:k,onUnstableColumnResize:ee,filter:ie,filters:re,clearFilter:M,clearFilters:ne,clearSorter:h,page:te,sort:m}}var Vue=Y({name:`DataTable`,alias:[`AdvancedTable`],props:op,slots:Object,setup(e,{slots:t}){let{mergedBorderedRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:a,mergedRtlRef:o,mergedComponentPropsRef:s}=mn(e),c=vn(`DataTable`,o,r),l=V(()=>e.size||s?.value?.DataTable?.size||`medium`),u=V(()=>{let{bottomBordered:t}=e;return n.value?!1:t===void 0||t}),d=$e(`DataTable`,`-data-table`,kue,ap,e,r),f=N(null),p=N(null),{getResizableWidth:m,clearResizableWidth:h,doUpdateResizableWidth:g}=Fue(),{rowsRef:_,colsRef:v,dataRelatedColsRef:y,hasEllipsisRef:b}=Pue(e,m),{treeMateRef:x,mergedCurrentPageRef:S,paginatedDataRef:C,rawPaginatedDataRef:w,rawSortedDataRef:T,selectionColumnRef:E,hoverKeyRef:D,mergedPaginationRef:O,mergedFilterStateRef:k,mergedSortStateRef:A,childTriggerColIndexRef:j,doUpdatePage:ee,doUpdateFilters:te,onUnstableColumnResize:M,deriveNextSorter:ne,filter:re,filters:ie,clearFilter:P,clearFilters:ae,clearSorter:oe,page:se,sort:ce}=Bue(e,{dataRelatedColsRef:y}),le=V(()=>C.value.length===0),ue=t=>{let{fileName:n=`data.csv`,keepOriginalData:r=!1}=t||{},i=r?e.data:w.value,a=Yle(e.columns,i,e.getCsvCell,e.getCsvHeader),o=new Blob([a],{type:`text/csv;charset=utf-8`}),s=URL.createObjectURL(o);lie(s,n.endsWith(`.csv`)?n:`${n}.csv`),URL.revokeObjectURL(s)},{doCheckAll:de,doUncheckAll:pe,doCheck:me,doUncheck:F,headerCheckboxDisabledRef:he,someRowsCheckedRef:ge,allRowsCheckedRef:_e,mergedCheckedRowKeySetRef:I,mergedInderminateRowKeySetRef:ve}=jue(e,{selectionColumnRef:E,treeMateRef:x,paginatedDataRef:C}),{stickyExpandedRowsRef:ye,mergedExpandedRowKeysRef:L,renderExpandRef:be,expandableRef:xe,doUpdateExpandedRowKeys:Se}=Mue(e,x),Ce=i(e,`maxHeight`),we=V(()=>e.virtualScroll||e.flexHeight||e.maxHeight!==void 0||b.value?`fixed`:e.tableLayout),{handleTableBodyScroll:Te,handleTableHeaderScroll:Ee,syncScrollState:De,setHeaderScrollLeft:ke,leftActiveFixedColKeyRef:Ae,leftActiveFixedChildrenColKeysRef:je,rightActiveFixedColKeyRef:Me,rightActiveFixedChildrenColKeysRef:Ne,leftFixedColumnsRef:Pe,rightFixedColumnsRef:Fe,fixedColumnLeftMapRef:Ie,fixedColumnRightMapRef:Le,xScrollableRef:Re,explicitlyScrollableRef:ze}=Iue(e,{bodyWidthRef:f,mainTableInstRef:p,mergedCurrentPageRef:S,maxHeightRef:Ce,mergedTableLayoutRef:we,mergedEmptyRef:le}),{localeRef:Be}=gr(`DataTable`);Oe(sp,{xScrollableRef:Re,explicitlyScrollableRef:ze,props:e,treeMateRef:x,renderExpandIconRef:i(e,`renderExpandIcon`),loadingKeySetRef:N(new Set),slots:t,indentRef:i(e,`indent`),childTriggerColIndexRef:j,bodyWidthRef:f,componentId:Ir(),hoverKeyRef:D,mergedClsPrefixRef:r,mergedThemeRef:d,scrollXRef:V(()=>e.scrollX),rowsRef:_,colsRef:v,paginatedDataRef:C,leftActiveFixedColKeyRef:Ae,leftActiveFixedChildrenColKeysRef:je,rightActiveFixedColKeyRef:Me,rightActiveFixedChildrenColKeysRef:Ne,leftFixedColumnsRef:Pe,rightFixedColumnsRef:Fe,fixedColumnLeftMapRef:Ie,fixedColumnRightMapRef:Le,mergedCurrentPageRef:S,someRowsCheckedRef:ge,allRowsCheckedRef:_e,mergedSortStateRef:A,mergedFilterStateRef:k,loadingRef:i(e,`loading`),rowClassNameRef:i(e,`rowClassName`),mergedCheckedRowKeySetRef:I,mergedExpandedRowKeysRef:L,mergedInderminateRowKeySetRef:ve,localeRef:Be,expandableRef:xe,stickyExpandedRowsRef:ye,rowKeyRef:i(e,`rowKey`),renderExpandRef:be,summaryRef:i(e,`summary`),virtualScrollRef:i(e,`virtualScroll`),virtualScrollXRef:i(e,`virtualScrollX`),heightForRowRef:i(e,`heightForRow`),minRowHeightRef:i(e,`minRowHeight`),virtualScrollHeaderRef:i(e,`virtualScrollHeader`),headerHeightRef:i(e,`headerHeight`),rowPropsRef:i(e,`rowProps`),stripedRef:i(e,`striped`),checkOptionsRef:V(()=>{let{value:e}=E;return e?.options}),rawPaginatedDataRef:w,filterMenuCssVarsRef:V(()=>{let{self:{actionDividerColor:e,actionPadding:t,actionButtonMargin:n}}=d.value;return{"--n-action-padding":t,"--n-action-button-margin":n,"--n-action-divider-color":e}}),onLoadRef:i(e,`onLoad`),mergedTableLayoutRef:we,maxHeightRef:Ce,minHeightRef:i(e,`minHeight`),flexHeightRef:i(e,`flexHeight`),headerCheckboxDisabledRef:he,paginationBehaviorOnFilterRef:i(e,`paginationBehaviorOnFilter`),summaryPlacementRef:i(e,`summaryPlacement`),filterIconPopoverPropsRef:i(e,`filterIconPopoverProps`),scrollbarPropsRef:i(e,`scrollbarProps`),syncScrollState:De,doUpdatePage:ee,doUpdateFilters:te,getResizableWidth:m,onUnstableColumnResize:M,clearResizableWidth:h,doUpdateResizableWidth:g,deriveNextSorter:ne,doCheck:me,doUncheck:F,doCheckAll:de,doUncheckAll:pe,doUpdateExpandedRowKeys:Se,handleTableHeaderScroll:Ee,handleTableBodyScroll:Te,setHeaderScrollLeft:ke,renderCell:i(e,`renderCell`)});let Ve={filter:re,filters:ie,clearFilters:ae,clearSorter:oe,page:se,sort:ce,clearFilter:P,downloadCsv:ue,scrollTo:(e,t)=>{p.value?.scrollTo(e,t)},getFilteredAndSortedData:()=>T.value,getCurrentPageData:()=>w.value},He=V(()=>{let e=l.value,{common:{cubicBezierEaseInOut:t},self:{borderColor:n,tdColorHover:r,tdColorSorting:i,tdColorSortingModal:a,tdColorSortingPopover:o,thColorSorting:s,thColorSortingModal:c,thColorSortingPopover:u,thColor:f,thColorHover:p,tdColor:m,tdTextColor:h,thTextColor:g,thFontWeight:_,thButtonColorHover:v,thIconColor:y,thIconColorActive:b,filterSize:x,borderRadius:S,lineHeight:C,tdColorModal:w,thColorModal:T,borderColorModal:E,thColorHoverModal:D,tdColorHoverModal:O,borderColorPopover:k,thColorPopover:A,tdColorPopover:j,tdColorHoverPopover:ee,thColorHoverPopover:te,paginationMargin:M,emptyPadding:ne,boxShadowAfter:re,boxShadowBefore:ie,sorterSize:N,resizableContainerSize:P,resizableSize:ae,loadingColor:oe,loadingSize:se,opacityLoading:ce,tdColorStriped:le,tdColorStripedModal:ue,tdColorStripedPopover:de,[tt(`fontSize`,e)]:fe,[tt(`thPadding`,e)]:pe,[tt(`tdPadding`,e)]:me}}=d.value;return{"--n-font-size":fe,"--n-th-padding":pe,"--n-td-padding":me,"--n-bezier":t,"--n-border-radius":S,"--n-line-height":C,"--n-border-color":n,"--n-border-color-modal":E,"--n-border-color-popover":k,"--n-th-color":f,"--n-th-color-hover":p,"--n-th-color-modal":T,"--n-th-color-hover-modal":D,"--n-th-color-popover":A,"--n-th-color-hover-popover":te,"--n-td-color":m,"--n-td-color-hover":r,"--n-td-color-modal":w,"--n-td-color-hover-modal":O,"--n-td-color-popover":j,"--n-td-color-hover-popover":ee,"--n-th-text-color":g,"--n-td-text-color":h,"--n-th-font-weight":_,"--n-th-button-color-hover":v,"--n-th-icon-color":y,"--n-th-icon-color-active":b,"--n-filter-size":x,"--n-pagination-margin":M,"--n-empty-padding":ne,"--n-box-shadow-before":ie,"--n-box-shadow-after":re,"--n-sorter-size":N,"--n-resizable-container-size":P,"--n-resizable-size":ae,"--n-loading-size":se,"--n-loading-color":oe,"--n-opacity-loading":ce,"--n-td-color-striped":le,"--n-td-color-striped-modal":ue,"--n-td-color-striped-popover":de,"--n-td-color-sorting":i,"--n-td-color-sorting-modal":a,"--n-td-color-sorting-popover":o,"--n-th-color-sorting":s,"--n-th-color-sorting-modal":c,"--n-th-color-sorting-popover":u}}),Ue=a?fe(`data-table`,V(()=>l.value[0]),He,e):void 0;return{mainTableInstRef:p,mergedClsPrefix:r,rtlEnabled:c,mergedTheme:d,paginatedData:C,mergedBordered:n,mergedBottomBordered:u,mergedPagination:O,mergedShowPagination:V(()=>{if(!e.pagination)return!1;if(e.paginateSinglePage)return!0;let t=O.value,{pageCount:n}=t;return n===void 0?t.itemCount&&t.pageSize&&t.itemCount>t.pageSize:n>1}),cssVars:a?void 0:He,themeClass:Ue?.themeClass,onRender:Ue?.onRender,mergedEmpty:le,...Ve}},render(){let{mergedClsPrefix:t,themeClass:n,onRender:r,$slots:i,spinProps:a}=this;return r?.(),L(),H(`div`,{class:P([`${t}-data-table`,this.rtlEnabled&&`${t}-data-table--rtl`,n,{[`${t}-data-table--bordered`]:this.mergedBordered,[`${t}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${t}-data-table--single-line`]:this.singleLine,[`${t}-data-table--single-column`]:this.singleColumn,[`${t}-data-table--loading`]:this.loading,[`${t}-data-table--flex-height`]:this.flexHeight,[`${t}-data-table--empty`]:this.mergedEmpty}]),style:e(this.cssVars)},[q(`div`,{class:P(`${t}-data-table-wrapper`)},[J(Oue,{ref:`mainTableInstRef`},null,512)],2),this.mergedShowPagination?(L(),H(`div`,{key:0,class:P(`${t}-data-table__pagination`)},[(L(),W(Kf,I({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination),null,16,[`theme`,`themeOverrides`,`disabled`]))],2)):G(()=>null),J(gn,{name:`fade-in-scale-up-transition`},{default:()=>this.loading?(L(),H(`div`,{key:1,class:P(`${t}-data-table-loading-wrapper`)},[G(()=>an(i.loading,()=>[(L(),W(ir,I({clsPrefix:t,strokeWidth:20},a),null,16,[`clsPrefix`]))]))],2)):null},1024)],6)}}),Hue={itemFontSize:`12px`,itemHeight:`36px`,itemWidth:`52px`,panelActionPadding:`8px 0`};function Jp(e){let{popoverColor:t,textColor2:n,primaryColor:r,hoverColor:i,dividerColor:a,opacityDisabled:o,boxShadow2:s,borderRadius:c,iconColor:l,iconColorDisabled:u}=e;return{...Hue,panelColor:t,panelBoxShadow:s,panelDividerColor:a,itemTextColor:n,itemTextColorActive:r,itemColorHover:i,itemOpacityDisabled:o,itemBorderRadius:c,borderRadius:c,iconColor:l,iconColorDisabled:u}}var Yp=En({name:`TimePicker`,common:_e,peers:{Scrollbar:Cn,Button:xr,Input:Sr},self:Jp}),Xp={name:`TimePicker`,common:os,peers:{Scrollbar:ss,Button:$l,Input:tl},self:Jp},Uue={itemSize:`24px`,itemCellWidth:`38px`,itemCellHeight:`32px`,scrollItemWidth:`80px`,scrollItemHeight:`40px`,panelExtraFooterPadding:`8px 12px`,panelActionPadding:`8px 12px`,calendarTitlePadding:`0`,calendarTitleHeight:`28px`,arrowSize:`14px`,panelHeaderPadding:`8px 12px`,calendarDaysHeight:`32px`,calendarTitleGridTempateColumns:`28px 28px 1fr 28px 28px`,calendarLeftPaddingDate:`6px 12px 4px 12px`,calendarLeftPaddingDatetime:`4px 12px`,calendarLeftPaddingDaterange:`6px 12px 4px 12px`,calendarLeftPaddingDatetimerange:`4px 12px`,calendarLeftPaddingMonth:`0`,calendarLeftPaddingYear:`0`,calendarLeftPaddingQuarter:`0`,calendarLeftPaddingMonthrange:`0`,calendarLeftPaddingQuarterrange:`0`,calendarLeftPaddingYearrange:`0`,calendarLeftPaddingWeek:`6px 12px 4px 12px`,calendarRightPaddingDate:`6px 12px 4px 12px`,calendarRightPaddingDatetime:`4px 12px`,calendarRightPaddingDaterange:`6px 12px 4px 12px`,calendarRightPaddingDatetimerange:`4px 12px`,calendarRightPaddingMonth:`0`,calendarRightPaddingYear:`0`,calendarRightPaddingQuarter:`0`,calendarRightPaddingMonthrange:`0`,calendarRightPaddingQuarterrange:`0`,calendarRightPaddingYearrange:`0`,calendarRightPaddingWeek:`0`};function Zp(e){let{hoverColor:t,fontSize:n,textColor2:r,textColorDisabled:i,popoverColor:a,primaryColor:o,borderRadiusSmall:s,iconColor:c,iconColorDisabled:l,textColor1:u,dividerColor:d,boxShadow2:f,borderRadius:p,fontWeightStrong:m}=e;return{...Uue,itemFontSize:n,calendarDaysFontSize:n,calendarTitleFontSize:n,itemTextColor:r,itemTextColorDisabled:i,itemTextColorActive:a,itemTextColorCurrent:o,itemColorIncluded:F(o,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:o,itemBorderRadius:s,panelColor:a,panelTextColor:r,arrowColor:c,calendarTitleTextColor:u,calendarTitleColorHover:t,calendarDaysTextColor:r,panelHeaderDividerColor:d,calendarDaysDividerColor:d,calendarDividerColor:d,panelActionDividerColor:d,panelBoxShadow:f,panelBorderRadius:p,calendarTitleFontWeight:m,scrollItemBorderRadius:p,iconColor:c,iconColorDisabled:l}}var Qp=En({name:`DatePicker`,common:_e,peers:{Input:Sr,Button:xr,TimePicker:Yp,Scrollbar:Cn},self:Zp}),Wue={name:`DatePicker`,common:os,peers:{Input:tl,Button:$l,TimePicker:Xp,Scrollbar:ss},self(e){let{popoverColor:t,hoverColor:n,primaryColor:r}=e,i=Zp(e);return i.itemColorDisabled=Ue(t,n),i.itemColorIncluded=F(r,{alpha:.15}),i.itemColorHover=Ue(t,n),i}},Gue=en(`time`,()=>(()=>{let e=Ye(`98bfb85003a52fbd`);return e[0]||=q(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},[q(`path`,{d:`M256,64C150,64,64,150,64,256s86,192,192,192,192-86,192-192S362,64,256,64Z`,style:`
fill: none;
stroke: currentColor;
stroke-miterlimit: 10;
stroke-width: 32px;
`}),q(`polyline`,{points:`256 128 256 272 352 272`,style:`
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 32px;
`})],-1)})()),$p=bn(`n-time-picker`),em={amHours:[`00`,`01`,`02`,`03`,`04`,`05`,`06`,`07`,`08`,`09`,`10`,`11`],pmHours:[`12`,`01`,`02`,`03`,`04`,`05`,`06`,`07`,`08`,`09`,`10`,`11`],hours:[`00`,`01`,`02`,`03`,`04`,`05`,`06`,`07`,`08`,`09`,`10`,`11`,`12`,`13`,`14`,`15`,`16`,`17`,`18`,`19`,`20`,`21`,`22`,`23`],minutes:`00.01.02.03.04.05.06.07.08.09.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.29.30.31.32.33.34.35.36.37.38.39.40.41.42.43.44.45.46.47.48.49.50.51.52.53.54.55.56.57.58.59`.split(`.`),seconds:`00.01.02.03.04.05.06.07.08.09.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.29.30.31.32.33.34.35.36.37.38.39.40.41.42.43.44.45.46.47.48.49.50.51.52.53.54.55.56.57.58.59`.split(`.`),period:[`AM`,`PM`]};function tm(e){return`00${e}`.slice(-2)}function nm(e,t,n){return Array.isArray(t)?(n===`am`?t.filter(e=>e<12):n===`pm`?t.filter(e=>e>=12).map(e=>e===12?12:e-12):t).map(e=>tm(e)):typeof t==`number`?n===`am`?e.filter(e=>{let n=Number(e);return n<12&&n%t===0}):n===`pm`?e.filter(e=>{let n=Number(e);return n>=12&&n%t===0}).map(e=>{let t=Number(e);return tm(t===12?12:t-12)}):e.filter(e=>Number(e)%t===0):n===`am`?e.filter(e=>Number(e)<12):n===`pm`?e.map(e=>Number(e)).filter(e=>Number(e)>=12).map(e=>tm(e===12?12:e-12)):e}function rm(e,t,n){return n?typeof n==`number`?e%n===0:n.includes(e):!0}function Kue(e,t,n){let r=nm(em[t],n).map(Number),i,a;for(let t=0;t<r.length;++t){let n=r[t];if(n===e)return n;if(n>e){a=n;break}i=n}return i===void 0?(a||Ft(`time-picker`,`Please set 'hours' or 'minutes' or 'seconds' props`),a):a===void 0||a-e>e-i?i:a}function que(e){return Pu(e)<12?`am`:`pm`}var Jue=[`data-active`,`onClick`],im=Y({name:`TimePickerPanelCol`,props:{clsPrefix:{type:String,required:!0},data:{type:Array,required:!0},activeValue:{type:[Number,String],default:null},onItemClick:Function},render(){let{activeValue:e,onItemClick:t,clsPrefix:n}=this;return this.data.map(r=>{let{label:i,disabled:a,value:o}=r,s=e===o;return L(),H(`div`,{key:i,"data-active":s?``:null,class:P([`${n}-time-picker-col__item`,s&&`${n}-time-picker-col__item--active`,a&&`${n}-time-picker-col__item--disabled`]),onClick:t&&!a?()=>{t(o)}:void 0},[G(()=>i)],10,Jue)})}}),Yue=[`onFocusin`,`onFocusout`,`onKeydown`],Xue=Y({name:`TimePickerPanel`,props:{actions:{type:Array,default:()=>[`now`,`confirm`]},showHour:{type:Boolean,default:!0},showMinute:{type:Boolean,default:!0},showSecond:{type:Boolean,default:!0},showPeriod:{type:Boolean,default:!0},isHourInvalid:Boolean,isMinuteInvalid:Boolean,isSecondInvalid:Boolean,isAmPmInvalid:Boolean,isValueInvalid:Boolean,hourValue:{type:Number,default:null},minuteValue:{type:Number,default:null},secondValue:{type:Number,default:null},amPmValue:{type:String,default:null},isHourDisabled:Function,isMinuteDisabled:Function,isSecondDisabled:Function,onHourClick:{type:Function,required:!0},onMinuteClick:{type:Function,required:!0},onSecondClick:{type:Function,required:!0},onAmPmClick:{type:Function,required:!0},onNowClick:Function,clearText:String,nowText:String,confirmText:String,transitionDisabled:Boolean,onClearClick:Function,onConfirmClick:Function,onFocusin:Function,onFocusout:Function,onFocusDetectorFocus:Function,onKeydown:Function,hours:[Number,Array],minutes:[Number,Array],seconds:[Number,Array],use12Hours:Boolean},setup(e){let{mergedThemeRef:t,mergedClsPrefixRef:n}=pe($p);return{mergedTheme:t,mergedClsPrefix:n,hours:V(()=>{let{isHourDisabled:t,hours:n,use12Hours:r,amPmValue:i}=e;if(r){let e=i??que(Date.now());return nm(em.hours,n,e).map(n=>{let r=Number(n),i=e===`pm`&&r!==12?r+12:r;return{label:n,value:i,disabled:t?t(i):!1}})}return nm(em.hours,n).map(e=>({label:e,value:Number(e),disabled:t?t(Number(e)):!1}))}),minutes:V(()=>{let{isMinuteDisabled:t,minutes:n}=e;return nm(em.minutes,n).map(n=>({label:n,value:Number(n),disabled:t?t(Number(n),e.hourValue):!1}))}),seconds:V(()=>{let{isSecondDisabled:t,seconds:n}=e;return nm(em.seconds,n).map(n=>({label:n,value:Number(n),disabled:t?t(Number(n),e.minuteValue,e.hourValue):!1}))}),amPm:V(()=>{let{isHourDisabled:t}=e,n=!0,r=!0;for(let e=0;e<12;++e)if(!t?.(e)){n=!1;break}for(let e=12;e<24;++e)if(!t?.(e)){r=!1;break}return[{label:`AM`,value:`am`,disabled:n},{label:`PM`,value:`pm`,disabled:r}]}),hourScrollRef:N(null),minuteScrollRef:N(null),secondScrollRef:N(null),amPmScrollRef:N(null)}},render(){let{mergedClsPrefix:e,mergedTheme:t}=this;return L(),H(`div`,{tabindex:0,class:P(`${e}-time-picker-panel`),onFocusin:this.onFocusin,onFocusout:this.onFocusout,onKeydown:this.onKeydown},[q(`div`,{class:P(`${e}-time-picker-cols`)},[this.showHour?(L(),H(`div`,{key:0,class:P([`${e}-time-picker-col`,this.isHourInvalid&&`${e}-time-picker-col--invalid`,this.transitionDisabled&&`${e}-time-picker-col--transition-disabled`])},[(L(),W(ln,{ref:`hourScrollRef`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar},{default:()=>[(L(),W(im,{clsPrefix:e,data:this.hours,activeValue:this.hourValue,onItemClick:this.onHourClick},null,8,[`clsPrefix`,`data`,`activeValue`,`onItemClick`])),(L(),H(`div`,{class:P(`${e}-time-picker-col__padding`)},null,2))]},1032,[`theme`,`themeOverrides`]))],2)):G(()=>null),this.showMinute?(L(),H(`div`,{key:2,class:P([`${e}-time-picker-col`,this.transitionDisabled&&`${e}-time-picker-col--transition-disabled`,this.isMinuteInvalid&&`${e}-time-picker-col--invalid`])},[(L(),W(ln,{ref:`minuteScrollRef`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar},{default:()=>[(L(),W(im,{clsPrefix:e,data:this.minutes,activeValue:this.minuteValue,onItemClick:this.onMinuteClick},null,8,[`clsPrefix`,`data`,`activeValue`,`onItemClick`])),(L(),H(`div`,{class:P(`${e}-time-picker-col__padding`)},null,2))]},1032,[`theme`,`themeOverrides`]))],2)):G(()=>null),this.showSecond?(L(),H(`div`,{key:4,class:P([`${e}-time-picker-col`,this.isSecondInvalid&&`${e}-time-picker-col--invalid`,this.transitionDisabled&&`${e}-time-picker-col--transition-disabled`])},[(L(),W(ln,{ref:`secondScrollRef`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar},{default:()=>[(L(),W(im,{clsPrefix:e,data:this.seconds,activeValue:this.secondValue,onItemClick:this.onSecondClick},null,8,[`clsPrefix`,`data`,`activeValue`,`onItemClick`])),(L(),H(`div`,{class:P(`${e}-time-picker-col__padding`)},null,2))]},1032,[`theme`,`themeOverrides`]))],2)):G(()=>null),this.use12Hours?(L(),H(`div`,{key:6,class:P([`${e}-time-picker-col`,this.isAmPmInvalid&&`${e}-time-picker-col--invalid`,this.transitionDisabled&&`${e}-time-picker-col--transition-disabled`])},[(L(),W(ln,{ref:`amPmScrollRef`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar},{default:()=>[(L(),W(im,{clsPrefix:e,data:this.amPm,activeValue:this.amPmValue,onItemClick:this.onAmPmClick},null,8,[`clsPrefix`,`data`,`activeValue`,`onItemClick`])),(L(),H(`div`,{class:P(`${e}-time-picker-col__padding`)},null,2))]},1032,[`theme`,`themeOverrides`]))],2)):G(()=>null)],2),this.actions?.length?(L(),H(`div`,{key:0,class:P(`${e}-time-picker-actions`)},[this.actions?.includes(`clear`)?(L(),W(wr,{key:0,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:`tiny`,onClick:this.onClearClick},{default:()=>this.clearText},1032,[`theme`,`themeOverrides`,`onClick`])):G(()=>null),this.actions?.includes(`now`)?(L(),W(wr,{key:2,size:`tiny`,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,onClick:this.onNowClick},{default:()=>this.nowText},1032,[`theme`,`themeOverrides`,`onClick`])):G(()=>null),this.actions?.includes(`confirm`)?(L(),W(wr,{key:4,size:`tiny`,type:`primary`,class:P(`${e}-time-picker-actions__confirm`),theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,disabled:this.isValueInvalid,onClick:this.onConfirmClick},{default:()=>this.confirmText},1032,[`class`,`theme`,`themeOverrides`,`disabled`,`onClick`])):G(()=>null)],2)):G(()=>null),(L(),W(al,{onFocus:this.onFocusDetectorFocus},null,8,[`onFocus`]))],42,Yue)}}),Zue=U([z(`time-picker`,`
z-index: auto;
position: relative;
`,[z(`time-picker-icon`,`
color: var(--n-icon-color-override);
transition: color .3s var(--n-bezier);
`),B(`disabled`,[z(`time-picker-icon`,`
color: var(--n-icon-color-disabled-override);
`)])]),z(`time-picker-panel`,`
transition:
box-shadow .3s var(--n-bezier),
background-color .3s var(--n-bezier);
outline: none;
font-size: var(--n-item-font-size);
border-radius: var(--n-border-radius);
margin: 4px 0;
min-width: 104px;
overflow: hidden;
background-color: var(--n-panel-color);
box-shadow: var(--n-panel-box-shadow);
`,[pl(),z(`time-picker-actions`,`
padding: var(--n-panel-action-padding);
align-items: center;
display: flex;
justify-content: space-evenly;
`),z(`time-picker-cols`,`
height: calc(var(--n-item-height) * 6);
display: flex;
position: relative;
transition: border-color .3s var(--n-bezier);
border-bottom: 1px solid var(--n-panel-divider-color);
`),z(`time-picker-col`,`
flex-grow: 1;
min-width: var(--n-item-width);
height: calc(var(--n-item-height) * 6);
flex-direction: column;
transition: box-shadow .3s var(--n-bezier);
`,[B(`transition-disabled`,[X(`item`,`transition: none;`,[U(`&::before`,`transition: none;`)])]),X(`padding`,`
height: calc(var(--n-item-height) * 5);
`),U(`&:first-child`,`min-width: calc(var(--n-item-width) + 4px);`,[X(`item`,[U(`&::before`,`left: 4px;`)])]),X(`item`,`
cursor: pointer;
height: var(--n-item-height);
display: flex;
align-items: center;
justify-content: center;
transition:
color .3s var(--n-bezier),
background-color .3s var(--n-bezier),
opacity .3s var(--n-bezier),
text-decoration-color .3s var(--n-bezier);
background: #0000;
text-decoration-color: #0000;
color: var(--n-item-text-color);
z-index: 0;
box-sizing: border-box;
padding-top: 4px;
position: relative;
`,[U(`&::before`,`
content: "";
transition: background-color .3s var(--n-bezier);
z-index: -1;
position: absolute;
left: 0;
right: 4px;
top: 4px;
bottom: 0;
border-radius: var(--n-item-border-radius);
`),On(`disabled`,[U(`&:hover::before`,`
background-color: var(--n-item-color-hover);
`)]),B(`active`,`
color: var(--n-item-text-color-active);
`,[U(`&::before`,`
background-color: var(--n-item-color-hover);
`)]),B(`disabled`,`
opacity: var(--n-item-opacity-disabled);
cursor: not-allowed;
`)]),B(`invalid`,[X(`item`,[B(`active`,`
text-decoration: line-through;
text-decoration-color: var(--n-item-text-color-active);
`)])])])])]);function am(e,t,n){let r=Nu(),i=ede(e,n.timeZone,n.locale??r.locale);return`formatToParts`in i?Que(i,t):$ue(i,t)}function Que(e,t){let n=e.formatToParts(t);for(let e=n.length-1;e>=0;--e)if(n[e].type===`timeZoneName`)return n[e].value}function $ue(e,t){let n=e.format(t).replace(/\u200E/g,``),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):``}function ede(e,t,n){return new Intl.DateTimeFormat(n?[n.code,`en-US`]:void 0,{timeZone:t,timeZoneName:e})}function tde(e,t){let n=ode(t);return`formatToParts`in n?rde(n,e):ide(n,e)}var nde={year:0,month:1,day:2,hour:3,minute:4,second:5};function rde(e,t){try{let n=e.formatToParts(t),r=[];for(let e=0;e<n.length;e++){let t=nde[n[e].type];t!==void 0&&(r[t]=parseInt(n[e].value,10))}return r}catch(e){if(e instanceof RangeError)return[NaN];throw e}}function ide(e,t){let n=e.format(t),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[parseInt(r[3],10),parseInt(r[1],10),parseInt(r[2],10),parseInt(r[4],10),parseInt(r[5],10),parseInt(r[6],10)]}var om={},sm=new Intl.DateTimeFormat(`en-US`,{hourCycle:`h23`,timeZone:`America/New_York`,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`}).format(new Date(`2014-06-25T04:00:00.123Z`)),ade=sm===`06/25/2014, 00:00:00`||sm===`‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00`;function ode(e){return om[e]||(om[e]=ade?new Intl.DateTimeFormat(`en-US`,{hourCycle:`h23`,timeZone:e,year:`numeric`,month:`numeric`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`}):new Intl.DateTimeFormat(`en-US`,{hour12:!1,timeZone:e,year:`numeric`,month:`numeric`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`})),om[e]}function cm(e,t,n,r,i,a,o){let s=new Date(0);return s.setUTCFullYear(e,t,n),s.setUTCHours(r,i,a,o),s}var lm=36e5,sde=6e4,um={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function dm(e,t,n){if(!e)return 0;let r=um.timezoneZ.exec(e);if(r)return 0;let i,a;if(r=um.timezoneHH.exec(e),r)return i=parseInt(r[1],10),pm(i)?-(i*lm):NaN;if(r=um.timezoneHHMM.exec(e),r){i=parseInt(r[2],10);let e=parseInt(r[3],10);return pm(i,e)?(a=Math.abs(i)*lm+e*sde,r[1]===`+`?-a:a):NaN}if(ude(e)){t=new Date(t||Date.now());let r=fm(n?t:cde(t),e);return-(n?r:lde(t,r,e))}return NaN}function cde(e){return cm(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function fm(e,t){let n=tde(e,t),r=cm(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),i=e.getTime(),a=i%1e3;return i-=a>=0?a:1e3+a,r-i}function lde(e,t,n){let r=e.getTime()-t,i=fm(new Date(r),n);if(t===i)return t;r-=i-t;let a=fm(new Date(r),n);return i===a?i:Math.max(i,a)}function pm(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var mm={};function ude(e){if(mm[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),mm[e]=!0,!0}catch{return!1}}var dde=6e4,fde={X:function(e,t,n){let r=hm(n.timeZone,e);if(r===0)return`Z`;switch(t){case`X`:return vm(r);case`XXXX`:case`XX`:return _m(r);default:return _m(r,`:`)}},x:function(e,t,n){let r=hm(n.timeZone,e);switch(t){case`x`:return vm(r);case`xxxx`:case`xx`:return _m(r);default:return _m(r,`:`)}},O:function(e,t,n){let r=hm(n.timeZone,e);switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+pde(r,`:`);default:return`GMT`+_m(r,`:`)}},z:function(e,t,n){switch(t){case`z`:case`zz`:case`zzz`:return am(`short`,e,n);default:return am(`long`,e,n)}}};function hm(e,t){let n=e?dm(e,t,!0)/dde:t?.getTimezoneOffset()??0;if(Number.isNaN(n))throw RangeError(`Invalid time zone specified: `+e);return n}function gm(e,t){let n=e<0?`-`:``,r=Math.abs(e).toString();for(;r.length<t;)r=`0`+r;return n+r}function _m(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=gm(Math.floor(r/60),2),a=gm(Math.floor(r%60),2);return n+i+t+a}function vm(e,t){return e%60==0?(e>0?`-`:`+`)+gm(Math.abs(e)/60,2):_m(e,t)}function pde(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=Math.floor(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+gm(a,2)}function ym(e){let t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+e-t}var mde=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,bm=36e5,xm=6e4,hde=2,Sm={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:mde};function Cm(e,t={}){if(arguments.length<1)throw TypeError(`1 argument required, but only `+arguments.length+` present`);if(e===null)return new Date(NaN);let n=t.additionalDigits==null?hde:Number(t.additionalDigits);if(n!==2&&n!==1&&n!==0)throw RangeError(`additionalDigits must be 0, 1 or 2`);if(e instanceof Date||typeof e==`object`&&Object.prototype.toString.call(e)===`[object Date]`)return new Date(e.getTime());if(typeof e==`number`||Object.prototype.toString.call(e)===`[object Number]`)return new Date(e);if(Object.prototype.toString.call(e)!==`[object String]`)return new Date(NaN);let r=gde(e),{year:i,restDateString:a}=_de(r.date,n),o=vde(a,i);if(o===null||isNaN(o.getTime()))return new Date(NaN);if(o){let e=o.getTime(),n=0,i;if(r.time&&(n=yde(r.time),n===null||isNaN(n)))return new Date(NaN);if(r.timeZone||t.timeZone){if(i=dm(r.timeZone||t.timeZone,new Date(e+n)),isNaN(i))return new Date(NaN)}else i=ym(new Date(e+n)),i=ym(new Date(e+n+i));return new Date(e+n+i)}return new Date(NaN)}function gde(e){let t={},n=Sm.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=Sm.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){let e=Sm.timeZone.exec(r);e?(t.time=r.replace(e[1],``),t.timeZone=e[1].trim()):t.time=r}return t}function _de(e,t){if(e){let n=Sm.YYY[t],r=Sm.YYYYY[t],i=Sm.YYYY.exec(e)||r.exec(e);if(i){let t=i[1];return{year:parseInt(t,10),restDateString:e.slice(t.length)}}if(i=Sm.YY.exec(e)||n.exec(e),i){let t=i[1];return{year:parseInt(t,10)*100,restDateString:e.slice(t.length)}}}return{year:null}}function vde(e,t){if(t===null)return null;let n,r,i;if(!e||!e.length)return n=new Date(0),n.setUTCFullYear(t),n;let a=Sm.MM.exec(e);if(a)return n=new Date(0),r=parseInt(a[1],10)-1,Em(t,r)?(n.setUTCFullYear(t,r),n):new Date(NaN);if(a=Sm.DDD.exec(e),a){n=new Date(0);let e=parseInt(a[1],10);return Sde(t,e)?(n.setUTCFullYear(t,0,e),n):new Date(NaN)}if(a=Sm.MMDD.exec(e),a){n=new Date(0),r=parseInt(a[1],10)-1;let e=parseInt(a[2],10);return Em(t,r,e)?(n.setUTCFullYear(t,r,e),n):new Date(NaN)}if(a=Sm.Www.exec(e),a)return i=parseInt(a[1],10)-1,Dm(i)?wm(t,i):new Date(NaN);if(a=Sm.WwwD.exec(e),a){i=parseInt(a[1],10)-1;let e=parseInt(a[2],10)-1;return Dm(i,e)?wm(t,i,e):new Date(NaN)}return null}function yde(e){let t,n,r=Sm.HH.exec(e);if(r)return t=parseFloat(r[1].replace(`,`,`.`)),Om(t)?t%24*bm:NaN;if(r=Sm.HHMM.exec(e),r)return t=parseInt(r[1],10),n=parseFloat(r[2].replace(`,`,`.`)),Om(t,n)?t%24*bm+n*xm:NaN;if(r=Sm.HHMMSS.exec(e),r){t=parseInt(r[1],10),n=parseInt(r[2],10);let e=parseFloat(r[3].replace(`,`,`.`));return Om(t,n,e)?t%24*bm+n*xm+e*1e3:NaN}return null}function wm(e,t,n){t||=0,n||=0;let r=new Date(0);r.setUTCFullYear(e,0,4);let i=r.getUTCDay()||7,a=t*7+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}var bde=[31,28,31,30,31,30,31,31,30,31,30,31],xde=[31,29,31,30,31,30,31,31,30,31,30,31];function Tm(e){return e%400==0||e%4==0&&e%100!=0}function Em(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;let r=Tm(e);if(r&&n>xde[t]||!r&&n>bde[t])return!1}return!0}function Sde(e,t){if(t<1)return!1;let n=Tm(e);return!(n&&t>366||!n&&t>365)}function Dm(e,t){return!(e<0||e>52||t!=null&&(t<0||t>6))}function Om(e,t,n){return!(e<0||e>=25||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}var Cde=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function wde(e,t,n={}){t=String(t);let r=t.match(Cde);if(r){let i=Cm(n.originalDate||e,n);t=r.reduce(function(e,t){if(t[0]===`'`)return e;let r=e.indexOf(t),a=e[r-1]===`'`,o=e.replace(t,`'`+fde[t[0]](i,t,n)+`'`);return a?o.substring(0,r-1)+o.substring(r+1):o},t)}return Ou(e,t,n)}function Tde(e,t,n){e=Cm(e,n);let r=dm(t,e,!0),i=new Date(e.getTime()-r),a=new Date(0);return a.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),a.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),a}function Ede(e,t,n,r){return r={...r,timeZone:t,originalDate:e},wde(Tde(e,t,{timeZone:r.timeZone}),n,r)}function km(e,t){return e===void 0?!0:Array.isArray(e)?e.every(e=>e>=0&&e<=t):e>=0&&e<=t}var Dde={...$e.props,to:Vs.propTo,bordered:{type:Boolean,default:void 0},actions:Array,defaultValue:{type:Number,default:null},defaultFormattedValue:String,placeholder:String,placement:{type:String,default:`bottom-start`},value:Number,format:{type:String,default:`HH:mm:ss`},valueFormat:String,formattedValue:String,isHourDisabled:Function,size:String,isMinuteDisabled:Function,isSecondDisabled:Function,inputReadonly:Boolean,clearable:Boolean,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:formattedValue":[Function,Array],onBlur:[Function,Array],onConfirm:[Function,Array],onClear:Function,onFocus:[Function,Array],timeZone:String,showIcon:{type:Boolean,default:!0},disabled:{type:Boolean,default:void 0},show:{type:Boolean,default:void 0},hours:{type:[Number,Array],validator:e=>km(e,23)},minutes:{type:[Number,Array],validator:e=>km(e,59)},seconds:{type:[Number,Array],validator:e=>km(e,59)},use12Hours:Boolean,stateful:{type:Boolean,default:!0},onChange:[Function,Array]},Am=Y({name:`TimePicker`,props:Dde,setup(e){let{mergedBorderedRef:t,mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:a,mergedComponentPropsRef:o}=mn(e),{localeRef:s,dateLocaleRef:c}=gr(`TimePicker`),l=mr(e,{mergedSize:t=>{let{size:n}=e;if(n)return n;let{mergedSize:r}=t||{};return r?.value?r.value:o?.value?.TimePicker?.size||`medium`}}),{mergedSizeRef:u,mergedDisabledRef:d,mergedStatusRef:f}=l,p=$e(`TimePicker`,`-time-picker`,Zue,Yp,e,n),m=zs(),h=N(null),g=N(null),_=V(()=>({locale:c.value.locale}));function v(t){return t===null?null:Dd(t,e.valueFormat||e.format,new Date,_.value).getTime()}let{defaultValue:y,defaultFormattedValue:b}=e,x=N(b===void 0?y:v(b)),S=V(()=>{let{formattedValue:t}=e;if(t!==void 0)return v(t);let{value:n}=e;return n===void 0?x.value:n}),C=V(()=>{let{timeZone:t}=e;return t?(e,n,r)=>Ede(e,t,n,r):(e,t,n)=>Ou(e,t,n)}),w=N(``);Te(()=>e.timeZone,()=>{let t=S.value;w.value=t===null?``:C.value(t,e.format,_.value)},{immediate:!0});let T=N(!1),E=i(e,`show`),D=lr(E,T),O=N(S.value),k=N(!1),A=V(()=>s.value.clear),j=V(()=>s.value.now),ee=V(()=>e.placeholder===void 0?s.value.placeholder:e.placeholder),te=V(()=>s.value.negativeText),M=V(()=>s.value.positiveText),ne=V(()=>/H|h|K|k/.test(e.format)),re=V(()=>e.format.includes(`m`)),ie=V(()=>e.format.includes(`s`)),P=V(()=>{let{value:e}=S;return e===null?null:Number(C.value(e,`HH`,_.value))}),ae=V(()=>{let{value:e}=S;return e===null?null:Number(C.value(e,`mm`,_.value))}),oe=V(()=>{let{value:e}=S;return e===null?null:Number(C.value(e,`ss`,_.value))}),se=V(()=>{let{isHourDisabled:t}=e;return P.value===null?!1:rm(P.value,`hours`,e.hours)?t?t(P.value):!1:!0}),ce=V(()=>{let{value:t}=ae,{value:n}=P;if(t===null||n===null)return!1;if(!rm(t,`minutes`,e.minutes))return!0;let{isMinuteDisabled:r}=e;return r?r(t,n):!1}),le=V(()=>{let{value:t}=ae,{value:n}=P,{value:r}=oe;if(r===null||t===null||n===null)return!1;if(!rm(r,`seconds`,e.seconds))return!0;let{isSecondDisabled:i}=e;return i?i(r,t,n):!1}),ue=V(()=>se.value||ce.value||le.value),de=V(()=>e.format.length+4),pe=V(()=>{let{value:e}=S;return e===null?null:Pu(e)<12?`am`:`pm`});function me(t,n){let{onUpdateFormattedValue:r,"onUpdate:formattedValue":i}=e;r&&R(r,t,n),i&&R(i,t,n)}function F(t){return t===null?null:C.value(t,e.valueFormat||e.format)}function ge(t){let{onUpdateValue:n,"onUpdate:value":r,onChange:i}=e,{nTriggerFormChange:a,nTriggerFormInput:o}=l,s=F(t);n&&R(n,t,s),r&&R(r,t,s),i&&R(i,t,s),me(s,t),x.value=t,a(),o()}function _e(t){let{onFocus:n}=e,{nTriggerFormFocus:r}=l;n&&R(n,t),r()}function I(t){let{onBlur:n}=e,{nTriggerFormBlur:r}=l;n&&R(n,t),r()}function ve(){let{onConfirm:t}=e;t&&R(t,S.value,F(S.value))}function ye(t){t.stopPropagation(),ge(null),je(null),e.onClear?.()}function L(){Ve({returnFocus:!0})}function be(){ge(null),je(null),Ve({returnFocus:!0})}function xe(e){e.key===`Escape`&&D.value&&Yd(e)}function Se(e){switch(e.key){case`Escape`:D.value&&(Yd(e),Ve({returnFocus:!0}));break;case`Tab`:m.shift&&e.target===g.value?.$el&&(e.preventDefault(),Ve({returnFocus:!0}))}}function Ce(){k.value=!0,he(()=>{k.value=!1})}function we(e){d.value||ts(e,`clear`)||D.value||ze()}function Ee(e){typeof e!=`string`&&(S.value===null?ge(Bu(md(Tse(new Date),e))):ge(Bu(md(S.value,e))))}function De(e){typeof e!=`string`&&(S.value===null?ge(Bu(hd(Ese(new Date),e))):ge(Bu(hd(S.value,e))))}function ke(e){typeof e!=`string`&&(S.value===null?ge(Bu(gd(ud(new Date),e))):ge(Bu(gd(S.value,e))))}function Ae(e){let{value:t}=S;if(t===null){let t=new Date,n=Pu(t);e===`pm`&&n<12?ge(Bu(md(t,n+12))):e===`am`&&n>=12&&ge(Bu(md(t,n-12))),ge(Bu(t))}else{let n=Pu(t);e===`pm`&&n<12?ge(Bu(md(t,n+12))):e===`am`&&n>=12&&ge(Bu(md(t,n-12)))}}function je(t){t===void 0&&(t=S.value),t===null?w.value=``:w.value=C.value(t,e.format,_.value)}function Me(e){Re(e)||_e(e)}function Ne(e){Re(e)||(D.value?g.value?.$el?.contains(e.relatedTarget)||(je(),I(e),Ve({returnFocus:!1})):(je(),I(e)))}function Pe(){d.value||D.value||ze()}function Fe(){d.value||(je(),Ve({returnFocus:!1}))}function Ie(){if(!g.value)return;let{hourScrollRef:e,minuteScrollRef:t,secondScrollRef:n,amPmScrollRef:r}=g.value;[e,t,n,r].forEach(e=>{if(!e)return;let t=e.contentRef?.querySelector(`[data-active]`);t&&e.scrollTo({top:t.offsetTop})})}function Le(t){T.value=t;let{onUpdateShow:n,"onUpdate:show":r}=e;n&&R(n,t),r&&R(r,t)}function Re(e){return!!(h.value?.wrapperElRef?.contains(e.relatedTarget)||g.value?.$el.contains(e.relatedTarget))}function ze(){O.value=S.value,Le(!0),he(Ie)}function Be(e){D.value&&!h.value?.wrapperElRef?.contains(vt(e))&&Ve({returnFocus:!1})}function Ve({returnFocus:e}){D.value&&(Le(!1),e&&h.value?.focus())}function He(t){if(t===``){ge(null);return}let n=Dd(t,e.format,new Date,_.value);if(w.value=t,cu(n)){let{value:e}=S;ge(Bu(e===null?n:pd(e,{hours:Pu(n),minutes:Lu(n),seconds:zu(n),milliseconds:Iu(n)})))}}function Ue(){ge(O.value),Le(!1)}function We(){let t=new Date,n={hours:Pu,minutes:Lu,seconds:zu},[r,i,a]=[`hours`,`minutes`,`seconds`].map(r=>!e[r]||rm(n[r](t),r,e[r])?n[r](t):Kue(n[r](t),r,e[r]));ge(Bu(gd(hd(md(S.value?S.value:Bu(t),r),i),a)))}function Ge(){je(),ve(),Ve({returnFocus:!0})}function Ke(e){Re(e)||(je(),I(e),Ve({returnFocus:!1}))}Te(S,e=>{je(e),Ce(),he(Ie)}),Te(D,()=>{ue.value&&ge(O.value)}),Oe($p,{mergedThemeRef:p,mergedClsPrefixRef:n});let qe={focus:()=>{h.value?.focus()},blur:()=>{h.value?.blur()}},Je=V(()=>{let{common:{cubicBezierEaseInOut:e},self:{iconColor:t,iconColorDisabled:n}}=p.value;return{"--n-icon-color-override":t,"--n-icon-color-disabled-override":n,"--n-bezier":e}}),Ye=a?fe(`time-picker-trigger`,void 0,Je,e):void 0,Xe=V(()=>{let{self:{panelColor:e,itemTextColor:t,itemTextColorActive:n,itemColorHover:r,panelDividerColor:i,panelBoxShadow:a,itemOpacityDisabled:o,borderRadius:s,itemFontSize:c,itemWidth:l,itemHeight:u,panelActionPadding:d,itemBorderRadius:f},common:{cubicBezierEaseInOut:m}}=p.value;return{"--n-bezier":m,"--n-border-radius":s,"--n-item-color-hover":r,"--n-item-font-size":c,"--n-item-height":u,"--n-item-opacity-disabled":o,"--n-item-text-color":t,"--n-item-text-color-active":n,"--n-item-width":l,"--n-panel-action-padding":d,"--n-panel-box-shadow":a,"--n-panel-color":e,"--n-panel-divider-color":i,"--n-item-border-radius":f}}),Ze=a?fe(`time-picker`,void 0,Xe,e):void 0;return{focus:qe.focus,blur:qe.blur,mergedStatus:f,mergedBordered:t,mergedClsPrefix:n,namespace:r,uncontrolledValue:x,mergedValue:S,isMounted:sr(),inputInstRef:h,panelInstRef:g,adjustedTo:Vs(e),mergedShow:D,localizedClear:A,localizedNow:j,localizedPlaceholder:ee,localizedNegativeText:te,localizedPositiveText:M,hourInFormat:ne,minuteInFormat:re,secondInFormat:ie,mergedAttrSize:de,displayTimeString:w,mergedSize:u,mergedDisabled:d,isValueInvalid:ue,isHourInvalid:se,isMinuteInvalid:ce,isSecondInvalid:le,transitionDisabled:k,hourValue:P,minuteValue:ae,secondValue:oe,amPmValue:pe,handleInputKeydown:xe,handleTimeInputFocus:Me,handleTimeInputBlur:Ne,handleNowClick:We,handleConfirmClick:Ge,handleTimeInputUpdateValue:He,handleMenuFocusOut:Ke,handleCancelClick:Ue,handleClickOutside:Be,handleTimeInputActivate:Pe,handleTimeInputDeactivate:Fe,handleHourClick:Ee,handleMinuteClick:De,handleSecondClick:ke,handleAmPmClick:Ae,handleTimeInputClear:ye,handleFocusDetectorFocus:L,handleMenuKeydown:Se,handleTriggerClick:we,mergedTheme:p,triggerCssVars:a?void 0:Je,triggerThemeClass:Ye?.themeClass,triggerOnRender:Ye?.onRender,cssVars:a?void 0:Xe,themeClass:Ze?.themeClass,onRender:Ze?.onRender,clearSelectedValue:be}},render(){let{mergedClsPrefix:t,$slots:n,triggerOnRender:r}=this;return r?.(),L(),H(`div`,{class:P([`${t}-time-picker`,this.triggerThemeClass]),style:e(this.triggerCssVars)},[J(Zs,null,{default:()=>[(L(),W(Qs,null,{default:()=>(L(),W(Fr,{ref:`inputInstRef`,status:this.mergedStatus,value:this.displayTimeString,bordered:this.mergedBordered,passivelyActivated:!0,attrSize:this.mergedAttrSize,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,stateful:this.stateful,size:this.mergedSize,placeholder:this.localizedPlaceholder,clearable:this.clearable,disabled:this.mergedDisabled,textDecoration:this.isValueInvalid?`line-through`:void 0,onFocus:this.handleTimeInputFocus,onBlur:this.handleTimeInputBlur,onActivate:this.handleTimeInputActivate,onDeactivate:this.handleTimeInputDeactivate,onUpdateValue:this.handleTimeInputUpdateValue,onClear:this.handleTimeInputClear,internalDeactivateOnEnter:!0,internalForceFocus:this.mergedShow,readonly:this.inputReadonly||this.mergedDisabled,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown},_n(this.showIcon?{[this.clearable?`clear-icon-placeholder`:`suffix`]:()=>(L(),W(wt,{clsPrefix:t,class:P(`${t}-time-picker-icon`)},{default:()=>n.icon?n.icon():(L(),W(Gue,{key:1}))},1032,[`clsPrefix`,`class`]))}:null),1032,[`status`,`value`,`bordered`,`passivelyActivated`,`attrSize`,`theme`,`themeOverrides`,`stateful`,`size`,`placeholder`,`clearable`,`disabled`,`textDecoration`,`onFocus`,`onBlur`,`onActivate`,`onDeactivate`,`onUpdateValue`,`onClear`,`internalDeactivateOnEnter`,`internalForceFocus`,`readonly`,`onClick`,`onKeydown`]))},1024)),(L(),W(gc,{teleportDisabled:this.adjustedTo===Vs.tdkey,show:this.mergedShow,to:this.adjustedTo,containerClass:this.namespace,placement:this.placement},{_:1,default:Nt(()=>(L(),W(gn,{name:`fade-in-scale-up-transition`,appear:this.isMounted},{_:1,default:Nt(()=>this.mergedShow?(this.onRender?.(),Se((L(),W(Xue,{key:2,ref:`panelInstRef`,actions:this.actions,class:P(this.themeClass),style:e(this.cssVars),seconds:this.seconds,minutes:this.minutes,hours:this.hours,transitionDisabled:this.transitionDisabled,hourValue:this.hourValue,showHour:this.hourInFormat,isHourInvalid:this.isHourInvalid,isHourDisabled:this.isHourDisabled,minuteValue:this.minuteValue,showMinute:this.minuteInFormat,isMinuteInvalid:this.isMinuteInvalid,isMinuteDisabled:this.isMinuteDisabled,secondValue:this.secondValue,amPmValue:this.amPmValue,showSecond:this.secondInFormat,isSecondInvalid:this.isSecondInvalid,isSecondDisabled:this.isSecondDisabled,isValueInvalid:this.isValueInvalid,clearText:this.localizedClear,nowText:this.localizedNow,confirmText:this.localizedPositiveText,use12Hours:this.use12Hours,onFocusout:this.handleMenuFocusOut,onKeydown:this.handleMenuKeydown,onHourClick:this.handleHourClick,onMinuteClick:this.handleMinuteClick,onSecondClick:this.handleSecondClick,onAmPmClick:this.handleAmPmClick,onNowClick:this.handleNowClick,onConfirmClick:this.handleConfirmClick,onClearClick:this.clearSelectedValue,onFocusDetectorFocus:this.handleFocusDetectorFocus},null,8,`actions.class.style.seconds.minutes.hours.transitionDisabled.hourValue.showHour.isHourInvalid.isHourDisabled.minuteValue.showMinute.isMinuteInvalid.isMinuteDisabled.secondValue.amPmValue.showSecond.isSecondInvalid.isSecondDisabled.isValueInvalid.clearText.nowText.confirmText.use12Hours.onFocusout.onKeydown.onHourClick.onMinuteClick.onSecondClick.onAmPmClick.onNowClick.onConfirmClick.onClearClick.onFocusDetectorFocus`.split(`.`))),[[tc,this.handleClickOutside,void 0,{capture:!0}]])):null)},8,[`appear`])))},8,[`teleportDisabled`,`show`,`to`,`containerClass`,`placement`]))]},1024)],6)}}),Ode={...$e.props,to:Vs.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,fastYearSelect:Boolean,fastMonthSelect:Boolean,updateValueOnClose:Boolean,calendarDayFormat:String,calendarHeaderYearFormat:String,calendarHeaderMonthFormat:String,calendarHeaderMonthYearSeparator:{type:String,default:` `},calendarHeaderMonthBeforeYear:{type:Boolean,default:void 0},defaultValue:[Number,Array],defaultFormattedValue:[String,Array],defaultTime:[Number,String,Array,Function],disabled:{type:Boolean,default:void 0},placement:{type:String,default:`bottom-start`},value:[Number,Array],formattedValue:[String,Array],size:String,type:{type:String,default:`date`},valueFormat:String,separator:String,placeholder:String,startPlaceholder:String,endPlaceholder:String,format:String,dateFormat:String,timePickerFormat:String,actions:Array,shortcuts:Object,isDateDisabled:Function,isTimeDisabled:Function,show:{type:Boolean,default:void 0},panel:Boolean,ranges:Object,firstDayOfWeek:Number,inputReadonly:Boolean,closeOnSelect:Boolean,status:String,timePickerProps:[Object,Array],onClear:Function,onConfirm:Function,defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,monthFormat:{type:String,default:`M`},yearFormat:{type:String,default:`y`},quarterFormat:{type:String,default:`'Q'Q`},yearRange:{type:Array,default:()=>[1901,2100]},"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:formattedValue":[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onNextMonth:Function,onPrevMonth:Function,onNextYear:Function,onPrevYear:Function,onChange:[Function,Array]},jm=en(`date`,()=>(()=>{let e=Ye(`f7691c9cefac87a2`);return e[0]||=q(`svg`,{width:`28px`,height:`28px`,viewBox:`0 0 28 28`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},[q(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},[q(`g`,{"fill-rule":`nonzero`},[q(`path`,{d:`M21.75,3 C23.5449254,3 25,4.45507456 25,6.25 L25,21.75 C25,23.5449254 23.5449254,25 21.75,25 L6.25,25 C4.45507456,25 3,23.5449254 3,21.75 L3,6.25 C3,4.45507456 4.45507456,3 6.25,3 L21.75,3 Z M23.5,9.503 L4.5,9.503 L4.5,21.75 C4.5,22.7164983 5.28350169,23.5 6.25,23.5 L21.75,23.5 C22.7164983,23.5 23.5,22.7164983 23.5,21.75 L23.5,9.503 Z M21.75,4.5 L6.25,4.5 C5.28350169,4.5 4.5,5.28350169 4.5,6.25 L4.5,8.003 L23.5,8.003 L23.5,6.25 C23.5,5.28350169 22.7164983,4.5 21.75,4.5 Z`})])])],-1)})()),kde=en(`to`,()=>(()=>{let e=Ye(`43f1fdbeeedf88df`);return e[0]||=q(`svg`,{viewBox:`0 0 20 20`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},[q(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},[q(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},[q(`path`,{d:`M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z`})])])],-1)})()),Mm=bn(`n-date-picker`),Nm={active:Boolean,dateFormat:String,fastYearSelect:Boolean,fastMonthSelect:Boolean,calendarDayFormat:String,calendarHeaderYearFormat:String,calendarHeaderMonthFormat:String,calendarHeaderMonthYearSeparator:{type:String,required:!0},calendarHeaderMonthBeforeYear:{type:Boolean,default:void 0},timePickerFormat:{type:String,value:`HH:mm:ss`},value:{type:[Array,Number],default:null},shortcuts:Object,defaultTime:[Number,String,Array,Function],inputReadonly:Boolean,onClear:Function,onConfirm:Function,onClose:Function,onTabOut:Function,onKeydown:Function,actions:Array,onSelectYear:Function,onSelectMonth:Function,onUpdateValue:{type:Function,required:!0},themeClass:String,onRender:Function,panel:Boolean,onNextMonth:Function,onPrevMonth:Function,onNextYear:Function,onPrevYear:Function};function Pm(e){let{dateLocaleRef:t,timePickerSizeRef:n,timePickerPropsRef:r,localeRef:i,mergedClsPrefixRef:a,mergedThemeRef:o}=pe(Mm),s=V(()=>({locale:t.value.locale})),c=N(null),l=zs();function u(){let{onClear:t}=e;t&&t()}function d(){let{onConfirm:t,value:n}=e;t&&t(n)}function f(t,n){let{onUpdateValue:r}=e;r(t,n)}function p(t=!1){let{onClose:n}=e;n&&n(t)}function m(){let{onTabOut:t}=e;t&&t()}function h(){f(null,!0),p(!0),u()}function g(){m()}function _(){(e.active||e.panel)&&he(()=>{let{value:e}=c;if(!e)return;let t=e.querySelectorAll(`[data-n-date]`);t.forEach(e=>{e.classList.add(`transition-disabled`)}),e.offsetWidth,t.forEach(e=>{e.classList.remove(`transition-disabled`)})})}function v(e){e.key===`Tab`&&e.target===c.value&&l.shift&&(e.preventDefault(),m())}function y(e){let{value:t}=c;l.tab&&e.target===t&&t?.contains(e.relatedTarget)&&m()}let b=null,x=!1;function S(){b=e.value,x=!0}function C(){x=!1}function w(){x&&=(f(b,!1),!1)}function T(e){return typeof e==`function`?e():e}let E=N(!1);function D(){E.value=!E.value}return{mergedTheme:o,mergedClsPrefix:a,dateFnsOptions:s,timePickerSize:n,timePickerProps:r,selfRef:c,locale:i,doConfirm:d,doClose:p,doUpdateValue:f,doTabOut:m,handleClearClick:h,handleFocusDetectorFocus:g,disableTransitionOneTick:_,handlePanelKeyDown:v,handlePanelFocus:y,cachePendingValue:S,clearPendingValue:C,restorePendingValue:w,getShortcutValue:T,handleShortcutMouseleave:w,showMonthYearPanel:E,handleOpenQuickSelectMonthPanel:D}}var Fm={...Nm,defaultCalendarStartTime:Number,actions:{type:Array,default:()=>[`now`,`clear`,`confirm`]}};function Im(e,t){let n=Pm(e),{isValueInvalidRef:r,isDateDisabledRef:i,isDateInvalidRef:a,isTimeInvalidRef:o,isDateTimeInvalidRef:s,isHourDisabledRef:c,isMinuteDisabledRef:l,isSecondDisabledRef:u,localeRef:d,firstDayOfWeekRef:f,datePickerSlots:p,yearFormatRef:m,monthFormatRef:h,quarterFormatRef:g,yearRangeRef:_}=pe(Mm),v={isValueInvalid:r,isDateDisabled:i,isDateInvalid:a,isTimeInvalid:o,isDateTimeInvalid:s,isHourDisabled:c,isMinuteDisabled:l,isSecondDisabled:u},y=V(()=>e.dateFormat||d.value.dateFormat),b=V(()=>e.calendarDayFormat||d.value.dayFormat),x=N(e.value===null||Array.isArray(e.value)?``:Ou(e.value,y.value)),S=N(e.value===null||Array.isArray(e.value)?e.defaultCalendarStartTime??Date.now():e.value),C=N(null),w=N(null),T=N(null),E=N(Date.now()),D=V(()=>Cd(S.value,e.value,E.value,f.value??d.value.firstDayOfWeek,!1,t===`week`)),O=V(()=>{let{value:t}=e;return wd(S.value,Array.isArray(t)?null:t,E.value,{monthFormat:h.value})}),k=V(()=>{let{value:t}=e;return Ed(Array.isArray(t)?null:t,E.value,{yearFormat:m.value},_)}),A=V(()=>{let{value:t}=e;return Td(S.value,Array.isArray(t)?null:t,E.value,{quarterFormat:g.value})}),j=V(()=>D.value.slice(0,7).map(e=>{let{ts:t}=e;return Ou(t,b.value,n.dateFnsOptions.value)})),ee=V(()=>Ou(S.value,e.calendarHeaderMonthFormat||d.value.monthFormat,n.dateFnsOptions.value)),te=V(()=>Ou(S.value,e.calendarHeaderYearFormat||d.value.yearFormat,n.dateFnsOptions.value)),M=V(()=>e.calendarHeaderMonthBeforeYear??d.value.monthBeforeYear);Te(S,(e,r)=>{t!==`date`&&t!==`datetime`||cd(e,r)||n.disableTransitionOneTick()}),Te(V(()=>e.value),e=>{e!==null&&!Array.isArray(e)?(x.value=Ou(e,y.value,n.dateFnsOptions.value),S.value=e):x.value=``});function ne(e){return Bu(t===`datetime`?ud(e):t===`month`?uu(e):t===`year`?du(e):t===`quarter`?lu(e):t===`week`?Jo(e,{weekStartsOn:((f.value??d.value.firstDayOfWeek)+1)%7}):ou(e))}function re(e,t){let{isDateDisabled:{value:n}}=v;return n?n(e,t):!1}function ie(t){let r=Dd(t,y.value,new Date,n.dateFnsOptions.value);if(cu(r)){if(e.value===null)n.doUpdateValue(Bu(ne(Date.now())),e.panel);else if(!Array.isArray(e.value)){let t=pd(e.value,{year:Vu(r),month:Ru(r),date:Au(r)});n.doUpdateValue(Bu(ne(Bu(t))),e.panel)}}else x.value=t}function P(){let t=Dd(x.value,y.value,new Date,n.dateFnsOptions.value);if(cu(t)){if(e.value===null)n.doUpdateValue(Bu(ne(Date.now())),!1);else if(!Array.isArray(e.value)){let r=pd(e.value,{year:Vu(t),month:Ru(t),date:Au(t)});n.doUpdateValue(Bu(ne(Bu(r))),!1)}}else me()}function ae(){x.value=``,n.handleClearClick()}function oe(){n.doUpdateValue(Bu(ne(Date.now())),!0);let r=Date.now();S.value=r,n.doClose(!0),e.panel&&(t===`month`||t===`quarter`||t===`year`)&&(n.disableTransitionOneTick(),we(r))}let se=N(null);function ce(e){e.type===`date`&&t===`week`&&(se.value=ne(Bu(e.ts)))}function le(e){return e.type===`date`&&t===`week`&&ne(Bu(e.ts))===se.value}function ue(r){if(re(r.ts,r.type===`date`?{type:`date`,year:r.dateObject.year,month:r.dateObject.month,date:r.dateObject.date}:r.type===`month`?{type:`month`,year:r.dateObject.year,month:r.dateObject.month}:r.type===`year`?{type:`year`,year:r.dateObject.year}:{type:`quarter`,year:r.dateObject.year,quarter:r.dateObject.quarter}))return;let i;if(i=e.value!==null&&!Array.isArray(e.value)?e.value:Date.now(),t===`datetime`&&e.defaultTime!==null&&!Array.isArray(e.defaultTime)){let t;t=typeof e.defaultTime==`function`?Ise(r.ts,e.defaultTime):kd(e.defaultTime),t&&(i=Bu(pd(i,t)))}switch(i=Bu(r.type===`quarter`&&r.dateObject.quarter?Dse(_d(i,r.dateObject.year),r.dateObject.quarter):pd(i,r.dateObject)),n.doUpdateValue(ne(i),e.panel||t===`date`||t===`week`||t===`year`),t){case`date`:case`week`:n.doClose();break;case`year`:e.panel&&n.disableTransitionOneTick(),n.doClose();break;case`month`:n.disableTransitionOneTick(),we(i);break;case`quarter`:n.disableTransitionOneTick(),we(i)}}function de(t,n){let r;r=e.value!==null&&!Array.isArray(e.value)?e.value:Date.now(),r=Bu(t.type===`month`?fd(r,t.dateObject.month):_d(r,t.dateObject.year)),n(r),we(r)}function fe(e){S.value=e}function me(t){e.value===null||Array.isArray(e.value)?x.value=``:(t===void 0&&(t=e.value),x.value=Ou(t,y.value,n.dateFnsOptions.value))}function F(){v.isDateInvalid.value||v.isTimeInvalid.value||(n.doConfirm(),he())}function he(){e.active&&n.doClose()}function ge(){S.value=Bu(su(S.value,1)),e.onNextYear?.()}function _e(){S.value=Bu(su(S.value,-1)),e.onPrevYear?.()}function I(){S.value=Bu(nu(S.value,1)),e.onNextMonth?.()}function ve(){S.value=Bu(nu(S.value,-1)),e.onPrevMonth?.()}function ye(){let{value:e}=C;return e?.listElRef||null}function L(){let{value:e}=C;return e?.itemsElRef||null}function be(){w.value?.sync()}function xe(t){t!==null&&n.doUpdateValue(t,e.panel)}function Se(e){n.cachePendingValue();let t=n.getShortcutValue(e);typeof t==`number`&&n.doUpdateValue(t,!1)}function Ce(t){let r=n.getShortcutValue(t);typeof r==`number`&&(n.doUpdateValue(r,e.panel),n.clearPendingValue(),F())}function we(t){let{value:n}=e;if(T.value){let e=Ru(t===void 0?n===null?Date.now():n:t);T.value.scrollTo({top:e*40})}if(C.value){let e=Vu(t===void 0?n===null?Date.now():n:t)-_.value[0];C.value.scrollTo({top:e*40})}}return{dateArray:D,monthArray:O,yearArray:k,quarterArray:A,calendarYear:te,calendarMonth:ee,weekdays:j,calendarMonthBeforeYear:M,mergedIsDateDisabled:re,nextYear:ge,prevYear:_e,nextMonth:I,prevMonth:ve,handleNowClick:oe,handleConfirmClick:F,handleSingleShortcutMouseenter:Se,handleSingleShortcutClick:Ce,...v,...n,monthScrollbarRef:T,yearScrollbarRef:w,yearVlRef:C,handleDateClick:ue,handleDateInputBlur:P,handleDateInput:ie,handleDateMouseEnter:ce,isWeekHovered:le,handleTimePickerChange:xe,clearSelectedDateTime:ae,virtualListContainer:ye,virtualListContent:L,handleVirtualListScroll:be,timePickerSize:n.timePickerSize,dateInputValue:x,datePickerSlots:p,handleQuickMonthClick:de,justifyColumnsScrollState:we,calendarValue:S,onUpdateCalendarValue:fe}}var Ade=[`onClick`],jde=[`onFocus`,`onKeydown`],Lm=Y({name:`MonthPanel`,props:{...Fm,type:{type:String,required:!0},useAsQuickJump:Boolean},setup(e){let t=Im(e,e.type),{dateLocaleRef:n}=gr(`DatePicker`),r=e=>{switch(e.type){case`year`:return xd(e.dateObject.year,e.yearFormat,n.value.locale);case`month`:return bd(e.dateObject.month,e.monthFormat,n.value.locale);case`quarter`:return Sd(e.dateObject.quarter,e.quarterFormat,n.value.locale)}},{useAsQuickJump:i}=e,a=(n,a,o)=>{let{mergedIsDateDisabled:s,handleDateClick:c,handleQuickMonthClick:l}=t;return L(),H(`div`,{"data-n-date":!0,key:a,class:P([`${o}-date-panel-month-calendar__picker-col-item`,n.isCurrent&&`${o}-date-panel-month-calendar__picker-col-item--current`,n.selected&&`${o}-date-panel-month-calendar__picker-col-item--selected`,!i&&s(n.ts,n.type===`year`?{type:`year`,year:n.dateObject.year}:n.type===`month`?{type:`month`,year:n.dateObject.year,month:n.dateObject.month}:n.type===`quarter`?{type:`month`,year:n.dateObject.year,month:n.dateObject.quarter}:null)&&`${o}-date-panel-month-calendar__picker-col-item--disabled`]),onClick:()=>{n.type===`year`?e.onSelectYear?.():n.type===`month`&&e.onSelectMonth?.(),i?l(n,t=>{e.onUpdateValue(t,!1)}):c(n)}},[G(()=>r(n))],10,Ade)};return Ve(()=>{t.justifyColumnsScrollState()}),{...t,renderItem:a}},render(){let{mergedClsPrefix:e,mergedTheme:t,shortcuts:n,actions:r,renderItem:i,type:a,onRender:o}=this;return o?.(),L(),H(`div`,{ref:`selfRef`,tabindex:0,class:P([`${e}-date-panel`,`${e}-date-panel--month`,!this.panel&&`${e}-date-panel--shadow`,this.themeClass]),onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},[q(`div`,{class:P(`${e}-date-panel-month-calendar`)},[(L(),W(ln,{ref:`yearScrollbarRef`,class:P(`${e}-date-panel-month-calendar__picker-col`),theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:this.virtualListContainer,content:this.virtualListContent,horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>(L(),W(Sc,{ref:`yearVlRef`,items:this.yearArray,itemSize:40,showScrollbar:!1,keyField:`ts`,onScroll:this.handleVirtualListScroll,paddingBottom:4},{default:({item:t,index:n})=>i(t,n,e)},1032,[`items`,`itemSize`,`onScroll`]))},1032,[`class`,`theme`,`themeOverrides`,`container`,`content`])),a===`month`||a===`quarter`?(L(),H(`div`,{key:0,class:P(`${e}-date-panel-month-calendar__picker-col`)},[(L(),W(ln,{ref:`monthScrollbarRef`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar},{default:()=>[(a===`month`?this.monthArray:this.quarterArray).map((t,n)=>i(t,n,e)),(L(),H(`div`,{class:P(`${e}-date-panel-${a}-calendar__padding`)},null,2))]},1032,[`theme`,`themeOverrides`]))],2)):G(()=>null)],2),G(()=>Lt(this.datePickerSlots.footer,t=>t?(L(),H(`div`,{key:1,class:P(`${e}-date-panel-footer`)},[G(()=>t)],2)):null)),r?.length||n?(L(),H(`div`,{key:0,class:P(`${e}-date-panel-actions`)},[q(`div`,{class:P(`${e}-date-panel-actions__prefix`)},[G(()=>n&&Object.keys(n).map(e=>{let t=n[e];return Array.isArray(t)?null:(L(),W(Cr,{key:2,size:`tiny`,onMouseenter:()=>{this.handleSingleShortcutMouseenter(t)},onClick:()=>{this.handleSingleShortcutClick(t)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>e},1032,[`onMouseenter`,`onClick`,`onMouseleave`]))}))],2),q(`div`,{class:P(`${e}-date-panel-actions__suffix`)},[r?.includes(`clear`)?(L(),H(K,{key:0},[G(()=>Qt(this.datePickerSlots.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[(L(),W(wr,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:`tiny`,onClick:this.handleClearClick},{default:()=>this.locale.clear},1032,[`theme`,`themeOverrides`,`onClick`]))]))],64)):G(()=>null),r?.includes(`now`)?(L(),H(K,{key:2},[G(()=>Qt(this.datePickerSlots.now,{onNow:this.handleNowClick,text:this.locale.now},()=>[(L(),W(wr,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:`tiny`,onClick:this.handleNowClick},{default:()=>this.locale.now},1032,[`theme`,`themeOverrides`,`onClick`]))]))],64)):G(()=>null),r?.includes(`confirm`)?(L(),H(K,{key:4},[G(()=>Qt(this.datePickerSlots.confirm,{onConfirm:this.handleConfirmClick,disabled:this.isDateInvalid,text:this.locale.confirm},()=>[(L(),W(wr,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:`tiny`,type:`primary`,disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm},1032,[`theme`,`themeOverrides`,`disabled`,`onClick`]))]))],64)):G(()=>null)],2)],2)):G(()=>null),(L(),W(al,{onFocus:this.handleFocusDetectorFocus},null,8,[`onFocus`]))],42,jde)}}),Mde=[`onClick`],Rm=Y({props:{mergedClsPrefix:{type:String,required:!0},value:Number,monthBeforeYear:{type:Boolean,required:!0},monthYearSeparator:{type:String,required:!0},fastYearSelect:Boolean,fastMonthSelect:Boolean,calendarMonth:{type:String,required:!0},calendarYear:{type:String,required:!0},onUpdateValue:{type:Function,required:!0}},setup(e){let t=N(null),n=N(null),r=N(!1);function i(){r.value=!r.value}function a(){e.fastYearSelect&&i()}function o(){e.fastMonthSelect&&i()}function s(e){r.value&&!t.value?.contains(vt(e))&&(r.value=!1)}function c(){i()}return{show:r,triggerRef:t,monthPanelRef:n,handleSelectYear:a,handleSelectMonth:o,handleHeaderClick:c,handleClickOutside:s}},render(){let{handleClickOutside:e,mergedClsPrefix:t}=this;return L(),H(`div`,{class:P(`${t}-date-panel-month__month-year`),ref:`triggerRef`},[J(Zs,null,{default:()=>[(L(),W(Qs,null,{default:()=>(L(),H(`div`,{class:P([`${t}-date-panel-month__text`,this.show&&`${t}-date-panel-month__text--active`]),onClick:this.handleHeaderClick},[this.monthBeforeYear?(L(),H(K,{key:0},[G(()=>[this.calendarMonth,this.monthYearSeparator,this.calendarYear])],64)):(L(),H(K,{key:1},[G(()=>[this.calendarYear,this.monthYearSeparator,this.calendarMonth])],64))],10,Mde))},1024)),(L(),W(gc,{show:this.show,teleportDisabled:!0},{default:()=>(L(),W(gn,{name:`fade-in-scale-up-transition`,appear:!0},{default:()=>this.show?Se((L(),W(Lm,{ref:`monthPanelRef`,onUpdateValue:this.onUpdateValue,onSelectYear:this.handleSelectYear,onSelectMonth:this.handleSelectMonth,actions:[],calendarHeaderMonthYearSeparator:this.monthYearSeparator,type:`month`,key:`month`,useAsQuickJump:!0,value:this.value},null,8,[`onUpdateValue`,`onSelectYear`,`onSelectMonth`,`calendarHeaderMonthYearSeparator`,`value`])),[[tc,e,void 0,{capture:!0}]]):null},1024))},1032,[`show`]))]},1024)],2)}}),Nde=[`onClick`,`onMouseenter`],Pde=[`onFocus`,`onKeydown`],Fde=[`onClick`],Ide=[`onClick`],Lde=[`onClick`],Rde=[`onClick`],zde=Y({name:`DatePanel`,props:{...Fm,type:{type:String,required:!0}},setup(e){return Im(e,e.type)},render(){let{mergedClsPrefix:e,mergedTheme:t,shortcuts:n,onRender:r,datePickerSlots:i,type:a}=this;return r?.(),L(),H(`div`,{ref:`selfRef`,tabindex:0,class:P([`${e}-date-panel`,`${e}-date-panel--${a}`,!this.panel&&`${e}-date-panel--shadow`,this.themeClass]),onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},[q(`div`,{class:P(`${e}-date-panel-calendar`)},[q(`div`,{class:P(`${e}-date-panel-month`)},[q(`div`,{class:P(`${e}-date-panel-month__fast-prev`),onClick:this.prevYear},[G(()=>an(i[`prev-year`],()=>[(L(),W(Rf))]))],10,Fde),q(`div`,{class:P(`${e}-date-panel-month__prev`),onClick:this.prevMonth},[G(()=>an(i[`prev-month`],()=>[(L(),W(Lf))]))],10,Ide),(L(),W(Rm,{fastYearSelect:this.fastYearSelect,fastMonthSelect:this.fastMonthSelect,monthYearSeparator:this.calendarHeaderMonthYearSeparator,monthBeforeYear:this.calendarMonthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:e,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear},null,8,[`fastYearSelect`,`fastMonthSelect`,`monthYearSeparator`,`monthBeforeYear`,`value`,`onUpdateValue`,`mergedClsPrefix`,`calendarMonth`,`calendarYear`])),q(`div`,{class:P(`${e}-date-panel-month__next`),onClick:this.nextMonth},[G(()=>an(i[`next-month`],()=>[(L(),W(Bf))]))],10,Lde),q(`div`,{class:P(`${e}-date-panel-month__fast-next`),onClick:this.nextYear},[G(()=>an(i[`next-year`],()=>[(L(),W(zf))]))],10,Rde)],2),q(`div`,{class:P(`${e}-date-panel-weekdays`)},[G(()=>this.weekdays.map(t=>(L(),H(`div`,{key:t,class:P(`${e}-date-panel-weekdays__day`)},[G(()=>t)],2))))],2),q(`div`,{class:P(`${e}-date-panel-dates`)},[G(()=>this.dateArray.map((t,n)=>(L(),H(`div`,{"data-n-date":!0,key:n,class:P([`${e}-date-panel-date`,{[`${e}-date-panel-date--current`]:t.isCurrentDate,[`${e}-date-panel-date--selected`]:t.selected,[`${e}-date-panel-date--excluded`]:!t.inCurrentMonth,[`${e}-date-panel-date--disabled`]:this.mergedIsDateDisabled(t.ts,{type:`date`,year:t.dateObject.year,month:t.dateObject.month,date:t.dateObject.date}),[`${e}-date-panel-date--week-hovered`]:this.isWeekHovered(t),[`${e}-date-panel-date--week-selected`]:t.inSelectedWeek}]),onClick:()=>{this.handleDateClick(t)},onMouseenter:()=>{this.handleDateMouseEnter(t)}},[q(`div`,{class:P(`${e}-date-panel-date__trigger`)},null,2),G(()=>t.dateObject.date),t.isCurrentDate?(L(),H(`div`,{key:0,class:P(`${e}-date-panel-date__sup`)},null,2)):G(()=>null)],42,Nde))))],2)],2),this.datePickerSlots.footer?(L(),H(`div`,{key:0,class:P(`${e}-date-panel-footer`)},[G(()=>this.datePickerSlots.footer())],2)):G(()=>null),this.actions?.length||n?(L(),H(`div`,{key:2,class:P(`${e}-date-panel-actions`)},[q(`div`,{class:P(`${e}-date-panel-actions__prefix`)},[G(()=>n&&Object.keys(n).map(e=>{let t=n[e];return Array.isArray(t)?null:(L(),W(Cr,{key:1,size:`tiny`,onMouseenter:()=>{this.handleSingleShortcutMouseenter(t)},onClick:()=>{this.handleSingleShortcutClick(t)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>e},1032,[`onMouseenter`,`onClick`,`onMouseleave`]))}))],2),q(`div`,{class:P(`${e}-date-panel-actions__suffix`)},[this.actions?.includes(`clear`)?(L(),H(K,{key:0},[G(()=>Qt(this.$slots.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[(L(),W(wr,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:`tiny`,onClick:this.handleClearClick},{default:()=>this.locale.clear},1032,[`theme`,`themeOverrides`,`onClick`]))]))],64)):G(()=>null),this.actions?.includes(`now`)?(L(),H(K,{key:2},[G(()=>Qt(this.$slots.now,{onNow:this.handleNowClick,text:this.locale.now},()=>[(L(),W(wr,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:`tiny`,onClick:this.handleNowClick},{default:()=>this.locale.now},1032,[`theme`,`themeOverrides`,`onClick`]))]))],64)):G(()=>null)],2)],2)):G(()=>null),(L(),W(al,{onFocus:this.handleFocusDetectorFocus},null,8,[`onFocus`]))],42,Pde)}}),zm={...Nm,defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,actions:{type:Array,default:()=>[`clear`,`confirm`]}};function Bm(e,t){let{isDateDisabledRef:n,isStartHourDisabledRef:r,isEndHourDisabledRef:i,isStartMinuteDisabledRef:a,isEndMinuteDisabledRef:o,isStartSecondDisabledRef:s,isEndSecondDisabledRef:c,isStartDateInvalidRef:l,isEndDateInvalidRef:u,isStartTimeInvalidRef:d,isEndTimeInvalidRef:f,isStartValueInvalidRef:p,isEndValueInvalidRef:m,isRangeInvalidRef:h,localeRef:g,rangesRef:_,closeOnSelectRef:v,updateValueOnCloseRef:y,firstDayOfWeekRef:b,datePickerSlots:x,monthFormatRef:S,yearFormatRef:C,quarterFormatRef:w,yearRangeRef:T}=pe(Mm),E={isDateDisabled:n,isStartHourDisabled:r,isEndHourDisabled:i,isStartMinuteDisabled:a,isEndMinuteDisabled:o,isStartSecondDisabled:s,isEndSecondDisabled:c,isStartDateInvalid:l,isEndDateInvalid:u,isStartTimeInvalid:d,isEndTimeInvalid:f,isStartValueInvalid:p,isEndValueInvalid:m,isRangeInvalid:h},D=Pm(e),O=N(null),k=N(null),A=N(null),j=N(null),ee=N(null),te=N(null),M=N(null),ne=N(null),{value:re}=e,ie=e.defaultCalendarStartTime??(Array.isArray(re)&&typeof re[0]==`number`?re[0]:Date.now()),P=N(ie),ae=N(e.defaultCalendarEndTime??(Array.isArray(re)&&typeof re[1]==`number`?re[1]:Bu(nu(ie,1))));je(!0);let oe=N(Date.now()),se=N(!1),ce=N(0),le=V(()=>e.dateFormat||g.value.dateFormat),ue=V(()=>e.calendarDayFormat||g.value.dayFormat),de=N(Array.isArray(re)?Ou(re[0],le.value,D.dateFnsOptions.value):``),fe=N(Array.isArray(re)?Ou(re[1],le.value,D.dateFnsOptions.value):``),me=V(()=>se.value?`end`:`start`),F=V(()=>Cd(P.value,e.value,oe.value,b.value??g.value.firstDayOfWeek)),he=V(()=>Cd(ae.value,e.value,oe.value,b.value??g.value.firstDayOfWeek)),ge=V(()=>F.value.slice(0,7).map(e=>{let{ts:t}=e;return Ou(t,ue.value,D.dateFnsOptions.value)})),_e=V(()=>Ou(P.value,e.calendarHeaderMonthFormat||g.value.monthFormat,D.dateFnsOptions.value)),I=V(()=>Ou(ae.value,e.calendarHeaderMonthFormat||g.value.monthFormat,D.dateFnsOptions.value)),ve=V(()=>Ou(P.value,e.calendarHeaderYearFormat||g.value.yearFormat,D.dateFnsOptions.value)),ye=V(()=>Ou(ae.value,e.calendarHeaderYearFormat||g.value.yearFormat,D.dateFnsOptions.value)),L=V(()=>{let{value:t}=e;return Array.isArray(t)?t[0]:null}),be=V(()=>{let{value:t}=e;return Array.isArray(t)?t[1]:null}),xe=V(()=>{let{shortcuts:t}=e;return t||_.value}),Se=V(()=>Ed(Ad(e.value,`start`),oe.value,{yearFormat:C.value},T)),Ce=V(()=>Ed(Ad(e.value,`end`),oe.value,{yearFormat:C.value},T)),we=V(()=>{let t=Ad(e.value,`start`);return Td(t??Date.now(),t,oe.value,{quarterFormat:w.value})}),Ee=V(()=>{let t=Ad(e.value,`end`);return Td(t??Date.now(),t,oe.value,{quarterFormat:w.value})}),De=V(()=>{let t=Ad(e.value,`start`);return wd(t??Date.now(),t,oe.value,{monthFormat:S.value})}),Oe=V(()=>{let t=Ad(e.value,`end`);return wd(t??Date.now(),t,oe.value,{monthFormat:S.value})}),ke=V(()=>e.calendarHeaderMonthBeforeYear??g.value.monthBeforeYear);Te(V(()=>e.value),e=>{if(e!==null&&Array.isArray(e)){let[t,n]=e;de.value=Ou(t,le.value,D.dateFnsOptions.value),fe.value=Ou(n,le.value,D.dateFnsOptions.value),se.value||Ue(e)}else de.value=``,fe.value=``});function Ae(e,n){t!==`daterange`&&t!==`datetimerange`||Vu(e)===Vu(n)&&Ru(e)===Ru(n)||D.disableTransitionOneTick()}Te(P,Ae),Te(ae,Ae);function je(t){let n=uu(P.value),r=uu(ae.value);(e.bindCalendarMonths||n>=r)&&(t?ae.value=Bu(nu(n,1)):P.value=Bu(nu(r,-1)))}function Me(){P.value=Bu(nu(P.value,12)),je(!0)}function Ne(){P.value=Bu(nu(P.value,-12)),je(!0)}function Pe(){P.value=Bu(nu(P.value,1)),je(!0)}function Fe(){P.value=Bu(nu(P.value,-1)),je(!0)}function Ie(){ae.value=Bu(nu(ae.value,12)),je(!1)}function Le(){ae.value=Bu(nu(ae.value,-12)),je(!1)}function Re(){ae.value=Bu(nu(ae.value,1)),je(!1)}function ze(){ae.value=Bu(nu(ae.value,-1)),je(!1)}function Be(e){P.value=e,je(!0)}function Ve(e){ae.value=e,je(!1)}function He(t){let r=n.value;if(!r)return!1;if(!Array.isArray(e.value)||me.value===`start`)return r(t,`start`,null);{let{value:e}=ce;return t<ce.value?r(t,`start`,[e,e]):r(t,`end`,[e,e])}}function Ue(e){if(e===null)return;let[t,n]=e;P.value=t,uu(n)<=uu(t)?ae.value=Bu(uu(nu(t,1))):ae.value=Bu(uu(n))}function We(n){if(!se.value)se.value=!0,ce.value=n.ts,Xe(n.ts,n.ts,`done`);else{se.value=!1;let{value:n}=e;e.panel&&Array.isArray(n)?Xe(n[0],n[1],`done`):v.value&&t===`daterange`&&(y.value?qe():Ke())}}function Ge(e){if(se.value){if(He(e.ts))return;e.ts>=ce.value?Xe(ce.value,e.ts,`wipPreview`):Xe(e.ts,ce.value,`wipPreview`)}}function Ke(){h.value||(D.doConfirm(),qe())}function qe(){se.value=!1,e.active&&D.doClose()}function Je(t){typeof t!=`number`&&(t=Bu(t)),e.value===null?D.doUpdateValue([t,t],e.panel):Array.isArray(e.value)&&D.doUpdateValue([t,Math.max(e.value[1],t)],e.panel)}function Ye(t){typeof t!=`number`&&(t=Bu(t)),e.value===null?D.doUpdateValue([t,t],e.panel):Array.isArray(e.value)&&D.doUpdateValue([Math.min(e.value[0],t),t],e.panel)}function Xe(n,r,i){if(typeof n!=`number`&&(n=Bu(n)),i!==`shortcutPreview`&&i!==`shortcutDone`){let i,a;if(t===`datetimerange`){let{defaultTime:t}=e;typeof t==`function`?(i=Od(n,t,`start`,[n,r]),a=Od(r,t,`end`,[n,r])):Array.isArray(t)?(i=kd(t[0]),a=kd(t[1])):(i=kd(t),a=i)}i&&(n=Bu(pd(n,i))),a&&(r=Bu(pd(r,a)))}D.doUpdateValue([n,r],e.panel&&(i===`done`||i===`shortcutDone`))}function Ze(e){return Bu(t===`datetimerange`?ud(e):t===`monthrange`?uu(e):ou(e))}function Qe(t){let n=Dd(t,le.value,new Date,D.dateFnsOptions.value);cu(n)?e.value?Array.isArray(e.value)&&Je(Ze(Bu(pd(e.value[0],{year:Vu(n),month:Ru(n),date:Au(n)})))):Je(Ze(Bu(pd(new Date,{year:Vu(n),month:Ru(n),date:Au(n)})))):de.value=t}function $e(t){let n=Dd(t,le.value,new Date,D.dateFnsOptions.value);cu(n)?e.value===null?Ye(Ze(Bu(pd(new Date,{year:Vu(n),month:Ru(n),date:Au(n)})))):Array.isArray(e.value)&&Ye(Ze(Bu(pd(e.value[1],{year:Vu(n),month:Ru(n),date:Au(n)})))):fe.value=t}function et(){let t=Dd(de.value,le.value,new Date,D.dateFnsOptions.value),{value:n}=e;cu(t)?n===null?Je(Ze(Bu(pd(new Date,{year:Vu(t),month:Ru(t),date:Au(t)})))):Array.isArray(n)&&Je(Ze(Bu(pd(n[0],{year:Vu(t),month:Ru(t),date:Au(t)})))):nt()}function tt(){let t=Dd(fe.value,le.value,new Date,D.dateFnsOptions.value),{value:n}=e;cu(t)?n===null?Ye(Ze(Bu(pd(new Date,{year:Vu(t),month:Ru(t),date:Au(t)})))):Array.isArray(n)&&Ye(Ze(Bu(pd(n[1],{year:Vu(t),month:Ru(t),date:Au(t)})))):nt()}function nt(t){let{value:n}=e;n===null||!Array.isArray(n)?(de.value=``,fe.value=``):(t===void 0&&(t=n),de.value=Ou(t[0],le.value,D.dateFnsOptions.value),fe.value=Ou(t[1],le.value,D.dateFnsOptions.value))}function rt(e){e!==null&&Je(e)}function it(e){e!==null&&Ye(e)}function at(e){D.cachePendingValue();let t=D.getShortcutValue(e);Array.isArray(t)&&Xe(t[0],t[1],`shortcutPreview`)}function ot(e){let t=D.getShortcutValue(e);Array.isArray(t)&&(Xe(t[0],t[1],`shortcutDone`),D.clearPendingValue(),Ke())}function st(t,n){let r=t===void 0?e.value:t;if(t===void 0||n===`start`){if(M.value){let e=Ru(Array.isArray(r)?r[0]:Date.now());M.value.scrollTo({debounce:!1,index:e,elSize:40})}if(ee.value){let e=Vu(Array.isArray(r)?r[0]:Date.now())-T.value[0];ee.value.scrollTo({index:e,debounce:!1})}}if(t===void 0||n===`end`){if(ne.value){let e=Ru(Array.isArray(r)?r[1]:Date.now());ne.value.scrollTo({debounce:!1,index:e,elSize:40})}if(te.value){let e=Vu(Array.isArray(r)?r[1]:Date.now())-T.value[0];te.value.scrollTo({index:e,debounce:!1})}}}function ct(n,r){let{value:i}=e,a=!Array.isArray(i),o=n.type===`year`&&t!==`yearrange`?a?pd(n.ts,{month:Ru(t===`quarterrange`?lu(new Date):new Date)}).valueOf():pd(n.ts,{month:Ru(t===`quarterrange`?lu(i[r===`start`?0:1]):i[r===`start`?0:1])}).valueOf():n.ts;if(a){let t=Ze(o),n=[t,t];D.doUpdateValue(n,e.panel),st(n,`start`),st(n,`end`),D.disableTransitionOneTick();return}let s=[i[0],i[1]],c=!1;switch(r===`start`?(s[0]=Ze(o),s[0]>s[1]&&(s[1]=s[0],c=!0)):(s[1]=Ze(o),s[0]>s[1]&&(s[0]=s[1],c=!0)),D.doUpdateValue(s,e.panel),t){case`monthrange`:case`quarterrange`:D.disableTransitionOneTick(),c?(st(s,`start`),st(s,`end`)):st(s,r);break;case`yearrange`:D.disableTransitionOneTick(),st(s,`start`),st(s,`end`)}}function lt(){A.value?.sync()}function ut(){j.value?.sync()}function dt(e){return e===`start`?ee.value?.listElRef||null:te.value?.listElRef||null}function ft(e){return e===`start`?ee.value?.itemsElRef||null:te.value?.itemsElRef||null}return{startDatesElRef:O,endDatesElRef:k,handleDateClick:We,handleColItemClick:ct,handleDateMouseEnter:Ge,handleConfirmClick:Ke,startCalendarPrevYear:Ne,startCalendarPrevMonth:Fe,startCalendarNextYear:Me,startCalendarNextMonth:Pe,endCalendarPrevYear:Le,endCalendarPrevMonth:ze,endCalendarNextMonth:Re,endCalendarNextYear:Ie,mergedIsDateDisabled:He,changeStartEndTime:Xe,ranges:_,calendarMonthBeforeYear:ke,startCalendarMonth:_e,startCalendarYear:ve,endCalendarMonth:I,endCalendarYear:ye,weekdays:ge,startDateArray:F,endDateArray:he,startYearArray:Se,startMonthArray:De,startQuarterArray:we,endYearArray:Ce,endMonthArray:Oe,endQuarterArray:Ee,isSelecting:se,handleRangeShortcutMouseenter:at,handleRangeShortcutClick:ot,...D,...E,startYearVlRef:ee,endYearVlRef:te,startMonthScrollbarRef:M,endMonthScrollbarRef:ne,startYearScrollbarRef:A,endYearScrollbarRef:j,startDateDisplayString:de,endDateInput:fe,timePickerSize:D.timePickerSize,startTimeValue:L,endTimeValue:be,datePickerSlots:x,shortcuts:xe,startCalendarDateTime:P,endCalendarDateTime:ae,justifyColumnsScrollState:st,handleFocusDetectorFocus:D.handleFocusDetectorFocus,handleStartTimePickerChange:rt,handleEndTimePickerChange:it,handleStartDateInput:Qe,handleStartDateInputBlur:et,handleEndDateInput:$e,handleEndDateInputBlur:tt,handleStartYearVlScroll:lt,handleEndYearVlScroll:ut,virtualListContainer:dt,virtualListContent:ft,onUpdateStartCalendarValue:Be,onUpdateEndCalendarValue:Ve}}var Bde=[`onClick`,`onMouseenter`],Vde=[`onClick`,`onMouseenter`],Hde=[`onKeydown`,`onFocus`],Ude=[`onClick`],Wde=[`onClick`],Gde=[`onClick`],Kde=[`onClick`],qde=[`onClick`],Jde=[`onClick`],Yde=[`onClick`],Xde=[`onClick`],Zde=Y({name:`DateRangePanel`,props:zm,setup(e){return Bm(e,`daterange`)},render(){let{mergedClsPrefix:e,mergedTheme:t,shortcuts:n,onRender:r,datePickerSlots:i}=this;return r?.(),L(),H(`div`,{ref:`selfRef`,tabindex:0,class:P([`${e}-date-panel`,`${e}-date-panel--daterange`,!this.panel&&`${e}-date-panel--shadow`,this.themeClass]),onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},[q(`div`,{ref:`startDatesElRef`,class:P(`${e}-date-panel-calendar ${e}-date-panel-calendar--start`)},[q(`div`,{class:P(`${e}-date-panel-month`)},[q(`div`,{class:P(`${e}-date-panel-month__fast-prev`),onClick:this.startCalendarPrevYear},[G(()=>an(i[`prev-year`],()=>[(L(),W(Rf))]))],10,Ude),q(`div`,{class:P(`${e}-date-panel-month__prev`),onClick:this.startCalendarPrevMonth},[G(()=>an(i[`prev-month`],()=>[(L(),W(Lf))]))],10,Wde),(L(),W(Rm,{fastYearSelect:this.fastYearSelect,fastMonthSelect:this.fastMonthSelect,monthYearSeparator:this.calendarHeaderMonthYearSeparator,monthBeforeYear:this.calendarMonthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:e,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear},null,8,[`fastYearSelect`,`fastMonthSelect`,`monthYearSeparator`,`monthBeforeYear`,`value`,`onUpdateValue`,`mergedClsPrefix`,`calendarMonth`,`calendarYear`])),q(`div`,{class:P(`${e}-date-panel-month__next`),onClick:this.startCalendarNextMonth},[G(()=>an(i[`next-month`],()=>[(L(),W(Bf))]))],10,Gde),q(`div`,{class:P(`${e}-date-panel-month__fast-next`),onClick:this.startCalendarNextYear},[G(()=>an(i[`next-year`],()=>[(L(),W(zf))]))],10,Kde)],2),q(`div`,{class:P(`${e}-date-panel-weekdays`)},[G(()=>this.weekdays.map(t=>(L(),H(`div`,{key:t,class:P(`${e}-date-panel-weekdays__day`)},[G(()=>t)],2))))],2),q(`div`,{class:P(`${e}-date-panel__divider`)},null,2),q(`div`,{class:P(`${e}-date-panel-dates`)},[G(()=>this.startDateArray.map((t,n)=>(L(),H(`div`,{"data-n-date":!0,key:n,class:P([`${e}-date-panel-date`,{[`${e}-date-panel-date--excluded`]:!t.inCurrentMonth,[`${e}-date-panel-date--current`]:t.isCurrentDate,[`${e}-date-panel-date--selected`]:t.selected,[`${e}-date-panel-date--covered`]:t.inSpan,[`${e}-date-panel-date--start`]:t.startOfSpan,[`${e}-date-panel-date--end`]:t.endOfSpan,[`${e}-date-panel-date--disabled`]:this.mergedIsDateDisabled(t.ts)}]),onClick:()=>{this.handleDateClick(t)},onMouseenter:()=>{this.handleDateMouseEnter(t)}},[q(`div`,{class:P(`${e}-date-panel-date__trigger`)},null,2),G(()=>t.dateObject.date),t.isCurrentDate?(L(),H(`div`,{key:0,class:P(`${e}-date-panel-date__sup`)},null,2)):G(()=>null)],42,Bde))))],2)],2),q(`div`,{class:P(`${e}-date-panel__vertical-divider`)},null,2),q(`div`,{ref:`endDatesElRef`,class:P(`${e}-date-panel-calendar ${e}-date-panel-calendar--end`)},[q(`div`,{class:P(`${e}-date-panel-month`)},[q(`div`,{class:P(`${e}-date-panel-month__fast-prev`),onClick:this.endCalendarPrevYear},[G(()=>an(i[`prev-year`],()=>[(L(),W(Rf))]))],10,qde),q(`div`,{class:P(`${e}-date-panel-month__prev`),onClick:this.endCalendarPrevMonth},[G(()=>an(i[`prev-month`],()=>[(L(),W(Lf))]))],10,Jde),(L(),W(Rm,{fastYearSelect:this.fastYearSelect,fastMonthSelect:this.fastMonthSelect,monthYearSeparator:this.calendarHeaderMonthYearSeparator,monthBeforeYear:this.calendarMonthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:e,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear},null,8,[`fastYearSelect`,`fastMonthSelect`,`monthYearSeparator`,`monthBeforeYear`,`value`,`onUpdateValue`,`mergedClsPrefix`,`calendarMonth`,`calendarYear`])),q(`div`,{class:P(`${e}-date-panel-month__next`),onClick:this.endCalendarNextMonth},[G(()=>an(i[`next-month`],()=>[(L(),W(Bf))]))],10,Yde),q(`div`,{class:P(`${e}-date-panel-month__fast-next`),onClick:this.endCalendarNextYear},[G(()=>an(i[`next-year`],()=>[(L(),W(zf))]))],10,Xde)],2),q(`div`,{class:P(`${e}-date-panel-weekdays`)},[G(()=>this.weekdays.map(t=>(L(),H(`div`,{key:t,class:P(`${e}-date-panel-weekdays__day`)},[G(()=>t)],2))))],2),q(`div`,{class:P(`${e}-date-panel__divider`)},null,2),q(`div`,{class:P(`${e}-date-panel-dates`)},[G(()=>this.endDateArray.map((t,n)=>(L(),H(`div`,{"data-n-date":!0,key:n,class:P([`${e}-date-panel-date`,{[`${e}-date-panel-date--excluded`]:!t.inCurrentMonth,[`${e}-date-panel-date--current`]:t.isCurrentDate,[`${e}-date-panel-date--selected`]:t.selected,[`${e}-date-panel-date--covered`]:t.inSpan,[`${e}-date-panel-date--start`]:t.startOfSpan,[`${e}-date-panel-date--end`]:t.endOfSpan,[`${e}-date-panel-date--disabled`]:this.mergedIsDateDisabled(t.ts)}]),onClick:()=>{this.handleDateClick(t)},onMouseenter:()=>{this.handleDateMouseEnter(t)}},[q(`div`,{class:P(`${e}-date-panel-date__trigger`)},null,2),G(()=>t.dateObject.date),t.isCurrentDate?(L(),H(`div`,{key:0,class:P(`${e}-date-panel-date__sup`)},null,2)):G(()=>null)],42,Vde))))],2)],2),this.datePickerSlots.footer?(L(),H(`div`,{key:0,class:P(`${e}-date-panel-footer`)},[G(()=>this.datePickerSlots.footer())],2)):G(()=>null),this.actions?.length||n?(L(),H(`div`,{key:2,class:P(`${e}-date-panel-actions`)},[q(`div`,{class:P(`${e}-date-panel-actions__prefix`)},[G(()=>n&&Object.keys(n).map(e=>{let t=n[e];return Array.isArray(t)||typeof t==`function`?(L(),W(Cr,{key:1,size:`tiny`,onMouseenter:()=>{this.handleRangeShortcutMouseenter(t)},onClick:()=>{this.handleRangeShortcutClick(t)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>e},1032,[`onMouseenter`,`onClick`,`onMouseleave`])):null}))],2),q(`div`,{class:P(`${e}-date-panel-actions__suffix`)},[this.actions?.includes(`clear`)?(L(),H(K,{key:0},[G(()=>Qt(i.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[(L(),W(wr,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:`tiny`,onClick:this.handleClearClick},{default:()=>this.locale.clear},1032,[`theme`,`themeOverrides`,`onClick`]))]))],64)):G(()=>null),this.actions?.includes(`confirm`)?(L(),H(K,{key:2},[G(()=>Qt(i.confirm,{onConfirm:this.handleConfirmClick,disabled:this.isRangeInvalid||this.isSelecting,text:this.locale.confirm},()=>[(L(),W(wr,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:`tiny`,type:`primary`,disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm},1032,[`theme`,`themeOverrides`,`disabled`,`onClick`]))]))],64)):G(()=>null)],2)],2)):G(()=>null),(L(),W(al,{onFocus:this.handleFocusDetectorFocus},null,8,[`onFocus`]))],42,Hde)}}),Qde=[`onClick`],$de=[`onKeydown`,`onFocus`],efe=[`onClick`],tfe=[`onClick`],nfe=[`onClick`],rfe=[`onClick`],ife=Y({name:`DateTimePanel`,props:Fm,setup(e){return Im(e,`datetime`)},render(){let{mergedClsPrefix:e,mergedTheme:t,shortcuts:n,timePickerProps:r,datePickerSlots:i,onRender:a}=this;return a?.(),L(),H(`div`,{ref:`selfRef`,tabindex:0,class:P([`${e}-date-panel`,`${e}-date-panel--datetime`,!this.panel&&`${e}-date-panel--shadow`,this.themeClass]),onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},[q(`div`,{class:P(`${e}-date-panel-header`)},[(L(),W(Fr,{value:this.dateInputValue,theme:t.peers.Input,themeOverrides:t.peerOverrides.Input,stateful:!1,size:this.timePickerSize,readonly:this.inputReadonly,class:P(`${e}-date-panel-date-input`),textDecoration:this.isDateInvalid?`line-through`:``,placeholder:this.locale.selectDate,onBlur:this.handleDateInputBlur,onUpdateValue:this.handleDateInput},null,8,[`value`,`theme`,`themeOverrides`,`size`,`readonly`,`class`,`textDecoration`,`placeholder`,`onBlur`,`onUpdateValue`])),(L(),W(Am,I({size:this.timePickerSize,placeholder:this.locale.selectTime,format:this.timePickerFormat},Array.isArray(r)?void 0:r,{showIcon:!1,to:!1,theme:t.peers.TimePicker,themeOverrides:t.peerOverrides.TimePicker,value:Array.isArray(this.value)?null:this.value,isHourDisabled:this.isHourDisabled,isMinuteDisabled:this.isMinuteDisabled,isSecondDisabled:this.isSecondDisabled,onUpdateValue:this.handleTimePickerChange,stateful:!1}),null,16,[`size`,`placeholder`,`format`,`theme`,`themeOverrides`,`value`,`isHourDisabled`,`isMinuteDisabled`,`isSecondDisabled`,`onUpdateValue`]))],2),q(`div`,{class:P(`${e}-date-panel-calendar`)},[q(`div`,{class:P(`${e}-date-panel-month`)},[q(`div`,{class:P(`${e}-date-panel-month__fast-prev`),onClick:this.prevYear},[G(()=>an(i[`prev-year`],()=>[(L(),W(Rf))]))],10,efe),q(`div`,{class:P(`${e}-date-panel-month__prev`),onClick:this.prevMonth},[G(()=>an(i[`prev-month`],()=>[(L(),W(Lf))]))],10,tfe),(L(),W(Rm,{fastYearSelect:this.fastYearSelect,fastMonthSelect:this.fastMonthSelect,monthYearSeparator:this.calendarHeaderMonthYearSeparator,monthBeforeYear:this.calendarMonthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:e,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear},null,8,[`fastYearSelect`,`fastMonthSelect`,`monthYearSeparator`,`monthBeforeYear`,`value`,`onUpdateValue`,`mergedClsPrefix`,`calendarMonth`,`calendarYear`])),q(`div`,{class:P(`${e}-date-panel-month__next`),onClick:this.nextMonth},[G(()=>an(i[`next-month`],()=>[(L(),W(Bf))]))],10,nfe),q(`div`,{class:P(`${e}-date-panel-month__fast-next`),onClick:this.nextYear},[G(()=>an(i[`next-year`],()=>[(L(),W(zf))]))],10,rfe)],2),q(`div`,{class:P(`${e}-date-panel-weekdays`)},[G(()=>this.weekdays.map(t=>(L(),H(`div`,{key:t,class:P(`${e}-date-panel-weekdays__day`)},[G(()=>t)],2))))],2),q(`div`,{class:P(`${e}-date-panel-dates`)},[G(()=>this.dateArray.map((t,n)=>(L(),H(`div`,{"data-n-date":!0,key:n,class:P([`${e}-date-panel-date`,{[`${e}-date-panel-date--current`]:t.isCurrentDate,[`${e}-date-panel-date--selected`]:t.selected,[`${e}-date-panel-date--excluded`]:!t.inCurrentMonth,[`${e}-date-panel-date--disabled`]:this.mergedIsDateDisabled(t.ts,{type:`date`,year:t.dateObject.year,month:t.dateObject.month,date:t.dateObject.date})}]),onClick:()=>{this.handleDateClick(t)}},[q(`div`,{class:P(`${e}-date-panel-date__trigger`)},null,2),G(()=>t.dateObject.date),t.isCurrentDate?(L(),H(`div`,{key:0,class:P(`${e}-date-panel-date__sup`)},null,2)):G(()=>null)],10,Qde))))],2)],2),this.datePickerSlots.footer?(L(),H(`div`,{key:0,class:P(`${e}-date-panel-footer`)},[G(()=>this.datePickerSlots.footer())],2)):G(()=>null),this.actions?.length||n?(L(),H(`div`,{key:2,class:P(`${e}-date-panel-actions`)},[q(`div`,{class:P(`${e}-date-panel-actions__prefix`)},[G(()=>n&&Object.keys(n).map(e=>{let t=n[e];return Array.isArray(t)?null:(L(),W(Cr,{key:1,size:`tiny`,onMouseenter:()=>{this.handleSingleShortcutMouseenter(t)},onClick:()=>{this.handleSingleShortcutClick(t)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>e},1032,[`onMouseenter`,`onClick`,`onMouseleave`]))}))],2),q(`div`,{class:P(`${e}-date-panel-actions__suffix`)},[this.actions?.includes(`clear`)?(L(),H(K,{key:0},[G(()=>Qt(this.datePickerSlots.clear,{onClear:this.clearSelectedDateTime,text:this.locale.clear},()=>[(L(),W(wr,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:`tiny`,onClick:this.clearSelectedDateTime},{default:()=>this.locale.clear},1032,[`theme`,`themeOverrides`,`onClick`]))]))],64)):G(()=>null),this.actions?.includes(`now`)?(L(),H(K,{key:2},[G(()=>Qt(i.now,{onNow:this.handleNowClick,text:this.locale.now},()=>[(L(),W(wr,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:`tiny`,onClick:this.handleNowClick},{default:()=>this.locale.now},1032,[`theme`,`themeOverrides`,`onClick`]))]))],64)):G(()=>null),this.actions?.includes(`confirm`)?(L(),H(K,{key:4},[G(()=>Qt(i.confirm,{onConfirm:this.handleConfirmClick,disabled:this.isDateInvalid,text:this.locale.confirm},()=>[(L(),W(wr,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:`tiny`,type:`primary`,disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm},1032,[`theme`,`themeOverrides`,`disabled`,`onClick`]))]))],64)):G(()=>null)],2)],2)):G(()=>null),(L(),W(al,{onFocus:this.handleFocusDetectorFocus},null,8,[`onFocus`]))],42,$de)}}),afe=[`onClick`,`onMouseenter`],ofe=[`onClick`,`onMouseenter`],sfe=[`onKeydown`,`onFocus`],cfe=[`onClick`],lfe=[`onClick`],ufe=[`onClick`],dfe=[`onClick`],ffe=[`onClick`],pfe=[`onClick`],mfe=[`onClick`],hfe=[`onClick`],gfe=Y({name:`DateTimeRangePanel`,props:zm,setup(e){return Bm(e,`datetimerange`)},render(){let{mergedClsPrefix:e,mergedTheme:t,shortcuts:n,timePickerProps:r,onRender:i,datePickerSlots:a}=this;return i?.(),L(),H(`div`,{ref:`selfRef`,tabindex:0,class:P([`${e}-date-panel`,`${e}-date-panel--datetimerange`,!this.panel&&`${e}-date-panel--shadow`,this.themeClass]),onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},[q(`div`,{class:P(`${e}-date-panel-header`)},[(L(),W(Fr,{value:this.startDateDisplayString,theme:t.peers.Input,themeOverrides:t.peerOverrides.Input,size:this.timePickerSize,stateful:!1,readonly:this.inputReadonly,class:P(`${e}-date-panel-date-input`),textDecoration:this.isStartValueInvalid?`line-through`:``,placeholder:this.locale.selectDate,onBlur:this.handleStartDateInputBlur,onUpdateValue:this.handleStartDateInput},null,8,[`value`,`theme`,`themeOverrides`,`size`,`readonly`,`class`,`textDecoration`,`placeholder`,`onBlur`,`onUpdateValue`])),(L(),W(Am,I({placeholder:this.locale.selectTime,format:this.timePickerFormat,size:this.timePickerSize},Array.isArray(r)?r[0]:r,{value:this.startTimeValue,to:!1,showIcon:!1,disabled:this.isSelecting,theme:t.peers.TimePicker,themeOverrides:t.peerOverrides.TimePicker,stateful:!1,isHourDisabled:this.isStartHourDisabled,isMinuteDisabled:this.isStartMinuteDisabled,isSecondDisabled:this.isStartSecondDisabled,onUpdateValue:this.handleStartTimePickerChange}),null,16,[`placeholder`,`format`,`size`,`value`,`disabled`,`theme`,`themeOverrides`,`isHourDisabled`,`isMinuteDisabled`,`isSecondDisabled`,`onUpdateValue`])),(L(),W(Fr,{value:this.endDateInput,theme:t.peers.Input,themeOverrides:t.peerOverrides.Input,stateful:!1,size:this.timePickerSize,readonly:this.inputReadonly,class:P(`${e}-date-panel-date-input`),textDecoration:this.isEndValueInvalid?`line-through`:``,placeholder:this.locale.selectDate,onBlur:this.handleEndDateInputBlur,onUpdateValue:this.handleEndDateInput},null,8,[`value`,`theme`,`themeOverrides`,`size`,`readonly`,`class`,`textDecoration`,`placeholder`,`onBlur`,`onUpdateValue`])),(L(),W(Am,I({placeholder:this.locale.selectTime,format:this.timePickerFormat,size:this.timePickerSize},Array.isArray(r)?r[1]:r,{disabled:this.isSelecting,showIcon:!1,theme:t.peers.TimePicker,themeOverrides:t.peerOverrides.TimePicker,to:!1,stateful:!1,value:this.endTimeValue,isHourDisabled:this.isEndHourDisabled,isMinuteDisabled:this.isEndMinuteDisabled,isSecondDisabled:this.isEndSecondDisabled,onUpdateValue:this.handleEndTimePickerChange}),null,16,[`placeholder`,`format`,`size`,`disabled`,`theme`,`themeOverrides`,`value`,`isHourDisabled`,`isMinuteDisabled`,`isSecondDisabled`,`onUpdateValue`]))],2),q(`div`,{ref:`startDatesElRef`,class:P(`${e}-date-panel-calendar ${e}-date-panel-calendar--start`)},[q(`div`,{class:P(`${e}-date-panel-month`)},[q(`div`,{class:P(`${e}-date-panel-month__fast-prev`),onClick:this.startCalendarPrevYear},[G(()=>an(a[`prev-year`],()=>[(L(),W(Rf))]))],10,cfe),q(`div`,{class:P(`${e}-date-panel-month__prev`),onClick:this.startCalendarPrevMonth},[G(()=>an(a[`prev-month`],()=>[(L(),W(Lf))]))],10,lfe),(L(),W(Rm,{fastYearSelect:this.fastYearSelect,fastMonthSelect:this.fastMonthSelect,monthYearSeparator:this.calendarHeaderMonthYearSeparator,monthBeforeYear:this.calendarMonthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:e,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear},null,8,[`fastYearSelect`,`fastMonthSelect`,`monthYearSeparator`,`monthBeforeYear`,`value`,`onUpdateValue`,`mergedClsPrefix`,`calendarMonth`,`calendarYear`])),q(`div`,{class:P(`${e}-date-panel-month__next`),onClick:this.startCalendarNextMonth},[G(()=>an(a[`next-month`],()=>[(L(),W(Bf))]))],10,ufe),q(`div`,{class:P(`${e}-date-panel-month__fast-next`),onClick:this.startCalendarNextYear},[G(()=>an(a[`next-year`],()=>[(L(),W(zf))]))],10,dfe)],2),q(`div`,{class:P(`${e}-date-panel-weekdays`)},[G(()=>this.weekdays.map(t=>(L(),H(`div`,{key:t,class:P(`${e}-date-panel-weekdays__day`)},[G(()=>t)],2))))],2),q(`div`,{class:P(`${e}-date-panel__divider`)},null,2),q(`div`,{class:P(`${e}-date-panel-dates`)},[G(()=>this.startDateArray.map((t,n)=>{let r=this.mergedIsDateDisabled(t.ts);return L(),H(`div`,{"data-n-date":!0,key:n,class:P([`${e}-date-panel-date`,{[`${e}-date-panel-date--excluded`]:!t.inCurrentMonth,[`${e}-date-panel-date--current`]:t.isCurrentDate,[`${e}-date-panel-date--selected`]:t.selected,[`${e}-date-panel-date--covered`]:t.inSpan,[`${e}-date-panel-date--start`]:t.startOfSpan,[`${e}-date-panel-date--end`]:t.endOfSpan,[`${e}-date-panel-date--disabled`]:r}]),onClick:r?void 0:()=>{this.handleDateClick(t)},onMouseenter:r?void 0:()=>{this.handleDateMouseEnter(t)}},[q(`div`,{class:P(`${e}-date-panel-date__trigger`)},null,2),G(()=>t.dateObject.date),t.isCurrentDate?(L(),H(`div`,{key:0,class:P(`${e}-date-panel-date__sup`)},null,2)):G(()=>null)],42,afe)}))],2)],2),q(`div`,{class:P(`${e}-date-panel__vertical-divider`)},null,2),q(`div`,{ref:`endDatesElRef`,class:P(`${e}-date-panel-calendar ${e}-date-panel-calendar--end`)},[q(`div`,{class:P(`${e}-date-panel-month`)},[q(`div`,{class:P(`${e}-date-panel-month__fast-prev`),onClick:this.endCalendarPrevYear},[G(()=>an(a[`prev-year`],()=>[(L(),W(Rf))]))],10,ffe),q(`div`,{class:P(`${e}-date-panel-month__prev`),onClick:this.endCalendarPrevMonth},[G(()=>an(a[`prev-month`],()=>[(L(),W(Lf))]))],10,pfe),(L(),W(Rm,{fastYearSelect:this.fastYearSelect,fastMonthSelect:this.fastMonthSelect,monthBeforeYear:this.calendarMonthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:e,monthYearSeparator:this.calendarHeaderMonthYearSeparator,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear},null,8,[`fastYearSelect`,`fastMonthSelect`,`monthBeforeYear`,`value`,`onUpdateValue`,`mergedClsPrefix`,`monthYearSeparator`,`calendarMonth`,`calendarYear`])),q(`div`,{class:P(`${e}-date-panel-month__next`),onClick:this.endCalendarNextMonth},[G(()=>an(a[`next-month`],()=>[(L(),W(Bf))]))],10,mfe),q(`div`,{class:P(`${e}-date-panel-month__fast-next`),onClick:this.endCalendarNextYear},[G(()=>an(a[`next-year`],()=>[(L(),W(zf))]))],10,hfe)],2),q(`div`,{class:P(`${e}-date-panel-weekdays`)},[G(()=>this.weekdays.map(t=>(L(),H(`div`,{key:t,class:P(`${e}-date-panel-weekdays__day`)},[G(()=>t)],2))))],2),q(`div`,{class:P(`${e}-date-panel__divider`)},null,2),q(`div`,{class:P(`${e}-date-panel-dates`)},[G(()=>this.endDateArray.map((t,n)=>{let r=this.mergedIsDateDisabled(t.ts);return L(),H(`div`,{"data-n-date":!0,key:n,class:P([`${e}-date-panel-date`,{[`${e}-date-panel-date--excluded`]:!t.inCurrentMonth,[`${e}-date-panel-date--current`]:t.isCurrentDate,[`${e}-date-panel-date--selected`]:t.selected,[`${e}-date-panel-date--covered`]:t.inSpan,[`${e}-date-panel-date--start`]:t.startOfSpan,[`${e}-date-panel-date--end`]:t.endOfSpan,[`${e}-date-panel-date--disabled`]:r}]),onClick:r?void 0:()=>{this.handleDateClick(t)},onMouseenter:r?void 0:()=>{this.handleDateMouseEnter(t)}},[q(`div`,{class:P(`${e}-date-panel-date__trigger`)},null,2),G(()=>t.dateObject.date),t.isCurrentDate?(L(),H(`div`,{key:0,class:P(`${e}-date-panel-date__sup`)},null,2)):G(()=>null)],42,ofe)}))],2)],2),this.datePickerSlots.footer?(L(),H(`div`,{key:0,class:P(`${e}-date-panel-footer`)},[G(()=>this.datePickerSlots.footer())],2)):G(()=>null),this.actions?.length||n?(L(),H(`div`,{key:2,class:P(`${e}-date-panel-actions`)},[q(`div`,{class:P(`${e}-date-panel-actions__prefix`)},[G(()=>n&&Object.keys(n).map(e=>{let t=n[e];return Array.isArray(t)||typeof t==`function`?(L(),W(Cr,{key:1,size:`tiny`,onMouseenter:()=>{this.handleRangeShortcutMouseenter(t)},onClick:()=>{this.handleRangeShortcutClick(t)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>e},1032,[`onMouseenter`,`onClick`,`onMouseleave`])):null}))],2),q(`div`,{class:P(`${e}-date-panel-actions__suffix`)},[this.actions?.includes(`clear`)?(L(),H(K,{key:0},[G(()=>Qt(a.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[(L(),W(wr,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:`tiny`,onClick:this.handleClearClick},{default:()=>this.locale.clear},1032,[`theme`,`themeOverrides`,`onClick`]))]))],64)):G(()=>null),this.actions?.includes(`confirm`)?(L(),H(K,{key:2},[G(()=>Qt(a.confirm,{onConfirm:this.handleConfirmClick,disabled:this.isRangeInvalid||this.isSelecting,text:this.locale.confirm},()=>[(L(),W(wr,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:`tiny`,type:`primary`,disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm},1032,[`theme`,`themeOverrides`,`disabled`,`onClick`]))]))],64)):G(()=>null)],2)],2)):G(()=>null),(L(),W(al,{onFocus:this.handleFocusDetectorFocus},null,8,[`onFocus`]))],42,sfe)}}),_fe=[`onClick`],vfe=[`onKeydown`,`onFocus`],yfe=Y({name:`MonthRangePanel`,props:{...zm,type:{type:String,required:!0}},setup(e){let t=Bm(e,e.type),{dateLocaleRef:n}=gr(`DatePicker`),r=(e,r,i,a)=>{let{handleColItemClick:o}=t;return L(),H(`div`,{"data-n-date":!0,key:r,class:P([`${i}-date-panel-month-calendar__picker-col-item`,e.isCurrent&&`${i}-date-panel-month-calendar__picker-col-item--current`,e.selected&&`${i}-date-panel-month-calendar__picker-col-item--selected`,!1]),onClick:()=>{o(e,a)}},[e.type===`month`?(L(),H(K,{key:0},[G(()=>bd(e.dateObject.month,e.monthFormat,n.value.locale))],64)):(L(),H(K,{key:1},[e.type===`quarter`?(L(),H(K,{key:0},[G(()=>Sd(e.dateObject.quarter,e.quarterFormat,n.value.locale))],64)):(L(),H(K,{key:1},[G(()=>xd(e.dateObject.year,e.yearFormat,n.value.locale))],64))],64))],10,_fe)};return Ve(()=>{t.justifyColumnsScrollState()}),{...t,renderItem:r}},render(){let{mergedClsPrefix:e,mergedTheme:t,shortcuts:n,type:r,renderItem:i,onRender:a}=this;return a?.(),L(),H(`div`,{ref:`selfRef`,tabindex:0,class:P([`${e}-date-panel`,`${e}-date-panel--daterange`,!this.panel&&`${e}-date-panel--shadow`,this.themeClass]),onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},[q(`div`,{ref:`startDatesElRef`,class:P(`${e}-date-panel-calendar ${e}-date-panel-calendar--start`)},[q(`div`,{class:P(`${e}-date-panel-month-calendar`)},[(L(),W(ln,{ref:`startYearScrollbarRef`,class:P(`${e}-date-panel-month-calendar__picker-col`),theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:()=>this.virtualListContainer(`start`),content:()=>this.virtualListContent(`start`),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>(L(),W(Sc,{ref:`startYearVlRef`,items:this.startYearArray,itemSize:40,showScrollbar:!1,keyField:`ts`,onScroll:this.handleStartYearVlScroll,paddingBottom:4},{default:({item:t,index:n})=>i(t,n,e,`start`)},1032,[`items`,`itemSize`,`onScroll`]))},1032,[`class`,`theme`,`themeOverrides`,`container`,`content`])),r===`monthrange`||r===`quarterrange`?(L(),H(`div`,{key:0,class:P(`${e}-date-panel-month-calendar__picker-col`)},[(L(),W(ln,{ref:`startMonthScrollbarRef`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar},{default:()=>[(r===`monthrange`?this.startMonthArray:this.startQuarterArray).map((t,n)=>i(t,n,e,`start`)),r===`monthrange`&&(L(),H(`div`,{class:P(`${e}-date-panel-month-calendar__padding`)},null,2))]},1032,[`theme`,`themeOverrides`]))],2)):G(()=>null)],2)],2),q(`div`,{class:P(`${e}-date-panel__vertical-divider`)},null,2),q(`div`,{ref:`endDatesElRef`,class:P(`${e}-date-panel-calendar ${e}-date-panel-calendar--end`)},[q(`div`,{class:P(`${e}-date-panel-month-calendar`)},[(L(),W(ln,{ref:`endYearScrollbarRef`,class:P(`${e}-date-panel-month-calendar__picker-col`),theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:()=>this.virtualListContainer(`end`),content:()=>this.virtualListContent(`end`),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>(L(),W(Sc,{ref:`endYearVlRef`,items:this.endYearArray,itemSize:40,showScrollbar:!1,keyField:`ts`,onScroll:this.handleEndYearVlScroll,paddingBottom:4},{default:({item:t,index:n})=>i(t,n,e,`end`)},1032,[`items`,`itemSize`,`onScroll`]))},1032,[`class`,`theme`,`themeOverrides`,`container`,`content`])),r===`monthrange`||r===`quarterrange`?(L(),H(`div`,{key:0,class:P(`${e}-date-panel-month-calendar__picker-col`)},[(L(),W(ln,{ref:`endMonthScrollbarRef`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar},{default:()=>[(r===`monthrange`?this.endMonthArray:this.endQuarterArray).map((t,n)=>i(t,n,e,`end`)),r===`monthrange`&&(L(),H(`div`,{class:P(`${e}-date-panel-month-calendar__padding`)},null,2))]},1032,[`theme`,`themeOverrides`]))],2)):G(()=>null)],2)],2),G(()=>Lt(this.datePickerSlots.footer,t=>t?(L(),H(`div`,{key:1,class:P(`${e}-date-panel-footer`)},[G(()=>t)],2)):null)),this.actions?.length||n?(L(),H(`div`,{key:0,class:P(`${e}-date-panel-actions`)},[q(`div`,{class:P(`${e}-date-panel-actions__prefix`)},[G(()=>n&&Object.keys(n).map(e=>{let t=n[e];return Array.isArray(t)||typeof t==`function`?(L(),W(Cr,{key:2,size:`tiny`,onMouseenter:()=>{this.handleRangeShortcutMouseenter(t)},onClick:()=>{this.handleRangeShortcutClick(t)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>e},1032,[`onMouseenter`,`onClick`,`onMouseleave`])):null}))],2),q(`div`,{class:P(`${e}-date-panel-actions__suffix`)},[this.actions?.includes(`clear`)?(L(),H(K,{key:0},[G(()=>Qt(this.datePickerSlots.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[(L(),W(Cr,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:`tiny`,onClick:this.handleClearClick},{default:()=>this.locale.clear},1032,[`theme`,`themeOverrides`,`onClick`]))]))],64)):G(()=>null),this.actions?.includes(`confirm`)?(L(),H(K,{key:2},[G(()=>Qt(this.datePickerSlots.confirm,{disabled:this.isRangeInvalid,onConfirm:this.handleConfirmClick,text:this.locale.confirm},()=>[(L(),W(Cr,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:`tiny`,type:`primary`,disabled:this.isRangeInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm},1032,[`theme`,`themeOverrides`,`disabled`,`onClick`]))]))],64)):G(()=>null)],2)],2)):G(()=>null),(L(),W(al,{onFocus:this.handleFocusDetectorFocus},null,8,[`onFocus`]))],42,vfe)}}),bfe=U([z(`date-picker`,`
position: relative;
z-index: auto;
`,[z(`date-picker-icon`,`
color: var(--n-icon-color-override);
transition: color .3s var(--n-bezier);
`),z(`icon`,`
color: var(--n-icon-color-override);
transition: color .3s var(--n-bezier);
`),B(`disabled`,[z(`date-picker-icon`,`
color: var(--n-icon-color-disabled-override);
`),z(`icon`,`
color: var(--n-icon-color-disabled-override);
`)])]),z(`date-panel`,`
width: fit-content;
outline: none;
margin: 4px 0;
display: grid;
grid-template-columns: 0fr;
border-radius: var(--n-panel-border-radius);
background-color: var(--n-panel-color);
color: var(--n-panel-text-color);
user-select: none;
`,[pl(),B(`shadow`,`
box-shadow: var(--n-panel-box-shadow);
`),z(`date-panel-calendar`,{padding:`var(--n-calendar-left-padding)`,display:`grid`,gridTemplateColumns:`1fr`,gridArea:`left-calendar`},[B(`end`,{padding:`var(--n-calendar-right-padding)`,gridArea:`right-calendar`})]),z(`date-panel-month-calendar`,{display:`flex`,gridArea:`left-calendar`},[X(`picker-col`,`
min-width: var(--n-scroll-item-width);
height: calc(var(--n-scroll-item-height) * 6);
user-select: none;
-webkit-user-select: none;
`,[U(`&:first-child`,`
min-width: calc(var(--n-scroll-item-width) + 4px);
`,[X(`picker-col-item`,[U(`&::before`,`left: 4px;`)])]),X(`padding`,`
height: calc(var(--n-scroll-item-height) * 5)
`)]),X(`picker-col-item`,`
z-index: 0;
cursor: pointer;
height: var(--n-scroll-item-height);
box-sizing: border-box;
padding-top: 4px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
transition:
color .3s var(--n-bezier),
background-color .3s var(--n-bezier);
background: #0000;
color: var(--n-item-text-color);
`,[U(`&::before`,`
z-index: -1;
content: "";
position: absolute;
left: 0;
right: 4px;
top: 4px;
bottom: 0;
border-radius: var(--n-scroll-item-border-radius);
transition:
background-color .3s var(--n-bezier);
`),On(`disabled`,[U(`&:hover::before`,`
background-color: var(--n-item-color-hover);
`),B(`selected`,`
color: var(--n-item-color-active);
`,[U(`&::before`,`background-color: var(--n-item-color-hover);`)])]),B(`disabled`,`
color: var(--n-item-text-color-disabled);
cursor: not-allowed;
`,[B(`selected`,[U(`&::before`,`
background-color: var(--n-item-color-disabled);
`)])])])]),B(`date`,{gridTemplateAreas:`
"left-calendar"
"footer"
"action"
`}),B(`week`,{gridTemplateAreas:`
"left-calendar"
"footer"
"action"
`}),B(`daterange`,{gridTemplateAreas:`
"left-calendar divider right-calendar"
"footer footer footer"
"action action action"
`}),B(`datetime`,{gridTemplateAreas:`
"header"
"left-calendar"
"footer"
"action"
`}),B(`datetimerange`,{gridTemplateAreas:`
"header header header"
"left-calendar divider right-calendar"
"footer footer footer"
"action action action"
`}),B(`month`,{gridTemplateAreas:`
"left-calendar"
"footer"
"action"
`}),z(`date-panel-footer`,{gridArea:`footer`}),z(`date-panel-actions`,{gridArea:`action`}),z(`date-panel-header`,{gridArea:`header`}),z(`date-panel-header`,`
box-sizing: border-box;
width: 100%;
align-items: center;
padding: var(--n-panel-header-padding);
display: flex;
justify-content: space-between;
border-bottom: 1px solid var(--n-panel-header-divider-color);
`,[U(`>`,[U(`*:not(:last-child)`,{marginRight:`10px`}),U(`*`,{flex:1,width:0}),z(`time-picker`,{zIndex:1})])]),z(`date-panel-month`,`
box-sizing: border-box;
display: grid;
grid-template-columns: var(--n-calendar-title-grid-template-columns);
align-items: center;
justify-items: center;
padding: var(--n-calendar-title-padding);
height: var(--n-calendar-title-height);
`,[X(`prev, next, fast-prev, fast-next`,`
line-height: 0;
cursor: pointer;
width: var(--n-arrow-size);
height: var(--n-arrow-size);
color: var(--n-arrow-color);
`),X(`month-year`,`
user-select: none;
-webkit-user-select: none;
flex-grow: 1;
position: relative;
`,[X(`text`,`
font-size: var(--n-calendar-title-font-size);
line-height: var(--n-calendar-title-font-size);
font-weight: var(--n-calendar-title-font-weight);
padding: 6px 8px;
text-align: center;
color: var(--n-calendar-title-text-color);
cursor: pointer;
transition: background-color .3s var(--n-bezier);
border-radius: var(--n-panel-border-radius);
`,[B(`active`,`
background-color: var(--n-calendar-title-color-hover);
`),U(`&:hover`,`
background-color: var(--n-calendar-title-color-hover);
`)])])]),z(`date-panel-weekdays`,`
display: grid;
margin: auto;
grid-template-columns: repeat(7, var(--n-item-cell-width));
grid-template-rows: repeat(1, var(--n-item-cell-height));
align-items: center;
justify-items: center;
margin-bottom: 4px;
border-bottom: 1px solid var(--n-calendar-days-divider-color);
`,[X(`day`,`
white-space: nowrap;
user-select: none;
-webkit-user-select: none;
line-height: 15px;
width: var(--n-item-size);
text-align: center;
font-size: var(--n-calendar-days-font-size);
color: var(--n-item-text-color);
display: flex;
align-items: center;
justify-content: center;
`)]),z(`date-panel-dates`,`
margin: auto;
display: grid;
grid-template-columns: repeat(7, var(--n-item-cell-width));
grid-template-rows: repeat(6, var(--n-item-cell-height));
align-items: center;
justify-items: center;
flex-wrap: wrap;
`,[z(`date-panel-date`,`
user-select: none;
-webkit-user-select: none;
position: relative;
width: var(--n-item-size);
height: var(--n-item-size);
line-height: var(--n-item-size);
text-align: center;
font-size: var(--n-item-font-size);
border-radius: var(--n-item-border-radius);
z-index: 0;
cursor: pointer;
transition:
background-color .2s var(--n-bezier),
color .2s var(--n-bezier);
`,[X(`trigger`,`
position: absolute;
left: calc(var(--n-item-size) / 2 - var(--n-item-cell-width) / 2);
top: calc(var(--n-item-size) / 2 - var(--n-item-cell-height) / 2);
width: var(--n-item-cell-width);
height: var(--n-item-cell-height);
`),B(`current`,[X(`sup`,`
position: absolute;
top: 2px;
right: 2px;
content: "";
height: 4px;
width: 4px;
border-radius: 2px;
background-color: var(--n-item-color-active);
transition:
background-color .2s var(--n-bezier);
`)]),U(`&::after`,`
content: "";
z-index: -1;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
border-radius: inherit;
transition: background-color .3s var(--n-bezier);
`),B(`covered, start, end`,[On(`excluded`,[U(`&::before`,`
content: "";
z-index: -2;
position: absolute;
left: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2);
right: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2);
top: 0;
bottom: 0;
background-color: var(--n-item-color-included);
`),U(`&:nth-child(7n + 1)::before`,{borderTopLeftRadius:`var(--n-item-border-radius)`,borderBottomLeftRadius:`var(--n-item-border-radius)`}),U(`&:nth-child(7n + 7)::before`,{borderTopRightRadius:`var(--n-item-border-radius)`,borderBottomRightRadius:`var(--n-item-border-radius)`})])]),B(`selected`,{color:`var(--n-item-text-color-active)`},[U(`&::after`,{backgroundColor:`var(--n-item-color-active)`}),B(`start`,[U(`&::before`,{left:`50%`})]),B(`end`,[U(`&::before`,{right:`50%`})]),X(`sup`,{backgroundColor:`var(--n-panel-color)`})]),B(`excluded`,{color:`var(--n-item-text-color-disabled)`},[B(`selected`,[U(`&::after`,{backgroundColor:`var(--n-item-color-disabled)`})])]),B(`disabled`,{cursor:`not-allowed`,color:`var(--n-item-text-color-disabled)`},[B(`covered`,[U(`&::before`,{backgroundColor:`var(--n-item-color-disabled)`})]),B(`selected`,[U(`&::before`,{backgroundColor:`var(--n-item-color-disabled)`}),U(`&::after`,{backgroundColor:`var(--n-item-color-disabled)`})])]),B(`week-hovered`,[U(`&::before`,`
background-color: var(--n-item-color-included);
`),U(`&:nth-child(7n + 1)::before`,`
border-top-left-radius: var(--n-item-border-radius);
border-bottom-left-radius: var(--n-item-border-radius);
`),U(`&:nth-child(7n + 7)::before`,`
border-top-right-radius: var(--n-item-border-radius);
border-bottom-right-radius: var(--n-item-border-radius);
`)]),B(`week-selected`,`
color: var(--n-item-text-color-active)
`,[U(`&::before`,`
background-color: var(--n-item-color-active);
`),U(`&:nth-child(7n + 1)::before`,`
border-top-left-radius: var(--n-item-border-radius);
border-bottom-left-radius: var(--n-item-border-radius);
`),U(`&:nth-child(7n + 7)::before`,`
border-top-right-radius: var(--n-item-border-radius);
border-bottom-right-radius: var(--n-item-border-radius);
`)])])]),On(`week`,[z(`date-panel-dates`,[z(`date-panel-date`,[On(`disabled`,[On(`selected`,[U(`&:hover`,`
background-color: var(--n-item-color-hover);
`)])])])])]),B(`week`,[z(`date-panel-dates`,[z(`date-panel-date`,[U(`&::before`,`
content: "";
z-index: -2;
position: absolute;
left: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2);
right: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2);
top: 0;
bottom: 0;
transition: background-color .3s var(--n-bezier);
`)])])]),X(`vertical-divider`,`
grid-area: divider;
height: 100%;
width: 1px;
background-color: var(--n-calendar-divider-color);
`),z(`date-panel-footer`,`
border-top: 1px solid var(--n-panel-action-divider-color);
padding: var(--n-panel-extra-footer-padding);
`),z(`date-panel-actions`,`
flex: 1;
padding: var(--n-panel-action-padding);
display: flex;
align-items: center;
justify-content: space-between;
border-top: 1px solid var(--n-panel-action-divider-color);
`,[X(`prefix, suffix`,`
display: flex;
margin-bottom: -8px;
`),X(`suffix`,`
align-self: flex-end;
`),X(`prefix`,`
flex-wrap: wrap;
`),z(`button`,`
margin-bottom: 8px;
`,[U(`&:not(:last-child)`,`
margin-right: 8px;
`)])])]),U(`[data-n-date].transition-disabled`,{transition:`none !important`},[U(`&::before, &::after`,{transition:`none !important`})])]);function xfe(e,t){let n=V(()=>{let{isTimeDisabled:n}=e,{value:r}=t;if(!(r===null||Array.isArray(r)))return n?.(r)}),r=V(()=>n.value?.isHourDisabled),i=V(()=>n.value?.isMinuteDisabled),a=V(()=>n.value?.isSecondDisabled),o=V(()=>{let{type:n,isDateDisabled:r}=e,{value:i}=t;return i===null||Array.isArray(i)||![`date`,`datetime`].includes(n)||!r?!1:r(i,{type:`input`})}),s=V(()=>{let{type:n}=e,{value:o}=t;if(o===null||n===`datetime`||Array.isArray(o))return!1;let s=new Date(o),c=s.getHours(),l=s.getMinutes(),u=s.getMinutes();return(r.value?r.value(c):!1)||(i.value?i.value(l,c):!1)||(a.value?a.value(u,l,c):!1)}),c=V(()=>o.value||s.value);return{isValueInvalidRef:V(()=>{let{type:t}=e;return t===`date`?o.value:t===`datetime`&&c.value}),isDateInvalidRef:o,isTimeInvalidRef:s,isDateTimeInvalidRef:c,isHourDisabledRef:r,isMinuteDisabledRef:i,isSecondDisabledRef:a}}function Sfe(e,t){let n=V(()=>{let{isTimeDisabled:n}=e,{value:r}=t;return!Array.isArray(r)||!n?[void 0,void 0]:[n?.(r[0],`start`,r),n?.(r[1],`end`,r)]}),r={isStartHourDisabledRef:V(()=>n.value[0]?.isHourDisabled),isEndHourDisabledRef:V(()=>n.value[1]?.isHourDisabled),isStartMinuteDisabledRef:V(()=>n.value[0]?.isMinuteDisabled),isEndMinuteDisabledRef:V(()=>n.value[1]?.isMinuteDisabled),isStartSecondDisabledRef:V(()=>n.value[0]?.isSecondDisabled),isEndSecondDisabledRef:V(()=>n.value[1]?.isSecondDisabled)},i=V(()=>{let{type:n,isDateDisabled:r}=e,{value:i}=t;return i===null||!Array.isArray(i)||![`daterange`,`datetimerange`].includes(n)||!r?!1:r(i[0],`start`,i)}),a=V(()=>{let{type:n,isDateDisabled:r}=e,{value:i}=t;return i===null||!Array.isArray(i)||![`daterange`,`datetimerange`].includes(n)||!r?!1:r(i[1],`end`,i)}),o=V(()=>{let{type:n}=e,{value:i}=t;if(i===null||!Array.isArray(i)||n!==`datetimerange`)return!1;let a=Pu(i[0]),o=Lu(i[0]),s=zu(i[0]),{isStartHourDisabledRef:c,isStartMinuteDisabledRef:l,isStartSecondDisabledRef:u}=r;return(c.value?c.value(a):!1)||(l.value?l.value(o,a):!1)||(u.value?u.value(s,o,a):!1)}),s=V(()=>{let{type:n}=e,{value:i}=t;if(i===null||!Array.isArray(i)||n!==`datetimerange`)return!1;let a=Pu(i[1]),o=Lu(i[1]),s=zu(i[1]),{isEndHourDisabledRef:c,isEndMinuteDisabledRef:l,isEndSecondDisabledRef:u}=r;return(c.value?c.value(a):!1)||(l.value?l.value(o,a):!1)||(u.value?u.value(s,o,a):!1)}),c=V(()=>i.value||o.value),l=V(()=>a.value||s.value),u=V(()=>c.value||l.value);return{...r,isStartDateInvalidRef:i,isEndDateInvalidRef:a,isStartTimeInvalidRef:o,isEndTimeInvalidRef:s,isStartValueInvalidRef:c,isEndValueInvalidRef:l,isRangeInvalidRef:u}}var Cfe=[`onKeydown`],Vm=Y({name:`DatePicker`,props:Ode,slots:Object,setup(e,{slots:t}){let{localeRef:n,dateLocaleRef:r}=gr(`DatePicker`),{mergedComponentPropsRef:a,mergedClsPrefixRef:o,mergedBorderedRef:s,namespaceRef:c,inlineThemeDisabled:l}=mn(e),u=mr(e,{mergedSize:t=>{let{size:n}=e;if(n)return n;let{mergedSize:r}=t||{};return r?.value?r.value:a?.value?.DatePicker?.size||`medium`}}),{mergedSizeRef:d,mergedDisabledRef:f,mergedStatusRef:p}=u,m=N(null),h=N(null),g=N(null),_=N(!1),v=i(e,`show`),y=lr(v,_),b=V(()=>({locale:r.value.locale,useAdditionalWeekYearTokens:!0})),x=V(()=>{let{format:t}=e;if(t)return t;switch(e.type){case`date`:case`daterange`:return n.value.dateFormat;case`datetime`:case`datetimerange`:return n.value.dateTimeFormat;case`year`:case`yearrange`:return n.value.yearTypeFormat;case`month`:case`monthrange`:return n.value.monthTypeFormat;case`quarter`:case`quarterrange`:return n.value.quarterFormat;case`week`:return n.value.weekFormat}}),S=V(()=>e.valueFormat??x.value);function C(e){if(e===null)return null;let{value:t}=S,{value:n}=b;return Array.isArray(e)?[Dd(e[0],t,new Date,n).getTime(),Dd(e[1],t,new Date,n).getTime()]:Dd(e,t,new Date,n).getTime()}let{defaultFormattedValue:w,defaultValue:T}=e,E=N((w===void 0?T:C(w))??null),D=V(()=>{let{formattedValue:t}=e;return t===void 0?e.value:C(t)}),O=lr(D,E),k=N(null);ot(()=>{k.value=O.value});let A=N(``),j=N(``),ee=N(``),te=$e(`DatePicker`,`-date-picker`,bfe,Qp,e,o),M=V(()=>a?.value?.DatePicker?.timePickerSize||`small`),ne=V(()=>[`daterange`,`datetimerange`,`monthrange`,`quarterrange`,`yearrange`].includes(e.type)),re=V(()=>{let{placeholder:t}=e;if(t===void 0){let{type:t}=e;switch(t){case`date`:return n.value.datePlaceholder;case`datetime`:return n.value.datetimePlaceholder;case`month`:return n.value.monthPlaceholder;case`year`:return n.value.yearPlaceholder;case`quarter`:return n.value.quarterPlaceholder;case`week`:return n.value.weekPlaceholder;default:return``}}else return t}),ie=V(()=>e.startPlaceholder===void 0?e.type===`daterange`?n.value.startDatePlaceholder:e.type===`datetimerange`?n.value.startDatetimePlaceholder:e.type===`monthrange`?n.value.startMonthPlaceholder:``:e.startPlaceholder),P=V(()=>e.endPlaceholder===void 0?e.type===`daterange`?n.value.endDatePlaceholder:e.type===`datetimerange`?n.value.endDatetimePlaceholder:e.type===`monthrange`?n.value.endMonthPlaceholder:``:e.endPlaceholder),ae=V(()=>{let{actions:t,type:n,clearable:r}=e;if(t===null)return[];if(t!==void 0)return t;let i=r?[`clear`]:[];switch(n){case`date`:case`week`:return i.push(`now`),i;case`datetime`:return i.push(`now`,`confirm`),i;case`daterange`:return i.push(`confirm`),i;case`datetimerange`:return i.push(`confirm`),i;case`month`:return i.push(`now`,`confirm`),i;case`year`:return i.push(`now`),i;case`quarter`:return i.push(`now`,`confirm`),i;case`monthrange`:case`yearrange`:case`quarterrange`:return i.push(`confirm`),i;default:on(`date-picker`,"The type is wrong, n-date-picker's type only supports `date`, `datetime`, `daterange` and `datetimerange`.")}});function oe(e){if(e===null)return null;if(Array.isArray(e)){let{value:t}=S,{value:n}=b;return[Ou(e[0],t,n),Ou(e[1],t,b.value)]}return Ou(e,S.value,b.value)}function se(e){k.value=e}function ce(t,n){let{"onUpdate:formattedValue":r,onUpdateFormattedValue:i}=e;r&&R(r,t,n),i&&R(i,t,n)}function le(t,n){let{"onUpdate:value":r,onUpdateValue:i,onChange:a}=e,{nTriggerFormChange:o,nTriggerFormInput:s}=u,c=oe(t);n.doConfirm&&de(t,c),i&&R(i,t,c),r&&R(r,t,c),a&&R(a,t,c),E.value=t,ce(c,t),o(),s()}function ue(){let{onClear:t}=e;t?.()}function de(t,n){let{onConfirm:r}=e;r&&r(t,n)}function pe(t){let{onFocus:n}=e,{nTriggerFormFocus:r}=u;n&&R(n,t),r()}function me(t){let{onBlur:n}=e,{nTriggerFormBlur:r}=u;n&&R(n,t),r()}function F(t){let{"onUpdate:show":n,onUpdateShow:r}=e;n&&R(n,t),r&&R(r,t),_.value=t}function he(e){e.key===`Escape`&&y.value&&(Yd(e),Fe({returnFocus:!0}))}function ge(e){e.key===`Escape`&&y.value&&Yd(e)}function _e(){F(!1),g.value?.deactivate(),ue()}function I(){g.value?.deactivate(),ue()}function ve(){Fe({returnFocus:!0})}function ye(e){y.value&&!h.value?.contains(vt(e))&&Fe({returnFocus:!1})}function L(e){Fe({returnFocus:!0,disableUpdateOnClose:e})}function be(e,t){t?le(e,{doConfirm:!1}):se(e)}function xe(){let e=k.value;le(Array.isArray(e)?[e[0],e[1]]:e,{doConfirm:!0})}function Se(){let{value:e}=k;ne.value?(Array.isArray(e)||e===null)&&we(e):Array.isArray(e)||Ce(e)}function Ce(e){e===null?A.value=``:A.value=Ou(e,x.value,b.value)}function we(e){if(e===null)j.value=``,ee.value=``;else{let t=b.value;j.value=Ou(e[0],x.value,t),ee.value=Ou(e[1],x.value,t)}}function Ee(){y.value||Pe()}function De(e){m.value?.$el.contains(e.relatedTarget)||(me(e),Se(),Fe({returnFocus:!1}))}function ke(){f.value||(Se(),Fe({returnFocus:!1}))}function Ae(e){if(e===``){le(null,{doConfirm:!1}),k.value=null,A.value=``;return}let t=Dd(e,x.value,new Date,b.value);cu(t)?(le(Bu(t),{doConfirm:!1}),Se()):A.value=e}function je(e,{source:t}){if(e[0]===``&&e[1]===``){le(null,{doConfirm:!1}),k.value=null,j.value=``,ee.value=``;return}let[n,r]=e,i=Dd(n,x.value,new Date,b.value),a=Dd(r,x.value,new Date,b.value);if(cu(i)&&cu(a)){let e=Bu(i),n=Bu(a);a<i&&(t===0?n=e:e=n),le([e,n],{doConfirm:!1}),Se()}else[j.value,ee.value]=e}function Me(e){f.value||ts(e,`clear`)||y.value||Pe()}function Ne(e){f.value||pe(e)}function Pe(){f.value||y.value||F(!0)}function Fe({returnFocus:t,disableUpdateOnClose:n}){y.value&&(F(!1),e.type!==`date`&&e.updateValueOnClose&&!n&&xe(),t&&g.value?.focus())}Te(k,()=>{Se()}),Se(),Te(y,e=>{e||(k.value=O.value)});let Ie=xfe(e,k),Le=Sfe(e,k);Oe(Mm,{mergedClsPrefixRef:o,mergedThemeRef:te,timePickerSizeRef:M,localeRef:n,dateLocaleRef:r,firstDayOfWeekRef:i(e,`firstDayOfWeek`),isDateDisabledRef:i(e,`isDateDisabled`),rangesRef:i(e,`ranges`),timePickerPropsRef:i(e,`timePickerProps`),closeOnSelectRef:i(e,`closeOnSelect`),updateValueOnCloseRef:i(e,`updateValueOnClose`),monthFormatRef:i(e,`monthFormat`),yearFormatRef:i(e,`yearFormat`),quarterFormatRef:i(e,`quarterFormat`),yearRangeRef:i(e,`yearRange`),...Ie,...Le,datePickerSlots:t});let Re={focus:()=>{g.value?.focus()},blur:()=>{g.value?.blur()}},ze=V(()=>{let{common:{cubicBezierEaseInOut:e},self:{iconColor:t,iconColorDisabled:n}}=te.value;return{"--n-bezier":e,"--n-icon-color-override":t,"--n-icon-color-disabled-override":n}}),Be=l?fe(`date-picker-trigger`,void 0,ze,e):void 0,Ve=V(()=>{let{type:t}=e,{common:{cubicBezierEaseInOut:n},self:{calendarTitleFontSize:r,calendarDaysFontSize:i,itemFontSize:a,itemTextColor:o,itemColorDisabled:s,itemColorIncluded:c,itemColorHover:l,itemColorActive:u,itemBorderRadius:d,itemTextColorDisabled:f,itemTextColorActive:p,panelColor:m,panelTextColor:h,arrowColor:g,calendarTitleTextColor:_,panelActionDividerColor:v,panelHeaderDividerColor:y,calendarDaysDividerColor:b,panelBoxShadow:x,panelBorderRadius:S,calendarTitleFontWeight:C,panelExtraFooterPadding:w,panelActionPadding:T,itemSize:E,itemCellWidth:D,itemCellHeight:O,scrollItemWidth:k,scrollItemHeight:A,calendarTitlePadding:j,calendarTitleHeight:ee,calendarDaysHeight:M,calendarDaysTextColor:ne,arrowSize:re,panelHeaderPadding:ie,calendarDividerColor:N,calendarTitleGridTempateColumns:P,iconColor:ae,iconColorDisabled:oe,scrollItemBorderRadius:se,calendarTitleColorHover:ce,[tt(`calendarLeftPadding`,t)]:le,[tt(`calendarRightPadding`,t)]:ue}}=te.value;return{"--n-bezier":n,"--n-panel-border-radius":S,"--n-panel-color":m,"--n-panel-box-shadow":x,"--n-panel-text-color":h,"--n-panel-header-padding":ie,"--n-panel-header-divider-color":y,"--n-calendar-left-padding":le,"--n-calendar-right-padding":ue,"--n-calendar-title-color-hover":ce,"--n-calendar-title-height":ee,"--n-calendar-title-padding":j,"--n-calendar-title-font-size":r,"--n-calendar-title-font-weight":C,"--n-calendar-title-text-color":_,"--n-calendar-title-grid-template-columns":P,"--n-calendar-days-height":M,"--n-calendar-days-divider-color":b,"--n-calendar-days-font-size":i,"--n-calendar-days-text-color":ne,"--n-calendar-divider-color":N,"--n-panel-action-padding":T,"--n-panel-extra-footer-padding":w,"--n-panel-action-divider-color":v,"--n-item-font-size":a,"--n-item-border-radius":d,"--n-item-size":E,"--n-item-cell-width":D,"--n-item-cell-height":O,"--n-item-text-color":o,"--n-item-color-included":c,"--n-item-color-disabled":s,"--n-item-color-hover":l,"--n-item-color-active":u,"--n-item-text-color-disabled":f,"--n-item-text-color-active":p,"--n-scroll-item-width":k,"--n-scroll-item-height":A,"--n-scroll-item-border-radius":se,"--n-arrow-size":re,"--n-arrow-color":g,"--n-icon-color":ae,"--n-icon-color-disabled":oe}}),He=l?fe(`date-picker`,V(()=>e.type),Ve,e):void 0;return{...Re,mergedStatus:p,mergedClsPrefix:o,mergedBordered:s,namespace:c,uncontrolledValue:E,pendingValue:k,panelInstRef:m,triggerElRef:h,inputInstRef:g,isMounted:sr(),displayTime:A,displayStartTime:j,displayEndTime:ee,mergedShow:y,adjustedTo:Vs(e),isRange:ne,localizedStartPlaceholder:ie,localizedEndPlaceholder:P,mergedSize:d,mergedDisabled:f,localizedPlacehoder:re,isValueInvalid:Ie.isValueInvalidRef,isStartValueInvalid:Le.isStartValueInvalidRef,isEndValueInvalid:Le.isEndValueInvalidRef,handleInputKeydown:ge,handleClickOutside:ye,handleKeydown:he,handleClear:_e,handlePanelClear:I,handleTriggerClick:Me,handleInputActivate:Ee,handleInputDeactivate:ke,handleInputFocus:Ne,handleInputBlur:De,handlePanelTabOut:ve,handlePanelClose:L,handleRangeUpdateValue:je,handleSingleUpdateValue:Ae,handlePanelUpdateValue:be,handlePanelConfirm:xe,mergedTheme:te,actions:ae,triggerCssVars:l?void 0:ze,triggerThemeClass:Be?.themeClass,triggerOnRender:Be?.onRender,cssVars:l?void 0:Ve,themeClass:He?.themeClass,onRender:He?.onRender,onNextMonth:e.onNextMonth,onPrevMonth:e.onPrevMonth,onNextYear:e.onNextYear,onPrevYear:e.onPrevYear}},render(){let{clearable:t,triggerOnRender:n,mergedClsPrefix:r,$slots:i}=this,a={onUpdateValue:this.handlePanelUpdateValue,onTabOut:this.handlePanelTabOut,onClose:this.handlePanelClose,onClear:this.handlePanelClear,onKeydown:this.handleKeydown,onConfirm:this.handlePanelConfirm,ref:`panelInstRef`,value:this.pendingValue,active:this.mergedShow,actions:this.actions,shortcuts:this.shortcuts,style:this.cssVars,defaultTime:this.defaultTime,themeClass:this.themeClass,panel:this.panel,inputReadonly:this.inputReadonly||this.mergedDisabled,onRender:this.onRender,onNextMonth:this.onNextMonth,onPrevMonth:this.onPrevMonth,onNextYear:this.onNextYear,onPrevYear:this.onPrevYear,timePickerFormat:this.timePickerFormat,dateFormat:this.dateFormat,fastYearSelect:this.fastYearSelect,fastMonthSelect:this.fastMonthSelect,calendarDayFormat:this.calendarDayFormat,calendarHeaderYearFormat:this.calendarHeaderYearFormat,calendarHeaderMonthFormat:this.calendarHeaderMonthFormat,calendarHeaderMonthYearSeparator:this.calendarHeaderMonthYearSeparator,calendarHeaderMonthBeforeYear:this.calendarHeaderMonthBeforeYear},o=()=>{let{type:e}=this;return e===`datetime`?(L(),W(ife,I({key:1},a,{defaultCalendarStartTime:this.defaultCalendarStartTime}),_n(i),1040,[`defaultCalendarStartTime`])):e===`daterange`?(L(),W(Zde,I({key:2},a,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),_n(i),1040,[`defaultCalendarStartTime`,`defaultCalendarEndTime`,`bindCalendarMonths`])):e===`datetimerange`?(L(),W(gfe,I({key:3},a,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),_n(i),1040,[`defaultCalendarStartTime`,`defaultCalendarEndTime`,`bindCalendarMonths`])):e===`month`||e===`year`||e===`quarter`?(L(),W(Lm,I(a,{type:e,key:e}),null,16,[`type`])):e===`monthrange`||e===`yearrange`||e===`quarterrange`?(L(),W(yfe,I({key:5},a,{type:e}),null,16,[`type`])):(L(),W(zde,I({key:6},a,{type:e,defaultCalendarStartTime:this.defaultCalendarStartTime}),_n(i),1040,[`type`,`defaultCalendarStartTime`]))};if(this.panel)return o();n?.();let s={bordered:this.mergedBordered,size:this.mergedSize,passivelyActivated:!0,disabled:this.mergedDisabled,readonly:this.inputReadonly||this.mergedDisabled,clearable:t,onClear:this.handleClear,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown,onActivate:this.handleInputActivate,onDeactivate:this.handleInputDeactivate,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur};return L(),H(`div`,{ref:`triggerElRef`,class:P([`${r}-date-picker`,this.mergedDisabled&&`${r}-date-picker--disabled`,this.isRange&&`${r}-date-picker--range`,this.triggerThemeClass]),style:e(this.triggerCssVars),onKeydown:this.handleKeydown},[J(Zs,null,{default:()=>[(L(),W(Qs,null,{default:()=>this.isRange?(L(),W(Fr,I({key:7,ref:`inputInstRef`,status:this.mergedStatus,value:[this.displayStartTime,this.displayEndTime],placeholder:[this.localizedStartPlaceholder,this.localizedEndPlaceholder],textDecoration:[this.isStartValueInvalid?`line-through`:``,this.isEndValueInvalid?`line-through`:``],pair:!0,onUpdateValue:this.handleRangeUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},s),{separator:()=>this.separator===void 0?an(i.separator,()=>[(L(),W(wt,{clsPrefix:r,class:P(`${r}-date-picker-icon`)},{default:()=>(L(),W(kde))},1032,[`clsPrefix`,`class`]))]):this.separator,[t?`clear-icon-placeholder`:`suffix`]:()=>an(i[`date-icon`],()=>[(L(),W(wt,{clsPrefix:r,class:P(`${r}-date-picker-icon`)},{default:()=>(L(),W(jm))},1032,[`clsPrefix`,`class`]))])},1040,[`status`,`value`,`placeholder`,`textDecoration`,`onUpdateValue`,`theme`,`themeOverrides`,`internalForceFocus`])):(L(),W(Fr,I({key:8,ref:`inputInstRef`,status:this.mergedStatus,value:this.displayTime,placeholder:this.localizedPlacehoder,textDecoration:this.isValueInvalid&&!this.isRange?`line-through`:``,onUpdateValue:this.handleSingleUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},s),{[t?`clear-icon-placeholder`:`suffix`]:()=>(L(),W(wt,{clsPrefix:r,class:P(`${r}-date-picker-icon`)},{default:()=>an(i[`date-icon`],()=>[(L(),W(jm))])},1032,[`clsPrefix`,`class`]))},1040,[`status`,`value`,`placeholder`,`textDecoration`,`onUpdateValue`,`theme`,`themeOverrides`,`internalForceFocus`]))},1024)),(L(),W(gc,{show:this.mergedShow,containerClass:this.namespace,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Vs.tdkey,placement:this.placement},{default:()=>(L(),W(gn,{name:`fade-in-scale-up-transition`,appear:this.isMounted},{default:()=>this.mergedShow?Se(o(),[[tc,this.handleClickOutside,void 0,{capture:!0}]]):null},1032,[`appear`]))},1032,[`show`,`containerClass`,`to`,`teleportDisabled`,`placement`]))]},1024)],46,Cfe)}}),wfe={thPaddingBorderedSmall:`8px 12px`,thPaddingBorderedMedium:`12px 16px`,thPaddingBorderedLarge:`16px 24px`,thPaddingSmall:`0`,thPaddingMedium:`0`,thPaddingLarge:`0`,tdPaddingBorderedSmall:`8px 12px`,tdPaddingBorderedMedium:`12px 16px`,tdPaddingBorderedLarge:`16px 24px`,tdPaddingSmall:`0 0 8px 0`,tdPaddingMedium:`0 0 12px 0`,tdPaddingLarge:`0 0 16px 0`};function Hm(e){let{tableHeaderColor:t,textColor2:n,textColor1:r,cardColor:i,modalColor:a,popoverColor:o,dividerColor:s,borderRadius:c,fontWeightStrong:l,lineHeight:u,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:p}=e;return{...wfe,lineHeight:u,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:p,titleTextColor:r,thColor:Ue(i,t),thColorModal:Ue(a,t),thColorPopover:Ue(o,t),thTextColor:r,thFontWeight:l,tdTextColor:n,tdColor:i,tdColorModal:a,tdColorPopover:o,borderColor:Ue(i,s),borderColorModal:Ue(a,s),borderColorPopover:Ue(o,s),borderRadius:c}}var Um={name:`Descriptions`,common:_e,self:Hm},Tfe={name:`Descriptions`,common:os,self:Hm},Wm=bn(`n-dialog-provider`),Gm=bn(`n-dialog-api`),Efe=bn(`n-dialog-reactive-list`);function Dfe(){let e=pe(Gm,null);return e===null&&Ft(`use-dialog`,`No outer <n-dialog-provider /> founded.`),e}var Ofe={titleFontSize:`18px`,padding:`16px 28px 20px 28px`,iconSize:`28px`,actionSpace:`12px`,contentMargin:`8px 0 16px 0`,iconMargin:`0 4px 0 0`,iconMarginIconTop:`4px 0 8px 0`,closeSize:`22px`,closeIconSize:`18px`,closeMargin:`20px 26px 0 0`,closeMarginIconTop:`10px 16px 0 0`};function Km(e){let{textColor1:t,textColor2:n,modalColor:r,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeColorHover:s,closeColorPressed:c,infoColor:l,successColor:u,warningColor:d,errorColor:f,primaryColor:p,dividerColor:m,borderRadius:h,fontWeightStrong:g,lineHeight:_,fontSize:v}=e;return{...Ofe,fontSize:v,lineHeight:_,border:`1px solid ${m}`,titleTextColor:t,textColor:n,color:r,closeColorHover:s,closeColorPressed:c,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeBorderRadius:h,iconColor:p,iconColorInfo:l,iconColorSuccess:u,iconColorWarning:d,iconColorError:f,borderRadius:h,titleFontWeight:g}}var qm=En({name:`Dialog`,common:_e,peers:{Button:xr},self:Km}),Jm={name:`Dialog`,common:os,peers:{Button:$l},self:Km},Ym={icon:Function,type:{type:String,default:`default`},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,titleClass:[String,Array],titleStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],actionClass:[String,Array],actionStyle:[String,Object],onPositiveClick:Function,onNegativeClick:Function,onClose:Function,closeFocusable:Boolean},Xm=jt(Ym),kfe=U([z(`dialog`,`
--n-icon-margin: var(--n-icon-margin-top) var(--n-icon-margin-right) var(--n-icon-margin-bottom) var(--n-icon-margin-left);
word-break: break-word;
line-height: var(--n-line-height);
position: relative;
background: var(--n-color);
color: var(--n-text-color);
box-sizing: border-box;
margin: auto;
border-radius: var(--n-border-radius);
padding: var(--n-padding);
transition:
border-color .3s var(--n-bezier),
background-color .3s var(--n-bezier),
color .3s var(--n-bezier);
`,[X(`icon`,`
color: var(--n-icon-color);
`),B(`bordered`,`
border: var(--n-border);
`),B(`icon-top`,[X(`close`,`
margin: var(--n-close-margin);
`),X(`icon`,`
margin: var(--n-icon-margin);
`),X(`content`,`
text-align: center;
`),X(`title`,`
justify-content: center;
`),X(`action`,`
justify-content: center;
`)]),B(`icon-left`,[X(`icon`,`
margin: var(--n-icon-margin);
`),B(`closable`,[X(`title`,`
padding-right: calc(var(--n-close-size) + 6px);
`)])]),X(`close`,`
position: absolute;
right: 0;
top: 0;
margin: var(--n-close-margin);
transition:
background-color .3s var(--n-bezier),
color .3s var(--n-bezier);
z-index: 1;
`),X(`content`,`
font-size: var(--n-font-size);
margin: var(--n-content-margin);
position: relative;
word-break: break-word;
`,[B(`last`,`margin-bottom: 0;`)]),X(`action`,`
display: flex;
justify-content: flex-end;
`,[U(`> *:not(:last-child)`,`
margin-right: var(--n-action-space);
`)]),X(`icon`,`
font-size: var(--n-icon-size);
transition: color .3s var(--n-bezier);
`),X(`title`,`
transition: color .3s var(--n-bezier);
display: flex;
align-items: center;
font-size: var(--n-title-font-size);
font-weight: var(--n-title-font-weight);
color: var(--n-title-text-color);
`),z(`dialog-icon-container`,`
display: flex;
justify-content: center;
`)]),me(z(`dialog`,`
width: 446px;
max-width: calc(100vw - 32px);
`)),z(`dialog`,[zt(`
width: 446px;
max-width: calc(100vw - 32px);
`)])]),Afe={default:()=>(L(),W(Yc)),info:()=>(L(),W(Yc)),success:()=>(L(),W(Xc)),warning:()=>(L(),W(Zc)),error:()=>(L(),W(Jc))},Zm=Y({name:`Dialog`,alias:[`NimbusConfirmCard`,`Confirm`],props:{...$e.props,...Ym},slots:Object,setup(e){let{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:i}=mn(e),a=vn(`Dialog`,i,n),o=V(()=>{let{iconPlacement:n}=e;return n||t?.value?.Dialog?.iconPlacement||`left`});function s(t){let{onPositiveClick:n}=e;n&&n(t)}function c(t){let{onNegativeClick:n}=e;n&&n(t)}function l(){let{onClose:t}=e;t&&t()}let u=$e(`Dialog`,`-dialog`,kfe,qm,e,n),d=V(()=>{let{type:t}=e,n=o.value,{common:{cubicBezierEaseInOut:r},self:{fontSize:i,lineHeight:a,border:s,titleTextColor:c,textColor:l,color:d,closeBorderRadius:f,closeColorHover:p,closeColorPressed:m,closeIconColor:h,closeIconColorHover:g,closeIconColorPressed:_,closeIconSize:v,borderRadius:y,titleFontWeight:b,titleFontSize:x,padding:S,iconSize:C,actionSpace:w,contentMargin:T,closeSize:E,[n===`top`?`iconMarginIconTop`:`iconMargin`]:D,[n===`top`?`closeMarginIconTop`:`closeMargin`]:O,[tt(`iconColor`,t)]:k}}=u.value,A=gt(D);return{"--n-font-size":i,"--n-icon-color":k,"--n-bezier":r,"--n-close-margin":O,"--n-icon-margin-top":A.top,"--n-icon-margin-right":A.right,"--n-icon-margin-bottom":A.bottom,"--n-icon-margin-left":A.left,"--n-icon-size":C,"--n-close-size":E,"--n-close-icon-size":v,"--n-close-border-radius":f,"--n-close-color-hover":p,"--n-close-color-pressed":m,"--n-close-icon-color":h,"--n-close-icon-color-hover":g,"--n-close-icon-color-pressed":_,"--n-color":d,"--n-text-color":l,"--n-border-radius":y,"--n-padding":S,"--n-line-height":a,"--n-border":s,"--n-content-margin":T,"--n-title-font-size":x,"--n-title-font-weight":b,"--n-title-text-color":c,"--n-action-space":w}}),f=r?fe(`dialog`,V(()=>`${e.type[0]}${o.value[0]}`),d,e):void 0;return{mergedClsPrefix:n,rtlEnabled:a,mergedIconPlacement:o,mergedTheme:u,handlePositiveClick:s,handleNegativeClick:c,handleCloseClick:l,cssVars:r?void 0:d,themeClass:f?.themeClass,onRender:f?.onRender}},render(){let{bordered:t,mergedIconPlacement:n,cssVars:r,closable:i,showIcon:a,title:o,content:s,action:c,negativeText:l,positiveText:u,positiveButtonProps:d,negativeButtonProps:f,handlePositiveClick:p,handleNegativeClick:m,mergedTheme:h,loading:g,type:_,mergedClsPrefix:v}=this;this.onRender?.();let y=a?(L(),W(wt,{key:1,clsPrefix:v,class:P(`${v}-dialog__icon`)},{default:()=>Lt(this.$slots.icon,e=>e||(this.icon?ol(this.icon):Afe[this.type]()))},1032,[`clsPrefix`,`class`])):null,b=Lt(this.$slots.action,t=>t||u||l||c?(L(),H(`div`,{key:2,class:P([`${v}-dialog__action`,this.actionClass]),style:e(this.actionStyle)},[G(()=>t||(c?[ol(c)]:[this.negativeText&&(L(),W(wr,I({key:3,theme:h.peers.Button,themeOverrides:h.peerOverrides.Button,ghost:!0,size:`small`,onClick:m},f),{default:()=>ol(this.negativeText)},1040,[`theme`,`themeOverrides`,`onClick`])),this.positiveText&&(L(),W(wr,I({key:4,theme:h.peers.Button,themeOverrides:h.peerOverrides.Button,size:`small`,type:_==="default"?`primary`:_,disabled:g,loading:g,onClick:p},d),{default:()=>ol(this.positiveText)},1040,[`theme`,`themeOverrides`,`type`,`disabled`,`loading`,`onClick`]))]))],6)):null);return L(),H(`div`,{class:P([`${v}-dialog`,this.themeClass,this.closable&&`${v}-dialog--closable`,`${v}-dialog--icon-${n}`,t&&`${v}-dialog--bordered`,this.rtlEnabled&&`${v}-dialog--rtl`]),style:e(r),role:`dialog`},[i?(L(),H(K,{key:0},[G(()=>Lt(this.$slots.close,e=>{let t=[`${v}-dialog__close`,this.rtlEnabled&&`${v}-dialog--rtl`];return e?(L(),H(`div`,{key:5,class:P(t)},[G(()=>e)],2)):(L(),W(hn,{key:6,focusable:this.closeFocusable,clsPrefix:v,class:P(t),onClick:this.handleCloseClick},null,8,[`focusable`,`clsPrefix`,`class`,`onClick`]))}))],64)):G(()=>null),a&&n===`top`?(L(),H(`div`,{key:2,class:P(`${v}-dialog-icon-container`)},[G(()=>y)],2)):G(()=>null),q(`div`,{class:P([`${v}-dialog__title`,this.titleClass]),style:e(this.titleStyle)},[a&&n===`left`?(L(),H(K,{key:0},[G(()=>y)],64)):G(()=>null),G(()=>an(this.$slots.header,()=>[ol(o)]))],6),q(`div`,{class:P([`${v}-dialog__content`,b?``:`${v}-dialog__content--last`,this.contentClass]),style:e(this.contentStyle)},[G(()=>an(this.$slots.default,()=>[ol(s)]))],6),G(()=>b)],6)}});function Qm(e){let{modalColor:t,textColor2:n,boxShadow3:r}=e;return{color:t,textColor:n,boxShadow:r}}var $m=En({name:`Modal`,common:_e,peers:{Scrollbar:Cn,Dialog:qm,Card:Nd},self:Qm}),jfe={name:`Modal`,common:os,peers:{Scrollbar:ss,Dialog:Jm,Card:Pd},self:Qm},Mfe=bn(`n-modal-provider`),eh=bn(`n-modal-api`),Nfe=bn(`n-modal-reactive-list`);function th(){let e=pe(eh,null);return e===null&&Ft(`use-modal`,`No outer <n-modal-provider /> founded.`),e}var nh=`n-draggable`;function Pfe(e,t){let n,r=N(null),i=N(null),a=V(()=>e.value!==!1),o=V(()=>a.value?nh:``),s=V(()=>{let t=e.value;return t===!0||t===!1||!t||t.bounds!==`none`});function c(e){let a=e.querySelector(`.${nh}`);if(!a||!o.value)return;let c=0,l=0,u=0,d=0,f=0,p=0,m,h=null,g=null;function _(t){t.preventDefault(),m=t;let{x:n,y:a,right:o,bottom:s}=e.getBoundingClientRect();if(l=n,d=a,c=window.innerWidth-o,u=window.innerHeight-s,r.value!==null&&i.value!==null)p=r.value,f=i.value;else{let{left:t,top:n}=e.style;f=+n.slice(0,-2),p=+t.slice(0,-2)}}function v(){g&&=(r.value=g.x,i.value=g.y,null),h=null}function y(e){if(!m)return;let{clientX:t,clientY:n}=m,r=e.clientX-t,i=e.clientY-n;s.value&&(r>c?r=c:-r>l&&(r=-l),i>u?i=u:-i>d&&(i=-d)),g={x:r+p,y:i+f},h||=requestAnimationFrame(v)}function b(){m=void 0,h&&=(cancelAnimationFrame(h),null),g&&=(r.value=g.x,i.value=g.y,null),he(()=>{t.onEnd(e)})}kn(`mousedown`,a,_),kn(`mousemove`,window,y),kn(`mouseup`,window,b),n=()=>{h&&cancelAnimationFrame(h),xn(`mousedown`,a,_),xn(`mousemove`,window,y),xn(`mouseup`,window,b)}}function l(){n&&=(n(),void 0),r.value=null,i.value=null}return qe(l),{stopDrag:l,startDrag:c,draggableRef:a,draggableClassRef:o,dragX:r,dragY:i}}var rh=N(!1);function ih(){rh.value=!0}function ah(){rh.value=!1}var oh=0;function sh(){return Pr&&(qt(()=>{oh||(window.addEventListener(`compositionstart`,ih),window.addEventListener(`compositionend`,ah)),oh++}),se(()=>{oh<=1?(window.removeEventListener(`compositionstart`,ih),window.removeEventListener(`compositionend`,ah),oh=0):oh--})),rh}var ch={...Id,...Ym},Ffe=jt(ch).filter(e=>e!==`onClose`&&e!==`onPositiveClick`&&e!==`onNegativeClick`),Ife=Y({name:`ModalBody`,inheritAttrs:!1,slots:Object,props:{show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean,draggable:{type:[Boolean,Object],default:!1},maskHidden:Boolean,...ch,onClickoutside:{type:Function,required:!0},onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function},setup(e){let t=N(null),n=N(null),r=N(e.show),a=N(null),o=N(null),s=pe(Cs),c=null;Te(i(e,`show`),e=>{e&&(c=s.getMousePosition())},{immediate:!0});let{stopDrag:l,startDrag:u,draggableRef:d,draggableClassRef:f,dragX:p,dragY:m}=Pfe(i(e,`draggable`),{onEnd:e=>{v(e)}}),h=V(()=>D([e.titleClass,f.value])),g=V(()=>D([e.headerClass,f.value]));Te(i(e,`show`),e=>{e&&(r.value=!0)}),Yl(V(()=>e.blockScroll&&r.value));function _(){if(s.transformOriginRef.value===`center`)return``;let{value:e}=a,{value:t}=o;return e===null||t===null?``:n.value?`${e}px ${t+n.value.containerScrollTop}px`:``}function v(e){if(s.transformOriginRef.value===`center`||!c||!n.value)return;let t=n.value.containerScrollTop,{offsetLeft:r,offsetTop:i}=e,l=c.y,u=c.x;a.value=-(r-u),o.value=-(i-l-t),e.style.transformOrigin=_()}function y(e){he(()=>{v(e)})}function b(t){t.style.transformOrigin=_(),e.onBeforeLeave()}function x(t){let n=t;d.value&&u(n),e.onAfterEnter&&e.onAfterEnter(n)}function S(){r.value=!1,a.value=null,o.value=null,l(),e.onAfterLeave()}function C(){let{onClose:t}=e;t&&t()}function w(){e.onNegativeClick()}function T(){e.onPositiveClick()}let E=N(null);return Te(E,e=>{e&&he(()=>{let n=e.el;n&&t.value!==n&&(t.value=n)})}),Oe(Ss,t),Oe(bs,null),Oe(ws,null),{mergedTheme:s.mergedThemeRef,appear:s.appearRef,isMounted:s.isMountedRef,mergedClsPrefix:s.mergedClsPrefixRef,bodyRef:t,scrollbarRef:n,draggableClass:f,displayed:r,childNodeRef:E,cardHeaderClass:g,dialogTitleClass:h,handlePositiveClick:T,handleNegativeClick:w,handleCloseClick:C,handleAfterEnter:x,handleAfterLeave:S,handleBeforeLeave:b,handleEnter:y,dragX:p,dragY:m}},render(){let{$slots:t,$attrs:n,handleEnter:r,handleAfterEnter:i,handleAfterLeave:a,handleBeforeLeave:o,preset:s,mergedClsPrefix:c,dragX:l,dragY:u}=this,d={...n};l!==null&&u!==null&&(d.style=e([d.style,{left:`${l}px`,top:`${u}px`}]));let f=null;if(!s){if(f=zie(`default`,t.default,{draggableClass:this.draggableClass}),!f){on(`modal`,`default slot is empty`);return}f=At(f),f.props=I({class:`${c}-modal`},d,f.props||{})}return this.displayDirective===`show`||this.displayed||this.show?Se((L(),H(`div`,{key:1,role:`none`,class:P([`${c}-modal-body-wrapper`,this.maskHidden&&`${c}-modal-body-wrapper--mask-hidden`])},[(L(),W(ln,{ref:`scrollbarRef`,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${c}-modal-scroll-content`},{default:()=>(L(),W(Ac,{disabled:!this.trapFocus||this.maskHidden,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>(L(),W(gn,{name:`fade-in-scale-up-transition`,appear:this.appear??this.isMounted,onEnter:r,onAfterEnter:i,onAfterLeave:a,onBeforeLeave:o},{default:()=>{let e=[[Vt,this.show]];return e.push([tc,this.onClickoutside,void 0,{capture:!0}]),Se(this.preset===`confirm`||this.preset===`dialog`?(L(),W(Zm,I({key:2},d,{class:[`${c}-modal`,d.class],ref:`bodyRef`,theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},Hs(this.$props,Xm),{titleClass:this.dialogTitleClass,"aria-modal":`true`}),_n(t),1040,[`class`,`theme`,`themeOverrides`,`titleClass`])):this.preset===`card`?(L(),W(Rd,I({key:3},d,{ref:`bodyRef`,class:[`${c}-modal`,d.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},Hs(this.$props,Vse),{headerClass:this.cardHeaderClass,"aria-modal":`true`,role:`dialog`}),_n(t),1040,[`class`,`theme`,`themeOverrides`,`headerClass`])):this.childNodeRef=f,e)}},1032,[`appear`,`onEnter`,`onAfterEnter`,`onAfterLeave`,`onBeforeLeave`]))},1032,[`disabled`,`active`,`onEsc`,`autoFocus`]))},1032,[`theme`,`themeOverrides`,`contentClass`]))],2)),[[Vt,this.displayDirective===`if`||this.displayed||this.show]]):null}}),Lfe=U([z(`modal-container`,`
position: fixed;
left: 0;
top: 0;
height: 0;
width: 0;
display: flex;
`),z(`modal-mask`,`
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
background-color: rgba(0, 0, 0, .4);
`,[fn({enterDuration:`.25s`,leaveDuration:`.25s`,enterCubicBezier:`var(--n-bezier-ease-out)`,leaveCubicBezier:`var(--n-bezier-ease-out)`})]),z(`modal-body-wrapper`,`
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
overflow: visible;
`,[z(`modal-scroll-content`,`
min-height: 100%;
display: flex;
position: relative;
`),B(`mask-hidden`,`pointer-events: none;`,[z(`modal-scroll-content`,[U(`> *`,`
pointer-events: all;
`)])])]),z(`modal`,`
position: relative;
align-self: center;
color: var(--n-text-color);
margin: auto;
box-shadow: var(--n-box-shadow);
`,[pl({duration:`.25s`,enterScale:`.5`}),U(`.${nh}`,`
cursor: move;
user-select: none;
`)])]),lh={...$e.props,show:Boolean,showMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:`if`},transformOrigin:{type:String,default:`mouse`},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},...ch,draggable:[Boolean,Object],onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalModal:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function,unstableShowMask:{type:Boolean,default:void 0}},uh=Y({name:`Modal`,inheritAttrs:!1,props:lh,slots:Object,setup(e){let t=N(null),{mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:a}=mn(e),o=$e(`Modal`,`-modal`,Lfe,$m,e,n),s=Is(64),c=Ns(),l=sr(),u=e.internalDialog?pe(Wm,null):null,d=e.internalModal?pe(Aie,null):null,f=sh();function p(t){let{onUpdateShow:n,"onUpdate:show":r,onHide:i}=e;n&&R(n,t),r&&R(r,t),i&&!t&&i(t)}function m(){let{onClose:t}=e;t?Promise.resolve(t()).then(e=>{e!==!1&&p(!1)}):p(!1)}function h(){let{onPositiveClick:t}=e;t?Promise.resolve(t()).then(e=>{e!==!1&&p(!1)}):p(!1)}function g(){let{onNegativeClick:t}=e;t?Promise.resolve(t()).then(e=>{e!==!1&&p(!1)}):p(!1)}function _(){let{onBeforeLeave:t,onBeforeHide:n}=e;t&&R(t),n&&n()}function v(){let{onAfterLeave:t,onAfterHide:n}=e;t&&R(t),n&&n()}function y(n){let{onMaskClick:r}=e;r&&r(n),e.maskClosable&&t.value?.contains(vt(n))&&p(!1)}function b(t){e.onEsc?.(),e.show&&e.closeOnEsc&&Xd(t)&&(f.value||p(!1))}Oe(Cs,{getMousePosition:()=>{let e=u||d;if(e){let{clickedRef:t,clickedPositionRef:n}=e;if(t.value&&n.value)return n.value}return s.value?c.value:null},mergedClsPrefixRef:n,mergedThemeRef:o,isMountedRef:l,appearRef:i(e,`internalAppear`),transformOriginRef:i(e,`transformOrigin`)});let x=V(()=>{let{common:{cubicBezierEaseOut:e},self:{boxShadow:t,color:n,textColor:r}}=o.value;return{"--n-bezier-ease-out":e,"--n-box-shadow":t,"--n-color":n,"--n-text-color":r}}),S=a?fe(`theme-class`,void 0,x,e):void 0;return{mergedClsPrefix:n,namespace:r,isMounted:l,containerRef:t,presetProps:V(()=>Hs(e,Ffe)),handleEsc:b,handleAfterLeave:v,handleClickoutside:y,handleBeforeLeave:_,doUpdateShow:p,handleNegativeClick:g,handlePositiveClick:h,handleCloseClick:m,cssVars:a?void 0:x,themeClass:S?.themeClass,onRender:S?.onRender}},render(){let{mergedClsPrefix:t}=this;return L(),W(uc,{to:this.to,show:this.show},{default:()=>{this.onRender?.();let{showMask:n}=this;return Se((L(),H(`div`,{role:`none`,ref:`containerRef`,class:P([`${t}-modal-container`,this.themeClass,this.namespace]),style:e(this.cssVars)},[n?(L(),W(gn,{name:`fade-in-transition`,key:`mask`,appear:this.internalAppear??this.isMounted},{default:()=>this.show?(L(),H(`div`,{key:1,"aria-hidden":!0,class:P(`${t}-modal-mask`)},null,2)):null},1032,[`appear`])):G(()=>null),(L(),W(Ife,I({style:this.overlayStyle},this.$attrs,{ref:`bodyWrapper`,displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,draggable:this.draggable,blockScroll:this.blockScroll,maskHidden:!n},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:this.handleClickoutside}),_n(this.$slots),1040,[`style`,`displayDirective`,`show`,`preset`,`autoFocus`,`trapFocus`,`draggable`,`blockScroll`,`maskHidden`,`onEsc`,`onClose`,`onNegativeClick`,`onPositiveClick`,`onBeforeLeave`,`onAfterEnter`,`onAfterLeave`,`onClickoutside`]))],6)),[[ic,{zIndex:this.zIndex,enabled:this.show}]])}},1032,[`to`,`show`])}}),Rfe={...Ym,onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},zIndex:Number,onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function,draggable:[Boolean,Object]},zfe=Y({name:`DialogEnvironment`,props:{...Rfe,internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}},setup(e){let t=N(!0);function n(){let{onInternalAfterLeave:t,internalKey:n,onAfterLeave:r}=e;t&&t(n),r&&r()}function r(t){let{onPositiveClick:n}=e;n?Promise.resolve(n(t)).then(e=>{e!==!1&&c()}):c()}function i(t){let{onNegativeClick:n}=e;n?Promise.resolve(n(t)).then(e=>{e!==!1&&c()}):c()}function a(){let{onClose:t}=e;t?Promise.resolve(t()).then(e=>{e!==!1&&c()}):c()}function o(t){let{onMaskClick:n,maskClosable:r}=e;n&&(n(t),r&&c())}function s(){let{onEsc:t}=e;t&&t()}function c(){t.value=!1}function l(e){t.value=e}return{show:t,hide:c,handleUpdateShow:l,handleAfterLeave:n,handleCloseClick:a,handleNegativeClick:i,handlePositiveClick:r,handleMaskClick:o,handleEsc:s}},render(){let{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:n,handleCloseClick:r,handleAfterLeave:i,handleMaskClick:a,handleEsc:o,to:s,zIndex:c,maskClosable:l,show:u}=this;return L(),W(uh,{show:u,onUpdateShow:t,onMaskClick:a,onEsc:o,to:s,zIndex:c,maskClosable:l,onAfterEnter:this.onAfterEnter,onAfterLeave:i,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,draggable:this.draggable,internalAppear:!0,internalDialog:!0},{default:({draggableClass:t})=>(L(),W(Zm,Hs(this.$props,Xm,{titleClass:D([this.titleClass,t]),style:this.internalStyle,onClose:r,onNegativeClick:n,onPositiveClick:e}),null,16))},1032,[`show`,`onUpdateShow`,`onMaskClick`,`onEsc`,`to`,`zIndex`,`maskClosable`,`onAfterEnter`,`onAfterLeave`,`closeOnEsc`,`blockScroll`,`autoFocus`,`transformOrigin`,`draggable`])}}),dh=Y({name:`DialogProvider`,props:{injectionKey:String,to:[String,Object]},setup(){let e=N([]),t={};function n(n={}){let r=Ir(),i=a({...n,key:r,destroy:()=>{t[`n-dialog-${r}`]?.hide()}});return e.value.push(i),i}let r=[`info`,`success`,`warning`,`error`].map(e=>t=>n({...t,type:e}));function i(t){let{value:n}=e;n.splice(n.findIndex(e=>e.key===t),1)}function o(){Object.values(t).forEach(e=>{e?.hide()})}let s={create:n,destroyAll:o,info:r[0],success:r[1],warning:r[2],error:r[3]};return Oe(Gm,s),Oe(Wm,{clickedRef:Is(64),clickedPositionRef:Ns()}),Oe(Efe,e),{...s,dialogList:e,dialogInstRefs:t,handleAfterLeave:i}},render(){return Dn(K,null,[this.dialogList.map(e=>Dn(zfe,Cf(e,[`destroy`,`style`],{internalStyle:e.style,to:this.to,ref:t=>{t===null?delete this.dialogInstRefs[`n-dialog-${e.key}`]:this.dialogInstRefs[`n-dialog-${e.key}`]=t},internalKey:e.key,onInternalAfterLeave:this.handleAfterLeave}))),this.$slots.default?.()])}}),Bfe={name:`LoadingBar`,common:os,self(e){let{primaryColor:t}=e;return{colorError:`red`,colorLoading:t,height:`2px`}}},fh=bn(`n-loading-bar`),ph=bn(`n-loading-bar-api`);function Vfe(e){let{primaryColor:t,errorColor:n}=e;return{colorError:n,colorLoading:t,height:`2px`}}var mh={name:`LoadingBar`,common:_e,self:Vfe},Hfe=z(`loading-bar-container`,`
z-index: 5999;
position: fixed;
top: 0;
left: 0;
right: 0;
height: 2px;
`,[fn({enterDuration:`0.3s`,leaveDuration:`0.8s`}),z(`loading-bar`,`
width: 100%;
transition:
max-width 4s linear,
background .2s linear;
height: var(--n-height);
`,[B(`starting`,`
background: var(--n-color-loading);
`),B(`finishing`,`
background: var(--n-color-loading);
transition:
max-width .2s linear,
background .2s linear;
`),B(`error`,`
background: var(--n-color-error);
transition:
max-width .2s linear,
background .2s linear;
`)])]);function hh(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}var Ufe=Y({name:`LoadingBar`,props:{containerClass:String,containerStyle:[String,Object]},setup(){let{inlineThemeDisabled:e}=mn(),{props:t,mergedClsPrefixRef:n}=pe(fh),r=N(null),i=N(!1),a=N(!1),o=N(!1),s=N(!1),c=!1,l=N(!1),u=V(()=>{let{loadingBarStyle:e}=t;return e?e[l.value?`error`:`loading`]:``});async function d(){i.value=!1,o.value=!1,c=!1,l.value=!1,s.value=!0,await he(),s.value=!1}async function f(e=0,t=80,i=`starting`){if(a.value=!0,await d(),c)return;o.value=!0,await he();let s=r.value;s&&(s.style.maxWidth=`${e}%`,s.style.transition=`none`,s.offsetWidth,s.className=hh(i,n.value),s.style.transition=``,s.style.maxWidth=`${t}%`)}async function p(){if(c||l.value)return;a.value&&await he(),c=!0;let e=r.value;e&&(e.className=hh(`finishing`,n.value),e.style.maxWidth=`100%`,e.offsetWidth,o.value=!1)}function m(){if(!(c||l.value)){if(!o.value)f(100,100,`error`).then(()=>{l.value=!0;let e=r.value;e&&(e.className=hh(`error`,n.value),e.offsetWidth,o.value=!1)});else{l.value=!0;let e=r.value;if(!e)return;e.className=hh(`error`,n.value),e.style.maxWidth=`100%`,e.offsetWidth,o.value=!1}}}function h(){i.value=!0}function g(){i.value=!1}async function _(){await d()}let v=$e(`LoadingBar`,`-loading-bar`,Hfe,mh,t,n),y=V(()=>{let{self:{height:e,colorError:t,colorLoading:n}}=v.value;return{"--n-height":e,"--n-color-loading":n,"--n-color-error":t}}),b=e?fe(`loading-bar`,void 0,y,t):void 0;return{mergedClsPrefix:n,loadingBarRef:r,started:a,loading:o,entering:i,transitionDisabled:s,start:f,error:m,finish:p,handleEnter:h,handleAfterEnter:g,handleAfterLeave:_,mergedLoadingBarStyle:u,cssVars:e?void 0:y,themeClass:b?.themeClass,onRender:b?.onRender}},render(){if(!this.started)return null;let{mergedClsPrefix:t}=this;return L(),W(gn,{name:`fade-in-transition`,appear:!0,onEnter:this.handleEnter,onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave,css:!this.transitionDisabled},{default:()=>(this.onRender?.(),Se((L(),H(`div`,{class:P([`${t}-loading-bar-container`,this.themeClass,this.containerClass]),style:e(this.containerStyle)},[q(`div`,{ref:`loadingBarRef`,class:P([`${t}-loading-bar`]),style:e([this.cssVars,this.mergedLoadingBarStyle])},null,6)],6)),[[Vt,this.loading||!this.loading&&this.entering]]))},1032,[`onEnter`,`onAfterEnter`,`onAfterLeave`,`css`])}}),Wfe={...$e.props,to:{type:[String,Object,Boolean],default:void 0},containerClass:String,containerStyle:[String,Object],loadingBarStyle:{type:Object}},gh=Y({name:`LoadingBarProvider`,props:Wfe,setup(e){let t=sr(),n=N(null),r={start(){t.value?n.value?.start():he(()=>{n.value?.start()})},error(){t.value?n.value?.error():he(()=>{n.value?.error()})},finish(){t.value?n.value?.finish():he(()=>{n.value?.finish()})}},{mergedClsPrefixRef:i}=mn(e);return Oe(ph,r),Oe(fh,{props:e,mergedClsPrefixRef:i}),Object.assign(r,{loadingBarRef:n})},render(){return L(),H(K,null,[(L(),W(Xt,{disabled:this.to===!1,to:this.to||`body`},[(L(),W(Ufe,{ref:`loadingBarRef`,containerStyle:this.containerStyle,containerClass:this.containerClass},null,8,[`containerStyle`,`containerClass`]))],8,[`disabled`,`to`])),G(()=>this.$slots.default?.())],64)}});function Gfe(){let e=pe(ph,null);return e===null&&Ft(`use-loading-bar`,`No outer <n-loading-bar-provider /> founded.`),e}var Kfe={margin:`0 0 8px 0`,padding:`10px 20px`,maxWidth:`720px`,minWidth:`420px`,iconMargin:`0 10px 0 0`,closeMargin:`0 0 0 10px`,closeSize:`20px`,closeIconSize:`16px`,iconSize:`20px`,fontSize:`14px`};function _h(e){let{textColor2:t,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:i,infoColor:a,successColor:o,errorColor:s,warningColor:c,popoverColor:l,boxShadow2:u,primaryColor:d,lineHeight:f,borderRadius:p,closeColorHover:m,closeColorPressed:h}=e;return{...Kfe,closeBorderRadius:p,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:l,colorInfo:l,colorSuccess:l,colorError:l,colorWarning:l,colorLoading:l,boxShadow:u,boxShadowInfo:u,boxShadowSuccess:u,boxShadowError:u,boxShadowWarning:u,boxShadowLoading:u,iconColor:t,iconColorInfo:a,iconColorSuccess:o,iconColorWarning:c,iconColorError:s,iconColorLoading:d,closeColorHover:m,closeColorPressed:h,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:i,closeColorHoverInfo:m,closeColorPressedInfo:h,closeIconColorInfo:n,closeIconColorHoverInfo:r,closeIconColorPressedInfo:i,closeColorHoverSuccess:m,closeColorPressedSuccess:h,closeIconColorSuccess:n,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:i,closeColorHoverError:m,closeColorPressedError:h,closeIconColorError:n,closeIconColorHoverError:r,closeIconColorPressedError:i,closeColorHoverWarning:m,closeColorPressedWarning:h,closeIconColorWarning:n,closeIconColorHoverWarning:r,closeIconColorPressedWarning:i,closeColorHoverLoading:m,closeColorPressedLoading:h,closeIconColorLoading:n,closeIconColorHoverLoading:r,closeIconColorPressedLoading:i,loadingColor:d,lineHeight:f,borderRadius:p,border:`0`}}var vh={name:`Message`,common:_e,self:_h},qfe={name:`Message`,common:os,self:_h},yh=bn(`n-message-api`),bh=bn(`n-message-provider`),xh={icon:Function,type:{type:String,default:`info`},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,spinProps:Object,onClose:Function,onMouseenter:Function,onMouseleave:Function},Jfe=U([z(`message-wrapper`,`
margin: var(--n-margin);
z-index: 0;
transform-origin: top center;
display: flex;
`,[nr({overflow:`visible`,originalTransition:`transform .3s var(--n-bezier)`,enterToProps:{transform:`scale(1)`},leaveToProps:{transform:`scale(0.85)`}})]),z(`message`,`
box-sizing: border-box;
display: flex;
align-items: center;
transition:
color .3s var(--n-bezier),
box-shadow .3s var(--n-bezier),
background-color .3s var(--n-bezier),
opacity .3s var(--n-bezier),
transform .3s var(--n-bezier),
margin-bottom .3s var(--n-bezier);
padding: var(--n-padding);
border-radius: var(--n-border-radius);
border: var(--n-border);
flex-wrap: nowrap;
overflow: hidden;
max-width: var(--n-max-width);
color: var(--n-text-color);
background-color: var(--n-color);
box-shadow: var(--n-box-shadow);
`,[X(`content`,`
display: inline-block;
line-height: var(--n-line-height);
font-size: var(--n-font-size);
`),X(`icon`,`
position: relative;
margin: var(--n-icon-margin);
height: var(--n-icon-size);
width: var(--n-icon-size);
font-size: var(--n-icon-size);
flex-shrink: 0;
`,[[`default`,`info`,`success`,`warning`,`error`,`loading`].map(e=>B(`${e}-type`,[U(`> *`,`
color: var(--n-icon-color-${e});
transition: color .3s var(--n-bezier);
`)])),U(`> *`,`
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
`,[or()])]),X(`close`,`
margin: var(--n-close-margin);
transition:
background-color .3s var(--n-bezier),
color .3s var(--n-bezier);
flex-shrink: 0;
`,[U(`&:hover`,`
color: var(--n-close-icon-color-hover);
`),U(`&:active`,`
color: var(--n-close-icon-color-pressed);
`)])]),z(`message-container`,`
z-index: 6000;
position: fixed;
height: 0;
overflow: visible;
display: flex;
flex-direction: column;
align-items: center;
`,[B(`top`,`
top: 12px;
left: 0;
right: 0;
`),B(`top-left`,`
top: 12px;
left: 12px;
right: 0;
align-items: flex-start;
`),B(`top-right`,`
top: 12px;
left: 0;
right: 12px;
align-items: flex-end;
`),B(`bottom`,`
bottom: 4px;
left: 0;
right: 0;
justify-content: flex-end;
`),B(`bottom-left`,`
bottom: 4px;
left: 12px;
right: 0;
justify-content: flex-end;
align-items: flex-start;
`),B(`bottom-right`,`
bottom: 4px;
left: 0;
right: 12px;
justify-content: flex-end;
align-items: flex-end;
`)])]),Yfe=[`onMouseenter`,`onMouseleave`],Xfe={info:()=>(L(),W(Yc)),success:()=>(L(),W(Xc)),warning:()=>(L(),W(Zc)),error:()=>(L(),W(Jc)),default:()=>null},Zfe=Y({name:`Message`,props:{...xh,render:Function},setup(e){let{inlineThemeDisabled:t,mergedRtlRef:n}=mn(e),{props:r,mergedClsPrefixRef:i}=pe(bh),a=vn(`Message`,n,i),o=$e(`Message`,`-message`,Jfe,vh,r,i),s=V(()=>{let{type:t}=e,{common:{cubicBezierEaseInOut:n},self:{padding:r,margin:i,maxWidth:a,iconMargin:s,closeMargin:c,closeSize:l,iconSize:u,fontSize:d,lineHeight:f,borderRadius:p,border:m,iconColorInfo:h,iconColorSuccess:g,iconColorWarning:_,iconColorError:v,iconColorLoading:y,closeIconSize:b,closeBorderRadius:x,[tt(`textColor`,t)]:S,[tt(`boxShadow`,t)]:C,[tt(`color`,t)]:w,[tt(`closeColorHover`,t)]:T,[tt(`closeColorPressed`,t)]:E,[tt(`closeIconColor`,t)]:D,[tt(`closeIconColorPressed`,t)]:O,[tt(`closeIconColorHover`,t)]:k}}=o.value;return{"--n-bezier":n,"--n-margin":i,"--n-padding":r,"--n-max-width":a,"--n-font-size":d,"--n-icon-margin":s,"--n-icon-size":u,"--n-close-icon-size":b,"--n-close-border-radius":x,"--n-close-size":l,"--n-close-margin":c,"--n-text-color":S,"--n-color":w,"--n-box-shadow":C,"--n-icon-color-info":h,"--n-icon-color-success":g,"--n-icon-color-warning":_,"--n-icon-color-error":v,"--n-icon-color-loading":y,"--n-close-color-hover":T,"--n-close-color-pressed":E,"--n-close-icon-color":D,"--n-close-icon-color-pressed":O,"--n-close-icon-color-hover":k,"--n-line-height":f,"--n-border-radius":p,"--n-border":m}}),c=t?fe(`message`,V(()=>e.type[0]),s,{}):void 0;return{mergedClsPrefix:i,rtlEnabled:a,messageProviderProps:r,handleClose(){e.onClose?.()},cssVars:t?void 0:s,themeClass:c?.themeClass,onRender:c?.onRender,placement:r.placement}},render(){let{render:t,type:n,closable:r,content:i,mergedClsPrefix:a,cssVars:o,themeClass:s,onRender:c,icon:l,handleClose:u,showIcon:d}=this;c?.();let f=t||Qfe(l,n,a,this.spinProps);return L(),H(`div`,{class:P([`${a}-message-wrapper`,s]),onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:e([{alignItems:this.placement.startsWith(`top`)?`flex-start`:`flex-end`},o])},[t?(L(),H(K,{key:0},[G(()=>t(this.$props))],64)):(L(),H(`div`,{key:1,class:P([`${a}-message ${a}-message--${n}-type`,this.rtlEnabled&&`${a}-message--rtl`])},[f&&d?(L(),H(`div`,{key:0,class:P(`${a}-message__icon ${a}-message__icon--${n}-type`)},[J(ar,null,{default:()=>f},1024)],2)):G(()=>null),q(`div`,{class:P(`${a}-message__content`)},[G(()=>ol(i))],2),r?(L(),W(hn,{key:2,clsPrefix:a,class:P(`${a}-message__close`),onClick:u,absolute:!0},null,8,[`clsPrefix`,`class`,`onClick`])):G(()=>null)],2))],46,Yfe)}});function Qfe(e,t,n,r){if(typeof e==`function`)return e();{let e=t===`loading`?(L(),W(ir,I({key:1,clsPrefix:n,strokeWidth:24,scale:.85},r),null,16,[`clsPrefix`])):Xfe[t]();return e?(L(),W(wt,{clsPrefix:n,key:t},{default:()=>e},1032,[`clsPrefix`])):null}}var $fe=Y({name:`MessageEnvironment`,props:{...xh,duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function},setup(e){let t=null,n=N(!0);Ve(()=>{r()});function r(){let{duration:n}=e;n&&(t=window.setTimeout(o,n))}function i(e){e.currentTarget===e.target&&t!==null&&(window.clearTimeout(t),t=null)}function a(e){e.currentTarget===e.target&&r()}function o(){let{onHide:r}=e;n.value=!1,t&&=(window.clearTimeout(t),null),r&&r()}function s(){let{onClose:t}=e;t&&t(),o()}function c(){let{onAfterLeave:t,onInternalAfterLeave:n,onAfterHide:r,internalKey:i}=e;t&&t(),n&&n(i),r&&r()}function l(){o()}return{show:n,hide:o,handleClose:s,handleAfterLeave:c,handleMouseleave:a,handleMouseenter:i,deactivate:l}},render(){return L(),W(Tr,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{_:1,default:Nt(()=>[this.show?(L(),W(Zfe,{key:1,content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,spinProps:this.spinProps,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0},null,8,[`content`,`type`,`icon`,`showIcon`,`closable`,`spinProps`,`onClose`,`onMouseenter`,`onMouseleave`])):null])},8,[`onAfterLeave`,`onLeave`])}}),epe={...$e.props,to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:`top`},closable:Boolean,containerClass:String,containerStyle:[String,Object]},Sh=Y({name:`MessageProvider`,props:epe,setup(e){let{mergedClsPrefixRef:t}=mn(e),n=N([]),r=N({}),i={create(e,t){return o(e,{type:`default`,...t})},info(e,t){return o(e,{...t,type:`info`})},success(e,t){return o(e,{...t,type:`success`})},warning(e,t){return o(e,{...t,type:`warning`})},error(e,t){return o(e,{...t,type:`error`})},loading(e,t){return o(e,{...t,type:`loading`})},destroyAll:c};Oe(bh,{props:e,mergedClsPrefixRef:t}),Oe(yh,i);function o(t,i){let o=Ir(),s=a({...i,content:t,key:o,destroy:()=>{r.value[o]?.hide()}}),{max:c}=e;return c&&n.value.length>=c&&n.value.shift(),n.value.push(s),s}function s(e){n.value.splice(n.value.findIndex(t=>t.key===e),1),delete r.value[e]}function c(){Object.values(r.value).forEach(e=>{e.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:r,messageList:n,handleAfterLeave:s},i)},render(){return L(),H(K,null,[G(()=>this.$slots.default?.()),this.messageList.length?(L(),W(Xt,{key:0,to:this.to??`body`},[q(`div`,{class:P([`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass]),key:`message-container`,style:e(this.containerStyle)},[G(()=>this.messageList.map(e=>(L(),W($fe,I({ref:t=>{t&&(this.messageRefs[e.key]=t)},internalKey:e.key,onInternalAfterLeave:this.handleAfterLeave},Cf(e,[`destroy`],void 0),{duration:e.duration===void 0?this.duration:e.duration,keepAliveOnHover:e.keepAliveOnHover===void 0?this.keepAliveOnHover:e.keepAliveOnHover,closable:e.closable===void 0?this.closable:e.closable}),null,16,[`internalKey`,`onInternalAfterLeave`,`duration`,`keepAliveOnHover`,`closable`]))))],6)],8,[`to`])):G(()=>null)],64)}});function tpe(){let e=pe(yh,null);return e===null&&Ft(`use-message`,"No outer <n-message-provider /> founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}var npe=Y({name:`ModalEnvironment`,props:{...lh,internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}},setup(e){let t=N(!0);function n(){let{onInternalAfterLeave:t,internalKey:n,onAfterLeave:r}=e;t&&t(n),r&&r()}function r(t){let{onMaskClick:n,maskClosable:r}=e;n&&(n(t),r&&a())}function i(){let{onEsc:t}=e;t&&t()}function a(){t.value=!1}function o(n){let{onUpdateShow:r,"onUpdate:show":i}=e;r&&R(r,n),i&&R(i,n),t.value=n}return{show:t,hide:a,handleUpdateShow:o,handleAfterLeave:n,handleMaskClick:r,handleEsc:i}},render(){let{handleUpdateShow:e,handleAfterLeave:t,handleMaskClick:n,handleEsc:r,show:i}=this;return L(),W(uh,I(Cf(this.$props,[`onUpdateShow`,`onUpdate:show`,`onMaskClick`,`onEsc`,`onAfterLeave`]),{show:i,onUpdateShow:e,onMaskClick:n,onEsc:r,onAfterLeave:t,internalAppear:!0,internalModal:!0}),_n(this.$slots),1040,[`show`,`onUpdateShow`,`onMaskClick`,`onEsc`,`onAfterLeave`,`internalAppear`,`internalModal`])}}),Ch=Y({name:`ModalProvider`,props:{to:[String,Object]},setup(){let e=N([]),t={};function n(n={}){let r=Ir(),i=a({...n,key:r,destroy:()=>{t[`n-modal-${r}`]?.hide()}});return e.value.push(i),i}function r(t){let{value:n}=e;n.splice(n.findIndex(e=>e.key===t),1)}function i(){Object.values(t).forEach(e=>{e?.hide()})}let o={create:n,destroyAll:i};return Oe(eh,o),Oe(Mfe,{clickedRef:Is(64),clickedPositionRef:Ns()}),Oe(Nfe,e),{...o,modalList:e,modalInstRefs:t,handleAfterLeave:r}},render(){return Dn(K,null,[this.modalList.map(e=>Dn(npe,Cf(e,[`destroy`,`render`],{to:e.to??this.to,ref:t=>{t===null?delete this.modalInstRefs[`n-modal-${e.key}`]:this.modalInstRefs[`n-modal-${e.key}`]=t},internalKey:e.key,onInternalAfterLeave:this.handleAfterLeave}),{default:e.render})),this.$slots.default?.()])}}),rpe={closeMargin:`16px 12px`,closeSize:`20px`,closeIconSize:`16px`,width:`365px`,padding:`16px`,titleFontSize:`16px`,metaFontSize:`12px`,descriptionFontSize:`12px`};function wh(e){let{textColor2:t,successColor:n,infoColor:r,warningColor:i,errorColor:a,popoverColor:o,closeIconColor:s,closeIconColorHover:c,closeIconColorPressed:l,closeColorHover:u,closeColorPressed:d,textColor1:f,textColor3:p,borderRadius:m,fontWeightStrong:h,boxShadow2:g,lineHeight:_,fontSize:v}=e;return{...rpe,borderRadius:m,lineHeight:_,fontSize:v,headerFontWeight:h,iconColor:t,iconColorSuccess:n,iconColorInfo:r,iconColorWarning:i,iconColorError:a,color:o,textColor:t,closeIconColor:s,closeIconColorHover:c,closeIconColorPressed:l,closeBorderRadius:m,closeColorHover:u,closeColorPressed:d,headerTextColor:f,descriptionTextColor:p,actionTextColor:t,boxShadow:g}}var Th=En({name:`Notification`,common:_e,peers:{Scrollbar:Cn},self:wh}),ipe={name:`Notification`,common:os,peers:{Scrollbar:ss},self:wh},Eh=bn(`n-notification-provider`),ape=Y({name:`NotificationContainer`,props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){let{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:n}=pe(Eh),r=N(null);return ot(()=>{n.value>0?r?.value?.classList.add(`transitioning`):r?.value?.classList.remove(`transitioning`)}),{selfRef:r,mergedTheme:e,mergedClsPrefix:t,transitioning:n}},render(){let{$slots:e,scrollable:t,mergedClsPrefix:n,mergedTheme:r,placement:i}=this;return L(),H(`div`,{ref:`selfRef`,class:P([`${n}-notification-container`,t&&`${n}-notification-container--scrollable`,`${n}-notification-container--${i}`])},[t?(L(),W(ln,{key:0,theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,contentStyle:{overflow:`hidden`}},_n(e),1032,[`theme`,`themeOverrides`])):(L(),H(K,{key:1},[G(()=>e.default?.())],64))],2)}}),ope=[`onMouseenter`,`onMouseleave`],spe={info:()=>(L(),W(Yc)),success:()=>(L(),W(Xc)),warning:()=>(L(),W(Zc)),error:()=>(L(),W(Jc)),default:()=>null},Dh={closable:{type:Boolean,default:!0},type:{type:String,default:`default`},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},cpe=jt(Dh),lpe=Y({name:`Notification`,props:Dh,setup(e){let{mergedClsPrefixRef:t,mergedThemeRef:n,props:r}=pe(Eh),{inlineThemeDisabled:i,mergedRtlRef:a}=mn(),o=vn(`Notification`,a,t),s=V(()=>{let{type:t}=e,{self:{color:r,textColor:i,closeIconColor:a,closeIconColorHover:o,closeIconColorPressed:s,headerTextColor:c,descriptionTextColor:l,actionTextColor:u,borderRadius:d,headerFontWeight:f,boxShadow:p,lineHeight:m,fontSize:h,closeMargin:g,closeSize:_,width:v,padding:y,closeIconSize:b,closeBorderRadius:x,closeColorHover:S,closeColorPressed:C,titleFontSize:w,metaFontSize:T,descriptionFontSize:E,[tt(`iconColor`,t)]:D},common:{cubicBezierEaseOut:O,cubicBezierEaseIn:k,cubicBezierEaseInOut:A}}=n.value,{left:j,right:ee,top:te,bottom:M}=gt(y);return{"--n-color":r,"--n-font-size":h,"--n-text-color":i,"--n-description-text-color":l,"--n-action-text-color":u,"--n-title-text-color":c,"--n-title-font-weight":f,"--n-bezier":A,"--n-bezier-ease-out":O,"--n-bezier-ease-in":k,"--n-border-radius":d,"--n-box-shadow":p,"--n-close-border-radius":x,"--n-close-color-hover":S,"--n-close-color-pressed":C,"--n-close-icon-color":a,"--n-close-icon-color-hover":o,"--n-close-icon-color-pressed":s,"--n-line-height":m,"--n-icon-color":D,"--n-close-margin":g,"--n-close-size":_,"--n-close-icon-size":b,"--n-width":v,"--n-padding-left":j,"--n-padding-right":ee,"--n-padding-top":te,"--n-padding-bottom":M,"--n-title-font-size":w,"--n-meta-font-size":T,"--n-description-font-size":E}}),c=i?fe(`notification`,V(()=>e.type[0]),s,r):void 0;return{mergedClsPrefix:t,showAvatar:V(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:o,cssVars:i?void 0:s,themeClass:c?.themeClass,onRender:c?.onRender}},render(){let{mergedClsPrefix:t}=this;return this.onRender?.(),L(),H(`div`,{class:P([`${t}-notification-wrapper`,this.themeClass]),onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:e(this.cssVars)},[q(`div`,{class:P([`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}]),style:e(this.cssVars)},[this.showAvatar?(L(),H(`div`,{key:0,class:P(`${t}-notification__avatar`)},[this.avatar?(L(),H(K,{key:0},[G(()=>ol(this.avatar))],64)):(L(),H(K,{key:1},[this.type==="default"?G(()=>null):(L(),W(wt,{key:0,clsPrefix:t},{default:()=>spe[this.type]()},1032,[`clsPrefix`]))],64))],2)):G(()=>null),this.closable?(L(),W(hn,{key:2,clsPrefix:t,class:P(`${t}-notification__close`),onClick:this.handleCloseClick},null,8,[`clsPrefix`,`class`,`onClick`])):G(()=>null),q(`div`,{ref:`bodyRef`,class:P(`${t}-notification-main`)},[this.title?(L(),H(`div`,{key:0,class:P(`${t}-notification-main__header`)},[G(()=>ol(this.title))],2)):G(()=>null),this.description?(L(),H(`div`,{key:2,class:P(`${t}-notification-main__description`)},[G(()=>ol(this.description))],2)):G(()=>null),this.content?(L(),H(`pre`,{key:4,class:P(`${t}-notification-main__content`)},[G(()=>ol(this.content))],2)):G(()=>null),this.meta||this.action?(L(),H(`div`,{key:6,class:P(`${t}-notification-main-footer`)},[this.meta?(L(),H(`div`,{key:0,class:P(`${t}-notification-main-footer__meta`)},[G(()=>ol(this.meta))],2)):G(()=>null),this.action?(L(),H(`div`,{key:2,class:P(`${t}-notification-main-footer__action`)},[G(()=>ol(this.action))],2)):G(()=>null)],2)):G(()=>null)],2)],6)],46,ope)}}),upe={...Dh,duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function},dpe=Y({name:`NotificationEnvironment`,props:{...upe,internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}},setup(e){let{wipTransitionCountRef:t}=pe(Eh),n=N(!0),r=null;function i(){n.value=!1,r&&window.clearTimeout(r)}function a(e){t.value++,he(()=>{e.style.height=`${e.offsetHeight}px`,e.style.maxHeight=`0`,e.style.transition=`none`,e.offsetHeight,e.style.transition=``,e.style.maxHeight=e.style.height})}function o(n){t.value--,n.style.height=``,n.style.maxHeight=``;let{onAfterEnter:r,onAfterShow:i}=e;r&&r(),i&&i()}function s(e){t.value++,e.style.maxHeight=`${e.offsetHeight}px`,e.style.height=`${e.offsetHeight}px`,e.offsetHeight}function c(t){let{onHide:n}=e;n&&n(),t.style.maxHeight=`0`,t.offsetHeight}function l(){t.value--;let{onAfterLeave:n,onInternalAfterLeave:r,onAfterHide:i,internalKey:a}=e;n&&n(),r(a),i&&i()}function u(){let{duration:t}=e;t&&(r=window.setTimeout(i,t))}function d(e){e.currentTarget===e.target&&r!==null&&(window.clearTimeout(r),r=null)}function f(e){e.currentTarget===e.target&&u()}function p(){let{onClose:t}=e;t?Promise.resolve(t()).then(e=>{e!==!1&&i()}):i()}return Ve(()=>{e.duration&&(r=window.setTimeout(i,e.duration))}),{show:n,hide:i,handleClose:p,handleAfterLeave:l,handleLeave:c,handleBeforeLeave:s,handleAfterEnter:o,handleBeforeEnter:a,handleMouseenter:d,handleMouseleave:f}},render(){return L(),W(gn,{name:`notification-transition`,appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{_:1,default:Nt(()=>this.show?(L(),W(lpe,I({key:1},Hs(this.$props,cpe,{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?cl([this.handleMouseenter,this.onMouseenter]):this.onMouseenter,onMouseleave:this.duration&&this.keepAliveOnHover?cl([this.handleMouseleave,this.onMouseleave]):this.onMouseleave})),null,16)):null)},8,[`onBeforeEnter`,`onAfterEnter`,`onBeforeLeave`,`onLeave`,`onAfterLeave`])}}),fpe=U([z(`notification-container`,`
z-index: 4000;
position: fixed;
overflow: visible;
display: flex;
flex-direction: column;
align-items: flex-end;
`,[U(`>`,[z(`scrollbar`,`
width: initial;
overflow: visible;
height: -moz-fit-content !important;
height: fit-content !important;
max-height: 100vh !important;
`,[U(`>`,[z(`scrollbar-container`,`
height: -moz-fit-content !important;
height: fit-content !important;
max-height: 100vh !important;
`,[z(`scrollbar-content`,`
padding-top: 12px;
padding-bottom: 33px;
`)])])])]),B(`top, top-right, top-left`,`
top: 12px;
`,[U(`&.transitioning >`,[z(`scrollbar`,[U(`>`,[z(`scrollbar-container`,`
min-height: 100vh !important;
`)])])])]),B(`bottom, bottom-right, bottom-left`,`
bottom: 12px;
`,[U(`>`,[z(`scrollbar`,[U(`>`,[z(`scrollbar-container`,[z(`scrollbar-content`,`
padding-bottom: 12px;
`)])])])]),z(`notification-wrapper`,`
display: flex;
align-items: flex-end;
margin-bottom: 0;
margin-top: 12px;
`)]),B(`top, bottom`,`
left: 50%;
transform: translateX(-50%);
`,[z(`notification-wrapper`,[U(`&.notification-transition-enter-from, &.notification-transition-leave-to`,`
transform: scale(0.85);
`),U(`&.notification-transition-leave-from, &.notification-transition-enter-to`,`
transform: scale(1);
`)])]),B(`top`,[z(`notification-wrapper`,`
transform-origin: top center;
`)]),B(`bottom`,[z(`notification-wrapper`,`
transform-origin: bottom center;
`)]),B(`top-right, bottom-right`,[z(`notification`,`
margin-left: 28px;
margin-right: 16px;
`)]),B(`top-left, bottom-left`,[z(`notification`,`
margin-left: 16px;
margin-right: 28px;
`)]),B(`top-right`,`
right: 0;
`,[Oh(`top-right`)]),B(`top-left`,`
left: 0;
`,[Oh(`top-left`)]),B(`bottom-right`,`
right: 0;
`,[Oh(`bottom-right`)]),B(`bottom-left`,`
left: 0;
`,[Oh(`bottom-left`)]),B(`scrollable`,[B(`top-right`,`
top: 0;
`),B(`top-left`,`
top: 0;
`),B(`bottom-right`,`
bottom: 0;
`),B(`bottom-left`,`
bottom: 0;
`)]),z(`notification-wrapper`,`
margin-bottom: 12px;
`,[U(`&.notification-transition-enter-from, &.notification-transition-leave-to`,`
opacity: 0;
margin-top: 0 !important;
margin-bottom: 0 !important;
`),U(`&.notification-transition-leave-from, &.notification-transition-enter-to`,`
opacity: 1;
`),U(`&.notification-transition-leave-active`,`
transition:
background-color .3s var(--n-bezier),
color .3s var(--n-bezier),
opacity .3s var(--n-bezier),
transform .3s var(--n-bezier-ease-in),
max-height .3s var(--n-bezier),
margin-top .3s linear,
margin-bottom .3s linear,
box-shadow .3s var(--n-bezier);
`),U(`&.notification-transition-enter-active`,`
transition:
background-color .3s var(--n-bezier),
color .3s var(--n-bezier),
opacity .3s var(--n-bezier),
transform .3s var(--n-bezier-ease-out),
max-height .3s var(--n-bezier),
margin-top .3s linear,
margin-bottom .3s linear,
box-shadow .3s var(--n-bezier);
`)]),z(`notification`,`
background-color: var(--n-color);
color: var(--n-text-color);
transition:
background-color .3s var(--n-bezier),
color .3s var(--n-bezier),
opacity .3s var(--n-bezier),
box-shadow .3s var(--n-bezier);
font-family: inherit;
font-size: var(--n-font-size);
font-weight: 400;
position: relative;
display: flex;
overflow: hidden;
flex-shrink: 0;
padding-left: var(--n-padding-left);
padding-right: var(--n-padding-right);
width: var(--n-width);
max-width: calc(100vw - 16px - 16px);
border-radius: var(--n-border-radius);
box-shadow: var(--n-box-shadow);
box-sizing: border-box;
opacity: 1;
`,[X(`avatar`,[z(`icon`,`
color: var(--n-icon-color);
`),z(`base-icon`,`
color: var(--n-icon-color);
`)]),B(`show-avatar`,[z(`notification-main`,`
margin-left: 40px;
width: calc(100% - 40px);
`)]),B(`closable`,[z(`notification-main`,[U(`> *:first-child`,`
padding-right: 20px;
`)]),X(`close`,`
position: absolute;
top: 0;
right: 0;
margin: var(--n-close-margin);
transition:
background-color .3s var(--n-bezier),
color .3s var(--n-bezier);
`)]),X(`avatar`,`
position: absolute;
top: var(--n-padding-top);
left: var(--n-padding-left);
width: 28px;
height: 28px;
font-size: 28px;
display: flex;
align-items: center;
justify-content: center;
`,[z(`icon`,`transition: color .3s var(--n-bezier);`)]),z(`notification-main`,`
padding-top: var(--n-padding-top);
padding-bottom: var(--n-padding-bottom);
box-sizing: border-box;
display: flex;
flex-direction: column;
margin-left: 8px;
width: calc(100% - 8px);
`,[z(`notification-main-footer`,`
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 12px;
`,[X(`meta`,`
font-size: var(--n-meta-font-size);
transition: color .3s var(--n-bezier-ease-out);
color: var(--n-description-text-color);
`),X(`action`,`
cursor: pointer;
transition: color .3s var(--n-bezier-ease-out);
color: var(--n-action-text-color);
`)]),X(`header`,`
font-weight: var(--n-title-font-weight);
font-size: var(--n-title-font-size);
transition: color .3s var(--n-bezier-ease-out);
color: var(--n-title-text-color);
`),X(`description`,`
margin-top: 8px;
font-size: var(--n-description-font-size);
white-space: pre-wrap;
word-wrap: break-word;
transition: color .3s var(--n-bezier-ease-out);
color: var(--n-description-text-color);
`),X(`content`,`
line-height: var(--n-line-height);
margin: 12px 0 0 0;
font-family: inherit;
white-space: pre-wrap;
word-wrap: break-word;
transition: color .3s var(--n-bezier-ease-out);
color: var(--n-text-color);
`,[U(`&:first-child`,`margin: 0;`)])])])])]);function Oh(e){let t=e.split(`-`)[1]===`left`?`calc(-100%)`:`calc(100%)`;return z(`notification-wrapper`,[U(`&.notification-transition-enter-from, &.notification-transition-leave-to`,`
transform: translate(${t}, 0);
`),U(`&.notification-transition-leave-from, &.notification-transition-enter-to`,`
transform: translate(0, 0);
`)])}var kh=bn(`n-notification-api`),ppe={...$e.props,containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:`top-right`},keepAliveOnHover:Boolean},Ah=Y({name:`NotificationProvider`,props:ppe,setup(e){let{mergedClsPrefixRef:t}=mn(e),n=N([]),r={},i=new Set;function o(t){let o=Ir(),s=()=>{i.add(o),r[o]&&r[o].hide()},c=a({...t,key:o,destroy:s,hide:s,deactivate:s}),{max:l}=e;if(l&&n.value.length-i.size>=l){let e=!1,t=0;for(let a of n.value){if(!i.has(a.key)){r[a.key]&&(a.destroy(),e=!0);break}t++}e||n.value.splice(t,1)}return n.value.push(c),c}let s=[`info`,`success`,`warning`,`error`].map(e=>t=>o({...t,type:e}));function c(e){i.delete(e),n.value.splice(n.value.findIndex(t=>t.key===e),1)}let l=$e(`Notification`,`-notification`,fpe,Th,e,t),u={create:o,info:s[0],success:s[1],warning:s[2],error:s[3],open:f,destroyAll:p},d=N(0);Oe(kh,u),Oe(Eh,{props:e,mergedClsPrefixRef:t,mergedThemeRef:l,wipTransitionCountRef:d});function f(e){return o(e)}function p(){Object.values(n.value).forEach(e=>{e.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:n,notificationRefs:r,handleAfterLeave:c},u)},render(){let{placement:t}=this;return L(),H(K,null,[G(()=>this.$slots.default?.()),this.notificationList.length?(L(),W(Xt,{key:0,to:this.to??`body`},[(L(),W(ape,{class:P(this.containerClass),style:e(this.containerStyle),scrollable:this.scrollable&&t!==`top`&&t!==`bottom`,placement:t},{default:()=>this.notificationList.map(e=>(L(),W(dpe,I({ref:t=>{let n=e.key;t===null?delete this.notificationRefs[n]:this.notificationRefs[n]=t}},Cf(e,[`destroy`,`hide`,`deactivate`]),{internalKey:e.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:e.keepAliveOnHover===void 0?this.keepAliveOnHover:e.keepAliveOnHover}),null,16,[`internalKey`,`onInternalAfterLeave`,`keepAliveOnHover`])))},1032,[`class`,`style`,`scrollable`,`placement`]))],8,[`to`])):G(()=>null)],64)}});function mpe(){let e=pe(kh,null);return e===null&&Ft(`use-notification`,"No outer `n-notification-provider` found."),e}var hpe=Y({name:`InjectionExtractor`,props:{onSetup:Function},setup(e,{slots:t}){return e.onSetup?.(),()=>t.default?.()}}),gpe={message:tpe,notification:mpe,loadingBar:Gfe,dialog:Dfe,modal:th};function _pe({providersAndProps:e,configProviderProps:t}){let n=un(i),r={app:n};function i(){return Dn(bf,M(t),{default:()=>e.map(({type:e,Provider:t,props:n})=>Dn(t,M(n),{default:()=>Dn(hpe,{onSetup:()=>r[e]=gpe[e]()})}))})}let a;return Pr&&(a=document.createElement(`div`),document.body.appendChild(a),n.mount(a)),{unmount:()=>{n===null||a===null?on(`discrete`,`unmount call no need because discrete app has been unmounted`):(n.unmount(),a.parentNode?.removeChild(a),a=null,n=null)},...r}}function vpe(e,{configProviderProps:t,messageProviderProps:n,dialogProviderProps:r,notificationProviderProps:i,loadingBarProviderProps:a,modalProviderProps:o}={}){let s=[];return e.forEach(e=>{switch(e){case`message`:s.push({type:e,Provider:Sh,props:n});break;case`notification`:s.push({type:e,Provider:Ah,props:i});break;case`dialog`:s.push({type:e,Provider:dh,props:r});break;case`loadingBar`:s.push({type:e,Provider:gh,props:a});break;case`modal`:s.push({type:e,Provider:Ch,props:o})}}),_pe({providersAndProps:s,configProviderProps:t})}function jh(e){let{textColor1:t,dividerColor:n,fontWeightStrong:r}=e;return{textColor:t,color:n,fontWeight:r}}var ype={name:`Divider`,common:_e,self:jh},bpe={name:`Divider`,common:os,self:jh};function Mh(e){let{modalColor:t,textColor1:n,textColor2:r,boxShadow3:i,lineHeight:a,fontWeightStrong:o,dividerColor:s,closeColorHover:c,closeColorPressed:l,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,borderRadius:p,primaryColorHover:m}=e;return{bodyPadding:`16px 24px`,borderRadius:p,headerPadding:`16px 24px`,footerPadding:`16px 24px`,color:t,textColor:r,titleTextColor:n,titleFontSize:`18px`,titleFontWeight:o,boxShadow:i,lineHeight:a,headerBorderBottom:`1px solid ${s}`,footerBorderTop:`1px solid ${s}`,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,closeSize:`22px`,closeIconSize:`18px`,closeColorHover:c,closeColorPressed:l,closeBorderRadius:p,resizableTriggerColorHover:m}}var Nh=En({name:`Drawer`,common:_e,peers:{Scrollbar:Cn},self:Mh}),xpe={name:`Drawer`,common:os,peers:{Scrollbar:ss},self:Mh},Spe=[`onMouseenter`,`onMouseleave`,`onMousedown`],Cpe={key:1,role:`none`},wpe=Y({name:`NDrawerContent`,inheritAttrs:!1,props:{blockScroll:Boolean,show:{type:Boolean,default:void 0},displayDirective:{type:String,required:!0},placement:{type:String,required:!0},contentClass:String,contentStyle:[Object,String],nativeScrollbar:{type:Boolean,required:!0},scrollbarProps:Object,trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},showMask:{type:[Boolean,String],required:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,onClickoutside:Function,onAfterLeave:Function,onAfterEnter:Function,onEsc:Function},setup(e){let t=N(!!e.show),n=N(null),r=pe(xs),i=0,a=``,o=null,s=N(!1),c=N(!1),l=V(()=>e.placement===`top`||e.placement===`bottom`),{mergedClsPrefixRef:u,mergedRtlRef:d}=mn(e),f=vn(`Drawer`,d,u),p=S,m=e=>{c.value=!0,i=l.value?e.clientY:e.clientX,a=document.body.style.cursor,document.body.style.cursor=l.value?`ns-resize`:`ew-resize`,document.body.addEventListener(`mousemove`,x),document.body.addEventListener(`mouseleave`,p),document.body.addEventListener(`mouseup`,S)},h=()=>{o!==null&&(window.clearTimeout(o),o=null),c.value?s.value=!0:o=window.setTimeout(()=>{s.value=!0},300)},g=()=>{o!==null&&(window.clearTimeout(o),o=null),s.value=!1},{doUpdateHeight:_,doUpdateWidth:v}=r,y=t=>{let{maxWidth:n}=e;if(n&&t>n)return n;let{minWidth:r}=e;return r&&t<r?r:t},b=t=>{let{maxHeight:n}=e;if(n&&t>n)return n;let{minHeight:r}=e;return r&&t<r?r:t};function x(t){if(c.value){if(l.value){let r=n.value?.offsetHeight||0,a=i-t.clientY;r+=e.placement===`bottom`?a:-a,r=b(r),_(r),i=t.clientY}else{let r=n.value?.offsetWidth||0,a=i-t.clientX;r+=e.placement===`right`?a:-a,r=y(r),v(r),i=t.clientX}}}function S(){c.value&&(i=0,c.value=!1,document.body.style.cursor=a,document.body.removeEventListener(`mousemove`,x),document.body.removeEventListener(`mouseup`,S),document.body.removeEventListener(`mouseleave`,p))}ot(()=>{e.show&&(t.value=!0)}),Te(()=>e.show,e=>{e||S()}),se(()=>{S()});let C=V(()=>{let{show:t}=e,n=[[Vt,t]];return e.showMask||n.push([tc,e.onClickoutside,void 0,{capture:!0}]),n});function w(){t.value=!1,e.onAfterLeave?.()}return Yl(V(()=>e.blockScroll&&t.value)),Oe(bs,n),Oe(ws,null),Oe(Ss,null),{bodyRef:n,rtlEnabled:f,mergedClsPrefix:r.mergedClsPrefixRef,isMounted:r.isMountedRef,mergedTheme:r.mergedThemeRef,displayed:t,transitionName:V(()=>({right:`slide-in-from-right-transition`,left:`slide-in-from-left-transition`,top:`slide-in-from-top-transition`,bottom:`slide-in-from-bottom-transition`})[e.placement]),handleAfterLeave:w,bodyDirectives:C,handleMousedownResizeTrigger:m,handleMouseenterResizeTrigger:h,handleMouseleaveResizeTrigger:g,isDragging:c,isHoverOnResizeTrigger:s}},render(){let{$slots:t,mergedClsPrefix:n}=this;return this.displayDirective===`show`||this.displayed||this.show?Se((L(),H(`div`,Cpe,[(L(),W(Ac,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>(L(),W(gn,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>Se(Dn(`div`,I(this.$attrs,{role:`dialog`,ref:`bodyRef`,"aria-modal":`true`,class:[`${n}-drawer`,this.rtlEnabled&&`${n}-drawer--rtl`,`${n}-drawer--${this.placement}-placement`,this.isDragging&&`${n}-drawer--unselectable`,this.nativeScrollbar&&`${n}-drawer--native-scrollbar`]}),[this.resizable?(L(),H(`div`,{key:2,class:P([`${n}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${n}-drawer__resize-trigger--hover`]),onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger},null,42,Spe)):null,this.nativeScrollbar?(L(),H(`div`,{key:3,class:P([`${n}-drawer-content-wrapper`,this.contentClass]),style:e(this.contentStyle),role:`none`},[G(()=>t.default?.())],6)):(L(),W(ln,I({key:4},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:[`${n}-drawer-content-wrapper`,this.contentClass],theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),_n(t),1040,[`contentStyle`,`contentClass`,`theme`,`themeOverrides`]))]),this.bodyDirectives)},1032,[`name`,`appear`,`onAfterEnter`,`onAfterLeave`]))},1032,[`disabled`,`active`,`autoFocus`,`onEsc`]))])),[[Vt,this.displayDirective===`if`||this.displayed||this.show]]):null}}),{cubicBezierEaseIn:Tpe,cubicBezierEaseOut:Epe}=Ct;function Dpe({duration:e=`0.3s`,leaveDuration:t=`0.2s`,name:n=`slide-in-from-bottom`}={}){return[U(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${Tpe}`}),U(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${Epe}`}),U(`&.${n}-transition-enter-to`,{transform:`translateY(0)`}),U(`&.${n}-transition-enter-from`,{transform:`translateY(100%)`}),U(`&.${n}-transition-leave-from`,{transform:`translateY(0)`}),U(`&.${n}-transition-leave-to`,{transform:`translateY(100%)`})]}var{cubicBezierEaseIn:Ope,cubicBezierEaseOut:kpe}=Ct;function Ape({duration:e=`0.3s`,leaveDuration:t=`0.2s`,name:n=`slide-in-from-left`}={}){return[U(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${Ope}`}),U(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${kpe}`}),U(`&.${n}-transition-enter-to`,{transform:`translateX(0)`}),U(`&.${n}-transition-enter-from`,{transform:`translateX(-100%)`}),U(`&.${n}-transition-leave-from`,{transform:`translateX(0)`}),U(`&.${n}-transition-leave-to`,{transform:`translateX(-100%)`})]}var{cubicBezierEaseIn:jpe,cubicBezierEaseOut:Mpe}=Ct;function Npe({duration:e=`0.3s`,leaveDuration:t=`0.2s`,name:n=`slide-in-from-right`}={}){return[U(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${jpe}`}),U(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${Mpe}`}),U(`&.${n}-transition-enter-to`,{transform:`translateX(0)`}),U(`&.${n}-transition-enter-from`,{transform:`translateX(100%)`}),U(`&.${n}-transition-leave-from`,{transform:`translateX(0)`}),U(`&.${n}-transition-leave-to`,{transform:`translateX(100%)`})]}var{cubicBezierEaseIn:Ppe,cubicBezierEaseOut:Fpe}=Ct;function Ipe({duration:e=`0.3s`,leaveDuration:t=`0.2s`,name:n=`slide-in-from-top`}={}){return[U(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${Ppe}`}),U(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${Fpe}`}),U(`&.${n}-transition-enter-to`,{transform:`translateY(0)`}),U(`&.${n}-transition-enter-from`,{transform:`translateY(-100%)`}),U(`&.${n}-transition-leave-from`,{transform:`translateY(0)`}),U(`&.${n}-transition-leave-to`,{transform:`translateY(-100%)`})]}var Lpe=U([z(`drawer`,`
word-break: break-word;
line-height: var(--n-line-height);
position: absolute;
pointer-events: all;
box-shadow: var(--n-box-shadow);
transition:
background-color .3s var(--n-bezier),
color .3s var(--n-bezier);
background-color: var(--n-color);
color: var(--n-text-color);
box-sizing: border-box;
`,[Npe(),Ape(),Ipe(),Dpe(),B(`unselectable`,`
user-select: none;
-webkit-user-select: none;
`),B(`native-scrollbar`,[z(`drawer-content-wrapper`,`
overflow: auto;
height: 100%;
`)]),X(`resize-trigger`,`
position: absolute;
background-color: #0000;
transition: background-color .3s var(--n-bezier);
`,[B(`hover`,`
background-color: var(--n-resize-trigger-color-hover);
`)]),z(`drawer-content-wrapper`,`
box-sizing: border-box;
`),z(`drawer-content`,`
height: 100%;
display: flex;
flex-direction: column;
`,[B(`native-scrollbar`,[z(`drawer-body-content-wrapper`,`
height: 100%;
overflow: auto;
`)]),z(`drawer-body`,`
flex: 1 0 0;
overflow: hidden;
`),z(`drawer-body-content-wrapper`,`
box-sizing: border-box;
padding: var(--n-body-padding);
`),z(`drawer-header`,`
font-weight: var(--n-title-font-weight);
line-height: 1;
font-size: var(--n-title-font-size);
color: var(--n-title-text-color);
padding: var(--n-header-padding);
transition: border .3s var(--n-bezier);
border-bottom: 1px solid var(--n-divider-color);
border-bottom: var(--n-header-border-bottom);
display: flex;
justify-content: space-between;
align-items: center;
`,[X(`main`,`
flex: 1;
`),X(`close`,`
margin-left: 6px;
transition:
background-color .3s var(--n-bezier),
color .3s var(--n-bezier);
`)]),z(`drawer-footer`,`
display: flex;
justify-content: flex-end;
border-top: var(--n-footer-border-top);
transition: border .3s var(--n-bezier);
padding: var(--n-footer-padding);
`)]),B(`right-placement`,`
top: 0;
bottom: 0;
right: 0;
border-top-left-radius: var(--n-border-radius);
border-bottom-left-radius: var(--n-border-radius);
`,[X(`resize-trigger`,`
width: 3px;
height: 100%;
top: 0;
left: 0;
transform: translateX(-1.5px);
cursor: ew-resize;
`)]),B(`left-placement`,`
top: 0;
bottom: 0;
left: 0;
border-top-right-radius: var(--n-border-radius);
border-bottom-right-radius: var(--n-border-radius);
`,[X(`resize-trigger`,`
width: 3px;
height: 100%;
top: 0;
right: 0;
transform: translateX(1.5px);
cursor: ew-resize;
`)]),B(`top-placement`,`
top: 0;
left: 0;
right: 0;
border-bottom-left-radius: var(--n-border-radius);
border-bottom-right-radius: var(--n-border-radius);
`,[X(`resize-trigger`,`
width: 100%;
height: 3px;
bottom: 0;
left: 0;
transform: translateY(1.5px);
cursor: ns-resize;
`)]),B(`bottom-placement`,`
left: 0;
bottom: 0;
right: 0;
border-top-left-radius: var(--n-border-radius);
border-top-right-radius: var(--n-border-radius);
`,[X(`resize-trigger`,`
width: 100%;
height: 3px;
top: 0;
left: 0;
transform: translateY(-1.5px);
cursor: ns-resize;
`)])]),U(`body`,[U(`>`,[z(`drawer-container`,`
position: fixed;
`)])]),z(`drawer-container`,`
position: relative;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
pointer-events: none;
`,[U(`> *`,`
pointer-events: all;
`)]),z(`drawer-mask`,`
background-color: rgba(0, 0, 0, .3);
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
`,[B(`invisible`,`
background-color: rgba(0, 0, 0, 0)
`),fn({enterDuration:`0.2s`,leaveDuration:`0.2s`,enterCubicBezier:`var(--n-bezier-in)`,leaveCubicBezier:`var(--n-bezier-out)`})])]),Rpe=[`onClick`],Ph={...$e.props,show:Boolean,width:[Number,String],height:[Number,String],placement:{type:String,default:`right`},maskClosable:{type:Boolean,default:!0},showMask:{type:[Boolean,String],default:!0},to:[String,Object],displayDirective:{type:String,default:`if`},nativeScrollbar:{type:Boolean,default:!0},zIndex:Number,onMaskClick:Function,scrollbarProps:Object,contentClass:String,contentStyle:[Object,String],trapFocus:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,defaultWidth:{type:[Number,String],default:251},defaultHeight:{type:[Number,String],default:251},onUpdateWidth:[Function,Array],onUpdateHeight:[Function,Array],"onUpdate:width":[Function,Array],"onUpdate:height":[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,drawerStyle:[String,Object],drawerClass:String,target:null,onShow:Function,onHide:Function},Fh=Y({name:`Drawer`,inheritAttrs:!1,props:Ph,setup(e){let{mergedClsPrefixRef:t,namespaceRef:n,inlineThemeDisabled:r}=mn(e),a=sr(),o=$e(`Drawer`,`-drawer`,Lpe,Nh,e,t),s=N(e.defaultWidth),c=N(e.defaultHeight),l=lr(i(e,`width`),s),u=lr(i(e,`height`),c),d=V(()=>{let{placement:t}=e;return t===`top`||t===`bottom`?``:pr(l.value)}),f=V(()=>{let{placement:t}=e;return t===`left`||t===`right`?``:pr(u.value)}),p=t=>{let{onUpdateWidth:n,"onUpdate:width":r}=e;n&&R(n,t),r&&R(r,t),s.value=t},m=t=>{let{onUpdateHeight:n,"onUpdate:width":r}=e;n&&R(n,t),r&&R(r,t),c.value=t},h=V(()=>[{width:d.value,height:f.value},e.drawerStyle||``]);function g(t){let{onMaskClick:n,maskClosable:r}=e;r&&b(!1),n&&n(t)}function _(e){g(e)}let v=sh();function y(t){e.onEsc?.(),e.show&&e.closeOnEsc&&Xd(t)&&(v.value||b(!1))}function b(t){let{onHide:n,onUpdateShow:r,"onUpdate:show":i}=e;r&&R(r,t),i&&R(i,t),n&&!t&&R(n,t)}Oe(xs,{isMountedRef:a,mergedThemeRef:o,mergedClsPrefixRef:t,doUpdateShow:b,doUpdateHeight:m,doUpdateWidth:p});let x=V(()=>{let{common:{cubicBezierEaseInOut:e,cubicBezierEaseIn:t,cubicBezierEaseOut:n},self:{color:r,textColor:i,boxShadow:a,lineHeight:s,headerPadding:c,footerPadding:l,borderRadius:u,bodyPadding:d,titleFontSize:f,titleTextColor:p,titleFontWeight:m,headerBorderBottom:h,footerBorderTop:g,closeIconColor:_,closeIconColorHover:v,closeIconColorPressed:y,closeColorHover:b,closeColorPressed:x,closeIconSize:S,closeSize:C,closeBorderRadius:w,resizableTriggerColorHover:T}}=o.value;return{"--n-line-height":s,"--n-color":r,"--n-border-radius":u,"--n-text-color":i,"--n-box-shadow":a,"--n-bezier":e,"--n-bezier-out":n,"--n-bezier-in":t,"--n-header-padding":c,"--n-body-padding":d,"--n-footer-padding":l,"--n-title-text-color":p,"--n-title-font-size":f,"--n-title-font-weight":m,"--n-header-border-bottom":h,"--n-footer-border-top":g,"--n-close-icon-color":_,"--n-close-icon-color-hover":v,"--n-close-icon-color-pressed":y,"--n-close-size":C,"--n-close-color-hover":b,"--n-close-color-pressed":x,"--n-close-icon-size":S,"--n-close-border-radius":w,"--n-resize-trigger-color-hover":T}}),S=r?fe(`drawer`,void 0,x,e):void 0;return{mergedClsPrefix:t,namespace:n,mergedBodyStyle:h,handleOutsideClick:_,handleMaskClick:g,handleEsc:y,mergedTheme:o,cssVars:r?void 0:x,themeClass:S?.themeClass,onRender:S?.onRender,isMounted:a}},render(){let{mergedClsPrefix:t}=this;return L(),W(uc,{to:this.to,show:this.show},{default:()=>(this.onRender?.(),Se((L(),H(`div`,{class:P([`${t}-drawer-container`,this.namespace,this.themeClass]),style:e(this.cssVars),role:`none`},[this.showMask?(L(),W(gn,{key:0,name:`fade-in-transition`,appear:this.isMounted},{default:()=>this.show?(L(),H(`div`,{key:1,"aria-hidden":!0,class:P([`${t}-drawer-mask`,this.showMask===`transparent`&&`${t}-drawer-mask--invisible`]),onClick:this.handleMaskClick},null,10,Rpe)):null},1032,[`appear`])):G(()=>null),(L(),W(wpe,I(this.$attrs,{class:[this.drawerClass,this.$attrs.class],style:[this.mergedBodyStyle,this.$attrs.style],blockScroll:this.blockScroll,contentStyle:this.contentStyle,contentClass:this.contentClass,placement:this.placement,scrollbarProps:this.scrollbarProps,show:this.show,displayDirective:this.displayDirective,nativeScrollbar:this.nativeScrollbar,onAfterEnter:this.onAfterEnter,onAfterLeave:this.onAfterLeave,trapFocus:this.trapFocus,autoFocus:this.autoFocus,resizable:this.resizable,maxHeight:this.maxHeight,minHeight:this.minHeight,maxWidth:this.maxWidth,minWidth:this.minWidth,showMask:this.showMask,onEsc:this.handleEsc,onClickoutside:this.handleOutsideClick}),_n(this.$slots),1040,[`class`,`style`,`blockScroll`,`contentStyle`,`contentClass`,`placement`,`scrollbarProps`,`show`,`displayDirective`,`nativeScrollbar`,`onAfterEnter`,`onAfterLeave`,`trapFocus`,`autoFocus`,`resizable`,`maxHeight`,`minHeight`,`maxWidth`,`minWidth`,`showMask`,`onEsc`,`onClickoutside`]))],6)),[[ic,{zIndex:this.zIndex,enabled:this.show}]]))},1032,[`to`,`show`])}}),zpe=Y({name:`DrawerContent`,props:{title:String,headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],bodyClass:String,bodyStyle:[Object,String],bodyContentClass:String,bodyContentStyle:[Object,String],nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,closable:Boolean},slots:Object,setup(){let e=pe(xs,null);e||Ft(`drawer-content`,"`n-drawer-content` must be placed inside `n-drawer`.");let{doUpdateShow:t}=e;function n(){t(!1)}return{handleCloseClick:n,mergedTheme:e.mergedThemeRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){let{title:t,mergedClsPrefix:n,nativeScrollbar:r,mergedTheme:i,bodyClass:a,bodyStyle:o,bodyContentClass:s,bodyContentStyle:c,headerClass:l,headerStyle:u,footerClass:d,footerStyle:f,scrollbarProps:p,closable:m,$slots:h}=this;return L(),H(`div`,{role:`none`,class:P([`${n}-drawer-content`,r&&`${n}-drawer-content--native-scrollbar`])},[h.header||t||m?(L(),H(`div`,{key:0,class:P([`${n}-drawer-header`,l]),style:e(u),role:`none`},[q(`div`,{class:P(`${n}-drawer-header__main`),role:`heading`,"aria-level":`1`},[h.header===void 0?(L(),H(K,{key:1},[G(()=>t)],64)):(L(),H(K,{key:0},[G(()=>h.header())],64))],2),G(()=>m&&(L(),W(hn,{onClick:this.handleCloseClick,clsPrefix:n,class:P(`${n}-drawer-header__close`),absolute:!0},null,8,[`onClick`,`clsPrefix`,`class`])))],6)):G(()=>null),r?(L(),H(`div`,{key:2,class:P([`${n}-drawer-body`,a]),style:e(o),role:`none`},[q(`div`,{class:P([`${n}-drawer-body-content-wrapper`,s]),style:e(c),role:`none`},[G(()=>h.default?.())],6)],6)):(L(),W(ln,I({key:3,themeOverrides:i.peerOverrides.Scrollbar,theme:i.peers.Scrollbar},p,{class:`${n}-drawer-body`,contentClass:[`${n}-drawer-body-content-wrapper`,s],contentStyle:c}),_n(h),1040,[`themeOverrides`,`theme`,`class`,`contentClass`,`contentStyle`])),h.footer?(L(),H(`div`,{key:4,class:P([`${n}-drawer-footer`,d]),style:e(f),role:`none`},[G(()=>h.footer())],6)):G(()=>null)],2)}}),Ih={actionMargin:`0 0 0 20px`,actionMarginRtl:`0 20px 0 0`},Bpe={name:`DynamicInput`,common:os,peers:{Input:tl,Button:$l},self(){return Ih}};function Vpe(){return Ih}var Hpe=En({name:`DynamicInput`,common:_e,peers:{Input:Sr,Button:xr},self:Vpe}),Lh={gapSmall:`4px 8px`,gapMedium:`8px 12px`,gapLarge:`12px 16px`},Rh={name:`Space`,self(){return Lh}};function Upe(){return Lh}var zh={name:`Space`,self:Upe},Bh;function Wpe(){if(!Pr)return!0;if(Bh===void 0){let e=document.createElement(`div`);e.style.display=`flex`,e.style.flexDirection=`column`,e.style.rowGap=`1px`,e.appendChild(document.createElement(`div`)),e.appendChild(document.createElement(`div`)),document.body.appendChild(e);let t=e.scrollHeight===1;return document.body.removeChild(e),Bh=t}return Bh}var Gpe={...$e.props,align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:[String,Number,Array],wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}},Kpe=Y({name:`Space`,props:Gpe,setup(e){let{mergedClsPrefixRef:t,mergedRtlRef:n,mergedComponentPropsRef:r}=mn(e),i=V(()=>e.size??r?.value?.Space?.size??`medium`),a=$e(`Space`,`-space`,void 0,zh,e,t),o=vn(`Space`,n,t);return{useGap:Wpe(),rtlEnabled:o,mergedClsPrefix:t,margin:V(()=>{let e=i.value;if(Array.isArray(e))return{horizontal:e[0],vertical:e[1]};if(typeof e==`number`)return{horizontal:e,vertical:e};let{self:{[tt(`gap`,e)]:t}}=a.value,{row:n,col:r}=Ae(t);return{horizontal:sn(r),vertical:sn(n)}})}},render(){let{vertical:t,reverse:n,align:r,inline:i,justify:a,itemClass:o,itemStyle:s,margin:c,wrap:l,mergedClsPrefix:u,rtlEnabled:d,useGap:f,wrapItem:p,internalUseGap:m}=this,h=hr(Er(this),!1);if(!h.length)return null;let g=`${c.horizontal}px`,_=`${c.horizontal/2}px`,v=`${c.vertical}px`,y=`${c.vertical/2}px`,b=h.length-1,x=a.startsWith(`space-`);return L(),H(`div`,{role:`none`,class:P([`${u}-space`,d&&`${u}-space--rtl`]),style:e({display:i?`inline-flex`:`flex`,flexDirection:t&&!n?`column`:t&&n?`column-reverse`:!t&&n?`row-reverse`:`row`,justifyContent:[`start`,`end`].includes(a)?`flex-${a}`:a,flexWrap:!l||t?`nowrap`:`wrap`,marginTop:f||t?``:`-${y}`,marginBottom:f||t?``:`-${y}`,alignItems:r,gap:f?`${c.vertical}px ${c.horizontal}px`:``})},[!p&&(f||m)?(L(),H(K,{key:0},[G(()=>h)],64)):(L(),H(K,{key:1},[G(()=>h.map((n,r)=>n.type===St?n:(L(),H(`div`,{key:1,role:`none`,class:P(o),style:e([s,{maxWidth:`100%`},f?``:t?{marginBottom:r===b?``:v}:d?{marginLeft:x?a===`space-between`&&r===b?``:_:r===b?``:g,marginRight:x?a===`space-between`&&r===0?``:_:``,paddingTop:y,paddingBottom:y}:{marginRight:x?a===`space-between`&&r===b?``:_:r===b?``:g,marginLeft:x?a===`space-between`&&r===0?``:_:``,paddingTop:y,paddingBottom:y}])},[G(()=>n)],6))))],64))],6)}}),qpe={name:`DynamicTags`,common:os,peers:{Input:tl,Button:$l,Tag:Bc,Space:Rh},self(){return{inputWidth:`64px`}}};function Jpe(){return{inputWidth:`64px`}}var Vh=En({name:`DynamicTags`,common:_e,peers:{Input:Sr,Button:xr,Tag:Vc,Space:zh},self:Jpe}),Ype=z(`dynamic-tags`,[z(`input`,{minWidth:`var(--n-input-width)`})]),Xpe={...$e.props,...Hc,size:String,closable:{type:Boolean,default:!0},defaultValue:{type:Array,default:()=>[]},value:Array,inputClass:String,inputStyle:[String,Object],inputProps:Object,max:Number,tagClass:String,tagStyle:[String,Object],renderTag:Function,onCreate:{type:Function,default:e=>e},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},Hh=Y({name:`DynamicTags`,props:Xpe,slots:Object,setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedComponentPropsRef:r}=mn(e),a=V(()=>e.size||r?.value?.DynamicTags?.size||`medium`),{localeRef:o}=gr(`DynamicTags`),s=mr(e),{mergedDisabledRef:c}=s,l=N(``),u=N(!1),d=N(!0),f=N(null),p=$e(`DynamicTags`,`-dynamic-tags`,Ype,Vh,e,t),m=N(e.defaultValue),h=i(e,`value`),g=lr(h,m),_=V(()=>o.value.add),v=V(()=>If(a.value)),y=V(()=>c.value||!!e.max&&g.value.length>=e.max);function b(t){let{onChange:n,"onUpdate:value":r,onUpdateValue:i}=e,{nTriggerFormInput:a,nTriggerFormChange:o}=s;n&&R(n,t),i&&R(i,t),r&&R(r,t),m.value=t,a(),o()}function x(e){let t=g.value.slice(0);t.splice(e,1),b(t)}function S(e){!f.value?.isCompositing&&e.key===`Enter`&&C()}function C(t){let n=t??l.value;if(n){let t=g.value.slice(0);t.push(e.onCreate(n)),b(t)}u.value=!1,d.value=!0,l.value=``}function w(){C()}function T(){u.value=!0,he(()=>{f.value?.focus(),d.value=!1})}let E=V(()=>{let{self:{inputWidth:e}}=p.value;return{"--n-input-width":e}}),D=n?fe(`dynamic-tags`,void 0,E,e):void 0;return{mergedClsPrefix:t,inputInstRef:f,localizedAdd:_,inputSize:v,mergedSize:a,inputValue:l,showInput:u,inputForceFocused:d,mergedValue:g,mergedDisabled:c,triggerDisabled:y,handleInputKeyDown:S,handleAddClick:T,handleInputBlur:w,handleCloseClick:x,handleInputConfirm:C,mergedTheme:p,cssVars:n?void 0:E,themeClass:D?.themeClass,onRender:D?.onRender}},render(){let{mergedTheme:t,cssVars:n,mergedClsPrefix:r,onRender:i,renderTag:a}=this;return i?.(),L(),W(Kpe,{class:P([`${r}-dynamic-tags`,this.themeClass]),size:`small`,style:e(n),theme:t.peers.Space,themeOverrides:t.peerOverrides.Space,itemStyle:`display: flex;`},{default:()=>{let{mergedTheme:t,tagClass:n,tagStyle:i,type:o,round:s,mergedSize:c,color:l,closable:u,mergedDisabled:d,showInput:f,inputValue:p,inputClass:m,inputStyle:h,inputSize:g,inputForceFocused:_,triggerDisabled:v,handleInputKeyDown:y,handleInputBlur:b,handleAddClick:x,handleCloseClick:S,handleInputConfirm:C,$slots:w}=this;return this.mergedValue.map((r,f)=>a?a(r,f):(L(),W(Wc,{key:f,theme:t.peers.Tag,themeOverrides:t.peerOverrides.Tag,class:P(n),style:e(i),type:o,round:s,size:c,color:l,closable:u,disabled:d,onClose:()=>{S(f)}},{default:()=>typeof r==`string`?r:r.label},1032,[`theme`,`themeOverrides`,`class`,`style`,`type`,`round`,`size`,`color`,`closable`,`disabled`,`onClose`]))).concat(f?w.input?w.input({submit:C,deactivate:b}):(L(),W(Fr,I({key:2,placeholder:``,size:g,style:h,class:m,autosize:!0},this.inputProps,{ref:`inputInstRef`,value:p,onUpdateValue:e=>{this.inputValue=e},theme:t.peers.Input,themeOverrides:t.peerOverrides.Input,onKeydown:y,onBlur:b,internalForceFocus:_}),null,16,[`size`,`style`,`class`,`value`,`onUpdateValue`,`theme`,`themeOverrides`,`onKeydown`,`onBlur`,`internalForceFocus`])):w.trigger?w.trigger({activate:x,disabled:v}):(L(),W(wr,{key:3,dashed:!0,disabled:v,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:g,onClick:x},{icon:()=>(L(),W(wt,{clsPrefix:r},{default:()=>(L(),W(kr))},1032,[`clsPrefix`]))},1032,[`disabled`,`theme`,`themeOverrides`,`size`,`onClick`])))}},1032,[`class`,`style`,`theme`,`themeOverrides`])}}),Zpe={name:`Element`,common:os},Qpe={name:`Element`,common:_e},$pe={name:`Flex`,self(){return uee}},eme={name:`ButtonGroup`,common:os},tme={name:`Form`,common:os,self:fee},nme={name:`GradientText`,common:os,self(e){let{primaryColor:t,successColor:n,warningColor:r,errorColor:i,infoColor:a,primaryColorSuppl:o,successColorSuppl:s,warningColorSuppl:c,errorColorSuppl:l,infoColorSuppl:u,fontWeightStrong:d}=e;return{fontWeight:d,rotate:`252deg`,colorStartPrimary:t,colorEndPrimary:o,colorStartInfo:a,colorEndInfo:u,colorStartWarning:r,colorEndWarning:c,colorStartError:i,colorEndError:l,colorStartSuccess:n,colorEndSuccess:s}}},rme={name:`InputNumber`,common:os,peers:{Button:$l,Input:tl},self(e){let{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function Uh(){return{inputWidthSmall:`24px`,inputWidthMedium:`30px`,inputWidthLarge:`36px`,gapSmall:`8px`,gapMedium:`8px`,gapLarge:`8px`}}var ime=En({name:`InputOtp`,common:_e,peers:{Input:Sr},self:Uh}),ame={name:`InputOtp`,common:os,peers:{Input:tl},self:Uh},ome={name:`Layout`,common:os,peers:{Scrollbar:ss},self(e){let{textColor2:t,bodyColor:n,popoverColor:r,cardColor:i,dividerColor:a,scrollbarColor:o,scrollbarColorHover:s}=e;return{textColor:t,textColorInverted:t,color:n,colorEmbedded:n,headerColor:i,headerColorInverted:i,footerColor:i,footerColorInverted:i,headerBorderColor:a,headerBorderColorInverted:a,footerBorderColor:a,footerBorderColorInverted:a,siderBorderColor:a,siderBorderColorInverted:a,siderColor:i,siderColorInverted:i,siderToggleButtonBorder:`1px solid transparent`,siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:Ue(n,o),siderToggleBarColorHover:Ue(n,s),__invertScrollbar:`false`}}};function Wh(e){let{textColor2:t,cardColor:n,modalColor:r,popoverColor:i,dividerColor:a,borderRadius:o,fontSize:s,hoverColor:c}=e;return{textColor:t,color:n,colorHover:c,colorModal:r,colorHoverModal:Ue(r,c),colorPopover:i,colorHoverPopover:Ue(i,c),borderColor:a,borderColorModal:Ue(r,a),borderColorPopover:Ue(i,a),borderRadius:o,fontSize:s}}var sme={name:`List`,common:_e,self:Wh},cme={name:`List`,common:os,self:Wh},lme={name:`Log`,common:os,peers:{Scrollbar:ss,Code:nf},self(e){let{textColor2:t,inputColor:n,fontSize:r,primaryColor:i}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:n,loaderBorder:`1px solid #0000`,loadingColor:i}}},ume={name:`Mention`,common:os,peers:{InternalSelectMenu:ms,Input:tl},self(e){let{boxShadow2:t}=e;return{menuBoxShadow:t}}};function dme(e,t,n,r){return{itemColorHoverInverted:`#0000`,itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:n,itemTextColorChildActiveInverted:n,itemTextColorChildActiveHoverInverted:n,itemTextColorActiveInverted:n,itemTextColorActiveHoverInverted:n,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:n,itemTextColorChildActiveHorizontalInverted:n,itemTextColorChildActiveHoverHorizontalInverted:n,itemTextColorActiveHorizontalInverted:n,itemTextColorActiveHoverHorizontalInverted:n,itemIconColorInverted:e,itemIconColorHoverInverted:n,itemIconColorActiveInverted:n,itemIconColorActiveHoverInverted:n,itemIconColorChildActiveInverted:n,itemIconColorChildActiveHoverInverted:n,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:n,itemIconColorActiveHorizontalInverted:n,itemIconColorActiveHoverHorizontalInverted:n,itemIconColorChildActiveHorizontalInverted:n,itemIconColorChildActiveHoverHorizontalInverted:n,arrowColorInverted:e,arrowColorHoverInverted:n,arrowColorActiveInverted:n,arrowColorActiveHoverInverted:n,arrowColorChildActiveInverted:n,arrowColorChildActiveHoverInverted:n,groupTextColorInverted:r}}function Gh(e){let{borderRadius:t,textColor3:n,primaryColor:r,textColor2:i,textColor1:a,fontSize:o,dividerColor:s,hoverColor:c,primaryColorHover:l}=e;return{borderRadius:t,color:`#0000`,groupTextColor:n,itemColorHover:c,itemColorActive:F(r,{alpha:.1}),itemColorActiveHover:F(r,{alpha:.1}),itemColorActiveCollapsed:F(r,{alpha:.1}),itemTextColor:i,itemTextColorHover:i,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:i,itemTextColorHoverHorizontal:l,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:a,itemIconColorHover:a,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:a,itemIconColorHorizontal:a,itemIconColorHoverHorizontal:l,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:`42px`,arrowColor:i,arrowColorHover:i,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:`#0000`,borderColorHorizontal:`#0000`,fontSize:o,dividerColor:s,...dme(`#BBB`,r,`#FFF`,`#AAA`)}}var Kh=En({name:`Menu`,common:_e,peers:{Tooltip:tp,Dropdown:Jf},self:Gh}),fme={name:`Menu`,common:os,peers:{Tooltip:Zf,Dropdown:Yf},self(e){let{primaryColor:t,primaryColorSuppl:n}=e,r=Gh(e);return r.itemColorActive=F(t,{alpha:.15}),r.itemColorActiveHover=F(t,{alpha:.15}),r.itemColorActiveCollapsed=F(t,{alpha:.15}),r.itemColorActiveInverted=n,r.itemColorActiveHoverInverted=n,r.itemColorActiveCollapsedInverted=n,r}},pme={iconSize:`22px`};function qh(e){let{fontSize:t,warningColor:n}=e;return{...pme,fontSize:t,iconColor:n}}var Jh=En({name:`Popconfirm`,common:_e,peers:{Button:xr,Popover:gs},self:qh}),mme={name:`Popconfirm`,common:os,peers:{Button:$l,Popover:_s},self:qh};function Yh(e){let{infoColor:t,successColor:n,warningColor:r,errorColor:i,textColor2:a,progressRailColor:o,fontSize:s,fontWeight:c}=e;return{fontSize:s,fontSizeCircle:`28px`,fontWeightCircle:c,railColor:o,railHeight:`8px`,iconSizeCircle:`36px`,iconSizeLine:`18px`,iconColor:t,iconColorInfo:t,iconColorSuccess:n,iconColorWarning:r,iconColorError:i,textColorCircle:a,textColorLineInner:`rgb(255, 255, 255)`,textColorLineOuter:a,fillColor:t,fillColorInfo:t,fillColorSuccess:n,fillColorWarning:r,fillColorError:i,lineBgProcessing:`linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)`}}var Xh={name:`Progress`,common:_e,self:Yh},Zh={name:`Progress`,common:os,self(e){let t=Yh(e);return t.textColorLineInner=`rgb(0, 0, 0)`,t.lineBgProcessing=`linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)`,t}},hme={name:`Rate`,common:os,self(e){let{railColor:t}=e;return{itemColor:t,itemColorActive:`#CCAA33`,itemSize:`20px`,sizeSmall:`16px`,sizeMedium:`20px`,sizeLarge:`24px`}}},gme={titleFontSizeSmall:`26px`,titleFontSizeMedium:`32px`,titleFontSizeLarge:`40px`,titleFontSizeHuge:`48px`,fontSizeSmall:`14px`,fontSizeMedium:`14px`,fontSizeLarge:`15px`,fontSizeHuge:`16px`,iconSizeSmall:`64px`,iconSizeMedium:`80px`,iconSizeLarge:`100px`,iconSizeHuge:`125px`,iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function Qh(e){let{textColor2:t,textColor1:n,errorColor:r,successColor:i,infoColor:a,warningColor:o,lineHeight:s,fontWeightStrong:c}=e;return{...gme,lineHeight:s,titleFontWeight:c,titleTextColor:n,textColor:t,iconColorError:r,iconColorSuccess:i,iconColorInfo:a,iconColorWarning:o}}var $h={name:`Result`,common:_e,self:Qh},_me={name:`Result`,common:os,self:Qh},eg={railHeight:`4px`,railWidthVertical:`4px`,handleSize:`18px`,dotHeight:`8px`,dotWidth:`8px`,dotBorderRadius:`4px`},vme={name:`Slider`,common:os,self(e){let{railColor:t,modalColor:n,primaryColorSuppl:r,popoverColor:i,textColor2:a,cardColor:o,borderRadius:s,fontSize:c,opacityDisabled:l}=e;return{...eg,fontSize:c,markFontSize:c,railColor:t,railColorHover:t,fillColor:r,fillColorHover:r,opacityDisabled:l,handleColor:`#FFF`,dotColor:o,dotColorModal:n,dotColorPopover:i,handleBoxShadow:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,handleBoxShadowHover:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,handleBoxShadowActive:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,handleBoxShadowFocus:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,indicatorColor:i,indicatorBoxShadow:`0 2px 8px 0 rgba(0, 0, 0, 0.12)`,indicatorTextColor:a,indicatorBorderRadius:s,dotBorder:`2px solid ${t}`,dotBorderActive:`2px solid ${r}`,dotBoxShadow:``}}};function tg(e){let{opacityDisabled:t,heightTiny:n,heightSmall:r,heightMedium:i,heightLarge:a,heightHuge:o,primaryColor:s,fontSize:c}=e;return{fontSize:c,textColor:s,sizeTiny:n,sizeSmall:r,sizeMedium:i,sizeLarge:a,sizeHuge:o,color:s,opacitySpinning:t}}var ng={name:`Spin`,common:_e,self:tg},yme={name:`Spin`,common:os,self:tg};function rg(e){let{textColor2:t,textColor3:n,fontSize:r,fontWeight:i}=e;return{labelFontSize:r,labelFontWeight:i,valueFontWeight:i,valueFontSize:`24px`,labelTextColor:n,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}var ig={name:`Statistic`,common:_e,self:rg},bme={name:`Statistic`,common:os,self:rg},xme={stepHeaderFontSizeSmall:`14px`,stepHeaderFontSizeMedium:`16px`,indicatorIndexFontSizeSmall:`14px`,indicatorIndexFontSizeMedium:`16px`,indicatorSizeSmall:`22px`,indicatorSizeMedium:`28px`,indicatorIconSizeSmall:`14px`,indicatorIconSizeMedium:`18px`};function ag(e){let{fontWeightStrong:t,baseColor:n,textColorDisabled:r,primaryColor:i,errorColor:a,textColor1:o,textColor2:s}=e;return{...xme,stepHeaderFontWeight:t,indicatorTextColorProcess:n,indicatorTextColorWait:r,indicatorTextColorFinish:i,indicatorTextColorError:a,indicatorBorderColorProcess:i,indicatorBorderColorWait:r,indicatorBorderColorFinish:i,indicatorBorderColorError:a,indicatorColorProcess:i,indicatorColorWait:`#0000`,indicatorColorFinish:`#0000`,indicatorColorError:`#0000`,splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:i,splitorColorError:r,headerTextColorProcess:o,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:a,descriptionTextColorProcess:s,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:a}}var Sme={name:`Steps`,common:_e,self:ag},Cme={name:`Steps`,common:os,self:ag},og={buttonHeightSmall:`14px`,buttonHeightMedium:`18px`,buttonHeightLarge:`22px`,buttonWidthSmall:`14px`,buttonWidthMedium:`18px`,buttonWidthLarge:`22px`,buttonWidthPressedSmall:`20px`,buttonWidthPressedMedium:`24px`,buttonWidthPressedLarge:`28px`,railHeightSmall:`18px`,railHeightMedium:`22px`,railHeightLarge:`26px`,railWidthSmall:`32px`,railWidthMedium:`40px`,railWidthLarge:`48px`},wme={name:`Switch`,common:os,self(e){let{primaryColorSuppl:t,opacityDisabled:n,borderRadius:r,primaryColor:i,textColor2:a,baseColor:o}=e;return{...og,iconColor:o,textColor:a,loadingColor:t,opacityDisabled:n,railColor:`rgba(255, 255, 255, .20)`,railColorActive:t,buttonBoxShadow:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,buttonColor:`#FFF`,railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${F(i,{alpha:.3})}`}}},Tme={thPaddingSmall:`6px`,thPaddingMedium:`12px`,thPaddingLarge:`12px`,tdPaddingSmall:`6px`,tdPaddingMedium:`12px`,tdPaddingLarge:`12px`};function sg(e){let{dividerColor:t,cardColor:n,modalColor:r,popoverColor:i,tableHeaderColor:a,tableColorStriped:o,textColor1:s,textColor2:c,borderRadius:l,fontWeightStrong:u,lineHeight:d,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:m}=e;return{...Tme,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:m,lineHeight:d,borderRadius:l,borderColor:Ue(n,t),borderColorModal:Ue(r,t),borderColorPopover:Ue(i,t),tdColor:n,tdColorModal:r,tdColorPopover:i,tdColorStriped:Ue(n,o),tdColorStripedModal:Ue(r,o),tdColorStripedPopover:Ue(i,o),thColor:Ue(n,a),thColorModal:Ue(r,a),thColorPopover:Ue(i,a),thTextColor:s,tdTextColor:c,thFontWeight:u}}var Eme={name:`Table`,common:_e,self:sg},Dme={name:`Table`,common:os,self:sg},Ome={tabFontSizeSmall:`14px`,tabFontSizeMedium:`14px`,tabFontSizeLarge:`16px`,tabGapSmallLine:`36px`,tabGapMediumLine:`36px`,tabGapLargeLine:`36px`,tabGapSmallLineVertical:`8px`,tabGapMediumLineVertical:`8px`,tabGapLargeLineVertical:`8px`,tabPaddingSmallLine:`6px 0`,tabPaddingMediumLine:`10px 0`,tabPaddingLargeLine:`14px 0`,tabPaddingVerticalSmallLine:`6px 12px`,tabPaddingVerticalMediumLine:`8px 16px`,tabPaddingVerticalLargeLine:`10px 20px`,tabGapSmallBar:`36px`,tabGapMediumBar:`36px`,tabGapLargeBar:`36px`,tabGapSmallBarVertical:`8px`,tabGapMediumBarVertical:`8px`,tabGapLargeBarVertical:`8px`,tabPaddingSmallBar:`4px 0`,tabPaddingMediumBar:`6px 0`,tabPaddingLargeBar:`10px 0`,tabPaddingVerticalSmallBar:`6px 12px`,tabPaddingVerticalMediumBar:`8px 16px`,tabPaddingVerticalLargeBar:`10px 20px`,tabGapSmallCard:`4px`,tabGapMediumCard:`4px`,tabGapLargeCard:`4px`,tabGapSmallCardVertical:`4px`,tabGapMediumCardVertical:`4px`,tabGapLargeCardVertical:`4px`,tabPaddingSmallCard:`8px 16px`,tabPaddingMediumCard:`10px 20px`,tabPaddingLargeCard:`12px 24px`,tabPaddingSmallSegment:`4px 0`,tabPaddingMediumSegment:`6px 0`,tabPaddingLargeSegment:`8px 0`,tabPaddingVerticalLargeSegment:`0 8px`,tabPaddingVerticalSmallCard:`8px 12px`,tabPaddingVerticalMediumCard:`10px 16px`,tabPaddingVerticalLargeCard:`12px 20px`,tabPaddingVerticalSmallSegment:`0 4px`,tabPaddingVerticalMediumSegment:`0 6px`,tabGapSmallSegment:`0`,tabGapMediumSegment:`0`,tabGapLargeSegment:`0`,tabGapSmallSegmentVertical:`0`,tabGapMediumSegmentVertical:`0`,tabGapLargeSegmentVertical:`0`,panePaddingSmall:`8px 0 0 0`,panePaddingMedium:`12px 0 0 0`,panePaddingLarge:`16px 0 0 0`,closeSize:`18px`,closeIconSize:`14px`};function cg(e){let{textColor2:t,primaryColor:n,textColorDisabled:r,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeColorHover:s,closeColorPressed:c,tabColor:l,baseColor:u,dividerColor:d,fontWeight:f,textColor1:p,borderRadius:m,fontSize:h,fontWeightStrong:g}=e;return{...Ome,colorSegment:l,tabFontSizeCard:h,tabTextColorLine:p,tabTextColorActiveLine:n,tabTextColorHoverLine:n,tabTextColorDisabledLine:r,tabTextColorSegment:p,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:p,tabTextColorActiveBar:n,tabTextColorHoverBar:n,tabTextColorDisabledBar:r,tabTextColorCard:p,tabTextColorHoverCard:p,tabTextColorActiveCard:n,tabTextColorDisabledCard:r,barColor:n,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeColorHover:s,closeColorPressed:c,closeBorderRadius:m,tabColor:l,tabColorSegment:u,tabBorderColor:d,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:m,paneTextColor:t,fontWeightStrong:g}}var lg=En({name:`Tabs`,common:_e,peers:{Button:xr},self:cg}),kme={name:`Tabs`,common:os,peers:{Button:$l},self(e){let t=cg(e),{inputColor:n}=e;return t.colorSegment=n,t.tabColorSegment=n,t}};function ug(e){let{textColor1:t,textColor2:n,fontWeightStrong:r,fontSize:i}=e;return{fontSize:i,titleTextColor:t,textColor:n,titleFontWeight:r}}var Ame={name:`Thing`,common:_e,self:ug},jme={name:`Thing`,common:os,self:ug},dg={titleMarginMedium:`0 0 6px 0`,titleMarginLarge:`-2px 0 6px 0`,titleFontSizeMedium:`14px`,titleFontSizeLarge:`16px`,iconSizeMedium:`14px`,iconSizeLarge:`14px`},Mme={name:`Timeline`,common:os,self(e){let{textColor3:t,infoColorSuppl:n,errorColorSuppl:r,successColorSuppl:i,warningColorSuppl:a,textColor1:o,textColor2:s,railColor:c,fontWeightStrong:l,fontSize:u}=e;return{...dg,contentFontSize:u,titleFontWeight:l,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${n}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${i}`,circleBorderWarning:`2px solid ${a}`,iconColor:t,iconColorInfo:n,iconColorError:r,iconColorSuccess:i,iconColorWarning:a,titleTextColor:o,contentTextColor:s,metaTextColor:t,lineColor:c}}},fg={extraFontSizeSmall:`12px`,extraFontSizeMedium:`12px`,extraFontSizeLarge:`14px`,titleFontSizeSmall:`14px`,titleFontSizeMedium:`16px`,titleFontSizeLarge:`16px`,closeSize:`20px`,closeIconSize:`16px`,headerHeightSmall:`44px`,headerHeightMedium:`44px`,headerHeightLarge:`50px`},Nme={name:`Transfer`,common:os,peers:{Checkbox:Hd,Scrollbar:ss,Input:tl,Empty:us,Button:$l},self(e){let{fontWeight:t,fontSizeLarge:n,fontSizeMedium:r,fontSizeSmall:i,heightLarge:a,heightMedium:o,borderRadius:s,inputColor:c,tableHeaderColor:l,textColor1:u,textColorDisabled:d,textColor2:f,textColor3:p,hoverColor:m,closeColorHover:h,closeColorPressed:g,closeIconColor:_,closeIconColorHover:v,closeIconColorPressed:y,dividerColor:b}=e;return{...fg,itemHeightSmall:o,itemHeightMedium:o,itemHeightLarge:a,fontSizeSmall:i,fontSizeMedium:r,fontSizeLarge:n,borderRadius:s,dividerColor:b,borderColor:`#0000`,listColor:c,headerColor:l,titleTextColor:u,titleTextColorDisabled:d,extraTextColor:p,extraTextColorDisabled:d,itemTextColor:f,itemTextColorDisabled:d,itemColorPending:m,titleFontWeight:t,closeColorHover:h,closeColorPressed:g,closeIconColor:_,closeIconColorHover:v,closeIconColorPressed:y}}};function pg(e){let{borderRadiusSmall:t,dividerColor:n,hoverColor:r,pressedColor:i,primaryColor:a,textColor3:o,textColor2:s,textColorDisabled:c,fontSize:l}=e;return{fontSize:l,lineHeight:`1.5`,nodeHeight:`30px`,nodeWrapperPadding:`3px 0`,nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:i,nodeColorActive:F(a,{alpha:.1}),arrowColor:o,nodeTextColor:s,nodeTextColorDisabled:c,loadingColor:a,dropMarkColor:a,lineColor:n}}var mg=En({name:`Tree`,common:_e,peers:{Checkbox:Vd,Scrollbar:Cn,Empty:ls},self:pg}),hg={name:`Tree`,common:os,peers:{Checkbox:Hd,Scrollbar:ss,Empty:us},self(e){let{primaryColor:t}=e,n=pg(e);return n.nodeColorActive=F(t,{alpha:.15}),n}},Pme={name:`TreeSelect`,common:os,peers:{Tree:hg,Empty:us,InternalSelection:Kc}},Fme={headerFontSize1:`30px`,headerFontSize2:`22px`,headerFontSize3:`18px`,headerFontSize4:`16px`,headerFontSize5:`16px`,headerFontSize6:`16px`,headerMargin1:`28px 0 20px 0`,headerMargin2:`28px 0 20px 0`,headerMargin3:`28px 0 20px 0`,headerMargin4:`28px 0 18px 0`,headerMargin5:`28px 0 18px 0`,headerMargin6:`28px 0 18px 0`,headerPrefixWidth1:`16px`,headerPrefixWidth2:`16px`,headerPrefixWidth3:`12px`,headerPrefixWidth4:`12px`,headerPrefixWidth5:`12px`,headerPrefixWidth6:`12px`,headerBarWidth1:`4px`,headerBarWidth2:`4px`,headerBarWidth3:`3px`,headerBarWidth4:`3px`,headerBarWidth5:`3px`,headerBarWidth6:`3px`,pMargin:`16px 0 16px 0`,liMargin:`.25em 0 0 0`,olPadding:`0 0 0 2em`,ulPadding:`0 0 0 2em`};function gg(e){let{primaryColor:t,textColor2:n,borderColor:r,lineHeight:i,fontSize:a,borderRadiusSmall:o,dividerColor:s,fontWeightStrong:c,textColor1:l,textColor3:u,infoColor:d,warningColor:f,errorColor:p,successColor:m,codeColor:h}=e;return{...Fme,aTextColor:t,blockquoteTextColor:n,blockquotePrefixColor:r,blockquoteLineHeight:i,blockquoteFontSize:a,codeBorderRadius:o,liTextColor:n,liLineHeight:i,liFontSize:a,hrColor:s,headerFontWeight:c,headerTextColor:l,pTextColor:n,pTextColor1Depth:l,pTextColor2Depth:n,pTextColor3Depth:u,pLineHeight:i,pFontSize:a,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:d,headerBarColorError:p,headerBarColorWarning:f,headerBarColorSuccess:m,textColor:n,textColor1Depth:l,textColor2Depth:n,textColor3Depth:u,textColorPrimary:t,textColorInfo:d,textColorSuccess:m,textColorWarning:f,textColorError:p,codeTextColor:n,codeColor:h,codeBorder:`1px solid #0000`}}var _g={name:`Typography`,common:_e,self:gg},Ime={name:`Typography`,common:os,self:gg};function vg(e){let{iconColor:t,primaryColor:n,errorColor:r,textColor2:i,successColor:a,opacityDisabled:o,actionColor:s,borderColor:c,hoverColor:l,lineHeight:u,borderRadius:d,fontSize:f}=e;return{fontSize:f,lineHeight:u,borderRadius:d,draggerColor:s,draggerBorder:`1px dashed ${c}`,draggerBorderHover:`1px dashed ${n}`,itemColorHover:l,itemColorHoverError:F(r,{alpha:.06}),itemTextColor:i,itemTextColorError:r,itemTextColorSuccess:a,itemIconColor:t,itemDisabledOpacity:o,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${c}`}}var Lme=En({name:`Upload`,common:_e,peers:{Button:xr,Progress:Xh},self:vg}),Rme={name:`Upload`,common:os,peers:{Button:$l,Progress:Zh},self(e){let{errorColor:t}=e,n=vg(e);return n.itemColorHoverError=F(t,{alpha:.09}),n}},zme={name:`Watermark`,common:os,self(e){let{fontFamily:t}=e;return{fontFamily:t}}};function Bme(e){let{popoverColor:t,dividerColor:n,borderRadius:r}=e;return{color:t,buttonBorderColor:n,borderRadiusSquare:r,boxShadow:`0 2px 8px 0px rgba(0, 0, 0, .12)`}}var Vme={name:`FloatButtonGroup`,common:_e,self:Bme};function Hme(e){let{popoverColor:t,textColor2:n,buttonColor2Hover:r,buttonColor2Pressed:i,primaryColor:a,primaryColorHover:o,primaryColorPressed:s,borderRadius:c}=e;return{color:t,colorHover:r,colorPressed:i,colorPrimary:a,colorPrimaryHover:o,colorPrimaryPressed:s,textColor:n,boxShadow:`0 2px 8px 0px rgba(0, 0, 0, .16)`,boxShadowHover:`0 2px 12px 0px rgba(0, 0, 0, .24)`,boxShadowPressed:`0 2px 12px 0px rgba(0, 0, 0, .24)`,textColorPrimary:`#fff`,borderRadiusSquare:c}}var Ume={name:`FloatButton`,common:_e,self:Hme},yg=bn(`n-grid`),bg={span:{type:[Number,String],default:1},offset:{type:[Number,String],default:0},suffix:Boolean,privateOffset:Number,privateSpan:Number,privateColStart:Number,privateShow:{type:Boolean,default:!0}},Wme=jt(bg),xg=Y({__GRID_ITEM__:!0,name:`GridItem`,alias:[`Gi`],props:bg,setup(){let{isSsrRef:e,xGapRef:t,itemStyleRef:n,overflowRef:r,layoutShiftDisabledRef:i}=pe(yg),a=Tt();return{overflow:r,itemStyle:n,layoutShiftDisabled:i,mergedXGap:V(()=>mt(t.value||0)),deriveStyle:()=>{e.value;let{privateSpan:n=1,privateShow:r=!0,privateColStart:i=void 0,privateOffset:o=0}=a.vnode.props,{value:s}=t,c=mt(s||0);return{display:r?``:`none`,gridColumn:`${i??`span ${n}`} / span ${n}`,marginLeft:o?`calc((100% - (${n} - 1) * ${c}) / ${n} * ${o} + ${c} * ${o})`:``}}}},render(){if(this.layoutShiftDisabled){let{span:t,offset:n,mergedXGap:r}=this;return L(),H(`div`,{key:1,style:e({gridColumn:`span ${t} / span ${t}`,marginLeft:n?`calc((100% - (${t} - 1) * ${r}) / ${t} * ${n} + ${r} * ${n})`:``})},[G(()=>this.$slots.default?.())],4)}return L(),H(`div`,{style:e([this.itemStyle,this.deriveStyle()])},[G(()=>this.$slots.default?.({overflow:this.overflow}))],4)}}),Gme=Y({name:`GlobalStyle`,setup(){if(typeof document>`u`)return;let e=pe(Zt,null),{body:t}=document,{style:n}=t,r=!1,i=!0;qt(()=>{ot(()=>{let{textColor2:a,fontSize:o,fontFamily:s,bodyColor:c,cubicBezierEaseInOut:l,lineHeight:u}=e?ge({},e.mergedThemeRef.value?.common||_e,e.mergedThemeOverridesRef.value?.common):_e;if(r||!t.hasAttribute(`n-styled`)){n.setProperty(`-webkit-text-size-adjust`,`100%`),n.setProperty(`-webkit-tap-highlight-color`,`transparent`),n.padding=`0`,n.margin=`0`,n.backgroundColor=c,n.color=a,n.fontSize=o,n.fontFamily=s,n.lineHeight=u;let e=`color .3s ${l}, background-color .3s ${l}`;i?setTimeout(()=>{n.transition=e},0):n.transition=e,t.setAttribute(`n-styled`,``),r=!0,i=!1}})}),qe(()=>{r&&t.removeAttribute(`n-styled`)})},render(){return null}});function Kme(e){let{primaryColor:t,successColor:n,warningColor:r,errorColor:i,infoColor:a,fontWeightStrong:o}=e;return{fontWeight:o,rotate:`252deg`,colorStartPrimary:F(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:F(a,{alpha:.6}),colorEndInfo:a,colorStartWarning:F(r,{alpha:.6}),colorEndWarning:r,colorStartError:F(i,{alpha:.6}),colorEndError:i,colorStartSuccess:F(n,{alpha:.6}),colorEndSuccess:n}}var qme={name:`GradientText`,common:_e,self:Kme};function Jme(e){let t=e.dirs?.find(({dir:e})=>e===Vt);return!!(t&&t.value===!1)}var Yme={xs:0,s:640,m:1024,l:1280,xl:1536,xxl:1920},Sg=24,Cg=`__ssr__`,wg={layoutShiftDisabled:Boolean,responsive:{type:[String,Boolean],default:`self`},cols:{type:[Number,String],default:Sg},itemResponsive:Boolean,collapsed:Boolean,collapsedRows:{type:Number,default:1},itemStyle:[Object,String],xGap:{type:[Number,String],default:0},yGap:{type:[Number,String],default:0}},Tg=Y({name:`Grid`,inheritAttrs:!1,props:wg,setup(e){let{mergedClsPrefixRef:t,mergedBreakpointsRef:n}=mn(e),r=/^\d+$/,a=N(void 0),o=Lie(n?.value||Yme),s=dr(()=>!(!e.itemResponsive&&r.test(e.cols.toString())&&r.test(e.xGap.toString())&&r.test(e.yGap.toString()))),c=V(()=>{if(s.value)return e.responsive===`self`?a.value:o.value}),l=dr(()=>Number(ns(e.cols.toString(),c.value))??Sg),u=dr(()=>ns(e.xGap.toString(),c.value)),d=dr(()=>ns(e.yGap.toString(),c.value)),f=e=>{a.value=e.contentRect.width},p=e=>{es(f,e)},m=N(!1),h=V(()=>{if(e.responsive===`self`)return p}),g=N(!1),_=N();return Ve(()=>{let{value:e}=_;e&&e.hasAttribute(Cg)&&(e.removeAttribute(Cg),g.value=!0)}),Oe(yg,{layoutShiftDisabledRef:i(e,`layoutShiftDisabled`),isSsrRef:g,itemStyleRef:i(e,`itemStyle`),xGapRef:u,overflowRef:m}),{isSsr:!Pr,contentEl:_,mergedClsPrefix:t,style:V(()=>e.layoutShiftDisabled?{width:`100%`,display:`grid`,gridTemplateColumns:`repeat(${e.cols}, minmax(0, 1fr))`,columnGap:mt(e.xGap),rowGap:mt(e.yGap)}:{width:`100%`,display:`grid`,gridTemplateColumns:`repeat(${l.value}, minmax(0, 1fr))`,columnGap:mt(u.value),rowGap:mt(d.value)}),isResponsive:s,responsiveQuery:c,responsiveCols:l,handleResize:h,overflow:m}},render(){if(this.layoutShiftDisabled)return Dn(`div`,I({ref:`contentEl`,class:`${this.mergedClsPrefix}-grid`,style:this.style},this.$attrs),this.$slots);let e=()=>{this.overflow=!1;let e=hr(Er(this)),t=[],{collapsed:n,collapsedRows:r,responsiveCols:i,responsiveQuery:a}=this;e.forEach(e=>{if(e?.type?.__GRID_ITEM__!==!0)return;if(Jme(e)){let n=At(e);n.props?n.props.privateShow=!1:n.props={privateShow:!1},t.push({child:n,rawChildSpan:0});return}e.dirs=e.dirs?.filter(({dir:e})=>e!==Vt)||null,e.dirs?.length===0&&(e.dirs=null);let n=At(e),r=Number(ns(n.props?.span,a)??1);r!==0&&t.push({child:n,rawChildSpan:r})});let o=0,s=t[t.length-1]?.child;if(s?.props){let e=s.props?.suffix;e!==void 0&&e!==!1&&(o=Number(ns(s.props?.span,a)??1),s.props.privateSpan=o,s.props.privateColStart=i+1-o,s.props.privateShow=s.props.privateShow??!0)}let c=0,l=!1;for(let{child:e,rawChildSpan:s}of t){if(l&&(this.overflow=!0),!l){let t=Number(ns(e.props?.offset,a)??0),u=Math.min(s+t,i);if(e.props?(e.props.privateSpan=u,e.props.privateOffset=t):e.props={privateSpan:u,privateOffset:t},n){let e=c%i;u+e>i&&(c+=i-e),u+c+o>r*i?l=!0:c+=u}}l&&(e.props?e.props.privateShow!==!0&&(e.props.privateShow=!1):e.props={privateShow:!1})}return Dn(`div`,I({ref:`contentEl`,class:`${this.mergedClsPrefix}-grid`,style:this.style,[Cg]:this.isSsr||void 0},this.$attrs),t.map(({child:e})=>e))};return this.isResponsive&&this.responsive===`self`?(L(),W(xt,{key:1,onResize:this.handleResize},{default:e},1032,[`onResize`])):e()}});function Eg(e){let{borderRadius:t,fontSizeMini:n,fontSizeTiny:r,fontSizeSmall:i,fontWeight:a,textColor2:o,cardColor:s,buttonColor2Hover:c}=e;return{activeColors:[`#9be9a8`,`#40c463`,`#30a14e`,`#216e39`],borderRadius:t,borderColor:s,textColor:o,mininumColor:c,fontWeight:a,loadingColorStart:`rgba(0, 0, 0, 0.06)`,loadingColorEnd:`rgba(0, 0, 0, 0.12)`,rectSizeSmall:`10px`,rectSizeMedium:`11px`,rectSizeLarge:`12px`,borderRadiusSmall:`2px`,borderRadiusMedium:`2px`,borderRadiusLarge:`2px`,xGapSmall:`2px`,xGapMedium:`3px`,xGapLarge:`3px`,yGapSmall:`2px`,yGapMedium:`3px`,yGapLarge:`3px`,fontSizeSmall:r,fontSizeMedium:n,fontSizeLarge:i}}var Xme=En({name:`Heatmap`,common:_e,self:Eg});function Dg(e){let{primaryColor:t,baseColor:n}=e;return{color:t,iconColor:n}}var Zme={name:`IconWrapper`,common:_e,self:Dg};function Qme(){return{toolbarIconColor:`rgba(255, 255, 255, .9)`,toolbarColor:`rgba(0, 0, 0, .35)`,toolbarBoxShadow:`none`,toolbarBorderRadius:`24px`}}var $me=En({name:`Image`,common:_e,peers:{Tooltip:tp},self:Qme});function ehe(e){let{baseColor:t,textColor2:n,bodyColor:r,cardColor:i,dividerColor:a,actionColor:o,scrollbarColor:s,scrollbarColorHover:c,invertedColor:l}=e;return{textColor:n,textColorInverted:`#FFF`,color:r,colorEmbedded:o,headerColor:i,headerColorInverted:l,footerColor:o,footerColorInverted:l,headerBorderColor:a,headerBorderColorInverted:l,footerBorderColor:a,footerBorderColorInverted:l,siderBorderColor:a,siderBorderColorInverted:l,siderColor:i,siderColorInverted:l,siderToggleButtonBorder:`1px solid ${a}`,siderToggleButtonColor:t,siderToggleButtonIconColor:n,siderToggleButtonIconColorInverted:n,siderToggleBarColor:Ue(r,s),siderToggleBarColorHover:Ue(r,c),__invertScrollbar:`true`}}var Og=En({name:`Layout`,common:_e,peers:{Scrollbar:Cn},self:ehe}),kg=bn(`n-layout-sider`),Ag={type:String,default:`static`},the=z(`layout`,`
color: var(--n-text-color);
background-color: var(--n-color);
box-sizing: border-box;
position: relative;
z-index: auto;
flex: auto;
overflow: hidden;
transition:
box-shadow .3s var(--n-bezier),
background-color .3s var(--n-bezier),
color .3s var(--n-bezier);
`,[z(`layout-scroll-container`,`
overflow-x: hidden;
box-sizing: border-box;
height: 100%;
`),B(`absolute-positioned`,`
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
`)]),nhe={embedded:Boolean,position:Ag,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentClass:String,contentStyle:{type:[String,Object],default:``},hasSider:Boolean,siderPlacement:{type:String,default:`left`}},jg=bn(`n-layout`);function Mg(t){return Y({name:t?`LayoutContent`:`Layout`,props:{...$e.props,...nhe},setup(e){let t=N(null),n=N(null),{mergedClsPrefixRef:r,inlineThemeDisabled:i}=mn(e),a=$e(`Layout`,`-layout`,the,Og,e,r);function o(r,i){if(e.nativeScrollbar){let{value:e}=t;e&&(i===void 0?e.scrollTo(r):e.scrollTo(r,i))}else{let{value:e}=n;e&&e.scrollTo(r,i)}}Oe(jg,e);let s=0,c=0,l=t=>{let n=t.target;s=n.scrollLeft,c=n.scrollTop,e.onScroll?.(t)};Yt(()=>{if(e.nativeScrollbar){let e=t.value;e&&(e.scrollTop=c,e.scrollLeft=s)}});let u={display:`flex`,flexWrap:`nowrap`,width:`100%`,flexDirection:`row`},d={scrollTo:o},f=V(()=>{let{common:{cubicBezierEaseInOut:t},self:n}=a.value;return{"--n-bezier":t,"--n-color":e.embedded?n.colorEmbedded:n.color,"--n-text-color":n.textColor}}),p=i?fe(`layout`,V(()=>e.embedded?`e`:``),f,e):void 0;return{mergedClsPrefix:r,scrollableElRef:t,scrollbarInstRef:n,hasSiderStyle:u,mergedTheme:a,handleNativeElScroll:l,cssVars:i?void 0:f,themeClass:p?.themeClass,onRender:p?.onRender,...d}},render(){let{mergedClsPrefix:n,hasSider:r}=this;this.onRender?.();let i=r?this.hasSiderStyle:void 0,a=[this.themeClass,t&&`${n}-layout-content`,`${n}-layout`,`${n}-layout--${this.position}-positioned`];return L(),H(`div`,{class:P(a),style:e(this.cssVars)},[this.nativeScrollbar?(L(),H(`div`,{key:0,ref:`scrollableElRef`,class:P([`${n}-layout-scroll-container`,this.contentClass]),style:e([this.contentStyle,i]),onScroll:this.handleNativeElScroll},[G(()=>this.$slots.default?.())],46,[`onScroll`])):(L(),W(ln,I({key:1},this.scrollbarProps,{onScroll:this.onScroll,ref:`scrollbarInstRef`,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:this.contentClass,contentStyle:[this.contentStyle,i]}),_n(this.$slots),1040,[`onScroll`,`theme`,`themeOverrides`,`contentClass`,`contentStyle`]))],6)}})}var rhe=Mg(!1),Ng=Mg(!0),ihe=z(`layout-header`,`
transition:
color .3s var(--n-bezier),
background-color .3s var(--n-bezier),
box-shadow .3s var(--n-bezier),
border-color .3s var(--n-bezier);
box-sizing: border-box;
width: 100%;
background-color: var(--n-color);
color: var(--n-text-color);
`,[B(`absolute-positioned`,`
position: absolute;
left: 0;
right: 0;
top: 0;
`),B(`bordered`,`
border-bottom: solid 1px var(--n-border-color);
`)]),ahe={position:Ag,inverted:Boolean,bordered:Boolean},Pg=Y({name:`LayoutHeader`,props:{...$e.props,...ahe},setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:n}=mn(e),r=$e(`Layout`,`-layout-header`,ihe,Og,e,t),i=V(()=>{let{common:{cubicBezierEaseInOut:t},self:n}=r.value,i={"--n-bezier":t};return e.inverted?(i[`--n-color`]=n.headerColorInverted,i[`--n-text-color`]=n.textColorInverted,i[`--n-border-color`]=n.headerBorderColorInverted):(i[`--n-color`]=n.headerColor,i[`--n-text-color`]=n.textColor,i[`--n-border-color`]=n.headerBorderColor),i}),a=n?fe(`layout-header`,V(()=>e.inverted?`a`:`b`),i,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:i,themeClass:a?.themeClass,onRender:a?.onRender}},render(){let{mergedClsPrefix:t}=this;return this.onRender?.(),L(),H(`div`,{class:P([`${t}-layout-header`,this.themeClass,this.position&&`${t}-layout-header--${this.position}-positioned`,this.bordered&&`${t}-layout-header--bordered`]),style:e(this.cssVars)},[G(()=>this.$slots.default?.())],6)}}),ohe=z(`layout-sider`,`
flex-shrink: 0;
box-sizing: border-box;
position: relative;
z-index: 1;
color: var(--n-text-color);
transition:
color .3s var(--n-bezier),
border-color .3s var(--n-bezier),
min-width .3s var(--n-bezier),
max-width .3s var(--n-bezier),
transform .3s var(--n-bezier),
background-color .3s var(--n-bezier);
background-color: var(--n-color);
display: flex;
justify-content: flex-end;
`,[B(`bordered`,[X(`border`,`
content: "";
position: absolute;
top: 0;
bottom: 0;
width: 1px;
background-color: var(--n-border-color);
transition: background-color .3s var(--n-bezier);
`)]),X(`left-placement`,[B(`bordered`,[X(`border`,`
right: 0;
`)])]),B(`right-placement`,`
justify-content: flex-start;
`,[B(`bordered`,[X(`border`,`
left: 0;
`)]),B(`collapsed`,[z(`layout-toggle-button`,[z(`base-icon`,`
transform: rotate(180deg);
`)]),z(`layout-toggle-bar`,[U(`&:hover`,[X(`top`,{transform:`rotate(-12deg) scale(1.15) translateY(-2px)`}),X(`bottom`,{transform:`rotate(12deg) scale(1.15) translateY(2px)`})])])]),z(`layout-toggle-button`,`
left: 0;
transform: translateX(-50%) translateY(-50%);
`,[z(`base-icon`,`
transform: rotate(0);
`)]),z(`layout-toggle-bar`,`
left: -28px;
transform: rotate(180deg);
`,[U(`&:hover`,[X(`top`,{transform:`rotate(12deg) scale(1.15) translateY(-2px)`}),X(`bottom`,{transform:`rotate(-12deg) scale(1.15) translateY(2px)`})])])]),B(`collapsed`,[z(`layout-toggle-bar`,[U(`&:hover`,[X(`top`,{transform:`rotate(-12deg) scale(1.15) translateY(-2px)`}),X(`bottom`,{transform:`rotate(12deg) scale(1.15) translateY(2px)`})])]),z(`layout-toggle-button`,[z(`base-icon`,`
transform: rotate(0);
`)])]),z(`layout-toggle-button`,`
transition:
color .3s var(--n-bezier),
right .3s var(--n-bezier),
left .3s var(--n-bezier),
border-color .3s var(--n-bezier),
background-color .3s var(--n-bezier);
cursor: pointer;
width: 24px;
height: 24px;
position: absolute;
top: 50%;
right: 0;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
color: var(--n-toggle-button-icon-color);
border: var(--n-toggle-button-border);
background-color: var(--n-toggle-button-color);
box-shadow: 0 2px 4px 0px rgba(0, 0, 0, .06);
transform: translateX(50%) translateY(-50%);
z-index: 1;
`,[z(`base-icon`,`
transition: transform .3s var(--n-bezier);
transform: rotate(180deg);
`)]),z(`layout-toggle-bar`,`
cursor: pointer;
height: 72px;
width: 32px;
position: absolute;
top: calc(50% - 36px);
right: -28px;
`,[X(`top, bottom`,`
position: absolute;
width: 4px;
border-radius: 2px;
height: 38px;
left: 14px;
transition:
background-color .3s var(--n-bezier),
transform .3s var(--n-bezier);
`),X(`bottom`,`
position: absolute;
top: 34px;
`),U(`&:hover`,[X(`top`,{transform:`rotate(12deg) scale(1.15) translateY(-2px)`}),X(`bottom`,{transform:`rotate(-12deg) scale(1.15) translateY(2px)`})]),X(`top, bottom`,{backgroundColor:`var(--n-toggle-bar-color)`}),U(`&:hover`,[X(`top, bottom`,{backgroundColor:`var(--n-toggle-bar-color-hover)`})])]),X(`border`,`
position: absolute;
top: 0;
right: 0;
bottom: 0;
width: 1px;
transition: background-color .3s var(--n-bezier);
`),z(`layout-sider-scroll-container`,`
flex-grow: 1;
flex-shrink: 0;
box-sizing: border-box;
height: 100%;
opacity: 0;
transition: opacity .3s var(--n-bezier);
max-width: 100%;
`),B(`show-content`,[z(`layout-sider-scroll-container`,{opacity:1})]),B(`absolute-positioned`,`
position: absolute;
left: 0;
top: 0;
bottom: 0;
`)]),she=[`onClick`],che=Y({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){let{clsPrefix:e}=this;return L(),H(`div`,{onClick:this.onClick,class:P(`${e}-layout-toggle-bar`)},[q(`div`,{class:P(`${e}-layout-toggle-bar__top`)},null,2),q(`div`,{class:P(`${e}-layout-toggle-bar__bottom`)},null,2)],10,she)}}),lhe=[`onClick`],uhe=Y({name:`LayoutToggleButton`,props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){let{clsPrefix:e}=this;return L(),H(`div`,{class:P(`${e}-layout-toggle-button`),onClick:this.onClick},[(L(),W(wt,{clsPrefix:e},{default:()=>(L(),W(eu))},1032,[`clsPrefix`]))],10,lhe)}}),dhe=[`onTransitionend`],fhe={position:Ag,bordered:Boolean,collapsedWidth:{type:Number,default:48},width:{type:[Number,String],default:272},contentClass:String,contentStyle:{type:[String,Object],default:``},collapseMode:{type:String,default:`transform`},collapsed:{type:Boolean,default:void 0},defaultCollapsed:Boolean,showCollapsedContent:{type:Boolean,default:!0},showTrigger:{type:[Boolean,String],default:!1},nativeScrollbar:{type:Boolean,default:!0},inverted:Boolean,scrollbarProps:Object,triggerClass:String,triggerStyle:[String,Object],collapsedTriggerClass:String,collapsedTriggerStyle:[String,Object],"onUpdate:collapsed":[Function,Array],onUpdateCollapsed:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,onExpand:[Function,Array],onCollapse:[Function,Array],onScroll:Function},phe=Y({name:`LayoutSider`,props:{...$e.props,...fhe},setup(e){let t=pe(jg),n=N(null),r=N(null),a=N(e.defaultCollapsed),o=lr(i(e,`collapsed`),a),s=V(()=>pr(o.value?e.collapsedWidth:e.width)),c=V(()=>e.collapseMode===`transform`?{minWidth:pr(e.width)}:{}),l=V(()=>t?t.siderPlacement:`left`);function u(t,i){if(e.nativeScrollbar){let{value:e}=n;e&&(i===void 0?e.scrollTo(t):e.scrollTo(t,i))}else{let{value:e}=r;e&&e.scrollTo(t,i)}}function d(){let{"onUpdate:collapsed":t,onUpdateCollapsed:n,onExpand:r,onCollapse:i}=e,{value:s}=o;n&&R(n,!s),t&&R(t,!s),a.value=!s,s?r&&R(r):i&&R(i)}let f=0,p=0,m=t=>{let n=t.target;f=n.scrollLeft,p=n.scrollTop,e.onScroll?.(t)};Yt(()=>{if(e.nativeScrollbar){let e=n.value;e&&(e.scrollTop=p,e.scrollLeft=f)}}),Oe(kg,{collapsedRef:o,collapseModeRef:i(e,`collapseMode`)});let{mergedClsPrefixRef:h,inlineThemeDisabled:g}=mn(e),_=$e(`Layout`,`-layout-sider`,ohe,Og,e,h);function v(t){t.propertyName===`max-width`&&(o.value?e.onAfterLeave?.():e.onAfterEnter?.())}let y={scrollTo:u},b=V(()=>{let{common:{cubicBezierEaseInOut:t},self:n}=_.value,{siderToggleButtonColor:r,siderToggleButtonBorder:i,siderToggleBarColor:a,siderToggleBarColorHover:o}=n,s={"--n-bezier":t,"--n-toggle-button-color":r,"--n-toggle-button-border":i,"--n-toggle-bar-color":a,"--n-toggle-bar-color-hover":o};return e.inverted?(s[`--n-color`]=n.siderColorInverted,s[`--n-text-color`]=n.textColorInverted,s[`--n-border-color`]=n.siderBorderColorInverted,s[`--n-toggle-button-icon-color`]=n.siderToggleButtonIconColorInverted,s.__invertScrollbar=n.__invertScrollbar):(s[`--n-color`]=n.siderColor,s[`--n-text-color`]=n.textColor,s[`--n-border-color`]=n.siderBorderColor,s[`--n-toggle-button-icon-color`]=n.siderToggleButtonIconColor),s}),x=g?fe(`layout-sider`,V(()=>e.inverted?`a`:`b`),b,e):void 0;return{scrollableElRef:n,scrollbarInstRef:r,mergedClsPrefix:h,mergedTheme:_,styleMaxWidth:s,mergedCollapsed:o,scrollContainerStyle:c,siderPlacement:l,handleNativeElScroll:m,handleTransitionend:v,handleTriggerClick:d,inlineThemeDisabled:g,cssVars:b,themeClass:x?.themeClass,onRender:x?.onRender,...y}},render(){let{mergedClsPrefix:t,mergedCollapsed:n,showTrigger:r}=this;return this.onRender?.(),L(),H(`aside`,{class:P([`${t}-layout-sider`,this.themeClass,`${t}-layout-sider--${this.position}-positioned`,`${t}-layout-sider--${this.siderPlacement}-placement`,this.bordered&&`${t}-layout-sider--bordered`,n&&`${t}-layout-sider--collapsed`,(!n||this.showCollapsedContent)&&`${t}-layout-sider--show-content`]),onTransitionend:this.handleTransitionend,style:e([this.inlineThemeDisabled?void 0:this.cssVars,{maxWidth:this.styleMaxWidth,width:pr(this.width)}])},[this.nativeScrollbar?(L(),H(`div`,{key:1,class:P([`${t}-layout-sider-scroll-container`,this.contentClass]),onScroll:this.handleNativeElScroll,style:e([this.scrollContainerStyle,{overflow:`auto`},this.contentStyle]),ref:`scrollableElRef`},[G(()=>this.$slots.default?.())],46,[`onScroll`])):(L(),W(ln,I({key:0},this.scrollbarProps,{onScroll:this.onScroll,ref:`scrollbarInstRef`,style:this.scrollContainerStyle,contentStyle:this.contentStyle,contentClass:this.contentClass,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,builtinThemeOverrides:this.inverted&&this.cssVars.__invertScrollbar===`true`?{colorHover:`rgba(255, 255, 255, .4)`,color:`rgba(255, 255, 255, .3)`}:void 0}),_n(this.$slots),1040,[`onScroll`,`style`,`contentStyle`,`contentClass`,`theme`,`themeOverrides`,`builtinThemeOverrides`])),r?(L(),H(K,{key:2},[r===`bar`?(L(),W(che,{key:0,clsPrefix:t,class:P(n?this.collapsedTriggerClass:this.triggerClass),style:e(n?this.collapsedTriggerStyle:this.triggerStyle),onClick:this.handleTriggerClick},null,8,[`clsPrefix`,`class`,`style`,`onClick`])):(L(),W(uhe,{key:1,clsPrefix:t,class:P(n?this.collapsedTriggerClass:this.triggerClass),style:e(n?this.collapsedTriggerStyle:this.triggerStyle),onClick:this.handleTriggerClick},null,8,[`clsPrefix`,`class`,`style`,`onClick`]))],64)):G(()=>null),this.bordered?(L(),H(`div`,{key:4,class:P(`${t}-layout-sider__border`)},null,2)):G(()=>null)],46,dhe)}}),Fg={extraFontSize:`12px`,width:`440px`};function mhe(e){let{fontWeight:t,iconColorDisabled:n,iconColor:r,fontSizeLarge:i,fontSizeMedium:a,fontSizeSmall:o,heightLarge:s,heightMedium:c,heightSmall:l,borderRadius:u,cardColor:d,tableHeaderColor:f,textColor1:p,textColorDisabled:m,textColor2:h,borderColor:g,hoverColor:_}=e;return{...Fg,itemHeightSmall:l,itemHeightMedium:c,itemHeightLarge:s,fontSizeSmall:o,fontSizeMedium:a,fontSizeLarge:i,borderRadius:u,borderColor:g,listColor:d,headerColor:Ue(d,f),titleTextColor:p,titleTextColorDisabled:m,extraTextColor:h,filterDividerColor:g,itemTextColor:h,itemTextColorDisabled:m,itemColorPending:_,titleFontWeight:t,iconColor:r,iconColorDisabled:n}}var hhe=En({name:`Transfer`,common:_e,peers:{Checkbox:Vd,Scrollbar:Cn,Input:Sr,Empty:ls,Button:xr},self:mhe});function ghe(e){let{textColor2:t,modalColor:n,borderColor:r,fontSize:i,primaryColor:a}=e;return{loaderFontSize:i,loaderTextColor:t,loaderColor:n,loaderBorder:`1px solid ${r}`,loadingColor:a}}var _he=En({name:`Log`,common:_e,peers:{Scrollbar:Cn,Code:rf},self:ghe});function Ig(){return{}}var vhe={name:`Marquee`,common:_e,self:Ig};function yhe(e){let{boxShadow2:t}=e;return{menuBoxShadow:t}}var bhe=En({name:`Mention`,common:_e,peers:{InternalSelectMenu:ps,Input:Sr},self:yhe}),Lg=bn(`n-menu`),Rg=bn(`n-submenu`),zg=bn(`n-menu-item-group`),Bg=[U(`&::before`,`background-color: var(--n-item-color-hover);`),X(`arrow`,`
color: var(--n-arrow-color-hover);
`),X(`icon`,`
color: var(--n-item-icon-color-hover);
`),z(`menu-item-content-header`,`
color: var(--n-item-text-color-hover);
`,[U(`a`,`
color: var(--n-item-text-color-hover);
`),X(`extra`,`
color: var(--n-item-text-color-hover);
`)])],Vg=[X(`icon`,`
color: var(--n-item-icon-color-hover-horizontal);
`),z(`menu-item-content-header`,`
color: var(--n-item-text-color-hover-horizontal);
`,[U(`a`,`
color: var(--n-item-text-color-hover-horizontal);
`),X(`extra`,`
color: var(--n-item-text-color-hover-horizontal);
`)])],xhe=U([z(`menu`,`
background-color: var(--n-color);
color: var(--n-item-text-color);
overflow: hidden;
transition: background-color .3s var(--n-bezier);
box-sizing: border-box;
font-size: var(--n-font-size);
padding-bottom: 6px;
`,[B(`horizontal`,`
max-width: 100%;
width: 100%;
display: flex;
overflow: hidden;
padding-bottom: 0;
`,[z(`submenu`,`margin: 0;`),z(`menu-item`,`margin: 0;`),z(`menu-item-content`,`
padding: 0 20px;
border-bottom: 2px solid #0000;
`,[U(`&::before`,`display: none;`),B(`selected`,`border-bottom: 2px solid var(--n-border-color-horizontal)`)]),z(`menu-item-content`,[B(`selected`,[X(`icon`,`color: var(--n-item-icon-color-active-horizontal);`),z(`menu-item-content-header`,`
color: var(--n-item-text-color-active-horizontal);
`,[U(`a`,`color: var(--n-item-text-color-active-horizontal);`),X(`extra`,`color: var(--n-item-text-color-active-horizontal);`)])]),B(`child-active`,`
border-bottom: 2px solid var(--n-border-color-horizontal);
`,[z(`menu-item-content-header`,`
color: var(--n-item-text-color-child-active-horizontal);
`,[U(`a`,`
color: var(--n-item-text-color-child-active-horizontal);
`),X(`extra`,`
color: var(--n-item-text-color-child-active-horizontal);
`)]),X(`icon`,`
color: var(--n-item-icon-color-child-active-horizontal);
`)]),On(`disabled`,[On(`selected, child-active`,[U(`&:focus-within`,Vg)]),B(`selected`,[Hg(null,[X(`icon`,`color: var(--n-item-icon-color-active-hover-horizontal);`),z(`menu-item-content-header`,`
color: var(--n-item-text-color-active-hover-horizontal);
`,[U(`a`,`color: var(--n-item-text-color-active-hover-horizontal);`),X(`extra`,`color: var(--n-item-text-color-active-hover-horizontal);`)])])]),B(`child-active`,[Hg(null,[X(`icon`,`color: var(--n-item-icon-color-child-active-hover-horizontal);`),z(`menu-item-content-header`,`
color: var(--n-item-text-color-child-active-hover-horizontal);
`,[U(`a`,`color: var(--n-item-text-color-child-active-hover-horizontal);`),X(`extra`,`color: var(--n-item-text-color-child-active-hover-horizontal);`)])])]),Hg(`border-bottom: 2px solid var(--n-border-color-horizontal);`,Vg)]),z(`menu-item-content-header`,[U(`a`,`color: var(--n-item-text-color-horizontal);`)])])]),On(`responsive`,[z(`menu-item-content-header`,`
overflow: hidden;
text-overflow: ellipsis;
`)]),B(`collapsed`,[z(`menu-item-content`,[B(`selected`,[U(`&::before`,`
background-color: var(--n-item-color-active-collapsed) !important;
`)]),z(`menu-item-content-header`,`opacity: 0;`),X(`arrow`,`opacity: 0;`),X(`icon`,`color: var(--n-item-icon-color-collapsed);`)])]),z(`menu-item`,`
height: var(--n-item-height);
margin-top: 6px;
position: relative;
`),z(`menu-item-content`,`
box-sizing: border-box;
line-height: 1.75;
height: 100%;
display: grid;
grid-template-areas: "icon content arrow";
grid-template-columns: auto 1fr auto;
align-items: center;
cursor: pointer;
position: relative;
padding-right: 18px;
transition:
background-color .3s var(--n-bezier),
padding-left .3s var(--n-bezier),
border-color .3s var(--n-bezier);
`,[U(`> *`,`z-index: 1;`),U(`&::before`,`
z-index: auto;
content: "";
background-color: #0000;
position: absolute;
left: 8px;
right: 8px;
top: 0;
bottom: 0;
pointer-events: none;
border-radius: var(--n-border-radius);
transition: background-color .3s var(--n-bezier);
`),B(`disabled`,`
opacity: .45;
cursor: not-allowed;
`),B(`collapsed`,[X(`arrow`,`transform: rotate(0);`)]),B(`selected`,[U(`&::before`,`background-color: var(--n-item-color-active);`),X(`arrow`,`color: var(--n-arrow-color-active);`),X(`icon`,`color: var(--n-item-icon-color-active);`),z(`menu-item-content-header`,`
color: var(--n-item-text-color-active);
`,[U(`a`,`color: var(--n-item-text-color-active);`),X(`extra`,`color: var(--n-item-text-color-active);`)])]),B(`child-active`,[z(`menu-item-content-header`,`
color: var(--n-item-text-color-child-active);
`,[U(`a`,`
color: var(--n-item-text-color-child-active);
`),X(`extra`,`
color: var(--n-item-text-color-child-active);
`)]),X(`arrow`,`
color: var(--n-arrow-color-child-active);
`),X(`icon`,`
color: var(--n-item-icon-color-child-active);
`)]),On(`disabled`,[On(`selected, child-active`,[U(`&:focus-within`,Bg)]),B(`selected`,[Hg(null,[X(`arrow`,`color: var(--n-arrow-color-active-hover);`),X(`icon`,`color: var(--n-item-icon-color-active-hover);`),z(`menu-item-content-header`,`
color: var(--n-item-text-color-active-hover);
`,[U(`a`,`color: var(--n-item-text-color-active-hover);`),X(`extra`,`color: var(--n-item-text-color-active-hover);`)])])]),B(`child-active`,[Hg(null,[X(`arrow`,`color: var(--n-arrow-color-child-active-hover);`),X(`icon`,`color: var(--n-item-icon-color-child-active-hover);`),z(`menu-item-content-header`,`
color: var(--n-item-text-color-child-active-hover);
`,[U(`a`,`color: var(--n-item-text-color-child-active-hover);`),X(`extra`,`color: var(--n-item-text-color-child-active-hover);`)])])]),B(`selected`,[Hg(null,[U(`&::before`,`background-color: var(--n-item-color-active-hover);`)])]),Hg(null,Bg)]),X(`icon`,`
grid-area: icon;
color: var(--n-item-icon-color);
transition:
color .3s var(--n-bezier),
font-size .3s var(--n-bezier),
margin-right .3s var(--n-bezier);
box-sizing: content-box;
display: inline-flex;
align-items: center;
justify-content: center;
`),X(`arrow`,`
grid-area: arrow;
font-size: 16px;
color: var(--n-arrow-color);
transform: rotate(180deg);
opacity: 1;
transition:
color .3s var(--n-bezier),
transform 0.2s var(--n-bezier),
opacity 0.2s var(--n-bezier);
`),z(`menu-item-content-header`,`
grid-area: content;
transition:
color .3s var(--n-bezier),
opacity .3s var(--n-bezier);
opacity: 1;
white-space: nowrap;
color: var(--n-item-text-color);
`,[U(`a`,`
outline: none;
text-decoration: none;
transition: color .3s var(--n-bezier);
color: var(--n-item-text-color);
`,[U(`&::before`,`
content: "";
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
`)]),X(`extra`,`
font-size: .93em;
color: var(--n-group-text-color);
transition: color .3s var(--n-bezier);
`)])]),z(`submenu`,`
cursor: pointer;
position: relative;
margin-top: 6px;
`,[z(`menu-item-content`,`
height: var(--n-item-height);
`),z(`submenu-children`,`
overflow: hidden;
padding: 0;
`,[nr({duration:`.2s`})])]),z(`menu-item-group`,[z(`menu-item-group-title`,`
margin-top: 6px;
color: var(--n-group-text-color);
cursor: default;
font-size: .93em;
height: 36px;
display: flex;
align-items: center;
transition:
padding-left .3s var(--n-bezier),
color .3s var(--n-bezier);
`)])]),z(`menu-tooltip`,[U(`a`,`
color: inherit;
text-decoration: none;
`)]),z(`menu-divider`,`
transition: background-color .3s var(--n-bezier);
background-color: var(--n-divider-color);
height: 1px;
margin: 6px 18px;
`)]);function Hg(e,t){return[B(`hover`,e,t),U(`&:hover`,e,t)]}var She=Y({name:`MenuDivider`,setup(){let{mergedClsPrefixRef:e,isHorizontalRef:t}=pe(Lg);return()=>t.value?null:(L(),H(`div`,{key:1,class:P(`${e.value}-menu-divider`)},null,2))}}),Che=Y({name:`ChevronDownFilled`,render(){return(()=>{let e=Ye(`f3af82a2aab086a5`);return e[0]||=q(`svg`,{viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},[q(`path`,{d:`M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z`,fill:`currentColor`})],-1)})()}}),whe=[`onClick`],Ug=Y({name:`MenuOptionContent`,props:{collapsed:Boolean,disabled:Boolean,title:[String,Function],icon:Function,extra:[String,Function],showArrow:Boolean,childActive:Boolean,hover:Boolean,paddingLeft:Number,selected:Boolean,maxIconSize:{type:Number,required:!0},activeIconSize:{type:Number,required:!0},iconMarginRight:{type:Number,required:!0},clsPrefix:{type:String,required:!0},onClick:Function,tmNode:{type:Object,required:!0},isEllipsisPlaceholder:Boolean},setup(e){let{props:t}=pe(Lg);return{menuProps:t,style:V(()=>{let{paddingLeft:t}=e;return{paddingLeft:t&&`${t}px`}}),iconStyle:V(()=>{let{maxIconSize:t,activeIconSize:n,iconMarginRight:r}=e;return{width:`${t}px`,height:`${t}px`,fontSize:`${n}px`,marginRight:`${r}px`}})}},render(){let{clsPrefix:t,tmNode:n,menuProps:{renderIcon:r,renderLabel:i,renderExtra:a,expandIcon:o}}=this,s=r?r(n.rawNode):ol(this.icon);return(()=>{let r=Ye(`7bb10afc6caf8fa4`);return L(),H(`div`,{onClick:e=>{this.onClick?.(e)},role:`none`,class:P([`${t}-menu-item-content`,{[`${t}-menu-item-content--selected`]:this.selected,[`${t}-menu-item-content--collapsed`]:this.collapsed,[`${t}-menu-item-content--child-active`]:this.childActive,[`${t}-menu-item-content--disabled`]:this.disabled,[`${t}-menu-item-content--hover`]:this.hover}]),style:e(this.style)},[G(()=>s&&(L(),H(`div`,{class:P(`${t}-menu-item-content__icon`),style:e(this.iconStyle),role:`none`},[G(()=>[s])],6))),q(`div`,{class:P(`${t}-menu-item-content-header`),role:`none`},[this.isEllipsisPlaceholder?(L(),H(K,{key:0},[G(()=>this.title)],64)):(L(),H(K,{key:1},[i?(L(),H(K,{key:0},[G(()=>i(n.rawNode))],64)):(L(),H(K,{key:1},[G(()=>ol(this.title))],64))],64)),this.extra||a?(L(),H(`span`,{key:2,class:P(`${t}-menu-item-content-header__extra`)},[r[0]||=G(` `,-1),a?(L(),H(K,{key:0},[G(()=>a(n.rawNode))],64)):(L(),H(K,{key:1},[G(()=>ol(this.extra))],64))],2)):G(()=>null)],2),this.showArrow?(L(),W(wt,{key:0,ariaHidden:!0,class:P(`${t}-menu-item-content__arrow`),clsPrefix:t},{default:()=>o?o(n.rawNode):(L(),W(Che,{key:1}))},1032,[`class`,`clsPrefix`])):G(()=>null)],14,whe)})()}}),Wg=8;function Gg(e){let t=pe(Lg),{props:n,mergedCollapsedRef:r}=t,i=pe(Rg,null),a=pe(zg,null),o=V(()=>n.mode===`horizontal`),s=V(()=>o.value?n.dropdownPlacement:`tmNodes`in e?`right-start`:`right`),c=V(()=>Math.max(n.collapsedIconSize??n.iconSize,n.iconSize));return{dropdownPlacement:s,activeIconSize:V(()=>!o.value&&e.root&&r.value?n.collapsedIconSize??n.iconSize:n.iconSize),maxIconSize:c,paddingLeft:V(()=>{if(o.value)return;let{collapsedWidth:t,indent:s,rootIndent:l}=n,{root:u,isGroup:d}=e,f=l===void 0?s:l;return u?r.value?t/2-c.value/2:f:a&&typeof a.paddingLeftRef.value==`number`?r.value?t/2-c.value/2:s/2+a.paddingLeftRef.value:i&&typeof i.paddingLeftRef.value==`number`?(d?s/2:s)+i.paddingLeftRef.value:0}),iconMarginRight:V(()=>{let{collapsedWidth:t,indent:i,rootIndent:a}=n,{value:s}=c,{root:l}=e;return o.value||!l||!r.value?Wg:(a===void 0?i:a)+s+Wg-(t+s)/2}),NMenu:t,NSubmenu:i,NMenuOptionGroup:a}}var Kg={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},qg={...Kg,tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function},The=jt(qg),Ehe=Y({name:`MenuOption`,props:qg,setup(e){let t=Gg(e),{NSubmenu:n,NMenu:r,NMenuOptionGroup:i}=t,{props:a,mergedClsPrefixRef:o,mergedCollapsedRef:s}=r,c=n?n.mergedDisabledRef:i?i.mergedDisabledRef:{value:!1},l=V(()=>c.value||e.disabled);function u(t){let{onClick:n}=e;n&&n(t)}function d(t){l.value||(r.doSelect(e.internalKey,e.tmNode.rawNode),u(t))}return{mergedClsPrefix:o,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:r.mergedThemeRef,menuProps:a,dropdownEnabled:dr(()=>e.root&&s.value&&a.mode!==`horizontal`&&!l.value),selected:dr(()=>r.mergedValueRef.value===e.internalKey),mergedDisabled:l,handleClick:d}},render(){let{mergedClsPrefix:e,mergedTheme:t,tmNode:n,menuProps:{renderLabel:r,nodeProps:i}}=this,a=i?.(n.rawNode);return L(),H(`div`,I(a,{role:`menuitem`,class:[`${e}-menu-item`,a?.class]}),[(L(),W(mp,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:`hover`,placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:[`menu-tooltip`]},{default:()=>r?r(n.rawNode):ol(this.title),trigger:()=>(L(),W(Ug,{tmNode:n,clsPrefix:e,paddingLeft:this.paddingLeft,iconMarginRight:this.iconMarginRight,maxIconSize:this.maxIconSize,activeIconSize:this.activeIconSize,selected:this.selected,title:this.title,extra:this.extra,disabled:this.mergedDisabled,icon:this.icon,onClick:this.handleClick},null,8,[`tmNode`,`clsPrefix`,`paddingLeft`,`iconMarginRight`,`maxIconSize`,`activeIconSize`,`selected`,`title`,`extra`,`disabled`,`icon`,`onClick`]))},1032,[`theme`,`themeOverrides`,`placement`,`disabled`]))],16)}}),Jg={...Kg,tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}},Dhe=jt(Jg),Ohe=Y({name:`MenuOptionGroup`,props:Jg,setup(e){let t=Gg(e),{NSubmenu:n}=t,r=V(()=>n?.mergedDisabledRef.value?!0:e.tmNode.disabled);Oe(zg,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:r});let{mergedClsPrefixRef:i,props:a}=pe(Lg);return function(){let{value:n}=i,r=t.paddingLeft.value,{nodeProps:o}=a,s=o?.(e.tmNode.rawNode);return(()=>{let t=Ye(`45eca6a63be5028b`);return L(),H(`div`,{class:P(`${n}-menu-item-group`),role:`group`},[q(`div`,I(s,{class:[`${n}-menu-item-group-title`,s?.class],style:[s?.style||``,r===void 0?``:`padding-left: ${r}px;`]}),[G(()=>ol(e.title)),e.extra?(L(),H(K,{key:0},[t[0]||=G(` `,-1),G(()=>ol(e.extra))],64)):G(()=>null)],16),q(`div`,null,[G(()=>e.tmNodes.map(e=>Qg(e,a)))])],2)})()}}}),khe=[`aria-expanded`,`id`],Ahe=[`aria-expanded`,`id`],Yg={...Kg,rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function,domId:String,virtualChildActive:{type:Boolean,default:void 0},isEllipsisPlaceholder:Boolean},jhe=jt(Yg),Xg=Y({name:`Submenu`,props:Yg,setup(e){let t=Gg(e),{NMenu:n,NSubmenu:r}=t,{props:i,mergedCollapsedRef:a,mergedThemeRef:o}=n,s=V(()=>{let{disabled:t}=e;return r?.mergedDisabledRef.value||i.disabled?!0:t}),c=N(!1);Oe(Rg,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:s}),Oe(zg,null);function l(){let{onClick:t}=e;t&&t()}function u(){s.value||(a.value||n.toggleExpand(e.internalKey),l())}function d(e){c.value=e}return{menuProps:i,mergedTheme:o,doSelect:n.doSelect,inverted:n.invertedRef,isHorizontal:n.isHorizontalRef,mergedClsPrefix:n.mergedClsPrefixRef,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,iconMarginRight:t.iconMarginRight,dropdownPlacement:t.dropdownPlacement,dropdownShow:c,paddingLeft:t.paddingLeft,mergedDisabled:s,mergedValue:n.mergedValueRef,childActive:dr(()=>e.virtualChildActive??n.activePathRef.value.includes(e.internalKey)),collapsed:V(()=>i.mode===`horizontal`?!1:a.value?!0:!n.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:V(()=>!s.value&&(i.mode===`horizontal`||a.value)),handlePopoverShowChange:d,handleClick:u}},render(){let{mergedClsPrefix:e,menuProps:{renderIcon:t,renderLabel:n}}=this,r=()=>{let{isHorizontal:e,paddingLeft:t,collapsed:n,mergedDisabled:r,maxIconSize:i,activeIconSize:a,title:o,childActive:s,icon:c,handleClick:l,menuProps:{nodeProps:u},dropdownShow:d,iconMarginRight:f,tmNode:p,mergedClsPrefix:m,isEllipsisPlaceholder:h,extra:g}=this,_=u?.(p.rawNode);return L(),H(`div`,I(_,{class:[`${m}-menu-item`,_?.class],role:`menuitem`}),[(L(),W(Ug,{tmNode:p,paddingLeft:t,collapsed:n,disabled:r,iconMarginRight:f,maxIconSize:i,activeIconSize:a,title:o,extra:g,showArrow:!e,childActive:s,clsPrefix:m,icon:c,hover:d,onClick:l,isEllipsisPlaceholder:h},null,8,[`tmNode`,`paddingLeft`,`collapsed`,`disabled`,`iconMarginRight`,`maxIconSize`,`activeIconSize`,`title`,`extra`,`showArrow`,`childActive`,`clsPrefix`,`icon`,`hover`,`onClick`,`isEllipsisPlaceholder`]))],16)},i=()=>(L(),W(Tr,null,{default:()=>{let{tmNodes:t,collapsed:n}=this;return n?null:(L(),H(`div`,{key:1,class:P(`${e}-submenu-children`),role:`menu`},[G(()=>t.map(e=>Qg(e,this.menuProps)))],2))}},1024));return this.root?(L(),W(jp,I({key:2,size:`large`,trigger:`hover`},this.menuProps?.dropdownProps,{themeOverrides:this.mergedTheme.peerOverrides.Dropdown,theme:this.mergedTheme.peers.Dropdown,builtinThemeOverrides:{fontSizeLarge:`14px`,optionIconSizeLarge:`18px`},value:this.mergedValue,disabled:!this.dropdownEnabled,placement:this.dropdownPlacement,keyField:this.menuProps.keyField,labelField:this.menuProps.labelField,childrenField:this.menuProps.childrenField,onUpdateShow:this.handlePopoverShowChange,options:this.rawNodes,onSelect:this.doSelect,inverted:this.inverted,renderIcon:t,renderLabel:n}),{default:()=>(L(),H(`div`,{class:P(`${e}-submenu`),role:`menu`,"aria-expanded":!this.collapsed,id:this.domId},[G(()=>r()),this.isHorizontal?G(()=>null):(L(),H(K,{key:1},[G(()=>i())],64))],10,khe))},1040,[`themeOverrides`,`theme`,`value`,`disabled`,`placement`,`keyField`,`labelField`,`childrenField`,`onUpdateShow`,`options`,`onSelect`,`inverted`,`renderIcon`,`renderLabel`])):(L(),H(`div`,{key:3,class:P(`${e}-submenu`),role:`menu`,"aria-expanded":!this.collapsed,id:this.domId},[G(()=>r()),G(()=>i())],10,Ahe))}});function Zg(e){return e.type===`divider`||e.type===`render`}function Mhe(e){return e.type===`divider`}function Qg(e,t){let{rawNode:n}=e,{show:r}=n;if(r===!1)return null;if(Zg(n))return Mhe(n)?(L(),W(She,I({key:e.key},n.props),null,16)):null;let{labelField:i}=t,{key:a,level:o,isGroup:s}=e,c={...n,title:n.title||n[i],extra:n.titleExtra||n.extra,key:a,internalKey:a,level:o,root:o===0,isGroup:s};return e.children?e.isGroup?Dn(Ohe,Hs(c,Dhe,{tmNode:e,tmNodes:e.children,key:a})):Dn(Xg,Hs(c,jhe,{key:a,rawNodes:n[t.childrenField],tmNodes:e.children,tmNode:e})):Dn(Ehe,Hs(c,The,{key:a,tmNode:e}))}var Nhe={...$e.props,options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:`label`},keyField:{type:String,default:`key`},childrenField:{type:String,default:`children`},disabledField:{type:String,default:`disabled`},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:`vertical`},watchProps:{type:Array,default:void 0},disabled:Boolean,show:{type:Boolean,default:!0},inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownProps:Object,accordion:Boolean,nodeProps:Function,dropdownPlacement:{type:String,default:`bottom`},responsive:Boolean,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array},$g=Y({name:`Menu`,inheritAttrs:!1,props:Nhe,setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:n}=mn(e),r=$e(`Menu`,`-menu`,xhe,Kh,e,t),a=pe(kg,null),o=V(()=>{let{collapsed:t}=e;if(t!==void 0)return t;if(a){let{collapseModeRef:e,collapsedRef:t}=a;if(e.value===`width`)return t.value??!1}return!1}),s=V(()=>{let{keyField:t,childrenField:n,disabledField:r}=e;return Dl(e.items||e.options,{getIgnored(e){return Zg(e)},getChildren(e){return e[n]},getDisabled(e){return e[r]},getKey(e){return e[t]??e.name}})}),c=V(()=>new Set(s.value.treeNodes.map(e=>e.key))),{watchProps:l}=e,u=N(null);l?.includes(`defaultValue`)?ot(()=>{u.value=e.defaultValue}):u.value=e.defaultValue;let d=i(e,`value`),f=lr(d,u),p=N([]),m=()=>{p.value=e.defaultExpandAll?s.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||s.value.getPath(f.value,{includeSelf:!1}).keyPath};l?.includes(`defaultExpandedKeys`)?ot(m):m();let h=Ls(e,[`expandedNames`,`expandedKeys`]),g=lr(h,p),_=V(()=>s.value.treeNodes),v=V(()=>s.value.getPath(f.value).keyPath);Oe(Lg,{props:e,mergedCollapsedRef:o,mergedThemeRef:r,mergedValueRef:f,mergedExpandedKeysRef:g,activePathRef:v,mergedClsPrefixRef:t,isHorizontalRef:V(()=>e.mode===`horizontal`),invertedRef:i(e,`inverted`),doSelect:y,toggleExpand:x});function y(t,n){let{"onUpdate:value":r,onUpdateValue:i,onSelect:a}=e;i&&R(i,t,n),r&&R(r,t,n),a&&R(a,t,n),u.value=t}function b(t){let{"onUpdate:expandedKeys":n,onUpdateExpandedKeys:r,onExpandedNamesChange:i,onOpenNamesChange:a}=e;n&&R(n,t),r&&R(r,t),i&&R(i,t),a&&R(a,t),p.value=t}function x(t){let n=Array.from(g.value),r=n.findIndex(e=>e===t);if(~r)n.splice(r,1);else{if(e.accordion&&c.value.has(t)){let e=n.findIndex(e=>c.value.has(e));e>-1&&n.splice(e,1)}n.push(t)}b(n)}let S=t=>{let n=s.value.getPath(t??f.value,{includeSelf:!1}).keyPath;if(!n.length)return;let r=Array.from(g.value),i=new Set([...r,...n]);e.accordion&&c.value.forEach(e=>{i.has(e)&&!n.includes(e)&&i.delete(e)}),b(Array.from(i))},C=V(()=>{let{inverted:t}=e,{common:{cubicBezierEaseInOut:n},self:i}=r.value,{borderRadius:a,borderColorHorizontal:o,fontSize:s,itemHeight:c,dividerColor:l}=i,u={"--n-divider-color":l,"--n-bezier":n,"--n-font-size":s,"--n-border-color-horizontal":o,"--n-border-radius":a,"--n-item-height":c};return t?(u[`--n-group-text-color`]=i.groupTextColorInverted,u[`--n-color`]=i.colorInverted,u[`--n-item-text-color`]=i.itemTextColorInverted,u[`--n-item-text-color-hover`]=i.itemTextColorHoverInverted,u[`--n-item-text-color-active`]=i.itemTextColorActiveInverted,u[`--n-item-text-color-child-active`]=i.itemTextColorChildActiveInverted,u[`--n-item-text-color-child-active-hover`]=i.itemTextColorChildActiveInverted,u[`--n-item-text-color-active-hover`]=i.itemTextColorActiveHoverInverted,u[`--n-item-icon-color`]=i.itemIconColorInverted,u[`--n-item-icon-color-hover`]=i.itemIconColorHoverInverted,u[`--n-item-icon-color-active`]=i.itemIconColorActiveInverted,u[`--n-item-icon-color-active-hover`]=i.itemIconColorActiveHoverInverted,u[`--n-item-icon-color-child-active`]=i.itemIconColorChildActiveInverted,u[`--n-item-icon-color-child-active-hover`]=i.itemIconColorChildActiveHoverInverted,u[`--n-item-icon-color-collapsed`]=i.itemIconColorCollapsedInverted,u[`--n-item-text-color-horizontal`]=i.itemTextColorHorizontalInverted,u[`--n-item-text-color-hover-horizontal`]=i.itemTextColorHoverHorizontalInverted,u[`--n-item-text-color-active-horizontal`]=i.itemTextColorActiveHorizontalInverted,u[`--n-item-text-color-child-active-horizontal`]=i.itemTextColorChildActiveHorizontalInverted,u[`--n-item-text-color-child-active-hover-horizontal`]=i.itemTextColorChildActiveHoverHorizontalInverted,u[`--n-item-text-color-active-hover-horizontal`]=i.itemTextColorActiveHoverHorizontalInverted,u[`--n-item-icon-color-horizontal`]=i.itemIconColorHorizontalInverted,u[`--n-item-icon-color-hover-horizontal`]=i.itemIconColorHoverHorizontalInverted,u[`--n-item-icon-color-active-horizontal`]=i.itemIconColorActiveHorizontalInverted,u[`--n-item-icon-color-active-hover-horizontal`]=i.itemIconColorActiveHoverHorizontalInverted,u[`--n-item-icon-color-child-active-horizontal`]=i.itemIconColorChildActiveHorizontalInverted,u[`--n-item-icon-color-child-active-hover-horizontal`]=i.itemIconColorChildActiveHoverHorizontalInverted,u[`--n-arrow-color`]=i.arrowColorInverted,u[`--n-arrow-color-hover`]=i.arrowColorHoverInverted,u[`--n-arrow-color-active`]=i.arrowColorActiveInverted,u[`--n-arrow-color-active-hover`]=i.arrowColorActiveHoverInverted,u[`--n-arrow-color-child-active`]=i.arrowColorChildActiveInverted,u[`--n-arrow-color-child-active-hover`]=i.arrowColorChildActiveHoverInverted,u[`--n-item-color-hover`]=i.itemColorHoverInverted,u[`--n-item-color-active`]=i.itemColorActiveInverted,u[`--n-item-color-active-hover`]=i.itemColorActiveHoverInverted,u[`--n-item-color-active-collapsed`]=i.itemColorActiveCollapsedInverted):(u[`--n-group-text-color`]=i.groupTextColor,u[`--n-color`]=i.color,u[`--n-item-text-color`]=i.itemTextColor,u[`--n-item-text-color-hover`]=i.itemTextColorHover,u[`--n-item-text-color-active`]=i.itemTextColorActive,u[`--n-item-text-color-child-active`]=i.itemTextColorChildActive,u[`--n-item-text-color-child-active-hover`]=i.itemTextColorChildActiveHover,u[`--n-item-text-color-active-hover`]=i.itemTextColorActiveHover,u[`--n-item-icon-color`]=i.itemIconColor,u[`--n-item-icon-color-hover`]=i.itemIconColorHover,u[`--n-item-icon-color-active`]=i.itemIconColorActive,u[`--n-item-icon-color-active-hover`]=i.itemIconColorActiveHover,u[`--n-item-icon-color-child-active`]=i.itemIconColorChildActive,u[`--n-item-icon-color-child-active-hover`]=i.itemIconColorChildActiveHover,u[`--n-item-icon-color-collapsed`]=i.itemIconColorCollapsed,u[`--n-item-text-color-horizontal`]=i.itemTextColorHorizontal,u[`--n-item-text-color-hover-horizontal`]=i.itemTextColorHoverHorizontal,u[`--n-item-text-color-active-horizontal`]=i.itemTextColorActiveHorizontal,u[`--n-item-text-color-child-active-horizontal`]=i.itemTextColorChildActiveHorizontal,u[`--n-item-text-color-child-active-hover-horizontal`]=i.itemTextColorChildActiveHoverHorizontal,u[`--n-item-text-color-active-hover-horizontal`]=i.itemTextColorActiveHoverHorizontal,u[`--n-item-icon-color-horizontal`]=i.itemIconColorHorizontal,u[`--n-item-icon-color-hover-horizontal`]=i.itemIconColorHoverHorizontal,u[`--n-item-icon-color-active-horizontal`]=i.itemIconColorActiveHorizontal,u[`--n-item-icon-color-active-hover-horizontal`]=i.itemIconColorActiveHoverHorizontal,u[`--n-item-icon-color-child-active-horizontal`]=i.itemIconColorChildActiveHorizontal,u[`--n-item-icon-color-child-active-hover-horizontal`]=i.itemIconColorChildActiveHoverHorizontal,u[`--n-arrow-color`]=i.arrowColor,u[`--n-arrow-color-hover`]=i.arrowColorHover,u[`--n-arrow-color-active`]=i.arrowColorActive,u[`--n-arrow-color-active-hover`]=i.arrowColorActiveHover,u[`--n-arrow-color-child-active`]=i.arrowColorChildActive,u[`--n-arrow-color-child-active-hover`]=i.arrowColorChildActiveHover,u[`--n-item-color-hover`]=i.itemColorHover,u[`--n-item-color-active`]=i.itemColorActive,u[`--n-item-color-active-hover`]=i.itemColorActiveHover,u[`--n-item-color-active-collapsed`]=i.itemColorActiveCollapsed),u}),w=n?fe(`menu`,V(()=>e.inverted?`a`:`b`),C,e):void 0,T=Ir(),E=N(null),D=N(null),O=!0,k=()=>{O?O=!1:E.value?.sync({showAllItemsBeforeCalculate:!0})};function A(){return document.getElementById(T)}let j=N(-1);function ee(t){j.value=e.options.length-t}function te(e){e||(j.value=-1)}let M=V(()=>{let t=j.value;return{children:t===-1?[]:e.options.slice(t)}}),ne=V(()=>{let{childrenField:t,disabledField:n,keyField:r}=e;return Dl([M.value],{getIgnored(e){return Zg(e)},getChildren(e){return e[t]},getDisabled(e){return e[n]},getKey(e){return e[r]??e.name}})}),re=V(()=>Dl([{}]).treeNodes[0]);function ie(){if(j.value===-1)return L(),W(Xg,{root:!0,level:0,key:`__ellpisisGroupPlaceholder__`,internalKey:`__ellpisisGroupPlaceholder__`,title:`···`,tmNode:re.value,domId:T,isEllipsisPlaceholder:!0},null,8,[`tmNode`,`domId`]);let e=ne.value.treeNodes[0],t=v.value,n=!!e.children?.some(e=>t.includes(e.key));return L(),W(Xg,{level:0,root:!0,key:`__ellpisisGroup__`,internalKey:`__ellpisisGroup__`,title:`···`,virtualChildActive:n,tmNode:e,domId:T,rawNodes:e.rawNode.children||[],tmNodes:e.children||[],isEllipsisPlaceholder:!0},null,8,[`virtualChildActive`,`tmNode`,`domId`,`rawNodes`,`tmNodes`])}return{mergedClsPrefix:t,controlledExpandedKeys:h,uncontrolledExpanededKeys:p,mergedExpandedKeys:g,uncontrolledValue:u,mergedValue:f,activePath:v,tmNodes:_,mergedTheme:r,mergedCollapsed:o,cssVars:n?void 0:C,themeClass:w?.themeClass,overflowRef:E,counterRef:D,updateCounter:()=>{},onResize:k,onUpdateOverflow:te,onUpdateCount:ee,renderCounter:ie,getCounter:A,onRender:w?.onRender,showOption:S,deriveResponsiveState:k}},render(){let{mergedClsPrefix:e,mode:t,themeClass:n,onRender:r}=this;r?.();let i=()=>this.tmNodes.map(e=>Qg(e,this.$props)),a=t===`horizontal`&&this.responsive,o=()=>Dn(`div`,I(this.$attrs,{role:t===`horizontal`?`menubar`:`menu`,class:[`${e}-menu`,n,`${e}-menu--${t}`,a&&`${e}-menu--responsive`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars}),a?(L(),W(wc,{key:2,ref:`overflowRef`,onUpdateOverflow:this.onUpdateOverflow,getCounter:this.getCounter,onUpdateCount:this.onUpdateCount,updateCounter:this.updateCounter,style:{width:`100%`,display:`flex`,overflow:`hidden`}},{default:i,counter:this.renderCounter},1032,[`onUpdateOverflow`,`getCounter`,`onUpdateCount`,`updateCounter`])):i());return a?(L(),W(xt,{key:3,onResize:this.onResize},{default:o},1032,[`onResize`])):o()}}),Phe={titleFontSize:`18px`,backSize:`22px`};function e_(e){let{textColor1:t,textColor2:n,textColor3:r,fontSize:i,fontWeightStrong:a,primaryColorHover:o,primaryColorPressed:s}=e;return{...Phe,titleFontWeight:a,fontSize:i,titleTextColor:t,backColor:n,backColorHover:o,backColorPressed:s,subtitleTextColor:r}}var Fhe=En({name:`PageHeader`,common:_e,self:e_});function Ihe(e){return{borderRadius:e.borderRadius}}var Lhe={name:`QrCode`,common:_e,self:Ihe};function Rhe(e){let{railColor:t}=e;return{itemColor:t,itemColorActive:`#FFCC33`,sizeSmall:`16px`,sizeMedium:`20px`,sizeLarge:`24px`}}var zhe={name:`Rate`,common:_e,self:Rhe};function Bhe(){return(()=>{let e=Ye(`c69907197a2424a9`);return e[0]||=q(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 36 36`},[q(`path`,{fill:`#EF9645`,d:`M15.5 2.965c1.381 0 2.5 1.119 2.5 2.5v.005L20.5.465c1.381 0 2.5 1.119 2.5 2.5V4.25l2.5-1.535c1.381 0 2.5 1.119 2.5 2.5V8.75L29 18H15.458L15.5 2.965z`}),q(`path`,{fill:`#FFDC5D`,d:`M4.625 16.219c1.381-.611 3.354.208 4.75 2.188.917 1.3 1.187 3.151 2.391 3.344.46.073 1.234-.313 1.234-1.397V4.5s0-2 2-2 2 2 2 2v11.633c0-.029 1-.064 1-.082V2s0-2 2-2 2 2 2 2v14.053c0 .017 1 .041 1 .069V4.25s0-2 2-2 2 2 2 2v12.638c0 .118 1 .251 1 .398V8.75s0-2 2-2 2 2 2 2V24c0 6.627-5.373 12-12 12-4.775 0-8.06-2.598-9.896-5.292C8.547 28.423 8.096 26.051 8 25.334c0 0-.123-1.479-1.156-2.865-1.469-1.969-2.5-3.156-3.125-3.866-.317-.359-.625-1.707.906-2.384z`})],-1)})()}function Vhe(){return(()=>{let e=Ye(`3c80ed8b3f0240f8`);return e[0]||=q(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 36 36`},[q(`circle`,{fill:`#FFCB4C`,cx:`18`,cy:`17.018`,r:`17`}),q(`path`,{fill:`#65471B`,d:`M14.524 21.036c-.145-.116-.258-.274-.312-.464-.134-.46.13-.918.59-1.021 4.528-1.021 7.577 1.363 7.706 1.465.384.306.459.845.173 1.205-.286.358-.828.401-1.211.097-.11-.084-2.523-1.923-6.182-1.098-.274.061-.554-.016-.764-.184z`}),q(`ellipse`,{fill:`#65471B`,cx:`13.119`,cy:`11.174`,rx:`2.125`,ry:`2.656`}),q(`ellipse`,{fill:`#65471B`,cx:`24.375`,cy:`12.236`,rx:`2.125`,ry:`2.656`}),q(`path`,{fill:`#F19020`,d:`M17.276 35.149s1.265-.411 1.429-1.352c.173-.972-.624-1.167-.624-1.167s1.041-.208 1.172-1.376c.123-1.101-.861-1.363-.861-1.363s.97-.4 1.016-1.539c.038-.959-.995-1.428-.995-1.428s5.038-1.221 5.556-1.341c.516-.12 1.32-.615 1.069-1.694-.249-1.08-1.204-1.118-1.697-1.003-.494.115-6.744 1.566-8.9 2.068l-1.439.334c-.54.127-.785-.11-.404-.512.508-.536.833-1.129.946-2.113.119-1.035-.232-2.313-.433-2.809-.374-.921-1.005-1.649-1.734-1.899-1.137-.39-1.945.321-1.542 1.561.604 1.854.208 3.375-.833 4.293-2.449 2.157-3.588 3.695-2.83 6.973.828 3.575 4.377 5.876 7.952 5.048l3.152-.681z`}),q(`path`,{fill:`#65471B`,d:`M9.296 6.351c-.164-.088-.303-.224-.391-.399-.216-.428-.04-.927.393-1.112 4.266-1.831 7.699-.043 7.843.034.433.231.608.747.391 1.154-.216.405-.74.546-1.173.318-.123-.063-2.832-1.432-6.278.047-.257.109-.547.085-.785-.042zm12.135 3.75c-.156-.098-.286-.243-.362-.424-.187-.442.023-.927.468-1.084 4.381-1.536 7.685.48 7.823.567.415.26.555.787.312 1.178-.242.39-.776.495-1.191.238-.12-.072-2.727-1.621-6.267-.379-.266.091-.553.046-.783-.096z`})],-1)})()}function Hhe(){return(()=>{let e=Ye(`de99a3ee9dd8b632`);return e[0]||=q(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 36 36`},[q(`ellipse`,{fill:`#292F33`,cx:`18`,cy:`26`,rx:`18`,ry:`10`}),q(`ellipse`,{fill:`#66757F`,cx:`18`,cy:`24`,rx:`18`,ry:`10`}),q(`path`,{fill:`#E1E8ED`,d:`M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z`}),q(`path`,{fill:`#77B255`,d:`M35 12.056c0 5.216-7.611 9.444-17 9.444S1 17.271 1 12.056C1 6.84 8.611 3.611 18 3.611s17 3.229 17 8.445z`}),q(`ellipse`,{fill:`#A6D388`,cx:`18`,cy:`13`,rx:`15`,ry:`7`}),q(`path`,{d:`M21 17c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.739-1.109.9-2.246.478-3.377-.461-1.236-1.438-1.996-1.731-2.077-.553 0-.958-.443-.958-.996 0-.552.491-.995 1.043-.995.997 0 2.395 1.153 3.183 2.625 1.034 1.933.91 4.039-.351 5.929-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.196-.451.294-.707.294zm-6-2c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.727-1.091.893-2.083.494-2.947-.444-.961-1.431-1.469-1.684-1.499-.552 0-.989-.447-.989-1 0-.552.458-1 1.011-1 .997 0 2.585.974 3.36 2.423.481.899 1.052 2.761-.528 5.131-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.197-.451.295-.707.295z`,fill:`#5C913B`})],-1)})()}function Uhe(){return(()=>{let e=Ye(`96a420cda0b7dc21`);return e[0]||=q(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 36 36`},[q(`path`,{fill:`#FFCC4D`,d:`M36 18c0 9.941-8.059 18-18 18-9.94 0-18-8.059-18-18C0 8.06 8.06 0 18 0c9.941 0 18 8.06 18 18`}),q(`ellipse`,{fill:`#664500`,cx:`18`,cy:`27`,rx:`5`,ry:`6`}),q(`path`,{fill:`#664500`,d:`M5.999 11c-.208 0-.419-.065-.599-.2-.442-.331-.531-.958-.2-1.4C8.462 5.05 12.816 5 13 5c.552 0 1 .448 1 1 0 .551-.445.998-.996 1-.155.002-3.568.086-6.204 3.6-.196.262-.497.4-.801.4zm24.002 0c-.305 0-.604-.138-.801-.4-2.64-3.521-6.061-3.598-6.206-3.6-.55-.006-.994-.456-.991-1.005C22.006 5.444 22.45 5 23 5c.184 0 4.537.05 7.8 4.4.332.442.242 1.069-.2 1.4-.18.135-.39.2-.599.2zm-16.087 4.5l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L12.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L13.914 15.5zm11 0l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L23.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L24.914 15.5z`})],-1)})()}var Whe=z(`result`,`
color: var(--n-text-color);
line-height: var(--n-line-height);
font-size: var(--n-font-size);
transition:
color .3s var(--n-bezier);
`,[z(`result-icon`,`
display: flex;
justify-content: center;
transition: color .3s var(--n-bezier);
`,[X(`status-image`,`
font-size: var(--n-icon-size);
width: 1em;
height: 1em;
`),z(`base-icon`,`
color: var(--n-icon-color);
font-size: var(--n-icon-size);
`)]),z(`result-content`,{marginTop:`24px`}),z(`result-footer`,`
margin-top: 24px;
text-align: center;
`),z(`result-header`,[X(`title`,`
margin-top: 16px;
font-weight: var(--n-title-font-weight);
transition: color .3s var(--n-bezier);
text-align: center;
color: var(--n-title-text-color);
font-size: var(--n-title-font-size);
`),X(`description`,`
margin-top: 4px;
text-align: center;
font-size: var(--n-font-size);
`)])]),Ghe={403:Bhe,404:Vhe,418:Hhe,500:Uhe,info:()=>(L(),W(Yc)),success:()=>(L(),W(Xc)),warning:()=>(L(),W(Zc)),error:()=>(L(),W(Jc))},t_={...$e.props,size:String,status:{type:String,default:`info`},title:String,description:String},n_=Y({name:`Result`,props:t_,slots:Object,setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedComponentPropsRef:r}=mn(e),i=V(()=>e.size||r?.value?.Result?.size||`medium`),a=$e(`Result`,`-result`,Whe,$h,e,t),o=V(()=>{let{status:t}=e,n=i.value,{common:{cubicBezierEaseInOut:r},self:{textColor:o,lineHeight:s,titleTextColor:c,titleFontWeight:l,[tt(`iconColor`,t)]:u,[tt(`fontSize`,n)]:d,[tt(`titleFontSize`,n)]:f,[tt(`iconSize`,n)]:p}}=a.value;return{"--n-bezier":r,"--n-font-size":d,"--n-icon-size":p,"--n-line-height":s,"--n-text-color":o,"--n-title-font-size":f,"--n-title-font-weight":l,"--n-title-text-color":c,"--n-icon-color":u||``}}),s=n?fe(`result`,V(()=>{let{status:t}=e,n=i.value,r=``;return n&&(r+=n[0]),t&&(r+=t[0]),r}),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:s?.themeClass,onRender:s?.onRender}},render(){let{status:t,$slots:n,mergedClsPrefix:r,onRender:i}=this;return i?.(),L(),H(`div`,{class:P([`${r}-result`,this.themeClass]),style:e(this.cssVars)},[q(`div`,{class:P(`${r}-result-icon`)},[G(()=>n.icon?.()||(L(),W(wt,{clsPrefix:r},{default:()=>Ghe[t]()},1032,[`clsPrefix`])))],2),q(`div`,{class:P(`${r}-result-header`)},[this.title?(L(),H(`div`,{key:0,class:P(`${r}-result-header__title`)},[G(()=>this.title)],2)):G(()=>null),this.description?(L(),H(`div`,{key:2,class:P(`${r}-result-header__description`)},[G(()=>this.description)],2)):G(()=>null)],2),G(()=>n.default&&(L(),H(`div`,{class:P(`${r}-result-content`)},[G(()=>n.default())],2))),G(()=>n.footer&&(L(),H(`div`,{class:P(`${r}-result-footer`)},[G(()=>n.footer())],2)))],6)}}),Khe={...$e.props,trigger:String,xScrollable:Boolean,onScroll:Function,contentClass:String,contentStyle:[Object,String],yPlacement:{type:String,default:`right`},xPlacement:{type:String,default:`bottom`}},r_=Y({name:`Scrollbar`,props:Khe,setup(){let e=N(null);return{scrollTo:(...t)=>{e.value?.scrollTo(t[0],t[1])},scrollBy:(...t)=>{e.value?.scrollBy(t[0],t[1])},scrollbarInstRef:e}},render(){return L(),W(ln,I({ref:`scrollbarInstRef`},this.$props),_n(this.$slots),1040)}});function qhe(e){let{heightSmall:t,heightMedium:n,heightLarge:r,borderRadius:i}=e;return{color:`#eee`,colorEnd:`#ddd`,borderRadius:i,heightSmall:t,heightMedium:n,heightLarge:r}}var Jhe={name:`Skeleton`,common:_e,self:qhe};function Yhe(e){let{railColor:t,primaryColor:n,baseColor:r,cardColor:i,modalColor:a,popoverColor:o,borderRadius:s,fontSize:c,opacityDisabled:l}=e;return{...eg,fontSize:c,markFontSize:c,railColor:t,railColorHover:t,fillColor:n,fillColorHover:n,opacityDisabled:l,handleColor:`#FFF`,dotColor:i,dotColorModal:a,dotColorPopover:o,handleBoxShadow:`0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)`,handleBoxShadowHover:`0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)`,handleBoxShadowActive:`0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)`,handleBoxShadowFocus:`0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)`,indicatorColor:`rgba(0, 0, 0, .85)`,indicatorBoxShadow:`0 2px 8px 0 rgba(0, 0, 0, 0.12)`,indicatorTextColor:r,indicatorBorderRadius:s,dotBorder:`2px solid ${t}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:``}}var Xhe={name:`Slider`,common:_e,self:Yhe},Zhe=U([U(`@keyframes spin-rotate`,`
from {
transform: rotate(0);
}
to {
transform: rotate(360deg);
}
`),z(`spin-container`,`
position: relative;
`,[z(`spin-body`,`
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
`,[fn()])]),z(`spin-body`,`
display: inline-flex;
align-items: center;
justify-content: center;
flex-direction: column;
`),z(`spin`,`
display: inline-flex;
height: var(--n-size);
width: var(--n-size);
font-size: var(--n-size);
color: var(--n-color);
`,[B(`rotate`,`
animation: spin-rotate 2s linear infinite;
`)]),z(`spin-description`,`
display: inline-block;
font-size: var(--n-font-size);
color: var(--n-text-color);
transition: color .3s var(--n-bezier);
margin-top: 8px;
`),z(`spin-content`,`
opacity: 1;
transition: opacity .3s var(--n-bezier);
pointer-events: all;
`,[B(`spinning`,`
user-select: none;
-webkit-user-select: none;
pointer-events: none;
opacity: var(--n-opacity-spinning);
`)])]),Qhe={small:20,medium:18,large:16},i_={...$e.props,contentClass:String,contentStyle:[Object,String],description:String,size:{type:[String,Number],default:`medium`},show:{type:Boolean,default:!0},rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0},delay:Number,...hee,strokeWidth:Number},a_=Y({name:`Spin`,props:i_,slots:Object,setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:n}=mn(e),r=$e(`Spin`,`-spin`,Zhe,ng,e,t),i=V(()=>{let{size:t}=e,{common:{cubicBezierEaseInOut:n},self:i}=r.value,{opacitySpinning:a,color:o,textColor:s}=i;return{"--n-bezier":n,"--n-opacity-spinning":a,"--n-size":typeof t==`number`?mt(t):i[tt(`size`,t)],"--n-color":o,"--n-text-color":s}}),a=n?fe(`spin`,V(()=>{let{size:t}=e;return typeof t==`number`?String(t):t[0]}),i,e):void 0,o=Ls(e,[`spinning`,`show`]),s=N(!1);return ot(t=>{let n;if(o.value){let{delay:r}=e;if(r){n=window.setTimeout(()=>{s.value=!0},r),t(()=>{clearTimeout(n)});return}}s.value=o.value}),{mergedClsPrefix:t,active:s,mergedStrokeWidth:V(()=>{let{strokeWidth:t}=e;if(t!==void 0)return t;let{size:n}=e;return Qhe[typeof n==`number`?`medium`:n]}),cssVars:n?void 0:i,themeClass:a?.themeClass,onRender:a?.onRender}},render(){let{$slots:t,mergedClsPrefix:n,description:r}=this,i=t.icon&&this.rotate,a=(r||t.description)&&(L(),H(`div`,{class:P(`${n}-spin-description`)},[G(()=>r||t.description?.())],2)),o=t.icon?(L(),H(`div`,{key:1,class:P([`${n}-spin-body`,this.themeClass])},[q(`div`,{class:P([`${n}-spin`,i&&`${n}-spin--rotate`]),style:e(t.default?``:this.cssVars)},[G(()=>t.icon())],6),G(()=>a)],2)):(L(),H(`div`,{key:2,class:P([`${n}-spin-body`,this.themeClass])},[(L(),W(ir,{clsPrefix:n,style:e(t.default?``:this.cssVars),stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,radius:this.radius,scale:this.scale,class:P(`${n}-spin`)},null,8,[`clsPrefix`,`style`,`stroke`,`stroke-width`,`radius`,`scale`,`class`])),G(()=>a)],2));return this.onRender?.(),t.default?(L(),H(`div`,{key:3,class:P([`${n}-spin-container`,this.themeClass]),style:e(this.cssVars)},[q(`div`,{class:P([`${n}-spin-content`,this.active&&`${n}-spin-content--spinning`,this.contentClass]),style:e(this.contentStyle)},[G(()=>t.default?.())],6),J(gn,{name:`fade-in-transition`},{default:()=>this.active?o:null},1024)],6)):o}});function $he(e){let{primaryColorHover:t,borderColor:n}=e;return{resizableTriggerColorHover:t,resizableTriggerColor:n}}var ege={name:`Split`,common:_e,self:$he};function tge(e){let{primaryColor:t,opacityDisabled:n,borderRadius:r,textColor3:i}=e;return{...og,iconColor:i,textColor:`white`,loadingColor:t,opacityDisabled:n,railColor:`rgba(0, 0, 0, .14)`,railColorActive:t,buttonBoxShadow:`0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)`,buttonColor:`#FFF`,railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${F(t,{alpha:.2})}`}}var o_={name:`Switch`,common:_e,self:tge},nge=z(`switch`,`
height: var(--n-height);
min-width: var(--n-width);
vertical-align: middle;
user-select: none;
-webkit-user-select: none;
display: inline-flex;
outline: none;
justify-content: center;
align-items: center;
`,[X(`children-placeholder`,`
height: var(--n-rail-height);
display: flex;
flex-direction: column;
overflow: hidden;
pointer-events: none;
visibility: hidden;
`),X(`rail-placeholder`,`
display: flex;
flex-wrap: none;
`),X(`button-placeholder`,`
width: calc(1.75 * var(--n-rail-height));
height: var(--n-rail-height);
`),z(`base-loading`,`
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
font-size: calc(var(--n-button-width) - 4px);
color: var(--n-loading-color);
transition: color .3s var(--n-bezier);
`,[or({left:`50%`,top:`50%`,originalTransform:`translateX(-50%) translateY(-50%)`})]),X(`checked, unchecked`,`
transition: color .3s var(--n-bezier);
color: var(--n-text-color);
box-sizing: border-box;
position: absolute;
white-space: nowrap;
top: 0;
bottom: 0;
display: flex;
align-items: center;
line-height: 1;
`),X(`checked`,`
right: 0;
padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset));
`),X(`unchecked`,`
left: 0;
justify-content: flex-end;
padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset));
`),U(`&:focus`,[X(`rail`,`
box-shadow: var(--n-box-shadow-focus);
`)]),B(`round`,[X(`rail`,`border-radius: calc(var(--n-rail-height) / 2);`,[X(`button`,`border-radius: calc(var(--n-button-height) / 2);`)])]),On(`disabled`,[On(`icon`,[B(`rubber-band`,[B(`pressed`,[X(`rail`,[X(`button`,`max-width: var(--n-button-width-pressed);`)])]),X(`rail`,[U(`&:active`,[X(`button`,`max-width: var(--n-button-width-pressed);`)])]),B(`active`,[B(`pressed`,[X(`rail`,[X(`button`,`left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));`)])]),X(`rail`,[U(`&:active`,[X(`button`,`left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));`)])])])])])]),B(`active`,[X(`rail`,[X(`button`,`left: calc(100% - var(--n-button-width) - var(--n-offset))`)])]),X(`rail`,`
overflow: hidden;
height: var(--n-rail-height);
min-width: var(--n-rail-width);
border-radius: var(--n-rail-border-radius);
cursor: pointer;
position: relative;
transition:
opacity .3s var(--n-bezier),
background .3s var(--n-bezier),
box-shadow .3s var(--n-bezier);
background-color: var(--n-rail-color);
`,[X(`button-icon`,`
color: var(--n-icon-color);
transition: color .3s var(--n-bezier);
font-size: calc(var(--n-button-height) - 4px);
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
justify-content: center;
align-items: center;
line-height: 1;
`,[or()]),X(`button`,`
align-items: center;
top: var(--n-offset);
left: var(--n-offset);
height: var(--n-button-height);
width: var(--n-button-width-pressed);
max-width: var(--n-button-width);
border-radius: var(--n-button-border-radius);
background-color: var(--n-button-color);
box-shadow: var(--n-button-box-shadow);
box-sizing: border-box;
cursor: inherit;
content: "";
position: absolute;
transition:
background-color .3s var(--n-bezier),
left .3s var(--n-bezier),
opacity .3s var(--n-bezier),
max-width .3s var(--n-bezier),
box-shadow .3s var(--n-bezier);
`)]),B(`active`,[X(`rail`,`background-color: var(--n-rail-color-active);`)]),B(`loading`,[X(`rail`,`
cursor: wait;
`)]),B(`disabled`,[X(`rail`,`
cursor: not-allowed;
opacity: .5;
`)])]),rge=[`aria-checked`,`tabindex`,`onClick`,`onFocus`,`onBlur`,`onKeyup`,`onKeydown`],ige={...$e.props,size:String,value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},spinProps:Object,onChange:[Function,Array]},s_,c_=Y({name:`Switch`,props:ige,slots:Object,setup(e){s_===void 0&&(s_=typeof CSS<`u`?CSS.supports!==void 0&&CSS.supports(`width`,`max(1px)`):!0);let{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedComponentPropsRef:r}=mn(e),a=$e(`Switch`,`-switch`,nge,o_,e,t),o=mr(e,{mergedSize(t){return e.size===void 0?t?t.mergedSize.value:r?.value?.Switch?.size||`medium`:e.size}}),{mergedSizeRef:s,mergedDisabledRef:c}=o,l=N(e.defaultValue),u=i(e,`value`),d=lr(u,l),f=V(()=>d.value===e.checkedValue),p=N(!1),m=N(!1),h=V(()=>{let{railStyle:t}=e;if(t)return t({focused:m.value,checked:f.value})});function g(t){let{"onUpdate:value":n,onChange:r,onUpdateValue:i}=e,{nTriggerFormInput:a,nTriggerFormChange:s}=o;n&&R(n,t),i&&R(i,t),r&&R(r,t),l.value=t,a(),s()}function _(){let{nTriggerFormFocus:e}=o;e()}function v(){let{nTriggerFormBlur:e}=o;e()}function y(){e.loading||c.value||(d.value===e.checkedValue?g(e.uncheckedValue):g(e.checkedValue))}function b(){m.value=!0,_()}function x(){m.value=!1,v(),p.value=!1}function S(t){e.loading||c.value||t.key===` `&&(d.value===e.checkedValue?g(e.uncheckedValue):g(e.checkedValue),p.value=!1)}function C(t){e.loading||c.value||t.key===` `&&(t.preventDefault(),p.value=!0)}let w=V(()=>{let{value:e}=s,{self:{opacityDisabled:t,railColor:n,railColorActive:r,buttonBoxShadow:i,buttonColor:o,boxShadowFocus:c,loadingColor:l,textColor:u,iconColor:d,[tt(`buttonHeight`,e)]:f,[tt(`buttonWidth`,e)]:p,[tt(`buttonWidthPressed`,e)]:m,[tt(`railHeight`,e)]:h,[tt(`railWidth`,e)]:g,[tt(`railBorderRadius`,e)]:_,[tt(`buttonBorderRadius`,e)]:v},common:{cubicBezierEaseInOut:y}}=a.value,b,x,S;return s_?(b=`calc((${h} - ${f}) / 2)`,x=`max(${h}, ${f})`,S=`max(${g}, calc(${g} + ${f} - ${h}))`):(b=mt((sn(h)-sn(f))/2),x=mt(Math.max(sn(h),sn(f))),S=sn(h)>sn(f)?g:mt(sn(g)+sn(f)-sn(h))),{"--n-bezier":y,"--n-button-border-radius":v,"--n-button-box-shadow":i,"--n-button-color":o,"--n-button-width":p,"--n-button-width-pressed":m,"--n-button-height":f,"--n-height":x,"--n-offset":b,"--n-opacity-disabled":t,"--n-rail-border-radius":_,"--n-rail-color":n,"--n-rail-color-active":r,"--n-rail-height":h,"--n-rail-width":g,"--n-width":S,"--n-box-shadow-focus":c,"--n-loading-color":l,"--n-text-color":u,"--n-icon-color":d}}),T=n?fe(`switch`,V(()=>s.value[0]),w,e):void 0;return{handleClick:y,handleBlur:x,handleFocus:b,handleKeyup:S,handleKeydown:C,mergedRailStyle:h,pressed:p,mergedClsPrefix:t,mergedValue:d,checked:f,mergedDisabled:c,cssVars:n?void 0:w,themeClass:T?.themeClass,onRender:T?.onRender}},render(){let{mergedClsPrefix:t,mergedDisabled:n,checked:r,mergedRailStyle:i,onRender:a,$slots:o}=this;a?.();let{checked:s,unchecked:c,icon:l,"checked-icon":u,"unchecked-icon":d}=o,f=!(Pt(l)&&Pt(u)&&Pt(d));return L(),H(`div`,{role:`switch`,"aria-checked":r,class:P([`${t}-switch`,this.themeClass,f&&`${t}-switch--icon`,r&&`${t}-switch--active`,n&&`${t}-switch--disabled`,this.round&&`${t}-switch--round`,this.loading&&`${t}-switch--loading`,this.pressed&&`${t}-switch--pressed`,this.rubberBand&&`${t}-switch--rubber-band`]),tabindex:this.mergedDisabled?void 0:0,style:e(this.cssVars),onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},[q(`div`,{class:P(`${t}-switch__rail`),"aria-hidden":`true`,style:e(i)},[G(()=>Lt(s,e=>Lt(c,n=>e||n?(L(),H(`div`,{key:4,"aria-hidden":!0,class:P(`${t}-switch__children-placeholder`)},[q(`div`,{class:P(`${t}-switch__rail-placeholder`)},[q(`div`,{class:P(`${t}-switch__button-placeholder`)},null,2),G(()=>e)],2),q(`div`,{class:P(`${t}-switch__rail-placeholder`)},[q(`div`,{class:P(`${t}-switch__button-placeholder`)},null,2),G(()=>n)],2)],2)):null))),q(`div`,{class:P(`${t}-switch__button`)},[G(()=>Lt(l,e=>Lt(u,n=>Lt(d,r=>(L(),W(ar,null,{default:()=>this.loading?(L(),W(ir,I({key:`loading`,clsPrefix:t,strokeWidth:20},this.spinProps),null,16,[`clsPrefix`])):this.checked&&(n||e)?(L(),H(`div`,{class:P(`${t}-switch__button-icon`),key:n?`checked-icon`:`icon`},[G(()=>n||e)],2)):!this.checked&&(r||e)?(L(),H(`div`,{class:P(`${t}-switch__button-icon`),key:r?`unchecked-icon`:`icon`},[G(()=>r||e)],2)):null},1024)))))),G(()=>Lt(s,e=>e&&(L(),H(`div`,{key:`checked`,class:P(`${t}-switch__checked`)},[G(()=>e)],2)))),G(()=>Lt(c,e=>e&&(L(),H(`div`,{key:`unchecked`,class:P(`${t}-switch__unchecked`)},[G(()=>e)],2))))],2)],6)],46,rge)}}),l_=bn(`n-tabs`),u_={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:`if`},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},d_=Y({__TAB_PANE__:!0,name:`TabPane`,alias:[`TabPanel`],props:u_,slots:Object,setup(e){let t=pe(l_,null);return t||Ft(`tab-pane`,"`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return L(),H(`div`,{class:P([`${this.mergedClsPrefix}-tab-pane`,this.class]),style:e(this.style)},[G(()=>this.$slots.default?.())],6)}}),age=[`data-name`,`data-disabled`],oge={internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean,...Cf(u_,[`displayDirective`])},f_=Y({__TAB__:!0,inheritAttrs:!1,name:`Tab`,props:oge,setup(e){let{mergedClsPrefixRef:t,valueRef:n,typeRef:r,closableRef:i,tabStyleRef:a,addTabStyleRef:o,tabClassRef:s,addTabClassRef:c,tabChangeIdRef:l,onBeforeLeaveRef:u,triggerRef:d,handleAdd:f,activateTab:p,handleClose:m}=pe(l_);return{trigger:d,mergedClosable:V(()=>{if(e.internalAddable)return!1;let{closable:t}=e;return t===void 0?i.value:t}),style:a,addStyle:o,tabClass:s,addTabClass:c,clsPrefix:t,value:n,type:r,handleClose(t){t.stopPropagation(),e.disabled||m(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){f();return}let{name:t}=e,r=++l.id;if(t!==n.value){let{value:i}=u;i?Promise.resolve(i(e.name,n.value)).then(e=>{e&&l.id===r&&p(t)}):p(t)}}}},render(){let{internalAddable:e,clsPrefix:t,name:n,disabled:r,label:i,tab:a,value:o,mergedClosable:s,trigger:c,$slots:{default:l}}=this,u=i??a;return L(),H(`div`,{class:P(`${t}-tabs-tab-wrapper`)},[this.internalLeftPadded?(L(),H(`div`,{key:0,class:P(`${t}-tabs-tab-pad`)},null,2)):G(()=>null),(L(),H(`div`,I({key:n,"data-name":n,"data-disabled":r?!0:void 0},I({class:[`${t}-tabs-tab`,o===n&&`${t}-tabs-tab--active`,r&&`${t}-tabs-tab--disabled`,s&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`,e?this.addTabClass:this.tabClass],onClick:c===`click`?this.activateTab:void 0,onMouseenter:c===`hover`?this.activateTab:void 0,style:e?this.addStyle:this.style},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),[q(`span`,{class:P(`${t}-tabs-tab__label`)},[e?(L(),H(K,{key:0},[q(`div`,{class:P(`${t}-tabs-tab__height-placeholder`)},`\xA0`,2),(L(),W(wt,{clsPrefix:t},{default:()=>(L(),W(kr))},1032,[`clsPrefix`]))],64)):(L(),H(K,{key:1},[l?(L(),H(K,{key:0},[G(()=>l())],64)):(L(),H(K,{key:1},[typeof u==`object`?(L(),H(K,{key:0},[G(()=>u)],64)):(L(),H(K,{key:1},[G(()=>ol(u??n))],64))],64))],64))],2),s&&this.type===`card`?(L(),W(hn,{key:0,clsPrefix:t,class:P(`${t}-tabs-tab__close`),onClick:this.handleClose,disabled:r},null,8,[`clsPrefix`,`class`,`onClick`,`disabled`])):G(()=>null)],16,age))],2)}}),sge=z(`tabs`,`
box-sizing: border-box;
width: 100%;
display: flex;
flex-direction: column;
transition:
background-color .3s var(--n-bezier),
border-color .3s var(--n-bezier);
`,[U(`&.transition-disabled`,[z(`tabs-tab`,`
transition: none !important;
`),z(`tabs-nav-scroll-content`,`
transition: none !important;
`),z(`tabs-tab-pad`,`
transition: none !important;
`)]),B(`segment-type`,[z(`tabs-rail`,[U(`&.transition-disabled`,[z(`tabs-capsule`,`
transition: none;
`)])])]),B(`top`,[z(`tab-pane`,`
padding: var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left);
`)]),B(`left`,[z(`tab-pane`,`
padding: var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left) var(--n-pane-padding-top);
`)]),B(`left, right`,`
flex-direction: row;
`,[z(`tabs-bar`,`
width: 2px;
right: 0;
transition:
top .2s var(--n-bezier),
max-height .2s var(--n-bezier),
background-color .3s var(--n-bezier);
`),z(`tabs-tab`,`
padding: var(--n-tab-padding-vertical);
`)]),B(`right`,`
flex-direction: row-reverse;
`,[z(`tab-pane`,`
padding: var(--n-pane-padding-left) var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom);
`),z(`tabs-bar`,`
left: 0;
`)]),B(`bottom`,`
flex-direction: column-reverse;
justify-content: flex-end;
`,[z(`tab-pane`,`
padding: var(--n-pane-padding-bottom) var(--n-pane-padding-right) var(--n-pane-padding-top) var(--n-pane-padding-left);
`),z(`tabs-bar`,`
top: 0;
`)]),z(`tabs-rail`,`
position: relative;
padding: 3px;
border-radius: var(--n-tab-border-radius);
width: 100%;
background-color: var(--n-color-segment);
transition: background-color .3s var(--n-bezier);
display: flex;
align-items: center;
`,[z(`tabs-capsule`,`
border-radius: var(--n-tab-border-radius);
position: absolute;
left: 0;
top: 0;
pointer-events: none;
background-color: var(--n-tab-color-segment);
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08);
transition: transform 0.3s var(--n-bezier);
`),z(`tabs-tab-wrapper`,`
flex-basis: 0;
flex-grow: 1;
display: flex;
align-items: center;
justify-content: center;
`,[z(`tabs-tab`,`
overflow: hidden;
border-radius: var(--n-tab-border-radius);
width: 100%;
display: flex;
align-items: center;
justify-content: center;
`,[B(`active`,`
font-weight: var(--n-font-weight-strong);
color: var(--n-tab-text-color-active);
`),U(`&:hover`,`
color: var(--n-tab-text-color-hover);
`)])])]),B(`flex`,[z(`tabs-nav`,`
width: 100%;
position: relative;
`,[z(`tabs-wrapper`,`
width: 100%;
`,[z(`tabs-tab`,`
margin-right: 0;
`)])])]),z(`tabs-nav`,`
box-sizing: border-box;
line-height: 1.5;
display: flex;
transition: border-color .3s var(--n-bezier);
`,[X(`prefix, suffix`,`
display: flex;
align-items: center;
`),X(`prefix`,`padding-right: 16px;`),X(`suffix`,`padding-left: 16px;`)]),B(`top, bottom`,[U(`>`,[z(`tabs-nav`,[z(`tabs-nav-scroll-wrapper`,[U(`&::before`,`
top: 0;
bottom: 0;
left: 0;
width: 20px;
`),U(`&::after`,`
top: 0;
bottom: 0;
right: 0;
width: 20px;
`),B(`shadow-start`,[U(`&::before`,`
box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12);
`)]),B(`shadow-end`,[U(`&::after`,`
box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12);
`)])])])])]),B(`left, right`,[z(`tabs-nav-scroll-content`,`
flex-direction: column;
`),U(`>`,[z(`tabs-nav`,[z(`tabs-nav-scroll-wrapper`,[U(`&::before`,`
top: 0;
left: 0;
right: 0;
height: 20px;
`),U(`&::after`,`
bottom: 0;
left: 0;
right: 0;
height: 20px;
`),B(`shadow-start`,[U(`&::before`,`
box-shadow: inset 0 10px 8px -8px rgba(0, 0, 0, .12);
`)]),B(`shadow-end`,[U(`&::after`,`
box-shadow: inset 0 -10px 8px -8px rgba(0, 0, 0, .12);
`)])])])])]),z(`tabs-nav-scroll-wrapper`,`
flex: 1;
position: relative;
overflow: hidden;
`,[z(`tabs-nav-y-scroll`,`
height: 100%;
width: 100%;
overflow-y: auto;
scrollbar-width: none;
`,[U(`&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb`,`
width: 0;
height: 0;
display: none;
`)]),U(`&::before, &::after`,`
transition: box-shadow .3s var(--n-bezier);
pointer-events: none;
content: "";
position: absolute;
z-index: 1;
`),U(`&.transition-disabled`,[U(`&::before, &::after`,`
transition: none;
`)])]),z(`tabs-nav-scroll-content`,`
display: flex;
position: relative;
min-width: 100%;
min-height: 100%;
width: fit-content;
box-sizing: border-box;
`),z(`tabs-wrapper`,`
display: inline-flex;
flex-wrap: nowrap;
position: relative;
`),z(`tabs-tab-wrapper`,`
display: flex;
flex-wrap: nowrap;
flex-shrink: 0;
flex-grow: 0;
`),z(`tabs-tab`,`
cursor: pointer;
white-space: nowrap;
flex-wrap: nowrap;
display: inline-flex;
align-items: center;
color: var(--n-tab-text-color);
font-size: var(--n-tab-font-size);
background-clip: padding-box;
padding: var(--n-tab-padding);
transition:
box-shadow .3s var(--n-bezier),
color .3s var(--n-bezier),
background-color .3s var(--n-bezier),
border-color .3s var(--n-bezier);
`,[B(`disabled`,{cursor:`not-allowed`}),X(`close`,`
margin-inline-start: 6px;
transition:
background-color .3s var(--n-bezier),
color .3s var(--n-bezier);
`),X(`label`,`
display: flex;
align-items: center;
z-index: 1;
`)]),z(`tabs-bar`,`
position: absolute;
bottom: 0;
height: 2px;
border-radius: 1px;
background-color: var(--n-bar-color);
transition:
left .2s var(--n-bezier),
max-width .2s var(--n-bezier),
opacity .3s var(--n-bezier),
background-color .3s var(--n-bezier);
`,[U(`&.transition-disabled`,`
transition: none;
`),B(`disabled`,`
background-color: var(--n-tab-text-color-disabled)
`)]),z(`tabs-pane-wrapper`,`
position: relative;
overflow: hidden;
transition: max-height .2s var(--n-bezier);
`),z(`tab-pane`,`
color: var(--n-pane-text-color);
width: 100%;
transition:
color .3s var(--n-bezier),
background-color .3s var(--n-bezier),
opacity .2s var(--n-bezier);
left: 0;
right: 0;
top: 0;
`,[U(`&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active`,`
transition:
color .3s var(--n-bezier),
background-color .3s var(--n-bezier),
transform .2s var(--n-bezier),
opacity .2s var(--n-bezier);
`),U(`&.next-transition-leave-active, &.prev-transition-leave-active`,`
position: absolute;
`),U(`&.next-transition-enter-from, &.prev-transition-leave-to`,`
transform: translateX(32px);
opacity: 0;
`),U(`&.next-transition-leave-to, &.prev-transition-enter-from`,`
transform: translateX(-32px);
opacity: 0;
`),U(`&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to`,`
transform: translateX(0);
opacity: 1;
`)]),z(`tabs-tab-pad`,`
box-sizing: border-box;
width: var(--n-tab-gap);
flex-grow: 0;
flex-shrink: 0;
`),B(`line-type, bar-type`,[z(`tabs-tab`,`
font-weight: var(--n-tab-font-weight);
box-sizing: border-box;
vertical-align: bottom;
`,[U(`&:hover`,{color:`var(--n-tab-text-color-hover)`}),B(`active`,`
color: var(--n-tab-text-color-active);
font-weight: var(--n-tab-font-weight-active);
`),B(`disabled`,{color:`var(--n-tab-text-color-disabled)`})])]),z(`tabs-nav`,[X(`prefix, suffix`,`
border-color: var(--n-tab-border-color);
`),z(`tabs-nav-scroll-content`,`
border-color: var(--n-tab-border-color);
`),B(`line-type`,[B(`top`,[X(`prefix, suffix`,`
border-bottom: 1px solid var(--n-tab-border-color);
`),z(`tabs-nav-scroll-content`,`
border-bottom: 1px solid var(--n-tab-border-color);
`),z(`tabs-bar`,`
bottom: -1px;
`)]),B(`left`,[X(`prefix, suffix`,`
border-right: 1px solid var(--n-tab-border-color);
`),z(`tabs-nav-scroll-content`,`
border-right: 1px solid var(--n-tab-border-color);
`),z(`tabs-bar`,`
right: -1px;
`)]),B(`right`,[X(`prefix, suffix`,`
border-left: 1px solid var(--n-tab-border-color);
`),z(`tabs-nav-scroll-content`,`
border-left: 1px solid var(--n-tab-border-color);
`),z(`tabs-bar`,`
left: -1px;
`)]),B(`bottom`,[X(`prefix, suffix`,`
border-top: 1px solid var(--n-tab-border-color);
`),z(`tabs-nav-scroll-content`,`
border-top: 1px solid var(--n-tab-border-color);
`),z(`tabs-bar`,`
top: -1px;
`)]),X(`prefix, suffix`,`
transition: border-color .3s var(--n-bezier);
`),z(`tabs-nav-scroll-content`,`
transition: border-color .3s var(--n-bezier);
`),z(`tabs-bar`,`
border-radius: 0;
`)]),B(`card-type`,[X(`prefix, suffix`,`
transition: border-color .3s var(--n-bezier);
`),z(`tabs-pad`,`
flex-grow: 1;
transition: border-color .3s var(--n-bezier);
`),z(`tabs-tab-pad`,`
transition: border-color .3s var(--n-bezier);
`),z(`tabs-tab`,`
font-weight: var(--n-tab-font-weight);
border: 1px solid var(--n-tab-border-color);
background-color: var(--n-tab-color);
box-sizing: border-box;
position: relative;
vertical-align: bottom;
display: flex;
justify-content: space-between;
font-size: var(--n-tab-font-size);
color: var(--n-tab-text-color);
`,[B(`addable`,`
padding-left: 8px;
padding-right: 8px;
font-size: 16px;
justify-content: center;
`,[X(`height-placeholder`,`
width: 0;
font-size: var(--n-tab-font-size);
`),On(`disabled`,[U(`&:hover`,`
color: var(--n-tab-text-color-hover);
`)])]),B(`closable`,`padding-inline-end: 8px;`),B(`active`,`
background-color: #0000;
font-weight: var(--n-tab-font-weight-active);
color: var(--n-tab-text-color-active);
`),B(`disabled`,`color: var(--n-tab-text-color-disabled);`)])]),B(`left, right`,`
flex-direction: column;
`,[X(`prefix, suffix`,`
padding: var(--n-tab-padding-vertical);
`),z(`tabs-wrapper`,`
flex-direction: column;
`),z(`tabs-tab-wrapper`,`
flex-direction: column;
`,[z(`tabs-tab-pad`,`
height: var(--n-tab-gap-vertical);
width: 100%;
`)])]),B(`top`,[B(`card-type`,[z(`tabs-scroll-padding`,`border-bottom: 1px solid var(--n-tab-border-color);`),X(`prefix, suffix`,`
border-bottom: 1px solid var(--n-tab-border-color);
`),z(`tabs-tab`,`
border-top-left-radius: var(--n-tab-border-radius);
border-top-right-radius: var(--n-tab-border-radius);
`,[B(`active`,`
border-bottom: 1px solid #0000;
`)]),z(`tabs-tab-pad`,`
border-bottom: 1px solid var(--n-tab-border-color);
`),z(`tabs-pad`,`
border-bottom: 1px solid var(--n-tab-border-color);
`)])]),B(`left`,[B(`card-type`,[z(`tabs-scroll-padding`,`border-right: 1px solid var(--n-tab-border-color);`),X(`prefix, suffix`,`
border-right: 1px solid var(--n-tab-border-color);
`),z(`tabs-tab`,`
border-top-left-radius: var(--n-tab-border-radius);
border-bottom-left-radius: var(--n-tab-border-radius);
`,[B(`active`,`
border-right: 1px solid #0000;
`)]),z(`tabs-tab-pad`,`
border-right: 1px solid var(--n-tab-border-color);
`),z(`tabs-pad`,`
border-right: 1px solid var(--n-tab-border-color);
`)])]),B(`right`,[B(`card-type`,[z(`tabs-scroll-padding`,`border-left: 1px solid var(--n-tab-border-color);`),X(`prefix, suffix`,`
border-left: 1px solid var(--n-tab-border-color);
`),z(`tabs-tab`,`
border-top-right-radius: var(--n-tab-border-radius);
border-bottom-right-radius: var(--n-tab-border-radius);
`,[B(`active`,`
border-left: 1px solid #0000;
`)]),z(`tabs-tab-pad`,`
border-left: 1px solid var(--n-tab-border-color);
`),z(`tabs-pad`,`
border-left: 1px solid var(--n-tab-border-color);
`)])]),B(`bottom`,[B(`card-type`,[z(`tabs-scroll-padding`,`border-top: 1px solid var(--n-tab-border-color);`),X(`prefix, suffix`,`
border-top: 1px solid var(--n-tab-border-color);
`),z(`tabs-tab`,`
border-bottom-left-radius: var(--n-tab-border-radius);
border-bottom-right-radius: var(--n-tab-border-radius);
`,[B(`active`,`
border-top: 1px solid #0000;
`)]),z(`tabs-tab-pad`,`
border-top: 1px solid var(--n-tab-border-color);
`),z(`tabs-pad`,`
border-top: 1px solid var(--n-tab-border-color);
`)])])]),z(`tabs-scroll-button`,[B(`start`,`
padding-left: 10px;
padding-right: 6px;
`),B(`end`,`
padding-right: 10px;
padding-left: 6px;
`),B(`up`,`
padding-bottom: 10px;
`),B(`down`,`
padding-top: 10px;
`)])]),p_=Y({name:`TabsButton`,props:{type:{type:String,default:`next`},mergedClsPrefix:{type:String,required:!0},vertical:Boolean,disabled:Boolean,rtl:Boolean,theme:Object,themeOverrides:Object,onClick:Function},setup(e){return{handleClick:()=>{e.disabled||e.onClick?.(e.type)}}},render(){let{mergedClsPrefix:t,disabled:n,type:r,vertical:i,rtl:a,theme:o,themeOverrides:s,handleClick:c}=this,l=r===`next`,u=i?l:a?!l:l;return L(),W(wr,{text:!0,disabled:n,size:`small`,theme:o,themeOverrides:s,onClick:c,class:P([`${t}-tabs-scroll-button`,!i&&r===`prev`&&`${t}-tabs-scroll-button--start`,!i&&r===`next`&&`${t}-tabs-scroll-button--end`,i&&r===`prev`&&`${t}-tabs-scroll-button--up`,i&&r===`next`&&`${t}-tabs-scroll-button--down`])},{icon:()=>(L(),W(wt,{clsPrefix:t,style:e(i?{transform:`rotate(90deg)`}:void 0)},{default:()=>u?(L(),W(eu,{key:1})):(L(),W(_oe,{key:2}))},1032,[`clsPrefix`,`style`]))},1032,[`disabled`,`theme`,`themeOverrides`,`onClick`,`class`])}}),m_=Ro,h_={...$e.props,value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:`click`},type:{type:String,default:`bar`},closable:Boolean,justifyContent:String,size:String,placement:{type:String,default:`top`},tabStyle:[String,Object],tabClass:String,addTabStyle:[String,Object],addTabClass:String,barWidth:Number,paneClass:String,paneStyle:[String,Object],paneWrapperClass:String,paneWrapperStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array],showScrollButton:Boolean,centerActiveTab:Boolean},g_=Y({name:`Tabs`,props:h_,slots:Object,setup(e,{slots:t}){let{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedComponentPropsRef:a,mergedRtlRef:o}=mn(e),s=vn(`Tabs`,o,n),c=V(()=>{let{placement:t}=e;return t===`start`?s?.value?`right`:`left`:t===`end`?s?.value?`left`:`right`:t}),l=$e(`Tabs`,`-tabs`,sge,lg,e,n),u=N(null),d=N(null),f=N(null),p=N(null),m=N(null),h=N(null),g=N(null),_=N(!0),v=N(!0),y=Ls(e,[`labelSize`,`size`]),b=V(()=>y.value?y.value:a?.value?.Tabs?.size||`medium`),x=Ls(e,[`activeName`,`value`]),S=N(x.value??e.defaultValue??(t.default?hr(t.default())[0]?.props?.name:null)),C=lr(x,S),w={id:0},T=V(()=>{if(e.justifyContent&&e.type!==`card`)return{display:`flex`,justifyContent:e.justifyContent}});Te(C,()=>{w.id=0,A(),he(()=>{ee()})});function E(){let{value:e}=C;return e===null?null:u.value?.querySelector(`[data-name="${e}"]`)}function D(t){if(e.type===`card`)return;let{value:r}=f;if(!r)return;let i=r.style.opacity===`0`;if(t){let a=`${n.value}-tabs-bar--disabled`,{barWidth:o}=e,s=c.value;if(t.dataset.disabled===`true`?r.classList.add(a):r.classList.remove(a),[`top`,`bottom`].includes(s)){if(k([`top`,`maxHeight`,`height`]),typeof o==`number`&&t.offsetWidth>=o){let e=Math.floor((t.offsetWidth-o)/2)+t.offsetLeft;r.style.left=`${e}px`,r.style.maxWidth=`${o}px`}else r.style.left=`${t.offsetLeft}px`,r.style.maxWidth=`${t.offsetWidth}px`;r.style.width=`8192px`,i&&(r.style.transition=`none`),r.offsetWidth,i&&(r.style.transition=``,r.style.opacity=`1`)}else{if(k([`left`,`maxWidth`,`width`]),typeof o==`number`&&t.offsetHeight>=o){let e=Math.floor((t.offsetHeight-o)/2)+t.offsetTop;r.style.top=`${e}px`,r.style.maxHeight=`${o}px`}else r.style.top=`${t.offsetTop}px`,r.style.maxHeight=`${t.offsetHeight}px`;r.style.height=`8192px`,i&&(r.style.transition=`none`),r.offsetHeight,i&&(r.style.transition=``,r.style.opacity=`1`)}}}function O(){if(e.type===`card`)return;let{value:t}=f;t&&(t.style.opacity=`0`)}function k(e){let{value:t}=f;if(t)for(let n of e)t.style[n]=``}function A(){if(e.type===`card`)return;let t=E();t?D(t):O()}function j(e,t,n,r){let i=e.getBoundingClientRect(),a=t.getBoundingClientRect(),o=n?`left`:`top`,s=n?`right`:`bottom`,c=0;r?c=(a[o]+a[s])/2-(i[o]+i[s])/2:a[o]<i[o]?c=a[o]-i[o]:a[s]>i[s]&&(c=a[s]-i[s]),c!==0&&e.scrollBy({[o]:c,behavior:`smooth`})}function ee(){let t=[`top`,`bottom`].includes(c.value),n=E();if(n){if(t){let r=h.value?.$el;if(!r)return;j(r,n,t,e.centerActiveTab)}else{let{value:r}=g;if(!r)return;j(r,n,t,e.centerActiveTab)}}}let te=N(null),M=0,ne=null;function re(e){let t=te.value;if(t){M=e.getBoundingClientRect().height;let n=`${M}px`,r=()=>{t.style.height=n,t.style.maxHeight=n};ne?(r(),ne(),ne=null):ne=r}}function ie(e){let t=te.value;if(t){let n=e.getBoundingClientRect().height,r=()=>{document.body.offsetHeight,t.style.maxHeight=`${n}px`,t.style.height=`${Math.max(M,n)}px`};ne?(ne(),ne=null,r()):ne=r}}function P(){let t=te.value;if(t){t.style.maxHeight=``,t.style.height=``;let{paneWrapperStyle:n}=e;if(typeof n==`string`)t.style.cssText=n;else if(n){let{maxHeight:e,height:r}=n;e!==void 0&&(t.style.maxHeight=e),r!==void 0&&(t.style.height=r)}}}let ae={value:[]},oe=N(`next`);function se(e){let t=C.value,n=`next`;for(let r of ae.value){if(r===t)break;if(r===e){n=`prev`;break}}oe.value=n,ce(e)}function ce(t){let{onActiveNameChange:n,onUpdateValue:r,"onUpdate:value":i}=e;n&&R(n,t),r&&R(r,t),i&&R(i,t),S.value=t}function le(t){let{onClose:n}=e;n&&R(n,t)}function ue(e){if([`top`,`bottom`].includes(c.value)){let{value:t}=h;if(!t)return;let n=t.$el;if(!n)return;let r=n.offsetWidth,i=!!s?.value,a=e===`next`?r:-r;n.scrollBy({left:i?-a:a,behavior:`smooth`})}else{let{value:t}=g;if(!t)return;let n=t.offsetHeight,r=e===`next`?t.scrollTop+n:t.scrollTop-n;t.scrollTo({top:r,left:0,behavior:`smooth`})}}let de=!0;function pe(){let{value:e}=f;if(!e)return;de&&=!1;let t=`transition-disabled`;e.classList.add(t),A(),e.classList.remove(t)}let me=N(null);function F({transitionDisabled:e}){let t=u.value;if(!t)return;e&&t.classList.add(`transition-disabled`);let n=E();n&&me.value&&(me.value.style.width=`${n.offsetWidth}px`,me.value.style.height=`${n.offsetHeight}px`,me.value.style.transform=`translate(${n.offsetLeft}px, ${n.offsetTop}px)`,e&&me.value.offsetWidth),e&&t.classList.remove(`transition-disabled`)}Te([C],()=>{e.type===`segment`&&he(()=>{F({transitionDisabled:!1})})}),Ve(()=>{e.type===`segment`&&F({transitionDisabled:!0})});let ge=0;function _e(t){if(t.contentRect.width===0&&t.contentRect.height===0||ge===t.contentRect.width)return;ge=t.contentRect.width;let{type:n}=e;(n===`line`||n===`bar`)&&(de||e.justifyContent?.startsWith(`space`))&&pe(),n!==`segment`&&we(Ce())}let I=m_(_e,64);function ve(){let{type:t}=e;t===`line`||t===`bar`?pe():t===`segment`&&F({transitionDisabled:!0})}Te([()=>e.justifyContent,()=>e.size],()=>{he(()=>{(e.type===`line`||e.type===`bar`)&&pe()})}),Te([c,()=>s?.value],()=>{he(()=>{ve(),we(Ce(),{instantly:!0})})}),Te(()=>e.type,()=>{he(()=>{let e=d.value;e&&(e.classList.add(`transition-disabled`),ve(),e.offsetWidth,e.classList.remove(`transition-disabled`))})});let ye=N(!1);function L(e){let{target:t,contentRect:{width:n,height:r}}=e,i=t.parentElement.parentElement.offsetWidth,a=t.parentElement.parentElement.offsetHeight,o=c.value;if(!ye.value)o===`top`||o===`bottom`?i<n&&(ye.value=!0):a<r&&(ye.value=!0);else{let{value:e}=m;if(!e)return;o===`top`||o===`bottom`?i-n>e.$el.offsetWidth&&(ye.value=!1):a-r>e.$el.offsetHeight&&(ye.value=!1)}we(h.value?.$el||null)}let be=m_(L,64);function xe(){let{onAdd:t}=e;t&&t()}let Se=N(!1);function Ce(){let e=c.value;return(e===`top`||e===`bottom`?h.value?.$el:g.value)||null}function we(e,t={instantly:!1}){if(!e)return;let n=t.instantly?p.value:null;n&&n.classList.add(`transition-disabled`);let r=c.value;if(r===`top`||r===`bottom`){let{scrollLeft:t,scrollWidth:n,offsetWidth:r}=e,i=Math.abs(t);_.value=i<=1,v.value=i+r>=n-1,Se.value=r<n-1}else{let{scrollTop:t,scrollHeight:n,offsetHeight:r}=e;_.value=t<=1,v.value=t+r>=n-1,Se.value=r<n-1}n&&(n.offsetWidth,n.classList.remove(`transition-disabled`))}let Ee=m_(e=>{we(e.target)},64);Oe(l_,{triggerRef:i(e,`trigger`),tabStyleRef:i(e,`tabStyle`),tabClassRef:i(e,`tabClass`),addTabStyleRef:i(e,`addTabStyle`),addTabClassRef:i(e,`addTabClass`),paneClassRef:i(e,`paneClass`),paneStyleRef:i(e,`paneStyle`),mergedClsPrefixRef:n,typeRef:i(e,`type`),closableRef:i(e,`closable`),valueRef:C,tabChangeIdRef:w,onBeforeLeaveRef:i(e,`onBeforeLeave`),activateTab:se,handleClose:le,handleAdd:xe}),ks(()=>{A(),ee()}),ot(()=>{let{value:e}=p;if(!e)return;let{value:t}=n,r=`${t}-tabs-nav-scroll-wrapper--shadow-start`,i=`${t}-tabs-nav-scroll-wrapper--shadow-end`;_.value?e.classList.remove(r):e.classList.add(r),v.value?e.classList.remove(i):e.classList.add(i)});let De={syncBarPosition:()=>{A()},scrollToCurrentTab:()=>{ee()}},ke=()=>{F({transitionDisabled:!0})},Ae=V(()=>{let{value:t}=b,{type:n}=e,r=`${t}${{card:`Card`,bar:`Bar`,line:`Line`,segment:`Segment`}[n]}`,{self:{barColor:i,closeIconColor:a,closeIconColorHover:o,closeIconColorPressed:s,tabColor:c,tabBorderColor:u,paneTextColor:d,tabFontWeight:f,tabBorderRadius:p,tabFontWeightActive:m,colorSegment:h,fontWeightStrong:g,tabColorSegment:_,closeSize:v,closeIconSize:y,closeColorHover:x,closeColorPressed:S,closeBorderRadius:C,[tt(`panePadding`,t)]:w,[tt(`tabPadding`,r)]:T,[tt(`tabPaddingVertical`,r)]:E,[tt(`tabGap`,r)]:D,[tt(`tabGap`,`${r}Vertical`)]:O,[tt(`tabTextColor`,n)]:k,[tt(`tabTextColorActive`,n)]:A,[tt(`tabTextColorHover`,n)]:j,[tt(`tabTextColorDisabled`,n)]:ee,[tt(`tabFontSize`,t)]:te},common:{cubicBezierEaseInOut:M}}=l.value;return{"--n-bezier":M,"--n-color-segment":h,"--n-bar-color":i,"--n-tab-font-size":te,"--n-tab-text-color":k,"--n-tab-text-color-active":A,"--n-tab-text-color-disabled":ee,"--n-tab-text-color-hover":j,"--n-pane-text-color":d,"--n-tab-border-color":u,"--n-tab-border-radius":p,"--n-close-size":v,"--n-close-icon-size":y,"--n-close-color-hover":x,"--n-close-color-pressed":S,"--n-close-border-radius":C,"--n-close-icon-color":a,"--n-close-icon-color-hover":o,"--n-close-icon-color-pressed":s,"--n-tab-color":c,"--n-tab-font-weight":f,"--n-tab-font-weight-active":m,"--n-tab-padding":T,"--n-tab-padding-vertical":E,"--n-tab-gap":D,"--n-tab-gap-vertical":O,"--n-pane-padding-left":gt(w,`left`),"--n-pane-padding-right":gt(w,`right`),"--n-pane-padding-top":gt(w,`top`),"--n-pane-padding-bottom":gt(w,`bottom`),"--n-font-weight-strong":g,"--n-tab-color-segment":_}}),je=r?fe(`tabs`,V(()=>`${b.value[0]}${e.type[0]}`),Ae,e):void 0;return{mergedClsPrefix:n,mergedValue:C,renderedNames:new Set,segmentCapsuleElRef:me,tabsPaneWrapperRef:te,tabsElRef:u,selfElRef:d,barElRef:f,addTabInstRef:m,xScrollInstRef:h,scrollWrapperElRef:p,addTabFixed:ye,tabWrapperStyle:T,handleNavResize:I,mergedSize:b,handleScroll:Ee,handleTabsResize:be,cssVars:r?void 0:Ae,themeClass:je?.themeClass,animationDirection:oe,renderNameListRef:ae,yScrollElRef:g,handleSegmentResize:ke,onAnimationBeforeLeave:re,onAnimationEnter:ie,onAnimationAfterEnter:P,onRender:je?.onRender,startReachedRef:_,endReachedRef:v,isOverflow:Se,handleButtonClick:ue,mergedTheme:l,rtlEnabled:s,mergedPlacement:c,...De}},render(){let{mergedClsPrefix:t,type:n,mergedPlacement:r,addTabFixed:i,addable:a,mergedSize:o,renderNameListRef:s,onRender:c,paneWrapperClass:l,paneWrapperStyle:u,startReachedRef:d,endReachedRef:f,isOverflow:p,showScrollButton:m,handleButtonClick:h,mergedTheme:g,rtlEnabled:_,$slots:{default:v,prefix:y,suffix:b}}=this;c?.();let x=v?hr(v()).filter(e=>e.type.__TAB_PANE__===!0):[],S=v?hr(v()).filter(e=>e.type.__TAB__===!0):[],C=!S.length,w=n===`card`,T=n===`segment`,E=!w&&!T&&this.justifyContent;s.value=[];let D=()=>{let n=(L(),H(`div`,{style:e(this.tabWrapperStyle),class:P(`${t}-tabs-wrapper`)},[E?G(()=>null):(L(),H(`div`,{key:1,class:P(`${t}-tabs-scroll-padding`),style:e(r===`top`||r===`bottom`?{width:`${this.tabsPadding}px`}:{height:`${this.tabsPadding}px`})},null,6)),C?(L(),H(K,{key:2},[G(()=>x.map((e,t)=>(s.value.push(e.props.name),b_((L(),W(f_,I(e.props,{internalCreatedByPane:!0,internalLeftPadded:t!==0&&(!E||E===`center`||E===`start`||E===`end`)}),_n(e.children?{default:e.children.tab}:void 0),1040,[`internalLeftPadded`]))))))],64)):(L(),H(K,{key:3},[G(()=>S.map((e,t)=>(s.value.push(e.props.name),b_(t!==0&&!E?y_(e):e))))],64)),!i&&a&&w?(L(),H(K,{key:4},[G(()=>v_(a,(C?x.length:S.length)!==0))],64)):G(()=>null),E?G(()=>null):(L(),H(`div`,{key:7,class:P(`${t}-tabs-scroll-padding`),style:e({width:`${this.tabsPadding}px`})},null,6)),w?G(()=>null):(L(),H(`div`,{key:9,ref:`barElRef`,class:P(`${t}-tabs-bar`)},null,2))],6));return L(),H(`div`,{ref:`tabsElRef`,class:P(`${t}-tabs-nav-scroll-content`)},[w&&a?(L(),W(xt,{key:0,onResize:this.handleTabsResize},{default:()=>n},1032,[`onResize`])):(L(),H(K,{key:1},[G(()=>n)],64)),w?(L(),H(`div`,{key:2,class:P(`${t}-tabs-pad`)},null,2)):G(()=>null)],2)},O=T?`top`:r;return L(),H(`div`,{ref:`selfElRef`,class:P([`${t}-tabs`,this.themeClass,`${t}-tabs--${n}-type`,`${t}-tabs--${o}-size`,E&&`${t}-tabs--flex`,`${t}-tabs--${O}`,_&&`${t}-tabs--rtl`]),style:e(this.cssVars)},[q(`div`,{class:P([`${t}-tabs-nav--${n}-type`,`${t}-tabs-nav--${O}`,`${t}-tabs-nav`])},[G(()=>Lt(y,e=>e&&(L(),H(`div`,{class:P(`${t}-tabs-nav__prefix`)},[G(()=>e)],2)))),T?(L(),W(xt,{key:0,onResize:this.handleSegmentResize},{default:()=>(L(),H(`div`,{class:P(`${t}-tabs-rail`),ref:`tabsElRef`},[q(`div`,{class:P(`${t}-tabs-capsule`),ref:`segmentCapsuleElRef`},[q(`div`,{class:P(`${t}-tabs-wrapper`)},[q(`div`,{class:P(`${t}-tabs-tab`)},null,2)],2)],2),C?(L(),H(K,{key:0},[G(()=>x.map((e,t)=>(s.value.push(e.props.name),L(),W(f_,I(e.props,{internalCreatedByPane:!0,internalLeftPadded:t!==0}),_n(e.children?{default:e.children.tab}:void 0),1040,[`internalLeftPadded`]))))],64)):(L(),H(K,{key:1},[G(()=>S.map((e,t)=>(s.value.push(e.props.name),t===0?e:y_(e))))],64))],2))},1032,[`onResize`])):(L(),H(K,{key:1},[G(()=>m&&p&&(L(),W(p_,{mergedClsPrefix:t,type:`prev`,vertical:O===`left`||O===`right`,disabled:d,rtl:!!_,theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,onClick:h},null,8,[`mergedClsPrefix`,`vertical`,`disabled`,`rtl`,`theme`,`themeOverrides`,`onClick`]))),(L(),W(xt,{onResize:this.handleNavResize},{default:()=>(L(),H(`div`,{class:P(`${t}-tabs-nav-scroll-wrapper`),ref:`scrollWrapperElRef`},[[`top`,`bottom`].includes(O)?(L(),W(tae,{key:0,ref:`xScrollInstRef`,onScroll:this.handleScroll},{default:D},1032,[`onScroll`])):(L(),H(`div`,{key:1,class:P(`${t}-tabs-nav-y-scroll`),onScroll:this.handleScroll,ref:`yScrollElRef`},[G(()=>D())],42,[`onScroll`]))],2))},1032,[`onResize`])),G(()=>m&&p&&(L(),W(p_,{mergedClsPrefix:t,type:`next`,vertical:O===`left`||O===`right`,disabled:f,rtl:!!_,theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,onClick:h},null,8,[`mergedClsPrefix`,`vertical`,`disabled`,`rtl`,`theme`,`themeOverrides`,`onClick`])))],64)),i&&a&&w?(L(),H(K,{key:2},[G(()=>v_(a,!0))],64)):G(()=>null),G(()=>Lt(b,e=>e&&(L(),H(`div`,{class:P(`${t}-tabs-nav__suffix`)},[G(()=>e)],2))))],2),G(()=>C&&(this.animated&&(O===`top`||O===`bottom`)?(L(),H(`div`,{key:1,ref:`tabsPaneWrapperRef`,style:e(u),class:P([`${t}-tabs-pane-wrapper`,l])},[G(()=>__(x,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection))],6)):__(x,this.mergedValue,this.renderedNames)))],6)}});function __(e,t,n,r,i,a,o){let s=[];return e.forEach(e=>{let{name:r,displayDirective:i,"display-directive":a}=e.props,o=e=>i===e||a===e,c=t===r;if(e.key!==void 0&&(e.key=r),c||o(`show`)||o(`show:lazy`)&&n.has(r)){n.has(r)||n.add(r);let t=!o(`if`);s.push(t?Se(e,[[Vt,c]]):e)}}),o?(L(),W(tn,{name:`${o}-transition`,onBeforeLeave:r,onEnter:i,onAfterEnter:a},{default:()=>s},1032,[`name`,`onBeforeLeave`,`onEnter`,`onAfterEnter`])):s}function v_(e,t){return L(),W(f_,{ref:`addTabInstRef`,key:`__addable`,name:`__addable`,internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e==`object`&&e.disabled},null,8,[`internalLeftPadded`,`disabled`])}function y_(e){let t=At(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function b_(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes(`internalLeftPadded`)||e.dynamicProps.push(`internalLeftPadded`):e.dynamicProps=[`internalLeftPadded`],e}function cge(e){let{textColor3:t,infoColor:n,errorColor:r,successColor:i,warningColor:a,textColor1:o,textColor2:s,railColor:c,fontWeightStrong:l,fontSize:u}=e;return{...dg,contentFontSize:u,titleFontWeight:l,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${n}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${i}`,circleBorderWarning:`2px solid ${a}`,iconColor:t,iconColorInfo:n,iconColorError:r,iconColorSuccess:i,iconColorWarning:a,titleTextColor:o,contentTextColor:s,metaTextColor:t,lineColor:c}}var lge={name:`Timeline`,common:_e,self:cge};function uge(e){let{fontWeight:t,fontSizeLarge:n,fontSizeMedium:r,fontSizeSmall:i,heightLarge:a,heightMedium:o,borderRadius:s,cardColor:c,tableHeaderColor:l,textColor1:u,textColorDisabled:d,textColor2:f,textColor3:p,borderColor:m,hoverColor:h,closeColorHover:g,closeColorPressed:_,closeIconColor:v,closeIconColorHover:y,closeIconColorPressed:b}=e;return{...fg,itemHeightSmall:o,itemHeightMedium:o,itemHeightLarge:a,fontSizeSmall:i,fontSizeMedium:r,fontSizeLarge:n,borderRadius:s,dividerColor:m,borderColor:m,listColor:c,headerColor:Ue(c,l),titleTextColor:u,titleTextColorDisabled:d,extraTextColor:p,extraTextColorDisabled:d,itemTextColor:f,itemTextColorDisabled:d,itemColorPending:h,titleFontWeight:t,closeColorHover:g,closeColorPressed:_,closeIconColor:v,closeIconColorHover:y,closeIconColorPressed:b}}var dge=En({name:`Transfer`,common:_e,peers:{Checkbox:Vd,Scrollbar:Cn,Input:Sr,Empty:ls,Button:xr},self:uge});function x_(e){return V(()=>e.leafOnly?`child`:e.checkStrategy)}function S_(e,t){return!!e.rawNode[t]}function C_(e,t,n,r){e?.forEach(e=>{n(e),C_(e[t],t,n,r),r(e)})}function fge(e,t,n,r,i){let a=new Set,o=new Set,s=[];return C_(e,r,e=>{if(s.push(e),i(t,e)){o.add(e[n]);for(let e=s.length-2;e>=0;--e)if(!a.has(s[e][n]))a.add(s[e][n]);else return}},()=>{s.pop()}),{expandedKeys:Array.from(a),highlightKeySet:o}}if(Pr&&Image){let e=new Image;e.src=`data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==`}function pge(e,t,n,r,i){let a=new Set,o=new Set,s=new Set,c=[],l=[],u=[];function d(e){e.forEach(e=>{if(u.push(e),t(n,e)){a.add(e[r]),s.add(e[r]);for(let e=u.length-2;e>=0;--e){let t=u[e][r];if(!o.has(t))o.add(t),a.has(t)&&a.delete(t);else break}}let c=e[i];c&&d(c),u.pop()})}d(e);function f(e,t){e.forEach(e=>{let n=e[r],s=a.has(n),l=o.has(n);if(!s&&!l)return;let u=e[i];if(u){if(s)t.push(e);else{c.push(n);let r={...e,[i]:[]};t.push(r),f(u,r[i])}}else t.push(e)})}return f(e,l),{filteredTree:l,highlightKeySet:s,expandedKeys:c}}function w_(e){return typeof e==`string`?`s-${e}`:`n-${e}`}var T_=bn(`n-tree-select`);function E_({position:t,offsetLevel:n,indent:r,el:i}){let a={position:`absolute`,boxSizing:`border-box`,right:0};if(t===`inside`)a.left=0,a.top=0,a.bottom=0,a.borderRadius=`inherit`,a.boxShadow=`inset 0 0 0 2px var(--n-drop-mark-color)`;else{let e=t===`before`?`top`:`bottom`;a[e]=0,a.left=`${i.offsetLeft+6-n*r}px`,a.height=`2px`,a.backgroundColor=`var(--n-drop-mark-color)`,a.transformOrigin=e,a.borderRadius=`1px`,a.transform=t===`before`?`translateY(-4px)`:`translateY(4px)`}return L(),H(`div`,{style:e(a)},null,4)}function mge({dropPosition:e,node:t}){return t.isLeaf===!1||t.children?!0:e!==`inside`}var D_=bn(`n-tree`);function hge({props:e,fNodesRef:t,mergedExpandedKeysRef:n,mergedSelectedKeysRef:r,mergedCheckedKeysRef:i,handleCheck:a,handleSelect:o,handleSwitcherClick:s}){let{value:c}=r,l=pe(T_,null),u=l?l.pendingNodeKeyRef:N(c.length?c[c.length-1]:null);function d(r){if(!e.keyboard)return{enterBehavior:null};let{value:c}=u,l=null;if(c===null){if((r.key===`ArrowDown`||r.key===`ArrowUp`)&&r.preventDefault(),[`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`].includes(r.key)&&c===null){let{value:e}=t,n=0;for(;n<e.length;){if(!e[n].disabled){u.value=e[n].key;break}n+=1}}}else{let{value:d}=t,f=d.findIndex(e=>e.key===c);if(!~f)return{enterBehavior:null};if(r.key===`Enter`){let t=d[f];switch(l=e.overrideDefaultNodeClickBehavior?.({option:t.rawNode})||null,l){case`toggleCheck`:a(t,!i.value.includes(t.key));break;case`toggleSelect`:o(t);break;case`toggleExpand`:s(t);break;case`none`:break;default:l=`default`,o(t)}}else if(r.key===`ArrowDown`)for(r.preventDefault(),f+=1;f<d.length;){if(!d[f].disabled){u.value=d[f].key;break}f+=1}else if(r.key===`ArrowUp`)for(r.preventDefault(),--f;f>=0;){if(!d[f].disabled){u.value=d[f].key;break}--f}else if(r.key===`ArrowLeft`){let e=d[f];if(e.isLeaf||!n.value.includes(c)){let t=e.getParent();t&&(u.value=t.key)}else s(e)}else if(r.key===`ArrowRight`){let e=d[f];if(e.isLeaf)return{enterBehavior:null};if(!n.value.includes(c))s(e);else for(f+=1;f<d.length;){if(!d[f].disabled){u.value=d[f].key;break}f+=1}}}return{enterBehavior:l}}return{pendingNodeKeyRef:u,handleKeydown:d}}var gge=Y({name:`NTreeNodeCheckbox`,props:{clsPrefix:{type:String,required:!0},indent:{type:Number,required:!0},right:Boolean,focusable:Boolean,disabled:Boolean,checked:Boolean,indeterminate:Boolean,onCheck:Function},setup(e){let t=pe(D_);function n(t){let{onCheck:n}=e;n&&n(t)}function r(e){n(e)}return{handleUpdateValue:r,mergedTheme:t.mergedThemeRef}},render(){let{clsPrefix:t,mergedTheme:n,checked:r,indeterminate:i,disabled:a,focusable:o,indent:s,handleUpdateValue:c}=this;return L(),H(`span`,{class:P([`${t}-tree-node-checkbox`,this.right&&`${t}-tree-node-checkbox--right`]),style:e({width:`${s}px`}),"data-checkbox":!0},[(L(),W(Kd,{focusable:o,disabled:a,theme:n.peers.Checkbox,themeOverrides:n.peerOverrides.Checkbox,checked:r,indeterminate:i,onUpdateChecked:c},null,8,[`focusable`,`disabled`,`theme`,`themeOverrides`,`checked`,`indeterminate`,`onUpdateChecked`]))],6)}}),_ge=[`onClick`,`draggable`,`onDragstart`],vge=Y({name:`TreeNodeContent`,props:{clsPrefix:{type:String,required:!0},disabled:Boolean,checked:Boolean,selected:Boolean,onClick:Function,onDragstart:Function,tmNode:{type:Object,required:!0},nodeProps:Object},setup(e){let{renderLabelRef:t,renderPrefixRef:n,renderSuffixRef:r,labelFieldRef:i}=pe(D_),a=N(null);function o(t){let{onClick:n}=e;n&&n(t)}function s(e){o(e)}return{selfRef:a,renderLabel:t,renderPrefix:n,renderSuffix:r,labelField:i,handleClick:s}},render(){let{clsPrefix:e,labelField:t,nodeProps:n,checked:r=!1,selected:i=!1,renderLabel:a,renderPrefix:o,renderSuffix:s,handleClick:c,onDragstart:l,tmNode:{rawNode:u,rawNode:{prefix:d,suffix:f,[t]:p}}}=this;return L(),H(`span`,I(n,{ref:`selfRef`,class:[`${e}-tree-node-content`,n?.class],onClick:c,draggable:l!==void 0||void 0,onDragstart:l}),[o||d?(L(),H(`div`,{key:0,class:P(`${e}-tree-node-content__prefix`)},[o?(L(),H(K,{key:0},[G(()=>o({option:u,selected:i,checked:r}))],64)):(L(),H(K,{key:1},[G(()=>ol(d))],64))],2)):G(()=>null),q(`div`,{class:P(`${e}-tree-node-content__text`)},[a?(L(),H(K,{key:0},[G(()=>a({option:u,selected:i,checked:r}))],64)):(L(),H(K,{key:1},[G(()=>ol(p))],64))],2),s||f?(L(),H(`div`,{key:2,class:P(`${e}-tree-node-content__suffix`)},[s?(L(),H(K,{key:0},[G(()=>s({option:u,selected:i,checked:r}))],64)):(L(),H(K,{key:1},[G(()=>ol(f))],64))],2)):G(()=>null)],16,_ge)}}),yge=Y({name:`Switcher`,render(){return(()=>{let e=Ye(`d16928020f032440`);return e[0]||=q(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`},[q(`path`,{d:`M12 8l10 8l-10 8z`})],-1)})()}}),bge=[`onClick`],xge=Y({name:`NTreeSwitcher`,props:{clsPrefix:{type:String,required:!0},indent:{type:Number,required:!0},expanded:Boolean,selected:Boolean,hide:Boolean,loading:Boolean,onClick:Function,tmNode:{type:Object,required:!0}},setup(t){let{renderSwitcherIconRef:n,spinPropsRef:r}=pe(D_,null);return()=>{let{clsPrefix:i,expanded:a,hide:o,indent:s,onClick:c}=t;return L(),H(`span`,{"data-switcher":!0,class:P([`${i}-tree-node-switcher`,a&&`${i}-tree-node-switcher--expanded`,o&&`${i}-tree-node-switcher--hide`]),style:e({width:`${s}px`}),onClick:c},[q(`div`,{class:P(`${i}-tree-node-switcher__icon`)},[J(ar,null,{default:()=>{if(t.loading)return L(),W(ir,I({clsPrefix:i,key:`loading`,radius:85,strokeWidth:20},r?.value),null,16,[`clsPrefix`]);let{value:e}=n;return e?e({expanded:t.expanded,selected:t.selected,option:t.tmNode.rawNode}):(L(),W(wt,{clsPrefix:i,key:`switcher`},{default:()=>(L(),W(yge))},1032,[`clsPrefix`]))}},1024)],2)],14,bge)}}}),Sge=[`data-key`,`draggable`,`onClick`,`onDragstart`],O_=Y({name:`TreeNode`,props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(t){let n=pe(D_),{droppingNodeParentRef:r,droppingMouseNodeRef:i,draggingNodeRef:a,droppingPositionRef:o,droppingOffsetLevelRef:s,nodePropsRef:c,indentRef:l,blockLineRef:u,checkboxPlacementRef:d,checkOnClickRef:f,disabledFieldRef:p,showLineRef:m,renderSwitcherIconRef:h,overrideDefaultNodeClickBehaviorRef:g}=n,_=dr(()=>!!t.tmNode.rawNode.checkboxDisabled),v=dr(()=>S_(t.tmNode,p.value)),y=dr(()=>n.disabledRef.value||v.value),b=V(()=>{let{value:e}=c;if(e)return e({option:t.tmNode.rawNode})}),x=N(null),S={value:null};Ve(()=>{S.value=x.value.$el});function C(){let e=()=>{let{tmNode:e}=t;if(!e.isLeaf&&!e.shallowLoaded){if(!n.loadingKeysRef.value.has(e.key))n.loadingKeysRef.value.add(e.key);else return;let{onLoadRef:{value:t}}=n;t&&t(e.rawNode).then(t=>{t!==!1&&n.handleSwitcherClick(e)}).finally(()=>{n.loadingKeysRef.value.delete(e.key)})}else n.handleSwitcherClick(e)};h.value?setTimeout(e,0):e()}let w=dr(()=>!v.value&&n.selectableRef.value&&(!n.internalTreeSelect||n.mergedCheckStrategyRef.value!==`child`||n.multipleRef.value&&n.cascadeRef.value||t.tmNode.isLeaf)),T=dr(()=>n.checkableRef.value&&(n.cascadeRef.value||n.mergedCheckStrategyRef.value!==`child`||t.tmNode.isLeaf)),E=dr(()=>n.displayedCheckedKeysRef.value.includes(t.tmNode.key)),D=dr(()=>{let{value:e}=T;if(!e)return!1;let{value:n}=f,{tmNode:r}=t;return typeof n==`boolean`?!r.disabled&&n:n(t.tmNode.rawNode)});function O(e){let{value:r}=n.expandOnClickRef,{value:i}=w,{value:a}=D;if(!i&&!r&&!a||ts(e,`checkbox`)||ts(e,`switcher`))return;let{tmNode:o}=t;i&&n.handleSelect(o),r&&!o.isLeaf&&C(),a&&ee(!E.value)}function k(e){if(!(ts(e,`checkbox`)||ts(e,`switcher`))){if(!y.value){let r=g.value,i=!1;if(r)switch(r({option:t.tmNode.rawNode})){case`toggleCheck`:i=!0,ee(!E.value);break;case`toggleSelect`:i=!0,n.handleSelect(t.tmNode);break;case`toggleExpand`:i=!0,C(),i=!0;break;case`none`:i=!0,i=!0;return}i||O(e)}b.value?.onClick?.(e)}}function A(e){u.value||k(e)}function j(e){u.value&&k(e)}function ee(e){n.handleCheck(t.tmNode,e)}function te(e){n.handleDragStart({event:e,node:t.tmNode})}function M(e){e.currentTarget===e.target&&n.handleDragEnter({event:e,node:t.tmNode})}function ne(e){e.preventDefault(),n.handleDragOver({event:e,node:t.tmNode})}function re(e){n.handleDragEnd({event:e,node:t.tmNode})}function ie(e){e.currentTarget===e.target&&n.handleDragLeave({event:e,node:t.tmNode})}function ae(e){e.preventDefault(),o.value!==null&&n.handleDrop({event:e,node:t.tmNode,dropPosition:o.value})}let oe=V(()=>{let{clsPrefix:n}=t,{value:r}=l;if(m.value){let i=[],a=t.tmNode.parent;for(;a;)a.isLastChild?i.push((L(),H(`div`,{key:1,class:P(`${n}-tree-node-indent`)},[q(`div`,{style:e({width:`${r}px`})},null,4)],2))):i.push((L(),H(`div`,{key:2,class:P([`${n}-tree-node-indent`,`${n}-tree-node-indent--show-line`])},[q(`div`,{style:e({width:`${r}px`})},null,4)],2))),a=a.parent;return i.reverse()}return rr(t.tmNode.level,(L(),H(`div`,{key:3,class:P(`${t.clsPrefix}-tree-node-indent`)},[q(`div`,{style:e({width:`${r}px`})},null,4)],2)))});return{showDropMark:dr(()=>{let{value:e}=a;if(!e)return;let{value:n}=o;if(!n)return;let{value:r}=i;if(!r)return;let{tmNode:s}=t;return s.key===r.key}),showDropMarkAsParent:dr(()=>{let{value:e}=r;if(!e)return!1;let{tmNode:n}=t,{value:i}=o;return i===`before`||i===`after`?e.key===n.key:!1}),pending:dr(()=>n.pendingNodeKeyRef.value===t.tmNode.key),loading:dr(()=>n.loadingKeysRef.value.has(t.tmNode.key)),highlight:dr(()=>n.highlightKeySetRef.value?.has(t.tmNode.key)),checked:E,indeterminate:dr(()=>n.displayedIndeterminateKeysRef.value.includes(t.tmNode.key)),selected:dr(()=>n.mergedSelectedKeysRef.value.includes(t.tmNode.key)),expanded:dr(()=>n.mergedExpandedKeysRef.value.includes(t.tmNode.key)),disabled:y,checkable:T,mergedCheckOnClick:D,checkboxDisabled:_,selectable:w,expandOnClick:n.expandOnClickRef,internalScrollable:n.internalScrollableRef,draggable:n.draggableRef,blockLine:u,nodeProps:b,checkboxFocusable:n.internalCheckboxFocusableRef,droppingPosition:o,droppingOffsetLevel:s,indent:l,checkboxPlacement:d,showLine:m,contentInstRef:x,contentElRef:S,indentNodes:oe,handleCheck:ee,handleDrop:ae,handleDragStart:te,handleDragEnter:M,handleDragOver:ne,handleDragEnd:re,handleDragLeave:ie,handleLineClick:j,handleContentClick:A,handleSwitcherClick:C}},render(){let{tmNode:t,clsPrefix:n,checkable:r,expandOnClick:i,selectable:a,selected:o,checked:s,highlight:c,draggable:l,blockLine:u,indent:d,indentNodes:f,disabled:p,pending:m,internalScrollable:h,nodeProps:g,checkboxPlacement:_}=this,v=l&&!p?{onDragenter:this.handleDragEnter,onDragleave:this.handleDragLeave,onDragend:this.handleDragEnd,onDrop:this.handleDrop,onDragover:this.handleDragOver}:void 0,y=h?w_(t.key):void 0,b=_===`right`,x=r?(L(),W(gge,{key:4,indent:d,right:b,focusable:this.checkboxFocusable,disabled:p||this.checkboxDisabled,clsPrefix:n,checked:this.checked,indeterminate:this.indeterminate,onCheck:this.handleCheck},null,8,[`indent`,`right`,`focusable`,`disabled`,`clsPrefix`,`checked`,`indeterminate`,`onCheck`])):null;return L(),H(`div`,I({class:`${n}-tree-node-wrapper`},v),[q(`div`,I(u?g:void 0,{class:[`${n}-tree-node`,{[`${n}-tree-node--selected`]:o,[`${n}-tree-node--checkable`]:r,[`${n}-tree-node--highlight`]:c,[`${n}-tree-node--pending`]:m,[`${n}-tree-node--disabled`]:p,[`${n}-tree-node--selectable`]:a,[`${n}-tree-node--clickable`]:a||i||this.mergedCheckOnClick},g?.class],"data-key":y,draggable:l&&u,onClick:this.handleLineClick,onDragstart:l&&u&&!p?this.handleDragStart:void 0}),[G(()=>f),t.isLeaf&&this.showLine?(L(),H(`div`,{key:0,class:P([`${n}-tree-node-indent`,`${n}-tree-node-indent--show-line`,t.isLeaf&&`${n}-tree-node-indent--is-leaf`,t.isLastChild&&`${n}-tree-node-indent--last-child`])},[q(`div`,{style:e({width:`${d}px`})},null,4)],2)):(L(),W(xge,{key:1,clsPrefix:n,expanded:this.expanded,selected:o,loading:this.loading,hide:t.isLeaf,tmNode:this.tmNode,indent:d,onClick:this.handleSwitcherClick},null,8,[`clsPrefix`,`expanded`,`selected`,`loading`,`hide`,`tmNode`,`indent`,`onClick`])),b?G(()=>null):(L(),H(K,{key:2},[G(()=>x)],64)),(L(),W(vge,{ref:`contentInstRef`,clsPrefix:n,checked:s,selected:o,onClick:this.handleContentClick,nodeProps:u?void 0:g,onDragstart:l&&!u&&!p?this.handleDragStart:void 0,tmNode:t},null,8,[`clsPrefix`,`checked`,`selected`,`onClick`,`nodeProps`,`onDragstart`,`tmNode`])),l?(L(),H(K,{key:4},[this.showDropMark?(L(),H(K,{key:0},[G(()=>E_({el:this.contentElRef.value,position:this.droppingPosition,offsetLevel:this.droppingOffsetLevel,indent:d}))],64)):(L(),H(K,{key:1},[this.showDropMarkAsParent?(L(),H(K,{key:0},[G(()=>E_({el:this.contentElRef.value,position:`inside`,offsetLevel:this.droppingOffsetLevel,indent:d}))],64)):G(()=>null)],64))],64)):G(()=>null),b?(L(),H(K,{key:6},[G(()=>x)],64)):G(()=>null)],16,Sge)],16)}}),Cge=Y({name:`TreeMotionWrapper`,props:{clsPrefix:{type:String,required:!0},height:Number,nodes:{type:Array,required:!0},mode:{type:String,required:!0},onAfterEnter:{type:Function,required:!0}},render(){let{clsPrefix:t}=this;return L(),W(Tr,{onAfterEnter:this.onAfterEnter,appear:!0,reverse:this.mode===`collapse`},{default:()=>(L(),H(`div`,{class:P([`${t}-tree-motion-wrapper`,`${t}-tree-motion-wrapper--${this.mode}`]),style:e({height:mt(this.height)})},[G(()=>this.nodes.map(e=>(L(),W(O_,{clsPrefix:t,tmNode:e},null,8,[`clsPrefix`,`tmNode`]))))],6))},1032,[`onAfterEnter`,`reverse`])}}),k_=or(),wge=z(`tree`,`
font-size: var(--n-font-size);
outline: none;
`,[U(`ul, li`,`
margin: 0;
padding: 0;
list-style: none;
`),U(`>`,[z(`tree-node`,[U(`&:first-child`,`margin-top: 0;`)])]),z(`tree-motion-wrapper`,[B(`expand`,[nr({duration:`0.2s`})]),B(`collapse`,[nr({duration:`0.2s`,reverse:!0})])]),z(`tree-node-wrapper`,`
box-sizing: border-box;
padding: var(--n-node-wrapper-padding);
`),z(`tree-node`,`
position: relative;
display: flex;
border-radius: var(--n-node-border-radius);
transition: background-color .3s var(--n-bezier);
`,[B(`highlight`,[z(`tree-node-content`,[X(`text`,`border-bottom-color: var(--n-node-text-color-disabled);`)])]),B(`disabled`,[z(`tree-node-content`,`
color: var(--n-node-text-color-disabled);
cursor: not-allowed;
`)]),On(`disabled`,[B(`clickable`,[z(`tree-node-content`,`
cursor: pointer;
`)])])]),B(`block-node`,[z(`tree-node-content`,`
flex: 1;
min-width: 0;
`)]),On(`block-line`,[z(`tree-node`,[On(`disabled`,[z(`tree-node-content`,[U(`&:hover`,`background: var(--n-node-color-hover);`)]),B(`selectable`,[z(`tree-node-content`,[U(`&:active`,`background: var(--n-node-color-pressed);`)])]),B(`pending`,[z(`tree-node-content`,`
background: var(--n-node-color-hover);
`)]),B(`selected`,[z(`tree-node-content`,`background: var(--n-node-color-active);`)])]),B(`selected`,[z(`tree-node-content`,`background: var(--n-node-color-active);`)])])]),B(`block-line`,[z(`tree-node`,[On(`disabled`,[U(`&:hover`,`background: var(--n-node-color-hover);`),B(`pending`,`
background: var(--n-node-color-hover);
`),B(`selectable`,[On(`selected`,[U(`&:active`,`background: var(--n-node-color-pressed);`)])]),B(`selected`,`background: var(--n-node-color-active);`)]),B(`selected`,`background: var(--n-node-color-active);`),B(`disabled`,`
cursor: not-allowed;
`)])]),B(`ellipsis`,[z(`tree-node`,[z(`tree-node-content`,`
overflow: hidden;
`,[X(`text`,`
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
`)])])]),z(`tree-node-indent`,`
flex-grow: 0;
flex-shrink: 0;
`,[B(`show-line`,`position: relative`,[U(`&::before`,`
position: absolute;
left: 50%;
border-left: 1px solid var(--n-line-color);
transition: border-color .3s var(--n-bezier);
transform: translate(-50%);
content: "";
top: var(--n-line-offset-top);
bottom: var(--n-line-offset-bottom);
`),B(`last-child`,[U(`&::before`,`
bottom: 50%;
`)]),B(`is-leaf`,[U(`&::after`,`
position: absolute;
content: "";
left: calc(50% + 0.5px);
right: 0;
bottom: 50%;
transition: border-color .3s var(--n-bezier);
border-bottom: 1px solid var(--n-line-color);
`)])]),On(`show-line`,`height: 0;`)]),z(`tree-node-switcher`,`
cursor: pointer;
display: inline-flex;
flex-shrink: 0;
height: var(--n-node-content-height);
align-items: center;
justify-content: center;
transition: transform .15s var(--n-bezier);
vertical-align: bottom;
`,[X(`icon`,`
position: relative;
height: 14px;
width: 14px;
display: flex;
color: var(--n-arrow-color);
transition: color .3s var(--n-bezier);
font-size: 14px;
`,[z(`icon`,[k_]),z(`base-loading`,`
color: var(--n-loading-color);
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
`,[k_]),z(`base-icon`,[k_])]),B(`hide`,`visibility: hidden;`),B(`expanded`,`transform: rotate(90deg);`)]),z(`tree-node-checkbox`,`
display: inline-flex;
height: var(--n-node-content-height);
vertical-align: bottom;
align-items: center;
justify-content: center;
`),z(`tree-node-content`,`
user-select: none;
position: relative;
display: inline-flex;
align-items: center;
min-height: var(--n-node-content-height);
box-sizing: border-box;
line-height: var(--n-line-height);
vertical-align: bottom;
padding: 0 6px 0 4px;
cursor: default;
border-radius: var(--n-node-border-radius);
color: var(--n-node-text-color);
transition:
color .3s var(--n-bezier),
background-color .3s var(--n-bezier),
border-color .3s var(--n-bezier);
`,[U(`&:last-child`,`margin-bottom: 0;`),X(`prefix`,`
display: inline-flex;
margin-right: 8px;
`),X(`text`,`
border-bottom: 1px solid #0000;
transition: border-color .3s var(--n-bezier);
flex-grow: 1;
max-width: 100%;
`),X(`suffix`,`
display: inline-flex;
`)]),X(`empty`,`margin: auto;`)]),Tge=[`onDragleave`],Ege=[`tabindex`,`onKeydown`,`onFocusout`,`onDragleave`];function A_(e,t,n,r){return{getIsGroup(){return!1},getKey(t){return t[e]},getChildren:r||(e=>e[t]),getDisabled(e){return!!(e[n]||e.checkboxDisabled)}}}var j_={allowCheckingNotLoaded:Boolean,filter:Function,defaultExpandAll:Boolean,expandedKeys:Array,keyField:{type:String,default:`key`},labelField:{type:String,default:`label`},childrenField:{type:String,default:`children`},disabledField:{type:String,default:`disabled`},defaultExpandedKeys:{type:Array,default:()=>[]},indent:{type:Number,default:24},indeterminateKeys:Array,renderSwitcherIcon:Function,onUpdateIndeterminateKeys:[Function,Array],"onUpdate:indeterminateKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],"onUpdate:expandedKeys":[Function,Array],overrideDefaultNodeClickBehavior:Function},Dge={...$e.props,accordion:Boolean,showIrrelevantNodes:{type:Boolean,default:!0},data:{type:Array,default:()=>[]},expandOnDragenter:{type:Boolean,default:!0},expandOnClick:Boolean,checkOnClick:{type:[Boolean,Function],default:!1},cancelable:{type:Boolean,default:!0},checkable:Boolean,draggable:Boolean,blockNode:Boolean,blockLine:Boolean,showLine:Boolean,disabled:Boolean,checkedKeys:Array,defaultCheckedKeys:{type:Array,default:()=>[]},selectedKeys:Array,defaultSelectedKeys:{type:Array,default:()=>[]},multiple:Boolean,pattern:{type:String,default:``},onLoad:Function,cascade:Boolean,selectable:{type:Boolean,default:!0},scrollbarProps:Object,allowDrop:{type:Function,default:mge},animated:{type:Boolean,default:!0},ellipsis:Boolean,checkboxPlacement:{type:String,default:`left`},virtualScroll:Boolean,watchProps:Array,renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,keyboard:{type:Boolean,default:!0},getChildren:Function,onDragenter:[Function,Array],onDragleave:[Function,Array],onDragend:[Function,Array],onDragstart:[Function,Array],onDragover:[Function,Array],onDrop:[Function,Array],onUpdateCheckedKeys:[Function,Array],"onUpdate:checkedKeys":[Function,Array],onUpdateSelectedKeys:[Function,Array],"onUpdate:selectedKeys":[Function,Array],...j_,internalTreeSelect:Boolean,internalScrollable:Boolean,internalScrollablePadding:String,internalRenderEmpty:Function,internalHighlightKeySet:Object,internalUnifySelectCheck:Boolean,internalCheckboxFocusable:{type:Boolean,default:!0},internalFocusable:{type:Boolean,default:!0},checkStrategy:{type:String,default:`all`},spinProps:Object,leafOnly:Boolean},M_=Y({name:`Tree`,props:Dge,slots:Object,setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r,mergedComponentPropsRef:a}=mn(e),o=vn(`Tree`,r,t),s=$e(`Tree`,`-tree`,wge,mg,e,t),c=V(()=>a?.value?.Tree?.renderEmpty),l=N(null),u=N(null),d=N(null);function f(){return d.value?.listElRef}function p(){return d.value?.itemsElRef}let m=V(()=>{let{filter:t}=e;if(t)return t;let{labelField:n}=e;return(e,t)=>{if(!e.length)return!0;let r=t[n];return typeof r==`string`&&r.toLowerCase().includes(e.toLowerCase())}}),h=V(()=>{let{pattern:t}=e;return!t||!t.length||!m.value?{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}:pge(e.data,m.value,t,e.keyField,e.childrenField)}),g=V(()=>Dl(e.showIrrelevantNodes?e.data:h.value.filteredTree,A_(e.keyField,e.childrenField,e.disabledField,e.getChildren))),_=pe(T_,null),v=e.internalTreeSelect?_.dataTreeMate:V(()=>e.showIrrelevantNodes?g.value:Dl(e.data,A_(e.keyField,e.childrenField,e.disabledField,e.getChildren))),{watchProps:y}=e,b=N([]);y?.includes(`defaultCheckedKeys`)?ot(()=>{b.value=e.defaultCheckedKeys}):b.value=e.defaultCheckedKeys;let x=i(e,`checkedKeys`),S=lr(x,b),C=V(()=>v.value.getCheckedKeys(S.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})),w=x_(e),T=V(()=>C.value.checkedKeys),E=V(()=>{let{indeterminateKeys:t}=e;return t===void 0?C.value.indeterminateKeys:t}),D=N([]);y?.includes(`defaultSelectedKeys`)?ot(()=>{D.value=e.defaultSelectedKeys}):D.value=e.defaultSelectedKeys;let O=i(e,`selectedKeys`),k=lr(O,D),A=N([]),j=t=>{A.value=e.defaultExpandAll?v.value.getNonLeafKeys():t===void 0?e.defaultExpandedKeys:t};y?.includes(`defaultExpandedKeys`)?ot(()=>{j(void 0)}):ot(()=>{j(e.defaultExpandedKeys)});let ee=i(e,`expandedKeys`),te=lr(ee,A),M=V(()=>g.value.getFlattenedNodes(te.value)),{pendingNodeKeyRef:ne,handleKeydown:re}=hge({props:e,mergedCheckedKeysRef:S,mergedSelectedKeysRef:k,fNodesRef:M,mergedExpandedKeysRef:te,handleCheck:Ge,handleSelect:Je,handleSwitcherClick:qe}),ie=null,P=null,ae=N(new Set),oe=V(()=>e.internalHighlightKeySet||h.value.highlightKeySet),se=lr(oe,ae),ce=N(new Set),le=V(()=>te.value.filter(e=>!ce.value.has(e))),ue=0,de=N(null),me=N(null),F=N(null),ge=N(null),_e=N(0),I=V(()=>{let{value:e}=me;return e?e.parent:null}),ve=!1;Te(i(e,`data`),()=>{ve=!0,he(()=>{ve=!1}),ce.value.clear(),ne.value=null,Ve()},{deep:!1});let ye=!1,L=()=>{ye=!0,he(()=>{ye=!1})},be;Te(i(e,`pattern`),(t,n)=>{if(e.showIrrelevantNodes){if(be=void 0,t){let{expandedKeys:t,highlightKeySet:n}=fge(e.data,e.pattern,e.keyField,e.childrenField,m.value);ae.value=n,L(),je(t,Ae(t),{node:null,action:`filter`})}else ae.value=new Set}else if(!t.length)be!==void 0&&(L(),je(be,Ae(be),{node:null,action:`filter`}));else{n.length||(be=te.value);let{expandedKeys:e}=h.value;e!==void 0&&(L(),je(e,Ae(e),{node:null,action:`filter`}))}});async function xe(t){let{onLoad:n}=e;if(!n){await Promise.resolve();return}let{value:r}=ce;if(!r.has(t.key)){r.add(t.key);try{await n(t.rawNode)===!1&&We()}catch{We()}r.delete(t.key)}}ot(()=>{let{value:e}=g;if(!e)return;let{getNode:t}=e;te.value?.forEach(e=>{let n=t(e);n&&!n.shallowLoaded&&xe(n)})});let Se=N(!1),Ce=N([]);Te(le,(t,n)=>{if(!e.animated||ye){he(De);return}if(ve)return;let r=sn(s.value.self.nodeHeight),i=new Set(n),a=null,o=null;for(let e of t)if(!i.has(e)){if(a!==null)return;a=e}let c=new Set(t);for(let e of n)if(!c.has(e)){if(o!==null)return;o=e}if(a===null&&o===null)return;let{virtualScroll:u}=e,f=(u?d.value.listElRef:l.value).offsetHeight,p=Math.ceil(f/r)+1,m;if(a!==null&&(m=n),o!==null&&(m=m===void 0?t:m.filter(e=>e!==o)),Se.value=!0,Ce.value=g.value.getFlattenedNodes(m),a!==null){let e=Ce.value.findIndex(e=>e.key===a);if(~e){let n=Ce.value[e].children;if(n){let i=Tl(n,t);Ce.value.splice(e+1,0,{__motion:!0,mode:`expand`,height:u?i.length*r:void 0,nodes:u?i.slice(0,p):i})}}}if(o!==null){let e=Ce.value.findIndex(e=>e.key===o);if(~e){let n=Ce.value[e].children;if(!n)return;Se.value=!0;let i=Tl(n,t);Ce.value.splice(e+1,0,{__motion:!0,mode:`collapse`,height:u?i.length*r:void 0,nodes:u?i.slice(0,p):i})}}});let we=V(()=>yl(M.value)),Ee=V(()=>Se.value?Ce.value:M.value);function De(){let{value:e}=u;e&&e.sync()}function ke(){Se.value=!1,e.virtualScroll&&he(De)}function Ae(e){let{getNode:t}=v.value;return e.map(e=>t(e)?.rawNode||null)}function je(t,n,r){let{"onUpdate:expandedKeys":i,onUpdateExpandedKeys:a}=e;A.value=t,i&&R(i,t,n,r),a&&R(a,t,n,r)}function Me(t,n,r){let{"onUpdate:checkedKeys":i,onUpdateCheckedKeys:a}=e;b.value=t,a&&R(a,t,n,r),i&&R(i,t,n,r)}function Ne(t,n){let{"onUpdate:indeterminateKeys":r,onUpdateIndeterminateKeys:i}=e;r&&R(r,t,n),i&&R(i,t,n)}function Pe(t,n,r){let{"onUpdate:selectedKeys":i,onUpdateSelectedKeys:a}=e;D.value=t,a&&R(a,t,n,r),i&&R(i,t,n,r)}function Fe(t){let{onDragenter:n}=e;n&&R(n,t)}function Ie(t){let{onDragleave:n}=e;n&&R(n,t)}function Le(t){let{onDragend:n}=e;n&&R(n,t)}function Re(t){let{onDragstart:n}=e;n&&R(n,t)}function ze(t){let{onDragover:n}=e;n&&R(n,t)}function Be(t){let{onDrop:n}=e;n&&R(n,t)}function Ve(){He(),Ue()}function He(){de.value=null}function Ue(){_e.value=0,me.value=null,F.value=null,ge.value=null,We()}function We(){ie&&=(window.clearTimeout(ie),null),P=null}function Ge(t,n){if(e.disabled||S_(t,e.disabledField))return;if(e.internalUnifySelectCheck&&!e.multiple){Je(t);return}let r=n?`check`:`uncheck`,{checkedKeys:i,indeterminateKeys:a}=v.value[r](t.key,T.value,{cascade:e.cascade,checkStrategy:w.value,allowNotLoaded:e.allowCheckingNotLoaded});Me(i,Ae(i),{node:t.rawNode,action:r}),Ne(a,Ae(a))}function Ke(t){if(e.disabled)return;let{key:n}=t,{value:r}=te,i=r.findIndex(e=>e===n);if(~i){let e=Array.from(r);e.splice(i,1),je(e,Ae(e),{node:t.rawNode,action:`collapse`})}else{let i=g.value.getNode(n);if(!i||i.isLeaf)return;let a;if(e.accordion){let e=new Set(t.siblings.map(({key:e})=>e));a=r.filter(t=>!e.has(t)),a.push(n)}else a=r.concat(n);je(a,Ae(a),{node:t.rawNode,action:`expand`})}}function qe(t){e.disabled||Se.value||Ke(t)}function Je(t){if(!e.disabled&&e.selectable){if(ne.value=t.key,e.internalUnifySelectCheck){let{value:{checkedKeys:n,indeterminateKeys:r}}=C;e.multiple?Ge(t,!(n.includes(t.key)||r.includes(t.key))):Me([t.key],Ae([t.key]),{node:t.rawNode,action:`check`})}if(e.multiple){let n=Array.from(k.value),r=n.findIndex(e=>e===t.key);~r?e.cancelable&&n.splice(r,1):~r||n.push(t.key),Pe(n,Ae(n),{node:t.rawNode,action:~r?`unselect`:`select`})}else k.value.includes(t.key)?e.cancelable&&Pe([],[],{node:t.rawNode,action:`unselect`}):Pe([t.key],Ae([t.key]),{node:t.rawNode,action:`select`})}}function Ye(e){if(ie&&=(window.clearTimeout(ie),null),e.isLeaf)return;P=e.key;let t=()=>{if(P!==e.key)return;let{value:t}=F;if(t&&t.key===e.key&&!te.value.includes(e.key)){let t=te.value.concat(e.key);je(t,Ae(t),{node:e.rawNode,action:`expand`})}ie=null,P=null};ie=e.shallowLoaded?window.setTimeout(()=>{t()},1e3):window.setTimeout(()=>{xe(e).then(()=>{t()})},1e3)}function Xe({event:t,node:n}){!e.draggable||e.disabled||S_(n,e.disabledField)||(nt({event:t,node:n},!1),Fe({event:t,node:n.rawNode}))}function Ze({event:t,node:n}){!e.draggable||e.disabled||S_(n,e.disabledField)||Ie({event:t,node:n.rawNode})}function Qe(e){e.target===e.currentTarget&&Ue()}function et({event:t,node:n}){Ve(),!e.draggable||e.disabled||S_(n,e.disabledField)||Le({event:t,node:n.rawNode})}function tt({event:t,node:n}){!e.draggable||e.disabled||S_(n,e.disabledField)||(ue=t.clientX,de.value=n,Re({event:t,node:n.rawNode}))}function nt({event:t,node:n},r=!0){if(!e.draggable||e.disabled||S_(n,e.disabledField))return;let{value:i}=de;if(!i)return;let{allowDrop:a,indent:o}=e;r&&ze({event:t,node:n.rawNode});let{height:s,top:c}=t.currentTarget.getBoundingClientRect(),l=t.clientY-c,u;u=a({node:n.rawNode,dropPosition:`inside`,phase:`drag`})?l<=8?`before`:l>=s-8?`after`:`inside`:l<=s/2?`before`:`after`;let{value:d}=we,f,p,m=d(n.key);if(m===null){Ue();return}let h=!1;u===`inside`?(f=n,p=`inside`):u===`before`?n.isFirstChild?(f=n,p=`before`):(f=M.value[m-1],p=`after`):(f=n,p=`after`),!f.isLeaf&&te.value.includes(f.key)&&(h=!0,p===`after`&&(f=M.value[m+1],f?p=`before`:(f=n,p=`inside`)));let g=f;if(F.value=g,!h&&i.isLastChild&&i.key===f.key&&(p=`after`),p===`after`){let e=ue-t.clientX,n=0;for(;e>=o/2&&f.parent!==null&&f.isLastChild&&n<1;)e-=o,n+=1,f=f.parent;_e.value=n}else _e.value=0;if((i.contains(f)||p===`inside`&&i.parent?.key===f.key)&&(i.key!==g.key||i.key!==f.key))Ue();else if(!a({node:f.rawNode,dropPosition:p,phase:`drag`}))Ue();else{if(i.key===f.key)We();else if(P!==f.key){if(p===`inside`){if(e.expandOnDragenter){if(Ye(f),!f.shallowLoaded&&P!==f.key){Ve();return}}else if(!f.shallowLoaded){Ve();return}}else We()}else p!==`inside`&&We();ge.value=p,me.value=f}}function rt({event:t,node:n,dropPosition:r}){if(!e.draggable||e.disabled||S_(n,e.disabledField))return;let{value:i}=de,{value:a}=me,{value:o}=ge;if(i&&a&&o&&e.allowDrop({node:a.rawNode,dropPosition:o,phase:`drag`})&&i.key!==a.key){if(o===`before`){let e=i.getNext({includeDisabled:!0});if(e&&e.key===a.key){Ue();return}}if(o===`after`){let e=i.getPrev({includeDisabled:!0});if(e&&e.key===a.key){Ue();return}}Be({event:t,node:a.rawNode,dragNode:i.rawNode,dropPosition:r}),Ve()}}function it(){De()}function at(){De()}function st(t){if(e.virtualScroll||e.internalScrollable){let{value:e}=u;if(e?.containerRef?.contains(t.relatedTarget))return;ne.value=null}else{let{value:e}=l;if(e?.contains(t.relatedTarget))return;ne.value=null}}Te(ne,t=>{if(t!==null){if(e.virtualScroll)d.value?.scrollTo({key:t});else if(e.internalScrollable){let{value:e}=u;if(e===null)return;let n=e.contentRef?.querySelector(`[data-key="${w_(t)}"]`);if(!n)return;e.scrollTo({el:n})}}}),Oe(D_,{loadingKeysRef:ce,highlightKeySetRef:se,displayedCheckedKeysRef:T,displayedIndeterminateKeysRef:E,mergedSelectedKeysRef:k,mergedExpandedKeysRef:te,mergedThemeRef:s,mergedCheckStrategyRef:w,nodePropsRef:i(e,`nodeProps`),disabledRef:i(e,`disabled`),checkableRef:i(e,`checkable`),selectableRef:i(e,`selectable`),expandOnClickRef:i(e,`expandOnClick`),onLoadRef:i(e,`onLoad`),draggableRef:i(e,`draggable`),blockLineRef:i(e,`blockLine`),indentRef:i(e,`indent`),cascadeRef:i(e,`cascade`),checkOnClickRef:i(e,`checkOnClick`),checkboxPlacementRef:e.checkboxPlacement,droppingMouseNodeRef:F,droppingNodeParentRef:I,draggingNodeRef:de,droppingPositionRef:ge,droppingOffsetLevelRef:_e,fNodesRef:M,pendingNodeKeyRef:ne,showLineRef:i(e,`showLine`),disabledFieldRef:i(e,`disabledField`),internalScrollableRef:i(e,`internalScrollable`),internalCheckboxFocusableRef:i(e,`internalCheckboxFocusable`),internalTreeSelect:e.internalTreeSelect,renderLabelRef:i(e,`renderLabel`),renderPrefixRef:i(e,`renderPrefix`),renderSuffixRef:i(e,`renderSuffix`),renderSwitcherIconRef:i(e,`renderSwitcherIcon`),labelFieldRef:i(e,`labelField`),multipleRef:i(e,`multiple`),overrideDefaultNodeClickBehaviorRef:i(e,`overrideDefaultNodeClickBehavior`),spinPropsRef:i(e,`spinProps`),handleSwitcherClick:qe,handleDragEnd:et,handleDragEnter:Xe,handleDragLeave:Ze,handleDragStart:tt,handleDrop:rt,handleDragOver:nt,handleSelect:Je,handleCheck:Ge});function ct(e,t){typeof e==`number`?d.value?.scrollTo(e,t||0):d.value?.scrollTo(e)}let lt={handleKeydown:re,scrollTo:ct,getCheckedData:()=>{if(!e.checkable)return{keys:[],options:[]};let{checkedKeys:t}=C.value;return{keys:t,options:Ae(t)}},getIndeterminateData:()=>{if(!e.checkable)return{keys:[],options:[]};let{indeterminateKeys:t}=C.value;return{keys:t,options:Ae(t)}}},ut=V(()=>{let{common:{cubicBezierEaseInOut:e},self:{fontSize:t,nodeBorderRadius:n,nodeColorHover:r,nodeColorPressed:i,nodeColorActive:a,arrowColor:o,loadingColor:c,nodeTextColor:l,nodeTextColorDisabled:u,dropMarkColor:d,nodeWrapperPadding:f,nodeHeight:p,lineHeight:m,lineColor:h}}=s.value,g=gt(f,`top`),_=gt(f,`bottom`),v=mt(sn(p)-sn(g)-sn(_));return{"--n-arrow-color":o,"--n-loading-color":c,"--n-bezier":e,"--n-font-size":t,"--n-node-border-radius":n,"--n-node-color-active":a,"--n-node-color-hover":r,"--n-node-color-pressed":i,"--n-node-text-color":l,"--n-node-text-color-disabled":u,"--n-drop-mark-color":d,"--n-node-wrapper-padding":f,"--n-line-offset-top":`-${g}`,"--n-line-offset-bottom":`-${_}`,"--n-node-content-height":v,"--n-line-height":m,"--n-line-color":h}}),dt=n?fe(`tree`,void 0,ut,e):void 0;return{...lt,mergedClsPrefix:t,mergedTheme:s,mergedRenderEmpty:c,rtlEnabled:o,fNodes:Ee,aip:Se,selfElRef:l,virtualListInstRef:d,scrollbarInstRef:u,handleFocusout:st,handleDragLeaveTree:Qe,handleScroll:it,getScrollContainer:f,getScrollContent:p,handleAfterEnter:ke,handleResize:at,cssVars:n?void 0:ut,themeClass:dt?.themeClass,onRender:dt?.onRender}},render(){let{fNodes:t,internalRenderEmpty:n}=this;if(!t.length&&n)return n();let{mergedClsPrefix:r,blockNode:i,blockLine:a,draggable:o,disabled:s,ellipsis:c,internalFocusable:l,checkable:u,handleKeydown:d,rtlEnabled:f,handleFocusout:p,scrollbarProps:m}=this,h=l&&!s,g=h?`0`:void 0,_=[`${r}-tree`,f&&`${r}-tree--rtl`,u&&`${r}-tree--checkable`,(a||i)&&`${r}-tree--block-node`,a&&`${r}-tree--block-line`,c&&`${r}-tree--ellipsis`],v=e=>`__motion`in e?(L(),W(Cge,{key:1,height:e.height,nodes:e.nodes,clsPrefix:r,mode:e.mode,onAfterEnter:this.handleAfterEnter},null,8,[`height`,`nodes`,`clsPrefix`,`mode`,`onAfterEnter`])):(L(),W(O_,{key:e.key,tmNode:e,clsPrefix:r},null,8,[`tmNode`,`clsPrefix`]));if(this.virtualScroll){let{mergedTheme:n,internalScrollablePadding:i}=this,a=gt(i||`0`);return L(),W(Bt,I({key:3},m,{ref:`scrollbarInstRef`,onDragleave:o?this.handleDragLeaveTree:void 0,container:this.getScrollContainer,content:this.getScrollContent,class:_,theme:n.peers.Scrollbar,themeOverrides:n.peerOverrides.Scrollbar,tabindex:g,onKeydown:h?d:void 0,onFocusout:h?p:void 0}),{default:()=>(this.onRender?.(),t.length?(L(),W(Sc,{key:4,ref:`virtualListInstRef`,items:this.fNodes,itemSize:sn(n.self.nodeHeight),ignoreItemResize:this.aip,paddingTop:a.top,paddingBottom:a.bottom,class:P(this.themeClass),style:e([this.cssVars,{paddingLeft:a.left,paddingRight:a.right}]),onScroll:this.handleScroll,onResize:this.handleResize,showScrollbar:!1,itemResizable:!0},{default:({item:e})=>v(e)},1032,[`items`,`itemSize`,`ignoreItemResize`,`paddingTop`,`paddingBottom`,`class`,`style`,`onScroll`,`onResize`])):an(this.$slots.empty,()=>[this.mergedRenderEmpty?.()||(L(),W(ds,{class:P(`${r}-tree__empty`),theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty},null,8,[`class`,`theme`,`themeOverrides`]))]))},1040,[`onDragleave`,`container`,`content`,`class`,`theme`,`themeOverrides`,`tabindex`,`onKeydown`,`onFocusout`])}let{internalScrollable:y}=this;return _.push(this.themeClass),this.onRender?.(),y?(L(),W(Bt,I({key:5},m,{class:_,tabindex:g,onKeydown:h?d:void 0,onFocusout:h?p:void 0,style:this.cssVars,contentStyle:{padding:this.internalScrollablePadding}}),{default:()=>(L(),H(`div`,{onDragleave:o?this.handleDragLeaveTree:void 0,ref:`selfElRef`},[G(()=>this.fNodes.map(v))],40,Tge))},1040,[`class`,`tabindex`,`onKeydown`,`onFocusout`,`style`,`contentStyle`])):(L(),H(`div`,{key:6,class:P(_),tabindex:g,ref:`selfElRef`,style:e(this.cssVars),onKeydown:h?d:void 0,onFocusout:h?p:void 0,onDragleave:o?this.handleDragLeaveTree:void 0},[t.length?(L(),H(K,{key:1},[G(()=>t.map(v))],64)):(L(),H(K,{key:0},[G(()=>an(this.$slots.empty,()=>[this.mergedRenderEmpty?.()||(L(),W(ds,{class:P(`${r}-tree__empty`),theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty},null,8,[`class`,`theme`,`themeOverrides`]))]))],64))],46,Ege))}});function Oge(e){let{popoverColor:t,boxShadow2:n,borderRadius:r,heightMedium:i,dividerColor:a,textColor2:o}=e;return{menuPadding:`4px`,menuColor:t,menuBoxShadow:n,menuBorderRadius:r,menuHeight:`calc(${i} * 7.6)`,actionDividerColor:a,actionTextColor:o,actionPadding:`8px 12px`,headerDividerColor:a,headerTextColor:o,headerPadding:`8px 12px`}}var N_=En({name:`TreeSelect`,common:_e,peers:{Tree:mg,Empty:ls,InternalSelection:Ud},self:Oge}),kge=U([z(`tree-select`,`
z-index: auto;
outline: none;
width: 100%;
position: relative;
`),z(`tree-select-menu`,`
position: relative;
overflow: hidden;
margin: 4px 0;
transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier);
border-radius: var(--n-menu-border-radius);
box-shadow: var(--n-menu-box-shadow);
background-color: var(--n-menu-color);
outline: none;
`,[z(`tree`,`max-height: var(--n-menu-height);`),X(`empty`,`
display: flex;
padding: 12px 32px;
flex: 1;
justify-content: center;
`),X(`header`,`
padding: var(--n-header-padding);
transition:
color .3s var(--n-bezier);
border-color .3s var(--n-bezier);
border-bottom: 1px solid var(--n-header-divider-color);
color: var(--n-header-text-color);
`),X(`action`,`
padding: var(--n-action-padding);
transition:
color .3s var(--n-bezier);
border-color .3s var(--n-bezier);
border-top: 1px solid var(--n-action-divider-color);
color: var(--n-action-text-color);
`),pl()])]);function P_(e,t){let{rawNode:n}=e;return{...n,label:n[t],value:e.key}}function F_(e,t,n,r){let{rawNode:i}=e;return{...i,value:e.key,label:t.map(e=>e.rawNode[r]).join(n)}}var Age=[`onMousedown`,`onKeydown`,`onFocusin`,`onFocusout`],jge={...$e.props,bordered:{type:Boolean,default:!0},cascade:Boolean,checkable:Boolean,clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},consistentMenuWidth:{type:Boolean,default:!0},defaultShow:Boolean,defaultValue:{type:[String,Number,Array],default:null},disabled:{type:Boolean,default:void 0},filterable:Boolean,checkStrategy:{type:String,default:`all`},loading:Boolean,maxTagCount:[String,Number],multiple:Boolean,showLine:Boolean,showPath:Boolean,separator:{type:String,default:` / `},options:{type:Array,default:()=>[]},placeholder:String,placement:{type:String,default:`bottom-start`},show:{type:Boolean,default:void 0},size:String,value:[String,Number,Array],to:Vs.propTo,menuProps:Object,virtualScroll:{type:Boolean,default:!0},status:String,renderTag:Function,ellipsisTagPopoverProps:Object,...j_,renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,watchProps:Array,getChildren:Function,onBlur:Function,onFocus:Function,onLoad:Function,onUpdateShow:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],"onUpdate:show":[Function,Array],leafOnly:Boolean},Mge=Y({name:`TreeSelect`,props:jge,slots:Object,setup(e){let t=N(null),n=N(null),r=N(null),a=N(null),{mergedClsPrefixRef:o,namespaceRef:s,inlineThemeDisabled:c,mergedComponentPropsRef:l}=mn(e),{localeRef:u}=gr(`Select`),{mergedSizeRef:d,mergedDisabledRef:f,mergedStatusRef:p,nTriggerFormBlur:m,nTriggerFormChange:h,nTriggerFormFocus:g,nTriggerFormInput:_}=mr(e,{mergedSize:t=>{let{size:n}=e;if(n)return n;let{mergedSize:r}=t||{};return r?.value?r.value:l?.value?.TreeSelect?.size||`medium`}}),v=N(e.defaultValue),y=i(e,`value`),b=lr(y,v),x=N(e.defaultShow),S=i(e,`show`),C=lr(S,x),w=N(``),T=V(()=>{let{filter:t}=e;if(t)return t;let{labelField:n}=e;return(e,t)=>!e.length||t[n].toLowerCase().includes(e.toLowerCase())}),E=V(()=>Dl(e.options,A_(e.keyField,e.childrenField,e.disabledField,void 0))),{value:D}=b,O=N(e.checkable?null:Array.isArray(D)&&D.length?D[D.length-1]:null),k=V(()=>e.multiple&&e.cascade&&e.checkable),A=N(e.defaultExpandAll?void 0:e.defaultExpandedKeys||e.expandedKeys),j=i(e,`expandedKeys`),ee=lr(j,A),te=N(!1),M=V(()=>{let{placeholder:t}=e;return t===void 0?u.value.placeholder:t}),ne=V(()=>{let{value:t}=b;return e.multiple?Array.isArray(t)?t:[]:t===null||Array.isArray(t)?[]:[t]}),re=V(()=>e.checkable?[]:ne.value),ie=V(()=>{let{multiple:t,showPath:n,separator:r,labelField:i}=e;if(t)return null;let{value:a}=b;if(!Array.isArray(a)&&a!==null){let{value:e}=E,t=e.getNode(a);if(t!==null)return n?F_(t,e.getPath(a).treeNodePath,r,i):P_(t,i)}return null}),P=V(()=>{let{multiple:t,showPath:n,separator:r}=e;if(!t)return null;let{value:i}=b;if(Array.isArray(i)){let t=[],{value:a}=E,{checkedKeys:o}=a.getCheckedKeys(i,{checkStrategy:e.checkStrategy,cascade:k.value,allowNotLoaded:e.allowCheckingNotLoaded}),{labelField:s}=e;return o.forEach(e=>{let i=a.getNode(e);i!==null&&t.push(n?F_(i,a.getPath(e).treeNodePath,r,s):P_(i,s))}),t}return[]});function ae(){n.value?.focus()}function oe(){n.value?.focusInput()}function se(t){let{onUpdateShow:n,"onUpdate:show":r}=e;n&&R(n,t),r&&R(r,t),x.value=t}function ce(t,n,r){let{onUpdateValue:i,"onUpdate:value":a}=e;i&&R(i,t,n,r),a&&R(a,t,n,r),v.value=t,_(),h()}function le(t,n){let{onUpdateIndeterminateKeys:r,"onUpdate:indeterminateKeys":i}=e;r&&R(r,t,n),i&&R(i,t,n)}function ue(t,n,r){let{onUpdateExpandedKeys:i,"onUpdate:expandedKeys":a}=e;i&&R(i,t,n,r),a&&R(a,t,n,r),A.value=t}function de(t){let{onFocus:n}=e;n&&n(t),g()}function pe(t){me();let{onBlur:n}=e;n&&n(t),m()}function me(){se(!1)}function F(){f.value||(w.value=``,se(!0),e.filterable&&oe())}function he(){w.value=``}function ge(e){C.value&&(n.value?.$el.contains(vt(e))||me())}function _e(){f.value||(C.value?e.filterable||me():F())}function I(e){let{value:{getNode:t}}=E;return e.map(e=>t(e)?.rawNode||null)}function ve(t,n,r){let i=I(t),a=r.action===`check`?`select`:`unselect`,o=r.node;e.multiple?(ce(t,i,{node:o,action:a}),e.filterable&&(oe(),e.clearFilterAfterSelect&&(w.value=``))):(t.length?ce(t[0],i[0]||null,{node:o,action:a}):ce(null,null,{node:o,action:a}),me(),ae())}function ye(t){e.checkable&&le(t,I(t))}function L(e){a.value?.contains(e.relatedTarget)||(te.value=!0,de(e))}function be(e){a.value?.contains(e.relatedTarget)||(te.value=!1,pe(e))}function xe(e){a.value?.contains(e.relatedTarget)||n.value?.$el?.contains(e.relatedTarget)||(te.value=!0,de(e))}function Se(e){a.value?.contains(e.relatedTarget)||n.value?.$el?.contains(e.relatedTarget)||(te.value=!1,pe(e))}function Ce(t){t.stopPropagation();let{multiple:n}=e;!n&&e.filterable&&me(),n?ce([],[],{node:null,action:`clear`}):ce(null,null,{node:null,action:`clear`})}function we(t){let{value:n}=b;if(Array.isArray(n)){let{value:r}=E,{checkedKeys:i}=r.getCheckedKeys(n,{cascade:k.value,allowNotLoaded:e.allowCheckingNotLoaded}),a=i.findIndex(e=>e===t.value);if(~a){let n=i[a],o=I([n])[0];if(e.checkable){let{checkedKeys:n}=r.uncheck(t.value,i,{checkStrategy:e.checkStrategy,cascade:k.value,allowNotLoaded:e.allowCheckingNotLoaded});ce(n,I(n),{node:o,action:`delete`})}else{let e=Array.from(i);e.splice(a,1),ce(e,I(e),{node:o,action:`delete`})}}}}function Te(e){let{value:t}=e.target;w.value=t}function Ee(e){let{value:t}=r;return t?t.handleKeydown(e):{enterBehavior:null}}function De(t){if(t.key===`Enter`){if(C.value){let{enterBehavior:n}=Ee(t);if(!e.multiple)switch(n){case`default`:case`toggleSelect`:me(),ae()}}else F();t.preventDefault()}else t.key===`Escape`?C.value&&(Yd(t),me(),ae()):C.value?Ee(t):t.key===`ArrowDown`&&F()}function ke(){me(),ae()}function Ae(e){!ts(e,`action`)&&!ts(e,`header`)&&e.preventDefault()}let je=V(()=>{let{renderTag:t}=e;if(t)return function({option:e,handleClose:n}){let{value:r}=e;if(r!==void 0){let e=E.value.getNode(r);if(e)return t({option:e.rawNode,handleClose:n})}return r}});Oe(T_,{pendingNodeKeyRef:O,dataTreeMate:E});function Me(){C.value&&t.value?.syncPosition()}il(a,Me);let Ne=x_(e),Pe=V(()=>{if(e.checkable){let t=b.value;return e.multiple&&Array.isArray(t)?E.value.getCheckedKeys(t,{cascade:e.cascade,checkStrategy:Ne.value,allowNotLoaded:e.allowCheckingNotLoaded}):{checkedKeys:Array.isArray(t)||t===null?[]:[t],indeterminateKeys:[]}}return{checkedKeys:[],indeterminateKeys:[]}}),Fe={getCheckedData:()=>{let{checkedKeys:e}=Pe.value;return{keys:e,options:I(e)}},getIndeterminateData:()=>{let{indeterminateKeys:e}=Pe.value;return{keys:e,options:I(e)}},focus:()=>n.value?.focus(),focusInput:()=>n.value?.focusInput(),blur:()=>n.value?.blur(),blurInput:()=>n.value?.blurInput()},Ie=$e(`TreeSelect`,`-tree-select`,kge,N_,e,o),Le=V(()=>l?.value?.TreeSelect?.renderEmpty),Re=V(()=>{let{common:{cubicBezierEaseInOut:e},self:{menuBoxShadow:t,menuBorderRadius:n,menuColor:r,menuHeight:i,actionPadding:a,actionDividerColor:o,actionTextColor:s,headerDividerColor:c,headerPadding:l,headerTextColor:u}}=Ie.value;return{"--n-menu-box-shadow":t,"--n-menu-border-radius":n,"--n-menu-color":r,"--n-menu-height":i,"--n-bezier":e,"--n-action-padding":a,"--n-action-text-color":s,"--n-action-divider-color":o,"--n-header-padding":l,"--n-header-text-color":u,"--n-header-divider-color":c}}),ze=c?fe(`tree-select`,void 0,Re,e):void 0,Be=V(()=>{let{self:{menuPadding:e}}=Ie.value;return e});return{...Fe,menuElRef:a,mergedStatus:p,triggerInstRef:n,followerInstRef:t,treeInstRef:r,mergedClsPrefix:o,mergedValue:b,mergedShow:C,namespace:s,adjustedTo:Vs(e),isMounted:sr(),focused:te,menuPadding:Be,mergedPlaceholder:M,mergedExpandedKeys:ee,treeSelectedKeys:re,treeCheckedKeys:ne,mergedSize:d,mergedDisabled:f,selectedOption:ie,selectedOptions:P,pattern:w,pendingNodeKey:O,mergedCascade:k,mergedFilter:T,selectionRenderTag:je,handleTriggerOrMenuResize:Me,doUpdateExpandedKeys:ue,handleMenuLeave:he,handleTriggerClick:_e,handleMenuClickoutside:ge,handleUpdateCheckedKeys:ve,handleUpdateIndeterminateKeys:ye,handleTriggerFocus:L,handleTriggerBlur:be,handleMenuFocusin:xe,handleMenuFocusout:Se,handleClear:Ce,handleDeleteOption:we,handlePatternInput:Te,handleKeydown:De,handleTabOut:ke,handleMenuMousedown:Ae,mergedTheme:Ie,mergedRenderEmpty:Le,cssVars:c?void 0:Re,themeClass:ze?.themeClass,onRender:ze?.onRender}},render(){let{mergedTheme:e,mergedClsPrefix:t,$slots:n}=this;return L(),H(`div`,{class:P(`${t}-tree-select`)},[J(Zs,null,{default:()=>[(L(),W(Qs,null,{default:()=>(L(),W(Zd,{ref:`triggerInstRef`,onResize:this.handleTriggerOrMenuResize,status:this.mergedStatus,focused:this.focused,clsPrefix:t,theme:e.peers.InternalSelection,themeOverrides:e.peerOverrides.InternalSelection,ellipsisTagPopoverProps:this.ellipsisTagPopoverProps,renderTag:this.selectionRenderTag,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,size:this.mergedSize,bordered:this.bordered,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,active:this.mergedShow,loading:this.loading,multiple:this.multiple,maxTagCount:this.maxTagCount,showArrow:!0,filterable:this.filterable,clearable:this.clearable,pattern:this.pattern,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onClick:this.handleTriggerClick,onFocus:this.handleTriggerFocus,onBlur:this.handleTriggerBlur,onDeleteOption:this.handleDeleteOption,onKeydown:this.handleKeydown},{arrow:()=>[this.$slots.arrow?.()]},1032,`onResize.status.focused.clsPrefix.theme.themeOverrides.ellipsisTagPopoverProps.renderTag.selectedOption.selectedOptions.size.bordered.placeholder.disabled.active.loading.multiple.maxTagCount.filterable.clearable.pattern.onPatternInput.onClear.onClick.onFocus.onBlur.onDeleteOption.onKeydown`.split(`.`)))},1024)),(L(),W(gc,{ref:`followerInstRef`,show:this.mergedShow,placement:this.placement,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Vs.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?`target`:void 0,minWidth:`target`},{default:()=>(L(),W(gn,{name:`fade-in-scale-up-transition`,appear:this.isMounted,onLeave:this.handleMenuLeave},{default:()=>{if(!this.mergedShow)return null;let{mergedClsPrefix:t,checkable:r,multiple:i,menuProps:a,options:o}=this;return this.onRender?.(),Se((L(),H(`div`,I(a,{class:[`${t}-tree-select-menu`,a?.class,this.themeClass],ref:`menuElRef`,style:[a?.style||``,this.cssVars],tabindex:0,onMousedown:this.handleMenuMousedown,onKeydown:this.handleKeydown,onFocusin:this.handleMenuFocusin,onFocusout:this.handleMenuFocusout}),[G(()=>Lt(n.header,e=>e?(L(),H(`div`,{key:1,class:P(`${t}-tree-select-menu__header`),"data-header":!0},[G(()=>e)],2)):null)),(L(),W(M_,{ref:`treeInstRef`,blockLine:!0,allowCheckingNotLoaded:this.allowCheckingNotLoaded,showIrrelevantNodes:!1,animated:!1,pattern:this.pattern,getChildren:this.getChildren,filter:this.mergedFilter,data:o,cancelable:i,labelField:this.labelField,keyField:this.keyField,disabledField:this.disabledField,childrenField:this.childrenField,theme:e.peers.Tree,themeOverrides:e.peerOverrides.Tree,defaultExpandAll:this.defaultExpandAll,defaultExpandedKeys:this.defaultExpandedKeys,indent:this.indent,expandedKeys:this.mergedExpandedKeys,checkedKeys:this.treeCheckedKeys,selectedKeys:this.treeSelectedKeys,checkable:r,checkStrategy:this.checkStrategy,cascade:this.mergedCascade,leafOnly:this.leafOnly,multiple:this.multiple,showLine:this.showLine,renderLabel:this.renderLabel,renderPrefix:this.renderPrefix,renderSuffix:this.renderSuffix,renderSwitcherIcon:this.renderSwitcherIcon,nodeProps:this.nodeProps,watchProps:this.watchProps,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,overrideDefaultNodeClickBehavior:this.overrideDefaultNodeClickBehavior,internalTreeSelect:!0,internalUnifySelectCheck:!0,internalScrollable:!0,internalScrollablePadding:this.menuPadding,internalFocusable:!1,internalCheckboxFocusable:!1,internalRenderEmpty:()=>(L(),H(`div`,{class:P(`${t}-tree-select-menu__empty`)},[G(()=>an(n.empty,()=>[this.mergedRenderEmpty?.()||(L(),W(ds,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty},null,8,[`theme`,`themeOverrides`]))]))],2)),onLoad:this.onLoad,onUpdateCheckedKeys:this.handleUpdateCheckedKeys,onUpdateIndeterminateKeys:this.handleUpdateIndeterminateKeys,onUpdateExpandedKeys:this.doUpdateExpandedKeys},null,8,`allowCheckingNotLoaded.pattern.getChildren.filter.data.cancelable.labelField.keyField.disabledField.childrenField.theme.themeOverrides.defaultExpandAll.defaultExpandedKeys.indent.expandedKeys.checkedKeys.selectedKeys.checkable.checkStrategy.cascade.leafOnly.multiple.showLine.renderLabel.renderPrefix.renderSuffix.renderSwitcherIcon.nodeProps.watchProps.virtualScroll.overrideDefaultNodeClickBehavior.internalScrollablePadding.onLoad.onUpdateCheckedKeys.onUpdateIndeterminateKeys.onUpdateExpandedKeys`.split(`.`))),G(()=>Lt(n.action,e=>e?(L(),H(`div`,{key:2,class:P(`${t}-tree-select-menu__action`),"data-action":!0},[G(()=>e)],2)):null)),(L(),W(al,{onFocus:this.handleTabOut},null,8,[`onFocus`]))],16,Age)),[[tc,this.handleMenuClickoutside,void 0,{capture:!0}]])}},1032,[`appear`,`onLeave`]))},1032,[`show`,`placement`,`to`,`teleportDisabled`,`containerClass`,`width`]))]},1024)],2)}}),Nge=z(`text`,`
transition: color .3s var(--n-bezier);
color: var(--n-text-color);
`,[B(`strong`,`
font-weight: var(--n-font-weight-strong);
`),B(`italic`,{fontStyle:`italic`}),B(`underline`,{textDecoration:`underline`}),B(`code`,`
line-height: 1.4;
display: inline-block;
font-family: var(--n-font-famliy-mono);
transition:
color .3s var(--n-bezier),
border-color .3s var(--n-bezier),
background-color .3s var(--n-bezier);
box-sizing: border-box;
padding: .05em .35em 0 .35em;
border-radius: var(--n-code-border-radius);
font-size: .9em;
color: var(--n-code-text-color);
background-color: var(--n-code-color);
border: var(--n-code-border);
`)]),Pge={...$e.props,code:Boolean,type:{type:String,default:`default`},delete:Boolean,strong:Boolean,italic:Boolean,underline:Boolean,depth:[String,Number],tag:String,as:{type:String,validator:()=>!0,default:void 0}},I_=Y({name:`Text`,props:Pge,setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:n}=mn(e),r=$e(`Typography`,`-text`,Nge,_g,e,t),i=V(()=>{let{depth:t,type:n}=e,i=n==="default"?t===void 0?`textColor`:`textColor${t}Depth`:tt(`textColor`,n),{common:{fontWeightStrong:a,fontFamilyMono:o,cubicBezierEaseInOut:s},self:{codeTextColor:c,codeBorderRadius:l,codeColor:u,codeBorder:d,[i]:f}}=r.value;return{"--n-bezier":s,"--n-text-color":f,"--n-font-weight-strong":a,"--n-font-famliy-mono":o,"--n-code-border-radius":l,"--n-code-text-color":c,"--n-code-color":u,"--n-code-border":d}}),a=n?fe(`text`,V(()=>`${e.type[0]}${e.depth||``}`),i,e):void 0;return{mergedClsPrefix:t,compitableTag:Ls(e,[`as`,`tag`]),cssVars:n?void 0:i,themeClass:a?.themeClass,onRender:a?.onRender}},render(){let{mergedClsPrefix:t}=this;this.onRender?.();let n=[`${t}-text`,this.themeClass,{[`${t}-text--code`]:this.code,[`${t}-text--delete`]:this.delete,[`${t}-text--strong`]:this.strong,[`${t}-text--italic`]:this.italic,[`${t}-text--underline`]:this.underline}],r=this.$slots.default?.();return this.code?(L(),H(`code`,{key:1,class:P(n),style:e(this.cssVars)},[this.delete?(L(),H(`del`,{key:0},[G(()=>r)])):(L(),H(K,{key:1},[G(()=>r)],64))],6)):this.delete?(L(),H(`del`,{key:2,class:P(n),style:e(this.cssVars)},[G(()=>r)],6)):Dn(this.compitableTag||`span`,{class:n,style:this.cssVars},r)}}),L_=En({name:`Watermark`,common:_e,self(e){let{fontFamily:t}=e;return{fontFamily:t}}}),Fge=U([z(`watermark-container`,`
position: relative;
`,[On(`selectable`,`
user-select: none;
-webkit-user-select: none;
`),B(`global-rotate`,`
overflow: hidden;
`),B(`fullscreen`,`
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
position: fixed;
`)]),z(`watermark`,`
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
background-repeat: repeat;
`,[B(`fullscreen`,`
position: fixed;
`),B(`global-rotate`,`
position: absolute;
height: max(284vh, 284vw);
width: max(284vh, 284vw);
`)])]);function Ige(e){if(!e)return 1;let t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/t}var Lge={...$e.props,debug:Boolean,cross:Boolean,fullscreen:Boolean,width:{type:Number,default:32},height:{type:Number,default:32},zIndex:{type:Number,default:10},xGap:{type:Number,default:0},yGap:{type:Number,default:0},yOffset:{type:Number,default:0},xOffset:{type:Number,default:0},rotate:{type:Number,default:0},textAlign:{type:String,default:`left`},image:String,imageOpacity:{type:Number,default:1},imageHeight:Number,imageWidth:Number,content:String,selectable:{type:Boolean,default:!0},fontSize:{type:Number,default:14},fontFamily:String,fontStyle:{type:String,default:`normal`},fontVariant:{type:String,default:``},fontWeight:{type:Number,default:400},fontColor:{type:String,default:`rgba(128, 128, 128, .3)`},fontStretch:{type:String,default:``},lineHeight:{type:Number,default:14},globalRotate:{type:Number,default:0}},Rge=Y({name:`Watermark`,props:Lge,setup(t,{slots:n}){let{mergedClsPrefixRef:r}=mn(t),i=$e(`Watermark`,`-watermark`,Fge,L_,t,r),a=N(``),o=Pr?document.createElement(`canvas`):null,s=o?o.getContext(`2d`):null,c=N(!1);return ks(()=>c.value=!0),ot(()=>{if(!o)return;c.value;let e=Ige(s),{xGap:n,yGap:r,width:l,height:u,yOffset:d,xOffset:f,rotate:p,image:m,content:h,fontColor:g,fontStyle:_,fontVariant:v,fontStretch:y,fontWeight:b,fontFamily:x,fontSize:S,lineHeight:C,debug:w}=t,T=(n+l)*e,E=(r+u)*e,D=f*e,O=d*e;if(o.width=T,o.height=E,s){s.translate(0,0);let n=l*e,r=u*e;if(w&&(s.strokeStyle=`grey`,s.strokeRect(0,0,n,r)),s.rotate(Math.PI/180*p),m){let n=new Image;n.crossOrigin=`anonymous`,n.referrerPolicy=`no-referrer`,n.src=m,n.onload=()=>{s.globalAlpha=t.imageOpacity;let{imageWidth:r,imageHeight:i}=t;s.drawImage(n,D,O,(t.imageWidth||(i?n.width*i/n.height:n.width))*e,(t.imageHeight||(r?n.height*r/n.width:n.height))*e),a.value=o.toDataURL()}}else if(h){w&&(s.strokeStyle=`green`,s.strokeRect(0,0,n,r)),s.font=`${_} ${v} ${b} ${y} ${S*e}px/${C*e}px ${x||i.value.self.fontFamily}`,s.fillStyle=g;let c=0,{textAlign:l}=t;h.split(`
`).map(e=>{let t=s.measureText(e).width;return c=Math.max(c,t),{width:t,line:e}}).forEach(({line:t,width:n},r)=>{let i=l===`left`?0:l===`center`?(c-n)/2:c-n;s.fillText(t,D+i,O+C*e*(r+1))}),a.value=o.toDataURL()}else h||(s.clearRect(0,0,o.width,o.height),a.value=o.toDataURL())}else $t(`watermark`,`Canvas is not supported in the browser.`)}),()=>{let{globalRotate:i,fullscreen:o,zIndex:s}=t,c=r.value,l=i!==0&&o,u=`max(142vh, 142vw)`,d=(L(),H(`div`,{class:P([`${c}-watermark`,i!==0&&`${c}-watermark--global-rotate`,o&&`${c}-watermark--fullscreen`]),style:e({transform:i?`translateX(-50%) translateY(-50%) rotate(${i}deg)`:void 0,zIndex:l?void 0:s,backgroundSize:`${t.xGap+t.width}px`,backgroundPosition:i===0?t.cross?`${t.width/2}px ${t.height/2}px, 0 0`:``:t.cross?`calc(${u} + ${t.width/2}px) calc(${u} + ${t.height/2}px), ${u} ${u}`:u,backgroundImage:t.cross?`url(${a.value}), url(${a.value})`:`url(${a.value})`})},null,6));return t.fullscreen&&!i?d:(L(),H(`div`,{class:P([`${c}-watermark-container`,i!==0&&`${c}-watermark-container--global-rotate`,o&&`${c}-watermark-container--fullscreen`,t.selectable&&`${c}-watermark-container--selectable`]),style:e({zIndex:l?s:void 0})},[G(()=>n.default?.()),G(()=>d)],6))}}});function R_(){let e=pe(Zt,null);return V(()=>{if(e===null)return _e;let{mergedThemeRef:{value:t},mergedThemeOverridesRef:{value:n}}=e,r=t?.common||_e;return n?.common?Object.assign({},r,n.common):r})}var zge={name:`ButtonGroup`,common:_e},Bge={name:`Row`,common:_e},z_=()=>({}),Vge={name:`light`,common:_e,Alert:Qc,Anchor:vae,AutoComplete:Sae,Avatar:Pl,AvatarGroup:roe,BackTop:ooe,Badge:loe,Breadcrumb:Zl,Button:xr,ButtonGroup:zge,Calendar:Rse,Card:Nd,Carousel:Hse,Cascader:Gd,Checkbox:Vd,Code:rf,Collapse:vce,CollapseTransition:bce,ColorPicker:cf,DataTable:ap,DatePicker:Qp,Descriptions:Um,Dialog:qm,Divider:ype,Drawer:Nh,Dropdown:Jf,DynamicInput:Hpe,DynamicTags:Vh,Element:Qpe,Empty:ls,Equation:{name:`Equation`,common:_e,self:z_},Ellipsis:np,Flex:lee,Form:cee,GradientText:qme,Heatmap:Xme,Icon:xp,IconWrapper:Zme,Image:$me,Input:Sr,InputNumber:Dr,InputOtp:ime,Layout:Og,LegacyTransfer:hhe,List:sme,LoadingBar:mh,Log:_he,Menu:Kh,Mention:bhe,Message:vh,Modal:$m,Notification:Th,PageHeader:Fhe,Pagination:Pf,Popconfirm:Jh,Popover:gs,Popselect:wf,Progress:Xh,QrCode:Lhe,Radio:rp,Rate:zhe,Row:Bge,Result:$h,Scrollbar:Cn,Skeleton:Jhe,Select:Af,Slider:Xhe,Space:zh,Spin:ng,Statistic:ig,Steps:Sme,Switch:o_,Table:Eme,Tabs:lg,Tag:Vc,Thing:Ame,TimePicker:Yp,Timeline:lge,Tooltip:tp,Transfer:dge,Tree:mg,TreeSelect:N_,Typography:_g,Upload:Lme,Watermark:L_,Split:ege,FloatButton:Ume,FloatButtonGroup:Vme,Marquee:vhe},B_={name:`dark`,common:os,Alert:hae,Anchor:yae,AutoComplete:Cae,Avatar:Fl,AvatarGroup:{name:`AvatarGroup`,common:os,peers:{Avatar:Fl},self:Vl},BackTop:ioe,Badge:soe,Breadcrumb:doe,Button:$l,ButtonGroup:eme,Calendar:{name:`Calendar`,common:os,peers:{Button:$l},self:jd},Card:Pd,Carousel:{name:`Carousel`,common:os,self:zd},Cascader:Gse,Checkbox:Hd,Code:nf,Collapse:yce,CollapseTransition:{name:`CollapseTransition`,common:os,self:of},ColorPicker:{name:`ColorPicker`,common:os,peers:{Input:tl,Button:$l},self:sf},DataTable:yle,DatePicker:Wue,Descriptions:Tfe,Dialog:Jm,Divider:bpe,Drawer:xpe,Dropdown:Yf,DynamicInput:Bpe,DynamicTags:qpe,Element:Zpe,Empty:us,Ellipsis:ep,Equation:{name:`Equation`,common:os,self:z_},Flex:$pe,Form:tme,GradientText:nme,Heatmap:{name:`Heatmap`,common:os,self(e){return{...Eg(e),activeColors:[`#0d4429`,`#006d32`,`#26a641`,`#39d353`],mininumColor:`rgba(255, 255, 255, 0.1)`,loadingColorStart:`rgba(255, 255, 255, 0.12)`,loadingColorEnd:`rgba(255, 255, 255, 0.18)`}}},Icon:kle,IconWrapper:{name:`IconWrapper`,common:os,self:Dg},Image:{name:`Image`,common:os,peers:{Tooltip:Zf},self:e=>{let{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:`rgba(0, 0, 0, .35)`,toolbarBoxShadow:`none`,toolbarBorderRadius:`24px`}}},Input:tl,InputNumber:rme,InputOtp:ame,LegacyTransfer:{name:`Transfer`,common:os,peers:{Checkbox:Hd,Scrollbar:ss,Input:tl,Empty:us,Button:$l},self(e){let{iconColorDisabled:t,iconColor:n,fontWeight:r,fontSizeLarge:i,fontSizeMedium:a,fontSizeSmall:o,heightLarge:s,heightMedium:c,heightSmall:l,borderRadius:u,inputColor:d,tableHeaderColor:f,textColor1:p,textColorDisabled:m,textColor2:h,hoverColor:g}=e;return{...Fg,itemHeightSmall:l,itemHeightMedium:c,itemHeightLarge:s,fontSizeSmall:o,fontSizeMedium:a,fontSizeLarge:i,borderRadius:u,borderColor:`#0000`,listColor:d,headerColor:f,titleTextColor:p,titleTextColorDisabled:m,extraTextColor:h,filterDividerColor:`#0000`,itemTextColor:h,itemTextColorDisabled:m,itemColorPending:g,titleFontWeight:r,iconColor:n,iconColorDisabled:t}}},Layout:ome,List:cme,LoadingBar:Bfe,Log:lme,Menu:fme,Mention:ume,Message:qfe,Modal:jfe,Notification:ipe,PageHeader:{name:`PageHeader`,common:os,self:e_},Pagination:Ff,Popconfirm:mme,Popover:_s,Popselect:xf,Progress:Zh,QrCode:{name:`QrCode`,common:os,self:e=>({borderRadius:e.borderRadius})},Radio:$f,Rate:hme,Result:_me,Row:{name:`Row`,common:os},Scrollbar:ss,Select:jf,Skeleton:{name:`Skeleton`,common:os,self(e){let{heightSmall:t,heightMedium:n,heightLarge:r,borderRadius:i}=e;return{color:`rgba(255, 255, 255, 0.12)`,colorEnd:`rgba(255, 255, 255, 0.18)`,borderRadius:i,heightSmall:t,heightMedium:n,heightLarge:r}}},Slider:vme,Space:Rh,Spin:yme,Statistic:bme,Steps:Cme,Switch:wme,Table:Dme,Tabs:kme,Tag:Bc,Thing:jme,TimePicker:Xp,Timeline:Mme,Tooltip:Zf,Transfer:Nme,Tree:hg,TreeSelect:Pme,Typography:Ime,Upload:Rme,Watermark:zme,Split:{name:`Split`,common:os},FloatButton:{name:`FloatButton`,common:os,self(e){let{popoverColor:t,textColor2:n,buttonColor2Hover:r,buttonColor2Pressed:i,primaryColor:a,primaryColorHover:o,primaryColorPressed:s,baseColor:c,borderRadius:l}=e;return{color:t,textColor:n,boxShadow:`0 2px 8px 0px rgba(0, 0, 0, .12)`,boxShadowHover:`0 2px 12px 0px rgba(0, 0, 0, .18)`,boxShadowPressed:`0 2px 12px 0px rgba(0, 0, 0, .18)`,colorHover:r,colorPressed:i,colorPrimary:a,colorPrimaryHover:o,colorPrimaryPressed:s,textColorPrimary:c,borderRadiusSquare:l}}},FloatButtonGroup:{name:`FloatButtonGroup`,common:os,self(e){let{popoverColor:t,dividerColor:n,borderRadius:r}=e;return{color:t,buttonBorderColor:n,borderRadiusSquare:r,boxShadow:`0 2px 8px 0px rgba(0, 0, 0, .12)`}}},Marquee:{name:`Marquee`,common:os,self:Ig}},Hge=e=>{switch(e){case`zh-CN`:return{locale:Vo,dateLocal:Zo};case`en-US`:return{locale:null,dateLocal:null};default:return{locale:Vo,dateLocal:Zo}}},V_=typeof window<`u`,H_=(e,t=!1)=>t?Symbol.for(e):Symbol(e),U_=(e,t,n)=>W_({l:e,k:t,s:n}),W_=e=>JSON.stringify(e).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`).replace(/\u0027/g,`\\u0027`),G_=e=>typeof e==`number`&&isFinite(e),K_=e=>dv(e)===`[object Date]`,q_=e=>dv(e)===`[object RegExp]`,J_=e=>fv(e)&&Object.keys(e).length===0,Y_=Object.assign,X_=Object.create,Z_=(e=null)=>X_(e),Q_,$_=()=>Q_||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:Z_(),ev=Object.prototype.hasOwnProperty;function tv(e,t){return ev.call(e,t)}function nv(e,t){let n=e[t];return tv(e,t)?n:void 0}function rv(e){return tv(Object.prototype,e)}var iv=Array.isArray,av=e=>typeof e==`function`,ov=e=>typeof e==`string`,sv=e=>typeof e==`boolean`,cv=e=>typeof e==`object`&&!!e,lv=e=>cv(e)&&av(e.then)&&av(e.catch),uv=Object.prototype.toString,dv=e=>uv.call(e),fv=e=>dv(e)===`[object Object]`,pv=e=>e==null?``:iv(e)||fv(e)&&e.toString===uv?JSON.stringify(e,null,2):String(e);function mv(e,t=``){return e.reduce((e,n,r)=>r===0?e+n:e+t+n,``)}function hv(e,t){}function gv(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&apos;`).replace(/\//g,`&#x2F;`).replace(/=/g,`&#x3D;`)}function _v(e){return e.replace(/&(?![a-z0-9#]{2,6};)/gi,`&amp;`).replace(/"/g,`&quot;`).replace(/'/g,`&apos;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}var vv=/^javascript:/i,yv=/^(?:href|xlink:href|src|action|formaction)$/i,bv=/&#(?:x([0-9a-f]+)|(\d+));?/gi,xv=/&(?:Tab|NewLine);/g,Sv=/&colon;?/gi,Cv=/[\u0000-\u0020\u007f-\u009f]/g,wv=/(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i,Tv=/(^|[\s"'<>/])on(\w+\s*=)/gi,Ev=/(?:^|[\s"'<>/])srcdoc\s*=/i,Dv=/(^|[\s"'<>/])s(rcdoc\s*=)/gi,Ov=/<(?:base|animate|set)(?=[\s/>]|$)/i,kv=/<(base|animate|set)(?=[\s/>]|$)/gi,Av=/(^|[\s"'<>/])((?:href|xlink:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;function jv(e,t,n){let r=t||n;if(!r)return e;let i=Number.parseInt(r,t?16:10);return i<=127?String.fromCharCode(i):e}function Mv(e){let t=e.replace(bv,jv).replace(xv,``).replace(Sv,`:`).replace(Cv,``);return vv.test(t)}function Nv(e){let t=/url\s*\(/gi,n=``,r=0,i;for(;(i=t.exec(e))!==null;){let a=i.index,o=t.lastIndex-1,s=o+1,c=1,l=null;for(;s<e.length;s++){let t=e[s];if(l)t===l&&(l=null);else if(t===`"`||t===`'`)l=t;else if(t===`(`)c++;else if(t===`)`&&(c--,c===0))break}if(c!==0)break;let u=e.slice(o+1,s).trim(),d=u.startsWith(`"`)&&u.endsWith(`"`)||u.startsWith(`'`)&&u.endsWith(`'`)?u.slice(1,-1).trim():u;n+=e.slice(r,a),n+=Mv(d)?`url(about:blank)`:e.slice(a,s+1),r=s+1}return n+e.slice(r)}function Pv(e,t){return yv.test(e)&&Mv(t)?`about:blank`:_v(e.toLowerCase()===`style`?Nv(t):t)}function Fv(e){return e=e.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g,(e,t,n)=>`${t}="${Pv(t,n)}"`),e=e.replace(/([\w:-]+)\s*=\s*'([^']*)'/g,(e,t,n)=>`${t}='${Pv(t,n)}'`),wv.test(e)&&(e=e.replace(Tv,`$1&#111;n$2`)),Ev.test(e)&&(e=e.replace(Dv,`$1&#115;$2`)),Ov.test(e)&&(e=e.replace(kv,`&lt;$1`)),e=e.replace(Av,(e,t,n,r)=>Mv(r)?`${t}${n}about:blank`:e),e}var Iv=e=>!cv(e)||iv(e);function Lv(e,t){if(Iv(e)||Iv(t)||t===Object.prototype)throw Error(`Invalid value`);let n=[{src:e,des:t}];for(;n.length;){let{src:e,des:t}=n.pop();Object.keys(e).forEach(r=>{if(r===`__proto__`)return;let i=e[r];if(iv(i)){let e=[];e.length=i.length,t[r]=e,n.push({src:i,des:e})}else cv(i)?((!cv(t[r])||iv(t[r]))&&(t[r]=Z_()),n.push({src:i,des:t[r]})):t[r]=i})}}function Rv(e,t,n){return{line:e,column:t,offset:n}}function zv(e,t,n){let r={start:e,end:t};return n!=null&&(r.source=n),r}var Bv={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16};Bv.EXPECTED_TOKEN,Bv.INVALID_TOKEN_IN_PLACEHOLDER,Bv.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,Bv.UNKNOWN_ESCAPE_SEQUENCE,Bv.INVALID_UNICODE_ESCAPE_SEQUENCE,Bv.UNBALANCED_CLOSING_BRACE,Bv.UNTERMINATED_CLOSING_BRACE,Bv.EMPTY_PLACEHOLDER,Bv.NOT_ALLOW_NEST_PLACEHOLDER,Bv.INVALID_LINKED_FORMAT,Bv.MUST_HAVE_MESSAGES_IN_PLURAL,Bv.UNEXPECTED_EMPTY_LINKED_MODIFIER,Bv.UNEXPECTED_EMPTY_LINKED_KEY,Bv.UNEXPECTED_LEXICAL_ANALYSIS,Bv.UNHANDLED_CODEGEN_NODE_TYPE,Bv.UNHANDLED_MINIFIER_NODE_TYPE;function Vv(e,t,n={}){let{domain:r,messages:i,args:a}=n,o=SyntaxError(String(e));return o.code=e,t&&(o.location=t),o.domain=r,o}function Hv(e){throw e}var Uv=` `,Wv=`\r`,Gv=`
`,Kv=`\u2028`,qv=`\u2029`;function Jv(e){let t=e,n=0,r=1,i=1,a=0,o=e=>t[e]===Wv&&t[e+1]===Gv,s=e=>t[e]===Gv,c=e=>t[e]===qv,l=e=>t[e]===Kv,u=e=>o(e)||s(e)||c(e)||l(e),d=()=>n,f=()=>r,p=()=>i,m=()=>a,h=e=>o(e)||c(e)||l(e)?Gv:t[e],g=()=>h(n),_=()=>h(n+a);function v(){return a=0,u(n)&&(r++,i=0),o(n)&&n++,n++,i++,t[n]}function y(){return o(n+a)&&a++,a++,t[n+a]}function b(){n=0,r=1,i=1,a=0}function x(e=0){a=e}function S(){let e=n+a;for(;e!==n;)v();a=0}return{index:d,line:f,column:p,peekOffset:m,charAt:h,currentChar:g,currentPeek:_,next:v,peek:y,reset:b,resetPeek:x,skipToPeek:S}}var Yv=void 0,Xv=`'`,Zv=`tokenizer`;function Qv(e,t={}){let n=t.location!==!1,r=Jv(e),i=()=>r.index(),a=()=>Rv(r.line(),r.column(),r.index()),o=a(),s=i(),c={currentType:13,offset:s,startLoc:o,endLoc:o,lastType:13,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:``},l=()=>c,{onError:u}=t;function d(e,t,r,...i){let a=l();if(t.column+=r,t.offset+=r,u){let r=Vv(e,n?zv(a.startLoc,t):null,{domain:Zv,args:i});u(r)}}function f(e,t,r){e.endLoc=a(),e.currentType=t;let i={type:t};return n&&(i.loc=zv(e.startLoc,e.endLoc)),r!=null&&(i.value=r),i}let p=e=>f(e,13);function m(e,t){return e.currentChar()===t?(e.next(),t):(d(Bv.EXPECTED_TOKEN,a(),0,t),``)}function h(e){let t=``;for(;e.currentPeek()===Uv||e.currentPeek()===Gv;)t+=e.currentPeek(),e.peek();return t}function g(e){let t=h(e);return e.skipToPeek(),t}function _(e){if(e===Yv)return!1;let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t===95}function v(e){if(e===Yv)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57}function y(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=_(e.currentPeek());return e.resetPeek(),r}function b(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=v(e.currentPeek()===`-`?e.peek():e.currentPeek());return e.resetPeek(),r}function x(e,t){let{currentType:n}=t;if(n!==2)return!1;h(e);let r=e.currentPeek()===Xv;return e.resetPeek(),r}function S(e,t){let{currentType:n}=t;if(n!==7)return!1;h(e);let r=e.currentPeek()===`.`;return e.resetPeek(),r}function C(e,t){let{currentType:n}=t;if(n!==8)return!1;h(e);let r=_(e.currentPeek());return e.resetPeek(),r}function w(e,t){let{currentType:n}=t;if(n!==7&&n!==11)return!1;h(e);let r=e.currentPeek()===`:`;return e.resetPeek(),r}function T(e,t){let{currentType:n}=t;if(n!==9)return!1;let r=()=>{let t=e.currentPeek();return t===`{`?_(e.peek()):t===`@`||t===`|`||t===`:`||t===`.`||t===Uv||!t?!1:t===Gv?(e.peek(),r()):D(e,!1)},i=r();return e.resetPeek(),i}function E(e){h(e);let t=e.currentPeek()===`|`;return e.resetPeek(),t}function D(e,t=!0){let n=(t=!1,r=``)=>{let i=e.currentPeek();return i===`{`||i===`@`||!i?t:i===`|`?r!==Uv&&r!==Gv:i===Uv?(e.peek(),n(!0,Uv)):i!==Gv||(e.peek(),n(!0,Gv))},r=n();return t&&e.resetPeek(),r}function O(e,t){let n=e.currentChar();if(n!==Yv)return t(n)?(e.next(),n):null}function k(e){let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36}function A(e){return O(e,k)}function j(e){let t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===95||t===36||t===45}function ee(e){return O(e,j)}function te(e){let t=e.charCodeAt(0);return t>=48&&t<=57}function M(e){return O(e,te)}function ne(e){let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function re(e){return O(e,ne)}function ie(e){let t=``,n=``;for(;t=M(e);)n+=t;return n}function N(e){let t=``;for(;;){let n=e.currentChar();if(n===`\\`){let r=e.peek();r===`{`||r===`}`||r===`@`||r===`|`||r===`\\`?(t+=n+r,e.next(),e.next()):(e.resetPeek(),t+=n,e.next())}else if(n===`{`||n===`}`||n===`@`||n===`|`||!n)break;else if(n===Uv||n===Gv){if(D(e))t+=n,e.next();else if(E(e))break;else t+=n,e.next()}else t+=n,e.next()}return t}function P(e){g(e);let t=``,n=``;for(;t=ee(e);)n+=t;let r=e.currentChar();if(r&&r!==`}`&&r!==Yv&&r!==Uv&&r!==Gv&&r!==` `){let t=de(e);return d(Bv.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n+t),n+t}return e.currentChar()===Yv&&d(Bv.UNTERMINATED_CLOSING_BRACE,a(),0),n}function ae(e){g(e);let t=``;return e.currentChar()===`-`?(e.next(),t+=`-${ie(e)}`):t+=ie(e),e.currentChar()===Yv&&d(Bv.UNTERMINATED_CLOSING_BRACE,a(),0),t}function oe(e){return e!==Xv&&e!==Gv}function se(e){g(e),m(e,`'`);let t=``,n=``;for(;t=O(e,oe);)n+=t===`\\`?ce(e):t;let r=e.currentChar();return r===Gv||r===Yv?(d(Bv.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),r===Gv&&(e.next(),m(e,`'`)),n):(m(e,`'`),n)}function ce(e){let t=e.currentChar();switch(t){case`\\`:case`'`:return e.next(),`\\${t}`;case`u`:return le(e,t,4);case`U`:return le(e,t,6);default:return d(Bv.UNKNOWN_ESCAPE_SEQUENCE,a(),0,t),``}}function le(e,t,n){m(e,t);let r=``;for(let i=0;i<n;i++){let n=re(e);if(!n){d(Bv.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${t}${r}${e.currentChar()}`);break}r+=n}return`\\${t}${r}`}function ue(e){return e!==`{`&&e!==`}`&&e!==Uv&&e!==Gv}function de(e){g(e);let t=``,n=``;for(;t=O(e,ue);)n+=t;return n}function fe(e){let t=``,n=``;for(;t=A(e);)n+=t;return n}function pe(e){let t=n=>{let r=e.currentChar();return r===`{`||r===`@`||r===`|`||r===`(`||r===`)`||!r||r===Uv?n:(n+=r,e.next(),t(n))};return t(``)}function me(e){g(e);let t=m(e,`|`);return g(e),t}function F(e,t){let n=null;switch(e.currentChar()){case`{`:return t.braceNest>=1&&d(Bv.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),e.next(),n=f(t,2,`{`),g(e),t.braceNest++,n;case`}`:return t.braceNest>0&&t.currentType===2&&d(Bv.EMPTY_PLACEHOLDER,a(),0),e.next(),n=f(t,3,`}`),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&t.braceNest===0&&(t.inLinked=!1),n;case`@`:return t.braceNest>0&&d(Bv.UNTERMINATED_CLOSING_BRACE,a(),0),n=he(e,t)||p(t),t.braceNest=0,n;default:{let r=!0,i=!0,o=!0;if(E(e))return t.braceNest>0&&d(Bv.UNTERMINATED_CLOSING_BRACE,a(),0),n=f(t,1,me(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(t.currentType===4||t.currentType===5||t.currentType===6))return d(Bv.UNTERMINATED_CLOSING_BRACE,a(),0),t.braceNest=0,ge(e,t);if(r=y(e,t))return n=f(t,4,P(e)),g(e),n;if(i=b(e,t))return n=f(t,5,ae(e)),g(e),n;if(o=x(e,t))return n=f(t,6,se(e)),g(e),n;if(!r&&!i&&!o)return n=f(t,12,de(e)),d(Bv.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n.value),g(e),n;break}}return n}function he(e,t){let{currentType:n}=t,r=null,i=e.currentChar();switch(n!==7&&n!==8&&n!==11&&n!==9||i!==Gv&&i!==Uv||d(Bv.INVALID_LINKED_FORMAT,a(),0),i){case`@`:return e.next(),r=f(t,7,`@`),t.inLinked=!0,r;case`.`:return g(e),e.next(),f(t,8,`.`);case`:`:return g(e),e.next(),f(t,9,`:`);default:return E(e)?(r=f(t,1,me(e)),t.braceNest=0,t.inLinked=!1,r):S(e,t)||w(e,t)?(g(e),he(e,t)):C(e,t)?(g(e),f(t,11,fe(e))):T(e,t)?(g(e),i===`{`?F(e,t)||r:f(t,10,pe(e))):(n===7&&d(Bv.INVALID_LINKED_FORMAT,a(),0),t.braceNest=0,t.inLinked=!1,ge(e,t))}}function ge(e,t){let n={type:13};if(t.braceNest>0)return F(e,t)||p(t);if(t.inLinked)return he(e,t)||p(t);switch(e.currentChar()){case`{`:return F(e,t)||p(t);case`}`:return d(Bv.UNBALANCED_CLOSING_BRACE,a(),0),e.next(),f(t,3,`}`);case`@`:return he(e,t)||p(t);default:if(E(e))return n=f(t,1,me(e)),t.braceNest=0,t.inLinked=!1,n;if(D(e))return f(t,0,N(e))}return n}function _e(){let{currentType:e,offset:t,startLoc:n,endLoc:o}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=o,c.offset=i(),c.startLoc=a(),r.currentChar()===Yv?f(c,13):ge(r,c)}return{nextToken:_e,currentOffset:i,currentPosition:a,context:l}}var $v=`parser`,Uge=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,Wge=/\\([\\@{}|])/g;function Gge(e,t){return t}function Kge(e,t,n){switch(e){case`\\\\`:return`\\`;case`\\'`:return`'`;default:{let e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):`<60>`}}}function qge(e={}){let t=e.location!==!1,{onError:n}=e;function r(e,r,i,a,...o){let s=e.currentPosition();if(s.offset+=a,s.column+=a,n){let e=Vv(r,t?zv(i,s):null,{domain:$v,args:o});n(e)}}function i(e,n,r){let i={type:e};return t&&(i.start=n,i.end=n,i.loc={start:r,end:r}),i}function a(e,n,r,i){t&&(e.end=n,e.loc&&(e.loc.end=r))}function o(e,t){let n=e.context(),r=i(3,n.offset,n.startLoc);return r.value=t.replace(Wge,Gge),a(r,e.currentOffset(),e.currentPosition()),r}function s(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(5,n,r);return o.index=parseInt(t,10),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function c(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(4,n,r);return o.key=t,e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function l(e,t){let{lastOffset:n,lastStartLoc:r}=e.context(),o=i(9,n,r);return o.value=t.replace(Uge,Kge),e.nextToken(),a(o,e.currentOffset(),e.currentPosition()),o}function u(e){let t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:s}=n,c=i(8,o,s);return t.type===11?(t.value??r(e,Bv.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,0,ey(t)),c.value=t.value||``,a(c,e.currentOffset(),e.currentPosition()),{node:c}):(r(e,Bv.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,0),c.value=``,a(c,o,s),{nextConsumeToken:t,node:c})}function d(e,t){let n=e.context(),r=i(7,n.offset,n.startLoc);return r.value=t,a(r,e.currentOffset(),e.currentPosition()),r}function f(e){let t=e.context(),n=i(6,t.offset,t.startLoc),o=e.nextToken();if(o.type===8){let t=u(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(o.type!==9&&r(e,Bv.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ey(o)),o=e.nextToken(),o.type===2&&(o=e.nextToken()),o.type){case 10:o.value??r(e,Bv.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ey(o)),n.key=d(e,o.value||``);break;case 4:o.value??r(e,Bv.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ey(o)),n.key=c(e,o.value||``);break;case 5:o.value??r(e,Bv.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ey(o)),n.key=s(e,o.value||``);break;case 6:o.value??r(e,Bv.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ey(o)),n.key=l(e,o.value||``);break;default:{r(e,Bv.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc,0);let s=e.context(),c=i(7,s.offset,s.startLoc);return c.value=``,a(c,s.offset,s.startLoc),n.key=c,a(n,s.offset,s.startLoc),{nextConsumeToken:o,node:n}}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function p(e){let t=e.context(),n=i(2,t.currentType===1?e.currentOffset():t.offset,t.currentType===1?t.endLoc:t.startLoc);n.items=[];let u=null;do{let i=u||e.nextToken();switch(u=null,i.type){case 0:i.value??r(e,Bv.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ey(i)),n.items.push(o(e,i.value||``));break;case 5:i.value??r(e,Bv.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ey(i)),n.items.push(s(e,i.value||``));break;case 4:i.value??r(e,Bv.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ey(i)),n.items.push(c(e,i.value||``));break;case 6:i.value??r(e,Bv.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,ey(i)),n.items.push(l(e,i.value||``));break;case 7:{let t=f(e);n.items.push(t.node),u=t.nextConsumeToken||null;break}}}while(t.currentType!==13&&t.currentType!==1);return a(n,t.currentType===1?t.lastOffset:e.currentOffset(),t.currentType===1?t.lastEndLoc:e.currentPosition()),n}function m(e,t,n,o){let s=e.context(),c=o.items.length===0,l=i(1,t,n);l.cases=[],l.cases.push(o);do{let t=p(e);c||=t.items.length===0,l.cases.push(t)}while(s.currentType!==13);return c&&r(e,Bv.MUST_HAVE_MESSAGES_IN_PLURAL,n,0),a(l,e.currentOffset(),e.currentPosition()),l}function h(e){let t=e.context(),{offset:n,startLoc:r}=t,i=p(e);return t.currentType===13?i:m(e,n,r,i)}function g(n){let o=Qv(n,Y_({},e)),s=o.context(),c=i(0,s.offset,s.startLoc);return t&&c.loc&&(c.loc.source=n),c.body=h(o),e.onCacheKey&&(c.cacheKey=e.onCacheKey(n)),s.currentType!==13&&r(o,Bv.UNEXPECTED_LEXICAL_ANALYSIS,s.lastStartLoc,0,n[s.offset]||``),a(c,o.currentOffset(),o.currentPosition()),c}return{parse:g}}function ey(e){if(e.type===13)return`EOF`;let t=(e.value||``).replace(/\r?\n/gu,`\\n`);return t.length>10?t.slice(0,9)+`…`:t}function Jge(e,t={}){let n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}function ty(e,t){for(let n=0;n<e.length;n++)ny(e[n],t)}function ny(e,t){switch(e.type){case 1:ty(e.cases,t),t.helper(`plural`);break;case 2:ty(e.items,t);break;case 6:ny(e.key,t),t.helper(`linked`),t.helper(`type`);break;case 5:t.helper(`interpolate`),t.helper(`list`);break;case 4:t.helper(`interpolate`),t.helper(`named`)}}function Yge(e,t={}){let n=Jge(e);n.helper(`normalize`),e.body&&ny(e.body,n);let r=n.context();e.helpers=Array.from(r.helpers)}function Xge(e){let t=e.body;return t.type===2?ry(t):t.cases.forEach(e=>ry(e)),e}function ry(e){if(e.items.length===1){let t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{let t=[];for(let n=0;n<e.items.length;n++){let r=e.items[n];if(r.type!==3&&r.type!==9||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=mv(t);for(let t=0;t<e.items.length;t++){let n=e.items[t];(n.type===3||n.type===9)&&delete n.value}}}}function iy(e){switch(e.t=e.type,e.type){case 0:{let t=e;iy(t.body),t.b=t.body,delete t.body;break}case 1:{let t=e,n=t.cases;for(let e=0;e<n.length;e++)iy(n[e]);t.c=n,delete t.cases;break}case 2:{let t=e,n=t.items;for(let e=0;e<n.length;e++)iy(n[e]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{let t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{let t=e;iy(t.key),t.k=t.key,delete t.key,t.modifier&&(iy(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{let t=e;t.i=t.index,delete t.index;break}case 4:{let t=e;t.k=t.key,delete t.key;break}}delete e.type}function Zge(e,t){let{filename:n,breakLineCode:r,needIndent:i}=t,a=t.location!==!1,o={filename:n,code:``,column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:i,indentLevel:0};a&&e.loc&&(o.source=e.loc.source);let s=()=>o;function c(e,t){o.code+=e}function l(e,t=!0){let n=t?r:``;c(i?n+` `.repeat(e):n)}function u(e=!0){let t=++o.indentLevel;e&&l(t)}function d(e=!0){let t=--o.indentLevel;e&&l(t)}function f(){l(o.indentLevel)}return{context:s,push:c,indent:u,deindent:d,newline:f,helper:e=>`_${e}`,needIndent:()=>o.needIndent}}function Qge(e,t){let{helper:n}=e;e.push(`${n(`linked`)}(`),ay(e,t.key),t.modifier?(e.push(`, `),ay(e,t.modifier),e.push(`, _type`)):e.push(`, undefined, _type`),e.push(`)`)}function $ge(e,t){let{helper:n,needIndent:r}=e;e.push(`${n(`normalize`)}([`),e.indent(r());let i=t.items.length;for(let n=0;n<i&&(ay(e,t.items[n]),n!==i-1);n++)e.push(`, `);e.deindent(r()),e.push(`])`)}function e_e(e,t){let{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n(`plural`)}([`),e.indent(r());let i=t.cases.length;for(let n=0;n<i&&(ay(e,t.cases[n]),n!==i-1);n++)e.push(`, `);e.deindent(r()),e.push(`])`)}}function t_e(e,t){t.body?ay(e,t.body):e.push(`null`)}function ay(e,t){let{helper:n}=e;switch(t.type){case 0:t_e(e,t);break;case 1:e_e(e,t);break;case 2:$ge(e,t);break;case 6:Qge(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n(`interpolate`)}(${n(`list`)}(${t.index}))`,t);break;case 4:e.push(`${n(`interpolate`)}(${n(`named`)}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t)}}var n_e=(e,t={})=>{let n=ov(t.mode)?t.mode:`normal`,r=ov(t.filename)?t.filename:`message.intl`;t.sourceMap;let i=t.breakLineCode==null?n===`arrow`?`;`:`
`:t.breakLineCode,a=t.needIndent?t.needIndent:n!==`arrow`,o=e.helpers||[],s=Zge(e,{filename:r,breakLineCode:i,needIndent:a});s.push(n===`normal`?`function __msg__ (ctx) {`:`(ctx) => {`),s.indent(a),o.length>0&&(s.push(`const { ${mv(o.map(e=>`${e}: _${e}`),`, `)} } = ctx`),s.newline()),s.push(`return `),ay(s,e),s.deindent(a),s.push(`}`),delete e.helpers;let{code:c,map:l}=s.context();return{ast:e,code:c,map:l?l.toJSON():void 0}};function r_e(e,t={}){let n=Y_({},t),r=!!n.jit,i=!!n.minify,a=n.optimize==null||n.optimize,o=qge(n).parse(e);return r?(a&&Xge(o),i&&iy(o),{ast:o,code:``}):(Yge(o,n),n_e(o,n))}function i_e(){typeof __INTLIFY_PROD_DEVTOOLS__!=`boolean`&&($_().__INTLIFY_PROD_DEVTOOLS__=!1)}function oy(e){return cv(e)&&fy(e)===0&&(tv(e,`b`)||tv(e,`body`))}var sy=[`b`,`body`];function a_e(e){return _y(e,sy)}var cy=[`c`,`cases`];function o_e(e){return _y(e,cy,[])}var ly=[`s`,`static`];function s_e(e){return _y(e,ly)}var uy=[`i`,`items`];function c_e(e){return _y(e,uy,[])}var dy=[`t`,`type`];function fy(e){return _y(e,dy)}var py=[`v`,`value`];function my(e,t){let n=_y(e,py);if(n!=null)return n;throw yy(t)}var hy=[`m`,`modifier`];function l_e(e){return _y(e,hy)}var gy=[`k`,`key`];function u_e(e){let t=_y(e,gy);if(t)return t;throw yy(6)}function _y(e,t,n){for(let n=0;n<t.length;n++){let r=t[n];if(tv(e,r)&&e[r]!=null)return e[r]}return n}var vy=[...sy,...cy,...ly,...uy,...gy,...hy,...py,...dy];function yy(e){return Error(`unhandled node type: ${e}`)}function by(e){return t=>d_e(t,e)}function d_e(e,t){let n=a_e(t);if(n==null)throw yy(0);if(fy(n)===1){let t=o_e(n);return e.plural(t.reduce((t,n)=>[...t,xy(e,n)],[]))}return xy(e,n)}function xy(e,t){let n=s_e(t);if(n!=null)return e.type===`text`?n:e.normalize([n]);{let n=c_e(t).reduce((t,n)=>[...t,Sy(e,n)],[]);return e.normalize(n)}}function Sy(e,t){let n=fy(t);switch(n){case 3:return my(t,n);case 9:return my(t,n);case 4:{let r=t;if(tv(r,`k`)&&r.k)return e.interpolate(e.named(r.k));if(tv(r,`key`)&&r.key)return e.interpolate(e.named(r.key));throw yy(n)}case 5:{let r=t;if(tv(r,`i`)&&G_(r.i))return e.interpolate(e.list(r.i));if(tv(r,`index`)&&G_(r.index))return e.interpolate(e.list(r.index));throw yy(n)}case 6:{let n=t,r=l_e(n),i=u_e(n);return e.linked(Sy(e,i),r?Sy(e,r):void 0,e.type)}case 7:return my(t,n);case 8:return my(t,n);default:throw Error(`unhandled node on format message part: ${n}`)}}var f_e=e=>e,Cy=Z_();function p_e(e,t={}){let n=!1,r=t.onError||Hv;return t.onError=e=>{n=!0,r(e)},{...r_e(e,t),detectError:n}}function m_e(e,t){if(ov(e)){sv(t.warnHtmlMessage)&&t.warnHtmlMessage;let n=(t.onCacheKey||f_e)(e),r=Cy[n];if(r)return r;let{ast:i,detectError:a}=p_e(e,{...t,location:!1,jit:!0}),o=by(i);return a?o:Cy[n]=o}{if(!oy(e))return(()=>e);let t=e.cacheKey;return t?Cy[t]||(Cy[t]=by(e)):by(e)}}var wy=null;function h_e(e){wy=e}function g_e(e,t,n){wy&&wy.emit(`i18n:init`,{timestamp:Date.now(),i18n:e,version:t,meta:n})}var __e=v_e(`function:translate`);function v_e(e){return t=>wy&&wy.emit(e,t)}var Ty={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function Ey(e){return Vv(e,null,void 0)}Ty.INVALID_ARGUMENT,Ty.INVALID_DATE_ARGUMENT,Ty.INVALID_ISO_DATE_ARGUMENT,Ty.NOT_SUPPORT_NON_STRING_MESSAGE,Ty.NOT_SUPPORT_LOCALE_PROMISE_VALUE,Ty.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION,Ty.NOT_SUPPORT_LOCALE_TYPE;function Dy(e,t){return t.locale==null?ky(e.locale):ky(t.locale)}var Oy;function ky(e){if(ov(e))return e;if(av(e)){if(e.resolvedOnce&&Oy!=null)return Oy;if(e.constructor.name===`Function`){let t=e();if(lv(t))throw Ey(Ty.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Oy=t}throw Ey(Ty.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Ey(Ty.NOT_SUPPORT_LOCALE_TYPE)}function y_e(e,t,n){return[...new Set([n,...iv(t)?t:cv(t)?Object.keys(t).filter(e=>e!=="default"):ov(t)?[t]:[n]])]}function b_e(e,t,n){let r=ov(n)?n:Py,i=e,a;cv(t)?(i.__localeChainObjectCache||=new WeakMap,a=i.__localeChainObjectCache.get(t),a||(a=new Map,i.__localeChainObjectCache.set(t,a))):(i.__localeChainCache||=new Map,a=i.__localeChainCache.get(t),a||(a=new Map,i.__localeChainCache.set(t,a)));let o=a.get(r);if(o)return o;let s=[],c=[n];for(;iv(c);)c=Ay(s,c,t);let l=iv(t)||!fv(t)?t:t.default?t.default:null;return c=ov(l)?[l]:l,iv(c)&&Ay(s,c,!1),a.set(r,s),s}function Ay(e,t,n){let r=!0;for(let i=0;i<t.length&&sv(r);i++){let a=t[i];ov(a)&&(r=x_e(e,t[i],n))}return r}function x_e(e,t,n){let r,i=t.split(`-`);do r=S_e(e,i.join(`-`),n),i.splice(-1,1);while(i.length&&r===!0);return r}function S_e(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!==`!`;let i=t.replace(/!/g,``);e.push(i),(iv(n)||fv(n))&&n[i]&&(r=n[i])}return r}var jy=[];jy[0]={w:[0],i:[3,0],"[":[4],o:[7]},jy[1]={w:[1],".":[2],"[":[4],o:[7]},jy[2]={w:[2],i:[3,0],0:[3,0]},jy[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},jy[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},jy[5]={"'":[4,0],o:8,l:[5,0]},jy[6]={'"':[4,0],o:8,l:[6,0]};var C_e=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function w_e(e){return C_e.test(e)}function T_e(e){let t=e.charCodeAt(0);return t===e.charCodeAt(e.length-1)&&(t===34||t===39)?e.slice(1,-1):e}function E_e(e){if(e==null)return`o`;switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return`i`;case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return`w`}return`i`}function D_e(e){let t=e.trim();return e.charAt(0)===`0`&&isNaN(parseInt(e))?!1:w_e(t)?T_e(t):`*`+t}function O_e(e){let t=[],n=-1,r=0,i=0,a,o,s,c,l,u,d,f=[];f[0]=()=>{o===void 0?o=s:o+=s},f[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},f[2]=()=>{f[0](),i++},f[3]=()=>{if(i>0)i--,r=4,f[0]();else{if(i=0,o===void 0||(o=D_e(o),o===!1))return!1;f[1]()}};function p(){let t=e[n+1];if(r===5&&t===`'`||r===6&&t===`"`)return n++,s=`\\`+t,f[0](),!0}for(;r!==null;)if(n++,a=e[n],!(a===`\\`&&p())){if(c=E_e(a),d=jy[r],l=d[c]||d.l||8,l===8||(r=l[0],l[1]!==void 0&&(u=f[l[1]],u&&(s=a,u()===!1))))return;if(r===7)return t}}var My=new Map;function k_e(e,t){return cv(e)?nv(e,t):null}function A_e(e,t){if(!cv(e))return null;let n=My.get(t);if(n||(n=O_e(t),n&&My.set(t,n)),!n)return null;let r=n.length,i=e,a=0;for(;a<r;){let e=n[a];if(vy.includes(e)&&oy(i)||!cv(i)||!tv(i,e))return null;let t=i[e];if(t===void 0||av(i))return null;i=t,a++}return i}var Ny={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,INVALID_NUMBER_ARGUMENT:8,INVALID_DATE_ARGUMENT:9};Ny.NOT_FOUND_KEY,Ny.FALLBACK_TO_TRANSLATE,Ny.CANNOT_FORMAT_NUMBER,Ny.FALLBACK_TO_NUMBER_FORMAT,Ny.CANNOT_FORMAT_DATE,Ny.FALLBACK_TO_DATE_FORMAT,Ny.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER,Ny.INVALID_NUMBER_ARGUMENT,Ny.INVALID_DATE_ARGUMENT;var j_e=`11.4.17`,Py=`en-US`,Fy=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function M_e(){return{upper:(e,t)=>t===`text`&&ov(e)?e.toUpperCase():t===`vnode`&&cv(e)&&`__v_isVNode`in e?e.children.toUpperCase():e,lower:(e,t)=>t===`text`&&ov(e)?e.toLowerCase():t===`vnode`&&cv(e)&&`__v_isVNode`in e?e.children.toLowerCase():e,capitalize:(e,t)=>t===`text`&&ov(e)?Fy(e):t===`vnode`&&cv(e)&&`__v_isVNode`in e?Fy(e.children):e}}var Iy;function N_e(e){Iy=e}var Ly;function P_e(e){Ly=e}var Ry;function F_e(e){Ry=e}var I_e=null,L_e=()=>I_e,zy=null,By=e=>{zy=e},R_e=()=>zy,Vy=0;function z_e(e={}){let t=av(e.onWarn)?e.onWarn:hv,n=ov(e.version)?e.version:j_e,r=ov(e.locale)||av(e.locale)?e.locale:Py,i=av(r)?Py:r,a=iv(e.fallbackLocale)||fv(e.fallbackLocale)||ov(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=fv(e.messages)?e.messages:Hy(i),s=fv(e.datetimeFormats)?e.datetimeFormats:Hy(i),c=fv(e.numberFormats)?e.numberFormats:Hy(i),l=Y_(Z_(),e.modifiers,M_e()),u=e.pluralRules||Z_(),d=av(e.missing)?e.missing:null,f=sv(e.missingWarn)||q_(e.missingWarn)?e.missingWarn:!0,p=sv(e.fallbackWarn)||q_(e.fallbackWarn)?e.fallbackWarn:!0,m=!!e.fallbackFormat,h=!!e.unresolving,g=av(e.postTranslation)?e.postTranslation:null,_=fv(e.processor)?e.processor:null,v=!sv(e.warnHtmlMessage)||e.warnHtmlMessage,y=!!e.escapeParameter,b=av(e.messageCompiler)?e.messageCompiler:Iy,x=av(e.messageResolver)?e.messageResolver:Ly||k_e,S=av(e.localeFallbacker)?e.localeFallbacker:Ry||y_e,C=cv(e.fallbackContext)?e.fallbackContext:void 0,w=e,T=cv(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,E=cv(w.__numberFormatters)?w.__numberFormatters:new Map,D=cv(w.__meta)?w.__meta:{};Vy++;let O={version:n,cid:Vy,locale:r,fallbackLocale:a,messages:o,modifiers:l,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:p,fallbackFormat:m,unresolving:h,postTranslation:g,processor:_,warnHtmlMessage:v,escapeParameter:y,messageCompiler:b,messageResolver:x,localeFallbacker:S,fallbackContext:C,onWarn:t,__meta:D};return O.datetimeFormats=s,O.numberFormats=c,O.__datetimeFormatters=T,O.__numberFormatters=E,__INTLIFY_PROD_DEVTOOLS__&&g_e(O,n,D),O}var Hy=e=>({[e]:Z_()});function Uy(e,t,n,r,i){let{missing:a,onWarn:o}=e;if(a!==null){let r=a(e,n,t,i);return ov(r)?r:t}return t}function Wy(e,t){let n=e;cv(t)?n.__localeChainObjectCache?.delete(t):n.__localeChainCache?.delete(t)}function Gy(e,t,n){Wy(e,n),e.fallbackContext&&Wy(e.fallbackContext,n),e.localeFallbacker(e,n,t)}function B_e(e,t){return e!==t&&e.split(`-`)[0]===t.split(`-`)[0]}function V_e(e,t){let n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(B_e(e,t[r]))return!0;return!1}function Ky(e,t,n,r,i,a,o){let{fallbackLocale:s,localeFallbacker:c,onWarn:l}=e,u=c(e,s,n);for(let n=0;n<u.length;n++){let a=u[n];if(fv(nv(nv(r,a)||{},t))&&ov(a))return a;Uy(e,t,a,i,o)}return null}function qy(e,t,n){let r=`${e}__${t}`;return fv(n)&&!J_(n)&&(r=`${r}__${JSON.stringify(n)}`),r}function Jy(e,t,n){for(let r in n){let n=`${t}__${r}`;for(let t of e.keys())(t===n||t.startsWith(`${n}__`))&&e.delete(t)}}function Yy(e,t,n,r){let[,i,a,o]=e,s=n;return ov(i)?t.key=i:fv(i)&&Object.keys(i).forEach(e=>{r.includes(e)?s[e]=i[e]:t[e]=i[e]}),ov(a)?t.locale=a:fv(a)&&(s=a),fv(o)&&(s=o),s}var Xy=typeof Intl<`u`;Xy&&Intl.DateTimeFormat,Xy&&Intl.NumberFormat;function Zy(e,...t){let{datetimeFormats:n,unresolving:r,onWarn:i}=e,{__datetimeFormatters:a}=e;if(!ov(t[0])&&!K_(t[0])&&!G_(t[0]))return``;let[o,s,c,l]=$y(...t),u=sv(c.missingWarn)?c.missingWarn:e.missingWarn,d=sv(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=!!c.part,p=Dy(e,c);if(!ov(o)||o===``){let e=new Intl.DateTimeFormat(p.replace(/!/g,``),l);return f?e.formatToParts(s):e.format(s)}let m=Ky(e,o,p,n,u,d,`datetime format`);if(!ov(m))return r?-1:o;let h=n[m][o],g=qy(m,o,l),_=a.get(g);return _||(_=new Intl.DateTimeFormat(m,Y_({},h,l)),a.set(g,_)),f?_.formatToParts(s):_.format(s)}var Qy=[`localeMatcher`,`weekday`,`era`,`year`,`month`,`day`,`hour`,`minute`,`second`,`timeZoneName`,`formatMatcher`,`hour12`,`timeZone`,`dateStyle`,`timeStyle`,`calendar`,`dayPeriod`,`numberingSystem`,`hourCycle`,`fractionalSecondDigits`];function $y(...e){let[t]=e,n=Z_(),r=Z_(),i;if(ov(t)){let e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Ey(Ty.INVALID_ISO_DATE_ARGUMENT);let n=e[3]?e[3].trim().startsWith(`T`)?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();i=new Date(n);try{i.toISOString()}catch{throw Ey(Ty.INVALID_ISO_DATE_ARGUMENT)}}else if(K_(t)){if(isNaN(t.getTime()))throw Ey(Ty.INVALID_DATE_ARGUMENT);i=t}else if(G_(t))i=t;else throw Ey(Ty.INVALID_ARGUMENT);let a=Yy(e,n,r,Qy);return[n.key||``,i,n,a]}function eb(e,t,n){Jy(e.__datetimeFormatters,t,n)}function tb(e,...t){let{numberFormats:n,unresolving:r,onWarn:i}=e,{__numberFormatters:a}=e;if(!G_(t[0]))return``;let[o,s,c,l]=rb(...t),u=sv(c.missingWarn)?c.missingWarn:e.missingWarn,d=sv(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=!!c.part,p=Dy(e,c);if(!ov(o)||o===``){let e=new Intl.NumberFormat(p.replace(/!/g,``),l);return f?e.formatToParts(s):e.format(s)}let m=Ky(e,o,p,n,u,d,`number format`);if(!ov(m))return r?-1:o;let h=n[m][o],g=qy(m,o,l),_=a.get(g);return _||(_=new Intl.NumberFormat(m,Y_({},h,l)),a.set(g,_)),f?_.formatToParts(s):_.format(s)}var nb=[`localeMatcher`,`style`,`currency`,`currencyDisplay`,`currencySign`,`useGrouping`,`minimumIntegerDigits`,`minimumFractionDigits`,`maximumFractionDigits`,`minimumSignificantDigits`,`maximumSignificantDigits`,`compactDisplay`,`notation`,`signDisplay`,`unit`,`unitDisplay`,`roundingMode`,`roundingPriority`,`roundingIncrement`,`trailingZeroDisplay`];function rb(...e){let[t]=e,n=Z_(),r=Z_();if(!G_(t))throw Ey(Ty.INVALID_ARGUMENT);let i=t,a=Yy(e,n,r,nb);return[n.key||``,i,n,a]}function ib(e,t,n){Jy(e.__numberFormatters,t,n)}var H_e=e=>e,U_e=e=>``,W_e=`text`,G_e=e=>e.length===0?``:mv(e),K_e=pv;function ab(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function q_e(e){let t=G_(e.pluralIndex)?e.pluralIndex:-1;return G_(e.named?.count)?e.named.count:G_(e.named?.n)?e.named.n:t}function J_e(e={}){let t=e.locale,n=q_e(e),r=ov(t)&&e.pluralRules&&av(nv(e.pluralRules,t))?e.pluralRules[t]:ab,i=r===ab?void 0:ab,a=e=>e[r(n,e.length,i)],o=e.list||[],s=e=>o[e],c=e.named||Z_(),l=G_(e.pluralIndex),u=t=>{let n=rv(t)?nv(c,t):c[t];return l&&!n&&(t===`count`||t===`n`)?e.pluralIndex:n};function d(t,n){return(av(e.messages)?e.messages(t,!!n):cv(e.messages)?e.messages[t]:!1)||(e.parent?e.parent.message(t):U_e)}let f=t=>e.modifiers?nv(e.modifiers,t):H_e,p=av(e.processor?.normalize)?e.processor.normalize:G_e,m=av(e.processor?.interpolate)?e.processor.interpolate:K_e,h={list:s,named:u,plural:a,linked:(e,...t)=>{let[n,r]=t,i=`text`,a=``;t.length===1?cv(n)?(a=n.modifier||a,i=n.type||i):ov(n)&&(a=n||a):t.length===2&&(ov(n)&&(a=n||a),ov(r)&&(i=r||i));let o=d(e,!0)(h),s=o===``||o===void 0?e:o,c=i===`vnode`&&iv(s)&&a?s[0]:s;if(!a)return c;let l=f(a);return av(l)?l(c,i):c},message:d,type:ov(e.processor?.type)?e.processor.type:W_e,interpolate:m,normalize:p,values:Y_(Z_(),o,c,l?{count:u(`count`),n:u(`n`)}:{})};return h}var ob=()=>``,sb=e=>av(e),cb=e=>ov(e)||oy(e)||sb(e);function lb(e,...t){let{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:a,fallbackLocale:o,messages:s}=e,[c,l]=fb(...t),u=sv(l.missingWarn)?l.missingWarn:e.missingWarn,d=sv(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,f=sv(l.escapeParameter)?l.escapeParameter:e.escapeParameter,p=!!l.resolvedMessage,m=ov(l.default)||sv(l.default)?sv(l.default)?a?c:()=>c:l.default:n?a?c:()=>c:null,h=n||m!=null&&(ov(m)||av(m)),g=Dy(e,l);f&&Y_e(l);let[_,v,y]=p?[c,g,nv(s,g)||Z_()]:ub(e,c,g,o,d,u),b=_,x=c;if(!p&&!cb(b)&&h&&(b=m,x=b),!p&&(!cb(b)||!ov(v)))return i?-1:c;let S=!1,C=sb(b)?b:db(e,c,v,b,x,()=>{S=!0});if(S)return b;let w=X_e(e,C,J_e(Q_e(e,v,y,l))),T=r?r(w,c):w;if(f&&ov(T)&&(T=Fv(T)),__INTLIFY_PROD_DEVTOOLS__){let t={timestamp:Date.now(),key:ov(c)?c:sb(b)?b.key:``,locale:v||(sb(b)?b.locale:``),format:ov(b)?b:sb(b)?b.source:``,message:T};t.meta=Y_({},e.__meta,L_e()||{}),__e(t)}return T}function Y_e(e){if(iv(e.list)&&(e.list=e.list.map(e=>ov(e)?gv(e):e)),cv(e.named)){let t=e.named,n=Z_();for(let e of Object.keys(t)){let r=t[e];n[e]=ov(r)?gv(r):r}e.named=n}}function ub(e,t,n,r,i,a){let{messages:o,onWarn:s,messageResolver:c,localeFallbacker:l}=e,u=l(e,r,n),d=Z_(),f,p=null;for(let n=0;n<u.length&&(f=u[n],d=nv(o,f)||Z_(),(p=c(d,t))===null&&(p=nv(d,t)),!cb(p));n++)if(!V_e(f,u)){let n=Uy(e,t,f,a,`translate`);n!==t&&(p=n)}return[p,f,d]}function db(e,t,n,r,i,a){let{messageCompiler:o,warnHtmlMessage:s}=e;if(sb(r)){let e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(o==null){let e=(()=>r);return e.locale=n,e.key=t,e}let c=o(r,Z_e(e,n,i,r,s,a));return c.locale=n,c.key=t,c.source=r,c}function X_e(e,t,n){return t(n)}function fb(...e){let[t,n,r]=e,i=Z_();if(!ov(t)&&!G_(t)&&!sb(t)&&!oy(t))throw Ey(Ty.INVALID_ARGUMENT);let a=G_(t)?String(t):(sb(t),t);return G_(n)?i.plural=n:ov(n)?i.default=n:fv(n)&&!J_(n)?i.named=n:iv(n)&&(i.list=n),G_(r)?i.plural=r:ov(r)?i.default=r:fv(r)&&Y_(i,r),[a,i]}function Z_e(e,t,n,r,i,a){return{locale:t,key:n,warnHtmlMessage:i,onError:e=>{throw a&&a(e),e},onCacheKey:e=>U_(t,n,e)}}function Q_e(e,t,n,r){let{modifiers:i,pluralRules:a,messageResolver:o,fallbackLocale:s,fallbackWarn:c,missingWarn:l,fallbackContext:u}=e,d={locale:t,modifiers:i,pluralRules:a,messages:(r,i)=>{let a=o(n,r);if(a==null&&(u||i)){let[n,,i]=ub(u||e,r,t,s,c,l);a=n??o(i,r)}if(ov(a)||oy(a)){let n=!1,i=db(e,r,t,a,r,()=>{n=!0});return n?ob:i}return sb(a)?a:ob}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),G_(r.plural)&&(d.pluralIndex=r.plural),d}i_e();var $_e=`11.4.17`;function eve(){typeof __INTLIFY_PROD_DEVTOOLS__!=`boolean`&&($_().__INTLIFY_PROD_DEVTOOLS__=!1)}var pb={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function mb(e,...t){return Vv(e,null,void 0)}pb.UNEXPECTED_RETURN_TYPE,pb.INVALID_ARGUMENT,pb.MUST_BE_CALL_SETUP_TOP,pb.NOT_INSTALLED,pb.UNEXPECTED_ERROR,pb.REQUIRED_VALUE,pb.INVALID_VALUE,pb.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN,pb.NOT_INSTALLED_WITH_PROVIDE,pb.NOT_COMPATIBLE_LEGACY_VUE_I18N,pb.NOT_AVAILABLE_COMPOSITION_IN_LEGACY;var hb=H_(`__translateVNode`),gb=H_(`__datetimeParts`),_b=H_(`__numberParts`),tve=H_(`__setPluralRules`);H_(`__intlifyMeta`);var nve=H_(`__injectWithOption`),vb=H_(`__dispose`),yb={FALLBACK_TO_ROOT:10,NOT_FOUND_PARENT_SCOPE:11,IGNORE_OBJ_FLATTEN:12,DEPRECATE_LEGACY_MODE:13,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:14,DUPLICATE_USE_I18N_CALLING:15,IGNORE_UNSAFE_LOCALE:16};yb.FALLBACK_TO_ROOT,yb.NOT_FOUND_PARENT_SCOPE,yb.IGNORE_OBJ_FLATTEN,yb.DEPRECATE_LEGACY_MODE,yb.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE,yb.DUPLICATE_USE_I18N_CALLING,yb.IGNORE_UNSAFE_LOCALE;var bb=null;{let e=$_().__VUE_INSTANCE_SETTERS__;iv(e)&&e.push(e=>{bb=e})}function xb(e){return!!rv(e)}function Sb(e){if(!cv(e)||oy(e))return e;for(let t in e)if(tv(e,t)){if(!t.includes(`.`))cv(e[t])&&Sb(e[t]);else{let n=t.split(`.`),r=n.length-1,i=e,a=!1;for(let e=0;e<r;e++){if(n[e]===`__proto__`)throw Error(`unsafe key: ${n[e]}`);if(n[e]in i||(i[n[e]]=Z_()),!cv(i[n[e]])||oy(i[n[e]])&&(vy.includes(n[e+1])||n[e+1]===`cacheKey`)){a=!0;break}i=i[n[e]]}a||(i[n[r]]=e[t],delete e[t]);let o=i[n[r]];cv(o)&&Sb(o)}}return e}function Cb(e,t){let{messages:n,__i18n:r,messageResolver:i,flatJson:a}=t,o=fv(n)?n:iv(r)?Z_():{[e]:Z_()};if(iv(r)&&r.forEach(e=>{if(`locale`in e&&`resource`in e){let{locale:t,resource:n}=e;if(t){if(xb(t))return;o[t]=nv(o,t)||Z_(),Lv(n,o[t])}else Lv(n,o)}else ov(e)&&Lv(JSON.parse(e),o)}),i==null&&a)for(let e in o)tv(o,e)&&Sb(o[e]);return o}function rve(e){return e.type}function ive(e,t,n){let r=cv(t.messages)?t.messages:Z_();`__i18nGlobal`in n&&(r=Cb(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));let i=Object.keys(r);if(i.length&&i.forEach(t=>{e.mergeLocaleMessage(t,r[t])}),cv(t.datetimeFormats)){let n=Object.keys(t.datetimeFormats);n.length&&n.forEach(n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])})}if(cv(t.numberFormats)){let n=Object.keys(t.numberFormats);n.length&&n.forEach(n=>{e.mergeNumberFormat(n,t.numberFormats[n])})}}function wb(e){return J(yn,null,e,0)}function Tb(){return bb??Tt()}var Eb=()=>[],ave=()=>!1,Db=0;function Ob(e){return((t,n,r,i)=>e(n,r,Tb()||void 0,i))}function kb(e={}){let{__root:t,__injectWithOption:n}=e,r=t===void 0,i=e.flatJson,a=V_?N:p,o=!sv(e.inheritLocale)||e.inheritLocale,s=a(t&&o?t.locale.value:ov(e.locale)?e.locale:Py),c=a(t&&o?t.fallbackLocale.value:ov(e.fallbackLocale)||iv(e.fallbackLocale)||fv(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),l=a(Cb(s.value,e)),u=a(fv(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),d=a(fv(e.numberFormats)?e.numberFormats:{[s.value]:{}}),f=t?t.missingWarn:sv(e.missingWarn)||q_(e.missingWarn)?e.missingWarn:!0,m=t?t.fallbackWarn:sv(e.fallbackWarn)||q_(e.fallbackWarn)?e.fallbackWarn:!0,h=t?t.fallbackRoot:!sv(e.fallbackRoot)||e.fallbackRoot,g=!!e.fallbackFormat,_=av(e.missing)?e.missing:null,v=av(e.missing)?Ob(e.missing):null,y=av(e.postTranslation)?e.postTranslation:null,b=t?t.warnHtmlMessage:!sv(e.warnHtmlMessage)||e.warnHtmlMessage,x=!!e.escapeParameter,S=t?t.modifiers:fv(e.modifiers)?e.modifiers:{},C=e.pluralRules||t&&t.pluralRules,w;w=(()=>{r&&By(null);let t={version:$_e,locale:s.value,fallbackLocale:c.value,messages:l.value,modifiers:S,pluralRules:C,missing:v===null?void 0:v,missingWarn:f,fallbackWarn:m,fallbackFormat:g,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:b,escapeParameter:x,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:`vue`}};t.datetimeFormats=u.value,t.numberFormats=d.value;let n=z_e(t);return r&&By(n),n})(),Gy(w,s.value,c.value);function T(){return[s.value,c.value,l.value,u.value,d.value]}let E=V({get:()=>s.value,set:e=>{w.locale=e,s.value=e}});function D(e){r||(w.fallbackContext=R_e());try{return e()}finally{r||(w.fallbackContext=void 0)}}function O(e){D(()=>Gy(w,s.value,e))}let k=V({get:()=>c.value,set:e=>{c.value=e,w.fallbackLocale=c.value,O(c.value)}}),A=V(()=>l.value),j=V(()=>u.value),ee=V(()=>d.value);function te(){return av(y)?y:null}function M(e){y=e,w.postTranslation=e}function ne(){return _}function re(e){e!==null&&(v=Ob(e)),_=e,w.missing=v}let ie=(e,n,r,i,a,o)=>{T();let s;try{__INTLIFY_PROD_DEVTOOLS__,s=D(()=>e(w))}finally{__INTLIFY_PROD_DEVTOOLS__}if(r!==`translate exists`&&G_(s)&&s===-1||r===`translate exists`&&!s){let[e,r]=n();return t&&h?i(t):a(e)}if(o(s))return s;throw mb(pb.UNEXPECTED_RETURN_TYPE)};function P(...e){return ie(t=>Reflect.apply(lb,null,[t,...e]),()=>fb(...e),`translate`,t=>Reflect.apply(t.t,t,[...e]),e=>e,e=>ov(e))}function ae(...e){let[t,n,r]=e;if(r&&!cv(r))throw mb(pb.INVALID_ARGUMENT);return P(t,n,Y_({resolvedMessage:!0},r||{}))}function oe(...e){return ie(t=>Reflect.apply(Zy,null,[t,...e]),()=>$y(...e),`datetime format`,t=>Reflect.apply(t.d,t,[...e]),()=>``,e=>ov(e)||iv(e))}function se(...e){return ie(t=>Reflect.apply(tb,null,[t,...e]),()=>rb(...e),`number format`,t=>Reflect.apply(t.n,t,[...e]),()=>``,e=>ov(e)||iv(e))}function ce(e){return e.map(e=>ov(e)||G_(e)||sv(e)?wb(String(e)):e)}let le={normalize:ce,interpolate:e=>e,type:`vnode`};function ue(...e){return ie(t=>{let n,r=t;try{r.processor=le,n=Reflect.apply(lb,null,[r,...e])}finally{r.processor=null}return n},()=>fb(...e),`translate`,t=>t[hb](...e),e=>[wb(e)],e=>iv(e))}function de(...e){return ie(t=>Reflect.apply(tb,null,[t,...e]),()=>rb(...e),`number format`,t=>t[_b](...e),Eb,e=>ov(e)||iv(e))}function fe(...e){return ie(t=>Reflect.apply(Zy,null,[t,...e]),()=>$y(...e),`datetime format`,t=>t[gb](...e),Eb,e=>ov(e)||iv(e))}function pe(e){C=e,w.pluralRules=C}function me(e,t){let n=_e(e),r=w.messageResolver(n,t);return r===null?nv(n,t):r}function F(e,t){return ie(()=>{if(!e)return!1;let n=ov(t)?t:s.value,r=ov(t)?[n]:w.localeFallbacker(w,c.value,n);for(let t=0;t<r.length;t++)if(cb(me(r[t],e)))return!0;return!1},()=>[e],`translate exists`,n=>Reflect.apply(n.te,n,[e,t]),ave,e=>sv(e))}function he(e){let t=null,n=w.localeFallbacker(w,c.value,s.value);for(let r=0;r<n.length;r++){let i=me(n[r],e);if(i!=null){t=i;break}}return t}function ge(e){return he(e)??(t&&t.tm(e)||{})}function _e(e){return nv(l.value,e)||{}}function I(e,t){xb(e)||(i&&Sb(t),l.value[e]=t,w.messages=l.value)}function ve(e,t){xb(e)||(l.value[e]=nv(l.value,e)||{},i&&Sb(t),Lv(t,l.value[e]),w.messages=l.value)}function ye(e){return nv(u.value,e)||{}}function L(e,t){xb(e)||(u.value[e]=t,w.datetimeFormats=u.value,eb(w,e,t))}function be(e,t){xb(e)||(u.value[e]=Y_(nv(u.value,e)||{},t),w.datetimeFormats=u.value,eb(w,e,t))}function xe(e){return nv(d.value,e)||{}}function Se(e,t){xb(e)||(d.value[e]=t,w.numberFormats=d.value,ib(w,e,t))}function Ce(e,t){xb(e)||(d.value[e]=Y_(nv(d.value,e)||{},t),w.numberFormats=d.value,ib(w,e,t))}Db++,Te(c,()=>O(c.value),{deep:!0,flush:`sync`}),t&&V_&&(Te(t.locale,e=>{o&&(s.value=e,w.locale=e,Gy(w,s.value,c.value))}),Te(t.fallbackLocale,e=>{o&&(c.value=e,w.fallbackLocale=c.value,Gy(w,s.value,c.value))}));let we={id:Db,locale:E,fallbackLocale:k,get inheritLocale(){return o},set inheritLocale(e){o=e,e&&t&&(E.value=t.locale.value,k.value=t.fallbackLocale.value)},get availableLocales(){return Object.keys(l.value).sort()},messages:A,get modifiers(){return S},get pluralRules(){return C||{}},get isGlobal(){return r},get missingWarn(){return f},set missingWarn(e){f=e,w.missingWarn=f},get fallbackWarn(){return m},set fallbackWarn(e){m=e,w.fallbackWarn=m},get fallbackRoot(){return h},set fallbackRoot(e){h=e},get fallbackFormat(){return g},set fallbackFormat(e){g=e,w.fallbackFormat=g},get warnHtmlMessage(){return b},set warnHtmlMessage(e){b=e,w.warnHtmlMessage=e},get escapeParameter(){return x},set escapeParameter(e){x=e,w.escapeParameter=e},t:P,getLocaleMessage:_e,setLocaleMessage:I,mergeLocaleMessage:ve,getPostTranslationHandler:te,setPostTranslationHandler:M,getMissingHandler:ne,setMissingHandler:re,[tve]:pe};return we.datetimeFormats=j,we.numberFormats=ee,we.rt=ae,we.te=F,we.tm=ge,we.d=oe,we.n=se,we.getDateTimeFormat=ye,we.setDateTimeFormat=L,we.mergeDateTimeFormat=be,we.getNumberFormat=xe,we.setNumberFormat=Se,we.mergeNumberFormat=Ce,we[nve]=n,we[hb]=ue,we[gb]=fe,we[_b]=de,we}var Ab={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e===`parent`||e===`global`,default:`parent`},i18n:{type:Object}};function ove({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((e,t)=>[...e,...t.type===K?t.children:[t]],[]):t.reduce((t,n)=>{let r=e[n];return r&&(t[n]=r()),t},Z_())}function jb(){return K}var Mb=Y({name:`i18n-t`,props:Y_({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>G_(e)||!isNaN(e)}},Ab),setup(e,t){let{slots:n,attrs:r}=t,i=e.i18n||Lb({useScope:e.scope,__useComponent:!0});return()=>{let a=()=>{let r=Object.keys(n).filter(e=>e[0]!==`_`),a=Z_();e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=ov(e.plural)?+e.plural:e.plural);let o=ove(t,r);return i[hb](e.keypath,o,a)},o=Y_(Z_(),r),s=ov(e.tag)||cv(e.tag)?e.tag:jb();return cv(s)?Dn(s,o,{default:a}):Dn(s,o,a())}}});function sve(e){return iv(e)&&!ov(e[0])}function Nb(e,t,n,r){let{slots:i,attrs:a}=t;return()=>{let t=()=>{let t={part:!0},a=Z_();e.locale&&(t.locale=e.locale),ov(e.format)?t.key=e.format:cv(e.format)&&(ov(e.format.key)&&(t.key=e.format.key),a=Object.keys(e.format).reduce((t,r)=>n.includes(r)?Y_(Z_(),t,{[r]:e.format[r]}):t,Z_()));let o=r(e.value,t,a),s=[t.key];return iv(o)?s=o.map((e,t)=>{let n=i[e.type],r=n?n({[e.type]:e.value,index:t,parts:o}):[e.value];return sve(r)&&(r[0].key=`${e.type}-${t}`),r}):ov(o)&&(s=[o]),s},o=Y_(Z_(),a),s=ov(e.tag)||cv(e.tag)?e.tag:jb();return cv(s)?Dn(s,o,{default:t}):Dn(s,o,t())}}var Pb=Y({name:`i18n-n`,props:Y_({value:{type:Number,required:!0},format:{type:[String,Object]}},Ab),setup(e,t){let n=e.i18n||Lb({useScope:e.scope,__useComponent:!0});return Nb(e,t,nb,(...e)=>n[_b](...e))}});function cve(e,t){let n=e;if(e.mode===`composition`)return n.__getInstance(t)||e.global;{let r=n.__getInstance(t);return r==null?e.global.__composer:r.__composer}}function lve(e){let t=t=>{let{instance:n,value:r}=t;if(!n||!n.$)throw mb(pb.UNEXPECTED_ERROR);let i=cve(e,n.$),a=Fb(r);return[Reflect.apply(i.t,i,[...Ib(a)]),i]};return{created:(e,n)=>{let[r,i]=t(n);V_&&(e.__i18nWatcher=Te(i.locale,()=>{n.instance&&n.instance.$forceUpdate()})),e.__composer=i,e.textContent=r},unmounted:e=>{V_&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){let n=e.__composer,r=Fb(t);e.textContent=Reflect.apply(n.t,n,[...Ib(r)])}},getSSRProps:e=>{let[n]=t(e);return{textContent:n}}}}function Fb(e){if(ov(e))return{path:e};if(fv(e)){if(!(`path`in e))throw mb(pb.REQUIRED_VALUE,`path`);return e}throw mb(pb.INVALID_VALUE)}function Ib(e){let{path:t,locale:n,args:r,choice:i,plural:a}=e,o={},s=r||{};return ov(n)&&(o.locale=n),G_(i)&&(o.plural=i),G_(a)&&(o.plural=a),[t,s,o]}function uve(e,t,...n){let r=fv(n[0])?n[0]:{};(!sv(r.globalInstall)||r.globalInstall)&&([Mb.name,`I18nT`].forEach(t=>e.component(t,Mb)),[Pb.name,`I18nN`].forEach(t=>e.component(t,Pb)),[Bb.name,`I18nD`].forEach(t=>e.component(t,Bb))),e.directive(`t`,lve(t))}var dve=H_(`global-vue-i18n`);function fve(e={}){let t=!sv(e.globalInjection)||e.globalInjection,n=new Map,[r,i]=pve(e,!1),a=H_(``);function o(e){return n.get(e)||null}function s(e,t){n.set(e,t)}function c(e){n.delete(e)}let l={get mode(){return`composition`},install(e,...n){if(e.__VUE_I18N_SYMBOL__=a,e.provide(e.__VUE_I18N_SYMBOL__,l),fv(n[0])){let e=n[0];l.__composerExtend=e.__composerExtend,l.__vueI18nExtend=e.__vueI18nExtend}let r=null;t&&(r=bve(e,l.global)),uve(e,l,...n);let i=e.unmount;e.unmount=()=>{r&&r(),l.dispose(),i()}},get global(){return i},dispose(){r.stop()},__instances:n,__getInstance:o,__setInstance:s,__deleteInstance:c};return l}function Lb(e={}){let n=Tb();if(n==null)throw mb(pb.MUST_BE_CALL_SETUP_TOP);if(!n.isCE&&n.appContext.app!=null&&!n.appContext.app.__VUE_I18N_SYMBOL__)throw mb(pb.NOT_INSTALLED);let r=mve(n),i=gve(r),a=rve(n),o=hve(e,a);if(o===`global`)return ive(i,e,a),i;if(o===`parent`){let t=Rb(r,n,e.__useComponent);return t??=i,t}if(o===`isolated`){if(r.mode!==`composition`)throw mb(pb.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);let a=r,o=Y_({},e);o.__root=Rb(r,n)||i;let s=kb(o);return a.__composerExtend&&(s[vb]=a.__composerExtend(s)),t()&&c(()=>{let e=s[vb];e&&(e(),delete s[vb])}),s}let s=r,l=s.__getInstance(n);if(l==null){let t=Y_({},e);`__i18n`in a&&(t.__i18n=a.__i18n),i&&(t.__root=i),l=kb(t),s.__composerExtend&&(l[vb]=s.__composerExtend(l)),vve(s,n,l),s.__setInstance(n,l)}return l}function pve(e,t){let r=n(),i=r.run(()=>kb(e));if(i==null)throw mb(pb.UNEXPECTED_ERROR);return[r,i]}function mve(e){let t=pe(e.isCE?dve:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw mb(e.isCE?pb.NOT_INSTALLED_WITH_PROVIDE:pb.UNEXPECTED_ERROR);return t}function hve(e,t){return J_(e)?`__i18n`in t?`local`:`global`:e.useScope?e.useScope:`local`}function gve(e){return e.mode===`composition`?e.global:e.global.__composer}function Rb(e,t,n=!1){let r=null,i=t.root,a=_ve(t,n);for(;a!=null;){let t=e;if(e.mode===`composition`&&(r=t.__getInstance(a)),r!=null||i===a)break;a=a.parent}return r}function _ve(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function vve(e,t,n){Ve(()=>{},t),qe(()=>{let r=n;e.__deleteInstance(t);let i=r[vb];i&&(i(),delete r[vb])},t)}var yve=[`locale`,`fallbackLocale`,`availableLocales`],zb=[`t`,`rt`,`d`,`n`,`tm`,`te`];function bve(e,t){let n=Object.create(null);return yve.forEach(e=>{let r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw mb(pb.UNEXPECTED_ERROR);let i=T(r.value)?{get(){return r.value.value},set(e){r.value.value=e}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,e,i)}),e.config.globalProperties.$i18n=n,zb.forEach(n=>{let r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw mb(pb.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,r)}),()=>{delete e.config.globalProperties.$i18n,zb.forEach(t=>{delete e.config.globalProperties[`$${t}`]})}}var Bb=Y({name:`i18n-d`,props:Y_({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ab),setup(e,t){let n=e.i18n||Lb({useScope:e.scope,__useComponent:!0});return Nb(e,t,Qy,(...e)=>n[gb](...e))}});if(eve(),N_e(m_e),P_e(A_e),F_e(b_e),__INTLIFY_PROD_DEVTOOLS__){let e=$_();e.__INTLIFY__=!0,h_e(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}var Vb=void 0,xve=async()=>fve({legacy:!1,locale:Jn(),messages:await tee(Xn),sync:!0,missingWarn:!1,silentFallbackWarn:!0,fallbackLocale:aee}),Sve=async e=>{let t=await xve();e.use(t),Vb=t,document.documentElement.lang=t.global.locale.value},Cve=(e,t)=>!e||t===e||t.startsWith(`${e}.`)?t:`${e}.${t}`,Hb=e=>{let t=(t,...n)=>{if(!t)return``;if(!t.includes(`.`)&&!e)return t;let r=Cve(e,t),i=Vb;if(!i)return r;let a=i.global.t;return a(r,...n)},n=e=>{let t=Vb;t&&(t.mode===`legacy`?t.global.locale=e:T(t.global.locale)?t.global.locale.value=e:t.global.locale=e,document.documentElement.lang=e)};return Vb?{...Vb.global,t,locale:n}:{t,locale:n}},Ub=e=>e,wve=()=>({darkTheme:()=>{let{updateSettingState:e}=R9();e(`appTheme`,`dark`)},lightTheme:()=>{let{updateSettingState:e}=R9();e(`appTheme`,`light`)},toggleTheme:()=>{let{getAppTheme:e}=L9(),t=e.value,{updateSettingState:n}=R9();n(`appTheme`,t?`light`:`dark`)},getAppTheme:()=>{let{getAppTheme:e}=L9(),{t}=Hb();return{theme:e.value,themeI18nLabel:e.value?t(`headerSettingOptions.ThemeOptions.Dark`):t(`headerSettingOptions.ThemeOptions.Light`),themeLabel:e.value?`Dark`:`Light`}},syncSystemTheme:()=>{let{updateSettingState:e}=R9();e(`appTheme`,`auto`)}}),Wb=()=>Lr(()=>Promise.resolve().then(()=>pJe),void 0),Tve=`/:catchAll(.*)`,Gb=`/dashboard`,Kb=`/route-management`,Eve=`${Kb}/json`,qb=({role:e,ancestorRoles:t},n)=>{if(!e?.length&&!t?.length)return!0;let r=n??k9().signingCallback.role;return nee.includes(r)||(!e?.length||e.includes(r))&&(!t?.length||t.every(e=>e.includes(r)))},Jb=[`redirect`,`breadcrumbLabel`,`children`,`key`,`meta`,`name`,`path`,`show`,`fullPath`];function Yb(){let{getAppRootRoute:e}=L9(),{updateSettingState:t}=R9();return{getRootRoute:e,getRootPath:V(()=>e.value.path),getRootName:V(()=>e.value.name),setRootRoute:n=>{t(`appRootRoute`,Object.assign({},e.value,n))}}}var Xb=e=>e.startsWith(`/`);function Zb(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function Dve(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&Zb(e.default)}var Qb=Object.assign;function $b(e,t){let n={};for(let r in t){let i=t[r];n[r]=tx(i)?i.map(e):e(i)}return n}var ex=()=>{},tx=Array.isArray;function nx(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var rx=Symbol(``);function ix(e,t){return Qb(Error(),{type:e,[rx]:!0},t)}function ax(e,t){return e instanceof Error&&rx in e&&(t==null||!!(e.type&t))}var ox=Symbol(``),sx=Symbol(``),cx=Symbol(``),lx=Symbol(``),ux=Symbol(``),Ove=Symbol(``);function dx(){return pe(cx)}function fx(e){return pe(lx)}var px=typeof document<`u`,mx=/#/g,kve=/&/g,Ave=/\//g,jve=/=/g,Mve=/\?/g,hx=/\+/g,Nve=/%5B/g,Pve=/%5D/g,gx=/%5E/g,Fve=/%60/g,_x=/%7B/g,Ive=/%7C/g,vx=/%7D/g,Lve=/%20/g;function yx(e){return e==null?``:encodeURI(``+e).replace(Ive,`|`).replace(Nve,`[`).replace(Pve,`]`)}function Rve(e){return yx(e).replace(_x,`{`).replace(vx,`}`).replace(gx,`^`)}function bx(e){return yx(e).replace(hx,`%2B`).replace(Lve,`+`).replace(mx,`%23`).replace(kve,`%26`).replace(Fve,"`").replace(_x,`{`).replace(vx,`}`).replace(gx,`^`)}function zve(e){return bx(e).replace(jve,`%3D`)}function Bve(e){return yx(e).replace(mx,`%23`).replace(Mve,`%3F`)}function Vve(e){return Bve(e).replace(Ave,`%2F`)}function xx(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var Hve=/\/$/,Uve=e=>e.replace(Hve,``);function Sx(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=qve(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:xx(o)}}function Wve(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function Cx(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function Gve(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Tx(t.matched[r],n.matched[i])&&Ex(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Tx(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ex(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Kve(e[n],t[n]))return!1;return!0}function Kve(e,t){return tx(e)?Dx(e,t):tx(t)?Dx(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function Dx(e,t){return tx(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function qve(e,t){if(Xb(e))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`){if(s===`..`)a>1&&a--;else break}return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var Ox={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function Jve(e){if(!e){if(px){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`}return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),Uve(e)}var Yve=/^[^#]+#/;function Xve(e,t){return e.replace(Yve,`#`)+t}function Zve(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var kx=()=>history.scrollRestoration===`manual`?{left:window.scrollX,top:window.scrollY}:null;function Qve(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Zve(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function Ax(e,t){return(history.state?history.state.position-t:-1)+e}var jx=new Map;function $ve(e){jx.set(e,kx())}function eye(e){let t=jx.get(e);return jx.delete(e),t}function Mx(e,t=!1){for(let n of jx.keys()){let r=parseInt(n,10);(r===e||!t&&r>e)&&jx.delete(n)}}function tye(e){return typeof e==`string`||e&&typeof e==`object`}function Nx(e){return typeof e==`string`||typeof e==`symbol`}function nye(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(hx,` `),i=r.indexOf(`=`),a=xx(i<0?r:r.slice(0,i)),o=i<0?null:xx(r.slice(i+1));if(a in t){let e=t[a];tx(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function Px(e){let t=``;for(let n in e){let r=e[n];n=zve(n),r==null?r!==void 0&&(t+=(t.length?`&`:``)+n):(tx(r)?r.map(e=>e&&bx(e)):[r&&bx(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function rye(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=tx(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function Fx(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function iye(e,t,n){let r=e.value;if(!r)return;let i=r,a=()=>{i[t].delete(n)};qe(a),Re(a),We(()=>{let r=e.value;r&&(i=r),i[t].add(n)}),i[t].add(n)}function aye(e){iye(pe(ox,{}),`updateGuards`,e)}function Ix(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(ix(4,{from:n,to:t})):e instanceof Error?c(e):tye(e)?c(ix(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Lx(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(t===`beforeRouteEnter`||o.instances[e]){if(Zb(s)){let c=(s.__vccOpts||s)[t];c&&a.push(Ix(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=Dve(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&Ix(c,n,r,o,e,i)()}))}}}return a}function oye(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>Tx(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>Tx(e,s))||i.push(s))}return[n,r,i]}var sye=()=>location.protocol+`//`+location.host;function Rx(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),Cx(n,``)}return Cx(n,e)+r+i}function cye(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Rx(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){let{history:e}=window;e.state&&e.replaceState(Qb({},e.state,{scroll:kx()}),``)}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),{pauseListeners:c,listen:l,destroy:d}}function zx(e,t,n,r=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:null}}function lye(e){let{history:t,location:n}=window,r={value:Rx(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:sye()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch{n[o?`replace`:`assign`](c)}}function o(e,n){let o=Qb({},t.state,zx(i.value.back,e,i.value.forward,!0),n,{position:i.value.position});a(e,o,!0),Mx(o.position,!0),r.value=e}function s(e,n){let o=Qb({},i.value,t.state,{forward:e,scroll:kx()});a(o.current,o,!0),a(e,Qb({},zx(r.value,e,null),{position:o.position+1},n),!1),Mx(o.position),r.value=e}return{location:r,state:i,push:s,replace:o}}function uye(e){e=Jve(e);let t=lye(e),n=cye(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=Qb({location:``,base:e,go:r,createHref:Xve.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function dye(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),uye(e)}var fye={type:0,value:``},pye=/[a-zA-Z0-9_]/;function mye(e){if(!e)return[[]];if(e===`/`)return[[fye]];if(!Xb(e))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;)switch(c=e[s++],n){case 0:c===`\\`?(r=n,n=4):c===`/`?(l&&d(),o()):c===`:`?(d(),n=1):f();break;case 4:f(),n=r;break;case 1:c===`(`?n=2:pye.test(c)?f():(d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case 2:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=3:u+=c;break;case 3:d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`)}return n===2&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var Bx=`[^/]+?`,hye={sensitive:!1,strict:!1,start:!0,end:!0},gye=/[.+*?^${}()[\]/\\]/g;function _ye(e,t){let n=Qb({},hye,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[90];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=40+(n.sensitive?.25:0);if(o.type===0)r||(i+=`/`),i+=o.value.replace(gye,`\\$&`),s+=40;else if(o.type===1){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||Bx;if(u!==Bx){s+=10;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=20,c&&(s+=-8),n&&(s+=-20),u===`.*`&&(s+=-50)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){r&&n.endsWith(`/`)||(n+=`/`),r=!1;for(let e of i)if(e.type===0)n+=e.value;else if(e.type===1){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(tx(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=tx(c)?c.join(`/`):c;if(!l){if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`)}n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function vye(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Vx(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=vye(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(Hx(r))return 1;if(Hx(i))return-1}return i.length-r.length}function Hx(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var yye={strict:!1,end:!0,sensitive:!1};function bye(e,t,n){let r=Qb(_ye(mye(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function xye(e,t){let n=[],r=new Map;t=nx(yye,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=Wx(e);s.aliasOf=r&&r.record;let l=nx(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(Wx(Qb({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&!Xb(u)){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=bye(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!Gx(d)&&o(e.name)),Kx(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:ex}function o(e){if(Nx(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=wye(e,n);n.splice(t,0,e),e.record.name&&!Gx(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw ix(1,{location:e});s=i.record.name,a=Qb(Ux(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Ux(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw ix(1,{location:e,currentLocation:t});s=i.record.name,a=Qb({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:Cye(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function Ux(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Wx(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Sye(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Sye(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function Gx(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Cye(e){return e.reduce((e,t)=>Qb(e,t.meta),{})}function wye(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Vx(e,t[i])<0?r=i:n=i+1}let i=Tye(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Tye(e){let t=e;for(;t=t.parent;)if(Kx(t)&&Vx(e,t)===0)return t}function Kx({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function qx(e){let t=pe(cx),n=pe(lx),r=V(()=>{let n=M(e.to);return t.resolve(n)}),i=V(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(Tx.bind(null,i));if(o>-1)return o;let s=Yx(e[t-2]);return t>1&&Yx(i)===s&&a[a.length-1].path!==s?a.findIndex(Tx.bind(null,e[t-2])):o}),a=V(()=>i.value>-1&&Oye(n.params,r.value.params)),o=V(()=>i.value>-1&&i.value===n.matched.length-1&&Ex(n.params,r.value.params));function s(n={}){if(Dye(n)){let n=t[M(e.replace)?`replace`:`push`](M(e.to)).catch(ex);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:V(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function Eye(e){return e.length===1?e[0]:e}var Jx=Y({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:qx,setup(e,{slots:t}){let n=a(qx(e)),{options:r}=pe(cx),i=V(()=>({[Xx(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[Xx(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&Eye(t.default(n));return e.custom?r:Dn(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function Dye(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(e.button===void 0||e.button===0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Oye(e,t){for(let n in t){let r=t[n],i=e[n];if(tx(r)){if(!tx(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}else if(r!==i)return!1}return!0}function Yx(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var Xx=(e,t,n)=>e??t??n,kye=Y({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=pe(ux),i=V(()=>e.route||r.value),a=pe(sx,0),o=V(()=>{let e=M(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=V(()=>i.value.matched[o.value]);Oe(sx,V(()=>o.value+1)),Oe(ox,s),Oe(ux,i);let c=new Set;Oe(Ove,c);let l=N(),u=Ox,{app:d}=Tt().appContext;return Te(()=>[l.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),!e||!t||i&&Tx(t,i)&&r||(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,f=o&&o.components[a];if(!f)return Zx(n.default,{Component:f,route:r});let p=o.props[a],m=p?p===!0?r.params:typeof p==`function`?p(r):p:null,h=e=>{e.component.isUnmounted&&(o.instances[a]=null)},g=e=>he(()=>{if(u===r||i.value!==r||e.el.getRootNode()!==d._container.getRootNode())return;let t=u;u=r;for(let e of c)e(r,t)}),_=Dn(f,Qb({},m,t,{onVnodeUnmounted:h,onVnodeMounted:g,onVnodeUpdated:g,ref:l}));return Zx(n.default,{Component:_,route:r})||_}}});function Zx(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var Qx=kye;function Aye(e){let t=e.matcher||xye(e.routes,e),n=e.parseQuery||nye,r=e.stringifyQuery||Px,i=e.history,a=Fx(),o=Fx(),s=Fx(),c=p(Ox),l=p(0),u=Ox;px&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let d=$b.bind(null,e=>``+e),m=$b.bind(null,Vve),h=$b.bind(null,xx);function g(e,n){let r,i;Nx(e)?(r=t.getRecordMatcher(e),i=n):i=e;let a=t.addRoute(i,r);return l.value++,()=>{a(),l.value++}}function _(e){let n=t.getRecordMatcher(e);n&&(t.removeRoute(n),l.value++)}function v(){t.clearRoutes(),l.value++}function y(){return t.getRoutes().map(e=>e.record)}function b(e){return!!t.getRecordMatcher(e)}function x(e,a){if(l.value,typeof e==`string`){a||=e.startsWith(`/`)?Ox:c.value;let r=Sx(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return Qb(r,o,{params:h(o.params),redirectedFrom:void 0,href:s})}a=Qb({},a||(e.path!=null&&e.path.startsWith(`/`)&&!(`name`in e&&e.name)?Ox:c.value));let o;if(e.path!=null)o=Qb({},e,{path:Sx(n,e.path,a.path).path});else{let t=Qb({},e.params);for(let e in t)t[e]??delete t[e];o=Qb({},e,{params:m(t)}),a.params=m(a.params)}let s=t.resolve(o,a),u=e.hash||``;s.params=d(h(s.params));let f=Wve(r,Qb({},e,{hash:Rve(u),path:s.path})),p=i.createHref(f);return Qb({fullPath:f,hash:u,query:r===Px?rye(e.query):e.query||{}},s,{redirectedFrom:void 0,href:p})}function S(e){return typeof e==`string`?Sx(n,e,c.value.path):Qb({},e)}function C(e,t){if(u!==e)return ix(8,{from:t,to:e})}function w(e){return D(e)}function T(e){return w(Qb(S(e),{replace:!0}))}function E(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=S(i):{path:i},i.params={}),Qb({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function D(e,t){let n=u=x(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,l=E(n,i);if(l)return D(Qb(S(l),{state:typeof l==`object`?Qb({},a,l.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&Gve(r,i,n)&&(f=ix(16,{to:d,from:i}),se(i,i,!0,!1)),(f?Promise.resolve(f):A(d,i)).catch(e=>ax(e)?ax(e,2)?e:oe(e):P(e,d,i)).then(e=>{if(e){if(ax(e,2))return D(Qb({replace:s},S(e.to),{state:typeof e.to==`object`?Qb({},a,e.to.state):a,force:o}),t||d)}else e=ee(d,i,!0,s,a);return j(d,i,e),e})}function O(e,t){let n=C(e,t);return n?Promise.reject(n):Promise.resolve()}function k(e){let t=ue.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function A(e,t){let n,[r,i,s]=oye(e,t);n=Lx(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(Ix(r,e,t))});let c=O.bind(null,e,t);return n.push(c),fe(n).then(()=>{n=[];for(let r of a.list())n.push(Ix(r,e,t));return n.push(c),fe(n)}).then(()=>{n=Lx(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(Ix(r,e,t))});return n.push(c),fe(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter){if(tx(r.beforeEnter))for(let i of r.beforeEnter)n.push(Ix(i,e,t));else n.push(Ix(r.beforeEnter,e,t))}return n.push(c),fe(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Lx(s,`beforeRouteEnter`,e,t,k),n.push(c),fe(n))).then(()=>{n=[];for(let r of o.list())n.push(Ix(r,e,t));return n.push(c),fe(n)}).catch(e=>ax(e,8)?e:Promise.reject(e))}function j(e,t,n){s.list().forEach(r=>k(()=>r(e,t,n)))}function ee(e,t,n,r,a){let o=C(e,t);if(o)return o;let s=t===Ox,l=px?history.state:{};n&&(r||s?i.replace(e.fullPath,Qb({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,se(e,t,n,s),oe()}let te;function ne(){te||=i.listen((e,t,n)=>{if(!de.listening)return;let r=x(e),a=E(r,de.currentRoute.value);if(a){D(Qb(a,{replace:!0,force:!0}),r).catch(ex);return}u=r;let o=c.value;px&&n.delta&&$ve(Ax(o.fullPath,n.delta)),A(r,o).catch(e=>ax(e,12)?e:ax(e,2)?(D(Qb(S(e.to),{force:!0}),r).then(e=>{ax(e,20)&&!n.delta&&n.type===`pop`&&i.go(-1,!1)}).catch(ex),Promise.reject()):(n.delta&&i.go(-n.delta,!1),P(e,r,o))).then(e=>{e||=ee(r,o,!1),e&&(n.delta&&!ax(e,8)?i.go(-n.delta,!1):n.type===`pop`&&ax(e,20)&&i.go(-1,!1)),j(r,o,e)}).catch(ex)})}let re=Fx(),ie=Fx(),N;function P(e,t,n){oe(e);let r=ie.list();return r.length&&r.forEach(r=>r(e,t,n)),Promise.reject(e)}function ae(){return N&&c.value!==Ox?Promise.resolve():new Promise((e,t)=>{re.add([e,t])})}function oe(e){return N||(N=!e,ne(),re.list().forEach(([t,n])=>e?n(e):t()),re.reset()),e}function se(t,n,r,i){let{scrollBehavior:a}=e;if(!px||!a)return Promise.resolve();let o=!r&&eye(Ax(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return he().then(()=>a(t,n,o)).then(e=>t===c.value&&e&&Qve(e)).catch(e=>t===c.value&&P(e,t,n))}let ce=e=>i.go(e),le,ue=new Set,de={currentRoute:c,listening:!0,addRoute:g,removeRoute:_,clearRoutes:v,hasRoute:b,getRoutes:y,resolve:x,options:e,push:w,replace:T,go:ce,back:()=>ce(-1),forward:()=>ce(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:ie.add,isReady:ae,install(e){e.component(`RouterLink`,Jx),e.component(`RouterView`,Qx),e.config.globalProperties.$router=de,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>M(c)}),px&&!le&&c.value===Ox&&(le=!0,w(i.location).catch(e=>{}));let t={};for(let e in Ox)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(cx,de),e.provide(lx,f(t)),e.provide(ux,c);let n=e.unmount;ue.add(e),e.unmount=function(){ue.delete(e),ue.size<1&&(u=Ox,te&&te(),te=null,c.value=Ox,le=!1,N=!1),n()}}};function fe(e){return e.reduce((e,t)=>e.then(()=>k(t)),Promise.resolve())}return de}var $x={dashboard:{load:()=>Lr(()=>import(`./dashboard-DKMln7_M.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])),name:`RDashboard`},"demo/axios":{load:()=>Lr(()=>import(`./axios-CAZjkYUE.js`),__vite__mapDeps([13,1,2,14,11,7,15,3,4,16,17])),name:`RAxios`},"demo/barcode-demo":{load:()=>Lr(()=>import(`./barcode-demo-DBC00tBi.js`),__vite__mapDeps([18,1,2,11,7,15,3,4,16,17])),name:`BarcodeDemo`},"demo/cache-demo":{load:()=>Lr(()=>import(`./cache-demo-BV16SGxO.js`),__vite__mapDeps([19,1,2,6,7,8,11,20,15,3,4,16,17])),name:`CacheDemo`},"demo/context-menu":{load:()=>Lr(()=>import(`./context-menu-f6TP0-Tn.js`),__vite__mapDeps([21,1,2,22,23,11,7,15,3,4,16,17])),name:`ContextMenuDemo`},"demo/directive":{load:()=>Lr(()=>import(`./directive-CbB7oUuG.js`),__vite__mapDeps([24,1,2,25,11,7,15,3,4,16,17])),name:`RDirective`},"demo/doc":{load:()=>Lr(()=>import(`./doc-DldMqOMb.js`),__vite__mapDeps([26,1,2,6,7,8])),name:`RTemplateDoc`},"demo/draggable-card":{load:()=>Lr(()=>import(`./draggable-card--XFtfy2t.js`),__vite__mapDeps([27,1,2,11,7,15,3,4,16])),name:`DraggableCardDemo`},"demo/echart":{load:()=>Lr(()=>import(`./echart-BEyzkMbN.js`),__vite__mapDeps([28,1,2,15,3,4,16,17,11,7,29])),name:`REchart`},"demo/flow-demo":{load:()=>Lr(()=>import(`./flow-demo-CdYHDyki.js`),__vite__mapDeps([30,1,2,11,7,15,3,4,16,17])),name:`RFlowDemo`},"demo/form":{load:()=>Lr(()=>import(`./form-B4Ps2wbl.js`),__vite__mapDeps([31,1,2,11,7,15,3,4,16,17])),name:`RFormDemo`},"demo/hooks/web-hooks":{load:()=>Lr(()=>import(`./web-hooks-Dh_gXum8.js`),__vite__mapDeps([32,1,2,25,11,7,22,23,15,3,4,16,33,34,35])),name:`WebHooks`},"demo/iframe":{load:()=>Lr(()=>import(`./iframe-CWjbkV9h.js`),__vite__mapDeps([36,1,2,11,7,15,3,4,16])),name:`IframeDemo`},"demo/layout-demo":{load:()=>Lr(()=>import(`./layout-demo-DJw1Z8R2.js`),__vite__mapDeps([37,1,2,15,3,4,16,35])),name:`LayoutDemo`},"demo/modal-demo":{load:()=>Lr(()=>import(`./modal-demo-CxOk1FX8.js`),__vite__mapDeps([38,1,2,11,7,15,3,4,16,17])),name:`ModalDemo`},"demo/multi/views/multi-menu-one":{load:()=>Lr(()=>import(`./multi-menu-one-ujp97kGd.js`),__vite__mapDeps([39,1,2,40,11,7,15,3,4,16,17])),name:`MultiMenuOne`},"demo/multi/views/multi-menu-two/views/sub-menu-other":{load:()=>Lr(()=>import(`./sub-menu-other-DzZfQolX.js`),__vite__mapDeps([41,1,2,40,11,7,15,3,4,16,17])),name:`SubMenuOther`},"demo/multi/views/multi-menu-two/views/sub-menu/views/multi-menu-two-one":{load:()=>Lr(()=>import(`./multi-menu-two-one-Bj4Jsxnd.js`),__vite__mapDeps([42,1,2,40,11,7,15,3,4,16,17])),name:`MultiMenuTwoOne`},"demo/precision":{load:()=>Lr(()=>import(`./precision-C0oCSHDS.js`),__vite__mapDeps([43,1,2,11,7,15,3,4,16,17])),name:`CalculatePrecision`},"demo/qrcode":{load:()=>Lr(()=>import(`./qrcode-BXgxMvip.js`),__vite__mapDeps([44,1,2,45,8,11,7,20,15,3,4,16,17])),name:`RQRCodeDemo`},"demo/rely/views/rely-about":{load:()=>Lr(()=>import(`./rely-about-5z3Sh1X4.js`),__vite__mapDeps([46,1,2,11,7,20,15,3,4,16,47])),name:`RelyAbout`},"demo/router-demo/router-demo-detail":{load:()=>Lr(()=>import(`./router-demo-detail-d9xNgbIx.js`),__vite__mapDeps([48,1,2,11,7,10,15,3,4,16,17,49])),name:`RouterDemoDetail`},"demo/router-demo/router-demo-home":{load:()=>Lr(()=>import(`./router-demo-home-DYUiONFm.js`),__vite__mapDeps([50,1,2,11,7,49])),name:`RouterDemoHome`},"demo/scroll-reveal":{load:()=>Lr(()=>import(`./scroll-reveal-CvQUwNsw.js`),__vite__mapDeps([51,1,2,15,3,4,16,52])),name:`ScrollReveal`},"demo/segment":{load:()=>Lr(()=>import(`./segment-BjNnQ3VU.js`),__vite__mapDeps([53,1,2,11,7,20,15,3,4,16])),name:`SegmentDemo`},"demo/svg-icons":{load:()=>Lr(()=>import(`./svg-icons-Pansy1Zc.js`),__vite__mapDeps([54,1,2,11,7,20,15,3,4,16,55])),name:`PreviewSVGIcons`},"demo/tables/auto-height":{load:()=>Lr(()=>import(`./auto-height-uzDE0u5O.js`),__vite__mapDeps([56,1,2,57,58])),name:`TableDemoAutoHeight`},"demo/tables/basic":{load:()=>Lr(()=>import(`./basic-B44Wl_rq.js`),__vite__mapDeps([59,1,2,57,58])),name:`TableDemoBasic`},"demo/tables/columns":{load:()=>Lr(()=>import(`./columns-hC0JKoJc.js`),__vite__mapDeps([60,1,2,57,58])),name:`TableDemoColumns`},"demo/tables/controlled":{load:()=>Lr(()=>import(`./controlled-BpuxVz4H.js`),__vite__mapDeps([61,1,2,57,58])),name:`TableDemoControlled`},"demo/tables/custom":{load:()=>Lr(()=>import(`./custom-X3PTb_R3.js`),__vite__mapDeps([62,1,2,57,63,11,7,58])),name:`TableDemoCustom`},"demo/tables/hooks-output":{load:()=>Lr(()=>import(`./hooks-output-BH0UqjH4.js`),__vite__mapDeps([64,1,2,57,63,11,7,15,3,4,16,17,58])),name:`TableDemoHooksOutput`},"demo/tables/hooks-query":{load:()=>Lr(()=>import(`./hooks-query-BfiOKpDr.js`),__vite__mapDeps([65,1,2,66,14,8,63,11,7,15,3,4,16,58])),name:`TableDemoHooksQuery`},"demo/tables/hooks-selection":{load:()=>Lr(()=>import(`./hooks-selection-CQXnB4lF.js`),__vite__mapDeps([67,1,2,57,63,11,7,15,3,4,16,17,58])),name:`TableDemoHooksSelection`},"demo/tables/printing":{load:()=>Lr(()=>import(`./printing-bpOct_Wz.js`),__vite__mapDeps([68,1,2,57,11,7,58,69])),name:`TableDemoPrinting`},"demo/tables/remote":{load:()=>Lr(()=>import(`./remote-BI21TtQo.js`),__vite__mapDeps([70,1,2,66,14,8,11,7,58])),name:`TableDemoRemote`},"demo/tables/search":{load:()=>Lr(()=>import(`./search-BrfYOWI3.js`),__vite__mapDeps([71,1,2,11,7,63,15,3,4,16,72])),name:`TableDemoSearch`},"demo/template-hooks":{load:()=>Lr(()=>import(`./template-hooks-WDjNVMS5.js`),__vite__mapDeps([73,1,2,11,7,15,3,4,16,33,34,35])),name:`TemplateHooks`}},jye=Object.entries($x).map(([e,{name:t}])=>({id:e,name:t})),Mye=new Map(Object.entries($x).map(([e,{load:t}])=>[t,e])),eS=e=>$x[e].load,Nye=e=>Object.hasOwn($x,e)?$x[e]:void 0,Pye=e=>typeof e==`function`?Mye.get(e):void 0,Fye=$r({default:()=>Iye}),Iye={path:`/dashboard`,component:eS(`dashboard`),meta:{i18nKey:Ub(`menu.Dashboard`),icon:`navigation/dashboard`,order:0}},Lye=$r({default:()=>Rye}),Rye={path:`/examples/assets`,meta:{i18nKey:Ub(`menu.DemoAssets`),icon:`navigation/icons`,order:30},children:[{path:`/svg-icons`,component:eS(`demo/svg-icons`),meta:{i18nKey:Ub(`menu.SvgIcon`),icon:`navigation/icons`}},{path:`/qrcode`,component:eS(`demo/qrcode`),meta:{i18nKey:Ub(`menu.QRCode`),icon:`navigation/qr_code`}},{path:`/barcode`,component:eS(`demo/barcode-demo`),meta:{i18nKey:Ub(`menu.Barcode`),icon:`navigation/barcode`,extra:{label:`new`}}}]},zye=$r({default:()=>Bye}),Bye={path:`/examples/components`,meta:{i18nKey:Ub(`menu.DemoComponents`),icon:`navigation/components`,order:20},children:[{path:`/form`,component:eS(`demo/form`),meta:{i18nKey:Ub(`menu.Form`),icon:`navigation/form`,extra:{label:`useForm`}}},{path:`/modal-demo`,component:eS(`demo/modal-demo`),meta:{i18nKey:Ub(`menu.Modal`),icon:`navigation/window`}},{path:`/segment`,component:eS(`demo/segment`),meta:{i18nKey:Ub(`menu.Segment`),icon:`navigation/components`,extra:{label:`segment`}}},{path:`/draggable-card`,component:eS(`demo/draggable-card`),meta:{i18nKey:Ub(`menu.DraggableCard`),icon:`action/draggable`,extra:{label:`drag`}}},{path:`/echart`,component:eS(`demo/echart`),meta:{i18nKey:Ub(`menu.Echart`),icon:`navigation/echart`,extra:{label:`useChart`}}},{path:`/flow`,component:eS(`demo/flow-demo`),meta:{i18nKey:Ub(`menu.Flow`),icon:`navigation/flow`}},{path:`/iframe`,component:eS(`demo/iframe`),meta:{icon:`navigation/window`,noLocalTitle:`iframe`}}]},Vye=$r({default:()=>Hye}),Hye={path:`/doc/doc-inside`,name:`RTemplateDoc`,component:eS(`demo/doc`),meta:{i18nKey:Ub(`menu.DocLocalInside`),icon:`navigation/document`,order:70}},Uye=$r({default:()=>Wye}),Wye={path:`/examples/interaction`,meta:{i18nKey:Ub(`menu.DemoInteraction`),icon:`action/mouse`,order:40},children:[{path:`/template-hooks`,name:`TemplateHooks`,component:eS(`demo/template-hooks`),meta:{i18nKey:Ub(`menu.TemplateHooks`),icon:`navigation/components`}},{path:`/web-hooks`,name:`WebHooks`,component:eS(`demo/hooks/web-hooks`),meta:{i18nKey:Ub(`menu.WebHooks`),icon:`action/mouse`}},{path:`/directive`,component:eS(`demo/directive`),meta:{i18nKey:Ub(`menu.Directive`),icon:`action/adjustment`,extra:{label:`ellipsis`}}},{path:`/context-menu`,component:eS(`demo/context-menu`),meta:{i18nKey:Ub(`menu.ContextMenu`),icon:`action/more`}},{path:`/scroll-reveal`,component:eS(`demo/scroll-reveal`),meta:{i18nKey:Ub(`menu.scrollReveal`),icon:`directional/expanded`,hidden:!0}}]},Gye=$r({default:()=>Kye}),Kye={path:`/examples/navigation`,meta:{i18nKey:Ub(`menu.DemoNavigation`),icon:`navigation/layout`,order:50},children:[{path:`/layout-demo`,name:`LayoutDemo`,component:eS(`demo/layout-demo`),meta:{i18nKey:Ub(`menu.LayoutDemo`),icon:`navigation/layout`}},{path:`/router-demo`,component:Wb,meta:{i18nKey:Ub(`menu.RouterDemo`),icon:`navigation/routing`},children:[{path:`router-demo-home`,component:eS(`demo/router-demo/router-demo-home`),meta:{noLocalTitle:`人员信息(平级模式)`}},{path:`router-demo-detail`,component:eS(`demo/router-demo/router-demo-detail`),meta:{noLocalTitle:`信息详情`,sameLevel:!0}}]},{path:`/multi`,component:Wb,meta:{i18nKey:Ub(`menu.MultiMenu`),icon:`navigation/menu`,extra:{label:`cache`}},children:[{path:`multi-menu-one`,name:`MultiMenuOne`,component:eS(`demo/multi/views/multi-menu-one`),meta:{noLocalTitle:`多级菜单-1`,keepAlive:!0}},{path:`multi-menu-two`,name:`MultiMenuTwo`,component:Wb,meta:{noLocalTitle:`多级菜单-2`},children:[{path:`sub-menu-other`,name:`SubMenuOther`,component:eS(`demo/multi/views/multi-menu-two/views/sub-menu-other`),meta:{noLocalTitle:`多级菜单-2-1`,keepAlive:!0}},{path:`sub-menu`,name:`SubMenu`,component:Wb,meta:{noLocalTitle:`多级菜单-2-2`,keepAlive:!0},children:[{path:`sub-menu-one`,name:`MultiMenuTwoOne`,component:eS(`demo/multi/views/multi-menu-two/views/sub-menu/views/multi-menu-two-one`),meta:{noLocalTitle:`多级菜单-2-2-1`,keepAlive:!0}}]}]}]}]},qye=$r({default:()=>Jye}),Jye={path:`/tables`,meta:{i18nKey:Ub(`menu.Table`),icon:`navigation/table`,order:10,extra:{label:`TablePro`}},children:[{path:`data`,meta:{i18nKey:Ub(`menu.TableData`)},children:[{path:`/tables/basic`,name:`TableDemoBasic`,component:eS(`demo/tables/basic`),meta:{i18nKey:Ub(`menu.TableBasic`)}},{path:`/tables/remote`,name:`TableDemoRemote`,component:eS(`demo/tables/remote`),meta:{i18nKey:Ub(`menu.TableRemote`)}},{path:`/tables/controlled`,name:`TableDemoControlled`,component:eS(`demo/tables/controlled`),meta:{i18nKey:Ub(`menu.TableControlled`)}},{path:`/tables/search`,name:`TableDemoSearch`,component:eS(`demo/tables/search`),meta:{i18nKey:Ub(`menu.TableSearch`)}}]},{path:`tools`,meta:{i18nKey:Ub(`menu.TableTools`)},children:[{path:`/tables/auto-height`,name:`TableDemoAutoHeight`,component:eS(`demo/tables/auto-height`),meta:{i18nKey:Ub(`menu.TableAutoHeight`)}},{path:`/tables/columns`,name:`TableDemoColumns`,component:eS(`demo/tables/columns`),meta:{i18nKey:Ub(`menu.TableColumns`)}},{path:`/tables/custom`,name:`TableDemoCustom`,component:eS(`demo/tables/custom`),meta:{i18nKey:Ub(`menu.TableCustom`)}},{path:`/tables/printing`,name:`TableDemoPrinting`,component:eS(`demo/tables/printing`),meta:{i18nKey:Ub(`menu.TablePrinting`)}}]},{path:`hooks`,meta:{i18nKey:Ub(`menu.TableHooks`)},children:[{path:`/tables/hooks-query`,name:`TableDemoHooksQuery`,component:eS(`demo/tables/hooks-query`),meta:{i18nKey:Ub(`menu.TableHooksQuery`)}},{path:`/tables/hooks-selection`,name:`TableDemoHooksSelection`,component:eS(`demo/tables/hooks-selection`),meta:{i18nKey:Ub(`menu.TableHooksSelection`)}},{path:`/tables/hooks-output`,name:`TableDemoHooksOutput`,component:eS(`demo/tables/hooks-output`),meta:{i18nKey:Ub(`menu.TableHooksOutput`)}}]}]},Yye=$r({default:()=>Xye}),Xye={path:`/examples/utilities`,meta:{i18nKey:Ub(`menu.DemoUtilities`),icon:`navigation/database`,order:60},children:[{path:`/axios`,name:`RAxios`,component:eS(`demo/axios`),meta:{i18nKey:Ub(`menu.Axios`),icon:`logo/axios`,keepAlive:!0}},{path:`/cache-demo`,component:eS(`demo/cache-demo`),meta:{i18nKey:Ub(`menu.CacheDemo`),icon:`navigation/database`}},{path:`/precision`,component:eS(`demo/precision`),meta:{i18nKey:Ub(`menu.CalculatePrecision`),icon:`navigation/other`}},{path:`/rely-about`,component:eS(`demo/rely/views/rely-about`),meta:{i18nKey:Ub(`menu.RelyAbout`),icon:`navigation/rely`}}]},Zye=()=>{let e=Object.assign({"/src/router/modules/dashboard.ts":Fye,"/src/router/modules/demo/assets.ts":Lye,"/src/router/modules/demo/components.ts":zye,"/src/router/modules/demo/doc.ts":Vye,"/src/router/modules/demo/interaction.ts":Uye,"/src/router/modules/demo/navigation.ts":Gye,"/src/router/modules/demo/tables.ts":qye,"/src/router/modules/demo/utilities.ts":Yye});return Object.keys(e).reduce((t,n)=>{let r=e[n].default;if(r)t.push(r);else throw Error(`[combineRawRouteModules]: ${n} module must export default.`);return t},[])};function tS(e,t){return e?(e.push(t),e):[t]}var Qye=/[.*+?^${}()|[\]\\]/g;function nS(e){return e.replace(Qye,`\\$&`)}function rS(e,t){switch(t?.errorMode){case`ignore`:break;case`warn`:break;default:throw Error(e)}}function iS(e){return typeof e==`boolean`||typeof e==`number`&&Number.isFinite(e)||typeof e==`string`}function aS(e){return e.every(iS)}var $ye=class extends Map{constructor(){super(),this.count=0,this.usedIds=new Set}set(e,t){return this.usedIds.add(t),super.set(e,t)}createId(e){for(;this.usedIds.has(`${this.count}`)||`${this.count}`in e;)this.count++;return`${this.count++}`}};function oS(e,t){return typeof e!=`number`||!Number.isFinite(e)||t>e?t:e}function sS(e,t){return typeof e!=`number`||!Number.isFinite(e)||t<e?t:e}function cS(e,t){return e===void 0?t:{anyOf:[e,t]}}function lS(e,t){let n=e.enum??t;if(e.enum){let e=new Set(t);n=n.filter(t=>e.has(t))}n.length?e.enum=[...new Set(n)]:(delete e.enum,e.not=cS(e.not,{}))}function ebe(e,t,n){if(n?.ignoreActions?.includes(t.type))return e;let r;switch(t.type){case`base64`:e.contentEncoding=`base64`;break;case`bic`:case`cuid2`:case`decimal`:case`digits`:case`domain`:case`emoji`:case`hash`:case`hexadecimal`:case`hex_color`:case`isrc`:case`iso_time_second`:case`iso_week`:case`ksuid`:case`mac`:case`mac48`:case`mac64`:case`nanoid`:case`octal`:case`slug`:case`ulid`:e.pattern?r=tS(r,`The "${t.type}" action is not supported in combination with another regex action.`):e.pattern=t.requirement.source;break;case`description`:e.description=t.description;break;case`email`:case`rfc_email`:e.format=`email`;break;case`ends_with`:e.pattern?r=tS(r,`The "${t.type}" action is not supported in combination with another regex action.`):e.pattern=`${nS(t.requirement)}$`;break;case`empty`:e.type===`array`?e.maxItems=0:(e.type!==`string`&&(r=tS(r,`The "${t.type}" action is not supported on type "${e.type}".`)),e.maxLength=0);break;case`entries`:if(!Number.isInteger(t.requirement)||t.requirement<0){r=tS(r,`The requirement of the "entries" action must be a non-negative integer.`);break}e.minProperties=oS(e.minProperties,t.requirement),e.maxProperties=sS(e.maxProperties,t.requirement);break;case`examples`:e.examples=Array.isArray(e.examples)?[...e.examples,...t.examples]:t.examples;break;case`gt_value`:if(e.type!==`number`&&e.type!==`integer`){r=tS(r,`The "gt_value" action is not supported on type "${e.type}".`);break}if(!Number.isFinite(t.requirement)){r=tS(r,`The requirement of the "gt_value" action is not JSON compatible.`);break}if(n?.target===`openapi-3.0`){r=tS(r,`The "gt_value" action is not supported for OpenAPI 3.0.`);break}e.exclusiveMinimum=oS(e.exclusiveMinimum,t.requirement);break;case`includes`:e.pattern?r=tS(r,`The "${t.type}" action is not supported in combination with another regex action.`):e.pattern=nS(t.requirement);break;case`integer`:e.type=`integer`;break;case`ipv4`:e.format=`ipv4`;break;case`ipv6`:e.format=`ipv6`;break;case`iso_date`:e.format=`date`;break;case`iso_date_time`:case`iso_timestamp`:e.format=`date-time`;break;case`iso_time`:e.format=`time`;break;case`jws_compact`:e.pattern?r=tS(r,`The "${t.type}" action is not supported in combination with another regex action.`):e.pattern=t.requirement.source;break;case`length`:if(!Number.isInteger(t.requirement)||t.requirement<0){r=tS(r,`The requirement of the "length" action must be a non-negative integer.`);break}e.type===`array`?(e.minItems=oS(e.minItems,t.requirement),e.maxItems=sS(e.maxItems,t.requirement)):(e.type!==`string`&&(r=tS(r,`The "${t.type}" action is not supported on type "${e.type}".`)),e.minLength=oS(e.minLength,t.requirement),e.maxLength=sS(e.maxLength,t.requirement));break;case`lt_value`:if(e.type!==`number`&&e.type!==`integer`){r=tS(r,`The "lt_value" action is not supported on type "${e.type}".`);break}if(!Number.isFinite(t.requirement)){r=tS(r,`The requirement of the "lt_value" action is not JSON compatible.`);break}if(n?.target===`openapi-3.0`){r=tS(r,`The "lt_value" action is not supported for OpenAPI 3.0.`);break}e.exclusiveMaximum=sS(e.exclusiveMaximum,t.requirement);break;case`max_entries`:if(!Number.isInteger(t.requirement)||t.requirement<0){r=tS(r,`The requirement of the "max_entries" action must be a non-negative integer.`);break}e.maxProperties=sS(e.maxProperties,t.requirement);break;case`max_length`:if(!Number.isInteger(t.requirement)||t.requirement<0){r=tS(r,`The requirement of the "max_length" action must be a non-negative integer.`);break}e.type===`array`?e.maxItems=sS(e.maxItems,t.requirement):(e.type!==`string`&&(r=tS(r,`The "${t.type}" action is not supported on type "${e.type}".`)),e.maxLength=sS(e.maxLength,t.requirement));break;case`max_value`:if(e.type!==`number`&&e.type!==`integer`){r=tS(r,`The "max_value" action is not supported on type "${e.type}".`);break}if(!Number.isFinite(t.requirement)){r=tS(r,`The requirement of the "max_value" action is not JSON compatible.`);break}e.maximum=sS(e.maximum,t.requirement);break;case`metadata`:typeof t.metadata.title==`string`&&(e.title=t.metadata.title),typeof t.metadata.description==`string`&&(e.description=t.metadata.description),Array.isArray(t.metadata.examples)&&(e.examples=Array.isArray(e.examples)?[...e.examples,...t.metadata.examples]:t.metadata.examples);for(let n of Object.keys(t.metadata))n!==`title`&&n!==`description`&&n!==`examples`&&n!==`__proto__`&&(e[n]=t.metadata[n]);break;case`min_entries`:if(!Number.isInteger(t.requirement)||t.requirement<0){r=tS(r,`The requirement of the "min_entries" action must be a non-negative integer.`);break}e.minProperties=oS(e.minProperties,t.requirement);break;case`min_length`:if(!Number.isInteger(t.requirement)||t.requirement<0){r=tS(r,`The requirement of the "min_length" action must be a non-negative integer.`);break}e.type===`array`?e.minItems=oS(e.minItems,t.requirement):(e.type!==`string`&&(r=tS(r,`The "${t.type}" action is not supported on type "${e.type}".`)),e.minLength=oS(e.minLength,t.requirement));break;case`min_value`:if(e.type!==`number`&&e.type!==`integer`){r=tS(r,`The "min_value" action is not supported on type "${e.type}".`);break}if(!Number.isFinite(t.requirement)){r=tS(r,`The requirement of the "min_value" action is not JSON compatible.`);break}e.minimum=oS(e.minimum,t.requirement);break;case`multiple_of`:e.multipleOf=t.requirement;break;case`non_empty`:e.type===`array`?e.minItems=oS(e.minItems,1):(e.type!==`string`&&(r=tS(r,`The "${t.type}" action is not supported on type "${e.type}".`)),e.minLength=oS(e.minLength,1));break;case`not_value`:if(!iS(t.requirement)){r=tS(r,`The requirement of the "not_value" action is not JSON compatible.`);break}e.not=cS(e.not,n?.target===`openapi-3.0`?{enum:[t.requirement]}:{const:t.requirement});break;case`not_values`:if(!aS(t.requirement)){r=tS(r,`A requirement of the "not_values" action is not JSON compatible.`);break}t.requirement.length&&(e.not=cS(e.not,{enum:[...new Set(t.requirement)]}));break;case`regex`:t.requirement.flags&&(r=tS(r,`RegExp flags are not supported by JSON Schema.`)),e.pattern?r=tS(r,`The "${t.type}" action is not supported in combination with another regex action.`):e.pattern=t.requirement.source;break;case`safe_integer`:e.type=`integer`,e.minimum=oS(e.minimum,-(2**53-1)),e.maximum=sS(e.maximum,2**53-1);break;case`starts_with`:e.pattern?r=tS(r,`The "${t.type}" action is not supported in combination with another regex action.`):e.pattern=`^${nS(t.requirement)}`;break;case`title`:e.title=t.title;break;case`url`:e.format=`uri`;break;case`uuid`:e.format=`uuid`;break;case`value`:if(!iS(t.requirement)){r=tS(r,`The requirement of the "value" action is not JSON compatible.`);break}n?.target===`openapi-3.0`?lS(e,[t.requirement]):`const`in e&&e.const!==t.requirement?r=tS(r,`The "${t.type}" action is not supported in combination with a different "const" restriction.`):e.const=t.requirement;break;case`values`:if(!aS(t.requirement)){r=tS(r,`A requirement of the "values" action is not JSON compatible.`);break}lS(e,t.requirement);break;default:r=tS(r,`The "${t.type}" action cannot be converted to JSON Schema.`)}if(n?.overrideAction){let i=n.overrideAction({valibotAction:t,jsonSchema:e,errors:r});if(i)return{...i}}if(r)for(let e of r)rS(e,n);return e}function uS(e){return e.flatMap(e=>`pipe`in e?uS(e.pipe):e)}function dS(e){return`#/$defs/${e.replaceAll(`~`,`~0`).replaceAll(`/`,`~1`)}`}function fS(e,t,n,r,i=!1){if(!i){let i=r.referenceMap.get(t);if(i){if(e.$ref=dS(i),n?.overrideRef){let a=n.overrideRef({...r,referenceId:i,valibotSchema:t,jsonSchema:e});a&&(e.$ref=a)}return e}}if(`pipe`in t){let i=uS(t.pipe),a=0,o=i.length-1;if(n?.typeMode===`input`){let e=i.slice(1).findIndex(e=>e.kind===`schema`||e.kind===`transformation`&&(e.type===`find_item`||e.type===`parse_json`||e.type===`raw_transform`||e.type===`reduce_items`||e.type===`stringify_json`||e.type===`to_bigint`||e.type===`to_boolean`||e.type===`to_date`||e.type===`to_number`||e.type===`to_string`||e.type===`transform`));e!==-1&&(o=e)}else if(n?.typeMode===`output`){let e=i.findLastIndex(e=>e.kind===`schema`);e!==-1&&(a=e)}for(let t=a;t<=o;t++){let o=i[t];o.kind===`schema`?(t>a&&rS(`Set the "typeMode" config to "input" or "output" to convert pipelines with multiple schemas.`,n),e=fS(e,o,n,r,!0)):e=ebe(e,o,n)}return e}let a;switch(t.type){case`boolean`:e.type=`boolean`;break;case`null`:n?.target===`openapi-3.0`?e.enum=[null]:e.type=`null`;break;case`number`:e.type=`number`;break;case`string`:e.type=`string`;break;case`array`:e.type=`array`,e.items=fS({},t.item,n,r);break;case`tuple`:case`tuple_with_rest`:case`loose_tuple`:case`strict_tuple`:if(e.type=`array`,n?.target===`openapi-3.0`){e.items={anyOf:[]},e.minItems=t.items.length;for(let i of t.items)e.items.anyOf.push(fS({},i,n,r));t.type===`tuple_with_rest`?e.items.anyOf.push(fS({},t.rest,n,r)):(t.type===`strict_tuple`||t.type===`tuple`)&&(e.maxItems=t.items.length)}else if(n?.target===`draft-2020-12`){e.prefixItems=[],e.minItems=t.items.length;for(let i of t.items)e.prefixItems.push(fS({},i,n,r));t.type===`tuple_with_rest`?e.items=fS({},t.rest,n,r):t.type===`strict_tuple`&&(e.items=!1)}else{e.items=[],e.minItems=t.items.length;for(let i of t.items)e.items.push(fS({},i,n,r));t.type===`tuple_with_rest`?e.additionalItems=fS({},t.rest,n,r):t.type===`strict_tuple`&&(e.additionalItems=!1)}break;case`object`:case`object_with_rest`:case`loose_object`:case`strict_object`:e.type=`object`,e.properties={},e.required=[];for(let i in t.entries){let a=t.entries[i];e.properties[i]=fS({},a,n,r),a.type!==`exact_optional`&&a.type!==`nullish`&&a.type!==`optional`&&e.required.push(i)}t.type===`object_with_rest`?e.additionalProperties=fS({},t.rest,n,r):t.type===`strict_object`&&(e.additionalProperties=!1);break;case`record`:n?.target===`openapi-3.0`&&`pipe`in t.key&&(a=tS(a,`The "record" schema with a schema for the key that contains a "pipe" cannot be converted to JSON Schema.`)),t.key.type!==`string`&&(a=tS(a,`The "record" schema with the "${t.key.type}" schema for the key cannot be converted to JSON Schema.`)),e.type=`object`,n?.target!==`openapi-3.0`&&(e.propertyNames=fS({},t.key,n,r)),e.additionalProperties=fS({},t.value,n,r);break;case`any`:case`unknown`:break;case`never`:e.not={};break;case`nullable`:case`nullish`:if(n?.target===`openapi-3.0`){let i=fS({},t.wrapped,n,r);Object.assign(e,i),e.nullable=!0}else e.anyOf=[fS({},t.wrapped,n,r),{type:`null`}];t.default!==void 0&&(e.default=typeof t.default==`function`?t.default():t.default);break;case`exact_optional`:case`optional`:case`undefinedable`:e=fS(e,t.wrapped,n,r),t.default!==void 0&&(e.default=typeof t.default==`function`?t.default():t.default);break;case`literal`:if(!iS(t.literal)){a=tS(a,`The value of the "literal" schema is not JSON compatible.`);break}n?.target===`openapi-3.0`?e.enum=[t.literal]:e.const=t.literal;break;case`enum`:case`picklist`:{let r=t.options;if(!r.every(e=>typeof e==`string`||typeof e==`number`&&Number.isFinite(e))){a=tS(a,`An option of the "${t.type}" schema is not JSON compatible.`);break}e.enum=r,r.every(e=>typeof e==`string`)?e.type=`string`:r.every(e=>typeof e==`number`)?e.type=`number`:n?.target!==`openapi-3.0`&&(e.type=[`string`,`number`]);break}case`union`:e.anyOf=t.options.map(e=>fS({},e,n,r));break;case`variant`:e.oneOf=t.options.map(e=>fS({},e,n,r));break;case`intersect`:e.allOf=t.options.map(e=>fS({},e,n,r));break;case`lazy`:{let i=r.getterMap.get(t.getter);i||(i=t.getter(void 0),r.getterMap.set(t.getter,i));let a=r.referenceMap.get(i);if(a||(a=r.referenceMap.createId(r.definitions),r.referenceMap.set(i,a),r.definitions[a]=fS({},i,n,r,!0)),e.$ref=dS(a),n?.overrideRef){let t=n.overrideRef({...r,referenceId:a,valibotSchema:i,jsonSchema:e});t&&(e.$ref=t)}break}default:a=tS(a,`The "${t.type}" schema cannot be converted to JSON Schema.`)}if(n?.overrideSchema){let i=n.overrideSchema({...r,referenceId:r.referenceMap.get(t),valibotSchema:t,jsonSchema:e,errors:a});if(i)return{...i}}if(a)for(let e of a)rS(e,n);return e}function tbe(e,t){let n={definitions:{},referenceMap:new $ye,getterMap:new Map},r=t?.definitions??void 0;if(r){for(let e in r)n.referenceMap.set(r[e],e);for(let e in r)n.definitions[e]=fS({},r[e],t,n,!0)}let i=fS({},e,t,n),a=t?.target??`draft-07`;return a===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:a===`draft-07`&&(i.$schema=`http://json-schema.org/draft-07/schema#`),n.referenceMap.size&&(i.$defs=n.definitions),i}var nbe=()=>tbe(Jr,{target:`draft-2020-12`,definitions:{route:_ee},ignoreActions:[`check`,`finite`]}),pS=(e,t)=>t.startsWith(`/`)?t:`${e.replace(/\/$/,``)}/${t}`,mS=`action/add.action/adjustment.action/close.action/close_left.action/close_other.action/close_right.action/copy.action/delete.action/download.action/draggable.action/edit.action/filter.action/fullscreen.action/fullscreen_fold.action/link.action/lock.action/more.action/mouse.action/out.action/print.action/reload.action/search.action/setting.action/shared.action/upload.directional/enter.directional/expanded.directional/left_arrow.directional/resize_h.directional/right_arrow.directional/row_end.directional/row_head.logo/axios.logo/github.logo/google.logo/ray.logo/twitter.navigation/appearance.navigation/barcode.navigation/components.navigation/dashboard.navigation/database.navigation/document.navigation/echart.navigation/flow.navigation/form.navigation/icons.navigation/layout.navigation/menu.navigation/other.navigation/qr_code.navigation/rely.navigation/routing.navigation/table.navigation/window.status/error.status/question.status/success.status/warning.system/dark.system/language.system/light.system/system_os.system/watermark`.split(`.`),rbe=[`action`,`directional`,`logo`,`navigation`,`status`,`system`],ibe={action:`/ray-template/assets/icons-action.2ef20888.svg`,directional:`/ray-template/assets/icons-directional.521e4536.svg`,logo:`/ray-template/assets/icons-logo.7210caa6.svg`,navigation:`/ray-template/assets/icons-navigation.013e2e3d.svg`,status:`/ray-template/assets/icons-status.f2348be2.svg`,system:`/ray-template/assets/icons-system.54fb1842.svg`},abe=new Set(mS),hS=e=>typeof e==`string`&&abe.has(e),gS=new Map([[`action/export_excel`,`action/download`],[`logo/office`,`navigation/table`],[`illustration/login_bg`,`navigation/other`]]),_S=e=>gS.get(e)??e;function vS(e){if(typeof e!=`string`)return;let t=_S(e);if(hS(t))return t;if(t.includes(`/`))return;let n=mS.filter(e=>e.endsWith(`/${t}`));if(n.length===1)return n[0];if(!(n.length>1))return[...gS].find(([e])=>e.endsWith(`/${t}`))?.[1]}function obe(e){let{layout:t,findRouteView:n,findRouteViewId:r,managementPath:i,homePath:a}=e,o=e=>e===`/`||e===i||e.startsWith(`${i}/`),s=new Set(e.reservedNames?.map(e=>e.toLowerCase())),c=e=>typeof e==`string`?[e]:e??[];function l(e){if(e.length>262144)throw Error(`Route configuration exceeds 256 KiB.`);let t=JSON.parse(e),r=0,i=(e,t)=>{if(Array.isArray(e)){if(r+=e.length,r>300||t>8)throw Error(`Use at most 300 routes and 8 menu levels.`);for(let n of e)i(n?.children,t+1)}};i(t?.routes,1);let l=wee(Jr,t);if(!l.success)throw Error(l.issues.slice(0,20).map(e=>`${xee(e)??`config`}: ${e.message}`).join(`
`));let u=l.output,d=new Map,f=new Set(s),p=new Set,m=new Set,h=(e,t=``,r=!1)=>{for(let i of e){let{name:e,component:s,children:l,alias:u,redirect:g,props:_,meta:v}=i,y=pS(t,i.path),b=e=>{throw Error(`${y}: ${e}`)},x=y.toLowerCase();if((p.has(x)||o(x))&&b(`Duplicate or reserved menu path.`),p.add(x),v.windowOpen&&!URL.canParse(v.windowOpen)&&b(`Invalid external URL.`),e){let t=e.toLowerCase();f.has(t)&&b(`Duplicate or reserved name "${e}".`),f.add(t)}v.icon&&=_S(v.icon),v.extra?.icon&&(v.extra.icon=_S(v.extra.icon));for(let e of[v.icon,v.extra?.icon])e&&!hS(e)&&b(`Unknown icon "${e}".`);if(l?.length){(s&&s!==`layout`||u||g||_!==void 0||v.windowOpen)&&b(`Groups accept layout, children and menu metadata.`),y.includes(`:`)&&b(`Use static paths for menu groups.`),h(l,y,r||!!v.role?.length);continue}let S=s&&n(s);s&&!S&&b(`Unknown view "${s}".`),Number(!!s)+Number(!!g)+Number(!!v.windowOpen)!==1&&b(`Specify exactly one view, redirect or external URL.`),_!==void 0&&!S&&b(`Props require a view.`),v.keepAlive&&(!S||e!==S.name)&&b(`keepAlive requires the registered component name.`),y.includes(`:`)&&!v.hidden&&!v.sameLevel&&b(`Parameterized paths must be hidden or sameLevel.`);for(let e of[y,...c(u)]){let t=e.toLowerCase();t.split(`/`).some(e=>e===`.`||e===`..`)&&b(`Invalid path "${e}".`),(o(t)||d.has(t))&&b(`Duplicate or reserved path "${e}".`),t===a&&(e!==y||y!==a||!S||r||v.role?.length)&&b(`/dashboard must be a view accessible to all authenticated roles.`),e!==y&&(e.includes(`:`)||y.includes(`:`))&&b(`Aliases require a static page path.`);let n=t.replace(/:[a-z_]\w*/g,`:param`);m.has(n)&&b(`Conflicting parameter pattern "${e}".`),m.add(n),d.set(t,i)}}};h(u.routes);for(let[e,t]of d){let n=t,r=new Set;for(;n.redirect;){let t=d.get(n.redirect.toLowerCase());if(r.has(n)||!t||t.meta.windowOpen||n.redirect.includes(`:`))throw Error(`${e}: Redirects must reach a configured page without a cycle.`);r.add(n),n=t}}return u}function u(e){let r=({component:e,children:i,meta:a,...o})=>({...o,meta:a,component:e===`layout`?t:e?n(e)?.load:void 0,children:i?.map(r)});return e.routes.map(r)}function d(e){let n=({path:e,name:i,meta:a,component:o,children:s,props:c,alias:l,redirect:u})=>{let d=o===t?`layout`:r(o);if(o&&!d)throw Error(`${e}: Register the view in router/config/views.ts before exporting.`);if(u&&typeof u!=`string`)throw Error(`${e}: Export requires a string redirect.`);return{path:e,name:i,meta:a,component:d,alias:l,redirect:u,props:c,children:s?.map(n)}};return l(JSON.stringify({version:1,routes:e.map(n)}))}return{parseRouteConfig:l,toRuntimeRoutes:u,exportRouteConfig:d}}function yS(e,t){let n=e=>e.fullPath===t||!!e.children?.some(n);return e.find(e=>e.show!==!1&&n(e))}function bS(e){if(e.show!==!1){if(!e.children?.length)return e;for(let t of e.children){let e=bS(t);if(e)return e}}}var xS=e=>{let t=[],n=(e,r=``,i=[])=>{for(let a of e){let e=pS(r,a.path);a.children?.length?n(a.children,e,[...i,a.meta]):t.push({...a,path:e,meta:{...a.meta,ancestorRoles:i.flatMap(({role:e})=>e?.length?[e]:[])}})}};return Array.isArray(e)&&n(e),t},SS=e=>e.toSorted((e,t)=>(e.meta?.order??0)-(t.meta?.order??0)||(e.name??``).localeCompare(t.name??``,`en`)),sbe={path:Kb,meta:{i18nKey:`menu.RouteManagement`,icon:`action/setting`,role:[`admin`],order:100},children:[{path:`visual`,name:`RouteManagementVisual`,component:()=>Lr(()=>import(`./visual-D_LZvZ45.js`),__vite__mapDeps([74,1,2,75,76,3,4,77,25,11,7])),meta:{i18nKey:`menu.RouteManagementVisual`}},{path:`json`,name:`RouteManagement`,component:()=>Lr(()=>import(`./route-management-BCo0uhZJ.js`),__vite__mapDeps([78,1,2,75,76,3,4,77,25,11,7,20,8])),meta:{i18nKey:`menu.RouteManagementJson`}}]},CS=()=>SS(Zye()),wS;function TS(e){let t=CS().find(({path:e})=>e===Gb);wS=SS(xS(e).some(({path:e})=>e===Gb)||!t?e:[...e,t])}var ES=()=>[...wS??CS(),sbe],cbe=()=>xS(ES()).filter(({meta:e})=>!e.windowOpen),DS=`rayRouteConfig.v1`;function lbe(){try{let e=JSON.parse(localStorage.getItem(DS)??`null`);if(e&&typeof e==`object`&&`source`in e&&(e.source===`static`||e.source===`local`||e.source===`remote`))return e}catch{}return{source:`static`}}var OS=lbe(),kS={requested:OS.source,active:`static`};async function AS(){throw Error(`VITE_ROUTE_CONFIG_URL is missing.`)}async function ube(){if(OS.source!==`static`)try{let e=OS.source===`remote`?await AS():(await Lr(async()=>{let{parseRouteConfig:e}=await import(`./contract-Bd-rjgfA.js`);return{parseRouteConfig:e}},[])).parseRouteConfig(JSON.stringify(OS.local??null));return kS.active=OS.source,kS.config=e,e}catch(e){kS.error=e instanceof Error?e.message:String(e)}}function dbe(e,t=OS.local){localStorage.setItem(DS,JSON.stringify({source:e,local:t})),sessionStorage.removeItem(Fn.appMenuTagOptions),sessionStorage.removeItem(Fn.appMenuKey),sessionStorage.removeItem(Fn.appPiniaKeepAliveStore),location.reload()}var jS=()=>{let{getLocked:e}=dYe(),{setLocked:t}=fYe();return{setLockAppScreen:t,getLockAppScreen:()=>e.value}},MS=Y({name:`AppAvatar`,props:{...zl,cursor:{type:String,default:`auto`},spaceSize:{type:[String,Number,Array],default:`medium`},avatarSize:{type:[String,Number],default:`medium`},vertical:{type:Boolean,default:!1}},setup(){let{getSigningCallback:e}=cYe();return{getSigningCallback:e}},render(){let{getSigningCallback:e,avatarSize:t,spaceSize:n,$props:r,vertical:i}=this;return J(wr,{quaternary:!0,strong:!0,focusable:!1},{default:()=>[J(Nr,{align:`center`,size:n,vertical:i},{default:()=>[J(Bl,I(r,{src:e?.avatar,objectFit:`cover`,round:!0,size:t}),{default:()=>e.avatar?null:e?.name?.[0]}),e?.name]})]})}}),NS={lockPassword:{required:!0,message:`请输入正确格式密码`,min:6,max:12,trigger:[`input`]}},PS=()=>({lockPassword:null});function FS(e,t){let n=m(e);return n?.$el??n??t}var IS=e=>(typeof e==`string`?[e]:e).flatMap(e=>e.split(/[\t\n\f\r ]+/)).filter(Boolean),LS=(e,t)=>{let n=IS(t);Te(()=>FS(e),e=>e?.classList.add(...n),{immediate:!0})},RS=(e,t)=>{Te(()=>FS(e),e=>{t===`removeAllClass`?e?.removeAttribute(`class`):e?.classList.remove(...IS(t))},{immediate:!0})},fbe=(e,t)=>{let n=N(!1),r=IS(t);return Te(()=>FS(e),e=>{n.value=r.some(t=>e?.classList.contains(t))},{immediate:!0}),n},pbe=e=>Object.fromEntries([...[`webkit`,`moz`,`ms`,`o`].map(t=>[`${t}${e.charAt(0).toUpperCase()}${e.slice(1)}`,e]),[e,e]]),zS=e=>e.startsWith(`--`)?e:e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`).replace(/^(webkit|moz|ms|o)-/,`-$1-`),BS=(e,t)=>{Te(()=>FS(e),e=>{if(e){if(typeof t==`string`||Array.isArray(t)){let n=e.ownerDocument.createElement(`span`).style;n.cssText=typeof t==`string`?t:t.join(`;`);for(let t=0;t<n.length;t++){let r=n.item(t);e.style.setProperty(r,n.getPropertyValue(r),n.getPropertyPriority(r))}}else for(let[n,r]of Object.entries(t)){if(r==null)continue;let t=String(r),i=/\s*!important\s*$/i;e.style.setProperty(zS(n),t.replace(i,``),i.test(t)?`important`:``)}}},{immediate:!0})},mbe=(e,t)=>{Te(()=>FS(e),e=>{t.forEach(t=>e?.style.removeProperty(zS(t)))},{immediate:!0})},VS=(e,t=1,n)=>{if(!e)return n||e;let r=e;if(e=e.trim().toLowerCase(),/^rgba\([^,]+,[^,]+,[^,]+,[^,]+\)$/.test(e))return e.replace(/rgba\((.*?),(.*?),(.*?),.*?\)/,(e,n,r,i)=>`rgba(${n.trim()}, ${r.trim()}, ${i.trim()}, ${t})`);if(/^rgb\([^,]+,[^,]+,[^,]+\)$/.test(e))return e.replace(`rgb`,`rgba`).replace(`)`,`, ${t})`);if(/^hsla\([^,]+,[^,]+,[^,]+,[^,]+\)$/.test(e))return e.replace(/hsla\((.*?),(.*?),(.*?),.*?\)/,(e,n,r,i)=>`hsla(${n.trim()}, ${r.trim()}, ${i.trim()}, ${t})`);if(/^hsl\([^,]+,[^,]+,[^,]+\)$/.test(e))return e.replace(`hsl`,`hsla`).replace(`)`,`, ${t})`);if(/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(e)){let n=e.slice(1),[r,i,a,o]=n.length<=4?[...n].map(e=>parseInt(e+e,16)):n.match(/../g).map(e=>parseInt(e,16));return`rgba(${r}, ${i}, ${a}, ${o===void 0?t:Number((o/255).toFixed(2))})`}return n??r},HS=(e,t)=>{let{defaultElement:n}=t||{};if(!e)return n?[n]:null;let r=e.startsWith(`attr:`)?`[${e.replace(`attr:`,``)}]`:e;try{let e=Array.from(document.querySelectorAll(r));return!e.length&&n?[n]:e}catch{return n?[n]:null}},US=(e,t=`px`)=>typeof e==`number`||/^[+-]?(?:\d+\.?\d*|\.\d+)$/.test(e.trim())?`${typeof e==`number`?e:e.trim()}${t}`:e;function WS(e,...t){Array.isArray(e)?e.forEach(e=>e(...t)):e(...t)}function GS(e,t){let n=e??t?.defaultElement??null;return typeof n==`function`?n:()=>n}var KS=ei(Qr(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).interact=r()})(n,(function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(t){for(var n=1;n<arguments.length;n++){var r=arguments[n]==null?{}:arguments[n];n%2?e(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function r(e){return r=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,m(r.key),r)}}function o(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function d(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function f(e){var t=function(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch{return!1}}();return function(){var n,r=l(e);if(t){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&(typeof t==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return d(e)}(this,n)}}function p(){return p=typeof Reflect<`u`&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=l(e))!==null;);return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},p.apply(this,arguments)}function m(e){var t=function(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}(e,`string`);return typeof t==`symbol`?t:t+``}var h=function(e){return!(!e||!e.Window)&&e instanceof e.Window},g=void 0,_=void 0;function v(e){g=e;var t=e.document.createTextNode(``);t.ownerDocument!==e.document&&typeof e.wrap==`function`&&e.wrap(t)===t&&(e=e.wrap(e)),_=e}function y(e){return h(e)?e:(e.ownerDocument||e).defaultView||_.window}typeof window<`u`&&window&&v(window);var b=function(e){return!!e&&r(e)===`object`},x=function(e){return typeof e==`function`},S={window:function(e){return e===_||h(e)},docFrag:function(e){return b(e)&&e.nodeType===11},object:b,func:x,number:function(e){return typeof e==`number`},bool:function(e){return typeof e==`boolean`},string:function(e){return typeof e==`string`},element:function(e){if(!e||r(e)!==`object`)return!1;var t=y(e)||_;return/object|function/.test(typeof Element>`u`?`undefined`:r(Element))?e instanceof Element||e instanceof t.Element:e.nodeType===1&&typeof e.nodeName==`string`},plainObject:function(e){return b(e)&&!!e.constructor&&/function Object\b/.test(e.constructor.toString())},array:function(e){return b(e)&&e.length!==void 0&&x(e.splice)}};function C(e){var t=e.interaction;if(t.prepared.name===`drag`){var n=t.prepared.axis;n===`x`?(t.coords.cur.page.y=t.coords.start.page.y,t.coords.cur.client.y=t.coords.start.client.y,t.coords.velocity.client.y=0,t.coords.velocity.page.y=0):n===`y`&&(t.coords.cur.page.x=t.coords.start.page.x,t.coords.cur.client.x=t.coords.start.client.x,t.coords.velocity.client.x=0,t.coords.velocity.page.x=0)}}function w(e){var t=e.iEvent,n=e.interaction;if(n.prepared.name===`drag`){var r=n.prepared.axis;if(r===`x`||r===`y`){var i=r===`x`?`y`:`x`;t.page[i]=n.coords.start.page[i],t.client[i]=n.coords.start.client[i],t.delta[i]=0}}}var T={id:`actions/drag`,install:function(e){var t=e.actions,n=e.Interactable,r=e.defaults;n.prototype.draggable=T.draggable,t.map.drag=T,t.methodDict.drag=`draggable`,r.actions.drag=T.defaults},listeners:{"interactions:before-action-move":C,"interactions:action-resume":C,"interactions:action-move":w,"auto-start:check":function(e){var t=e.interaction,n=e.interactable,r=e.buttons,i=n.options.drag;if(i&&i.enabled&&(!t.pointerIsDown||!/mouse|pointer/.test(t.pointerType)||(r&n.options.drag.mouseButtons)!=0))return e.action={name:`drag`,axis:i.lockAxis===`start`?i.startAxis:i.lockAxis},!1}},draggable:function(e){return S.object(e)?(this.options.drag.enabled=!1!==e.enabled,this.setPerAction(`drag`,e),this.setOnEvents(`drag`,e),/^(xy|x|y|start)$/.test(e.lockAxis)&&(this.options.drag.lockAxis=e.lockAxis),/^(xy|x|y)$/.test(e.startAxis)&&(this.options.drag.startAxis=e.startAxis),this):S.bool(e)?(this.options.drag.enabled=e,this):this.options.drag},beforeMove:C,move:w,defaults:{startAxis:`xy`,lockAxis:`xy`},getCursor:function(){return`move`},filterEventType:function(e){return e.search(`drag`)===0}},E=T,D={init:function(e){var t=e;D.document=t.document,D.DocumentFragment=t.DocumentFragment||O,D.SVGElement=t.SVGElement||O,D.SVGSVGElement=t.SVGSVGElement||O,D.SVGElementInstance=t.SVGElementInstance||O,D.Element=t.Element||O,D.HTMLElement=t.HTMLElement||D.Element,D.Event=t.Event,D.Touch=t.Touch||O,D.PointerEvent=t.PointerEvent||t.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function O(){}var k=D,A={init:function(e){var t=k.Element,n=e.navigator||{};A.supportsTouch=`ontouchstart`in e||S.func(e.DocumentTouch)&&k.document instanceof e.DocumentTouch,A.supportsPointerEvent=!1!==n.pointerEnabled&&!!k.PointerEvent,A.isIOS=/iP(hone|od|ad)/.test(n.platform),A.isIOS7=/iP(hone|od|ad)/.test(n.platform)&&/OS 7[^\d]/.test(n.appVersion),A.isIe9=/MSIE 9/.test(n.userAgent),A.isOperaMobile=n.appName===`Opera`&&A.supportsTouch&&/Presto/.test(n.userAgent),A.prefixedMatchesSelector=`matches`in t.prototype?`matches`:`webkitMatchesSelector`in t.prototype?`webkitMatchesSelector`:`mozMatchesSelector`in t.prototype?`mozMatchesSelector`:`oMatchesSelector`in t.prototype?`oMatchesSelector`:`msMatchesSelector`,A.pEventTypes=A.supportsPointerEvent?k.PointerEvent===e.MSPointerEvent?{up:`MSPointerUp`,down:`MSPointerDown`,over:`mouseover`,out:`mouseout`,move:`MSPointerMove`,cancel:`MSPointerCancel`}:{up:`pointerup`,down:`pointerdown`,over:`pointerover`,out:`pointerout`,move:`pointermove`,cancel:`pointercancel`}:null,A.wheelEvent=k.document&&`onmousewheel`in k.document?`mousewheel`:`wheel`},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},j=A;function ee(e,t){if(e.contains)return e.contains(t);for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function te(e,t){for(;S.element(e);){if(ne(e,t))return e;e=M(e)}return null}function M(e){var t=e.parentNode;if(S.docFrag(t)){for(;(t=t.host)&&S.docFrag(t););return t}return t}function ne(e,t){return _!==g&&(t=t.replace(/\/deep\//g,` `)),e[j.prefixedMatchesSelector](t)}var re=function(e){return e.parentNode||e.host};function ie(e,t){for(var n,r=[],i=e;(n=re(i))&&i!==t&&n!==i.ownerDocument;)r.unshift(i),i=n;return r}function N(e,t,n){for(;S.element(e);){if(ne(e,t))return!0;if((e=M(e))===n)return ne(e,t)}return!1}function P(e){return e.correspondingUseElement||e}function ae(e){var t=e instanceof k.SVGElement?e.getBoundingClientRect():e.getClientRects()[0];return t&&{left:t.left,right:t.right,top:t.top,bottom:t.bottom,width:t.width||t.right-t.left,height:t.height||t.bottom-t.top}}function oe(e){var t,n=ae(e);if(!j.isIOS7&&n){var r={x:(t=(t=y(e))||_).scrollX||t.document.documentElement.scrollLeft,y:t.scrollY||t.document.documentElement.scrollTop};n.left+=r.x,n.right+=r.x,n.top+=r.y,n.bottom+=r.y}return n}function se(e){for(var t=[];e;)t.push(e),e=M(e);return t}function ce(e){return!!S.string(e)&&(k.document.querySelector(e),!0)}function le(e,t){for(var n in t)e[n]=t[n];return e}function ue(e,t,n){return e===`parent`?M(n):e===`self`?t.getRect(n):te(n,e)}function de(e,t,n,r){var i=e;return S.string(i)?i=ue(i,t,n):S.func(i)&&(i=i.apply(void 0,r)),S.element(i)&&(i=oe(i)),i}function fe(e){return e&&{x:`x`in e?e.x:e.left,y:`y`in e?e.y:e.top}}function pe(e){return!e||`x`in e&&`y`in e||((e=le({},e)).x=e.left||0,e.y=e.top||0,e.width=e.width||(e.right||0)-e.x,e.height=e.height||(e.bottom||0)-e.y),e}function me(e,t,n){e.left&&(t.left+=n.x),e.right&&(t.right+=n.x),e.top&&(t.top+=n.y),e.bottom&&(t.bottom+=n.y),t.width=t.right-t.left,t.height=t.bottom-t.top}function F(e,t,n){var r=n&&e.options[n];return fe(de(r&&r.origin||e.options.origin,e,t,[e&&t]))||{x:0,y:0}}function he(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(e){return!0},r=arguments.length>3?arguments[3]:void 0;if(r||={},S.string(e)&&e.search(` `)!==-1&&(e=ge(e)),S.array(e))return e.forEach((function(e){return he(e,t,n,r)})),r;if(S.object(e)&&(t=e,e=``),S.func(t)&&n(e))r[e]=r[e]||[],r[e].push(t);else if(S.array(t))for(var i=0,a=t;i<a.length;i++){var o=a[i];he(e,o,n,r)}else if(S.object(t))for(var s in t)he(ge(s).map((function(t){return`${e}${t}`})),t[s],n,r);return r}function ge(e){return e.trim().split(/ +/)}var _e=function(e,t){return Math.sqrt(e*e+t*t)},I=[`webkit`,`moz`];function ve(e,t){e.__set||={};var n=function(n){if(I.some((function(e){return n.indexOf(e)===0})))return 1;typeof e[n]!=`function`&&n!==`__set`&&Object.defineProperty(e,n,{get:function(){return n in e.__set?e.__set[n]:e.__set[n]=t[n]},set:function(t){e.__set[n]=t},configurable:!0})};for(var r in t)n(r);return e}function ye(e,t){e.page=e.page||{},e.page.x=t.page.x,e.page.y=t.page.y,e.client=e.client||{},e.client.x=t.client.x,e.client.y=t.client.y,e.timeStamp=t.timeStamp}function L(e){e.page.x=0,e.page.y=0,e.client.x=0,e.client.y=0}function be(e){return e instanceof k.Event||e instanceof k.Touch}function xe(e,t,n){return e||=`page`,(n||={}).x=t[e+`X`],n.y=t[e+`Y`],n}function Se(e,t){return t||={x:0,y:0},j.isOperaMobile&&be(e)?(xe(`screen`,e,t),t.x+=window.scrollX,t.y+=window.scrollY):xe(`page`,e,t),t}function Ce(e){return S.number(e.pointerId)?e.pointerId:e.identifier}function we(e,t,n){var r=t.length>1?Ee(t):t[0];Se(r,e.page),function(e,t){t||={},j.isOperaMobile&&be(e)?xe(`screen`,e,t):xe(`client`,e,t)}(r,e.client),e.timeStamp=n}function Te(e){var t=[];return S.array(e)?(t[0]=e[0],t[1]=e[1]):e.type===`touchend`?e.touches.length===1?(t[0]=e.touches[0],t[1]=e.changedTouches[0]):e.touches.length===0&&(t[0]=e.changedTouches[0],t[1]=e.changedTouches[1]):(t[0]=e.touches[0],t[1]=e.touches[1]),t}function Ee(e){for(var t={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},n=0;n<e.length;n++){var r=e[n];for(var i in t)t[i]+=r[i]}for(var a in t)t[a]/=e.length;return t}function De(e){if(!e.length)return null;var t=Te(e),n=Math.min(t[0].pageX,t[1].pageX),r=Math.min(t[0].pageY,t[1].pageY),i=Math.max(t[0].pageX,t[1].pageX),a=Math.max(t[0].pageY,t[1].pageY);return{x:n,y:r,left:n,top:r,right:i,bottom:a,width:i-n,height:a-r}}function Oe(e,t){var n=t+`X`,r=t+`Y`,i=Te(e);return _e(i[0][n]-i[1][n],i[0][r]-i[1][r])}function ke(e,t){var n=t+`X`,r=t+`Y`,i=Te(e),a=i[1][n]-i[0][n],o=i[1][r]-i[0][r];return 180*Math.atan2(o,a)/Math.PI}function Ae(e){return S.string(e.pointerType)?e.pointerType:S.number(e.pointerType)?[void 0,void 0,`touch`,`pen`,`mouse`][e.pointerType]:/touch/.test(e.type||``)||e instanceof k.Touch?`touch`:`mouse`}function je(e){var t=S.func(e.composedPath)?e.composedPath():e.path;return[P(t?t[0]:e.target),P(e.currentTarget)]}var Me=function(){function e(t){i(this,e),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=t}return o(e,[{key:`preventDefault`,value:function(){}},{key:`stopPropagation`,value:function(){this.propagationStopped=!0}},{key:`stopImmediatePropagation`,value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),e}();Object.defineProperty(Me.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var Ne=function(e,t){for(var n=0;n<t.length;n++){var r=t[n];e.push(r)}return e},Pe=function(e){return Ne([],e)},Fe=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n,e))return n;return-1},Ie=function(e,t){return e[Fe(e,t)]},Le=function(e){c(n,e);var t=f(n);function n(e,r,a){var o;i(this,n),(o=t.call(this,r._interaction)).dropzone=void 0,o.dragEvent=void 0,o.relatedTarget=void 0,o.draggable=void 0,o.propagationStopped=!1,o.immediatePropagationStopped=!1;var s=a===`dragleave`?e.prev:e.cur,c=s.element,l=s.dropzone;return o.type=a,o.target=c,o.currentTarget=c,o.dropzone=l,o.dragEvent=r,o.relatedTarget=r.target,o.draggable=r.interactable,o.timeStamp=r.timeStamp,o}return o(n,[{key:`reject`,value:function(){var e=this,t=this._interaction.dropState;if(this.type===`dropactivate`||this.dropzone&&t.cur.dropzone===this.dropzone&&t.cur.element===this.target){if(t.prev.dropzone=this.dropzone,t.prev.element=this.target,t.rejected=!0,t.events.enter=null,this.stopImmediatePropagation(),this.type===`dropactivate`){var r=t.activeDrops,i=Fe(r,(function(t){var n=t.dropzone,r=t.element;return n===e.dropzone&&r===e.target}));t.activeDrops.splice(i,1);var a=new n(t,this.dragEvent,`dropdeactivate`);a.dropzone=this.dropzone,a.target=this.target,this.dropzone.fire(a)}else this.dropzone.fire(new n(t,this.dragEvent,`dragleave`))}}},{key:`preventDefault`,value:function(){}},{key:`stopPropagation`,value:function(){this.propagationStopped=!0}},{key:`stopImmediatePropagation`,value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),n}(Me);function Re(e,t){for(var n=0,r=e.slice();n<r.length;n++){var i=r[n],a=i.dropzone,o=i.element;t.dropzone=a,t.target=o,a.fire(t),t.propagationStopped=t.immediatePropagationStopped=!1}}function ze(e,t){for(var n=function(e,t){for(var n=[],r=0,i=e.interactables.list;r<i.length;r++){var a=i[r];if(a.options.drop.enabled){var o=a.options.drop.accept;if(!(S.element(o)&&o!==t||S.string(o)&&!ne(t,o)||S.func(o)&&!o({dropzone:a,draggableElement:t})))for(var s=0,c=a.getAllElements();s<c.length;s++){var l=c[s];l!==t&&n.push({dropzone:a,element:l,rect:a.getRect(l)})}}}return n}(e,t),r=0;r<n.length;r++){var i=n[r];i.rect=i.dropzone.getRect(i.element)}return n}function Be(e,t,n){for(var r=e.dropState,i=e.interactable,a=e.element,o=[],s=0,c=r.activeDrops;s<c.length;s++){var l=c[s],u=l.dropzone,d=l.element,f=l.rect,p=u.dropCheck(t,n,i,a,d,f);o.push(p?d:null)}var m=function(e){for(var t,n,r,i=[],a=0;a<e.length;a++){var o=e[a],s=e[t];if(o&&a!==t){if(s){var c=re(o),l=re(s);if(c!==o.ownerDocument){if(l!==o.ownerDocument){if(c!==l){i=i.length?i:ie(s);var u=void 0;if(s instanceof k.HTMLElement&&o instanceof k.SVGElement&&!(o instanceof k.SVGSVGElement)){if(o===l)continue;u=o.ownerSVGElement}else u=o;for(var d=ie(u,s.ownerDocument),f=0;d[f]&&d[f]===i[f];)f++;var p=[d[f-1],d[f],i[f]];if(p[0])for(var m=p[0].lastChild;m;){if(m===p[1]){t=a,i=d;break}if(m===p[2])break;m=m.previousSibling}}else r=s,(parseInt(y(n=o).getComputedStyle(n).zIndex,10)||0)>=(parseInt(y(r).getComputedStyle(r).zIndex,10)||0)&&(t=a)}else t=a}}else t=a}}return t}(o);return r.activeDrops[m]||null}function Ve(e,t,n){var r=e.dropState,i={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return n.type===`dragstart`&&(i.activate=new Le(r,n,`dropactivate`),i.activate.target=null,i.activate.dropzone=null),n.type===`dragend`&&(i.deactivate=new Le(r,n,`dropdeactivate`),i.deactivate.target=null,i.deactivate.dropzone=null),r.rejected||(r.cur.element!==r.prev.element&&(r.prev.dropzone&&(i.leave=new Le(r,n,`dragleave`),n.dragLeave=i.leave.target=r.prev.element,n.prevDropzone=i.leave.dropzone=r.prev.dropzone),r.cur.dropzone&&(i.enter=new Le(r,n,`dragenter`),n.dragEnter=r.cur.element,n.dropzone=r.cur.dropzone)),n.type===`dragend`&&r.cur.dropzone&&(i.drop=new Le(r,n,`drop`),n.dropzone=r.cur.dropzone,n.relatedTarget=r.cur.element),n.type===`dragmove`&&r.cur.dropzone&&(i.move=new Le(r,n,`dropmove`),n.dropzone=r.cur.dropzone)),i}function He(e,t){var n=e.dropState,r=n.activeDrops,i=n.cur,a=n.prev;t.leave&&a.dropzone.fire(t.leave),t.enter&&i.dropzone.fire(t.enter),t.move&&i.dropzone.fire(t.move),t.drop&&i.dropzone.fire(t.drop),t.deactivate&&Re(r,t.deactivate),n.prev.dropzone=i.dropzone,n.prev.element=i.element}function Ue(e,t){var n=e.interaction,r=e.iEvent,i=e.event;if(r.type===`dragmove`||r.type===`dragend`){var a=n.dropState;t.dynamicDrop&&(a.activeDrops=ze(t,n.element));var o=r,s=Be(n,o,i);a.rejected=a.rejected&&!!s&&s.dropzone===a.cur.dropzone&&s.element===a.cur.element,a.cur.dropzone=s&&s.dropzone,a.cur.element=s&&s.element,a.events=Ve(n,0,o)}}var We={id:`actions/drop`,install:function(e){var t=e.actions,n=e.interactStatic,r=e.Interactable,i=e.defaults;e.usePlugin(E),r.prototype.dropzone=function(e){return function(e,t){if(S.object(t)){if(e.options.drop.enabled=!1!==t.enabled,t.listeners){var n=he(t.listeners),r=Object.keys(n).reduce((function(e,t){return e[/^(enter|leave)/.test(t)?`drag${t}`:/^(activate|deactivate|move)/.test(t)?`drop${t}`:t]=n[t],e}),{}),i=e.options.drop.listeners;i&&e.off(i),e.on(r),e.options.drop.listeners=r}return S.func(t.ondrop)&&e.on(`drop`,t.ondrop),S.func(t.ondropactivate)&&e.on(`dropactivate`,t.ondropactivate),S.func(t.ondropdeactivate)&&e.on(`dropdeactivate`,t.ondropdeactivate),S.func(t.ondragenter)&&e.on(`dragenter`,t.ondragenter),S.func(t.ondragleave)&&e.on(`dragleave`,t.ondragleave),S.func(t.ondropmove)&&e.on(`dropmove`,t.ondropmove),/^(pointer|center)$/.test(t.overlap)?e.options.drop.overlap=t.overlap:S.number(t.overlap)&&(e.options.drop.overlap=Math.max(Math.min(1,t.overlap),0)),`accept`in t&&(e.options.drop.accept=t.accept),`checker`in t&&(e.options.drop.checker=t.checker),e}return S.bool(t)?(e.options.drop.enabled=t,e):e.options.drop}(this,e)},r.prototype.dropCheck=function(e,t,n,r,i,a){return function(e,t,n,r,i,a,o){var s=!1;if(!(o||=e.getRect(a)))return!!e.options.drop.checker&&e.options.drop.checker(t,n,s,e,a,r,i);var c=e.options.drop.overlap;if(c===`pointer`){var l=F(r,i,`drag`),u=Se(t);u.x+=l.x,u.y+=l.y;var d=u.x>o.left&&u.x<o.right,f=u.y>o.top&&u.y<o.bottom;s=d&&f}var p=r.getRect(i);if(p&&c===`center`){var m=p.left+p.width/2,h=p.top+p.height/2;s=m>=o.left&&m<=o.right&&h>=o.top&&h<=o.bottom}return p&&S.number(c)&&(s=Math.max(0,Math.min(o.right,p.right)-Math.max(o.left,p.left))*Math.max(0,Math.min(o.bottom,p.bottom)-Math.max(o.top,p.top))/(p.width*p.height)>=c),e.options.drop.checker&&(s=e.options.drop.checker(t,n,s,e,a,r,i)),s}(this,e,t,n,r,i,a)},n.dynamicDrop=function(t){return S.bool(t)?(e.dynamicDrop=t,n):e.dynamicDrop},le(t.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),t.methodDict.drop=`dropzone`,e.dynamicDrop=!1,i.actions.drop=We.defaults},listeners:{"interactions:before-action-start":function(e){var t=e.interaction;t.prepared.name===`drag`&&(t.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(e,t){var n=e.interaction,r=(e.event,e.iEvent);if(n.prepared.name===`drag`){var i=n.dropState;i.activeDrops=[],i.events={},i.activeDrops=ze(t,n.element),i.events=Ve(n,0,r),i.events.activate&&(Re(i.activeDrops,i.events.activate),t.fire(`actions/drop:start`,{interaction:n,dragEvent:r}))}},"interactions:action-move":Ue,"interactions:after-action-move":function(e,t){var n=e.interaction,r=e.iEvent;if(n.prepared.name===`drag`){var i=n.dropState;He(n,i.events),t.fire(`actions/drop:move`,{interaction:n,dragEvent:r}),i.events={}}},"interactions:action-end":function(e,t){if(e.interaction.prepared.name===`drag`){var n=e.interaction,r=e.iEvent;Ue(e,t),He(n,n.dropState.events),t.fire(`actions/drop:end`,{interaction:n,dragEvent:r})}},"interactions:stop":function(e){var t=e.interaction;if(t.prepared.name===`drag`){var n=t.dropState;n&&(n.activeDrops=null,n.events=null,n.cur.dropzone=null,n.cur.element=null,n.prev.dropzone=null,n.prev.element=null,n.rejected=!1)}}},getActiveDrops:ze,getDrop:Be,getDropEvents:Ve,fireDropEvents:He,filterEventType:function(e){return e.search(`drag`)===0||e.search(`drop`)===0},defaults:{enabled:!1,accept:null,overlap:`pointer`}},Ge=We;function Ke(e){var t=e.interaction,n=e.iEvent,r=e.phase;if(t.prepared.name===`gesture`){var i=t.pointers.map((function(e){return e.pointer})),a=r===`start`,o=r===`end`,s=t.interactable.options.deltaSource;if(n.touches=[i[0],i[1]],a)n.distance=Oe(i,s),n.box=De(i),n.scale=1,n.ds=0,n.angle=ke(i,s),n.da=0,t.gesture.startDistance=n.distance,t.gesture.startAngle=n.angle;else if(o||t.pointers.length<2){var c=t.prevEvent;n.distance=c.distance,n.box=c.box,n.scale=c.scale,n.ds=0,n.angle=c.angle,n.da=0}else n.distance=Oe(i,s),n.box=De(i),n.scale=n.distance/t.gesture.startDistance,n.angle=ke(i,s),n.ds=n.scale-t.gesture.scale,n.da=n.angle-t.gesture.angle;t.gesture.distance=n.distance,t.gesture.angle=n.angle,S.number(n.scale)&&n.scale!==1/0&&!isNaN(n.scale)&&(t.gesture.scale=n.scale)}}var qe={id:`actions/gesture`,before:[`actions/drag`,`actions/resize`],install:function(e){var t=e.actions,n=e.Interactable,r=e.defaults;n.prototype.gesturable=function(e){return S.object(e)?(this.options.gesture.enabled=!1!==e.enabled,this.setPerAction(`gesture`,e),this.setOnEvents(`gesture`,e),this):S.bool(e)?(this.options.gesture.enabled=e,this):this.options.gesture},t.map.gesture=qe,t.methodDict.gesture=`gesturable`,r.actions.gesture=qe.defaults},listeners:{"interactions:action-start":Ke,"interactions:action-move":Ke,"interactions:action-end":Ke,"interactions:new":function(e){e.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(e){if(!(e.interaction.pointers.length<2)){var t=e.interactable.options.gesture;if(t&&t.enabled)return e.action={name:`gesture`},!1}}},defaults:{},getCursor:function(){return``},filterEventType:function(e){return e.search(`gesture`)===0}},Je=qe;function Ye(e,t,n,r,i,a,o){if(!t)return!1;if(!0===t){var s=S.number(a.width)?a.width:a.right-a.left,c=S.number(a.height)?a.height:a.bottom-a.top;if(o=Math.min(o,Math.abs((e===`left`||e===`right`?s:c)/2)),s<0&&(e===`left`?e=`right`:e===`right`&&(e=`left`)),c<0&&(e===`top`?e=`bottom`:e===`bottom`&&(e=`top`)),e===`left`){var l=s>=0?a.left:a.right;return n.x<l+o}if(e===`top`){var u=c>=0?a.top:a.bottom;return n.y<u+o}if(e===`right`)return n.x>(s>=0?a.right:a.left)-o;if(e===`bottom`)return n.y>(c>=0?a.bottom:a.top)-o}return!!S.element(r)&&(S.element(t)?t===r:N(r,t,i))}function Xe(e){var t=e.iEvent,n=e.interaction;if(n.prepared.name===`resize`&&n.resizeAxes){var r=t;n.interactable.options.resize.square?(n.resizeAxes===`y`?r.delta.x=r.delta.y:r.delta.y=r.delta.x,r.axes=`xy`):(r.axes=n.resizeAxes,n.resizeAxes===`x`?r.delta.y=0:n.resizeAxes===`y`&&(r.delta.x=0))}}var Ze,Qe,$e={id:`actions/resize`,before:[`actions/drag`],install:function(e){var t=e.actions,n=e.browser,r=e.Interactable,i=e.defaults;$e.cursors=function(e){return e.isIe9?{x:`e-resize`,y:`s-resize`,xy:`se-resize`,top:`n-resize`,left:`w-resize`,bottom:`s-resize`,right:`e-resize`,topleft:`se-resize`,bottomright:`se-resize`,topright:`ne-resize`,bottomleft:`ne-resize`}:{x:`ew-resize`,y:`ns-resize`,xy:`nwse-resize`,top:`ns-resize`,left:`ew-resize`,bottom:`ns-resize`,right:`ew-resize`,topleft:`nwse-resize`,bottomright:`nwse-resize`,topright:`nesw-resize`,bottomleft:`nesw-resize`}}(n),$e.defaultMargin=n.supportsTouch||n.supportsPointerEvent?20:10,r.prototype.resizable=function(t){return function(e,t,n){return S.object(t)?(e.options.resize.enabled=!1!==t.enabled,e.setPerAction(`resize`,t),e.setOnEvents(`resize`,t),S.string(t.axis)&&/^x$|^y$|^xy$/.test(t.axis)?e.options.resize.axis=t.axis:t.axis===null&&(e.options.resize.axis=n.defaults.actions.resize.axis),S.bool(t.preserveAspectRatio)?e.options.resize.preserveAspectRatio=t.preserveAspectRatio:S.bool(t.square)&&(e.options.resize.square=t.square),e):S.bool(t)?(e.options.resize.enabled=t,e):e.options.resize}(this,t,e)},t.map.resize=$e,t.methodDict.resize=`resizable`,i.actions.resize=$e.defaults},listeners:{"interactions:new":function(e){e.interaction.resizeAxes=`xy`},"interactions:action-start":function(e){(function(e){var t=e.iEvent,n=e.interaction;if(n.prepared.name===`resize`&&n.prepared.edges){var r=t,i=n.rect;n._rects={start:le({},i),corrected:le({},i),previous:le({},i),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},r.edges=n.prepared.edges,r.rect=n._rects.corrected,r.deltaRect=n._rects.delta}})(e),Xe(e)},"interactions:action-move":function(e){(function(e){var t=e.iEvent,n=e.interaction;if(n.prepared.name===`resize`&&n.prepared.edges){var r=t,i=n.interactable.options.resize.invert,a=i===`reposition`||i===`negate`,o=n.rect,s=n._rects,c=s.start,l=s.corrected,u=s.delta,d=s.previous;if(le(d,l),a){if(le(l,o),i===`reposition`){if(l.top>l.bottom){var f=l.top;l.top=l.bottom,l.bottom=f}if(l.left>l.right){var p=l.left;l.left=l.right,l.right=p}}}else l.top=Math.min(o.top,c.bottom),l.bottom=Math.max(o.bottom,c.top),l.left=Math.min(o.left,c.right),l.right=Math.max(o.right,c.left);for(var m in l.width=l.right-l.left,l.height=l.bottom-l.top,l)u[m]=l[m]-d[m];r.edges=n.prepared.edges,r.rect=l,r.deltaRect=u}})(e),Xe(e)},"interactions:action-end":function(e){var t=e.iEvent,n=e.interaction;if(n.prepared.name===`resize`&&n.prepared.edges){var r=t;r.edges=n.prepared.edges,r.rect=n._rects.corrected,r.deltaRect=n._rects.delta}},"auto-start:check":function(e){var t=e.interaction,n=e.interactable,r=e.element,i=e.rect,a=e.buttons;if(i){var o=le({},t.coords.cur.page),s=n.options.resize;if(s&&s.enabled&&(!t.pointerIsDown||!/mouse|pointer/.test(t.pointerType)||(a&s.mouseButtons)!=0)){if(S.object(s.edges)){var c={left:!1,right:!1,top:!1,bottom:!1};for(var l in c)c[l]=Ye(l,s.edges[l],o,t._latestPointer.eventTarget,r,i,s.margin||$e.defaultMargin);c.left=c.left&&!c.right,c.top=c.top&&!c.bottom,(c.left||c.right||c.top||c.bottom)&&(e.action={name:`resize`,edges:c})}else{var u=s.axis!==`y`&&o.x>i.right-$e.defaultMargin,d=s.axis!==`x`&&o.y>i.bottom-$e.defaultMargin;(u||d)&&(e.action={name:`resize`,axes:(u?`x`:``)+(d?`y`:``)})}return!e.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:`xy`,margin:NaN,edges:null,invert:`none`},cursors:null,getCursor:function(e){var t=e.edges,n=e.axis,r=e.name,i=$e.cursors,a=null;if(n)a=i[r+n];else if(t){for(var o=``,s=0,c=[`top`,`bottom`,`left`,`right`];s<c.length;s++){var l=c[s];t[l]&&(o+=l)}a=i[o]}return a},filterEventType:function(e){return e.search(`resize`)===0},defaultMargin:null},et=$e,tt={id:`actions`,install:function(e){e.usePlugin(Je),e.usePlugin(et),e.usePlugin(E),e.usePlugin(Ge)}},nt=0,rt={request:function(e){return Ze(e)},cancel:function(e){return Qe(e)},init:function(e){if(Ze=e.requestAnimationFrame,Qe=e.cancelAnimationFrame,!Ze)for(var t=[`ms`,`moz`,`webkit`,`o`],n=0;n<t.length;n++){var r=t[n];Ze=e[`${r}RequestAnimationFrame`],Qe=e[`${r}CancelAnimationFrame`]||e[`${r}CancelRequestAnimationFrame`]}Ze&&=Ze.bind(e),Qe&&=Qe.bind(e),Ze||(Ze=function(t){var n=Date.now(),r=Math.max(0,16-(n-nt)),i=e.setTimeout((function(){t(n+r)}),r);return nt=n+r,i},Qe=function(e){return clearTimeout(e)})}},it={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(e){it.isScrolling=!0,rt.cancel(it.i),e.autoScroll=it,it.interaction=e,it.prevTime=it.now(),it.i=rt.request(it.scroll)},stop:function(){it.isScrolling=!1,it.interaction&&(it.interaction.autoScroll=null),rt.cancel(it.i)},scroll:function(){var e=it.interaction,t=e.interactable,n=e.element,r=e.prepared.name,i=t.options[r].autoScroll,a=at(i.container,t,n),o=it.now(),s=(o-it.prevTime)/1e3,c=i.speed*s;if(c>=1){var l={x:it.x*c,y:it.y*c};if(l.x||l.y){var u=ot(a);S.window(a)?a.scrollBy(l.x,l.y):a&&(a.scrollLeft+=l.x,a.scrollTop+=l.y);var d=ot(a),f={x:d.x-u.x,y:d.y-u.y};(f.x||f.y)&&t.fire({type:`autoscroll`,target:n,interactable:t,delta:f,interaction:e,container:a})}it.prevTime=o}it.isScrolling&&(rt.cancel(it.i),it.i=rt.request(it.scroll))},check:function(e,t){return e.options[t].autoScroll?.enabled},onInteractionMove:function(e){var t=e.interaction,n=e.pointer;if(t.interacting()&&it.check(t.interactable,t.prepared.name)){if(t.simulation)it.x=it.y=0;else{var r,i,a,o,s=t.interactable,c=t.element,l=t.prepared.name,u=s.options[l].autoScroll,d=at(u.container,s,c);if(S.window(d))o=n.clientX<it.margin,r=n.clientY<it.margin,i=n.clientX>d.innerWidth-it.margin,a=n.clientY>d.innerHeight-it.margin;else{var f=ae(d);o=n.clientX<f.left+it.margin,r=n.clientY<f.top+it.margin,i=n.clientX>f.right-it.margin,a=n.clientY>f.bottom-it.margin}it.x=i?1:o?-1:0,it.y=a?1:r?-1:0,it.isScrolling||(it.margin=u.margin,it.speed=u.speed,it.start(t))}}}};function at(e,t,n){return(S.string(e)?ue(e,t,n):e)||y(n)}function ot(e){return S.window(e)&&(e=window.document.body),{x:e.scrollLeft,y:e.scrollTop}}var st={id:`auto-scroll`,install:function(e){var t=e.defaults,n=e.actions;e.autoScroll=it,it.now=function(){return e.now()},n.phaselessTypes.autoscroll=!0,t.perAction.autoScroll=it.defaults},listeners:{"interactions:new":function(e){e.interaction.autoScroll=null},"interactions:destroy":function(e){e.interaction.autoScroll=null,it.stop(),it.interaction&&=null},"interactions:stop":it.stop,"interactions:action-move":function(e){return it.onInteractionMove(e)}}};function ct(e,t){var n=!1;return function(){return n||=(_.console.warn(t),!0),e.apply(this,arguments)}}function lt(e,t){return e.name=t.name,e.axis=t.axis,e.edges=t.edges,e}function ut(e){return S.bool(e)?(this.options.styleCursor=e,this):e===null?(delete this.options.styleCursor,this):this.options.styleCursor}function dt(e){return S.func(e)?(this.options.actionChecker=e,this):e===null?(delete this.options.actionChecker,this):this.options.actionChecker}var ft={id:`auto-start/interactableMethods`,install:function(e){var t=e.Interactable;t.prototype.getAction=function(t,n,r,i){var a=function(e,t,n,r,i){var a={action:null,interactable:e,interaction:n,element:r,rect:e.getRect(r),buttons:t.buttons||{0:1,1:4,3:8,4:16}[t.button]};return i.fire(`auto-start:check`,a),a.action}(this,n,r,i,e);return this.options.actionChecker?this.options.actionChecker(t,n,a,this,i,r):a},t.prototype.ignoreFrom=ct((function(e){return this._backCompatOption(`ignoreFrom`,e)}),`Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue}).`),t.prototype.allowFrom=ct((function(e){return this._backCompatOption(`allowFrom`,e)}),`Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue}).`),t.prototype.actionChecker=dt,t.prototype.styleCursor=ut}};function pt(e,t,n,r,i){return t.testIgnoreAllow(t.options[e.name],n,r)&&t.options[e.name].enabled&&_t(t,n,e,i)?e:null}function mt(e,t,n,r,i,a,o){for(var s=0,c=r.length;s<c;s++){var l=r[s],u=i[s],d=l.getAction(t,n,e,u);if(d){var f=pt(d,l,u,a,o);if(f)return{action:f,interactable:l,element:u}}}return{action:null,interactable:null,element:null}}function ht(e,t,n,r,i){var a=[],o=[],s=r;function c(e){a.push(e),o.push(s)}for(;S.element(s);){a=[],o=[],i.interactables.forEachMatch(s,c);var l=mt(e,t,n,a,o,r,i);if(l.action&&!l.interactable.options[l.action.name].manualStart)return l;s=M(s)}return{action:null,interactable:null,element:null}}function gt(e,t,n){var r=t.action,i=t.interactable,a=t.element;r||={name:null},e.interactable=i,e.element=a,lt(e.prepared,r),e.rect=i&&r.name?i.getRect(a):null,R(e,n),n.fire(`autoStart:prepared`,{interaction:e})}function _t(e,t,n,r){var i=e.options,a=i[n.name].max,o=i[n.name].maxPerElement,s=r.autoStart.maxInteractions,c=0,l=0,u=0;if(!(a&&o&&s))return!1;for(var d=0,f=r.interactions.list;d<f.length;d++){var p=f[d],m=p.prepared.name;if(p.interacting()&&(++c>=s||p.interactable===e&&((l+=+(m===n.name))>=a||p.element===t&&(u++,m===n.name&&u>=o))))return!1}return s>0}function vt(e,t){return S.number(e)?(t.autoStart.maxInteractions=e,this):t.autoStart.maxInteractions}function yt(e,t,n){var r=n.autoStart.cursorElement;r&&r!==e&&(r.style.cursor=``),e.ownerDocument.documentElement.style.cursor=t,e.style.cursor=t,n.autoStart.cursorElement=t?e:null}function R(e,t){var n=e.interactable,r=e.element,i=e.prepared;if(e.pointerType===`mouse`&&n&&n.options.styleCursor){var a=``;if(i.name){var o=n.options[i.name].cursorChecker;a=S.func(o)?o(i,n,r,e._interacting):t.actions.map[i.name].getCursor(i)}yt(e.element,a||``,t)}else t.autoStart.cursorElement&&yt(t.autoStart.cursorElement,``,t)}var bt={id:`auto-start/base`,before:[`actions`],install:function(e){var t=e.interactStatic,n=e.defaults;e.usePlugin(ft),n.base.actionChecker=null,n.base.styleCursor=!0,le(n.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),t.maxInteractions=function(t){return vt(t,e)},e.autoStart={maxInteractions:1/0,withinInteractionLimit:_t,cursorElement:null}},listeners:{"interactions:down":function(e,t){var n=e.interaction,r=e.pointer,i=e.event,a=e.eventTarget;n.interacting()||gt(n,ht(n,r,i,a,t),t)},"interactions:move":function(e,t){(function(e,t){var n=e.interaction,r=e.pointer,i=e.event,a=e.eventTarget;n.pointerType!==`mouse`||n.pointerIsDown||n.interacting()||gt(n,ht(n,r,i,a,t),t)})(e,t),function(e,t){var n=e.interaction;if(n.pointerIsDown&&!n.interacting()&&n.pointerWasMoved&&n.prepared.name){t.fire(`autoStart:before-start`,e);var r=n.interactable,i=n.prepared.name;i&&r&&(r.options[i].manualStart||!_t(r,n.element,n.prepared,t)?n.stop():(n.start(n.prepared,r,n.element),R(n,t)))}}(e,t)},"interactions:stop":function(e,t){var n=e.interaction,r=n.interactable;r&&r.options.styleCursor&&yt(n.element,``,t)}},maxInteractions:vt,withinInteractionLimit:_t,validateAction:pt},z={id:`auto-start/dragAxis`,listeners:{"autoStart:before-start":function(e,t){var n=e.interaction,r=e.eventTarget,i=e.dx,a=e.dy;if(n.prepared.name===`drag`){var o=Math.abs(i),s=Math.abs(a),c=n.interactable.options.drag,l=c.startAxis,u=o>s?`x`:o<s?`y`:`xy`;if(n.prepared.axis=c.lockAxis===`start`?u[0]:c.lockAxis,u!==`xy`&&l!==`xy`&&l!==u){n.prepared.name=null;for(var d=r,f=function(e){if(e!==n.interactable){var i=n.interactable.options.drag;if(!i.manualStart&&e.testIgnoreAllow(i,d,r)){var a=e.getAction(n.downPointer,n.downEvent,n,d);if(a&&a.name===`drag`&&function(e,t){if(!t)return!1;var n=t.options.drag.startAxis;return e===`xy`||n===`xy`||n===e}(u,e)&&bt.validateAction(a,e,d,r,t))return e}}};S.element(d);){var p=t.interactables.forEachMatch(d,f);if(p){n.prepared.name=`drag`,n.interactable=p,n.element=d;break}d=M(d)}}}}}};function xt(e){var t=e.prepared&&e.prepared.name;if(!t)return null;var n=e.interactable.options;return n[t].hold||n[t].delay}var St={id:`auto-start/hold`,install:function(e){var t=e.defaults;e.usePlugin(bt),t.perAction.hold=0,t.perAction.delay=0},listeners:{"interactions:new":function(e){e.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(e){var t=e.interaction,n=xt(t);n>0&&(t.autoStartHoldTimer=setTimeout((function(){t.start(t.prepared,t.interactable,t.element)}),n))},"interactions:move":function(e){var t=e.interaction,n=e.duplicate;t.autoStartHoldTimer&&t.pointerWasMoved&&!n&&(clearTimeout(t.autoStartHoldTimer),t.autoStartHoldTimer=null)},"autoStart:before-start":function(e){var t=e.interaction;xt(t)>0&&(t.prepared.name=null)}},getHoldDuration:xt},Ct={id:`auto-start`,install:function(e){e.usePlugin(bt),e.usePlugin(St),e.usePlugin(z)}},wt=function(e){return/^(always|never|auto)$/.test(e)?(this.options.preventDefault=e,this):S.bool(e)?(this.options.preventDefault=e?`always`:`never`,this):this.options.preventDefault};function Tt(e){var t=e.interaction,n=e.event;t.interactable&&t.interactable.checkAndPreventDefault(n)}var B={id:`core/interactablePreventDefault`,install:function(e){var t=e.Interactable;t.prototype.preventDefault=wt,t.prototype.checkAndPreventDefault=function(t){return function(e,t,n){var r=e.options.preventDefault;if(r!==`never`){if(r!==`always`){if(t.events.supportsPassive&&/^touch(start|move)$/.test(n.type)){var i=y(n.target).document,a=t.getDocOptions(i);if(!a||!a.events||!1!==a.events.passive)return}/^(mouse|pointer|touch)*(down|start)/i.test(n.type)||S.element(n.target)&&ne(n.target,`input,select,textarea,[contenteditable=true],[contenteditable=true] *`)||n.preventDefault()}else n.preventDefault()}}(this,e,t)},e.interactions.docEvents.push({type:`dragstart`,listener:function(t){for(var n=0,r=e.interactions.list;n<r.length;n++){var i=r[n];if(i.element&&(i.element===t.target||ee(i.element,t.target)))return void i.interactable.checkAndPreventDefault(t)}}})},listeners:[`down`,`move`,`up`,`cancel`].reduce((function(e,t){return e[`interactions:${t}`]=Tt,e}),{})};function Et(e,t){if(t.phaselessTypes[e])return!0;for(var n in t.map)if(e.indexOf(n)===0&&e.substr(n.length)in t.phases)return!0;return!1}function Dt(e){var t={};for(var n in e){var r=e[n];t[n]=S.plainObject(r)?Dt(r):S.array(r)?Pe(r):r}return t}var Ot=function(){function e(t){i(this,e),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=t,this.result=kt(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return o(e,[{key:`start`,value:function(e,t){var n,r,i=e.phase,a=this.interaction,o=function(e){var t=e.interactable.options[e.prepared.name],n=t.modifiers;return n&&n.length?n:[`snap`,`snapSize`,`snapEdges`,`restrict`,`restrictEdges`,`restrictSize`].map((function(e){var n=t[e];return n&&n.enabled&&{options:n,methods:n._methods}})).filter((function(e){return!!e}))}(a);this.prepareStates(o),this.startEdges=le({},a.edges),this.edges=le({},this.startEdges),this.startOffset=(n=a.rect,r=t,n?{left:r.x-n.left,top:r.y-n.top,right:n.right-r.x,bottom:n.bottom-r.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var s=this.fillArg({phase:i,pageCoords:t,preEnd:!1});return this.result=kt(),this.startAll(s),this.result=this.setAll(s)}},{key:`fillArg`,value:function(e){var t=this.interaction;return e.interaction=t,e.interactable=t.interactable,e.element=t.element,e.rect||=t.rect,e.edges||=this.startEdges,e.startOffset=this.startOffset,e}},{key:`startAll`,value:function(e){for(var t=0,n=this.states;t<n.length;t++){var r=n[t];r.methods.start&&(e.state=r,r.methods.start(e))}}},{key:`setAll`,value:function(e){var t=e.phase,n=e.preEnd,r=e.skipModifiers,i=e.rect,a=e.edges;e.coords=le({},e.pageCoords),e.rect=le({},i),e.edges=le({},a);for(var o=r?this.states.slice(r):this.states,s=kt(e.coords,e.rect),c=0;c<o.length;c++){var l,u=o[c],d=u.options,f=le({},e.coords),p=null;(l=u.methods)!=null&&l.set&&this.shouldDo(d,n,t)&&(e.state=u,p=u.methods.set(e),me(e.edges,e.rect,{x:e.coords.x-f.x,y:e.coords.y-f.y})),s.eventProps.push(p)}le(this.edges,e.edges),s.delta.x=e.coords.x-e.pageCoords.x,s.delta.y=e.coords.y-e.pageCoords.y,s.rectDelta.left=e.rect.left-i.left,s.rectDelta.right=e.rect.right-i.right,s.rectDelta.top=e.rect.top-i.top,s.rectDelta.bottom=e.rect.bottom-i.bottom;var m=this.result.coords,h=this.result.rect;return m&&h&&(s.changed=s.rect.left!==h.left||s.rect.right!==h.right||s.rect.top!==h.top||s.rect.bottom!==h.bottom||m.x!==s.coords.x||m.y!==s.coords.y),s}},{key:`applyToInteraction`,value:function(e){var t=this.interaction,n=e.phase,r=t.coords.cur,i=t.coords.start,a=this.result,o=this.startDelta,s=a.delta;n===`start`&&le(this.startDelta,a.delta);for(var c=0,l=[[i,o],[r,s]];c<l.length;c++){var u=l[c],d=u[0],f=u[1];d.page.x+=f.x,d.page.y+=f.y,d.client.x+=f.x,d.client.y+=f.y}var p=this.result.rectDelta,m=e.rect||t.rect;m.left+=p.left,m.right+=p.right,m.top+=p.top,m.bottom+=p.bottom,m.width=m.right-m.left,m.height=m.bottom-m.top}},{key:`setAndApply`,value:function(e){var t=this.interaction,n=e.phase,r=e.preEnd,i=e.skipModifiers,a=this.setAll(this.fillArg({preEnd:r,phase:n,pageCoords:e.modifiedCoords||t.coords.cur.page}));if(this.result=a,!a.changed&&(!i||i<this.states.length)&&t.interacting())return!1;if(e.modifiedCoords){var o=t.coords.cur.page,s={x:e.modifiedCoords.x-o.x,y:e.modifiedCoords.y-o.y};a.coords.x+=s.x,a.coords.y+=s.y,a.delta.x+=s.x,a.delta.y+=s.y}this.applyToInteraction(e)}},{key:`beforeEnd`,value:function(e){var t=e.interaction,n=e.event,r=this.states;if(r&&r.length){for(var i=!1,a=0;a<r.length;a++){var o=r[a];e.state=o;var s=o.options,c=o.methods,l=c.beforeEnd&&c.beforeEnd(e);if(l)return this.endResult=l,!1;i||=!i&&this.shouldDo(s,!0,e.phase,!0)}i&&t.move({event:n,preEnd:!0})}}},{key:`stop`,value:function(e){var t=e.interaction;if(this.states&&this.states.length){var n=le({states:this.states,interactable:t.interactable,element:t.element,rect:null},e);this.fillArg(n);for(var r=0,i=this.states;r<i.length;r++){var a=i[r];n.state=a,a.methods.stop&&a.methods.stop(n)}this.states=null,this.endResult=null}}},{key:`prepareStates`,value:function(e){this.states=[];for(var t=0;t<e.length;t++){var n=e[t],r=n.options,i=n.methods,a=n.name;this.states.push({options:r,methods:i,index:t,name:a})}return this.states}},{key:`restoreInteractionCoords`,value:function(e){var t=e.interaction,n=t.coords,r=t.rect,i=t.modification;if(i.result){for(var a=i.startDelta,o=i.result,s=o.delta,c=o.rectDelta,l=0,u=[[n.start,a],[n.cur,s]];l<u.length;l++){var d=u[l],f=d[0],p=d[1];f.page.x-=p.x,f.page.y-=p.y,f.client.x-=p.x,f.client.y-=p.y}r.left-=c.left,r.right-=c.right,r.top-=c.top,r.bottom-=c.bottom}}},{key:`shouldDo`,value:function(e,t,n,r){return!(!e||!1===e.enabled||r&&!e.endOnly||e.endOnly&&!t||n===`start`&&!e.setStart)}},{key:`copyFrom`,value:function(e){this.startOffset=e.startOffset,this.startDelta=e.startDelta,this.startEdges=e.startEdges,this.edges=e.edges,this.states=e.states.map((function(e){return Dt(e)})),this.result=kt(le({},e.result.coords),le({},e.result.rect))}},{key:`destroy`,value:function(){for(var e in this)this[e]=null}}]),e}();function kt(e,t){return{rect:t,coords:e,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function At(e,t){var n=e.defaults,r={start:e.start,set:e.set,beforeEnd:e.beforeEnd,stop:e.stop},i=function(e){var i=e||{};for(var a in i.enabled=!1!==i.enabled,n)a in i||(i[a]=n[a]);var o={options:i,methods:r,name:t,enable:function(){return i.enabled=!0,o},disable:function(){return i.enabled=!1,o}};return o};return t&&typeof t==`string`&&(i._defaults=n,i._methods=r),i}function jt(e){var t=e.iEvent,n=e.interaction.modification.result;n&&(t.modifiers=n.eventProps)}var Mt={id:`modifiers/base`,before:[`actions`],install:function(e){e.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(e){var t=e.interaction;t.modification=new Ot(t)},"interactions:before-action-start":function(e){var t=e.interaction,n=e.interaction.modification;n.start(e,t.coords.start.page),t.edges=n.edges,n.applyToInteraction(e)},"interactions:before-action-move":function(e){var t=e.interaction,n=t.modification,r=n.setAndApply(e);return t.edges=n.edges,r},"interactions:before-action-end":function(e){var t=e.interaction,n=t.modification,r=n.beforeEnd(e);return t.edges=n.startEdges,r},"interactions:action-start":jt,"interactions:action-move":jt,"interactions:action-end":jt,"interactions:after-action-start":function(e){return e.interaction.modification.restoreInteractionCoords(e)},"interactions:after-action-move":function(e){return e.interaction.modification.restoreInteractionCoords(e)},"interactions:stop":function(e){return e.interaction.modification.stop(e)}}},Nt={base:{preventDefault:`auto`,deltaSource:`page`},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Pt=function(e){c(n,e);var t=f(n);function n(e,r,a,o,s,c,l){var u;i(this,n),(u=t.call(this,e)).relatedTarget=null,u.screenX=void 0,u.screenY=void 0,u.button=void 0,u.buttons=void 0,u.ctrlKey=void 0,u.shiftKey=void 0,u.altKey=void 0,u.metaKey=void 0,u.page=void 0,u.client=void 0,u.delta=void 0,u.rect=void 0,u.x0=void 0,u.y0=void 0,u.t0=void 0,u.dt=void 0,u.duration=void 0,u.clientX0=void 0,u.clientY0=void 0,u.velocity=void 0,u.speed=void 0,u.swipe=void 0,u.axes=void 0,u.preEnd=void 0,s||=e.element;var f=e.interactable,p=(f&&f.options||Nt).deltaSource,m=F(f,s,a),h=o===`start`,g=o===`end`,_=h?d(u):e.prevEvent,v=h?e.coords.start:g?{page:_.page,client:_.client,timeStamp:e.coords.cur.timeStamp}:e.coords.cur;return u.page=le({},v.page),u.client=le({},v.client),u.rect=le({},e.rect),u.timeStamp=v.timeStamp,g||(u.page.x-=m.x,u.page.y-=m.y,u.client.x-=m.x,u.client.y-=m.y),u.ctrlKey=r.ctrlKey,u.altKey=r.altKey,u.shiftKey=r.shiftKey,u.metaKey=r.metaKey,u.button=r.button,u.buttons=r.buttons,u.target=s,u.currentTarget=s,u.preEnd=c,u.type=l||a+(o||``),u.interactable=f,u.t0=h?e.pointers[e.pointers.length-1].downTime:_.t0,u.x0=e.coords.start.page.x-m.x,u.y0=e.coords.start.page.y-m.y,u.clientX0=e.coords.start.client.x-m.x,u.clientY0=e.coords.start.client.y-m.y,u.delta=h||g?{x:0,y:0}:{x:u[p].x-_[p].x,y:u[p].y-_[p].y},u.dt=e.coords.delta.timeStamp,u.duration=u.timeStamp-u.t0,u.velocity=le({},e.coords.velocity[p]),u.speed=_e(u.velocity.x,u.velocity.y),u.swipe=g||o===`inertiastart`?u.getSwipe():null,u}return o(n,[{key:`getSwipe`,value:function(){var e=this._interaction;if(e.prevEvent.speed<600||this.timeStamp-e.prevEvent.timeStamp>150)return null;var t=180*Math.atan2(e.prevEvent.velocityY,e.prevEvent.velocityX)/Math.PI;t<0&&(t+=360);var n=112.5<=t&&t<247.5,r=202.5<=t&&t<337.5;return{up:r,down:!r&&22.5<=t&&t<157.5,left:n,right:!n&&(292.5<=t||t<67.5),angle:t,speed:e.prevEvent.speed,velocity:{x:e.prevEvent.velocityX,y:e.prevEvent.velocityY}}}},{key:`preventDefault`,value:function(){}},{key:`stopImmediatePropagation`,value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:`stopPropagation`,value:function(){this.propagationStopped=!0}}]),n}(Me);Object.defineProperties(Pt.prototype,{pageX:{get:function(){return this.page.x},set:function(e){this.page.x=e}},pageY:{get:function(){return this.page.y},set:function(e){this.page.y=e}},clientX:{get:function(){return this.client.x},set:function(e){this.client.x=e}},clientY:{get:function(){return this.client.y},set:function(e){this.client.y=e}},dx:{get:function(){return this.delta.x},set:function(e){this.delta.x=e}},dy:{get:function(){return this.delta.y},set:function(e){this.delta.y=e}},velocityX:{get:function(){return this.velocity.x},set:function(e){this.velocity.x=e}},velocityY:{get:function(){return this.velocity.y},set:function(e){this.velocity.y=e}}});var V=o((function e(t,n,r,a,o){i(this,e),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=t,this.pointer=n,this.event=r,this.downTime=a,this.downTarget=o})),Ft=function(e){return e.interactable=``,e.element=``,e.prepared=``,e.pointerIsDown=``,e.pointerWasMoved=``,e._proxy=``,e}({}),It=function(e){return e.start=``,e.move=``,e.end=``,e.stop=``,e.interacting=``,e}({}),H=0,U=function(){function e(t){var n=this,r=t.pointerType,a=t.scopeFire;i(this,e),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=ct((function(e){this.move(e)}),`The interaction.doMove() method has been renamed to interaction.move()`),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=H++,this._scopeFire=a,this.pointerType=r;var o=this;this._proxy={};var s=function(e){Object.defineProperty(n._proxy,e,{get:function(){return o[e]}})};for(var c in Ft)s(c);var l=function(e){Object.defineProperty(n._proxy,e,{value:function(){return o[e].apply(o,arguments)}})};for(var u in It)l(u);this._scopeFire(`interactions:new`,{interaction:this})}return o(e,[{key:`pointerMoveTolerance`,get:function(){return 1}},{key:`pointerDown`,value:function(e,t,n){var r=this.updatePointer(e,t,n,!0),i=this.pointers[r];this._scopeFire(`interactions:down`,{pointer:e,event:t,eventTarget:n,pointerIndex:r,pointerInfo:i,type:`down`,interaction:this})}},{key:`start`,value:function(e,t,n){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(e.name===`gesture`?2:1)||!t.options[e.name].enabled)&&(lt(this.prepared,e),this.interactable=t,this.element=n,this.rect=t.getRect(n),this.edges=this.prepared.edges?le({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:`start`})&&!this._stopped,this._interacting)}},{key:`pointerMove`,value:function(e,t,n){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(e,t,n,!1);var r,i,a=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(r=this.coords.cur.client.x-this.coords.start.client.x,i=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=_e(r,i)>this.pointerMoveTolerance);var o,s,c,l=this.getPointerIndex(e),u={pointer:e,pointerIndex:l,pointerInfo:this.pointers[l],event:t,type:`move`,eventTarget:n,dx:r,dy:i,duplicate:a,interaction:this};a||(o=this.coords.velocity,s=this.coords.delta,c=Math.max(s.timeStamp/1e3,.001),o.page.x=s.page.x/c,o.page.y=s.page.y/c,o.client.x=s.client.x/c,o.client.y=s.client.y/c,o.timeStamp=c),this._scopeFire(`interactions:move`,u),a||this.simulation||(this.interacting()&&(u.type=null,this.move(u)),this.pointerWasMoved&&ye(this.coords.prev,this.coords.cur))}},{key:`move`,value:function(e){e&&e.event||L(this.coords.delta),(e=le({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},e||{})).phase=`move`,this._doPhase(e)}},{key:`pointerUp`,value:function(e,t,n,r){var i=this.getPointerIndex(e);i===-1&&(i=this.updatePointer(e,t,n,!1));var a=/cancel$/i.test(t.type)?`cancel`:`up`;this._scopeFire(`interactions:${a}`,{pointer:e,pointerIndex:i,pointerInfo:this.pointers[i],event:t,eventTarget:n,type:a,curEventTarget:r,interaction:this}),this.simulation||this.end(t),this.removePointer(e,t)}},{key:`documentBlur`,value:function(e){this.end(e),this._scopeFire(`interactions:blur`,{event:e,type:`blur`,interaction:this})}},{key:`end`,value:function(e){var t;this._ending=!0,e||=this._latestPointer.event,this.interacting()&&(t=this._doPhase({event:e,interaction:this,phase:`end`})),this._ending=!1,!0===t&&this.stop()}},{key:`currentAction`,value:function(){return this._interacting?this.prepared.name:null}},{key:`interacting`,value:function(){return this._interacting}},{key:`stop`,value:function(){this._scopeFire(`interactions:stop`,{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:`getPointerIndex`,value:function(e){var t=Ce(e);return this.pointerType===`mouse`||this.pointerType===`pen`?this.pointers.length-1:Fe(this.pointers,(function(e){return e.id===t}))}},{key:`getPointerInfo`,value:function(e){return this.pointers[this.getPointerIndex(e)]}},{key:`updatePointer`,value:function(e,t,n,r){var i,a,o,s=Ce(e),c=this.getPointerIndex(e),l=this.pointers[c];return r=!1!==r&&(r||/(down|start)$/i.test(t.type)),l?l.pointer=e:(l=new V(s,e,t,null,null),c=this.pointers.length,this.pointers.push(l)),we(this.coords.cur,this.pointers.map((function(e){return e.pointer})),this._now()),i=this.coords.delta,a=this.coords.prev,o=this.coords.cur,i.page.x=o.page.x-a.page.x,i.page.y=o.page.y-a.page.y,i.client.x=o.client.x-a.client.x,i.client.y=o.client.y-a.client.y,i.timeStamp=o.timeStamp-a.timeStamp,r&&(this.pointerIsDown=!0,l.downTime=this.coords.cur.timeStamp,l.downTarget=n,ve(this.downPointer,e),this.interacting()||(ye(this.coords.start,this.coords.cur),ye(this.coords.prev,this.coords.cur),this.downEvent=t,this.pointerWasMoved=!1)),this._updateLatestPointer(e,t,n),this._scopeFire(`interactions:update-pointer`,{pointer:e,event:t,eventTarget:n,down:r,pointerInfo:l,pointerIndex:c,interaction:this}),c}},{key:`removePointer`,value:function(e,t){var n=this.getPointerIndex(e);if(n!==-1){var r=this.pointers[n];this._scopeFire(`interactions:remove-pointer`,{pointer:e,event:t,eventTarget:null,pointerIndex:n,pointerInfo:r,interaction:this}),this.pointers.splice(n,1),this.pointerIsDown=!1}}},{key:`_updateLatestPointer`,value:function(e,t,n){this._latestPointer.pointer=e,this._latestPointer.event=t,this._latestPointer.eventTarget=n}},{key:`destroy`,value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:`_createPreparedEvent`,value:function(e,t,n,r){return new Pt(this,e,this.prepared.name,t,this.element,n,r)}},{key:`_fireEvent`,value:function(e){var t;(t=this.interactable)==null||t.fire(e),(!this.prevEvent||e.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=e)}},{key:`_doPhase`,value:function(e){var t=e.event,n=e.phase,r=e.preEnd,i=e.type,a=this.rect;if(a&&n===`move`&&(me(this.edges,a,this.coords.delta[this.interactable.options.deltaSource]),a.width=a.right-a.left,a.height=a.bottom-a.top),!1===this._scopeFire(`interactions:before-action-${n}`,e))return!1;var o=e.iEvent=this._createPreparedEvent(t,n,r,i);return this._scopeFire(`interactions:action-${n}`,e),n===`start`&&(this.prevEvent=o),this._fireEvent(o),this._scopeFire(`interactions:after-action-${n}`,e),!0}},{key:`_now`,value:function(){return Date.now()}}]),e}();function Lt(e){Rt(e.interaction)}function Rt(e){if(!function(e){return!(!e.offset.pending.x&&!e.offset.pending.y)}(e))return!1;var t=e.offset.pending;return Bt(e.coords.cur,t),Bt(e.coords.delta,t),me(e.edges,e.rect,t),t.x=0,t.y=0,!0}function zt(e){var t=e.x,n=e.y;this.offset.pending.x+=t,this.offset.pending.y+=n,this.offset.total.x+=t,this.offset.total.y+=n}function Bt(e,t){var n=e.page,r=e.client,i=t.x,a=t.y;n.x+=i,n.y+=a,r.x+=i,r.y+=a}It.offsetBy=``;var Vt={id:`offset`,before:[`modifiers`,`pointer-events`,`actions`,`inertia`],install:function(e){e.Interaction.prototype.offsetBy=zt},listeners:{"interactions:new":function(e){e.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(e){return function(e){e.pointerIsDown&&(Bt(e.coords.cur,e.offset.total),e.offset.pending.x=0,e.offset.pending.y=0)}(e.interaction)},"interactions:before-action-start":Lt,"interactions:before-action-move":Lt,"interactions:before-action-end":function(e){var t=e.interaction;if(Rt(t))return t.move({offset:!0}),t.end(),!1},"interactions:stop":function(e){var t=e.interaction;t.offset.total.x=0,t.offset.total.y=0,t.offset.pending.x=0,t.offset.pending.y=0}}},Ht=function(){function e(t){i(this,e),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=t}return o(e,[{key:`start`,value:function(e){var t=this.interaction,n=Ut(t);if(!n||!n.enabled)return!1;var r=t.coords.velocity.client,i=_e(r.x,r.y),a=this.modification||=new Ot(t);if(a.copyFrom(t.modification),this.t0=t._now(),this.allowResume=n.allowResume,this.v0=i,this.currentOffset={x:0,y:0},this.startCoords=t.coords.cur.page,this.modifierArg=a.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:`inertiastart`}),this.t0-t.coords.cur.timeStamp<50&&i>n.minSpeed&&i>n.endSpeed)this.startInertia();else{if(a.result=a.setAll(this.modifierArg),!a.result.changed)return!1;this.startSmoothEnd()}return t.modification.result.rect=null,t.offsetBy(this.targetOffset),t._doPhase({interaction:t,event:e,phase:`inertiastart`}),t.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),t.modification.result.rect=null,this.active=!0,t.simulation=this,!0}},{key:`startInertia`,value:function(){var e=this,t=this.interaction.coords.velocity.client,n=Ut(this.interaction),r=n.resistance,i=-Math.log(n.endSpeed/this.v0)/r;this.targetOffset={x:(t.x-i)/r,y:(t.y-i)/r},this.te=i,this.lambda_v0=r/this.v0,this.one_ve_v0=1-n.endSpeed/this.v0;var a=this.modification,o=this.modifierArg;o.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},a.result=a.setAll(o),a.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+a.result.delta.x,y:this.targetOffset.y+a.result.delta.y}),this.onNextFrame((function(){return e.inertiaTick()}))}},{key:`startSmoothEnd`,value:function(){var e=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame((function(){return e.smoothEndTick()}))}},{key:`onNextFrame`,value:function(e){var t=this;this.timeout=rt.request((function(){t.active&&e()}))}},{key:`inertiaTick`,value:function(){var e,t,n,r,i,a,o,s=this,c=this.interaction,l=Ut(c).resistance,u=(c._now()-this.t0)/1e3;if(u<this.te){var d,f=1-(Math.exp(-l*u)-this.lambda_v0)/this.one_ve_v0;this.isModified?(e=0,t=0,n=this.targetOffset.x,r=this.targetOffset.y,i=this.modifiedOffset.x,a=this.modifiedOffset.y,d={x:Gt(o=f,e,n,i),y:Gt(o,t,r,a)}):d={x:this.targetOffset.x*f,y:this.targetOffset.y*f};var p={x:d.x-this.currentOffset.x,y:d.y-this.currentOffset.y};this.currentOffset.x+=p.x,this.currentOffset.y+=p.y,c.offsetBy(p),c.move(),this.onNextFrame((function(){return s.inertiaTick()}))}else c.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:`smoothEndTick`,value:function(){var e=this,t=this.interaction,n=t._now()-this.t0,r=Ut(t).smoothEndDuration;if(n<r){var i={x:Kt(n,0,this.targetOffset.x,r),y:Kt(n,0,this.targetOffset.y,r)},a={x:i.x-this.currentOffset.x,y:i.y-this.currentOffset.y};this.currentOffset.x+=a.x,this.currentOffset.y+=a.y,t.offsetBy(a),t.move({skipModifiers:this.modifierCount}),this.onNextFrame((function(){return e.smoothEndTick()}))}else t.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:`resume`,value:function(e){var t=e.pointer,n=e.event,r=e.eventTarget,i=this.interaction;i.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),i.updatePointer(t,n,r,!0),i._doPhase({interaction:i,event:n,phase:`resume`}),ye(i.coords.prev,i.coords.cur),this.stop()}},{key:`end`,value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:`stop`,value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,rt.cancel(this.timeout)}}]),e}();function Ut(e){var t=e.interactable,n=e.prepared;return t&&t.options&&n.name&&t.options[n.name].inertia}var Wt={id:`inertia`,before:[`modifiers`,`actions`],install:function(e){var t=e.defaults;e.usePlugin(Vt),e.usePlugin(Mt),e.actions.phases.inertiastart=!0,e.actions.phases.resume=!0,t.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(e){var t=e.interaction;t.inertia=new Ht(t)},"interactions:before-action-end":function(e){var t=e.interaction,n=e.event;return(!t._interacting||t.simulation||!t.inertia.start(n))&&null},"interactions:down":function(e){var t=e.interaction,n=e.eventTarget,r=t.inertia;if(r.active)for(var i=n;S.element(i);){if(i===t.element){r.resume(e);break}i=M(i)}},"interactions:stop":function(e){var t=e.interaction.inertia;t.active&&t.stop()},"interactions:before-action-resume":function(e){var t=e.interaction.modification;t.stop(e),t.start(e,e.interaction.coords.cur.page),t.applyToInteraction(e)},"interactions:before-action-inertiastart":function(e){return e.interaction.modification.setAndApply(e)},"interactions:action-resume":jt,"interactions:action-inertiastart":jt,"interactions:after-action-inertiastart":function(e){return e.interaction.modification.restoreInteractionCoords(e)},"interactions:after-action-resume":function(e){return e.interaction.modification.restoreInteractionCoords(e)}}};function Gt(e,t,n,r){var i=1-e;return i*i*t+2*i*e*n+e*e*r}function Kt(e,t,n,r){return-n*(e/=r)*(e-2)+t}var qt=Wt;function Jt(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e.immediatePropagationStopped)break;r(e)}}var Yt=function(){function e(t){i(this,e),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=le({},t||{})}return o(e,[{key:`fire`,value:function(e){var t,n=this.global;(t=this.types[e.type])&&Jt(e,t),!e.propagationStopped&&n&&(t=n[e.type])&&Jt(e,t)}},{key:`on`,value:function(e,t){var n=he(e,t);for(e in n)this.types[e]=Ne(this.types[e]||[],n[e])}},{key:`off`,value:function(e,t){var n=he(e,t);for(e in n){var r=this.types[e];if(r&&r.length)for(var i=0,a=n[e];i<a.length;i++){var o=a[i],s=r.indexOf(o);s!==-1&&r.splice(s,1)}}}},{key:`getRect`,value:function(e){return null}}]),e}(),Xt=function(){function e(t){i(this,e),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=t,ve(this,t)}return o(e,[{key:`preventOriginalDefault`,value:function(){this.originalEvent.preventDefault()}},{key:`stopPropagation`,value:function(){this.originalEvent.stopPropagation()}},{key:`stopImmediatePropagation`,value:function(){this.originalEvent.stopImmediatePropagation()}}]),e}();function Zt(e){return S.object(e)?{capture:!!e.capture,passive:!!e.passive}:{capture:!!e,passive:!1}}function Qt(e,t){return e===t||(typeof e==`boolean`?!!t.capture===e&&!!t.passive==0:!!e.capture==!!t.capture&&!!e.passive==!!t.passive)}var W={id:`events`,install:function(e){var t,n=[],r={},i=[],a={add:o,remove:s,addDelegate:function(e,t,n,a,s){var u=Zt(s);if(!r[n]){r[n]=[];for(var d=0;d<i.length;d++){var f=i[d];o(f,n,c),o(f,n,l,!0)}}var p=r[n],m=Ie(p,(function(n){return n.selector===e&&n.context===t}));m||(m={selector:e,context:t,listeners:[]},p.push(m)),m.listeners.push({func:a,options:u})},removeDelegate:function(e,t,n,i,a){var o,u=Zt(a),d=r[n],f=!1;if(d)for(o=d.length-1;o>=0;o--){var p=d[o];if(p.selector===e&&p.context===t){for(var m=p.listeners,h=m.length-1;h>=0;h--){var g=m[h];if(g.func===i&&Qt(g.options,u)){m.splice(h,1),m.length||(d.splice(o,1),s(t,n,c),s(t,n,l,!0)),f=!0;break}}if(f)break}}},delegateListener:c,delegateUseCapture:l,delegatedEvents:r,documents:i,targets:n,supportsOptions:!1,supportsPassive:!1};function o(e,t,r,i){if(e.addEventListener){var o=Zt(i),s=Ie(n,(function(t){return t.eventTarget===e}));s||(s={eventTarget:e,events:{}},n.push(s)),s.events[t]||(s.events[t]=[]),Ie(s.events[t],(function(e){return e.func===r&&Qt(e.options,o)}))||(e.addEventListener(t,r,a.supportsOptions?o:o.capture),s.events[t].push({func:r,options:o}))}}function s(e,t,r,i){if(e.addEventListener&&e.removeEventListener){var o=Fe(n,(function(t){return t.eventTarget===e})),c=n[o];if(c&&c.events){if(t!==`all`){var l=!1,u=c.events[t];if(u){if(r===`all`){for(var d=u.length-1;d>=0;d--){var f=u[d];s(e,t,f.func,f.options)}return}for(var p=Zt(i),m=0;m<u.length;m++){var h=u[m];if(h.func===r&&Qt(h.options,p)){e.removeEventListener(t,r,a.supportsOptions?p:p.capture),u.splice(m,1),u.length===0&&(delete c.events[t],l=!0);break}}}l&&!Object.keys(c.events).length&&n.splice(o,1)}else for(t in c.events)c.events.hasOwnProperty(t)&&s(e,t,`all`)}}}function c(e,t){for(var n=Zt(t),i=new Xt(e),a=r[e.type],o=je(e)[0],s=o;S.element(s);){for(var c=0;c<a.length;c++){var l=a[c],u=l.selector,d=l.context;if(ne(s,u)&&ee(d,o)&&ee(d,s)){var f=l.listeners;i.currentTarget=s;for(var p=0;p<f.length;p++){var m=f[p];Qt(m.options,n)&&m.func(i)}}}s=M(s)}}function l(e){return c(e,!0)}return(t=e.document)==null||t.createElement(`div`).addEventListener(`test`,null,{get capture(){return a.supportsOptions=!0},get passive(){return a.supportsPassive=!0}}),e.events=a,a}},$t={methodOrder:[`simulationResume`,`mouseOrPen`,`hasPointer`,`idle`],search:function(e){for(var t=0,n=$t.methodOrder;t<n.length;t++){var r=$t[n[t]](e);if(r)return r}return null},simulationResume:function(e){var t=e.pointerType,n=e.eventType,r=e.eventTarget,i=e.scope;if(!/down|start/i.test(n))return null;for(var a=0,o=i.interactions.list;a<o.length;a++){var s=o[a],c=r;if(s.simulation&&s.simulation.allowResume&&s.pointerType===t)for(;c;){if(c===s.element)return s;c=M(c)}}return null},mouseOrPen:function(e){var t,n=e.pointerId,r=e.pointerType,i=e.eventType,a=e.scope;if(r!==`mouse`&&r!==`pen`)return null;for(var o=0,s=a.interactions.list;o<s.length;o++){var c=s[o];if(c.pointerType===r){if(c.simulation&&!en(c,n))continue;if(c.interacting())return c;t||=c}}if(t)return t;for(var l=0,u=a.interactions.list;l<u.length;l++){var d=u[l];if(!(d.pointerType!==r||/down/i.test(i)&&d.simulation))return d}return null},hasPointer:function(e){for(var t=e.pointerId,n=0,r=e.scope.interactions.list;n<r.length;n++){var i=r[n];if(en(i,t))return i}return null},idle:function(e){for(var t=e.pointerType,n=0,r=e.scope.interactions.list;n<r.length;n++){var i=r[n];if(i.pointers.length===1){var a=i.interactable;if(a&&(!a.options.gesture||!a.options.gesture.enabled))continue}else if(i.pointers.length>=2)continue;if(!i.interacting()&&t===i.pointerType)return i}return null}};function en(e,t){return e.pointers.some((function(e){return e.id===t}))}var tn=$t,G=[`pointerDown`,`pointerMove`,`pointerUp`,`updatePointer`,`removePointer`,`windowBlur`];function nn(e,t){return function(n){var r=t.interactions.list,i=Ae(n),a=je(n),o=a[0],s=a[1],c=[];if(/^touch/.test(n.type)){t.prevTouchTime=t.now();for(var l=0,u=n.changedTouches;l<u.length;l++){var d=u[l],f={pointer:d,pointerId:Ce(d),pointerType:i,eventType:n.type,eventTarget:o,curEventTarget:s,scope:t},p=K(f);c.push([f.pointer,f.eventTarget,f.curEventTarget,p])}}else{var m=!1;if(!j.supportsPointerEvent&&/mouse/.test(n.type)){for(var h=0;h<r.length&&!m;h++)m=r[h].pointerType!==`mouse`&&r[h].pointerIsDown;m=m||t.now()-t.prevTouchTime<500||n.timeStamp===0}if(!m){var g={pointer:n,pointerId:Ce(n),pointerType:i,eventType:n.type,curEventTarget:s,eventTarget:o,scope:t},_=K(g);c.push([g.pointer,g.eventTarget,g.curEventTarget,_])}}for(var v=0;v<c.length;v++){var y=c[v],b=y[0],x=y[1],S=y[2];y[3][e](b,n,x,S)}}}function K(e){var t=e.pointerType,n=e.scope,r={interaction:tn.search(e),searchDetails:e};return n.fire(`interactions:find`,r),r.interaction||n.interactions.new({pointerType:t})}function rn(e,t){var n=e.doc,r=e.scope,i=e.options,a=r.interactions.docEvents,o=r.events,s=o[t];for(var c in r.browser.isIOS&&!i.events&&(i.events={passive:!1}),o.delegatedEvents)s(n,c,o.delegateListener),s(n,c,o.delegateUseCapture,!0);for(var l=i&&i.events,u=0;u<a.length;u++){var d=a[u];s(n,d.type,d.listener,l)}}var an={id:`core/interactions`,install:function(e){for(var t={},n=0;n<G.length;n++){var r=G[n];t[r]=nn(r,e)}var a,s=j.pEventTypes;function l(){for(var t=0,n=e.interactions.list;t<n.length;t++){var r=n[t];if(r.pointerIsDown&&r.pointerType===`touch`&&!r._interacting)for(var i=function(){var t=o[a];e.documents.some((function(e){return ee(e.doc,t.downTarget)}))||r.removePointer(t.pointer,t.event)},a=0,o=r.pointers;a<o.length;a++)i()}}(a=k.PointerEvent?[{type:s.down,listener:l},{type:s.down,listener:t.pointerDown},{type:s.move,listener:t.pointerMove},{type:s.up,listener:t.pointerUp},{type:s.cancel,listener:t.pointerUp}]:[{type:`mousedown`,listener:t.pointerDown},{type:`mousemove`,listener:t.pointerMove},{type:`mouseup`,listener:t.pointerUp},{type:`touchstart`,listener:l},{type:`touchstart`,listener:t.pointerDown},{type:`touchmove`,listener:t.pointerMove},{type:`touchend`,listener:t.pointerUp},{type:`touchcancel`,listener:t.pointerUp}]).push({type:`blur`,listener:function(t){for(var n=0,r=e.interactions.list;n<r.length;n++)r[n].documentBlur(t)}}),e.prevTouchTime=0,e.Interaction=function(t){c(r,t);var n=f(r);function r(){return i(this,r),n.apply(this,arguments)}return o(r,[{key:`pointerMoveTolerance`,get:function(){return e.interactions.pointerMoveTolerance},set:function(t){e.interactions.pointerMoveTolerance=t}},{key:`_now`,value:function(){return e.now()}}]),r}(U),e.interactions={list:[],new:function(t){t.scopeFire=function(t,n){return e.fire(t,n)};var n=new e.Interaction(t);return e.interactions.list.push(n),n},listeners:t,docEvents:a,pointerMoveTolerance:1},e.usePlugin(B)},listeners:{"scope:add-document":function(e){return rn(e,`add`)},"scope:remove-document":function(e){return rn(e,`remove`)},"interactable:unset":function(e,t){for(var n=e.interactable,r=t.interactions.list.length-1;r>=0;r--){var i=t.interactions.list[r];i.interactable===n&&(i.stop(),t.fire(`interactions:destroy`,{interaction:i}),i.destroy(),t.interactions.list.length>2&&t.interactions.list.splice(r,1))}}},onDocSignal:rn,doOnInteractions:nn,methodNames:G},q=function(e){return e[e.On=0]=`On`,e[e.Off=1]=`Off`,e}(q||{}),on=function(){function e(t,n,r,a){i(this,e),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new Yt,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=n.actions,this.target=t,this._context=n.context||r,this._win=y(ce(t)?this._context:t),this._doc=this._win.document,this._scopeEvents=a,this.set(n)}return o(e,[{key:`_defaults`,get:function(){return{base:{},perAction:{},actions:{}}}},{key:`setOnEvents`,value:function(e,t){return S.func(t.onstart)&&this.on(`${e}start`,t.onstart),S.func(t.onmove)&&this.on(`${e}move`,t.onmove),S.func(t.onend)&&this.on(`${e}end`,t.onend),S.func(t.oninertiastart)&&this.on(`${e}inertiastart`,t.oninertiastart),this}},{key:`updatePerActionListeners`,value:function(e,t,n){var r=this,i=this._actions.map[e]?.filterEventType,a=function(e){return(i==null||i(e))&&Et(e,r._actions)};(S.array(t)||S.object(t))&&this._onOff(q.Off,e,t,void 0,a),(S.array(n)||S.object(n))&&this._onOff(q.On,e,n,void 0,a)}},{key:`setPerAction`,value:function(e,t){var n=this._defaults;for(var r in t){var i=r,a=this.options[e],o=t[i];i===`listeners`&&this.updatePerActionListeners(e,a.listeners,o),S.array(o)?a[i]=Pe(o):S.plainObject(o)?(a[i]=le(a[i]||{},Dt(o)),S.object(n.perAction[i])&&`enabled`in n.perAction[i]&&(a[i].enabled=!1!==o.enabled)):S.bool(o)&&S.object(n.perAction[i])?a[i].enabled=o:a[i]=o}}},{key:`getRect`,value:function(e){return e||=S.element(this.target)?this.target:null,S.string(this.target)&&(e||=this._context.querySelector(this.target)),oe(e)}},{key:`rectChecker`,value:function(e){var t=this;return S.func(e)?(this.getRect=function(n){var r=le({},e.call(t,n));return`width`in r||(r.width=r.right-r.left,r.height=r.bottom-r.top),r},this):e===null?(delete this.getRect,this):this.getRect}},{key:`_backCompatOption`,value:function(e,t){if(ce(t)||S.object(t)){for(var n in this.options[e]=t,this._actions.map)this.options[n][e]=t;return this}return this.options[e]}},{key:`origin`,value:function(e){return this._backCompatOption(`origin`,e)}},{key:`deltaSource`,value:function(e){return e===`page`||e===`client`?(this.options.deltaSource=e,this):this.options.deltaSource}},{key:`getAllElements`,value:function(){var e=this.target;return S.string(e)?Array.from(this._context.querySelectorAll(e)):S.func(e)&&e.getAllElements?e.getAllElements():S.element(e)?[e]:[]}},{key:`context`,value:function(){return this._context}},{key:`inContext`,value:function(e){return this._context===e.ownerDocument||ee(this._context,e)}},{key:`testIgnoreAllow`,value:function(e,t,n){return!this.testIgnore(e.ignoreFrom,t,n)&&this.testAllow(e.allowFrom,t,n)}},{key:`testAllow`,value:function(e,t,n){return!e||!!S.element(n)&&(S.string(e)?N(n,e,t):!!S.element(e)&&ee(e,n))}},{key:`testIgnore`,value:function(e,t,n){return!(!e||!S.element(n))&&(S.string(e)?N(n,e,t):!!S.element(e)&&ee(e,n))}},{key:`fire`,value:function(e){return this.events.fire(e),this}},{key:`_onOff`,value:function(e,t,n,r,i){S.object(t)&&!S.array(t)&&(r=n,n=null);var a=he(t,n,i);for(var o in a){o===`wheel`&&(o=j.wheelEvent);for(var s=0,c=a[o];s<c.length;s++){var l=c[s];Et(o,this._actions)?this.events[e===q.On?`on`:`off`](o,l):S.string(this.target)?this._scopeEvents[e===q.On?`addDelegate`:`removeDelegate`](this.target,this._context,o,l,r):this._scopeEvents[e===q.On?`add`:`remove`](this.target,o,l,r)}}return this}},{key:`on`,value:function(e,t,n){return this._onOff(q.On,e,t,n)}},{key:`off`,value:function(e,t,n){return this._onOff(q.Off,e,t,n)}},{key:`set`,value:function(e){var t=this._defaults;for(var n in S.object(e)||(e={}),this.options=Dt(t.base),this._actions.methodDict){var r=n,i=this._actions.methodDict[r];this.options[r]={},this.setPerAction(r,le(le({},t.perAction),t.actions[r])),this[i](e[r])}for(var a in e)a===`getRect`?this.rectChecker(e.getRect):S.func(this[a])&&this[a](e[a]);return this}},{key:`unset`,value:function(){if(S.string(this.target))for(var e in this._scopeEvents.delegatedEvents)for(var t=this._scopeEvents.delegatedEvents[e],n=t.length-1;n>=0;n--){var r=t[n],i=r.selector,a=r.context,o=r.listeners;i===this.target&&a===this._context&&t.splice(n,1);for(var s=o.length-1;s>=0;s--)this._scopeEvents.removeDelegate(this.target,this._context,e,o[s][0],o[s][1])}else this._scopeEvents.remove(this.target,`all`)}}]),e}(),sn=function(){function e(t){var n=this;i(this,e),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=t,t.addListeners({"interactable:unset":function(e){var t=e.interactable,r=t.target,i=S.string(r)?n.selectorMap[r]:r[n.scope.id],a=Fe(i,(function(e){return e===t}));i.splice(a,1)}})}return o(e,[{key:`new`,value:function(e,t){t=le(t||{},{actions:this.scope.actions});var n=new this.scope.Interactable(e,t,this.scope.document,this.scope.events);return this.scope.addDocument(n._doc),this.list.push(n),S.string(e)?(this.selectorMap[e]||(this.selectorMap[e]=[]),this.selectorMap[e].push(n)):(n.target[this.scope.id]||Object.defineProperty(e,this.scope.id,{value:[],configurable:!0}),e[this.scope.id].push(n)),this.scope.fire(`interactable:new`,{target:e,options:t,interactable:n,win:this.scope._win}),n}},{key:`getExisting`,value:function(e,t){var n=t&&t.context||this.scope.document,r=S.string(e),i=r?this.selectorMap[e]:e[this.scope.id];if(i)return Ie(i,(function(t){return t._context===n&&(r||t.inContext(e))}))}},{key:`forEachMatch`,value:function(e,t){for(var n=0,r=this.list;n<r.length;n++){var i=r[n],a=void 0;if((S.string(i.target)?S.element(e)&&ne(e,i.target):e===i.target)&&i.inContext(e)&&(a=t(i)),a!==void 0)return a}}}]),e}(),cn=function(){function e(){var t=this;i(this,e),this.id=`__interact_scope_${Math.floor(100*Math.random())}`,this.isInitialized=!1,this.listenerMaps=[],this.browser=j,this.defaults=Dt(Nt),this.Eventable=Yt,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(e){var t=function t(n,r){var i=e.interactables.getExisting(n,r);return i||((i=e.interactables.new(n,r)).events.global=t.globalEvents),i};return t.getPointerAverage=Ee,t.getTouchBBox=De,t.getTouchDistance=Oe,t.getTouchAngle=ke,t.getElementRect=oe,t.getElementClientRect=ae,t.matchesSelector=ne,t.closest=te,t.globalEvents={},t.version=`1.10.28`,t.scope=e,t.use=function(e,t){return this.scope.usePlugin(e,t),this},t.isSet=function(e,t){return!!this.scope.interactables.get(e,t&&t.context)},t.on=ct((function(e,t,n){if(S.string(e)&&e.search(` `)!==-1&&(e=e.trim().split(/ +/)),S.array(e)){for(var r=0,i=e;r<i.length;r++){var a=i[r];this.on(a,t,n)}return this}if(S.object(e)){for(var o in e)this.on(o,e[o],t);return this}return Et(e,this.scope.actions)?this.globalEvents[e]?this.globalEvents[e].push(t):this.globalEvents[e]=[t]:this.scope.events.add(this.scope.document,e,t,{options:n}),this}),`The interact.on() method is being deprecated`),t.off=ct((function(e,t,n){if(S.string(e)&&e.search(` `)!==-1&&(e=e.trim().split(/ +/)),S.array(e)){for(var r=0,i=e;r<i.length;r++){var a=i[r];this.off(a,t,n)}return this}if(S.object(e)){for(var o in e)this.off(o,e[o],t);return this}var s;return Et(e,this.scope.actions)?e in this.globalEvents&&(s=this.globalEvents[e].indexOf(t))!==-1&&this.globalEvents[e].splice(s,1):this.scope.events.remove(this.scope.document,e,t,n),this}),`The interact.off() method is being deprecated`),t.debug=function(){return this.scope},t.supportsTouch=function(){return j.supportsTouch},t.supportsPointerEvent=function(){return j.supportsPointerEvent},t.stop=function(){for(var e=0,t=this.scope.interactions.list;e<t.length;e++)t[e].stop();return this},t.pointerMoveTolerance=function(e){return S.number(e)?(this.scope.interactions.pointerMoveTolerance=e,this):this.scope.interactions.pointerMoveTolerance},t.addDocument=function(e,t){this.scope.addDocument(e,t)},t.removeDocument=function(e){this.scope.removeDocument(e)},t}(this),this.InteractEvent=Pt,this.Interactable=void 0,this.interactables=new sn(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(e){return t.removeDocument(e.target)};var n=this;this.Interactable=function(e){c(r,e);var t=f(r);function r(){return i(this,r),t.apply(this,arguments)}return o(r,[{key:`_defaults`,get:function(){return n.defaults}},{key:`set`,value:function(e){return p(l(r.prototype),`set`,this).call(this,e),n.fire(`interactable:set`,{options:e,interactable:this}),this}},{key:`unset`,value:function(){p(l(r.prototype),`unset`,this).call(this);var e=n.interactables.list.indexOf(this);e<0||(n.interactables.list.splice(e,1),n.fire(`interactable:unset`,{interactable:this}))}}]),r}(on)}return o(e,[{key:`addListeners`,value:function(e,t){this.listenerMaps.push({id:t,map:e})}},{key:`fire`,value:function(e,t){for(var n=0,r=this.listenerMaps;n<r.length;n++){var i=r[n].map[e];if(i&&!1===i(t,this,e))return!1}}},{key:`init`,value:function(e){return this.isInitialized?this:function(e,t){return e.isInitialized=!0,S.window(t)&&v(t),k.init(t),j.init(t),rt.init(t),e.window=t,e.document=t.document,e.usePlugin(an),e.usePlugin(W),e}(this,e)}},{key:`pluginIsInstalled`,value:function(e){var t=e.id;return t?!!this._plugins.map[t]:this._plugins.list.indexOf(e)!==-1}},{key:`usePlugin`,value:function(e,t){if(!this.isInitialized||this.pluginIsInstalled(e))return this;if(e.id&&(this._plugins.map[e.id]=e),this._plugins.list.push(e),e.install&&e.install(this,t),e.listeners&&e.before){for(var n=0,r=this.listenerMaps.length,i=e.before.reduce((function(e,t){return e[t]=!0,e[ln(t)]=!0,e}),{});n<r;n++){var a=this.listenerMaps[n].id;if(a&&(i[a]||i[ln(a)]))break}this.listenerMaps.splice(n,0,{id:e.id,map:e.listeners})}else e.listeners&&this.listenerMaps.push({id:e.id,map:e.listeners});return this}},{key:`addDocument`,value:function(e,t){if(this.getDocIndex(e)!==-1)return!1;var n=y(e);t=t?le({},t):{},this.documents.push({doc:e,options:t}),this.events.documents.push(e),e!==this.document&&this.events.add(n,`unload`,this.onWindowUnload),this.fire(`scope:add-document`,{doc:e,window:n,scope:this,options:t})}},{key:`removeDocument`,value:function(e){var t=this.getDocIndex(e),n=y(e),r=this.documents[t].options;this.events.remove(n,`unload`,this.onWindowUnload),this.documents.splice(t,1),this.events.documents.splice(t,1),this.fire(`scope:remove-document`,{doc:e,window:n,scope:this,options:r})}},{key:`getDocIndex`,value:function(e){for(var t=0;t<this.documents.length;t++)if(this.documents[t].doc===e)return t;return-1}},{key:`getDocOptions`,value:function(e){var t=this.getDocIndex(e);return t===-1?null:this.documents[t].options}},{key:`now`,value:function(){return(this.window.Date||Date).now()}}]),e}();function ln(e){return e&&e.replace(/\/.*$/,``)}var un=new cn,dn=un.interactStatic,fn=typeof globalThis<`u`?globalThis:window;un.init(fn);var pn=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(e){var t=[[`x`,`y`],[`left`,`top`],[`right`,`bottom`],[`width`,`height`]].filter((function(t){var n=t[0],r=t[1];return n in e||r in e})),n=function(n,r){for(var i=e.range,a=e.limits,o=a===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:a,s=e.offset,c=s===void 0?{x:0,y:0}:s,l={range:i,grid:e,x:null,y:null},u=0;u<t.length;u++){var d=t[u],f=d[0],p=d[1],m=Math.round((n-c.x)/e[f]),h=Math.round((r-c.y)/e[p]);l[f]=Math.max(o.left,Math.min(o.right,m*e[f]+c.x)),l[p]=Math.max(o.top,Math.min(o.bottom,h*e[p]+c.y))}return l};return n.grid=e,n.coordFields=t,n}}),mn={id:`snappers`,install:function(e){var t=e.interactStatic;t.snappers=le(t.snappers||{},pn),t.createSnapGrid=t.snappers.grid}},hn={start:function(e){var t=e.state,r=e.rect,i=e.edges,a=e.pageCoords,o=t.options,s=o.ratio,c=o.enabled,l=t.options,u=l.equalDelta,d=l.modifiers;s===`preserve`&&(s=r.width/r.height),t.startCoords=le({},a),t.startRect=le({},r),t.ratio=s,t.equalDelta=u;var f=t.linkedEdges={top:i.top||i.left&&!i.bottom,left:i.left||i.top&&!i.right,bottom:i.bottom||i.right&&!i.top,right:i.right||i.bottom&&!i.left};if(t.xIsPrimaryAxis=!(!i.left&&!i.right),t.equalDelta){var p=(f.left?1:-1)*(f.top?1:-1);t.edgeSign={x:p,y:p}}else t.edgeSign={x:f.left?-1:1,y:f.top?-1:1};if(!1!==c&&le(i,f),d!=null&&d.length){var m=new Ot(e.interaction);m.copyFrom(e.interaction.modification),m.prepareStates(d),t.subModification=m,m.startAll(n({},e))}},set:function(e){var t=e.state,r=e.rect,i=e.coords,a=t.linkedEdges,o=le({},i),s=t.equalDelta?gn:_n;if(le(e.edges,a),s(t,t.xIsPrimaryAxis,i,r),!t.subModification)return null;var c=le({},r);me(a,c,{x:i.x-o.x,y:i.y-o.y});var l=t.subModification.setAll(n(n({},e),{},{rect:c,edges:a,pageCoords:i,prevCoords:i,prevRect:c})),u=l.delta;return l.changed&&(s(t,Math.abs(u.x)>Math.abs(u.y),l.coords,l.rect),le(i,l.coords)),l.eventProps},defaults:{ratio:`preserve`,equalDelta:!1,modifiers:[],enabled:!1}};function gn(e,t,n){var r=e.startCoords,i=e.edgeSign;t?n.y=r.y+(n.x-r.x)*i.y:n.x=r.x+(n.y-r.y)*i.x}function _n(e,t,n,r){var i=e.startRect,a=e.startCoords,o=e.ratio,s=e.edgeSign;if(t){var c=r.width/o;n.y=a.y+(c-i.height)*s.y}else{var l=r.height*o;n.x=a.x+(l-i.width)*s.x}}var vn=At(hn,`aspectRatio`),yn=function(){};yn._defaults={};var bn=yn;function xn(e,t,n){return S.func(e)?de(e,t.interactable,t.element,[n.x,n.y,t]):de(e,t.interactable,t.element)}var J={start:function(e){var t=e.rect,n=e.startOffset,r=e.state,i=e.interaction,a=e.pageCoords,o=r.options,s=o.elementRect,c=le({left:0,top:0,right:0,bottom:0},o.offset||{});if(t&&s){var l=xn(o.restriction,i,a);if(l){var u=l.right-l.left-t.width,d=l.bottom-l.top-t.height;u<0&&(c.left+=u,c.right+=u),d<0&&(c.top+=d,c.bottom+=d)}c.left+=n.left-t.width*s.left,c.top+=n.top-t.height*s.top,c.right+=n.right-t.width*(1-s.right),c.bottom+=n.bottom-t.height*(1-s.bottom)}r.offset=c},set:function(e){var t=e.coords,n=e.interaction,r=e.state,i=r.options,a=r.offset,o=xn(i.restriction,n,t);if(o){var s=function(e){return!e||`left`in e&&`top`in e||((e=le({},e)).left=e.x||0,e.top=e.y||0,e.right=e.right||e.left+e.width,e.bottom=e.bottom||e.top+e.height),e}(o);t.x=Math.max(Math.min(s.right-a.right,t.x),s.left+a.left),t.y=Math.max(Math.min(s.bottom-a.bottom,t.y),s.top+a.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},Sn=At(J,`restrict`),Cn={top:1/0,left:1/0,bottom:-1/0,right:-1/0},wn={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Tn(e,t){for(var n=0,r=[`top`,`left`,`bottom`,`right`];n<r.length;n++){var i=r[n];i in e||(e[i]=t[i])}return e}var En={noInner:Cn,noOuter:wn,start:function(e){var t,n=e.interaction,r=e.startOffset,i=e.state,a=i.options;a&&(t=fe(xn(a.offset,n,n.coords.start.page))),t||={x:0,y:0},i.offset={top:t.y+r.top,left:t.x+r.left,bottom:t.y-r.bottom,right:t.x-r.right}},set:function(e){var t=e.coords,n=e.edges,r=e.interaction,i=e.state,a=i.offset,o=i.options;if(n){var s=le({},t),c=xn(o.inner,r,s)||{},l=xn(o.outer,r,s)||{};Tn(c,Cn),Tn(l,wn),n.top?t.y=Math.min(Math.max(l.top+a.top,s.y),c.top+a.top):n.bottom&&(t.y=Math.max(Math.min(l.bottom+a.bottom,s.y),c.bottom+a.bottom)),n.left?t.x=Math.min(Math.max(l.left+a.left,s.x),c.left+a.left):n.right&&(t.x=Math.max(Math.min(l.right+a.right,s.x),c.right+a.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},Dn=At(En,`restrictEdges`),On=le({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(e){}},J.defaults),kn=At({start:J.start,set:J.set,defaults:On},`restrictRect`),Y={width:-1/0,height:-1/0},X={width:1/0,height:1/0},An=At({start:function(e){return En.start(e)},set:function(e){var t=e.interaction,n=e.state,r=e.rect,i=e.edges,a=n.options;if(i){var o=pe(xn(a.min,t,e.coords))||Y,s=pe(xn(a.max,t,e.coords))||X;n.options={endOnly:a.endOnly,inner:le({},En.noInner),outer:le({},En.noOuter)},i.top?(n.options.inner.top=r.bottom-o.height,n.options.outer.top=r.bottom-s.height):i.bottom&&(n.options.inner.bottom=r.top+o.height,n.options.outer.bottom=r.top+s.height),i.left?(n.options.inner.left=r.right-o.width,n.options.outer.left=r.right-s.width):i.right&&(n.options.inner.right=r.left+o.width,n.options.outer.right=r.left+s.width),En.set(e),n.options=a}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},`restrictSize`),jn={start:function(e){var t,n=e.interaction,r=e.interactable,i=e.element,a=e.rect,o=e.state,s=e.startOffset,c=o.options,l=c.offsetWithOrigin?function(e){var t=e.interaction.element;return fe(de(e.state.options.origin,null,null,[t]))||F(e.interactable,t,e.interaction.prepared.name)}(e):{x:0,y:0};if(c.offset===`startCoords`)t={x:n.coords.start.page.x,y:n.coords.start.page.y};else{var u=de(c.offset,r,i,[n]);(t=fe(u)||{x:0,y:0}).x+=l.x,t.y+=l.y}var d=c.relativePoints;o.offsets=a&&d&&d.length?d.map((function(e,n){return{index:n,relativePoint:e,x:s.left-a.width*e.x+t.x,y:s.top-a.height*e.y+t.y}})):[{index:0,relativePoint:null,x:t.x,y:t.y}]},set:function(e){var t=e.interaction,n=e.coords,r=e.state,i=r.options,a=r.offsets,o=F(t.interactable,t.element,t.prepared.name),s=le({},n),c=[];i.offsetWithOrigin||(s.x-=o.x,s.y-=o.y);for(var l=0,u=a;l<u.length;l++)for(var d=u[l],f=s.x-d.x,p=s.y-d.y,m=0,h=i.targets.length;m<h;m++){var g=i.targets[m],_=void 0;(_=S.func(g)?g(f,p,t._proxy,d,m):g)&&c.push({x:(S.number(_.x)?_.x:f)+d.x,y:(S.number(_.y)?_.y:p)+d.y,range:S.number(_.range)?_.range:i.range,source:g,index:m,offset:d})}for(var v={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},y=0;y<c.length;y++){var b=c[y],x=b.range,C=b.x-s.x,w=b.y-s.y,T=_e(C,w),E=T<=x;x===1/0&&v.inRange&&v.range!==1/0&&(E=!1),v.target&&!(E?v.inRange&&x!==1/0?T/x<v.distance/v.range:x===1/0&&v.range!==1/0||T<v.distance:!v.inRange&&T<v.distance)||(v.target=b,v.distance=T,v.range=x,v.inRange=E,v.delta.x=C,v.delta.y=w)}return v.inRange&&(n.x=v.target.x,n.y=v.target.y),r.closest=v,v},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},Mn=At(jn,`snap`),Nn={start:function(e){var t=e.state,n=e.edges,r=t.options;if(!n)return null;e.state={options:{targets:null,relativePoints:[{x:+!n.left,y:+!n.top}],offset:r.offset||`self`,origin:{x:0,y:0},range:r.range}},t.targetFields=t.targetFields||[[`width`,`height`],[`x`,`y`]],jn.start(e),t.offsets=e.state.offsets,e.state=t},set:function(e){var t=e.interaction,n=e.state,r=e.coords,i=n.options,a=n.offsets,o={x:r.x-a[0].x,y:r.y-a[0].y};n.options=le({},i),n.options.targets=[];for(var s=0,c=i.targets||[];s<c.length;s++){var l=c[s],u=void 0;if(u=S.func(l)?l(o.x,o.y,t):l){for(var d=0,f=n.targetFields;d<f.length;d++){var p=f[d],m=p[0],h=p[1];if(m in u||h in u){u.x=u[m],u.y=u[h];break}}n.options.targets.push(u)}}var g=jn.set(e);return n.options=i,g},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Pn=At(Nn,`snapSize`),Fn={aspectRatio:vn,restrictEdges:Dn,restrict:Sn,restrictRect:kn,restrictSize:An,snapEdges:At({start:function(e){var t=e.edges;return t?(e.state.targetFields=e.state.targetFields||[[t.left?`left`:`right`,t.top?`top`:`bottom`]],Nn.start(e)):null},set:Nn.set,defaults:le(Dt(Nn.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},`snapEdges`),snap:Mn,snapSize:Pn,spring:bn,avoid:bn,transform:bn,rubberband:bn},In={id:`modifiers`,install:function(e){var t=e.interactStatic;for(var n in e.usePlugin(Mt),e.usePlugin(mn),t.modifiers=Fn,Fn){var r=Fn[n],i=r._defaults;i._methods=r._methods,e.defaults.perAction[n]=i}}},Ln=function(e){c(n,e);var t=f(n);function n(e,r,a,o,s,c){var l;if(i(this,n),ve(d(l=t.call(this,s)),a),a!==r&&ve(d(l),r),l.timeStamp=c,l.originalEvent=a,l.type=e,l.pointerId=Ce(r),l.pointerType=Ae(r),l.target=o,l.currentTarget=null,e===`tap`){var u=s.getPointerIndex(r);l.dt=l.timeStamp-s.pointers[u].downTime;var f=l.timeStamp-s.tapTime;l.double=!!s.prevTap&&s.prevTap.type!==`doubletap`&&s.prevTap.target===l.target&&f<500}else e===`doubletap`&&(l.dt=r.timeStamp-s.tapTime,l.double=!0);return l}return o(n,[{key:`_subtractOrigin`,value:function(e){var t=e.x,n=e.y;return this.pageX-=t,this.pageY-=n,this.clientX-=t,this.clientY-=n,this}},{key:`_addOrigin`,value:function(e){var t=e.x,n=e.y;return this.pageX+=t,this.pageY+=n,this.clientX+=t,this.clientY+=n,this}},{key:`preventDefault`,value:function(){this.originalEvent.preventDefault()}}]),n}(Me),Rn={id:`pointer-events/base`,before:[`inertia`,`modifiers`,`auto-start`,`actions`],install:function(e){e.pointerEvents=Rn,e.defaults.actions.pointerEvents=Rn.defaults,le(e.actions.phaselessTypes,Rn.types)},listeners:{"interactions:new":function(e){var t=e.interaction;t.prevTap=null,t.tapTime=0},"interactions:update-pointer":function(e){var t=e.down,n=e.pointerInfo;(t||!n.hold)&&(n.hold={duration:1/0,timeout:null})},"interactions:move":function(e,t){var n=e.interaction,r=e.pointer,i=e.event,a=e.eventTarget;e.duplicate||n.pointerIsDown&&!n.pointerWasMoved||(n.pointerIsDown&&Vn(e),zn({interaction:n,pointer:r,event:i,eventTarget:a,type:`move`},t))},"interactions:down":function(e,t){(function(e,t){for(var n=e.interaction,r=e.pointer,i=e.event,a=e.eventTarget,o=e.pointerIndex,s=n.pointers[o].hold,c=se(a),l={interaction:n,pointer:r,event:i,eventTarget:a,type:`hold`,targets:[],path:c,node:null},u=0;u<c.length;u++)l.node=c[u],t.fire(`pointerEvents:collect-targets`,l);if(l.targets.length){for(var d=1/0,f=0,p=l.targets;f<p.length;f++){var m=p[f].eventable.options.holdDuration;m<d&&(d=m)}s.duration=d,s.timeout=setTimeout((function(){zn({interaction:n,eventTarget:a,pointer:r,event:i,type:`hold`},t)}),d)}})(e,t),zn(e,t)},"interactions:up":function(e,t){Vn(e),zn(e,t),function(e,t){var n=e.interaction,r=e.pointer,i=e.event,a=e.eventTarget;n.pointerWasMoved||zn({interaction:n,eventTarget:a,pointer:r,event:i,type:`tap`},t)}(e,t)},"interactions:cancel":function(e,t){Vn(e),zn(e,t)}},PointerEvent:Ln,fire:zn,collectEventTargets:Bn,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function zn(e,t){var n=e.interaction,r=e.pointer,i=e.event,a=e.eventTarget,o=e.type,s=e.targets,c=s===void 0?Bn(e,t):s,l=new Ln(o,r,i,a,n,t.now());t.fire(`pointerEvents:new`,{pointerEvent:l});for(var u={interaction:n,pointer:r,event:i,eventTarget:a,targets:c,type:o,pointerEvent:l},d=0;d<c.length;d++){var f=c[d];for(var p in f.props||{})l[p]=f.props[p];var m=F(f.eventable,f.node);if(l._subtractOrigin(m),l.eventable=f.eventable,l.currentTarget=f.node,f.eventable.fire(l),l._addOrigin(m),l.immediatePropagationStopped||l.propagationStopped&&d+1<c.length&&c[d+1].node!==l.currentTarget)break}if(t.fire(`pointerEvents:fired`,u),o===`tap`){var h=l.double?zn({interaction:n,pointer:r,event:i,eventTarget:a,type:`doubletap`},t):l;n.prevTap=h,n.tapTime=h.timeStamp}return l}function Bn(e,t){var n=e.interaction,r=e.pointer,i=e.event,a=e.eventTarget,o=e.type,s=n.getPointerIndex(r),c=n.pointers[s];if(o===`tap`&&(n.pointerWasMoved||!c||c.downTarget!==a))return[];for(var l=se(a),u={interaction:n,pointer:r,event:i,eventTarget:a,type:o,path:l,targets:[],node:null},d=0;d<l.length;d++)u.node=l[d],t.fire(`pointerEvents:collect-targets`,u);return o===`hold`&&(u.targets=u.targets.filter((function(e){var t,r;return e.eventable.options.holdDuration===((t=n.pointers[s])==null||(r=t.hold)==null?void 0:r.duration)}))),u.targets}function Vn(e){var t=e.interaction,n=e.pointerIndex,r=t.pointers[n].hold;r&&r.timeout&&(clearTimeout(r.timeout),r.timeout=null)}var Hn=Object.freeze({__proto__:null,default:Rn});function Un(e){var t=e.interaction;t.holdIntervalHandle&&=(clearInterval(t.holdIntervalHandle),null)}var Wn={id:`pointer-events/holdRepeat`,install:function(e){e.usePlugin(Rn);var t=e.pointerEvents;t.defaults.holdRepeatInterval=0,t.types.holdrepeat=e.actions.phaselessTypes.holdrepeat=!0},listeners:[`move`,`up`,`cancel`,`endall`].reduce((function(e,t){return e[`pointerEvents:${t}`]=Un,e}),{"pointerEvents:new":function(e){var t=e.pointerEvent;t.type===`hold`&&(t.count=(t.count||0)+1)},"pointerEvents:fired":function(e,t){var n=e.interaction,r=e.pointerEvent,i=e.eventTarget,a=e.targets;if(r.type===`hold`&&a.length){var o=a[0].eventable.options.holdRepeatInterval;o<=0||(n.holdIntervalHandle=setTimeout((function(){t.pointerEvents.fire({interaction:n,eventTarget:i,type:`hold`,pointer:r,event:r},t)}),o))}}})},Gn={id:`pointer-events/interactableTargets`,install:function(e){var t=e.Interactable;t.prototype.pointerEvents=function(e){return le(this.events.options,e),this};var n=t.prototype._backCompatOption;t.prototype._backCompatOption=function(e,t){var r=n.call(this,e,t);return r===this&&(this.events.options[e]=t),r}},listeners:{"pointerEvents:collect-targets":function(e,t){var n=e.targets,r=e.node,i=e.type,a=e.eventTarget;t.interactables.forEachMatch(r,(function(e){var t=e.events,o=t.options;t.types[i]&&t.types[i].length&&e.testIgnoreAllow(o,r,a)&&n.push({node:r,eventable:t,props:{interactable:e}})}))},"interactable:new":function(e){var t=e.interactable;t.events.getRect=function(e){return t.getRect(e)}},"interactable:set":function(e,t){var n=e.interactable,r=e.options;le(n.events.options,t.pointerEvents.defaults),le(n.events.options,r.pointerEvents||{})}}};if(dn.use(B),dn.use(Vt),dn.use({id:`pointer-events`,install:function(e){e.usePlugin(Hn),e.usePlugin(Wn),e.usePlugin(Gn)}}),dn.use(qt),dn.use(In),dn.use(Ct),dn.use(tt),dn.use(st),dn.use({id:`reflow`,install:function(e){var t=e.Interactable;e.actions.phases.reflow=!0,t.prototype.reflow=function(t){return function(e,t,n){for(var r=e.getAllElements(),i=n.window.Promise,a=i?[]:null,o=function(){var o=r[s],c=e.getRect(o);if(!c)return 1;var l,u=Ie(n.interactions.list,(function(n){return n.interacting()&&n.interactable===e&&n.element===o&&n.prepared.name===t.name}));if(u)u.move(),a&&(l=u._reflowPromise||new i((function(e){u._reflowResolve=e})));else{var d=pe(c);l=function(e,t,n,r,i){var a=e.interactions.new({pointerType:`reflow`}),o={interaction:a,event:i,pointer:i,eventTarget:n,phase:`reflow`};a.interactable=t,a.element=n,a.prevEvent=i,a.updatePointer(i,i,n,!0),L(a.coords.delta),lt(a.prepared,r),a._doPhase(o);var s=e.window.Promise,c=s?new s((function(e){a._reflowResolve=e})):void 0;return a._reflowPromise=c,a.start(r,t,n),a._interacting?(a.move(o),a.end(i)):(a.stop(),a._reflowResolve()),a.removePointer(i,i),c}(n,e,o,t,function(e){return{coords:e,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:d.x,y:d.y},client:{x:d.x,y:d.y},timeStamp:n.now()}))}a&&a.push(l)},s=0;s<r.length&&!o();s++);return a&&i.all(a).then((function(){return e}))}(this,t,e)}},listeners:{"interactions:stop":function(e,t){var n=e.interaction;n.pointerType===`reflow`&&(n._reflowResolve&&n._reflowResolve(),function(e,t){e.splice(e.indexOf(t),1)}(t.interactions.list,n))}}}),dn.default=dn,(t===void 0?`undefined`:r(t))===`object`&&t)try{t.exports=dn}catch{}return dn.default=dn,dn}))}))(),1),hbe={...Ld,restrictionElement:{type:[String,HTMLElement,Function,Object],default:`body`},dad:{type:Boolean,default:!0},restrictRectOptions:{type:Object,default:void 0},defaultPosition:{type:[Object,String],default:()=>({x:0,y:0})},width:{type:[String,Number],default:600},zIndex:{type:Number,default:void 0},animation:{type:Boolean,default:!1},padding:{type:Object,default:void 0}},gbe=Y({name:`RDraggableCard`,props:hbe,setup(e,{expose:t}){let n=lt(`cardRef`),r=null,i={x:0,y:0},a=`r-draggable-card-container`,o=V(()=>({"--r-draggable-card-width":US(e.width),"--r-draggable-card-z-index":e.zIndex})),s=!1,c={defaultPosition:e.defaultPosition,dad:e.dad};(()=>{if(!document.getElementById(a)){let e=document.createElement(`div`);e.id=a,document.documentElement.appendChild(e)}})();let l=()=>{let t=FS(n),r=typeof e.restrictionElement==`string`?HS(e.restrictionElement):e.restrictionElement,i;return i=Array.isArray(r)?r[0]:FS(r),{card:t,restrictionElement:i}},u=(t,n)=>{let{defaultPosition:r,padding:i}=e,{x:a=0,y:o=0}=i??{},{x:s,y:c,width:l,height:u}=t,{width:d,height:f}=n;if(typeof r==`string`)switch(r){case`top-center`:{let e=(l-d)/2+s,t=o+c;return{x:a+e,y:t}}case`bottom-center`:{let e=(l-d)/2+s,t=u-f-o+c;return{x:a+e,y:t}}case`center`:{let e=(l-d)/2+s,t=(u-f)/2+c;return{x:a+e,y:o+t}}case`top-left`:return{x:a+s,y:o+c};case`top-right`:return{x:l-d-a+s,y:o+c};case`bottom-left`:return{x:a+s,y:u-f-o+c};case`bottom-right`:return{x:l-d-a+s,y:u-f-o+c};default:return{x:a+s,y:o+c}}else{let{x:e,y:t}=r;return{x:e+s+a,y:t+c+o}}},d=()=>{let{card:t,restrictionElement:n}=l();if(!t)return;let a=n?.getBoundingClientRect(),o=t.querySelector(`.n-card-header`),c=Object.assign({},{restriction:n,endOnly:!0},e.restrictRectOptions);if(a&&!s){let e=u(a,t.getBoundingClientRect());t.style.transform=`translate(${e.x}px, ${e.y}px)`,i.x=e.x,i.y=e.y}e.dad&&(r=(0,KS.default)(t).draggable({inertia:!0,autoScroll:!0,allowFrom:o?`.n-card-header`:`.n-card__content`,modifiers:[KS.default.modifiers.restrictRect(c)],listeners:{move:e=>{t.setAttribute(`can-drag`,`true`),i.x+=e.dx,i.y+=e.dy,t.style.transform=`translate(${i.x}px, ${i.y}px)`}}}).resizable(!1),s=!0)},f=()=>{r?.unset(),r=null},p=e=>{s=!1,e(),d()};return t(),ot(()=>{e.dad?d():f(),e.defaultPosition!==c.defaultPosition&&p(()=>{c.defaultPosition=e.defaultPosition})}),Ve(()=>{he(()=>{d()})}),{cardRef:n,CONTAINER_ID:a,cssVars:o}},render(){let{$attrs:e,$slots:t,$props:n,CONTAINER_ID:r,cssVars:i,animation:a}=this;return J(Xt,{to:`#${r}`},{default:()=>[a?J(gn,{name:`draggable-card`,appear:!0,mode:`out-in`},{default:()=>[J(Rd,I(e,n,{class:`r-draggable-card`,style:[i],ref:`cardRef`}),{...t})]}):J(Rd,I(e,n,{class:`r-draggable-card`,style:[i],ref:`cardRef`}),{...t})]})}}),qS=(e,t)=>Object.prototype.toString.call(e)===`[object ${t}]`||t===`Function`&&typeof e==`function`,JS=(e=16,t=62)=>{if(!Number.isSafeInteger(e)||e<0||!Number.isInteger(t)||t<1||t>62)throw RangeError(`[uuid]: Invalid length or radix.`);let n=2**32,r=n-n%t,i=new Uint32Array(1),a=``;for(;a.length<e;)crypto.getRandomValues(i),i[0]<r&&(a+=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`[i[0]%t]);return a},_be=e=>typeof e==`function`&&Object.prototype.toString.call(e)===`[object AsyncFunction]`,vbe=e=>e!==null&&(typeof e==`object`||typeof e==`function`)&&typeof e.then==`function`,ybe=(e,t,n)=>{try{return e(...n??[])}catch(e){t(e)}},bbe=async(e,t,n)=>{try{return await e(...n??[])}catch(e){t(e)}},xbe=e=>`data:image/png;base64,`+btoa(Array.from(new Uint8Array(e),e=>String.fromCharCode(e)).join(``)),YS=(e,t)=>{let n=document.createElement(`a`);n.href=e,n.download=t,n.hidden=!0,document.body.appendChild(n);try{n.click()}finally{n.remove()}},XS=async(e,t)=>{if(typeof e==`string`){YS(e,t);return}let n=e instanceof ArrayBuffer?new Blob([e],{type:`application/octet-stream`}):e;if(!(n instanceof Blob))throw TypeError(`[downloadAnyFile]: Unsupported data type.`);let r=URL.createObjectURL(n);try{YS(r,t)}catch(e){throw URL.revokeObjectURL(r),e}setTimeout(()=>URL.revokeObjectURL(r),1e3)},ZS=e=>new Promise((t,n)=>{let r=new FileReader;r.onload=()=>t(r.result),r.onerror=()=>n(r.error),r.onabort=()=>n(new DOMException(`File read aborted`,`AbortError`)),r.readAsDataURL(e)}),QS=function(e){return e.Windows=`Windows`,e.MacOS=`MacOS`,e.Linux=`Linux`,e.Android=`Android`,e.IOS=`IOS`,e.Unknown=`Unknown`,e}({}),$S=(e,t)=>{let n=e=>e.split(/[?#]/,1)[0].replace(/\/+$/,``);return n(e)===n(t)},eC=(e,t,n,r)=>{e&&typeof e==`object`&&Object.hasOwn(e,t)&&(e[t]=ke(n)&&ke(e[t])?{...e[t],...n}:n,r?.())},tC=()=>{let e=globalThis.navigator?.userAgent??``;return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&navigator.maxTouchPoints>1?QS.IOS:/android/i.test(e)?QS.Android:/windows/i.test(e)?QS.Windows:/macintosh|mac os x/i.test(e)?QS.MacOS:/linux/i.test(e)?QS.Linux:QS.Unknown};function nC(e,t=``){return{get(n){try{return JSON.parse(e.getItem(t+n)??`null`)}catch{return null}},set(n,r){try{e.setItem(t+n,JSON.stringify(r))}catch{}},remove(n){try{e.removeItem(t+n)}catch{}}}}var rC=function(e,t){return rC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},rC(e,t)};function iC(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);rC(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Sbe=`12px sans-serif`,Cbe=20,wbe=100,Tbe=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function Ebe(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32);t[r]=(e.charCodeAt(n)-Cbe)/wbe}return t}var Dbe=Ebe(Tbe),aC={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=aC.createCanvas();e=i&&i.getContext(`2d`)}if(e)return t!==r&&(t=e.font=r||`12px sans-serif`),e.measureText(n);n||=``,r||=`12px sans-serif`;var a=/((?:\d+)?\.?\d*)px/.exec(r),o=a&&+a[1]||12,s=0;if(r.indexOf(`mono`)>=0)s=o*n.length;else for(var c=0;c<n.length;c++){var l=Dbe[n[c]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r},getTime:function(){return Date.now?Date.now():+new Date}},oC=TC([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),sC=TC([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),cC=Object.prototype.toString,lC=Array.prototype,Obe=lC.forEach,kbe=lC.filter,uC=lC.slice,Abe=lC.map,dC=function(){}.constructor,fC=dC?dC.prototype:null,pC=`__proto__`,mC=2311,jbe=2**53-1;function hC(){return mC>=jbe&&(mC=0),mC++}function gC(){var e=[...arguments];typeof console<`u`&&console.error.apply(console,e)}function _C(e){if(typeof e!=`object`||!e)return e;var t=e,n=cC.call(e);if(n===`[object Array]`){if(!XC(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=_C(e[r])}}else if(sC[n]){if(!XC(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!oC[n]&&!XC(e)&&!RC(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==pC&&(t[o]=_C(e[o]));return t}function vC(e,t,n){if(!FC(t)||!FC(e))return n?_C(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==pC){var i=e[r],a=t[r];FC(a)&&FC(i)&&!AC(a)&&!AC(i)&&!RC(a)&&!RC(i)&&!IC(a)&&!IC(i)&&!XC(a)&&!XC(i)?vC(i,a,n):(n||!(r in e))&&(e[r]=_C(t[r]))}return e}function yC(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==pC&&(e[n]=t[n]);return e}function Mbe(e,t,n){e||={};for(var r=0;r<n.length;r++){var i=n[r];e[i]=t[i]}return e}function bC(e,t,n){for(var r=DC(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}aC.createCanvas;function xC(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function Nbe(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function SC(e,t,n){if(e=`prototype`in e?e.prototype:e,t=`prototype`in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var a=r[i];a!==`constructor`&&(n?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else bC(e,t,n)}function CC(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function Z(e,t,n){if(e&&t){if(e.forEach&&e.forEach===Obe)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}}function wC(e,t,n){if(!e)return[];if(!t)return WC(e);if(e.map&&e.map===Abe)return e.map(t,n);for(var r=[],i=0,a=e.length;i<a;i++)r.push(t.call(n,e[i],i,e));return r}function TC(e,t,n,r){if(e&&t){for(var i=0,a=e.length;i<a;i++)n=t.call(r,n,e[i],i,e);return n}}function EC(e,t,n){if(!e)return[];if(!t)return WC(e);if(e.filter&&e.filter===kbe)return e.filter(t,n);for(var r=[],i=0,a=e.length;i<a;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function Pbe(e,t,n){if(e&&t){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}}function DC(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function Fbe(e,t){var n=[...arguments].slice(2);return function(){return e.apply(t,n.concat(uC.call(arguments)))}}var OC=fC&&jC(fC.bind)?fC.call.bind(fC.bind):Fbe;function kC(e){var t=[...arguments].slice(1);return function(){return e.apply(this,t.concat(uC.call(arguments)))}}function AC(e){return Array.isArray?Array.isArray(e):cC.call(e)===`[object Array]`}function jC(e){return typeof e==`function`}function MC(e){return typeof e==`string`}function NC(e){return cC.call(e)===`[object String]`}function PC(e){return typeof e==`number`}function FC(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function IC(e){return!!oC[cC.call(e)]}function LC(e){return!!sC[cC.call(e)]}function RC(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function zC(e){return e.colorStops!=null}function Ibe(e){return e.image!=null}function Lbe(e){return cC.call(e)===`[object RegExp]`}function BC(e){return e!==e}function VC(){for(var e=[...arguments],t=0,n=e.length;t<n;t++)if(e[t]!=null)return e[t]}function HC(e,t){return e??t}function UC(e,t,n){return e??t??n}function WC(e){var t=[...arguments].slice(1);return uC.apply(e,t)}function GC(e){if(typeof e==`number`)return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function KC(e,t){if(!e)throw Error(t)}function qC(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var JC=`__ec_primitive__`;function YC(e){e[JC]=!0}function XC(e){return e[JC]}var Rbe=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return DC(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),ZC=typeof Map==`function`;function zbe(){return ZC?new Map:new Rbe}var Bbe=function(){function e(t){var n=AC(t);this.data=zbe();var r=this;t instanceof e?t.each(i):t&&Z(t,i);function i(e,t){n?r.set(e,t):r.set(t,e)}}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,r){e.call(t,n,r)})},e.prototype.keys=function(){var e=this.data.keys();return ZC?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function QC(e){return new Bbe(e)}function Vbe(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function $C(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&yC(n,t),n}function ew(e){var t=e.style;t.webkitUserSelect=`none`,t.userSelect=`none`,t.webkitTapHighlightColor=`rgba(0,0,0,0)`,t[`-webkit-touch-callout`]=`none`}function tw(e,t){return e.hasOwnProperty(t)}function nw(){}var Hbe=180/Math.PI,Ube=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),rw=new(function(){function e(){this.browser=new Ube,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<`u`}return e}());typeof wx==`object`&&typeof wx.getSystemInfoSync==`function`?(rw.wxa=!0,rw.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?rw.worker=!0:!rw.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(rw.node=!0,rw.svgSupported=!0):Wbe(navigator.userAgent,rw);function Wbe(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);if(r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(`.`)[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<`u`,t.touchEventsSupported=`ontouchstart`in window&&!n.ie&&!n.edge,t.pointerEventsSupported=`onpointerdown`in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<`u`){var s=document.documentElement.style;t.transform3dSupported=(n.ie&&`transition`in s||n.edge||`WebKitCSSMatrix`in window&&`m11`in new WebKitCSSMatrix||`MozPerspective`in s)&&!(`OTransition`in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}var Gbe=`.`,iw=`___EC__COMPONENT__CONTAINER___`,aw=`___EC__EXTENDED_CLASS___`;function ow(e){var t={main:``,sub:``};if(e){var n=e.split(Gbe);t.main=n[0]||``,t.sub=n[1]||``}return t}function Kbe(e){KC(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function qbe(e){return!!(e&&e[aw])}function sw(e,t){e.$constructor=e,e.extend=function(e){var t=this,n;return Jbe(t)?n=function(e){iC(t,e);function t(){return e.apply(this,arguments)||this}return t}(t):(n=function(){(e.$constructor||t).apply(this,arguments)},Nbe(n,this)),yC(n.prototype,e),n[aw]=!0,n.extend=this.extend,n.superCall=Zbe,n.superApply=Qbe,n.superClass=t,n}}function Jbe(e){return jC(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function cw(e,t){e.extend=t.extend}var Ybe=Math.round(Math.random()*10);function Xbe(e){var t=[`__\0is_clz`,Ybe++].join(`_`);e.prototype[t]=!0,e.isInstance=function(e){return!!(e&&e[t])}}function Zbe(e,t){var n=[...arguments].slice(2);return this.superClass.prototype[t].apply(e,n)}function Qbe(e,t,n){return this.superClass.prototype[t].apply(e,n)}function lw(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){Kbe(r),e.prototype.type=r;var i=ow(r);if(!i.sub)t[i.main]=e;else if(i.sub!==iw){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[iw]&&(i=n?i[n]:null),r&&!i)throw Error(n?`Component `+e+`.`+(n||``)+` is used but not imported.`:e+`.type should be specified.`);return i},e.getClassesByMainType=function(e){var n=ow(e),r=[],i=t[n.main];return i&&i[iw]?Z(i,function(e,t){t!==iw&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[ow(e).main]},e.getAllClassMainTypes=function(){var e=[];return Z(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[ow(e).main];return n&&n[iw]};function n(e){var n=t[e.main];return n&&n[iw]||(n=t[e.main]={},n[iw]=!0),n}}function uw(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t||=!1,function(n,r,i){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(r&&xC(r,s)>=0||i&&xC(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var $be=uw([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),exe=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return $be(this,e,t)},e}(),dw=function(){function e(e){this.value=e}return e}(),txe=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new dw(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),fw=function(){function e(e){this._list=new txe,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(r[e]==null){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new dw(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),pw=new fw(50);function nxe(e){if(typeof e==`string`){var t=pw.get(e);return t&&t.image}return e}function mw(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=pw.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!gw(t)&&a.pending.push(o)):(t=aC.loadImage(e,hw,hw),t.__zrImageSrc=e,pw.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}return e}function hw(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function gw(e){return e&&e.width&&e.height}function _w(){return[1,0,0,1,0,0]}function vw(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function yw(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function bw(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e}function xw(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Sw(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],c=t[3],l=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*u,e[1]=-i*u+s*d,e[2]=a*d+c*u,e[3]=-a*u+d*c,e[4]=d*(o-r[0])+u*(l-r[1])+r[0],e[5]=d*(l-r[1])-u*(o-r[0])+r[1],e}function rxe(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function Cw(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],c=n*o-a*r;return c?(c=1/c,e[0]=o*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*s-o*i)*c,e[5]=(a*i-n*s)*c,e):null}function ww(e,t){return e??=0,t??=0,[e,t]}function Tw(e,t){return e[0]=t[0],e[1]=t[1],e}function ixe(e){return[e[0],e[1]]}function Ew(e,t,n){return e[0]=t,e[1]=n,e}function Dw(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function axe(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function oxe(e){return Math.sqrt(sxe(e))}function sxe(e){return e[0]*e[0]+e[1]*e[1]}function Ow(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function cxe(e,t){var n=oxe(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function kw(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Aw=kw;function lxe(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var jw=lxe;function Mw(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function Nw(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function Pw(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Fw(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var Iw=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),Lw=Math.min,Rw=Math.max,zw=Math.abs,Bw=[`x`,`y`],uxe=[`width`,`height`],Vw=new Iw,Hw=new Iw,Uw=new Iw,Ww=new Iw,Gw=nT(),Kw=Gw.minTv,qw=Gw.maxTv,Jw=[0,0],Yw=function(){function e(e,t,n,r){Zw(this,e,t,n,r)}return e.set=function(e,t,n,r,i){return r<0&&(t+=r,r=-r),i<0&&(n+=i,i=-i),e.x=t,e.y=n,e.width=r,e.height=i,e},e.prototype.union=function(e){var t=Lw(e.x,this.x),n=Lw(e.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?Rw(e.x+e.width,this.x+this.width)-t:e.width,this.height=isFinite(this.y)&&isFinite(this.height)?Rw(e.y+e.height,this.y+this.height)-n:e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){return dxe(_w(),this,e)},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&Iw.set(r,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!n)return!1;t instanceof e||(t=Zw(pxe,t.x,t.y,t.width,t.height)),n instanceof e||(n=Zw(mxe,n.x,n.y,n.width,n.height));var s=!!r;Gw.reset(i,s);var c=Gw.touchThreshold,l=t.x+c,u=t.x+t.width-c,d=t.y+c,f=t.y+t.height-c,p=n.x+c,m=n.x+n.width-c,h=n.y+c,g=n.y+n.height-c;if(l>u||d>f||p>m||h>g)return!1;var _=!(u<p||m<l||f<h||g<d);return(s||a)&&(Jw[0]=1/0,Jw[1]=0,tT(l,u,p,m,0,s,a,o),tT(d,f,h,g,1,s,a,o),s&&Iw.copy(r,_?Gw.useDir?Gw.dirMinTv:Kw:qw)),_},e.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},e.prototype.contain=function(t,n){return e.contain(this,t,n)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(e){Qw(this,e)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},e.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},e.applyTransform=function(e,t,n){if(!n)e!==t&&Qw(e,t);else if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var r=n[0],i=n[3],a=n[4],o=n[5];e.x=t.x*r+a,e.y=t.y*i+o,e.width=t.width*r,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height)}else{Vw.x=Uw.x=t.x,Vw.y=Ww.y=t.y,Hw.x=Ww.x=t.x+t.width,Hw.y=Uw.y=t.y+t.height,Vw.transform(n),Ww.transform(n),Hw.transform(n),Uw.transform(n),e.x=Lw(Vw.x,Hw.x,Uw.x,Ww.x),e.y=Lw(Vw.y,Hw.y,Uw.y,Ww.y);var s=Rw(Vw.x,Hw.x,Uw.x,Ww.x),c=Rw(Vw.y,Hw.y,Uw.y,Ww.y);e.width=s-e.x,e.height=c-e.y}},e.calculateTransform=function(e,t,n){var r=n.width/t.width,i=n.height/t.height;return e=vw(e||[]),xw(e,e,Ew(eT,-t.x,-t.y)),rxe(e,e,Ew(eT,r,i)),xw(e,e,Ew(eT,n.x,n.y)),e},e}(),Xw=Yw.create,Zw=Yw.set,Qw=Yw.copy,dxe=Yw.calculateTransform,$w=Yw.applyTransform,fxe=Yw.contain,pxe=new Yw(0,0,0,0),mxe=new Yw(0,0,0,0),eT=[];function tT(e,t,n,r,i,a,o,s){var c=zw(t-n),l=zw(r-e),u=Lw(c,l),d=Bw[i],f=Bw[1-i],p=uxe[i];t<n||r<e?c<l?(a&&(qw[d]=-c),s&&(o[d]=t,o[p]=0)):(a&&(qw[d]=l),s&&(o[d]=e,o[p]=0)):(o&&(o[d]=Rw(e,n),o[p]=Lw(t,r)-o[d]),a&&(u<Jw[0]||Gw.useDir)&&(Jw[0]=Lw(u,Jw[0]),(c<l||!Gw.bidirectional)&&(Kw[d]=c,Kw[f]=0,Gw.useDir&&Gw.calcDirMTV()),(c>=l||!Gw.bidirectional)&&(Kw[d]=-l,Kw[f]=0,Gw.useDir&&Gw.calcDirMTV())))}function nT(){var e=0,t=new Iw,n=new Iw,r={minTv:new Iw,maxTv:new Iw,useDir:!1,dirMinTv:new Iw,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=Rw(0,i.touchThreshold)),r.negativeSize=!1,a&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&i.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),e=i.direction,r.bidirectional=i.bidirectional==null||!!i.bidirectional,r.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=r.minTv,o=r.dirMinTv,s=a.y*a.y+a.x*a.x,c=Math.sin(e),l=Math.cos(e),u=c*a.y+l*a.x;i(u)?i(a.x)&&i(a.y)&&o.set(0,0):(n.x=s*l/u,n.y=s*c/u,i(n.x)&&i(n.y)?o.set(0,0):(r.bidirectional||t.dot(n)>0)&&n.len()<o.len()&&o.copy(n))}};function i(e){return zw(e)<1e-10}return r}function rT(e){iT||=new fw(100),e||=`12px sans-serif`;var t=iT.get(e);return t||(t={font:e,strWidthCache:new fw(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:aC.measureText(`国`,e).width,asciiCharWidth:aC.measureText(`a`,e).width},iT.put(e,t)),t}var iT;function hxe(e){if(!(aT>=oT)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=aC.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?aT=oT:i>2&&aT++,t}}var aT=0,oT=5;function sT(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=hxe(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function cT(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=aC.measureText(t,e.font).width,n.put(t,r)),r}function lT(e,t,n,r){var i=cT(rT(t),e),a=pT(t);return new Yw(dT(0,i,n),fT(0,a,r),i,a)}function uT(e,t,n,r){var i=((e||``)+``).split(`
`);if(i.length===1)return lT(i[0],t,n,r);for(var a=new Yw(0,0,0,0),o=0;o<i.length;o++){var s=lT(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function dT(e,t,n,r){return n===`right`?r?e+=t:e-=t:n===`center`&&(r?e+=t/2:e-=t/2),e}function fT(e,t,n,r){return n===`middle`?r?e+=t/2:e-=t/2:n===`bottom`&&(r?e+=t:e-=t),e}function pT(e){return rT(e).stWideCharWidth}function mT(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function hT(e,t,n){var r=t.position||`inside`,i=t.distance==null?5:t.distance,a=n.height,o=n.width,s=a/2,c=n.x,l=n.y,u=`left`,d=`top`;if(r instanceof Array)c+=mT(r[0],n.width),l+=mT(r[1],n.height),u=null,d=null;else switch(r){case`left`:c-=i,l+=s,u=`right`,d=`middle`;break;case`right`:c+=i+o,l+=s,d=`middle`;break;case`top`:c+=o/2,l-=i,u=`center`,d=`bottom`;break;case`bottom`:c+=o/2,l+=a+i,u=`center`;break;case`inside`:c+=o/2,l+=s,u=`center`,d=`middle`;break;case`insideLeft`:c+=i,l+=s,d=`middle`;break;case`insideRight`:c+=o-i,l+=s,u=`right`,d=`middle`;break;case`insideTop`:c+=o/2,l+=i,u=`center`;break;case`insideBottom`:c+=o/2,l+=a-i,u=`center`,d=`bottom`;break;case`insideTopLeft`:c+=i,l+=i;break;case`insideTopRight`:c+=o-i,l+=i,u=`right`;break;case`insideBottomLeft`:c+=i,l+=a-i,d=`bottom`;break;case`insideBottomRight`:c+=o-i,l+=a-i,u=`right`,d=`bottom`}return e||={},e.x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var gT=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function gxe(e,t,n,r,i,a){if(!n)e.text=``,e.isTruncated=!1;else{var o=(t+``).split(`
`);a=_T(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l<u;l++)vT(c,o[l],a),o[l]=c.textLine,s||=c.isTruncated;e.text=o.join(`
`),e.isTruncated=s}}function _T(e,t,n,r){r||={};var i=yC({},r);n=HC(n,`...`),i.maxIterations=HC(r.maxIterations,2);var a=i.minChar=HC(r.minChar,0),o=i.fontMeasureInfo=rT(t),s=o.asciiCharWidth;i.placeholder=HC(r.placeholder,``);for(var c=e=Math.max(0,e-1),l=0;l<a&&c>=s;l++)c-=s;var u=cT(o,n);return u>c&&(n=``,u=0),c=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=c,i.containerWidth=e,i}function vT(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r)e.textLine=``,e.isTruncated=!1;else{var o=cT(a,t);if(o<=r)e.textLine=t,e.isTruncated=!1;else{for(var s=0;;s++){if(o<=i||s>=n.maxIterations){t+=n.ellipsis;break}var c=s===0?_xe(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,c),o=cT(a,t)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}}}function _xe(e,t,n){for(var r=0,i=0,a=e.length;i<a&&r<t;i++)r+=sT(n,e.charCodeAt(i));return i}function vxe(e,t,n,r){var i=TT(e),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,c=o?o[0]+o[2]:0,l=t.font,u=a===`truncate`,d=pT(l),f=HC(t.lineHeight,d),p=t.lineOverflow===`truncate`,m=!1,h=t.width;h==null&&n!=null&&(h=n-s);var g=t.height;g==null&&r!=null&&(g=r-c);var _=h!=null&&(a===`break`||a===`breakAll`)?i?xT(i,t.font,h,a===`breakAll`,0).lines:[]:i?i.split(`
`):[],v=_.length*f;if(g??=v,v>g&&p){var y=Math.floor(g/f);m||=_.length>y,_=_.slice(0,y),v=_.length*f}if(i&&u&&h!=null)for(var b=_T(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)vT(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=rT(l),S=0;S<_.length;S++)w=Math.max(cT(T,_[S]),w);h??=w;var E=h;return C+=c,E+=s,{lines:_,height:g,outerWidth:E,outerHeight:C,lineHeight:f,calculatedLineHeight:d,contentWidth:w,contentHeight:v,width:h,isTruncated:m}}var yxe=function(){function e(){}return e}(),yT=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),bxe=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function xxe(e,t,n,r,i){var a=new bxe,o=TT(e);if(!o)return a;var s=t.padding,c=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,u=t.width;u==null&&n!=null&&(u=n-c);var d=t.height;d==null&&r!=null&&(d=r-l);for(var f=t.overflow,p=(f===`break`||f===`breakAll`)&&u!=null?{width:u,accumWidth:0,breakAll:f===`breakAll`}:null,m=gT.lastIndex=0,h;(h=gT.exec(o))!=null;){var g=h.index;g>m&&bT(a,o.substring(m,g),t,p),bT(a,h[2],t,p,h[1]),m=gT.lastIndex}m<o.length&&bT(a,o.substring(m,o.length),t,p);var _=[],v=0,y=0,b=f===`truncate`,x=t.lineOverflow===`truncate`,S={};function C(e,t,n){e.width=t,e.lineHeight=n,v+=n,y=Math.max(y,t)}outer:for(var w=0;w<a.lines.length;w++){for(var T=a.lines[w],E=0,D=0,O=0;O<T.tokens.length;O++){var k=T.tokens[O],A=k.styleName&&t.rich[k.styleName]||{},j=k.textPadding=A.padding,ee=j?j[1]+j[3]:0,te=k.font=A.font||t.font;k.contentHeight=pT(te);var M=HC(A.height,k.contentHeight);if(k.innerHeight=M,j&&(M+=j[0]+j[2]),k.height=M,k.lineHeight=UC(A.lineHeight,t.lineHeight,M),k.align=A&&A.align||i,k.verticalAlign=A&&A.verticalAlign||`middle`,x&&d!=null&&v+k.lineHeight>d){var ne=a.lines.length;O>0?(T.tokens=T.tokens.slice(0,O),C(T,D,E),a.lines=a.lines.slice(0,w+1)):a.lines=a.lines.slice(0,w),a.isTruncated=a.isTruncated||a.lines.length<ne;break outer}var re=A.width,ie=re==null||re===`auto`;if(typeof re==`string`&&re.charAt(re.length-1)===`%`)k.percentWidth=re,_.push(k),k.contentWidth=cT(rT(te),k.text);else{if(ie){var N=A.backgroundColor,P=N&&N.image;P&&(P=nxe(P),gw(P)&&(k.width=Math.max(k.width,P.width*M/P.height)))}var ae=b&&u!=null?u-D:null;ae!=null&&ae<k.width?!ie||ae<ee?(k.text=``,k.width=k.contentWidth=0):(gxe(S,k.text,ae-ee,te,t.ellipsis,{minChar:t.truncateMinChar}),k.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,k.width=k.contentWidth=cT(rT(te),k.text)):k.contentWidth=cT(rT(te),k.text)}k.width+=ee,D+=k.width,A&&(E=Math.max(E,k.lineHeight))}C(T,D,E)}a.outerWidth=a.width=HC(u,y),a.outerHeight=a.height=HC(d,v),a.contentHeight=v,a.contentWidth=y,a.outerWidth+=c,a.outerHeight+=l;for(var w=0;w<_.length;w++){var k=_[w],oe=k.percentWidth;k.width=parseInt(oe,10)/100*a.width}return a}function bT(e,t,n,r,i){var a=t===``,o=i&&n.rich[i]||{},s=e.lines,c=o.font||n.font,l=!1,u,d;if(r){var f=o.padding,p=f?f[1]+f[3]:0;if(o.width!=null&&o.width!==`auto`){var m=mT(o.width,r.width)+p;s.length>0&&m+r.accumWidth>r.width&&(u=t.split(`
`),l=!0),r.accumWidth=m}else{var h=xT(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||=t.split(`
`);for(var g=rT(c),_=0;_<u.length;_++){var v=u[_],y=new yxe;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!a,y.width=typeof o.width==`number`?o.width:d?d[_]:cT(g,v),!_&&!l){var b=(s[s.length-1]||(s[0]=new yT)).tokens,x=b.length;x===1&&b[0].isLineHolder?b[0]=y:(v||!x||a)&&b.push(y)}else s.push(new yT([y]))}}function Sxe(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Cxe=TC(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function wxe(e){return!Sxe(e)||!!Cxe[e]}function xT(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=rT(t),f=0;f<e.length;f++){var p=e.charAt(f);if(p===`
`)c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0;else{var m=sT(d,p.charCodeAt(0)),h=!r&&!wxe(p);(a.length?u+m>n:i+u+m>n)?u?(s||c)&&(h?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=p,l+=m,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m)):(u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p))}}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function ST(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=t.width*2,s=t.height*2;Yw.set(CT,dT(n,o,i),fT(r,s,a),o,s),Yw.intersect(t,CT,null,wT);var c=wT.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=dT(c.x,c.width,i,!0),e.baseY=fT(c.y,c.height,a,!0)}}var CT=new Yw(0,0,0,0),wT={outIntersectRect:{},clamp:!0};function TT(e){return e==null?e=``:e+=``}function Txe(e){var t=TT(e.text),n=e.font;return ET(e,cT(rT(n),t),pT(n),null)}function ET(e,t,n,r){var i=new Yw(dT(e.x||0,t,e.textAlign),fT(e.y||0,n,e.textBaseline),t,n),a=r??(DT(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function DT(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var OT=vw,kT=5e-5;function AT(e){return e>kT||e<-kT}var jT=[],MT=[],NT=_w(),PT=Math.abs,FT=function(){function e(){}return e.prototype.getLocalTransform=function(e){return IT(this,e)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return AT(this.rotation)||AT(this.x)||AT(this.y)||AT(this.scaleX-1)||AT(this.scaleY-1)||AT(this.skewX)||AT(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n||=_w(),t?this.getLocalTransform(n):OT(n),e&&(t?bw(n,e,n):yw(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||_w(),Cw(this.invTransform,n)):n&&(OT(n),this.invTransform=null)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(jT);var n=jT[0]<0?-1:1,r=jT[1]<0?-1:1,i=((jT[0]-n)*t+n)/jT[0]||0,a=((jT[1]-r)*t+r)/jT[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||_w(),bw(MT,e.invTransform,t),t=MT);var n=this.originX,r=this.originY;(n||r)&&(NT[4]=n,NT[5]=r,bw(MT,t,NT),MT[4]-=n,MT[5]-=r,t=MT),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&Nw(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&Nw(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&PT(e[0]-1)>1e-10&&PT(e[3]-1)>1e-10?Math.sqrt(PT(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){zT(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&Sw(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e}(),IT=FT.getLocalTransform;function LT(){return new FT}var RT=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function zT(e,t){return Mbe(e,t,RT)}var BT={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(2**(-10*(e-1)))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-BT.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?BT.bounceIn(e*2)*.5:BT.bounceOut(e*2-1)*.5+.5}},VT=Math.pow,HT=Math.sqrt,UT=1e-8,WT=1e-4,GT=HT(3),KT=1/3,qT=ww(),JT=ww(),YT=ww();function XT(e){return e>-UT&&e<UT}function ZT(e){return e>UT||e<-UT}function QT(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function $T(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function eE(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(XT(u)&&XT(d)){if(XT(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}}else{var h=d*d-4*u*f;if(XT(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=HT(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-VT(-y,KT):VT(y,KT),b=b<0?-VT(-b,KT):VT(b,KT);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*HT(u*u*u)),S=Math.acos(x)/3,C=HT(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+GT*Math.sin(S)))/(3*o),T=(-s+C*(w-GT*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function tE(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(XT(o)){if(ZT(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(XT(u))i[0]=-a/(2*o);else if(u>0){var d=HT(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function nE(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function Exe(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;qT[0]=c,qT[1]=l;for(var v=0;v<1;v+=.05)JT[0]=QT(e,n,i,o,v),JT[1]=QT(t,r,a,s,v),g=jw(qT,JT),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<WT);y++)m=d-f,h=d+f,JT[0]=QT(e,n,i,o,m),JT[1]=QT(t,r,a,s,m),g=jw(JT,qT),m>=0&&g<p?(d=m,p=g):(YT[0]=QT(e,n,i,o,h),YT[1]=QT(t,r,a,s,h),_=jw(YT,qT),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=QT(e,n,i,o,d),u[1]=QT(t,r,a,s,d)),HT(p)}function Dxe(e,t,n,r,i,a,o,s,c){for(var l=e,u=t,d=0,f=1/c,p=1;p<=c;p++){var m=p*f,h=QT(e,n,i,o,m),g=QT(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function rE(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function iE(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function Oxe(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(XT(a)){if(ZT(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(XT(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=HT(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function aE(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function oE(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function kxe(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;qT[0]=o,qT[1]=s;for(var f=0;f<1;f+=.05){JT[0]=rE(e,n,i,f),JT[1]=rE(t,r,a,f);var p=jw(qT,JT);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<WT);m++){var h=l-u,g=l+u;JT[0]=rE(e,n,i,h),JT[1]=rE(t,r,a,h);var p=jw(JT,qT);if(h>=0&&p<d)l=h,d=p;else{YT[0]=rE(e,n,i,g),YT[1]=rE(t,r,a,g);var _=jw(YT,qT);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=rE(e,n,i,l),c[1]=rE(t,r,a,l)),HT(d)}function Axe(e,t,n,r,i,a,o){for(var s=e,c=t,l=0,u=1/o,d=1;d<=o;d++){var f=d*u,p=rE(e,n,i,f),m=rE(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var jxe=/cubic-bezier\(([0-9,\.e ]+)\)/;function sE(e){var t=e&&jxe.exec(e);if(t){var n=t[1].split(`,`),r=+qC(n[0]),i=+qC(n[1]),a=+qC(n[2]),o=+qC(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:eE(0,r,a,1,e,s)&&QT(0,i,o,1,s[0])}}}var Mxe=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||nw,this.ondestroy=e.ondestroy||nw,this.onrestart=e.onrestart||nw,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused)this._pausedTime+=t;else{var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1){if(this.loop){var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}else return!0}return!1}},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=jC(e)?e:BT[e]||sE(e)},e}(),cE={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function lE(e){return e=Math.round(e),e<0?0:e>255?255:e}function Nxe(e){return e=Math.round(e),e<0?0:e>360?360:e}function uE(e){return e<0?0:e>1?1:e}function dE(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?lE(parseFloat(t)/100*255):lE(parseInt(t,10))}function fE(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?uE(parseFloat(t)/100):uE(parseFloat(t))}function pE(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function mE(e,t,n){return e+(t-e)*n}function hE(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function gE(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var _E=new fw(20),vE=null;function yE(e,t){vE&&gE(vE,t),vE=_E.put(e,vE||t.slice())}function bE(e,t){if(e){t||=[];var n=_E.get(e);if(n)return gE(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in cE)return gE(t,cE[r]),yE(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){hE(t,0,0,0,1);return}return hE(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),yE(e,t),t}if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){hE(t,0,0,0,1);return}return hE(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),yE(e,t),t}}else{var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?hE(t,+l[0],+l[1],+l[2],1):hE(t,0,0,0,1);u=fE(l.pop());case`rgb`:if(l.length>=3)return hE(t,dE(l[0]),dE(l[1]),dE(l[2]),l.length===3?u:fE(l[3])),yE(e,t),t;hE(t,0,0,0,1);return;case`hsla`:if(l.length!==4){hE(t,0,0,0,1);return}return l[3]=fE(l[3]),xE(l,t),yE(e,t),t;case`hsl`:if(l.length!==3){hE(t,0,0,0,1);return}return xE(l,t),yE(e,t),t;default:return}}hE(t,0,0,0,1)}}}function xE(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=fE(e[1]),i=fE(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],hE(t,lE(pE(o,a,n+1/3)*255),lE(pE(o,a,n)*255),lE(pE(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Pxe(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function SE(e,t){var n=bE(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return wE(n,n.length===4?`rgba`:`rgb`)}}function Fxe(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=bE(t[i]),s=bE(t[a]),c=r-i,l=wE([lE(mE(o[0],s[0],c)),lE(mE(o[1],s[1],c)),lE(mE(o[2],s[2],c)),uE(mE(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}function CE(e,t,n,r){var i=bE(e);if(e)return i=Pxe(i),t!=null&&(i[0]=Nxe(jC(t)?t(i[0]):t)),n!=null&&(i[1]=fE(jC(n)?n(i[1]):n)),r!=null&&(i[2]=fE(jC(r)?r(i[2]):r)),wE(xE(i),`rgba`)}function wE(e,t){if(e&&e.length){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function TE(e,t){var n=bE(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var EE=new fw(100);function DE(e){if(MC(e)){var t=EE.get(e);return t||(t=SE(e,-.1),EE.put(e,t)),t}if(zC(e)){var n=yC({},e);return n.colorStops=wC(e.colorStops,function(e){return{offset:e.offset,color:SE(e.color,-.1)}}),n}return e}function Ixe(e){return e.type===`linear`}function Lxe(e){return e.type===`radial`}(function(){return typeof Buffer<`u`&&typeof Buffer.from==`function`?function(e){return Buffer.from(e).toString(`base64`)}:typeof btoa==`function`&&typeof unescape==`function`&&typeof encodeURIComponent==`function`?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null}})();var OE=Array.prototype.slice;function kE(e,t,n){return(t-e)*n+e}function AE(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=kE(t[a],n[a],r);return e}function Rxe(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=kE(t[o][s],n[o][s],r)}return e}function jE(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function ME(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function zxe(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function Bxe(e,t,n){var r=e,i=t;if(r.push&&i.push){var a=r.length,o=i.length;if(a!==o){if(a>o)r.length=o;else for(var s=a;s<o;s++)r.push(n===1?i[s]:OE.call(i[s]))}for(var c=r[0]&&r[0].length,s=0;s<r.length;s++)if(n===1)isNaN(r[s])&&(r[s]=i[s]);else for(var l=0;l<c;l++)isNaN(r[s][l])&&(r[s][l]=i[s][l])}}function NE(e){if(CC(e)){var t=e.length;if(CC(e[0])){for(var n=[],r=0;r<t;r++)n.push(OE.call(e[r]));return n}return OE.call(e)}return e}function PE(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],`rgba(`+e.join(`,`)+`)`}function Vxe(e){return CC(e&&e[0])?2:1}var FE=0,IE=1,LE=2,RE=3,zE=4,BE=5,VE=6;function HE(e){return e===zE||e===BE}function UE(e){return e===IE||e===LE}var WE=[0,0,0,0],Hxe=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=VE,s=t;if(CC(t)){var c=Vxe(t);o=c,(c===1&&!PC(t[0])||c===2&&!PC(t[0][0]))&&(a=!0)}else if(PC(t)&&!BC(t))o=FE;else if(MC(t)){if(!isNaN(+t))o=FE;else{var l=bE(t);l&&(s=l,o=RE)}}else if(zC(t)){var u=yC({},s);u.colorStops=wC(t.colorStops,function(e){return{offset:e.offset,color:bE(e.color)}}),Ixe(t)?o=zE:Lxe(t)&&(o=BE),s=u}i===0?this.valType=o:(o!==this.valType||o===VE)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=jC(n)?n:BT[n]||sE(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=UE(r),c=HE(r),l=0;l<i;l++){var u=n[l],d=u.value,f=a.value;u.percent=u.time/e,o||(s&&l!==i-1?Bxe(d,f,r):c&&zxe(d.colorStops,f.colorStops))}if(!o&&r!==BE&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,l=0;l<i;l++)r===FE?n[l].additiveValue=n[l].value-p:r===RE?n[l].additiveValue=jE([],n[l].value,p,-1):UE(r)&&(n[l].additiveValue=r===IE?jE([],n[l].value,p,-1):ME([],n[l].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,r=n?`additiveValue`:`value`,i=this.valType,a=this.keyframes,o=a.length,s=this.propName,c=i===RE,l,u=this._lastFr,d=Math.min,f,p;if(o===1)f=p=a[0];else{if(t<0)l=0;else if(t<this._lastFrP){for(l=d(u+1,o-1);l>=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;l<o&&!(a[l].percent>t);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?WE:e[s];if((UE(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(UE(i))i===IE?AE(g,f[r],p[r],h):Rxe(g,f[r],p[r],h);else if(HE(i)){var _=f[r],v=p[r],y=i===zE;e[s]={type:y?`linear`:`radial`,x:kE(_.x,v.x,h),y:kE(_.y,v.y,h),colorStops:wC(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:kE(e.offset,n.offset,h),color:PE(AE([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=kE(_.x2,v.x2,h),e[s].y2=kE(_.y2,v.y2,h)):e[s].r=kE(_.r,v.r,h)}else if(c)AE(g,f[r],p[r],h),n||(e[s]=PE(g));else{var b=kE(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===FE?e[n]=e[n]+r:t===RE?(bE(e[n],WE),jE(WE,WE,r,1),e[n]=PE(WE)):t===IE?jE(e[n],e[n],r,1):t===LE&&ME(e[n],e[n],r,1)},e}(),GE=function(){function e(e,t,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r?gC(`Can' use additive animation on looped animation.`):(this._additiveAnimators=r,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,DC(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a<n.length;a++){var o=n[a],s=i[o];if(!s){s=i[o]=new Hxe(o);var c=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes,d=u[u.length-1];c=d&&d.value,l.valType===RE&&c&&(c=PE(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,NE(c),r),this._trackKeys.push(o)}s.addKeyframe(e,NE(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],o=this._tracks[a],s=this._getAdditiveTrack(a),c=o.keyframes,l=c.length;if(o.prepare(r,s),o.needsAnimate()){if(!this._allowDiscrete&&o.discrete){var u=c[l-1];u&&(t._target[o.propName]=u.rawValue),o.setFinished()}else n.push(o)}}if(n.length||this._force){var d=new Mxe({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,a=0;a<r.length;a++)if(r[a]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(var a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(var a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||=[],this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||=[],this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||=[],this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return wC(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var a=n[e[i]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var o=!0,i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t||=this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],a=this._tracks[i];if(a&&!a.isFinished()){var o=a.keyframes,s=o[n?0:o.length-1];s&&(e[i]=NE(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=DC(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}(),KE=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},c=i[e].length-1,l=i[e][c];return l&&l.callAtLast?i[e].splice(c,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,a=n[e].length;i<a;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=n.length,o=0;o<a;o++){var s=n[o];if(!(r&&r.filter&&s.query!=null&&!r.filter(e,s.query)))switch(i){case 0:s.h.call(s.ctx);break;case 1:s.h.call(s.ctx,t[0]);break;case 2:s.h.call(s.ctx,t[0],t[1]);break;default:s.h.apply(s.ctx,t)}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=t[i-1],o=n.length,s=0;s<o;s++){var c=n[s];if(!(r&&r.filter&&c.query!=null&&!r.filter(e,c.query)))switch(i){case 0:c.h.call(a);break;case 1:c.h.call(a,t[0]);break;case 2:c.h.call(a,t[0],t[1]);break;default:c.h.apply(a,t.slice(1,i-1))}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}(),qE=1;rw.hasGlobalWindow&&(qE=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var JE=qE,YE=.4,XE=`#333`,ZE=`#ccc`,Uxe=`#eee`,QE=`__zr_normal__`,$E=RT.concat([`ignore`]),Wxe=TC(RT,function(e,t){return e[t]=!0,e},{ignore:!1}),eD={},Gxe=new Yw(0,0,0,0),tD=[],nD=function(){function e(e){this.id=hC(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case`horizontal`:t=0;break;case`vertical`:e=0}var r=this.transform;r||=this.transform=[1,0,0,1,0,0],r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||={};var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var c=!1;i.copyTransform(t);var l=n.position!=null,u=n.autoOverflowArea,d=void 0;if((u||l)&&(d=Gxe,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(eD,n,d):hT(eD,n,d),i.x=eD.x,i.y=eD.y,a=eD.align,o=eD.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var p=void 0,m=void 0;f===`center`?(p=d.width*.5,m=d.height*.5):(p=mT(f[0],d.width),m=mT(f[1],d.height)),c=!0,i.originX=-i.x+p+(r?0:d.x),i.originY=-i.y+m+(r?0:d.y)}}n.rotation!=null&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],c||(i.originX=-h[0],i.originY=-h[1]));var g=this._innerTextDefaultStyle||={};if(u){var _=g.overflowRect=g.overflowRect||new Yw(0,0,0,0);i.getLocalTransform(tD),Cw(tD,tD),Yw.copy(_,d),_.applyTransform(tD)}else g.overflowRect=null;var v=n.inside==null?typeof n.position==`string`&&n.position.indexOf(`inside`)>=0:n.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y===`auto`)&&(y=this.getInsideTextFill()),(b==null||b===`auto`)&&(b=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y===`auto`)&&(y=this.getOutsideFill()),(b==null||b===`auto`)&&(b=this.getOutsideStroke(y),x=!0)),y||=`#000`,(y!==g.fill||b!==g.stroke||x!==g.autoStroke||a!==g.align||o!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=b,g.autoStroke=x,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ZE:XE},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&bE(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,wE(n,`rgba`)},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){e===`textConfig`?this.setTextConfig(t):e===`textContent`?this.setTextContent(t):e===`clipPath`?this.setClipPath(t):e===`extra`?(this.extra=this.extra||{},yC(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(FC(e))for(var n=DC(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==`__zr_normal__`)){var a=r.targetName,o=a?t[a]:t;r.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||=this._normalState={},e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,$E)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(QE,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===QE;if(this.hasState()||!i){var a=this.currentStates,o=this.stateTransition;if(!(xC(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],!s&&!i)gC(`State `+e+` not exists.`);else{i||this.saveCurrentToNormalState(s);var c=this._textContent,l=oD(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,cD(this,n,o),o);var u=this._textGuide;return c&&c.useState(e,t,n,!!l),u&&u.useState(e,t,n,!!l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),s}}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s<a;s++)if(e[s]!==i[s]){o=!1;break}}if(o)return;for(var s=0;s<a;s++){var c=e[s],l=void 0;this.stateProxy&&(l=this.stateProxy(c,e)),l||=this.states[c],l&&r.push(l)}var u=r[a-1],d=this._textContent,f=oD(this,d,u,n);f&&!this.__inHover&&(this.__inHover=f);var p=this._mergeStates(r),m=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(`,`),p,this._normalState,!1,cD(this,t,m),m);var h=this._textGuide;d&&d.useStates(e,t,!!f),h&&h.useStates(e,t,!!f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2)}},e.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=xC(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=xC(r,e),a=xC(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r<e.length;r++){var i=e[r];yC(t,i),i.textConfig&&(n||={},yC(n,i.textConfig))}return n&&(t.textConfig=n),t},e.prototype._applyStateObj=function(e,t,n,r,i,a){if(this.__inHover!==1){var o=!(t&&r);t&&t.textConfig?(this.textConfig=yC({},r?this.textConfig:n.textConfig),yC(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,l=0;l<$E.length;l++){var u=$E[l],d=i&&Wxe[u];t&&t[u]!=null?d?(c=!0,s[u]=t[u]):this[u]=t[u]:o&&n[u]!=null&&(d?(c=!0,s[u]=n[u]):this[u]=n[u])}if(!i)for(var l=0;l<this.animators.length;l++){var f=this.animators[l],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(t||n)[p]:t||n)}c&&this._transitionState(e,s,a)}},e.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new FT,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||={},yC(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=new GE(e?this[e]:this,t,n);return e&&(r.targetName=e),this.addAnimator(r,e),r},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during(function(){r.updateDuringAnimation(t)}).done(function(){var t=r.animators,n=xC(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a<r;a++){var o=n[a];!e||e===o.scope?o.stop(t):i.push(o)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){rD(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){rD(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=rD(this,t,n,r),a=0;a<i.length;a++)i[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type=`element`,t.name=``,t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=!1,t.__inHover=0,t.__dirty=1;function n(e,n,r,i){Object.defineProperty(t,e,{get:function(){if(!this[n]){var e=this[n]=[];a(this,e)}return this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,a(this,e)}});function a(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}}Object.defineProperty&&(n(`position`,`_legacyPos`,`x`,`y`),n(`scale`,`_legacyScale`,`scaleX`,`scaleY`),n(`origin`,`_legacyOrigin`,`originX`,`originY`))})(),e}();SC(nD,KE),SC(nD,FT);function rD(e,t,n,r,i){n||={};var a=[];aD(e,``,e,t,n,r,a,i);var o=a.length,s=!1,c=n.done,l=n.aborted,u=function(){s=!0,o--,o<=0&&(s?c&&c():l&&l())},d=function(){o--,o<=0&&(s?c&&c():l&&l())};o||c&&c(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f<a.length;f++){var p=a[f];u&&p.done(u),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function iD(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function Kxe(e){return CC(e[0])}function qxe(e,t,n){if(CC(t[n])){if(CC(e[n])||(e[n]=[]),LC(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),iD(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(Kxe(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?iD(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else iD(a,i,o);a.length=i.length}}else e[n]=t[n]}function Jxe(e,t){return e===t||CC(e)&&CC(t)&&Yxe(e,t)}function Yxe(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function aD(e,t,n,r,i,a,o,s){for(var c=DC(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!FC(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_])){if(FC(v)&&!CC(v)&&!zC(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}aD(e,_,n[_],v,i,a&&a[_],o,s)}else h.push(_)}else s||(n[_]=v,e.updateDuringAnimation(t),h.push(_))}var y=h.length;if(!d&&y)for(var b=0;b<m.length;b++){var x=m[b];if(x.targetName===t&&x.stopTracks(h)){var S=xC(m,x);m.splice(S,1)}}if(i.force||(h=EC(h,function(e){return!Jxe(r[e],n[e])}),y=h.length),y>0||i.force&&!o.length){var C=void 0,w=void 0,T=void 0;if(s){w={},f&&(C={});for(var b=0;b<y;b++){var _=h[b];w[_]=n[_],f?C[_]=r[_]:n[_]=r[_]}}else if(f){T={};for(var b=0;b<y;b++){var _=h[b];T[_]=NE(n[_]),qxe(n,r,_)}}var x=new GE(n,!1,!1,d?EC(m,function(e){return e.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),f&&C&&x.whenWithKeys(0,C,h),T&&x.whenWithKeys(0,T,h),x.whenWithKeys(l??500,s?w:r,h).delay(u||0),e.addAnimator(x,t),o.push(x)}}function oD(e,t,n,r){return!(n&&n.hoverLayer||r)||sD(e)||t&&sD(t)?0:1}function sD(e){return e.type===`text`||e.type===`tspan`}function cD(e,t,n){return!t&&!e.__inHover&&n&&n.duration>0}var lD=`__zr_style_`+Math.round(Math.random()*10),uD={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},dD={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};uD[lD]=!0;var fD=[`z`,`z2`,`invisible`],Xxe=[`invisible`],pD=function(e){iC(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=DC(t),r=0;r<n.length;r++){var i=n[r];i===`style`?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(e){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Zxe(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1}if(r&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,o=r.shadowOffsetY||0;e=this._paintRect||=new Yw(0,0,0,0),t?Yw.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=i*2+Math.abs(a),e.height+=i*2+Math.abs(o),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+o-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+s*2),e.height=Math.ceil(e.height+1+s*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new Yw(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate(`style`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`style`?this.style?this.setStyle(n):this.useStyle(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setStyle=function(e,t){return typeof e==`string`?this.style[e]=t:yC(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&=null},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&2)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return $C(uD,e)},t.prototype.useStyle=function(e){e[lD]||(e=this.createStyle(e)),this.style=e,this.dirtyStyle()},t.prototype._useHoverStyle=function(e){this.__hoverStyle=e},t.prototype.isStyleObject=function(e){return e[lD]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,fD)},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c=this.__inHover===1,l;if(n&&n.style?a?i?l=n.style:(l=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(l,n.style)):s&&(l=r.style),l){if(a){var u=this.style;if(this.style=this.createStyle(s?{}:u),s)for(var d=DC(u),f=0;f<d.length;f++){var p=d[f];p in l&&(l[p]=l[p],this.style[p]=u[p])}for(var m=DC(l),f=0;f<m.length;f++){var p=m[f];this.style[p]=this.style[p]}this._transitionState(t,{style:l},o,this.getAnimationStyleProps())}else c?this._useHoverStyle(l):this.useStyle(l)}if(!c)for(var h=this.__inHover?Xxe:fD,f=0;f<h.length;f++){var p=h[f];n&&n[p]!=null?this[p]=n[p]:s&&r[p]!=null&&(this[p]=r[p])}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.style&&(r||={},this._mergeStyle(r,a.style))}return r&&(n.style=r),n},t.prototype._mergeStyle=function(e,t){return yC(e,t),e},t.prototype.getAnimationStyleProps=function(){return dD},t.initDefaultProps=(function(){var e=t.prototype;e.type=`displayable`,e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor=`pointer`,e.rectHover=!1,e.incremental=0,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3})(),t}(nD),mD=new Yw(0,0,0,0),hD=new Yw(0,0,0,0);function Zxe(e,t,n){return mD.copy(e.getBoundingRect()),e.transform&&mD.applyTransform(e.transform),hD.width=t,hD.height=n,!mD.intersect(hD)}var gD=Math.min,_D=Math.max,vD=Math.sin,yD=Math.cos,bD=Math.PI*2,xD=ww(),SD=ww(),CD=ww();function wD(e,t,n){if(e.length!==0){for(var r=e[0],i=r[0],a=r[0],o=r[1],s=r[1],c=1;c<e.length;c++)r=e[c],i=gD(i,r[0]),a=_D(a,r[0]),o=gD(o,r[1]),s=_D(s,r[1]);t[0]=i,t[1]=o,n[0]=a,n[1]=s}}function TD(e,t,n,r,i,a){i[0]=gD(e,n),i[1]=gD(t,r),a[0]=_D(e,n),a[1]=_D(t,r)}var ED=[],DD=[];function Qxe(e,t,n,r,i,a,o,s,c,l){var u=tE,d=QT,f=u(e,n,i,o,ED);c[0]=1/0,c[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var p=0;p<f;p++){var m=d(e,n,i,o,ED[p]);c[0]=gD(m,c[0]),l[0]=_D(m,l[0])}f=u(t,r,a,s,DD);for(var p=0;p<f;p++){var h=d(t,r,a,s,DD[p]);c[1]=gD(h,c[1]),l[1]=_D(h,l[1])}c[0]=gD(e,c[0]),l[0]=_D(e,l[0]),c[0]=gD(o,c[0]),l[0]=_D(o,l[0]),c[1]=gD(t,c[1]),l[1]=_D(t,l[1]),c[1]=gD(s,c[1]),l[1]=_D(s,l[1])}function $xe(e,t,n,r,i,a,o,s){var c=aE,l=rE,u=_D(gD(c(e,n,i),1),0),d=_D(gD(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=gD(e,i,f),o[1]=gD(t,a,p),s[0]=_D(e,i,f),s[1]=_D(t,a,p)}function eSe(e,t,n,r,i,a,o,s,c){var l=Pw,u=Fw,d=Math.abs(i-a);if(d%bD<1e-4&&d>1e-4)s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;else{if(xD[0]=yD(i)*n+e,xD[1]=vD(i)*r+t,SD[0]=yD(a)*n+e,SD[1]=vD(a)*r+t,l(s,xD,SD),u(c,xD,SD),i%=bD,i<0&&(i+=bD),a%=bD,a<0&&(a+=bD),i>a&&!o?a+=bD:i<a&&o&&(i+=bD),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(CD[0]=yD(p)*n+e,CD[1]=vD(p)*r+t,l(s,CD,s),u(c,CD,c))}}var OD={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},kD=[],AD=[],jD=[],MD=[],ND=[],PD=[],FD=Math.min,ID=Math.max,LD=Math.cos,RD=Math.sin,zD=Math.abs,BD=Math.PI,VD=BD*2,HD=typeof Float32Array<`u`,UD=[];function WD(e){return Math.round(e/BD*1e8)/1e8%2*BD}function GD(e,t){var n=WD(e[0]);n<0&&(n+=VD);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=VD?i=n+VD:t&&n-i>=VD?i=n-VD:!t&&n>i?i=n+(VD-WD(n-i)):t&&n<i&&(i=n-(VD-WD(i-n))),e[0]=n,e[1]=i}var KD=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){n||=0,n>0&&(this._ux=zD(n/JE/e)||0,this._uy=zD(n/JE/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(OD.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=zD(e-this._xi),r=zD(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(OD.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(OD.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(OD.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),UD[0]=r,UD[1]=i,GD(UD,a),r=UD[0],i=UD[1];var o=i-r;return this.addData(OD.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=LD(i)*n+e,this._yi=RD(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(OD.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(OD.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&HD&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t}},e.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();var a=this.data;if(HD&&(a instanceof Float32Array||!a)&&(this.data=new Float32Array(r+n),r>0&&a))for(var o=0;o<r;o++)this.data[o]=a[o];for(var i=0;i<t;i++)for(var s=e[i].data,o=0;o<s.length;o++)this.data[r++]=s[o];this._len=r}},e.prototype.addData=function(e,t,n,r,i,a,o,s,c){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var u=0;u<arguments.length;u++)l[this._len++]=arguments[u]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,HD&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){jD[0]=jD[1]=ND[0]=ND[1]=Number.MAX_VALUE,MD[0]=MD[1]=PD[0]=PD[1]=-Number.MAX_VALUE;for(var e=this.data,t=0,n=0,r=0,i=0,a=0;a<this._len;){var o=e[a++],s=a===1;switch(s&&(t=e[a],n=e[a+1],r=t,i=n),o){case OD.M:t=r=e[a++],n=i=e[a++],ND[0]=r,ND[1]=i,PD[0]=r,PD[1]=i;break;case OD.L:TD(t,n,e[a],e[a+1],ND,PD),t=e[a++],n=e[a++];break;case OD.C:Qxe(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],ND,PD),t=e[a++],n=e[a++];break;case OD.Q:$xe(t,n,e[a++],e[a++],e[a],e[a+1],ND,PD),t=e[a++],n=e[a++];break;case OD.A:var c=e[a++],l=e[a++],u=e[a++],d=e[a++],f=e[a++],p=e[a++]+f;a+=1;var m=!e[a++];s&&(r=LD(f)*u+c,i=RD(f)*d+l),eSe(c,l,u,d,f,p,m,ND,PD),t=LD(p)*u+c,n=RD(p)*d+l;break;case OD.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];TD(r,i,r+h,i+g,ND,PD);break;case OD.Z:t=r,n=i}Pw(jD,jD,ND),Fw(MD,MD,PD)}return a===0&&(jD[0]=jD[1]=MD[0]=MD[1]=0),new Yw(jD[0],jD[1],MD[0]-jD[0],MD[1]-jD[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,s=0;this._pathSegLen||=[];for(var c=this._pathSegLen,l=0,u=0,d=0;d<t;){var f=e[d++],p=d===1;p&&(i=e[d],a=e[d+1],o=i,s=a);var m=-1;switch(f){case OD.M:i=o=e[d++],a=s=e[d++];break;case OD.L:var h=e[d++],g=e[d++],_=h-i,v=g-a;(zD(_)>n||zD(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case OD.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=Dxe(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case OD.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=Axe(i,a,y,b,h,g,10),i=h,a=g;break;case OD.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=LD(D)*T+C,s=RD(D)*E+w),m=ID(T,E)*FD(VD,Math.abs(O)),i=LD(k)*T+C,a=RD(k)*E+w;break;case OD.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case OD.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x<a;){var S=n[x++],C=x===1;switch(C&&(c=n[x],l=n[x+1],o=c,s=l),S!==OD.L&&v>0&&(e.lineTo(y,b),v=0),S){case OD.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case OD.L:u=n[x++],d=n[x++];var w=zD(u-c),T=zD(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case OD.C:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++],te=n[x++],M=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;nE(c,k,j,te,D,kD),nE(l,A,ee,M,D,AD),e.bezierCurveTo(kD[1],AD[1],kD[2],AD[2],kD[3],AD[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,ee,te,M),c=te,l=M;break;case OD.Q:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;oE(c,k,j,D,kD),oE(l,A,ee,D,AD),e.quadraticCurveTo(kD[1],AD[1],kD[2],AD[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,ee),c=j,l=ee;break;case OD.A:var ne=n[x++],re=n[x++],ie=n[x++],N=n[x++],P=n[x++],ae=n[x++],oe=n[x++],se=!n[x++],ce=ie>N?ie:N,le=zD(ie-N)>.001,ue=P+ae,de=!1;if(f){var E=p[g++];h+E>_&&(ue=P+ae*(_-h)/E,de=!0),h+=E}if(le&&e.ellipse?e.ellipse(ne,re,ie,N,oe,P,ue,se):e.arc(ne,re,ce,P,ue,se),de)break lo;C&&(o=LD(P)*ie+ne,s=RD(P)*N+re),c=LD(ue)*ie+ne,l=RD(ue)*N+re;break;case OD.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var fe=n[x++],pe=n[x++];if(f){var E=p[g++];if(h+E>_){var me=_-h;e.moveTo(u,d),e.lineTo(u+FD(me,fe),d),me-=fe,me>0&&e.lineTo(u+fe,d+FD(me,pe)),me-=pe,me>0&&e.lineTo(u+ID(fe-me,0),d+pe),me-=fe,me>0&&e.lineTo(u,d+ID(pe-me,0));break lo}h+=E}e.rect(u,d,fe,pe);break;case OD.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=OD,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function qD(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e!==n)c=(t-r)/(e-n),l=(e*r-n*t)/(e-n);else return Math.abs(a-e)<=s/2;var u=c*a-o+l;return u*u/(c*c+1)<=s/2*s/2}function tSe(e,t,n,r,i,a,o,s,c,l,u){if(c===0)return!1;var d=c;return u>t+d&&u>r+d&&u>a+d&&u>s+d||u<t-d&&u<r-d&&u<a-d&&u<s-d||l>e+d&&l>n+d&&l>i+d&&l>o+d||l<e-d&&l<n-d&&l<i-d&&l<o-d?!1:Exe(e,t,n,r,i,a,o,s,l,u,null)<=d/2}function nSe(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;return c>t+l&&c>r+l&&c>a+l||c<t-l&&c<r-l&&c<a-l||s>e+l&&s>n+l&&s>i+l||s<e-l&&s<n-l&&s<i-l?!1:kxe(e,t,n,r,i,a,s,c,null)<=l/2}var JD=Math.PI*2;function YD(e){return e%=JD,e<0&&(e+=JD),e}var XD=Math.PI*2;function rSe(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;s-=e,c-=t;var u=Math.sqrt(s*s+c*c);if(u-l>n||u+l<n)return!1;if(Math.abs(r-i)%XD<1e-4)return!0;if(a){var d=r;r=YD(i),i=YD(d)}else r=YD(r),i=YD(i);r>i&&(i+=XD);var f=Math.atan2(c,s);return f<0&&(f+=XD),f>=r&&f<=i||f+XD>=r&&f+XD<=i}function ZD(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r||r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;(o===1||o===0)&&(s=r<t?.5:-.5);var c=o*(n-e)+e;return c===i?1/0:c>i?s:0}var QD=KD.CMD,$D=Math.PI*2,iSe=1e-4;function aSe(e,t){return Math.abs(e-t)<iSe}var eO=[-1,-1,-1],tO=[-1,-1];function oSe(){var e=tO[0];tO[0]=tO[1],tO[1]=e}function sSe(e,t,n,r,i,a,o,s,c,l){if(l>t&&l>r&&l>a&&l>s||l<t&&l<r&&l<a&&l<s)return 0;var u=eE(t,r,a,s,l,eO);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=eO[h],_=g===0||g===1?.5:1;QT(e,n,i,o,g)<c||(f<0&&(f=tE(t,r,a,s,tO),tO[1]<tO[0]&&f>1&&oSe(),p=QT(t,r,a,s,tO[0]),f>1&&(m=QT(t,r,a,s,tO[1]))),f===2?g<tO[0]?d+=p<t?_:-_:g<tO[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<tO[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function cSe(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var c=Oxe(t,r,a,s,eO);if(c===0)return 0;var l=aE(t,r,a);if(l>=0&&l<=1){for(var u=0,d=rE(t,r,a,l),f=0;f<c;f++){var p=eO[f]===0||eO[f]===1?.5:1,m=rE(e,n,i,eO[f]);m<o||(eO[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}var p=eO[0]===0||eO[0]===1?.5:1,m=rE(e,n,i,eO[0]);return m<o?0:a<t?p:-p}function lSe(e,t,n,r,i,a,o,s){if(s-=t,s>n||s<-n)return 0;var c=Math.sqrt(n*n-s*s);eO[0]=-c,eO[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=$D-1e-4){r=0,i=$D;var u=a?1:-1;return o>=eO[0]+e&&o<=eO[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=$D,i+=$D);for(var f=0,p=0;p<2;p++){var m=eO[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=$D+h),(h>=r&&h<=i||h+$D>=r&&h+$D<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(u=-u),f+=u)}}return f}function nO(e,t,n,r,i){for(var a=e.data,o=e.len(),s=0,c=0,l=0,u=0,d=0,f,p,m=0;m<o;){var h=a[m++],g=m===1;switch(h===QD.M&&m>1&&(n||(s+=ZD(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case QD.M:u=a[m++],d=a[m++],c=u,l=d;break;case QD.L:if(n){if(qD(c,l,a[m],a[m+1],t,r,i))return!0}else s+=ZD(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case QD.C:if(n){if(tSe(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=sSe(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case QD.Q:if(n){if(nSe(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=cSe(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case QD.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=ZD(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(rSe(_,v,b,x,x+S,C,t,w,i))return!0}else s+=lSe(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case QD.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(qD(u,d,f,d,t,r,i)||qD(f,d,f,p,t,r,i)||qD(f,p,u,p,t,r,i)||qD(u,p,u,d,t,r,i))return!0}else s+=ZD(f,d,f,p,r,i),s+=ZD(u,p,u,d,r,i);break;case QD.Z:if(n){if(qD(c,l,u,d,t,r,i))return!0}else s+=ZD(c,l,u,d,r,i);c=u,l=d}}return!n&&!aSe(l,d)&&(s+=ZD(c,l,u,d,r,i)||0),s!==0}function uSe(e,t,n){return nO(e,0,!1,t,n)}function dSe(e,t,n,r){return nO(e,t,!0,n,r)}var rO=bC({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},uD),fSe={style:bC({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},dD.style)},iO=RT.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),aO=function(e){iC(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<iO.length;++s)i[iO[s]]=this[iO[s]];i.__dirty|=1}else this._decalEl&&=null},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=DC(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=t[a];a===`style`?this.style?yC(this.style,o):this.useStyle(o):a===`shape`?yC(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!==`none`){if(MC(e)){var t=TE(e,0);return t>.5?XE:t>.2?Uxe:ZE}if(e)return ZE}return XE},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(MC(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==TE(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new KD(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),dSe(a,o/s,e,t)))return!0}if(this.hasFill())return uSe(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:yC(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return $C(rO,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=yC({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){if(e.prototype._applyStateObj.call(this,t,n,r,i,a,o),this.__inHover!==1){var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=yC({},r.shape),yC(c,n.shape)):(c=yC({},i?this.shape:r.shape),yC(c,n.shape)):s&&(c=r.shape),c){if(a){this.shape=yC({},this.shape);for(var l={},u=DC(c),d=0;d<u.length;d++){var f=u[d];typeof c[f]==`object`?this.shape[f]=c[f]:l[f]=c[f]}this._transitionState(t,{shape:l},o)}else this.shape=c,this.dirtyShape()}}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.shape&&(r||={},this._mergeStyle(r,a.shape))}return r&&(n.shape=r),n},t.prototype.getAnimationStyleProps=function(){return fSe},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){iC(n,t);function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return n.prototype.getDefaultStyle=function(){return _C(e.style)},n.prototype.getDefaultShape=function(){return _C(e.shape)},n}(t);for(var r in e)typeof e[r]==`function`&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=(function(){var e=t.prototype;e.type=`path`,e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=7})(),t}(pD),pSe=bC({strokeFirst:!0,font:Sbe,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},rO),oO=function(e){iC(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return DT(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return $C(pSe,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||=Txe(this.style),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t}(pD);oO.prototype.type=`tspan`;var mSe=bC({x:0,y:0},uD),hSe={style:bC({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},dD.style)};function gSe(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var sO=function(e){iC(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return $C(mSe,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=gSe(t.image)?t.image:this.__image;if(!r)return 0;var i=e===`width`?`height`:`width`,a=t[i];return a==null?r[e]:r[e]/r[i]*a},t.prototype.getWidth=function(){return this._getSize(`width`)},t.prototype.getHeight=function(){return this._getSize(`height`)},t.prototype.getAnimationStyleProps=function(){return hSe},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||=new Yw(e.x||0,e.y||0,this.getWidth(),this.getHeight()),this._rect},t}(pD);sO.prototype.type=`image`;function _Se(e,t){var n=t.x,r=t.y,i=t.width,a=t.height,o=t.r,s,c,l,u;i<0&&(n+=i,i=-i),a<0&&(r+=a,a=-a),typeof o==`number`?s=c=l=u=o:o instanceof Array?o.length===1?s=c=l=u=o[0]:o.length===2?(s=l=o[0],c=u=o[1]):o.length===3?(s=o[0],c=u=o[1],l=o[2]):(s=o[0],c=o[1],l=o[2],u=o[3]):s=c=l=u=0;var d;s+c>i&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5),e.closePath()}var cO=Math.round;function lO(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s&&(cO(r*2)===cO(i*2)&&(e.x1=e.x2=dO(r,s,!0)),cO(a*2)===cO(o*2)&&(e.y1=e.y2=dO(a,s,!0))),e}}function uO(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s&&(e.x=dO(r,s,!0),e.y=dO(i,s,!0),e.width=Math.max(dO(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(dO(i+o,s,!1)-e.y,o===0?0:1)),e}}function dO(e,t,n){if(!t)return e;var r=cO(e*2);return(r+cO(t))%2==0?r/2:(r+(n?1:-1))/2}var vSe=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),ySe={},fO=function(e){iC(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new vSe},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=uO(ySe,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?_Se(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(aO);fO.prototype.type=`rect`;var pO={fill:`#000`},mO=2,hO={},bSe={style:bC({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},dD.style)},gO=function(e){iC(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=pO,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,TSe(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new Yw(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),r||=e.clone(),r.union(e)):(r||=o.clone(),r.union(o))}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||pO},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return yC(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=DC(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},yC(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return bSe},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return t&&t instanceof e||(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||`12px sans-serif`,n=e.padding,r=this._defaultStyle,i=e.x||0,a=e.y||0,o=e.align||r.align||`left`,s=e.verticalAlign||r.verticalAlign||`top`;ST(hO,r.overflowRect,i,a,o,s),i=hO.baseX,a=hO.baseY;var c=vxe(CO(e),e,hO.outerWidth,hO.outerHeight),l=wO(e),u=!!e.backgroundColor,d=c.outerHeight,f=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var h=i,g=fT(a,c.contentHeight,s);if(l||n){var _=dT(i,f,o),v=fT(a,d,s);l&&this._renderBackground(e,e,_,v,f,d)}g+=m/2,n&&(h=SO(i,o,n),s===`top`?g+=n[0]:s===`bottom`&&(g-=n[2]));for(var y=0,b=!1,x=!1,S=xO(`fill`in e?e.fill:(x=!0,r.fill)),C=bO(`stroke`in e?e.stroke:!u&&(!r.autoStroke||x)?(y=mO,b=!0,r.stroke):null),w=e.textShadowBlur>0,T=0;T<p.length;T++){var E=this._getOrCreateChild(oO),D=E.createStyle();E.useStyle(D),D.text=p[T],D.x=h,D.y=g,o&&(D.textAlign=o),D.textBaseline=`middle`,D.opacity=e.opacity,D.strokeFirst=!0,w&&(D.shadowBlur=e.textShadowBlur||0,D.shadowColor=e.textShadowColor||`transparent`,D.shadowOffsetX=e.textShadowOffsetX||0,D.shadowOffsetY=e.textShadowOffsetY||0),D.stroke=C,D.fill=S,C&&(D.lineWidth=e.lineWidth||y,D.lineDash=e.lineDash,D.lineDashOffset=e.lineDashOffset||0),D.font=t,vO(D,e),g+=m,E.setBoundingRect(ET(D,c.contentWidth,c.calculatedLineHeight,b?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,t=this._defaultStyle,n=e.align||t.align,r=e.verticalAlign||t.verticalAlign,i=e.x||0,a=e.y||0;ST(hO,t.overflowRect,i,a,n,r),i=hO.baseX,a=hO.baseY;var o=xxe(CO(e),e,hO.outerWidth,hO.outerHeight,n),s=o.width,c=o.outerWidth,l=o.outerHeight,u=e.padding;this.isTruncated=!!o.isTruncated;var d=dT(i,c,n),f=fT(a,l,r),p=d,m=f;u&&(p+=u[3],m+=u[0]);var h=p+s;wO(e)&&this._renderBackground(e,e,d,f,c,l);for(var g=!!e.backgroundColor,_=0;_<o.lines.length;_++){for(var v=o.lines[_],y=v.tokens,b=y.length,x=v.lineHeight,S=v.width,C=0,w=p,T=h,E=b-1,D=void 0;C<b&&(D=y[C],!D.align||D.align===`left`);)this._placeToken(D,e,x,m,w,`left`,g),S-=D.width,w+=D.width,C++;for(;E>=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(s-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&wO(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=SO(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(oO),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=xO(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=bO(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=mO,_=!0,m.stroke):null),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=UC(s.opacity,t.opacity,1),vO(p,s),y&&(p.lineWidth=UC(s.lineWidth,t.lineWidth,g),p.lineDash=HC(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(ET(p,e.contentWidth,e.contentHeight,_?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(fO),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=HC(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(sO),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=HC(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=UC(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return wSe(e)&&(t=[e.fontStyle,e.fontWeight,CSe(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&qC(t)||e.textFont||e.font},t}(pD),xSe={left:!0,right:1,center:1},SSe={top:1,bottom:1,middle:1},_O=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function CSe(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function vO(e,t){for(var n=0;n<_O.length;n++){var r=_O[n],i=t[r];i!=null&&(e[r]=i)}}function wSe(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function TSe(e){return yO(e),Z(e.rich,yO),e}function yO(e){if(e){e.font=gO.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||xSe[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||SSe[n]?n:`top`,e.padding&&=GC(e.padding)}}function bO(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function xO(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function SO(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function CO(e){var t=e.text;return t!=null&&(t+=``),t}function wO(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var TO=1e-4,EO=20;function ESe(e){return e.replace(/^\s+|\s+$/g,``)}var DO=Math.min,OO=Math.max,kO=Math.abs,AO=Math.round,jO=Math.floor,MO=Math.ceil,NO=Math.pow,PO=Math.log,FO=Math.LN10,DSe=Math.PI,OSe=Math.random;function IO(e,t,n,r){var i=t[0],a=t[1],o=n[0],s=n[1],c=a-i,l=s-o;if(c===0)return l===0?o:(o+s)/2;if(r){if(c>0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}var LO=kSe;function kSe(e,t,n){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`}return RO(e,t,n)}function RO(e,t,n){return MC(e)?ASe(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function ASe(e){return!!ESe(e).match(/%$/)}function zO(e,t,n){return isNaN(t)?n?``+e:+e:(t=DO(OO(0,t),EO),e=(+e).toFixed(t),n?e:+e)}function BO(e){return e.sort(function(e,t){return e-t}),e}function VO(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(AO(e*t)/t===e)return n}return jSe(e)}function jSe(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`);return OO(0,(a<0?0:i-1-a)-r)}function HO(e,t,n){var r=kO(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=PO(2*kO(n||1)*kO(r))/FO,a=PO(kO(t))/FO,o=OO(0,MO(-i+a));return isFinite(o)||(o=NaN),o}function MSe(e,t){var n=TC(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(n===0)return[];for(var r=NO(10,t),i=wC(e,function(e){return(isNaN(e)?0:e)/n*r*100}),a=r*100,o=wC(i,function(e){return jO(e)}),s=TC(o,function(e,t){return e+t},0),c=wC(i,function(e,t){return e-o[t]});s<a;){for(var l=-1/0,u=null,d=0,f=c.length;d<f;++d)c[d]>l&&(l=c[d],u=d);++o[u],c[u]=0,++s}return wC(o,function(e){return e/r})}function UO(e,t){var n=OO(VO(e),VO(t)),r=e+t;return n>EO?r:zO(r,n)}var WO=NO(2,53)-1;function GO(e){var t=DSe*2;return(e%t+t)%t}function KO(e){return e>-TO&&e<TO}var NSe=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function qO(e){if(e instanceof Date)return e;if(MC(e)){var t=NSe.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!==`Z`&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return new Date(+t[1],(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return e==null?new Date(NaN):new Date(AO(e))}function JO(e){return NO(10,YO(e))}function YO(e){if(e===0)return 0;var t=jO(PO(e)/FO);return e/NO(10,t)>=10&&t++,t}function XO(e,t){var n=YO(e),r=NO(10,n),i=e/r;return e=(t===2?1:t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,zO(e,-n)}function ZO(e){var t=parseFloat(e);return t==e&&(t!==0||!MC(e)||e.indexOf(`x`)<=0)?t:NaN}function QO(e){return!isNaN(ZO(e))}function $O(){return AO(OSe()*9)}function ek(e,t){return t===0?e:ek(t,e%t)}function tk(e,t){return e==null?t:t==null?e:e*t/ek(e,t)}function nk(e){return e!=null&&isFinite(e)}var rk={},PSe=typeof console<`u`&&console.warn&&console.log;function FSe(e,t,n){if(PSe&&n){if(rk[t])return;rk[t]=!0}}function ik(e,t){FSe(`error`,e,t)}function ak(e){throw Error(e)}function ok(e,t,n){return(t-e)*n+e}var sk=`series\0`,ck=`\0_ec_\0`;function lk(e){return e instanceof Array?e:e==null?[]:[e]}function uk(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var a=n[r];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var dk=`fontStyle.fontWeight.fontSize.fontFamily.rich.tag.color.textBorderColor.textBorderWidth.width.height.lineHeight.align.verticalAlign.baseline.shadowColor.shadowBlur.shadowOffsetX.shadowOffsetY.textShadowColor.textShadowBlur.textShadowOffsetX.textShadowOffsetY.backgroundColor.borderColor.borderWidth.borderRadius.padding`.split(`.`);function fk(e){return FC(e)&&!AC(e)&&!(e instanceof Date)?e.value:e}function ISe(e){return FC(e)&&!(e instanceof Array)}function LSe(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=QC();Z(t,function(e,n){FC(e)||(t[n]=null)});var s=RSe(e,o,n);return(r||i)&&zSe(s,e,o,t),r&&BSe(s,t),r||i?VSe(s,t,i):a&&HSe(s,t),USe(s),s}function RSe(e,t,n){var r=[];if(n===`replaceAll`)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),r.push({existing:n===`replaceMerge`||_k(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function zSe(e,t,n,r){Z(r,function(i,a){if(i&&i.id!=null){var o=mk(i.id),s=n.get(o);if(s!=null){var c=e[s];KC(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}function BSe(e,t){Z(t,function(n,r){if(n&&n.name!=null)for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||n.id==null)&&!_k(n)&&!_k(a)&&pk(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function VSe(e,t,n){Z(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||_k(r.existing)||r.existing&&t.id!=null&&!pk(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function HSe(e,t){Z(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function USe(e){var t=QC();Z(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),Z(e,function(e){var n=e.newOption;KC(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,`id duplicates: `+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),Z(e,function(e,n){var r=e.existing,i=e.newOption,a=e.keyInfo;if(FC(i)){if(a.name=i.name==null?r?r.name:sk+n:mk(i.name),r)a.id=mk(r.id);else if(i.id!=null)a.id=mk(i.id);else{var o=0;do a.id=`\0`+a.name+`\0`+o++;while(t.get(a.id))}t.set(a.id,e)}})}function pk(e,t,n){var r=hk(t[e],null),i=hk(n[e],null);return r!=null&&i!=null&&r===i}function mk(e){return hk(e,``)}function hk(e,t){return e==null?t:MC(e)?e:PC(e)||NC(e)?e+``:t}function gk(e){var t=e.name;return!!(t&&t.indexOf(sk))}function _k(e){return e&&e.id!=null&&mk(e.id).indexOf(ck)===0}function WSe(e){return ck+e}function GSe(e,t,n){Z(e,function(e){var r=e.newOption;FC(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=KSe(t,r,e.existing,n))})}function KSe(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}function vk(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return AC(t.dataIndex)?wC(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return AC(t.name)?wC(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function yk(){var e=`__ec_inner_`+qSe++;return function(t){return t[e]||(t[e]={})}}var qSe=$O();function bk(e,t,n){var r=xk(t,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=n?n.defaultMainType:null;return!i&&s&&a.set(s,{}),a.each(function(t,r){var i=Ck(e,r,t,{useDefault:s===r,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});o[r+`Models`]=i.models,o[r+`Model`]=i.models[0]}),o}function xk(e,t){var n;if(MC(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=QC(),a={},o=!1;return Z(n,function(e,n){if(n===`dataIndex`||n===`dataIndexInside`)a[n]=e;else{var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],c=(r[2]||``).toLowerCase();if(!(!s||!c||t&&t.includeMainTypes&&xC(t.includeMainTypes,s)<0)){o||=!!s;var l=i.get(s)||i.set(s,{});l[c]=e}}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Sk={useDefault:!0,enableAll:!1,enableNone:!1},JSe={useDefault:!1,enableAll:!0,enableNone:!0};function Ck(e,t,n,r){r||=Sk;var i=n.index,a=n.id,o=n.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var c=void 0;return s.models=r.useDefault&&(c=e.getComponent(t))?[c]:[],s}if(i===`none`||i===!1){if(r.enableNone)return s.models=[],s;i=-1}return i===`all`&&(i=r.enableAll?a=o=null:-1),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s}function YSe(e,t,n){var r={};r[t+`Id`]=e[t+`Id`],r[t+`Index`]=e[t+`Index`],r[t+`Name`]=e[t+`Name`];var i={mainType:t,query:r};return n&&(i.subType=n),i}function wk(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function XSe(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function ZSe(e){return e===`auto`?rw.domSupported?`html`:`richText`:e||`html`}function QSe(e,t,n,r,i){var a=t==null||t===`auto`;if(r==null)return r;if(PC(r)){var o=ok(n||0,r,i);return zO(o,a?Math.max(VO(n||0),VO(r)):t)}if(MC(r))return i<1?n:r;for(var s=[],c=n,l=r,u=Math.max(c?c.length:0,l.length),d=0;d<u;++d){var f=e.getDimensionInfo(d);if(f&&f.type===`ordinal`)s[d]=(i<1&&c?c:l)[d];else{var p=c&&c[d]?c[d]:0,m=l[d],o=ok(p,m,i);s[d]=zO(o,a?Math.max(VO(p),VO(m)):t)}}return s}(function(){function e(){}return e.prototype.reset=function(e,t,n,r){return this._list=e,this._step=r||=1,this._idx=t,this._end=n??(r>0?e.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)&&(this.item=this._list[this._idx],this.key=this._idx+=this._step,!0)},e})();function Tk(){return[1/0,-1/0]}function Ek(e,t){kk(t)&&(t<e[0]&&(e[0]=t),t>e[1]&&(e[1]=t))}function Dk(e,t){kk(t)&&t<e[0]&&(e[0]=t)}function Ok(e,t){kk(t)&&t>e[1]&&(e[1]=t)}function $Se(e,t){Ak(t[0],t[1])&&(t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]))}function kk(e){return e!=null&&isFinite(e)}function Ak(e,t){return kk(e)&&kk(t)&&e<=t}function eCe(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function jk(e){Ak(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function Mk(){var e=`__ec_once_`+tCe++;return function(t,n){tw(t,e)||(t[e]=1,n())}}var tCe=$O();function Nk(e,t,n){var r=QC(),i=0;Z(e,function(a){var o=t(a),s=r.get(o)||0;n&&n(a,s),!s&&!n&&(e[i++]=a),r.set(o,s+1)}),n||(e.length=i)}function nCe(e){return e.value+``}function rCe(e){return e+``}function Pk(e,t){return HC(t,!0)?e.seriesIndex+2:0}function Fk(e,t,n){var r=e.getData().count();return{progressiveRender:n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,large:e.get(`large`)&&r>=e.get(`largeThreshold`),modDataCount:e.get(`progressiveChunkMode`)===`mod`?e.getData().count():null}}function iCe(e,t){return{seriesType:e,overallReset:t}}function Ik(e){return{overallReset:e}}var Lk=yk(),aCe=function(e,t,n,r){if(r){var i=Lk(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=Lk(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},Rk=QC([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),zk=`original`,Bk=`arrayRows`,Vk=`objectRows`,Hk=`keyedColumns`,Uk=`typedArray`,oCe=`unknown`,Wk=`column`,sCe=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],Gk=function(){function e(e){Z(sCe,function(t){this[t]=OC(e[t],e)},this)}return e}();function cCe(e,t){return t.mainType===`series`?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var Kk=1,qk={},Jk=yk(),Yk=yk(),Xk=[`emphasis`,`blur`,`select`],Zk=[`normal`,`emphasis`,`blur`,`select`],Qk=`highlight`,$k=`downplay`,eA=`select`,tA=`unselect`,nA=`toggleSelect`,rA=`selectchanged`;function iA(e){return e!=null&&e!==`none`}function aA(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function oA(e){aA(e,`emphasis`,2)}function sA(e){e.hoverState===2&&aA(e,`normal`,0)}function cA(e){aA(e,`blur`,1)}function lA(e){e.hoverState===1&&aA(e,`normal`,0)}function lCe(e){e.selected=!0}function uCe(e){e.selected=!1}function uA(e,t,n){t(e,n)}function dA(e,t,n){uA(e,t,n),e.isGroup&&e.traverse(function(e){uA(e,t,n)})}function fA(e,t){switch(t){case`emphasis`:e.hoverState=2;break;case`normal`:e.hoverState=0;break;case`blur`:e.hoverState=1;break;case`select`:e.selected=!0}}function dCe(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o];a[s]=i[s]??(r&&r[s])}for(var o=0;o<e.animators.length;o++){var c=e.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName===`style`&&c.saveTo(a,t)}return a}function fCe(e,t,n,r){var i=n&&xC(n,`select`)>=0,a=!1;if(e instanceof aO){var o=Jk(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(iA(s)||iA(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=yC({},r),l=yC({},l),l.fill=s):!iA(l.fill)&&iA(s)?(a=!0,r=yC({},r),l=yC({},l),l.fill=DE(s)):!iA(l.stroke)&&iA(c)&&(a||(r=yC({},r),l=yC({},l)),l.stroke=DE(c)),r.style=l}}if(r&&r.z2==null){a||(r=yC({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function pCe(e,t,n){if(n&&n.z2==null){n=yC({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function mCe(e,t,n){var r=xC(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:dCe(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=yC({},n),o=yC({opacity:r?i:a.opacity*.1},o),n.style=o),n}function pA(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return fCe(this,e,t,n);if(e===`blur`)return mCe(this,e,n);if(e===`select`)return pCe(this,e,n)}return n}function hCe(e){e.stateProxy=pA;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=pA),n&&(n.stateProxy=pA)}function mA(e,t){!xA(e,t)&&!e.__highByOuter&&dA(e,oA)}function hA(e,t){!xA(e,t)&&!e.__highByOuter&&dA(e,sA)}function gA(e,t){e.__highByOuter|=1<<(t||0),dA(e,oA)}function _A(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&dA(e,sA)}function gCe(e){dA(e,cA)}function vA(e){dA(e,lA)}function yA(e){dA(e,lCe)}function bA(e){dA(e,uCe)}function xA(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function SA(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=Yk(i),o=cCe(e,i),s=t===`series`;!s&&r.push(o),a.isBlured&&(o.group.traverse(function(e){lA(e)}),s&&n.push(i)),a.isBlured=!1}),Z(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function CA(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&vA(r)}}if(e!=null&&t&&t!==`none`){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var c=[];i.eachSeries(function(e){var i=o===e,l=e.coordinateSystem;if(l&&l.master&&(l=l.master),!(n===`series`&&!i||n===`coordinateSystem`&&!(l&&s?l===s:i)||t===`series`&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&t===`self`||cA(e)}),CC(t))a(e.getData(),t);else if(FC(t))for(var u=DC(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),Yk(e).isBlured=!0}}),i.eachComponent(function(e,t){if(e!==`series`){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(c,!0,i)}})}}function wA(e,t,n){if(e!=null&&t!=null){var r=n.getModel().getComponent(e,t);if(r){Yk(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse(function(e){cA(e)})}}}function _Ce(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=vk(i,t);a=(AC(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),c=0;!o&&c<s;)o=i.getItemGraphicEl(c++);if(o){var l=Lk(o);CA(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&CA(r,u,d,n)}}}function TA(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e===`series`||t==null||n==null)return i;var a=r.getModel().getComponent(e,t);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(n),c,l=0;l<s.length;l++)if(Lk(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function vCe(e,t,n){var r=Lk(e),i=TA(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&wA(r.componentMainType,r.componentIndex,n),Z(a,function(e){return mA(e,t)})):(CA(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&wA(r.componentMainType,r.componentIndex,n),mA(e,t))}function yCe(e,t,n){SA(n);var r=Lk(e),i=TA(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?Z(i,function(e){return hA(e,t)}):hA(e,t)}function bCe(e,t,n){if(NA(t)){var r=t.dataType,i=vk(e.getData(r),t);AC(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function EA(e){Z(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?yA(t):bA(t)})})}function xCe(e){var t=[];return e.eachSeries(function(e){Z(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function DA(e,t,n){jA(e,!0),dA(e,hCe),CCe(e,t,n)}function SCe(e){jA(e,!1)}function OA(e,t,n,r){r?SCe(e):DA(e,t,n)}function CCe(e,t,n){var r=Lk(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var kA=[`emphasis`,`blur`,`select`],wCe={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function AA(e,t,n,r){n||=`itemStyle`;for(var i=0;i<kA.length;i++){var a=kA[i],o=t.getModel([a,n]),s=e.ensureState(a);s.style=r?r(o):o[wCe[n]]()}}function jA(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function MA(e){return!!(e&&e.__highDownDispatcher)}function TCe(e){var t=qk[e];return t==null&&Kk<=32&&(t=qk[e]=Kk++),t}function NA(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function PA(e){var t=e.type;return t===`highlight`||t===`downplay`}function ECe(e){var t=Jk(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var FA=KD.CMD,DCe=[[],[],[]],IA=Math.sqrt,OCe=Math.atan2;function LA(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=FA.M,d=FA.C,f=FA.L,p=FA.R,m=FA.A,h=FA.Q;for(o=0,s=0;o<r;){switch(i=n[o++],s=o,a=0,i){case u:a=1;break;case f:a=1;break;case d:a=3;break;case h:a=2;break;case m:var g=t[4],_=t[5],v=IA(t[0]*t[0]+t[1]*t[1]),y=IA(t[2]*t[2]+t[3]*t[3]),b=OCe(-t[1]/y,t[0]/v);n[o]*=v,n[o++]+=g,n[o]*=y,n[o++]+=_,n[o++]*=v,n[o++]*=y,n[o++]+=b,n[o++]+=b,o+=2,s=o;break;case p:l[0]=n[o++],l[1]=n[o++],Nw(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],Nw(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=DCe[c];x[0]=n[o++],x[1]=n[o++],Nw(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var RA=Math.sqrt,zA=Math.sin,BA=Math.cos,VA=Math.PI;function HA(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function UA(e,t){return(e[0]*t[0]+e[1]*t[1])/(HA(e)*HA(t))}function WA(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(UA(e,t))}function GA(e,t,n,r,i,a,o,s,c,l,u){var d=VA/180*c,f=BA(d)*(e-n)/2+zA(d)*(t-r)/2,p=-1*zA(d)*(e-n)/2+BA(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=RA(m),s*=RA(m));var h=(i===a?-1:1)*RA((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+BA(d)*g-zA(d)*_,y=(t+r)/2+zA(d)*g+BA(d)*_,b=WA([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=WA(x,S);if(UA(x,S)<=-1&&(C=VA),UA(x,S)>=1&&(C=0),C<0){var w=Math.round(C/VA*1e6)/1e6;C=VA*2+w%2*VA}u.addData(l,v,y,o,s,b,C,d,a)}var kCe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,ACe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function jCe(e){var t=new KD;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=KD.CMD,c=e.match(kCe);if(!c)return t;for(var l=0;l<c.length;l++){for(var u=c[l],d=u.charAt(0),f=void 0,p=u.match(ACe)||[],m=p.length,h=0;h<m;h++)p[h]=parseFloat(p[h]);for(var g=0;g<m;){var _=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=n,T=r,E=void 0,D=void 0;switch(d){case`l`:n+=p[g++],r+=p[g++],f=s.L,t.addData(f,n,r);break;case`L`:n=p[g++],r=p[g++],f=s.L,t.addData(f,n,r);break;case`m`:n+=p[g++],r+=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`l`;break;case`M`:n=p[g++],r=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`L`;break;case`h`:n+=p[g++],f=s.L,t.addData(f,n,r);break;case`H`:n=p[g++],f=s.L,t.addData(f,n,r);break;case`v`:r+=p[g++],f=s.L,t.addData(f,n,r);break;case`V`:r=p[g++],f=s.L,t.addData(f,n,r);break;case`C`:f=s.C,t.addData(f,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),n=p[g-2],r=p[g-1];break;case`c`:f=s.C,t.addData(f,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r),n+=p[g-2],r+=p[g-1];break;case`S`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=p[g++],T=p[g++],n=p[g++],r=p[g++],t.addData(f,_,v,w,T,n,r);break;case`s`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=n+p[g++],T=r+p[g++],n+=p[g++],r+=p[g++],t.addData(f,_,v,w,T,n,r);break;case`Q`:w=p[g++],T=p[g++],n=p[g++],r=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`q`:w=p[g++]+n,T=p[g++]+r,n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`T`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n=p[g++],r=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`t`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`A`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n=p[g++],r=p[g++],f=s.A,GA(w,T,n,r,S,C,y,b,x,f,t);break;case`a`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n+=p[g++],r+=p[g++],f=s.A,GA(w,T,n,r,S,C,y,b,x,f,t)}}(d===`z`||d===`Z`)&&(f=s.Z,t.addData(f),n=i,r=a),o=f}return t.toStatic(),t}var KA=function(e){iC(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(aO);function qA(e){return e.setData!=null}function JA(e,t){var n=jCe(e),r=yC({},t);return r.buildPath=function(e){var t=qA(e);if(t&&e.canSave()){e.appendPath(n);var r=e.getContext();r&&e.rebuildPath(r,1)}else{var r=t?e.getContext():e;r&&n.rebuildPath(r,1)}},r.applyTransform=function(e){LA(n,e),this.dirtyShape()},r}function MCe(e,t){return new KA(JA(e,t))}function NCe(e,t){var n=JA(e,t);return function(e){iC(t,e);function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return t}(KA)}function PCe(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var a=e[i];n.push(a.getUpdatedPathProxy(!0))}var o=new aO(t);return o.createPathProxy(),o.buildPath=function(e){if(qA(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}function YA(e,t){t||={};var n=new aO;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?LA(n.path,e.getComputedTransform()):t.toLocal?n.setLocalTransform(e.getComputedTransform()):n.copyTransform(e),n.buildPath=e.buildPath,n.applyTransform=n.applyTransform,n.z=e.z,n.z2=e.z2,n.zlevel=e.zlevel,n}var XA=function(e){iC(t,e);function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=xC(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=xC(n,e);return r<0||(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(t)},t.prototype.getBoundingRect=function(e){for(var t=new Yw(0,0,0,0),n=e||this._children,r=[],i=null,a=0;a<n.length;a++){var o=n[a];if(!(o.ignore||o.invisible)){var s=o.getBoundingRect(),c=o.getLocalTransform(r);c?(Yw.applyTransform(t,s,c),i||=t.clone(),i.union(t)):(i||=s.clone(),i.union(s))}}return i||t},t}(nD);XA.prototype.type=`group`;var FCe=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),ZA=function(e){iC(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new FCe},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,Math.PI*2)},t}(aO);ZA.prototype.type=`circle`;var ICe=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),QA=function(e){iC(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new ICe},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,a=t.rx,o=t.ry,s=a*n,c=o*n;e.moveTo(r-a,i),e.bezierCurveTo(r-a,i-c,r-s,i-o,r,i-o),e.bezierCurveTo(r+s,i-o,r+a,i-c,r+a,i),e.bezierCurveTo(r+a,i+c,r+s,i+o,r,i+o),e.bezierCurveTo(r-s,i+o,r-a,i+c,r-a,i),e.closePath()},t}(aO);QA.prototype.type=`ellipse`;var $A=Math.PI,ej=$A*2,tj=Math.sin,nj=Math.cos,LCe=Math.acos,rj=Math.atan2,ij=Math.abs,aj=Math.sqrt,oj=Math.max,sj=Math.min,cj=1e-4;function RCe(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<cj))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function lj(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/aj(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*aj(oj(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,O=w-g,k=T-_,A=E-g,j=D-_;return O*O+k*k>A*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function zCe(e){var t;if(AC(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function BCe(e,t){var n,r=oj(t.r,0),i=oj(t.r0||0,0),a=r>0;if(a||i>0){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=ij(c-s),p=f>ej&&f%ej;if(p>cj&&(f=p),!(r>cj))e.moveTo(l,u);else if(f>ej-cj)e.moveTo(l+r*nj(s),u+r*tj(s)),e.arc(l,u,r,s,c,!d),i>cj&&(e.moveTo(l+i*nj(c),u+i*tj(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*nj(s),j=r*tj(s),ee=i*nj(c),te=i*tj(c),M=f>cj;if(M){var ne=t.cornerRadius;ne&&(n=zCe(ne),m=n[0],h=n[1],g=n[2],_=n[3]);var re=ij(r-i)/2;if(v=sj(re,g),y=sj(re,_),b=sj(re,m),x=sj(re,h),w=S=oj(v,y),T=C=oj(b,x),(S>cj||C>cj)&&(E=r*nj(c),D=r*tj(c),O=i*nj(s),k=i*tj(s),f<$A)){var ie=RCe(A,j,O,k,E,D,ee,te);if(ie){var N=A-ie[0],P=j-ie[1],ae=E-ie[0],oe=D-ie[1],se=1/tj(LCe((N*ae+P*oe)/(aj(N*N+P*P)*aj(ae*ae+oe*oe)))/2),ce=aj(ie[0]*ie[0]+ie[1]*ie[1]);w=sj(S,(r-ce)/(se+1)),T=sj(C,(i-ce)/(se-1))}}}if(!M)e.moveTo(l+A,u+j);else if(w>cj){var le=sj(g,w),ue=sj(_,w),de=lj(O,k,A,j,r,le,d),fe=lj(E,D,ee,te,r,ue,d);e.moveTo(l+de.cx+de.x0,u+de.cy+de.y0),w<S&&le===ue?e.arc(l+de.cx,u+de.cy,w,rj(de.y0,de.x0),rj(fe.y0,fe.x0),!d):(le>0&&e.arc(l+de.cx,u+de.cy,le,rj(de.y0,de.x0),rj(de.y1,de.x1),!d),e.arc(l,u,r,rj(de.cy+de.y1,de.cx+de.x1),rj(fe.cy+fe.y1,fe.cx+fe.x1),!d),ue>0&&e.arc(l+fe.cx,u+fe.cy,ue,rj(fe.y1,fe.x1),rj(fe.y0,fe.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>cj)||!M)e.lineTo(l+ee,u+te);else if(T>cj){var le=sj(m,T),ue=sj(h,T),de=lj(ee,te,E,D,i,-ue,d),fe=lj(A,j,O,k,i,-le,d);e.lineTo(l+de.cx+de.x0,u+de.cy+de.y0),T<C&&le===ue?e.arc(l+de.cx,u+de.cy,T,rj(de.y0,de.x0),rj(fe.y0,fe.x0),!d):(ue>0&&e.arc(l+de.cx,u+de.cy,ue,rj(de.y0,de.x0),rj(de.y1,de.x1),!d),e.arc(l,u,i,rj(de.cy+de.y1,de.cx+de.x1),rj(fe.cy+fe.y1,fe.cx+fe.x1),d),le>0&&e.arc(l+fe.cx,u+fe.cy,le,rj(fe.y1,fe.x1),rj(fe.y0,fe.x0),!d))}else e.lineTo(l+ee,u+te),e.arc(l,u,i,c,s,d)}e.closePath()}}}var VCe=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),uj=function(e){iC(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new VCe},t.prototype.buildPath=function(e,t){BCe(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(aO);uj.prototype.type=`sector`;var HCe=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),dj=function(e){iC(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new HCe},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(aO);dj.prototype.type=`ring`;function UCe(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f<p;f++)Pw(u,u,e[f]),Fw(d,d,e[f]);Pw(u,u,r[0]),Fw(d,d,r[1])}for(var f=0,p=e.length;f<p;f++){var m=e[f];if(n)c=e[f?f-1:p-1],l=e[(f+1)%p];else if(f===0||f===p-1){i.push(ixe(e[f]));continue}else c=e[f-1],l=e[f+1];axe(a,l,c),Ow(a,a,t);var h=kw(m,c),g=kw(m,l),_=h+g;_!==0&&(h/=_,g/=_),Ow(o,a,-h),Ow(s,a,g);var v=Dw([],m,o),y=Dw([],m,s);r&&(Fw(v,v,u),Pw(v,v,d),Fw(y,y,u),Pw(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}function fj(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=UCe(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var WCe=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),pj=function(e){iC(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new WCe},t.prototype.buildPath=function(e,t){fj(e,t,!0)},t}(aO);pj.prototype.type=`polygon`;var GCe=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),mj=function(e){iC(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new GCe},t.prototype.buildPath=function(e,t){fj(e,t,!1)},t}(aO);mj.prototype.type=`polyline`;var KCe={},qCe=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),hj=function(e){iC(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new qCe},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=lO(KCe,t,this.style);n=o.x1,r=o.y1,i=o.x2,a=o.y2}else n=t.x1,r=t.y1,i=t.x2,a=t.y2;var s=t.percent;s!==0&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,a=r*(1-s)+a*s),e.lineTo(i,a))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(aO);hj.prototype.type=`line`;var gj=[],JCe=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function _j(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?$T:QT)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?$T:QT)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?iE:rE)(e.x1,e.cpx1,e.x2,t),(n?iE:rE)(e.y1,e.cpy1,e.y2,t)]}var vj=function(e){iC(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new JCe},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,c=t.cpx2,l=t.cpy2,u=t.percent;u!==0&&(e.moveTo(n,r),c==null||l==null?(u<1&&(oE(n,o,i,u,gj),o=gj[1],i=gj[2],oE(r,s,a,u,gj),s=gj[1],a=gj[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(nE(n,o,c,i,u,gj),o=gj[1],c=gj[2],i=gj[3],nE(r,s,l,a,u,gj),s=gj[1],l=gj[2],a=gj[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return _j(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=_j(this.shape,e,!0);return cxe(t,t)},t}(aO);vj.prototype.type=`bezier-curve`;var YCe=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),yj=function(e){iC(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new YCe},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,c=Math.cos(a),l=Math.sin(a);e.moveTo(c*i+n,l*i+r),e.arc(n,r,i,a,o,!s)},t}(aO);yj.prototype.type=`arc`;var XCe=function(e){iC(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`compound`,t}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t||=e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),aO.prototype.getBoundingRect.call(this)},t}(aO),bj=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),xj=function(e){iC(t,e);function t(t,n,r,i,a,o){var s=e.call(this,a)||this;return s.x=t??0,s.y=n??0,s.x2=r??1,s.y2=i??0,s.type=`linear`,s.global=o||!1,s}return t}(bj),ZCe=function(e){iC(t,e);function t(t,n,r,i,a){var o=e.call(this,i)||this;return o.x=t??.5,o.y=n??.5,o.r=r??.5,o.type=`radial`,o.global=a||!1,o}return t}(bj),Sj=Math.min,QCe=Math.max,Cj=Math.abs,wj=[0,0],Tj=[0,0],Ej=nT(),Dj=Ej.minTv,Oj=Ej.maxTv,kj=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Iw;for(var n=0;n<2;n++)this._axes[n]=new Iw;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,a=e.y,o=i+e.width,s=a+e.height;if(n[0].set(i,a),n[1].set(o,a),n[2].set(o,s),n[3].set(i,s),t)for(var c=0;c<4;c++)n[c].transform(t);Iw.sub(r[0],n[1],n[0]),Iw.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var c=0;c<2;c++)this._origin[c]=r[c].dot(n[0])},e.prototype.intersect=function(e,t,n){var r=!0,i=!t;return t&&Iw.set(t,0,0),Ej.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(r=!1,i)||!i&&!Ej.negativeSize&&Iw.copy(t,r?Ej.useDir?Ej.dirMinTv:Dj:Oj),r},e.prototype._intersectCheckOneSide=function(e,t,n,r){for(var i=!0,a=0;a<2;a++){var o=e._axes[a];if(e._getProjMinMaxOnAxis(a,e._corners,wj),e._getProjMinMaxOnAxis(a,t._corners,Tj),Ej.negativeSize||wj[1]<Tj[0]||wj[0]>Tj[1]){if(i=!1,Ej.negativeSize||n)return i;var s=Cj(Tj[0]-wj[1]),c=Cj(wj[0]-Tj[1]);Sj(s,c)>Oj.len()&&(s<c?Iw.scale(Oj,o,-s*r):Iw.scale(Oj,o,c*r))}else if(!n){var s=Cj(Tj[0]-wj[1]),c=Cj(wj[0]-Tj[1]);(Ej.useDir||Sj(s,c)<Dj.len())&&((s<c||!Ej.bidirectional)&&(Iw.scale(Dj,o,s*r),Ej.useDir&&Ej.calcDirMTV()),(s>=c||!Ej.bidirectional)&&(Iw.scale(Dj,o,-c*r),Ej.useDir&&Ej.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c<t.length;c++){var l=t[c].dot(r)+i[e];o=Sj(l,o),s=QCe(l,s)}n[0]=o+Ej.touchThreshold,n[1]=s-Ej.touchThreshold,Ej.negativeSize=n[1]<n[0]},e}(),$Ce=[],ewe=function(e){iC(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=1,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype._useHoverStyle=function(){this.__hoverStyle=null},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t||=!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(var t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new Yw(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform($Ce)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1])){for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(e,t))return!0}return!1},t}(pD),Aj=yk();function jj(e,t,n,r,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),c=e===`update`;if(s){var l=void 0,u=void 0,d=void 0;return r?(l=HC(r.duration,200),u=HC(r.easing,`cubicOut`),d=0):(l=t.getShallow(c?`animationDurationUpdate`:`animationDuration`),u=t.getShallow(c?`animationEasingUpdate`:`animationEasing`),d=t.getShallow(c?`animationDelayUpdate`:`animationDelay`)),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(u=a.easing),a.delay!=null&&(d=a.delay)),jC(d)&&(d=d(n,i)),jC(l)&&(l=l(n)),{duration:l||0,delay:d,easing:u}}return null}function Mj(e,t,n,r,i,a,o){var s=!1,c;jC(i)?(o=a,a=i,i=null):FC(i)&&(a=i.cb,o=i.during,s=i.isFrom,c=i.removeOpt,i=i.dataIndex);var l=e===`leave`;l||t.stopAnimation(`leave`);var u=jj(e,r,i,l?c||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(u&&u.duration>0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function Nj(e,t,n,r,i,a){Mj(`update`,e,t,n,r,i,a)}function Pj(e,t,n,r,i,a){Mj(`enter`,e,t,n,r,i,a)}function Fj(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if(e.animators[t].scope===`leave`)return!0;return!1}function Ij(e,t,n,r,i,a){Fj(e)||Mj(`leave`,e,t,n,r,i,a)}function Lj(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),Ij(e,{style:{opacity:0}},t,n,r)}function Rj(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||Lj(e,t,n,r)}):Lj(e,t,n,r)}function zj(e){Aj(e).oldStyle=e.style}function twe(e){return Aj(e).oldStyle}var Bj=$r({Arc:()=>yj,BezierCurve:()=>vj,BoundingRect:()=>Yw,Circle:()=>ZA,CompoundPath:()=>XCe,Ellipse:()=>QA,Group:()=>XA,HOVER_LAYER_FOR_INCREMENTAL:()=>2,HOVER_LAYER_FROM_THRESHOLD:()=>1,HOVER_LAYER_NO:()=>0,Image:()=>sO,IncrementalDisplayable:()=>ewe,Line:()=>hj,LinearGradient:()=>xj,OrientedBoundingRect:()=>kj,Path:()=>aO,Point:()=>Iw,Polygon:()=>pj,Polyline:()=>mj,RadialGradient:()=>ZCe,Rect:()=>fO,Ring:()=>dj,Sector:()=>uj,Text:()=>gO,WH:()=>Uj,XY:()=>Hj,applyTransform:()=>Qj,calcZ2Range:()=>fwe,clipPointsByRect:()=>nM,clipRectByRect:()=>lwe,createIcon:()=>rM,decomposeTransform:()=>mwe,ensureCopyRect:()=>mM,ensureCopyTransform:()=>hM,expandOrShrinkRect:()=>oM,extendPath:()=>iwe,extendShape:()=>nwe,getCurrentCanvasPainter:()=>hwe,getShapeClass:()=>awe,getTransform:()=>Zj,groupTransition:()=>tM,initProps:()=>Pj,isBoundingRectAxisAligned:()=>fM,isElementRemoved:()=>Fj,lineLineIntersect:()=>iM,linePolygonIntersect:()=>uwe,makeImage:()=>Kj,makePath:()=>Gj,mergePath:()=>owe,payloadDisableAnimation:()=>pwe,registerShape:()=>Wj,removeElement:()=>Ij,removeElementWithFadeOut:()=>Rj,resizePath:()=>Jj,retrieveZInfo:()=>gM,setTooltipConfig:()=>lM,subPixelOptimize:()=>Xj,subPixelOptimizeLine:()=>Yj,subPixelOptimizeRect:()=>swe,transformDirection:()=>$j,traverseElements:()=>dM,traverseUpdateZ:()=>_M,updateProps:()=>Nj}),Vj={},Hj=[`x`,`y`],Uj=[`width`,`height`];function nwe(e){return aO.extend(e)}var rwe=NCe;function iwe(e,t){return rwe(e,t)}function Wj(e,t){Vj[e]=t}function awe(e){if(Vj.hasOwnProperty(e))return Vj[e]}function Gj(e,t,n,r){var i=MCe(e,t);return n&&(r===`center`&&(n=qj(n,i.getBoundingRect())),Jj(i,n)),i}function Kj(e,t,n){var r=new sO({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(qj(t,i))}}});return r}function qj(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var owe=PCe;function Jj(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function Yj(e,t){return lO(e,e,{lineWidth:t}),e}function swe(e,t){return uO(e,e,t),e}var Xj=dO;function Zj(e,t){for(var n=vw([]);e&&e!==t;)bw(n,e.getLocalTransform(),n),e=e.parent;return n}function Qj(e,t,n){return t&&!CC(t)&&(t=FT.getLocalTransform(t)),n&&(t=Cw([],t)),Nw([],e,t)}function $j(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:kO(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:kO(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=Qj(a,t,n),kO(a[0])>kO(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function eM(e){return!e.isGroup}function cwe(e){return e.shape!=null}function tM(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){eM(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return cwe(e)&&(t.shape=_C(e.shape)),t}var a=r(e);t.traverse(function(e){if(eM(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),Nj(e,r,n,Lk(e).dataIndex)}}})}function nM(e,t){return wC(e,function(e){var n=e[0];n=OO(n,t.x),n=DO(n,t.x+t.width);var r=e[1];return r=OO(r,t.y),r=DO(r,t.y+t.height),[n,r]})}function lwe(e,t){var n=OO(e.x,t.x),r=DO(e.x+e.width,t.x+t.width),i=OO(e.y,t.y),a=DO(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function rM(e,t,n){var r=yC({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),bC(i,n),new sO(r)):Gj(e.replace(`path://`,``),r,n,`center`)}function uwe(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(iM(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function iM(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=aM(u,d,c,l);if(dwe(f))return!1;var p=e-i,m=t-a,h=aM(p,m,c,l)/f;if(h<0||h>1)return!1;var g=aM(p,m,u,d)/f;return!(g<0||g>1)}function aM(e,t,n,r){return e*r-n*t}function dwe(e){return e<=1e-6&&e>=-1e-6}function oM(e,t,n,r,i){return t==null||(PC(t)?sM[0]=sM[1]=sM[2]=sM[3]=t:(sM[0]=t[0],sM[1]=t[1],sM[2]=t[2],sM[3]=t[3]),r&&(sM[0]=OO(0,sM[0]),sM[1]=OO(0,sM[1]),sM[2]=OO(0,sM[2]),sM[3]=OO(0,sM[3])),n&&(sM[0]=-sM[0],sM[1]=-sM[1],sM[2]=-sM[2],sM[3]=-sM[3]),cM(e,sM,`x`,`width`,3,1,i&&i[0]||0),cM(e,sM,`y`,`height`,0,2,i&&i[1]||0)),e}var sM=[0,0,0,0];function cM(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=OO(0,DO(o,c)),e[r]<o?(e[r]=o,e[n]+=t[i]>=0?-t[i]:t[a]>=0?c+t[a]:kO(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function lM(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=MC(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&Z(DC(c),function(e){tw(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=Lk(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:bC({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function uM(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function dM(e,t){if(e){if(AC(e))for(var n=0;n<e.length;n++)uM(e[n],t);else uM(e,t)}}function fM(e){return!e||kO(e[1])<pM&&kO(e[2])<pM||kO(e[0])<pM&&kO(e[3])<pM}var pM=1e-5;function mM(e,t){return e?Yw.copy(e,t):t.clone()}function hM(e,t){return t?yw(e||_w(),t):void 0}function gM(e){return{z:e.get(`z`)||0,zlevel:e.get(`zlevel`)||0}}function fwe(e){var t=-1/0,n=1/0;uM(e,function(e){r(e),r(e.getTextContent()),r(e.getTextGuideLine())});function r(e){if(e&&!e.isGroup){var t=e.currentStates;if(t.length)for(var n=0;n<t.length;n++)i(e.states[t[n]]);i(e)}}function i(e){if(e){var r=e.z2;r>t&&(t=r),r<n&&(n=r)}}return n>t&&(n=t=0),{min:n,max:t}}function _M(e,t,n){vM(e,t,n,-1/0)}function vM(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s<o.length;s++)r=OO(vM(o[s],t,n,r),r);else e.z=t,e.zlevel=n,r=OO(e.z2||0,r);if(i&&(i.z=t,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),a){var c=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(r)&&(a.z2=r+(c&&c.showAbove?1:-1))}return r}function pwe(e){return e.animation={duration:0},e}function mwe(e,t){return t?yw(yM.transform,t):vw(yM.transform),yM.decomposeTransform(),zT(e,yM),e}var yM=new FT;yM.transform=_w();function hwe(e){var t=e.getZr().painter;return t.getType()===`canvas`?t:null}Wj(`circle`,ZA),Wj(`ellipse`,QA),Wj(`sector`,uj),Wj(`ring`,dj),Wj(`polygon`,pj),Wj(`polyline`,mj),Wj(`rect`,fO),Wj(`line`,hj),Wj(`bezierCurve`,vj),Wj(`arc`,yj);var bM={};function gwe(e,t){for(var n=0;n<Xk.length;n++){var r=Xk[n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function xM(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;r&&(s=r.getFormattedLabel(i,`normal`,null,a,o&&o.get(`formatter`),n==null?null:{interpolatedValue:n})),s??=jC(e.defaultText)?e.defaultText(i,e,n):e.defaultText;for(var c={normal:s},l=0;l<Xk.length;l++){var u=Xk[l],d=t[u];c[u]=HC(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function SM(e,t,n,r){n||=bM;for(var i=e instanceof gO,a=!1,o=0;o<Zk.length;o++){var s=t[Zk[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new gO,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=xM(n,t),u=t.normal,d=!!u.getShallow(`show`),f=wM(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(TM(u,n,!1));for(var o=0;o<Xk.length;o++){var p=Xk[o],s=t[p];if(s){var m=c.ensureState(p),h=!!HC(s.getShallow(`show`),d);if(h!==d&&(m.ignore=!h),m.style=wM(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=TM(s,n,!0)}}}c.silent=!!u.getShallow(`silent`),c.style.x!=null&&(f.x=c.style.x),c.style.y!=null&&(f.y=c.style.y),c.ignore=!d,c.useStyle(f),c.dirty(),n.enableTextSetter&&(jM(c).setLabelText=function(e){var r=xM(n,t,e);gwe(c,r)})}else c&&(c.ignore=!0);e.dirty()}function CM(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<Xk.length;r++){var i=Xk[r];n[i]=e.getModel([i,t])}return n}function wM(e,t,n,r,i){var a={};return _we(a,e,n,r,i),t&&yC(a,t),a}function TM(e,t,n){t||={};var r={},i,a=e.getShallow(`rotate`),o=HC(e.getShallow(`distance`),n?null:5),s=e.getShallow(`offset`);return i=e.getShallow(`position`)||(n?null:`inside`),i===`outside`&&(i=t.defaultOutsidePosition||`top`),i!=null&&(r.position=i),s!=null&&(r.offset=s),a!=null&&(a*=Math.PI/180,r.rotation=a),o!=null&&(r.distance=o),r.outsideFill=e.get(`color`)===`inherit`?t.inheritColor||null:`auto`,t.autoOverflowArea!=null&&(r.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(r.layoutRect=t.layoutRect),r}function _we(e,t,n,r,i){n||=bM;var a=t.ecModel,o=a&&a.option.textStyle,s=vwe(t),c;if(s){c={};var l=`richInheritPlainLabel`,u=HC(t.get(l),a?a.get(l):void 0);for(var d in s)if(s.hasOwnProperty(d)){var f=t.getModel([`rich`,d]);kM(c[d]={},f,o,t,u,n,r,i,!1,!0)}}c&&(e.rich=c);var p=t.get(`overflow`);p&&(e.overflow=p);var m=t.get(`lineOverflow`);m&&(e.lineOverflow=m);var h=e,g=t.get(`minMargin`);if(g!=null)g=PC(g)?g/2:0,h.margin=[g,g,g,g],h.__marginType=MM.minMargin;else{var _=t.get(`textMargin`);_!=null&&(h.margin=GC(_),h.__marginType=MM.textMargin)}kM(e,t,o,null,null,n,r,i,!0,!1)}function vwe(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||bM).rich;if(n){t||={};for(var r=DC(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}var EM=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],DM=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],OM=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`];function kM(e,t,n,r,i,a,o,s,c,l){n=!o&&n||bM;var u=a&&a.inheritColor,d=t.getShallow(`color`),f=t.getShallow(`textBorderColor`),p=HC(t.getShallow(`opacity`),n.opacity);(d===`inherit`||d===`auto`)&&(d=u||null),(f===`inherit`||f===`auto`)&&(f=u||null),s||(d||=n.color,f||=n.textBorderColor),d!=null&&(e.fill=d),f!=null&&(e.stroke=f);var m=HC(t.getShallow(`textBorderWidth`),n.textBorderWidth);m!=null&&(e.lineWidth=m);var h=HC(t.getShallow(`textBorderType`),n.textBorderType);h!=null&&(e.lineDash=h);var g=HC(t.getShallow(`textBorderDashOffset`),n.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!o&&p==null&&!l&&(p=a&&a.defaultOpacity),p!=null&&(e.opacity=p),!o&&!s&&e.fill==null&&a.inheritColor&&(e.fill=a.inheritColor);for(var _=0;_<EM.length;_++){var v=EM[_],y=i!==!1&&r?UC(t.getShallow(v),r.getShallow(v),n[v]):HC(t.getShallow(v),n[v]);y!=null&&(e[v]=y)}for(var _=0;_<DM.length;_++){var v=DM[_],y=t.getShallow(v);y!=null&&(e[v]=y)}if(e.verticalAlign==null){var b=t.getShallow(`baseline`);b!=null&&(e.verticalAlign=b)}if(!c||!a.disableBox){for(var _=0;_<OM.length;_++){var v=OM[_],y=t.getShallow(v);y!=null&&(e[v]=y)}var x=t.getShallow(`borderType`);x!=null&&(e.borderDash=x),(e.backgroundColor===`auto`||e.backgroundColor===`inherit`)&&u&&(e.backgroundColor=u),(e.borderColor===`auto`||e.borderColor===`inherit`)&&u&&(e.borderColor=u)}}function AM(e,t){var n=t&&t.getModel(`textStyle`);return qC([e.fontStyle||n&&n.getShallow(`fontStyle`)||``,e.fontWeight||n&&n.getShallow(`fontWeight`)||``,(e.fontSize||n&&n.getShallow(`fontSize`)||12)+`px`,e.fontFamily||n&&n.getShallow(`fontFamily`)||`sans-serif`].join(` `))}var jM=yk();function ywe(e,t,n,r){if(e){var i=jM(e);i.prevValue=i.value,i.value=n;var a=t.normal;i.valueAnimation=a.get(`valueAnimation`),i.valueAnimation&&(i.precision=a.get(`precision`),i.defaultInterpolatedText=r,i.statesModels=t)}}var MM={minMargin:1,textMargin:2},bwe=[`textStyle`,`color`],NM=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],PM=new gO,xwe=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(bwe):null)},e.prototype.getFont=function(){return AM({fontStyle:this.getShallow(`fontStyle`),fontWeight:this.getShallow(`fontWeight`),fontSize:this.getShallow(`fontSize`),fontFamily:this.getShallow(`fontFamily`)},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow(`verticalAlign`)||this.getShallow(`baseline`)},n=0;n<NM.length;n++)t[NM[n]]=this.getShallow(NM[n]);return PM.useStyle(t),PM.update(),PM.getBoundingRect()},e}(),FM=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],Swe=uw(FM),Cwe=function(){function e(){}return e.prototype.getLineStyle=function(e){return Swe(this,e)},e}(),IM=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],wwe=uw(IM),Twe=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return wwe(this,e,t)},e}(),LM=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){},e.prototype.mergeOption=function(e,t){vC(this.option,e,!0)},e.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=n==null?n:n[e];if(r==null&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,a=r?this._doGet(i):this.option;return n||=this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(_C(this.option))},e.prototype.parsePath=function(e){return typeof e==`string`?e.split(`.`):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!rw.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&!(e[r]&&(n=n&&typeof n==`object`?n[e[r]]:null,n==null));r++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();sw(LM),Xbe(LM),SC(LM,Cwe),SC(LM,Twe),SC(LM,exe),SC(LM,xwe);function RM(e){return e==null?0:e.length||1}function zM(e){return e}var BM=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||zM,this._newKeyGetter=r||zM,this.context=i,this._diffModeMultiple=a===`multiple`}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?`_executeMultiple`:`_executeOneToOne`]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=Array(e.length),i=Array(t.length);this._initIndexMap(e,null,r,`_oldKeyGetter`),this._initIndexMap(t,n,i,`_newKeyGetter`);for(var a=0;a<e.length;a++){var o=r[a],s=n[o],c=RM(s);if(c>1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o<i.length;o++){var s=i[o],c=n[s],l=r[s],u=RM(c),d=RM(l);if(u>1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f<u;f++)this._remove&&this._remove(c[f]);else this._remove&&this._remove(c)}this._performRestAdd(a,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],a=RM(i);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(i[o]);else a===1&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,a=0;a<e.length;a++){var o=`_ec_`+this[r](e[a],a);if(i||(n[a]=o),t){var s=t[o],c=RM(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}(),VM={Must:1,Might:2,Not:3},HM=yk();function Ewe(e){HM(e).datasetMap=QC()}function UM(e,t,n){var r={},i=WM(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=HM(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),Z(e,function(t,n){var i=FC(t)?t:e[n]={name:t};i.type===`ordinal`&&u==null&&(u=n,d=m(i)),r[i.name]=[]});var f=c.get(l)||c.set(l,{categoryWayDim:d,valueWayDim:0});Z(e,function(e,t){var n=e.name,i=m(e);if(u==null){var s=f.valueWayDim;p(r[n],s,i),p(o,s,i),f.valueWayDim+=i}else if(u===t)p(r[n],0,i),p(a,0,i);else{var s=f.categoryWayDim;p(r[n],s,i),p(o,s,i),f.categoryWayDim+=i}});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function m(e){var t=e.dimsDef;return t?t.length:1}return a.length&&(r.itemName=a),o.length&&(r.seriesName=o),r}function Dwe(e,t,n){var r={};if(!WM(e))return r;var i=t.sourceFormat,a=t.dimensionsDefine,o;(i===`objectRows`||i===`keyedColumns`)&&Z(a,function(e,t){(FC(e)?e.name:e)===`name`&&(o=t)});var s=function(){for(var e={},r={},s=[],c=0,l=Math.min(5,n);c<l;c++){var u=KM(t.data,i,t.seriesLayoutBy,a,t.startIndex,c);s.push(u);var d=u===VM.Not;if(d&&e.v==null&&c!==o&&(e.v=c),(e.n==null||e.n===e.v||!d&&s[e.n]===VM.Not)&&(e.n=c),f(e)&&s[e.n]!==VM.Not)return e;d||(u===VM.Might&&r.v==null&&c!==o&&(r.v=c),(r.n==null||r.n===r.v)&&(r.n=c))}function f(e){return e.v!=null&&e.n!=null}return f(e)?e:f(r)?r:null}();if(s){r.value=[s.v];var c=o??s.n;r.itemName=[c],r.seriesName=[c]}return r}function WM(e){if(!e.get(`data`,!0))return Ck(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},Sk).models[0]}function Owe(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:Ck(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},Sk).models}function GM(e,t){return KM(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function KM(e,t,n,r,i,a){var o,s=5;if(LC(e))return VM.Not;var c,l;if(r){var u=r[a];FC(u)?(c=u.name,l=u.type):MC(u)&&(c=u)}if(l!=null)return l===`ordinal`?VM.Must:VM.Not;if(t===`arrayRows`){var d=e;if(n===`row`){for(var f=d[a],p=0;p<(f||[]).length&&p<s;p++)if((o=b(f[i+p]))!=null)return o}else for(var p=0;p<d.length&&p<s;p++){var m=d[i+p];if(m&&(o=b(m[a]))!=null)return o}}else if(t===`objectRows`){var h=e;if(!c)return VM.Not;for(var p=0;p<h.length&&p<s;p++){var g=h[p];if(g&&(o=b(g[c]))!=null)return o}}else if(t===`keyedColumns`){var _=e;if(!c)return VM.Not;var f=_[c];if(!f||LC(f))return VM.Not;for(var p=0;p<f.length&&p<s;p++)if((o=b(f[p]))!=null)return o}else if(t===`original`)for(var v=e,p=0;p<v.length&&p<s;p++){var g=v[p],y=fk(g);if(!AC(y))return VM.Not;if((o=b(y[a]))!=null)return o}function b(e){var t=MC(e);if(e!=null&&isFinite(Number(e))&&e!==``)return t?VM.Might:VM.Not;if(t&&e!==`-`)return VM.Must}return VM.Not}var qM=function(){function e(e){this.data=e.data||(e.sourceFormat===`keyedColumns`?{}:[]),this.sourceFormat=e.sourceFormat||`unknown`,this.seriesLayoutBy=e.seriesLayoutBy||`column`,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];r.type==null&&GM(this,n)===VM.Must&&(r.type=`ordinal`)}}return e}();function JM(e){return e instanceof qM}function YM(e,t,n){n||=ZM(e);var r=t.seriesLayoutBy,i=Awe(e,n,r,t.sourceHeader,t.dimensions);return new qM({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:_C(t)})}function XM(e){return new qM({data:e,sourceFormat:LC(e)?Uk:zk})}function kwe(e){return new qM({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:_C(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function ZM(e){var t=oCe;if(LC(e))t=Uk;else if(AC(e)){e.length===0&&(t=Bk);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(AC(i)||LC(i)){t=Bk;break}if(FC(i)){t=Vk;break}}}}else if(FC(e)){for(var a in e)if(tw(e,a)&&CC(e[a])){t=Hk;break}}return t}function Awe(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:QM(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?$M(function(e){e!=null&&e!==`-`&&(MC(e)?o??=1:o=0)},n,s,10):o=PC(r)?r:+!!r,!i&&o===1&&(i=[],$M(function(e,t){i[t]=e==null?``:e+``},n,s,1/0)),a=i?i.length:n===`row`?s.length:s[0]?s[0].length:null}else if(t===`objectRows`)i||=jwe(e);else if(t===`keyedColumns`)i||(i=[],Z(e,function(e,t){i.push(t)}));else if(t===`original`){var c=fk(e[0]);a=AC(c)&&c.length||1}return{startIndex:o,dimensionsDefine:QM(i),dimensionsDetectedCount:a}}function jwe(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return DC(n)}function QM(e){if(e){var t=QC();return wC(e,function(e,n){e=FC(e)?e:{name:e};var r={name:e.name,displayName:e.displayName,type:e.type};if(r.name==null)return r;r.name+=``,r.displayName??=r.name;var i=t.get(r.name);return i?r.name+=`-`+i.count++:t.set(r.name,{count:1}),r})}}function $M(e,t,n,r){if(t===`row`)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var a=n[0]||[],i=0;i<a.length&&i<r;i++)e(a[i],i)}function eN(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var tN,nN,rN,iN,aN,oN,sN=function(){function e(e,t){var n=JM(e)?e:XM(e);this._source=n;var r=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===`typedArray`&&(this._offset=0,this._dimSize=t,this._data=r),oN(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;oN=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=aN[hN(o,s)];yC(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=OC(uN(o,s),null,i,c,l),e.count=OC(fN(o,s),null,i,c,l))};var t=function(e,t){e-=this._offset,t||=[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;a<r;a++)t[a]=n[i+a];return t},n=function(e,t,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],c=s[0]==null?1/0:s[0],l=s[1]==null?-1/0:s[1],u=t-e,d=n[o],f=0;f<u;f++){var p=i[f*a+o];d[e+f]=p,p<c&&(c=p),p>l&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};aN=(e={},e[Bk+`_`+Wk]={pure:!0,appendData:i},e[Bk+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[Vk]={pure:!0,appendData:i},e[Hk]={pure:!0,appendData:function(e){var t=this._data;Z(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[zk]={appendData:i},e[Uk]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}}(),e}(),cN=function(e){AC(e)||ik(`series.data or dataset.source must be an array.`)};tN={},tN[Bk+`_`+Wk]=cN,tN[Bk+`_row`]=cN,tN[Vk]=cN,tN[Hk]=function(e,t){for(var n=0;n<t.length;n++)t[n].name??ik(`dimension name must not be null/undefined.`)},tN[zk]=cN;var lN=function(e,t,n,r){return e[r]},Mwe=(nN={},nN[Bk+`_`+Wk]=function(e,t,n,r){return e[r+t]},nN[Bk+`_row`]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var c=o[s];a[s]=c?c[r]:null}return a},nN[Vk]=lN,nN[Hk]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=n[o].name,c=s==null?null:e[s];a[o]=c?c[r]:null}return a},nN[zk]=lN,nN);function uN(e,t){return Mwe[hN(e,t)]}var dN=function(e,t,n){return e.length},Nwe=(rN={},rN[Bk+`_`+Wk]=function(e,t,n){return Math.max(0,e.length-t)},rN[Bk+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},rN[Vk]=dN,rN[Hk]=function(e,t,n){var r=n[0].name,i=r==null?null:e[r];return i?i.length:0},rN[zk]=dN,rN);function fN(e,t){return Nwe[hN(e,t)]}var pN=function(e,t,n){return e[t]},Pwe=(iN={},iN[Bk]=pN,iN[Vk]=function(e,t,n){return e[n]},iN[Hk]=pN,iN[zk]=function(e,t,n){var r=fk(e);return r instanceof Array?r[t]:r},iN[Uk]=pN,iN);function mN(e){return Pwe[e]}function hN(e,t){return e===`arrayRows`?e+`_`+t:e}function gN(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(n!=null){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return mN(a)(r,o,s)}var c=r;return a===`original`&&(c=fk(r)),c}}}var Fwe=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||=this._schema?this._schema.makeOutputDimensionNames():[],this._cachedDimNames},e}();function Iwe(e,t){var n={},r=n.encode={},i=QC(),a=[],o=[],s={};Z(e.dimensions,function(t){var n=e.getDimensionInfo(t),c=n.coordDim;if(c){var l=n.coordDimIndex;_N(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),Lwe(n.type)&&(a[0]=t),_N(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}Rk.each(function(e,t){var i=_N(r,t),a=n.otherDims[t];a!=null&&a!==!1&&(i[a]=n.name)})});var c=[],l={};i.each(function(e,t){var n=r[t];l[t]=n[0],c=c.concat(n)}),n.dataDimsOnCoord=c,n.dataDimIndicesOnCoord=wC(c,function(t){return e.getDimensionInfo(t).storeDimIndex}),n.encodeFirstDimNotExtra=l;var u=r.label;u&&u.length&&(a=u.slice());var d=r.tooltip;return d&&d.length?o=d.slice():o.length||(o=a.slice()),r.defaultedLabel=a,r.defaultedTooltip=o,n.userOutput=new Fwe(s,t),n}function _N(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function vN(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}function Lwe(e){return e!==`ordinal`&&e!==`time`}var yN=function(){function e(e){this.otherDims={},e!=null&&yC(this,e)}return e}();function bN(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!PC(e)&&e!=null&&e!==`-`&&(e=+qO(e)),e==null||e===``?NaN:Number(e))}var Rwe=QC({number:function(e){return parseFloat(e)},time:function(e){return+qO(e)},trim:function(e){return MC(e)?qC(e):e}});function xN(e){return Rwe.get(e)}var SN={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},zwe=function(){function e(e,t){PC(t)||ak(``),this._opFn=SN[e],this._rvalFloat=ZO(t)}return e.prototype.evaluate=function(e){return PC(e)?this._opFn(e,this._rvalFloat):this._opFn(ZO(e),this._rvalFloat)},e}(),CN=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=PC(e)?e:ZO(e),r=PC(t)?t:ZO(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=MC(e),s=MC(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}(),Bwe=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ZO(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=ZO(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function Vwe(e,t){return e===`eq`||e===`ne`?new Bwe(e===`eq`,t):tw(SN,e)?new zwe(e,t):null}function wN(e){var t=``,n=-1/0,r=-1/0,i=1/0,a=1/0;return e&&(e.g!=null&&(t+=`G`+e.g,n=e.g),e.ge!=null&&(t+=`GE`+e.ge,r=e.ge),e.l!=null&&(t+=`L`+e.l,i=e.l),e.le!=null&&(t+=`LE`+e.le,a=e.le)),{key:t,g:n,ge:r,l:i,le:a}}function TN(e,t){return t>e.g&&t>=e.ge&&t<e.l&&t<=e.le}var Hwe=typeof Uint32Array>`u`?Array:Uint32Array,Uwe=typeof Uint16Array>`u`?Array:Uint16Array,EN=typeof Int32Array>`u`?Array:Int32Array,DN=typeof Float64Array>`u`?Array:Float64Array,ON={float:DN,int:EN,ordinal:Array,number:Array,time:DN},kN;function AN(e){return e>65535?Hwe:Uwe}function Wwe(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function jN(e,t,n,r,i){var a=ON[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;l<s;l++)c[l]=o[l];e[t]=c}}else e[t]=new a(r)}var MN=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=QC()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=kN[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],eN(r),this._dimensions=wC(t,function(e){return{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(i!=null){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new ON[t||`float`](this._rawCount),this._rawExtent[i]=Tk(),i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;a===0&&(i[e]=Tk());for(var s=i[e],c=a;c<o;c++){var l=n[c]=t.parseAndCollect(n[c]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=t,r.ordinalOffset=o,r.type=`ordinal`},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),c=0;c<i;c++){var l=r[c];jN(n,c,l.type,s,!0)}for(var u=[],d=o;d<s;d++)for(var f=d-o,p=0;p<i;p++){var l=r[p],m=kN.arrayRows.call(this,e[f]||u,l.property,f,p);n[p][d]=m;var h=a[p];m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=wC(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=Tk()),jN(i,l,u.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],f=e;f<t;f++){d=r.getItem(f,d);for(var p=0;p<o;p++){var m=i[p],h=this._dimValueGetter(d,c[p],f,p);m[f]=h;var g=s[p];h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;for(var i=0,a=r.length;i<a;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var r=0,i=this.count();r<i;r++){var a=this.get(e,r);isNaN(a)||(n+=a)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)}),BO(t);var n=this.count();return n===0?0:n%2==1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var a=(r+i)/2|0;if(t[a]<e)r=a+1;else if(t[a]>e)i=a-1;else return a}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{var n=AN(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(AN(n._rawCount))(r),a=[],o=e.length,s=0,c=e[0],l=n._chunks,u=0;u<r;u++){var d=void 0,f=n.getRawIndex(u);if(o===0)d=t(u);else if(o===1){var p=l[c][f];d=t(p,u)}else{for(var m=0;m<o;m++)a[m]=l[e[m]][f];a[m]=u,d=t.apply(null,a)}d&&(i[s++]=f)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=DC(e),i=r.length;if(!i)return this;var a=t.count(),o=new(AN(t._rawCount))(a),s=0,c=r[0],l=e[c][0],u=e[c][1],d=t._chunks,f=!1;if(!t._indices){var p=0;if(i===1){for(var m=d[r[0]],h=0;h<n;h++){var g=m[h];(g>=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h<n;h++){var g=m[h],b=_[h];(g>=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f){if(i===1)for(var h=0;h<a;h++){var x=t.getRawIndex(h),g=d[r[0]][x];(g>=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;h<a;h++){for(var S=!0,x=t.getRawIndex(h),C=0;C<i;C++){var w=r[C],g=d[w][x];(g<e[w][0]||g>e[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}}return s<a&&(t._indices=o),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],a=t.length,o=e.count(),s=[],c=e._rawExtent,l=0;l<t.length;l++)c[t[l]]=Tk();for(var u=0;u<o;u++){for(var d=e.getRawIndex(u),f=0;f<a;f++)s[f]=r[t[f]][d];s[a]=u;var p=n&&n.apply(null,s);if(p!=null){typeof p!=`object`&&(i[0]=p,p=i);for(var l=0;l<p.length;l++){var m=t[l],h=p[l],g=c[m],_=r[m];_&&(_[d]=h),h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(AN(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;f<i-1;f+=o){for(var p=Math.min(f+o,i-1),m=Math.min(f+o*2,i),h=(m+p)/2,g=0,_=p;_<m;_++){var v=this.getRawIndex(_),y=r[v];isNaN(y)||(g+=y)}g/=m-p;var b=f,x=Math.min(f+o,i),S=f-1,C=r[s];c=-1,u=b;for(var w=-1,T=0,_=b;_<x;_++){var v=this.getRawIndex(_),y=r[v];isNaN(y)?(T++,w<0&&(w=v)):(l=Math.abs((S-h)*(y-C)-(S-_)*(g-C)),l>c&&(c=l,u=v))}T>0&&T<x-b&&(d[a++]=Math.min(w,u),u=Math.max(w,u)),d[a++]=u,s=u}return d[a++]=this.getRawIndex(i-1),n._count=a,n._indices=d,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),r=n._chunks,i=Math.floor(1/t),a=r[e],o=this.count(),s=new(AN(this._rawCount))(Math.ceil(o/i)*2),c=0,l=0;l<o;l+=i){var u=l,d=a[this.getRawIndex(u)],f=l,p=a[this.getRawIndex(f)],m=i;l+i>o&&(m=o-l);for(var h=0;h<m;h++){var g=a[this.getRawIndex(l+h)];g<d&&(d=g,u=l+h),g>p&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);u<f?(s[c++]=_,s[c++]=v):(s[c++]=v,s[c++]=_)}return n._count=c,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),a=i._chunks,o=[],s=Math.floor(1/t),c=a[e],l=this.count(),u=i._rawExtent[e]=Tk(),d=new(AN(this._rawCount))(Math.ceil(l/s)),f=0,p=0;p<l;p+=s){s>l-p&&(s=l-p,o.length=s);for(var m=0;m<s;m++){var h=this.getRawIndex(p+m);o[m]=c[h]}var g=n(o),_=this.getRawIndex(Math.min(p+r(o,g)||0,l-1));c[_]=g,g<u[0]&&(u[0]=g),g>u[1]&&(u[1]=g),d[f++]=_}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();i<a;i++){var o=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][o],i);break;case 2:t(r[e[0]][o],r[e[1]][o],i);break;default:for(var s=0,c=[];s<n;s++)c[s]=r[e[s]][o];c[s]=i,t.apply(null,c)}}},e.prototype.getDataExtent=function(e,t){var n=this._chunks[e],r=Tk();if(!n)return r;var i=this.count();if(!this._indices&&!t)return this._rawExtent[e].slice();var a=this._extent,o=a[e]||(a[e]={}),s=wN(t),c=s.key,l=o[c];if(l)return l.slice();for(var u=r[0],d=r[1],f=0;f<i;f++){var p=n[this.getRawIndex(f)];(!t||TN(s,p))&&(p<u&&(u=p),p>d&&(d=p))}return o[c]=[u,d]},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,a=t&&TC(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?Wwe(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=_C(this._extent),e._rawExtent=_C(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return bN(e[r],this._dimensions[r])}kN={arrayRows:e,objectRows:function(e,t,n,r){return bN(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return bN(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),Gwe=yk(),Kwe={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},NN=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||=IN(this.source))},e.prototype.getSourceDimensionIndex=function(e){return HC(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=eN(this.source),n=!LN(e),r=``,i=[],a=0,o=0;a<e;a++){var s=void 0,c=void 0,l=void 0,u=this.dimensions[o];if(u&&u.storeDimIndex===a)s=t?u.name:null,c=u.type,l=u.ordinalMeta,o++;else{var d=this.getSourceDimension(a);d&&(s=t?d.name:null,c=d.type)}i.push({property:s,type:c,ordinalMeta:l}),!t||s==null||u&&u.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+=`$`,r+=Kwe[c]||`f`,l&&(r+=l.uid),r+=`$`}var f=this.source;return{dimensions:i,hash:[f.seriesLayoutBy,f.startIndex,r].join(`$$`)}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var a=this.getSourceDimension(t);a&&(r=a.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function PN(e){return e instanceof NN}function FN(e){for(var t=QC(),n=0;n<(e||[]).length;n++){var r=e[n],i=FC(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function IN(e){var t=Gwe(e);return t.dimNameMap||=FN(e.dimensionsDefine)}function LN(e){return e>30}var RN=FC,zN=wC,qwe=typeof Int32Array>`u`?Array:Int32Array,Jwe=`e\0\0`,BN=-1,Ywe=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],Xwe=[`_approximateExtent`],VN,HN,UN,WN,GN,KN,qN,JN=function(){function e(e,t){this.type=`list`,this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=[`cloneShallow`,`downSample`,`minmaxDownSample`,`lttbDownSample`,`map`],this.CHANGABLE_METHODS=[`filterSelf`,`selectRange`],this.DOWNSAMPLE_METHODS=[`downSample`,`minmaxDownSample`,`lttbDownSample`];var n,r=!1;PN(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l<n.length;l++){var u=n[l],d=MC(u)?new yN({name:u}):u instanceof yN?u:new yN(u),f=d.name;d.type=d.type||`float`,d.coordDim||(d.coordDim=f,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};a.push(f),i[f]=d,c[f]!=null&&(s=!0),d.createInvertedIndices&&(o[f]=[]),r&&(d.storeDimIndex=l),p.itemName===0&&(this._nameDimIdx=d.storeDimIndex),p.itemId===0&&(this._idDimIdx=d.storeDimIndex)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var m=this._dimIdxToName=QC();Z(a,function(e){m.set(i[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var r=this._schema.getSourceDimension(t);if(r)return r.name},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(PC(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r=this,i;if(e instanceof MN&&(i=e),!i){var a=this.dimensions,o=JM(e)||CC(e)?new sN(e,a.length):e;i=new MN;var s=zN(a,function(e){return{type:r._dimInfos[e].type,property:e}});i.initData(o,s,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=Iwe(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),r=n.start,i=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var o=r;o<i;o++){var s=o-r;this._nameList[o]=t[s],a&&qN(this,o)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==`typedArray`&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o<t;o++){var s=n.getItem(o,a);if(!this.hasItemOption&&ISe(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=hk(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=hk(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)qN(this,o);VN(this)}},e.prototype.getApproximateExtent=function(e,t){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),t)},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){RN(e)?yC(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=UN(this,this._nameDimIdx,t)),n??=``,n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return HN(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return AC(e)?r.getValues(zN(e,function(e){return n._getStoreDimIndex(e)}),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],r=n&&n[t];return r==null||isNaN(r)?BN:r},e.prototype.each=function(e,t,n){jC(e)&&(n=t,t=e,e=[]);var r=n||this,i=zN(WN(e),this._getStoreDimIndex,this);this._store.each(i,r?OC(t,r):t)},e.prototype.filterSelf=function(e,t,n){jC(e)&&(n=t,t=e,e=[]);var r=n||this,i=zN(WN(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?OC(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=DC(e),i=[];return Z(r,function(r){var a=t._getStoreDimIndex(r);n[a]=e[r],i.push(a)}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){jC(e)&&(n=t,t=e,e=[]),n||=this;var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,a=zN(WN(e),this._getStoreDimIndex,this),o=KN(this);return o._store=this._store.map(a,i?OC(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=n||r||this,a=zN(WN(e),this._getStoreDimIndex,this);this._store.modify(a,i?OC(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=KN(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=KN(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=KN(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel;return new LM(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new BM(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return HN(e,t)},function(e){return HN(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},RN(e)?yC(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e];return(n&&n[t])??this.getVisual(t)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),AC(i)?i=i.slice():RN(i)&&(i=yC({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,RN(t)?yC(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){RN(e)?yC(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?yC(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){aCe(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){Z(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:zN(this.dimensions,this._getDimInfo,this),this.hostModel),GN(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];jC(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(WC(arguments)))})},e.internalField=function(){VN=function(e){var t=e._invertedIndicesMap;Z(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new qwe(a.categories.length);for(var s=0;s<n.length;s++)n[s]=BN;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},UN=function(e,t,n){return hk(e._getCategory(t,n),null)},HN=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=UN(e,e._idDimIdx,t)),n??=Jwe+t,n},WN=function(e){return AC(e)||(e=e==null?[]:[e]),e},KN=function(t){var n=new e(t._schema?t._schema:zN(t.dimensions,t._getDimInfo,t),t.hostModel);return GN(n,t),n},GN=function(e,t){Z(Ywe.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,Z(Xwe,function(n){e[n]=_C(t[n])}),e._calculationInfo=yC({},t._calculationInfo)},qN=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(o==null&&i!=null&&(n[t]=o=UN(e,i,t)),s==null&&a!=null&&(r[t]=s=UN(e,a,t)),s==null&&o!=null){var c=e._nameRepeatCount,l=c[o]=(c[o]||0)+1;s=o,l>1&&(s+=`__ec__`+l),r[t]=s}}}(),e}();function YN(e,t){JM(e)||(e=XM(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=QC(),a=[],o=Zwe(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&LN(o),c=r===e.dimensionsDefine,l=c?IN(e):FN(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=QC(u),f=new EN(o),p=0;p<f.length;p++)f[p]=-1;function m(e){var t=f[e];if(t<0){var n=r[e],i=FC(n)?n:{name:n},o=new yN,s=i.name;return s!=null&&l.get(s)!=null&&(o.name=o.displayName=s),i.type!=null&&(o.type=i.type),i.displayName!=null&&(o.displayName=i.displayName),f[e]=a.length,o.storeDimIndex=e,a.push(o),o}return a[t]}if(!s)for(var p=0;p<o;p++)m(p);d.each(function(e,t){var n=lk(e).slice();if(n.length===1&&!MC(n[0])&&n[0]<0)d.set(t,!1);else{var r=d.set(t,[]);Z(n,function(e,n){var i=MC(e)?l.get(e):e;i!=null&&i<o&&(r[n]=i,g(m(i),t,n))})}});var h=0;Z(n,function(e){var t,n,r,i;if(MC(e))t=e,i={};else{i=e,t=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=yC({},i),i.ordinalMeta=a,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=d.get(t);if(s!==!1){if(s=lk(s),!s.length)for(var l=0;l<(n&&n.length||1);l++){for(;h<o&&m(h).coordDim!=null;)h++;h<o&&s.push(h++)}Z(s,function(e,a){var o=m(e);if(c&&i.type!=null&&(o.type=i.type),g(bC(o,i),t,a),o.name==null&&n){var s=n[a];!FC(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&bC(o.otherDims,r)})}});function g(e,t,n){Rk.get(t)==null?(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0)):e.otherDims[t]=n}var _=t.generateCoord,v=t.generateCoordCount,y=v!=null;v=_?v||1:0;var b=_||`value`;function x(e){e.name??=e.coordDim}if(s)Z(a,function(e){x(e)}),a.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var S=0;S<o;S++){var C=m(S);C.coordDim??(C.coordDim=Qwe(b,i,y),C.coordDimIndex=0,(!_||v<=0)&&(C.isExtraCoord=!0),v--),x(C),C.type==null&&(GM(e,S)===VM.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type=`ordinal`)}return Nk(a,function(e){return e.name},function(e,t){t>0&&(e.name+=t-1)}),new NN({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function Zwe(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return Z(t,function(e){var t;FC(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function Qwe(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var XN={},ZN={},QN=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(XN,!0),this._normalMasterList=n(ZN,!1);function n(n,r){var i=[];return Z(n,function(n,r){var a=n.create(e,t);i=i.concat(a||[])}),i}},e.prototype.update=function(e,t){Z(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){e===`matrix`||e===`calendar`?XN[e]=t:ZN[e]=t},e.get=function(e){return ZN[e]||XN[e]},e}();function $we(e){return!!XN[e]}function eTe(e){$N.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var $N=QC();function eP(e){var t=e.getShallow(`coord`,!0),n=1;if(t==null){var r=$N.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}function tTe(e,t){var n=e.getShallow(`coordinateSystem`),r=e.getShallow(`coordinateSystemUsage`,!0),i=0;if(n){var a=e.mainType===`series`;r??=a?`data`:`box`,r===`data`?(i=1,a||(i=0)):r===`box`&&(i=2,!a&&!$we(n)&&(i=0))}return{coordSysType:n,kind:i}}function nTe(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys;e.allowNotFound;var a=tTe(t,!0),o=a.kind,s=a.coordSysType;if(i&&o!==1&&(o=1,s=n),o===0||s!==n)return 0;var c=r(n,t);return c?(o===1?t.coordinateSystem=c:t.boxCoordinateSystem=c,o):0}var rTe=function(){function e(e){this.coordSysDims=[],this.axisMap=QC(),this.categoryAxisMap=QC(),this.coordSysName=e}return e}();function iTe(e){var t=e.get(`coordinateSystem`),n=new rTe(t),r=aTe[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var aTe={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,Sk).models[0],a=e.getReferringComponents(`yAxis`,Sk).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),tP(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),tP(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,Sk).models[0];t.coordSysDims=[`single`],n.set(`single`,i),tP(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,Sk).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),tP(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),tP(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();Z(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),tP(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,Sk).models[0];t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}};function tP(e){return e.get(`type`)===`category`}function oTe(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;sTe(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f,p=!0;function m(e){return e.type!==`ordinal`&&e.type!==`time`}if(Z(a,function(e,t){MC(e)&&(a[t]=e={name:e}),m(e)||(p=!1)}),Z(a,function(e,t){c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),u||!m(e)||p&&(e.coordDim===`x`||e.coordDim===`angle`)||i&&i!==e.coordDim||(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,g=u.type,_=0;Z(a,function(e){e.coordDim===h&&_++});var v={name:d,coordDim:h,coordDimIndex:_,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:f,coordDim:f,coordDimIndex:_+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(v.storeDimIndex=s.ensureCalculationDimension(f,g),y.storeDimIndex=s.ensureCalculationDimension(d,g)),o.appendCalculationDimension(v),o.appendCalculationDimension(y)):(a.push(v),a.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function sTe(e){return!PN(e.schema)}function nP(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function cTe(e,t){return nP(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function lTe(e,t){var n=e.get(`coordinateSystem`),r=QN.get(n),i;return t&&t.coordSysDims&&(i=wC(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=vN(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function uTe(e,t,n){var r,i;return n&&Z(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function rP(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=XM(e)):(i=r.getSource(),a=i.sourceFormat===zk);var o=iTe(t),s=lTe(t,o),c=n.useEncodeDefaulter,l=jC(c)?c:c?kC(UM,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=YN(i,u),f=uTe(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=oTe(t,{schema:d,store:p}),h=new JN(d,t);h.setCalculationInfo(m);var g=f!=null&&dTe(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function dTe(e){if(e.sourceFormat===`original`)return!AC(fk(fTe(e.data||[])))}function fTe(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var pTe=Math.round(Math.random()*10);function iP(e){return[e||``,pTe++].join(`_`)}function mTe(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=ow(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=ow(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function hTe(e,t){e.topologicalTravel=function(e,t,r,i){if(!e.length)return;var a=n(t),o=a.graph,s=a.noEntryList,c={};for(Z(e,function(e){c[e]=!0});s.length;){var l=s.pop(),u=o[l],d=!!c[l];d&&(r.call(i,l,u.originalDeps.slice()),delete c[l]),Z(u.successor,d?p:f)}Z(c,function(){throw Error(``)});function f(e){o[e].entryCount--,o[e].entryCount===0&&s.push(e)}function p(e){c[e]=!0,f(e)}};function n(e){var n={},a=[];return Z(e,function(o){var s=r(n,o),c=i(s.originalDeps=t(o),e);s.entryCount=c.length,s.entryCount===0&&a.push(o),Z(c,function(e){xC(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);xC(t.successor,e)<0&&t.successor.push(o)})}),{graph:n,noEntryList:a}}function r(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function i(e,t){var n=[];return Z(e,function(e){xC(t,e)>=0&&n.push(e)}),n}}function aP(e,t){return vC(vC({},e,!0),t,!0)}var gTe=Math.log(2);function oP(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<<s)-1&~i)/gTe);return e[n][c]}for(var l=r|1<<n,u=n+1;r&1<<u;)u++;for(var d=0,f=0,p=0;f<s;f++){var m=1<<f;m&i||(d+=(p%2?-1:1)*e[n][f]*oP(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function sP(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=oP(n,8,0,0,0,r);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]??(a[s]=0),a[s]+=((o+s)%2?-1:1)*oP(n,7,+(o===0),1<<o,1<<s,r)/i*t[o];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}var cP=`___zrEVENTSAVED`,lP=[];function _Te(e,t,n,r,i){return uP(lP,t,r,i,!0)&&uP(e,n,lP[0],lP[1])}function vTe(e,t){e&&n(e),t&&n(t);function n(e){var t=e[cP];t&&(t.clearMarkers&&t.clearMarkers(),delete e[cP])}}function uP(e,t,n,r,i){if(t.getBoundingClientRect&&rw.domSupported&&!dP(t)){var a=t[cP]||(t[cP]={}),o=bTe(yTe(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function yTe(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=[`left`,`right`],i=[`top`,`bottom`],a=0;a<4;a++){var o=document.createElement(`div`),s=o.style,c=a%2,l=(a>>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){Z(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function bTe(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?sP(s,o):sP(o,s))}function dP(e){return e.nodeName.toUpperCase()===`CANVAS`}var xTe=/([&<>"'])/g,STe={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`};function fP(e){return e==null?``:(e+``).replace(xTe,function(e,t){return STe[t]})}var CTe={time:{month:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthAbbr:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],dayOfWeek:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],dayOfWeekAbbr:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`]},legend:{selector:{all:`All`,inverse:`Inv`}},toolbox:{brush:{title:{rect:`Box Select`,polygon:`Lasso Select`,lineX:`Horizontally Select`,lineY:`Vertically Select`,keep:`Keep Selections`,clear:`Clear Selections`}},dataView:{title:`Data View`,lang:[`Data View`,`Close`,`Refresh`]},dataZoom:{title:{zoom:`Zoom`,back:`Zoom Reset`}},magicType:{title:{line:`Switch to Line Chart`,bar:`Switch to Bar Chart`,stack:`Stack`,tiled:`Tile`}},restore:{title:`Restore`},saveAsImage:{title:`Save as Image`,lang:[`Right Click to Save Image`]}},series:{typeNames:{pie:`Pie chart`,bar:`Bar chart`,line:`Line chart`,scatter:`Scatter plot`,effectScatter:`Ripple scatter plot`,radar:`Radar chart`,tree:`Tree`,treemap:`Treemap`,boxplot:`Boxplot`,candlestick:`Candlestick`,k:`K line chart`,heatmap:`Heat map`,map:`Map`,parallel:`Parallel coordinate map`,lines:`Line graph`,graph:`Relationship graph`,sankey:`Sankey diagram`,funnel:`Funnel chart`,gauge:`Gauge`,pictorialBar:`Pictorial bar`,themeRiver:`Theme River Map`,sunburst:`Sunburst`,custom:`Custom chart`,chart:`Chart`}},aria:{general:{withTitle:`This is a chart about "{title}"`,withoutTitle:`This is a chart`},series:{single:{prefix:``,withName:` with type {seriesType} named {seriesName}.`,withoutName:` with type {seriesType}.`},multiple:{prefix:`. It consists of {seriesCount} series count.`,withName:` The {seriesId} series is a {seriesType} representing {seriesName}.`,withoutName:` The {seriesId} series is a {seriesType}.`,separator:{middle:``,end:``}}},data:{allData:`The data is as follows: `,partialData:`The first {displayCnt} items are: `,withName:`the data for {name} is {value}`,withoutName:`{value}`,separator:{middle:`, `,end:`. `}}}},wTe={time:{month:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`],monthAbbr:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],dayOfWeek:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`],dayOfWeekAbbr:[`日`,`一`,`二`,`三`,`四`,`五`,`六`]},legend:{selector:{all:`全选`,inverse:`反选`}},toolbox:{brush:{title:{rect:`矩形选择`,polygon:`圈选`,lineX:`横向选择`,lineY:`纵向选择`,keep:`保持选择`,clear:`清除选择`}},dataView:{title:`数据视图`,lang:[`数据视图`,`关闭`,`刷新`]},dataZoom:{title:{zoom:`区域缩放`,back:`区域缩放还原`}},magicType:{title:{line:`切换为折线图`,bar:`切换为柱状图`,stack:`切换为堆叠`,tiled:`切换为平铺`}},restore:{title:`还原`},saveAsImage:{title:`保存为图片`,lang:[`右键另存为图片`]}},series:{typeNames:{pie:`饼图`,bar:`柱状图`,line:`折线图`,scatter:`散点图`,effectScatter:`涟漪散点图`,radar:`雷达图`,tree:`树图`,treemap:`矩形树图`,boxplot:`箱型图`,candlestick:`K线图`,k:`K线图`,heatmap:`热力图`,map:`地图`,parallel:`平行坐标图`,lines:`线图`,graph:`关系图`,sankey:`桑基图`,funnel:`漏斗图`,gauge:`仪表盘图`,pictorialBar:`象形柱图`,themeRiver:`主题河流图`,sunburst:`旭日图`,custom:`自定义图表`,chart:`图表`}},aria:{general:{withTitle:`这是一个关于“{title}”的图表。`,withoutTitle:`这是一个图表,`},series:{single:{prefix:``,withName:`图表类型是{seriesType},表示{seriesName}。`,withoutName:`图表类型是{seriesType}。`},multiple:{prefix:`它由{seriesCount}个图表系列组成。`,withName:`第{seriesId}个系列是一个表示{seriesName}的{seriesType},`,withoutName:`第{seriesId}个系列是一个{seriesType},`,separator:{middle:`;`,end:`。`}}},data:{allData:`其数据是——`,partialData:`其中,前{displayCnt}项是——`,withName:`{name}的数据是{value}`,withoutName:`{value}`,separator:{middle:`,`,end:``}}}},pP=`ZH`,mP=`EN`,hP=mP,gP={},_P={},vP=rw.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||hP).toUpperCase().indexOf(pP)>-1?pP:hP}():hP;function yP(e,t){e=e.toUpperCase(),_P[e]=new LM(t),gP[e]=t}function TTe(e){if(MC(e)){var t=gP[e.toUpperCase()]||{};return e===pP||e===mP?_C(t):vC(_C(t),_C(gP[hP]),!1)}return vC(_C(e),_C(gP[hP]),!1)}function ETe(e){return _P[e]}function DTe(){return _P[hP]}yP(mP,CTe),yP(pP,wTe);var OTe=null;function bP(){return OTe}function xP(e,t){var n=bP(),r=t.breakOption,i=t.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,e)),i}function SP(e){var t=e.brk;return t?t.breaks:[]}function CP(e){var t=e.brk;return t?t.hasBreaks():!1}var wP=1e3,TP=wP*60,EP=TP*60,DP=EP*24,OP=DP*365,kTe={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},kP={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},ATe=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,AP=`{yyyy}-{MM}-{dd}`,jP={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:AP,hour:AP+` `+kP.hour,minute:AP+` `+kP.minute,second:AP+` `+kP.second,millisecond:ATe},MP=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],jTe=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function MTe(e){return!MC(e)&&!jC(e)?NTe(e):e}function NTe(e){e||={};var t={},n=!0;return Z(MP,function(t){n&&=e[t]==null}),Z(MP,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=MP[s],l=FC(a)&&!AC(a)?a[c]:a,u=void 0;AC(l)?(u=l.slice(),o=u[0]||``):MC(l)?(o=l,u=[o]):(o==null?o=kP[r]:kTe[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function NP(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function PP(e){switch(e){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return e}}function PTe(e){return e===PP(e)}function FTe(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function FP(e,t,n,r){var i=qO(e),a=i[RP(n)](),o=i[zP(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[BP(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[VP(n)](),d=(u-1)%12+1,f=i[HP(n)](),p=i[UP(n)](),m=i[WP(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof LM?r:ETe(r||vP)||DTe()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,NP(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,NP(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,NP(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,NP(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,NP(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,NP(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,NP(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,NP(m,3)).replace(/{S}/g,m+``)}function ITe(e,t,n,r,i){var a=null;if(MC(n))a=n;else if(jC(n)){var o={time:e.time,level:e.time?e.time.level:0},s=bP();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=n(e.value,t,o)}else{var c=e.time;if(c){var l=n[c.lowerTimeUnit][c.upperTimeUnit];a=l[Math.min(c.level,l.length-1)]||``}else{var u=IP(e.value,i);a=n[u][u][0]}}return FP(new Date(e.value),a,i,r)}function IP(e,t){var n=qO(e),r=n[zP(t)]()+1,i=n[BP(t)](),a=n[VP(t)](),o=n[HP(t)](),s=n[UP(t)](),c=n[WP(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function LP(e,t,n){switch(t){case`year`:e[GP(n)](0);case`month`:e[KP(n)](1);case`day`:e[qP(n)](0);case`hour`:e[JP(n)](0);case`minute`:e[YP(n)](0);case`second`:e[XP(n)](0)}return e}function RP(e){return e?`getUTCFullYear`:`getFullYear`}function zP(e){return e?`getUTCMonth`:`getMonth`}function BP(e){return e?`getUTCDate`:`getDate`}function VP(e){return e?`getUTCHours`:`getHours`}function HP(e){return e?`getUTCMinutes`:`getMinutes`}function UP(e){return e?`getUTCSeconds`:`getSeconds`}function WP(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function LTe(e){return e?`setUTCFullYear`:`setFullYear`}function GP(e){return e?`setUTCMonth`:`setMonth`}function KP(e){return e?`setUTCDate`:`setDate`}function qP(e){return e?`setUTCHours`:`setHours`}function JP(e){return e?`setUTCMinutes`:`setMinutes`}function YP(e){return e?`setUTCSeconds`:`setSeconds`}function XP(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function ZP(e){if(!QO(e))return MC(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function QP(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var $P=GC;function eF(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&qC(e)?e:`-`}function a(e){return nk(e)}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?qO(e):e;if(!isNaN(+c))return FP(c,r,n);if(s)return`-`}if(t===`ordinal`)return NC(e)?i(e):PC(e)&&a(e)?e+``:`-`;var l=ZO(e);return a(l)?ZP(l):NC(e)?i(e):typeof e==`boolean`?e+``:`-`}var tF=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],nF=function(e,t){return`{`+e+(t??``)+`}`};function rF(e,t,n){AC(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=tF[a];e=e.replace(nF(o),nF(o,0))}for(var s=0;s<r;s++)for(var c=0;c<i.length;c++){var l=t[s][i[c]];e=e.replace(nF(tF[c],s),n?fP(l):l)}return e}function RTe(e,t){var n=MC(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var a=n.renderMode||`html`;return r?a===`html`?i===`subItem`?`<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:`+fP(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+fP(r)+`;`+(t||``)+`"></span>`:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function iF(e,t){return t||=`transparent`,MC(e)?e:FC(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function aF(e,t){if(t===`_blank`||t===`blank`){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var oF=Z,zTe=[`left`,`right`,`top`,`bottom`,`width`,`height`],sF=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function cF(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}var lF=cF;kC(cF,`vertical`),kC(cF,`horizontal`);function BTe(e,t){return{left:e.getShallow(`left`,t),top:e.getShallow(`top`,t),right:e.getShallow(`right`,t),bottom:e.getShallow(`bottom`,t),width:e.getShallow(`width`,t),height:e.getShallow(`height`,t)}}function VTe(e,t){var n=fF(e,t,{enableLayoutOnlyByCenter:!0}),r=e.getBoxLayoutParams(),i,a;if(n.type===dF.point)a=n.refPoint,i=uF(r,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get(`center`),s=AC(o)?o:[o,o];i=uF(r,n.refContainer),a=n.boxCoordFrom===2?n.refPoint:[LO(s[0],i.width)+i.x,LO(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function HTe(e,t){var n=VTe(e,t),r=n.viewRect,i=n.center,a=e.get(`radius`);AC(a)||(a=[0,a]);var o=LO(r.width,t.getWidth()),s=LO(r.height,t.getHeight()),c=Math.min(o,s),l=LO(a[0],c/2),u=LO(a[1],c/2);return{cx:i[0],cy:i[1],r0:l,r:u,viewRect:r}}function uF(e,t,n){n=$P(n||0);var r=t.width,i=t.height,a=LO(e.left,r),o=LO(e.top,i),s=LO(e.right,r),c=LO(e.bottom,i),l=LO(e.width,r),u=LO(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new Yw((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}var dF={rect:1,point:2};function fF(e,t,n){var r,i,a,o=e.boxCoordinateSystem,s;if(o){var c=eP(e),l=c.coord,u=c.from;if(o.dataToLayout){a=dF.rect,s=u;var d=o.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=dF.point,s=u,i=o.dataToPoint(l))}return a??=dF.rect,a===dF.rect&&(r||={x:0,y:0,width:t.getWidth(),height:t.getHeight()},i=[r.x+r.width/2,r.y+r.height/2]),{type:a,refContainer:r,refPoint:i,boxCoordFrom:s}}function UTe(e,t,n,r,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],c=i&&i.boundingMode||`all`;if(a||=e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var l;if(c===`raw`)l=e.type===`group`?new Yw(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();l=l.clone(),l.applyTransform(u)}var d=uF(bC({width:l.width,height:l.height},t),n,r),f=o?d.x-l.x:0,p=s?d.y-l.y:0;return c===`raw`?(a.x=f,a.y=p):(a.x+=f,a.y+=p),a===e&&e.markRedraw(),!0}function pF(e){var t=e.layoutMode||e.constructor.layoutMode;return FC(t)?t:t?{type:t}:null}function mF(e,t,n){var r=n&&n.ignoreSize;!AC(r)&&(r=[r,r]);var i=o(sF[0],0),a=o(sF[1],1);c(sF[0],e,i),c(sF[1],e,a);function o(n,i){var a={},o=0,c={},l=0,u=2;if(oF(n,function(t){c[t]=e[t]}),oF(n,function(e){tw(t,e)&&(a[e]=c[e]=t[e]),s(a,e)&&o++,s(c,e)&&l++}),r[i])return s(t,n[1])?c[n[2]]=null:s(t,n[2])&&(c[n[1]]=null),c;if(l===u||!o)return c;if(o>=u)return a;for(var d=0;d<n.length;d++){var f=n[d];if(!tw(a,f)&&tw(e,f)){a[f]=e[f];break}}return a}function s(e,t){return e[t]!=null&&e[t]!==`auto`}function c(e,t,n){oF(e,function(e){t[e]=n[e]})}}function hF(e){return WTe({},e)}function WTe(e,t){return t&&e&&oF(zTe,function(n){tw(t,n)&&(e[n]=t[n])}),e}var GTe=yk(),gF=function(e){iC(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=iP(`ec_cpt_model`),i}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=pF(this),r=n?hF(e):{};vC(e,t.getTheme().get(this.mainType)),vC(e,this.getDefaultOption()),n&&mF(e,r,n)},t.prototype.mergeOption=function(e,t){vC(this.option,e,!0);var n=pF(this);n&&mF(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!qbe(e))return e.defaultOption;var t=GTe(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var a={},o=n.length-1;o>=0;o--)a=vC(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return Ck(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return BTe(this,!1)},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),t}(LM);cw(gF,LM),lw(gF),mTe(gF),hTe(gF,KTe);function KTe(e){var t=[];return Z(gF.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=wC(t,function(e){return ow(e).main}),e!==`dataset`&&xC(t,`dataset`)<=0&&t.unshift(`dataset`),t}var _F=yk(),qTe=yk(),vF=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=lk(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return bF(this,_F,r,i,e,t,n)},e.prototype.clearColorPalette=function(){YTe(this,_F)},e}();function yF(e,t,n,r){return bF(e,qTe,lk(e.get([`aria`,`decal`,`decals`])),null,t,n,r)}function JTe(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function bF(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:JTe(r,o);if(u||=n,u&&u.length){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function YTe(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var XTe=/\{@(.+?)\}/g,ZTe=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t||=`normal`;var o=this.getData(n),s=this.getDataParams(e,n);if(a&&(s.value=a.interpolatedValue),r!=null&&AC(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),jC(i))return s.status=t,s.dimensionIndex=r,i(s);if(MC(i))return rF(i,s).replace(XTe,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=gN(o,e,i);if(a&&AC(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return gN(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function xF(e){var t,n;return FC(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function SF(e){return new QTe(e)}var QTe=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(this._dueEnd=t?t._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f<p)){var m=this._progress;if(AC(m))for(var h=0;h<m.length;h++)this._doProgress(m[h],f,p,s,c);else this._doProgress(m,f,p,s,c)}this._dueIndex=p;var g=this._settedOutputEnd==null?p:this._settedOutputEnd;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd==null?this._dueEnd:this._settedOutputEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){CF.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:CF.next},this.context)},e.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),AC(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||=(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),CF=function(){var e,t,n,r,i,a={reset:function(c,l,u,d){t=c,e=l,n=u,r=d,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%i*n+Math.ceil(t/i),o=t>=e?null:a<r?a:t;return t++,o}}(),$Te=function(){function e(){}return e.prototype.getRawData=function(){throw Error(`not supported`)},e.prototype.getRawDataItem=function(e){throw Error(`not supported`)},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return bN(e,t)},e}();function eEe(e,t){var n=new $Te,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==`column`&&ak(``);var o=[],s={},c=e.dimensionsDefine;if(c)Z(c,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};o.push(r),n!=null&&(tw(s,n)&&ak(``),s[n]=r)});else for(var l=0;l<e.dimensionsDetectedCount;l++)o.push({index:l});var u=uN(i,Wk);t.__isBuiltIn&&(n.getRawDataItem=function(e){return u(r,a,o,e)},n.getRawData=OC(tEe,null,e)),n.cloneRawData=OC(nEe,null,e),n.count=OC(fN(i,Wk),null,r,a,o);var d=mN(i);n.retrieveValue=function(e,t){return f(u(r,a,o,e),t)};var f=n.retrieveValueFromItem=function(e,t){if(e!=null){var n=o[t];if(n)return d(e,t,n.name)}};return n.getDimensionInfo=OC(rEe,null,o,s),n.cloneAllDimensionInfo=OC(iEe,null,o),n}function tEe(e){var t=e.sourceFormat;return TF(t)||ak(``),e.data}function nEe(e){var t=e.sourceFormat,n=e.data;if(TF(t)||ak(``),t===`arrayRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(n[i].slice());return r}if(t===`objectRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(yC({},n[i]));return r}}function rEe(e,t,n){if(n!=null){if(PC(n)||!isNaN(n)&&!tw(t,n))return e[n];if(tw(t,n))return t[n]}}function iEe(e){return _C(e)}var wF=QC();function aEe(e){e=_C(e);var t=e.type,n=``;t||ak(n);var r=t.split(`:`);r.length!==2&&ak(n);var i=!1;r[0]===`echarts`&&(t=r[1],i=!0),e.__isBuiltIn=i,wF.set(t,e)}function oEe(e,t,n){var r=lk(e),i=r.length;i||ak(``);for(var a=0,o=i;a<o;a++){var s=r[a];t=sEe(s,t,n,i===1?null:a),a!==o-1&&(t.length=Math.max(t.length,1))}return t}function sEe(e,t,n,r){var i=``;t.length||ak(i),FC(e)||ak(i);var a=e.type,o=wF.get(a);o||ak(i);var s=wC(t,function(e){return eEe(e,o)});return wC(lk(o.transform({upstream:s[0],upstreamList:s,config:_C(e.config)})),function(e,n){var r=``;FC(e)||ak(r),e.data||ak(r),TF(ZM(e.data))||ak(r);var i,a=t[0];if(a&&n===0&&!e.dimensions){var o=a.startIndex;o&&(e.data=a.data.slice(0,o).concat(e.data)),i={seriesLayoutBy:Wk,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:Wk,sourceHeader:0,dimensions:e.dimensions};return YM(e.data,i,null)})}function TF(e){return e===`arrayRows`||e===`objectRows`}var EF=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+`_`+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(OF(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=LC(o)?Uk:zk,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=HC(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=HC(u.sourceHeader,d.sourceHeader),m=HC(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[YM(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[YM(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&kF(``);var i,a=[],o=[];return Z(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&kF(``),a.push(t),o.push(e._getVersionSign())}),n?i=oEe(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[kwe(a[0])]),{sourceList:i,upstreamSignList:o}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e||=0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=0,i=this._storeList,a=i[r];a||=i[r]={};var o=a[n];if(!o){var s=this._getUpstreamSourceManagers()[0];OF(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new MN,o.initData(new sN(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(OF(e)){var t=WM(e);return t?[t.getSourceManager()]:[]}return wC(Owe(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,r;if(OF(e))t=e.get(`seriesLayoutBy`,!0),n=e.get(`sourceHeader`,!0),r=e.get(`dimensions`,!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get(`seriesLayoutBy`,!0),n=i.get(`sourceHeader`,!0),r=i.get(`dimensions`,!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:r}},e}();function DF(e){e.option.transform&&YC(e.option.transform)}function OF(e){return e.mainType===`series`}function kF(e){throw Error(e)}var AF={color:{},darkColor:{},size:{}},jF=AF.color={theme:[`#5070dd`,`#b6d634`,`#505372`,`#ff994d`,`#0ca8df`,`#ffd10a`,`#fb628b`,`#785db0`,`#3fbe95`],neutral00:`#fff`,neutral05:`#f4f7fd`,neutral10:`#e8ebf0`,neutral15:`#dbdee4`,neutral20:`#cfd2d7`,neutral25:`#c3c5cb`,neutral30:`#b7b9be`,neutral35:`#aaacb2`,neutral40:`#9ea0a5`,neutral45:`#929399`,neutral50:`#86878c`,neutral55:`#797b7f`,neutral60:`#6d6e73`,neutral65:`#616266`,neutral70:`#54555a`,neutral75:`#48494d`,neutral80:`#3c3c41`,neutral85:`#303034`,neutral90:`#232328`,neutral95:`#17171b`,neutral99:`#000`,accent05:`#eff1f9`,accent10:`#e0e4f2`,accent15:`#d0d6ec`,accent20:`#c0c9e6`,accent25:`#b1bbdf`,accent30:`#a1aed9`,accent35:`#91a0d3`,accent40:`#8292cc`,accent45:`#7285c6`,accent50:`#6578ba`,accent55:`#5c6da9`,accent60:`#536298`,accent65:`#4a5787`,accent70:`#404c76`,accent75:`#374165`,accent80:`#2e3654`,accent85:`#252b43`,accent90:`#1b2032`,accent95:`#121521`,transparent:`rgba(0,0,0,0)`,highlight:`rgba(255,231,130,0.8)`};for(var MF in yC(jF,{primary:jF.neutral80,secondary:jF.neutral70,tertiary:jF.neutral60,quaternary:jF.neutral50,disabled:jF.neutral20,border:jF.neutral30,borderTint:jF.neutral20,borderShade:jF.neutral40,background:jF.neutral05,backgroundTint:`rgba(234,237,245,0.5)`,backgroundTransparent:`rgba(255,255,255,0)`,backgroundShade:jF.neutral10,shadow:`rgba(0,0,0,0.2)`,shadowTint:`rgba(129,130,136,0.2)`,axisLine:jF.neutral70,axisLineTint:jF.neutral40,axisTick:jF.neutral70,axisTickMinor:jF.neutral60,axisLabel:jF.neutral70,axisSplitLine:jF.neutral15,axisMinorSplitLine:jF.neutral05}),jF)if(jF.hasOwnProperty(MF)){var NF=jF[MF];MF===`theme`?AF.darkColor.theme=jF.theme.slice():MF===`highlight`?AF.darkColor.highlight=`rgba(255,231,130,0.4)`:MF.indexOf(`accent`)===0?AF.darkColor[MF]=CE(NF,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):AF.darkColor[MF]=CE(NF,null,function(e){return e*.9},function(e){return 1-e**1.5})}AF.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var cEe=`line-height:1`;function PF(e){var t=e.lineHeight;return t==null?cEe:`line-height:`+fP(t+``)+`px`}function FF(e,t){var n=e.color||AF.color.tertiary,r=e.fontSize||12,i=e.fontWeight||`400`,a=e.color||AF.color.secondary,o=e.fontSize||14,s=e.fontWeight||`900`;return t===`html`?{nameStyle:`font-size:`+fP(r+``)+`px;color:`+fP(n)+`;font-weight:`+fP(i+``),valueStyle:`font-size:`+fP(o+``)+`px;color:`+fP(a)+`;font-weight:`+fP(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var lEe=[0,10,20,30],uEe=[``,`
`,`
`,`
`];function IF(e,t){return t.type=e,t}function LF(e){return e.type===`section`}function RF(e){return LF(e)?dEe:fEe}function zF(e){if(LF(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return Z(e.blocks,function(e){var n=zF(e);n>=t&&(t=n+ +(r&&(!n||LF(e)&&!e.noHeader)))}),t}return 0}function dEe(e,t,n,r){var i=t.noHeader,a=pEe(zF(t)),o=[],s=t.blocks||[];KC(!s||AC(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(tw(l,c)){var u=new CN(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}Z(s,function(n,i){var s=t.valueFormatter,c=RF(n)(s?yC(yC({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):VF(r,o.join(``),i?n:a.html);if(i)return d;var f=eF(t.header,`ordinal`,e.useUTC),p=FF(r,e.renderMode).nameStyle,m=PF(r);return e.renderMode===`richText`?HF(e,f,p)+a.richText+d:VF(r,`<div style="`+p+`;`+m+`;">`+fP(f)+`</div>`+d,n)}function fEe(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=AC(e)?e:[e],wC(e,function(e,t){return eF(e,AC(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||AF.color.secondary,i),f=a?``:eF(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=FF(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:HF(e,f,v))+(o?``:gEe(e,m,h,g,y)):VF(r,(s?``:d)+(a?``:mEe(f,!s,v))+(o?``:hEe(m,h,g,y)),n)}}function BF(e,t,n,r,i,a){if(e)return RF(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function pEe(e){return{html:lEe[e],richText:uEe[e]}}function VF(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=PF(e);return`<div style="`+i+`;`+a+`;">`+t+r+`</div>`}function mEe(e,t,n){var r=t?`margin-left:2px`:``;return`<span style="`+n+`;`+r+`">`+fP(e)+`</span>`}function hEe(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=AC(e)?e:[e],`<span style="`+i+`;`+r+`">`+wC(e,function(e){return fP(e)}).join(`&nbsp;&nbsp;`)+`</span>`}function HF(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function gEe(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(AC(t)?t.join(` `):t,a)}function _Ee(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return iF(n)}function UF(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var WF=function(){function e(){this.richTextStyles={},this._nextStyleNameId=$O()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=RTe({color:t,type:e,renderMode:n,markerId:r});return MC(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};AC(t)?Z(t,function(e){return yC(n,e)}):yC(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function GF(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=t.getRawValue(n),c=AC(s),l=_Ee(t,n),u,d,f,p;if(o>1||c&&!o){var m=KF(s,t,n,a,l);u=m.inlineValues,d=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=u=gN(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=gk(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return IF(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[IF(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!qC(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function KF(e,t,n,r,i){var a=t.getData(),o=TC(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||=r&&r.tooltip!==!1&&r.displayName!=null},!1),s=[],c=[],l=[];r.length?Z(r,function(e){u(gN(a,n,e),e)}):Z(e,u);function u(e,t){var n=a.getDimensionInfo(t);n&&n.otherDims.tooltip!==!1&&(o?l.push(IF(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return{inlineValues:s,inlineValueTypes:c,blocks:l}}var qF=yk();function JF(e,t){return e.getName(t)||e.getId(t)}var YF=`__universalTransitionEnabled`,XF=function(e){iC(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=SF({count:$F,reset:eI}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(qF(this).sourceManager=new EF(this)).prepareSource();var r=this.getInitialData(e,n);nI(r,this),this.dataTask.context.data=r,qF(this).dataBeforeProcessed=r,ZF(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=pF(this),r=n?hF(e):{},i=this.subType;gF.hasClass(i)&&(i+=`Series`),vC(e,t.getTheme().get(this.subType)),vC(e,this.getDefaultOption()),uk(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&mF(e,r,n)},t.prototype.mergeOption=function(e,t){e=vC(this.option,e,!0),this.fillDataTextStyle(e.data);var n=pF(this);n&&mF(this.option,e,n);var r=qF(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);nI(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,qF(this).dataBeforeProcessed=i,ZF(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!LC(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&uk(e[n],`label`,t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=iI(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}return qF(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=iI(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}qF(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return QC(e)},t.prototype.getSourceManager=function(){return qF(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return qF(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get(`colorBy`)||`series`},t.prototype.isColorBySeries=function(){return this.getColorBy()===`series`},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.indicesOfNearest=function(e,t,n,r){var i=this.getData(),a=this.coordinateSystem,o=a&&a.getAxis(e);if(!a||!o)return[];var s=o.dataToCoord(n);r??=1/0;for(var c=[],l=1/0,u=-1,d=0,f=i.getDimensionIndex(t),p=i.getStore(),m=0,h=p.count();m<h;m++){var g=p.get(f,m),_=s-o.dataToCoord(g),v=Math.abs(_);v<=r&&((v<l||v===l&&_>=0&&u<0)&&(l=v,u=_,d=0),_===u&&(c[d++]=m))}return c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return GF({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(rw.node&&!(e&&e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=vF.prototype.getColorFromPalette.call(this,e,t,n);return i||=r.getColorFromPalette(e,t,n),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get(`progressive`)},t.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var a=0;a<e.length;a++){var o=e[a],s=JF(i,o);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap===`all`)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=DC(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[JF(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0||e&&e.enabled:!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(a&&o){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){FC(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=JF(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=JF(e,d);i.selectedMap=(n={},n[u]=!0,n),this._selectedDataIndicesMap=(r={},r[u]=e.getRawIndex(d),r)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each(function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)}),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return gF.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type=`series.__base__`,e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol=`circle`,e.visualStyleAccessPath=`itemStyle`,e.visualDrawType=`fill`}(),t}(gF);SC(XF,ZTe),SC(XF,vF),cw(XF,gF);function ZF(e){var t=e.name;gk(e)||(e.name=QF(e)||t)}function QF(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return Z(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function $F(e){return e.model.getRawData().count()}function eI(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),tI}function tI(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function nI(e,t){Z(Vbe(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,kC(rI,t))})}function rI(e,t){var n=iI(e);return n&&n.setOutputEnd((t||this).count()),t}function iI(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var aI=aO.extend({type:`triangle`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),oI={line:hj,rect:fO,roundRect:fO,square:fO,circle:ZA,diamond:aO.extend({type:`diamond`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),pin:aO.extend({type:`pin`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),c=r-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,d=Math.sin(l),f=Math.cos(l),p=o*.6,m=o*.7;e.moveTo(n-u,c+s),e.arc(n,c,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(n+u-d*p,c+s+f*p,n,r-m,n,r),e.bezierCurveTo(n,r-m,n-u+d*p,c+s+f*p,n-u,c+s),e.closePath()}}),arrow:aO.extend({type:`arrow`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),triangle:aI},sI={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},cI={};Z(oI,function(e,t){cI[t]=new e});var lI=aO.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=hT(e,t,n),i=this.shape;return i&&i.symbolType===`pin`&&t.position===`inside`&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!==`none`){var i=cI[r];i||=(r=`rect`,cI[r]),sI[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function uI(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||AF.color.neutral00,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function dI(e,t,n,r,i,a,o){var s=e.indexOf(`empty`)===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var c=e.indexOf(`image://`)===0?Kj(e.slice(8),new Yw(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?Gj(e.slice(7),{},new Yw(t,n,r,i),o?`center`:`cover`):new lI({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=uI,a&&c.setColor(a),c}function fI(e){return AC(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function pI(e,t){if(e!=null)return AC(e)||(e=[e,e]),[LO(e[0],t[0])||0,LO(HC(e[1],e[0]),t[1])||0]}var mI=function(e){iC(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e){return rP(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new XA,n=dI(`line`,0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual(`symbol`),i=this.getData().getVisual(`symbolRotate`),a=r===`none`?`circle`:r,o=e.itemHeight*.8,s=dI(a,(e.itemWidth-o)/2,(e.itemHeight-o)/2,o,o,e.itemStyle.fill);return t.add(s),s.setStyle(e.itemStyle),s.rotation=(e.iconRotate===`inherit`?i:e.iconRotate||0)*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),a.indexOf(`empty`)>-1&&(s.style.stroke=s.style.fill,s.style.fill=AF.color.neutral00,s.style.lineWidth=2),t},t.type=`series.line`,t.dependencies=[`grid`,`polar`],t.defaultOption={z:3,coordinateSystem:`cartesian2d`,legendHoverLink:!0,clip:!0,label:{position:`top`},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:`solid`},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:`emptyCircle`,symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:`auto`,connectNulls:!1,sampling:`none`,animationEasing:`linear`,progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:`clone`},triggerLineEvent:!1,triggerEvent:!1},t}(XF);function hI(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=gN(e,t,n[0]);return i==null?null:i+``}if(r){for(var a=[],o=0;o<n.length;o++)a.push(gN(e,t,n[o]));return a.join(` `)}}function gI(e,t){var n=e.mapDimensionsAll(`defaultedLabel`);if(!AC(t))return t+``;for(var r=[],i=0;i<n.length;i++){var a=e.getDimensionIndex(n[i]);a>=0&&r.push(t[a])}return r.join(` `)}var _I=function(e){iC(t,e);function t(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return t.prototype._createSymbol=function(e,t,n,r,i,a){this.removeAll();var o=dI(e,-1,-1,2,2,null,a);o.attr({z2:HC(i,100),culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=vI,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){gA(this.childAt(0))},t.prototype.downplay=function(){_A(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?`move`:n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var a=e.getItemVisual(n,`symbol`)||`circle`,o=e.hostModel,s=t.getSymbolSize(e,n),c=t.getSymbolZ2(e,n),l=a!==this._symbolType,u=i&&i.disableAnimation;if(l){var d=e.getItemVisual(n,`symbolKeepAspect`);this._createSymbol(a,e,n,s,c,d)}else{var f=this.childAt(0);f.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?f.attr(p):Nj(f,p,o,n),zj(f)}if(this._updateCommon(e,n,s,r,i),l){var f=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,Pj(f,p,o,n)}}u&&this.childAt(0).stopAnimation(`leave`)},t.prototype._updateCommon=function(e,t,n,r,i){var a=this.childAt(0),o=e.hostModel,s,c,l,u,d,f,p,m,h;if(r&&(s=r.emphasisItemStyle,c=r.blurItemStyle,l=r.selectItemStyle,u=r.focus,d=r.blurScope,p=r.labelStatesModels,m=r.hoverScale,h=r.cursorStyle,f=r.emphasisDisabled),!r||e.hasItemOption){var g=r&&r.itemModel?r.itemModel:e.getItemModel(t),_=g.getModel(`emphasis`);s=_.getModel(`itemStyle`).getItemStyle(),l=g.getModel([`select`,`itemStyle`]).getItemStyle(),c=g.getModel([`blur`,`itemStyle`]).getItemStyle(),u=_.get(`focus`),d=_.get(`blurScope`),f=_.get(`disabled`),p=CM(g),m=_.getShallow(`scale`),h=g.getShallow(`cursor`)}var v=e.getItemVisual(t,`symbolRotate`);a.attr(`rotation`,(v||0)*Math.PI/180||0);var y=pI(e.getItemVisual(t,`symbolOffset`),n);y&&(a.x=y[0],a.y=y[1]),h&&a.attr(`cursor`,h);var b=e.getItemVisual(t,`style`),x=b.fill;if(a instanceof sO){var S=a.style;a.useStyle(yC({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},b))}else a.__isEmptyBrush?a.useStyle(yC({},b)):a.useStyle(b),a.style.decal=null,a.setColor(x,i&&i.symbolInnerColor),a.style.strokeNoScale=!0;var C=e.getItemVisual(t,`liftZ`),w=this._z2;C==null?w!=null&&(a.z2=w,this._z2=null):w??(this._z2=a.z2,a.z2+=C);var T=i&&i.useNameLabel;SM(a,p,{labelFetcher:o,labelDataIndex:t,defaultText:E,inheritColor:x,defaultOpacity:b.opacity});function E(t){return T?e.getName(t):hI(e,t)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=a.ensureState(`emphasis`);D.style=s,a.ensureState(`select`).style=l,a.ensureState(`blur`).style=c;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;D.scaleX=this._sizeX*O,D.scaleY=this._sizeY*O,this.setSymbolScale(1),OA(this,u,d,f)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=Lk(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&Ij(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();Ij(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return fI(e.getItemVisual(t,`symbolSize`))},t.getSymbolZ2=function(e,t){return e.getItemVisual(t,`z2`)},t}(XA);function vI(e,t){this.parent.drift(e,t)}function yI(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r&&r.isIgnore&&r.isIgnore(n))&&!(r&&r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,`symbol`)!==`none`}function bI(e){return e!=null&&!FC(e)&&(e={isIgnore:e}),e||{}}function xI(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{emphasisItemStyle:n.getModel(`itemStyle`).getItemStyle(),blurItemStyle:t.getModel([`blur`,`itemStyle`]).getItemStyle(),selectItemStyle:t.getModel([`select`,`itemStyle`]).getItemStyle(),focus:n.get(`focus`),blurScope:n.get(`blurScope`),emphasisDisabled:n.get(`disabled`),hoverScale:n.get(`scale`),labelStatesModels:CM(t),cursorStyle:t.get(`cursor`)}}function SI(e,t,n,r,i,a,o){var s=new e(t,n,r,i);return s.setPosition(a),t.setItemGraphicEl(n,s),o.add(s),s}var CI=function(){function e(e){this.group=new XA,this._SymbolCtor=e||_I}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=bI(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=this._seriesScope=xI(e),c={disableAnimation:o},l=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=l(r);yI(e,i,r,t)&&SI(a,e,r,s,c,i,n)}).update(function(u,d){var f=i.getItemGraphicEl(d),p=l(u);if(!yI(e,p,u,t))n.remove(f);else{var m=e.getItemVisual(u,`symbol`)||`circle`,h=f&&f.getSymbolType&&f.getSymbolType();if(!f||h&&h!==m)n.remove(f),f=new a(e,u,s,c),f.setPosition(p);else{f.updateData(e,u,s,c);var g={x:p[0],y:p[1]};o?f.attr(g):Nj(f,g,r)}n.add(f),e.setItemGraphicEl(u,f)}}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=l,this._data=e},e.prototype.updateLayout=function(e){var t=this._data;if(t)for(var n=this,r=t.getStore(),i=0,a=r.count();i<a;i++){var o=t.getItemGraphicEl(i),s=n._getSymbolPoint(i);yI(t,s,i,e)?(o||=SI(n._SymbolCtor,t,i,n._seriesScope,{disableAnimation:!0},s,n.group),o.stopAnimation(),o.setPosition(s),o.markRedraw()):o&&(n.group.remove(o),t.setItemGraphicEl(i,null))}},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=xI(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n,r){this._progressiveEls=[],r=bI(r);function i(e){e.isGroup||(e.incremental=n,e.ensureState(`emphasis`).hoverLayer=2)}for(var a=e.start;a<e.end;a++){var o=t.getItemLayout(a);if(yI(t,o,a,r)){var s=new this._SymbolCtor(t,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(e){dM(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(e){e.fadeOut(function(){t.remove(e)},n.hostModel)}):t.removeAll()},e}();function wI(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),a=TI(i,n),o=r.dim,s=i.dim,c=t.mapDimension(s),l=t.mapDimension(o),u=+(s===`x`||s===`radius`),d=wC(e.dimensions,function(e){return t.mapDimension(e)}),f=!1,p=t.getCalculationInfo(`stackResultDimension`);return nP(t,d[0])&&(f=!0,d[0]=p),nP(t,d[1])&&(f=!0,d[1]=p),{dataDimsForPoint:d,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!f,valueDim:c,baseDim:l,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo(`stackedOverDimension`)}}function TI(e,t){var n=0,r=e.scale.getExtent();return t===`start`?n=r[0]:t===`end`?n=r[1]:PC(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function EI(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo(`stackedOverDimension`),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}function DI(e,t){return!isFinite(e)||!isFinite(t)}var OI=typeof Float32Array<`u`?Float32Array:void 0,kI=typeof Float64Array<`u`?Float64Array:void 0;function AI(e){return jI({ctor:OI},e).arr}function jI(e,t){var n=e.arr,r=e.ctor;if(t>WO&&(t=WO),!n||e.typed&&n.length<t){var i=void 0;if(r)try{i=new r(t),e.typed=!0,n&&i.set(n)}catch{}if(!i&&(i=[],e.typed=!1,n))for(var a=0,o=n.length;a<o;a++)i[a]=n[a];e.arr=i}return e}function MI(e,t){var n=[];return t.diff(e).add(function(e){n.push({cmd:`+`,idx:e})}).update(function(e,t){n.push({cmd:`=`,idx:t,idx1:e})}).remove(function(e){n.push({cmd:`-`,idx:e})}).execute(),n}function NI(e,t,n,r,i,a,o,s){for(var c=MI(e,t),l=[],u=[],d=[],f=[],p=[],m=[],h=[],g=wI(i,t,o),_=e.getLayout(`points`)||[],v=t.getLayout(`points`)||[],y=0;y<c.length;y++){var b=c[y],x=!0,S=void 0,C=void 0;switch(b.cmd){case`=`:S=b.idx*2,C=b.idx1*2;var w=_[S],T=_[S+1],E=v[C],D=v[C+1];(isNaN(w)||isNaN(T))&&(w=E,T=D),l.push(w,T),u.push(E,D),d.push(n[S],n[S+1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(b.idx1));break;case`+`:var O=b.idx,k=g.dataDimsForPoint,A=i.dataToPoint([t.get(k[0],O),t.get(k[1],O)]);C=O*2,l.push(A[0],A[1]),u.push(v[C],v[C+1]);var j=EI(g,i,t,O);d.push(j[0],j[1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(O));break;case`-`:x=!1}x&&(p.push(b),m.push(m.length))}m.sort(function(e,t){return h[e]-h[t]});for(var ee=l.length,te=AI(ee),M=AI(ee),ne=AI(ee),re=AI(ee),ie=[],y=0;y<m.length;y++){var N=m[y],P=y*2,ae=N*2;te[P]=l[ae],te[P+1]=l[ae+1],M[P]=u[ae],M[P+1]=u[ae+1],ne[P]=d[ae],ne[P+1]=d[ae+1],re[P]=f[ae],re[P+1]=f[ae+1],ie[y]=p[N]}return{current:te,next:M,stackedOnCurrent:ne,stackedOnNext:re,status:ie}}var PI=Math.min,FI=Math.max;function II(e,t,n,r,i,a,o,s,c){for(var l,u,d,f,p,m,h=n,g=0;g<r;g++){var _=t[h*2],v=t[h*2+1];if(h>=i||h<0)break;if(DI(_,v)){if(c){h+=a;continue}break}if(h===n)e[a>0?`moveTo`:`lineTo`](_,v),d=_,f=v;else{var y=_-l,b=v-u;if(y*y+b*b<.5){h+=a;continue}if(o>0){for(var x=h+a,S=t[x*2],C=t[x*2+1];S===_&&C===v&&g<r;)g++,x+=a,h+=a,S=t[x*2],C=t[x*2+1],_=t[h*2],v=t[h*2+1],y=_-l,b=v-u;var w=g+1;if(c)for(;DI(S,C)&&w<r;)w++,x+=a,S=t[x*2],C=t[x*2+1];var T=.5,E=0,D=0,O=void 0,k=void 0;if(w>=r||DI(S,C))p=_,m=v;else{E=S-l,D=C-u;var A=_-l,j=S-_,ee=v-u,te=C-v,M=void 0,ne=void 0;if(s===`x`){M=Math.abs(A),ne=Math.abs(j);var re=E>0?1:-1;p=_-re*M*o,m=v,O=_+re*ne*o,k=v}else if(s===`y`){M=Math.abs(ee),ne=Math.abs(te);var ie=D>0?1:-1;p=_,m=v-ie*M*o,O=_,k=v+ie*ne*o}else M=Math.sqrt(A*A+ee*ee),ne=Math.sqrt(j*j+te*te),T=ne/(ne+M),p=_-E*o*(1-T),m=v-D*o*(1-T),O=_+E*o*T,k=v+D*o*T,O=PI(O,FI(S,_)),k=PI(k,FI(C,v)),O=FI(O,PI(S,_)),k=FI(k,PI(C,v)),E=O-_,D=k-v,p=_-E*M/ne,m=v-D*M/ne,p=PI(p,FI(l,_)),m=PI(m,FI(u,v)),p=FI(p,PI(l,_)),m=FI(m,PI(u,v)),E=_-p,D=v-m,O=_+E*ne/M,k=v+D*ne/M}e.bezierCurveTo(d,f,p,m,_,v),d=O,f=k}else e.lineTo(_,v)}l=_,u=v,h+=a}return g}var LI=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),RI=function(e){iC(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polyline`,n}return t.prototype.getDefaultStyle=function(){return{stroke:AF.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new LI},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&DI(n[i*2-2],n[i*2-1]);i--);for(;r<i&&DI(n[r*2],n[r*2+1]);r++);}for(;r<i;)r+=II(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path.data,r=KD.CMD,i,a,o=t===`x`,s=[],c=0;c<n.length;){var l=n[c++],u=void 0,d=void 0,f=void 0,p=void 0,m=void 0,h=void 0,g=void 0;switch(l){case r.M:i=n[c++],a=n[c++];break;case r.L:if(u=n[c++],d=n[c++],g=o?(e-i)/(u-i):(e-a)/(d-a),g<=1&&g>=0){var _=o?(d-a)*g+a:(u-i)*g+i;return o?[e,_]:[_,e]}i=u,a=d;break;case r.C:u=n[c++],d=n[c++],f=n[c++],p=n[c++],m=n[c++],h=n[c++];var v=o?eE(i,u,f,m,e,s):eE(a,d,p,h,e,s);if(v>0)for(var y=0;y<v;y++){var b=s[y];if(b<=1&&b>=0){var _=o?QT(a,d,p,h,b):QT(i,u,f,m,b);return o?[e,_]:[_,e]}}i=m,a=h}}},t}(aO),zI=function(e){iC(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(LI),BI=function(e){iC(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polygon`,n}return t.prototype.getDefaultShape=function(){return new zI},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,a=n.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;a>0&&DI(n[a*2-2],n[a*2-1]);a--);for(;i<a&&DI(n[i*2],n[i*2+1]);i++);}for(;i<a;){var s=II(e,n,i,a,a,1,t.smooth,o,t.connectNulls);II(e,r,i+s-1,s,a,-1,t.stackedOnSmooth,o,t.connectNulls),i+=s+1,e.closePath()}},t}(aO);function VI(){var e=yk();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==o||a!==s)&&`reset`}}var HI=yk(),UI=VI(),WI=function(){function e(){this.group=new XA,this.uid=iP(`viewChart`),this.renderTask=SF({plan:qI,reset:JI}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&KI(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&KI(i,r,`normal`)},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){dM(this.group,e)},e.markUpdateMethod=function(e,t){HI(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}();function GI(e,t,n){e&&MA(e)&&(t===`emphasis`?gA:_A)(e,n)}function KI(e,t,n){var r=vk(e,t),i=t&&t.highlightKey!=null?TCe(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){GI(e,n,i)}):Z(lk(r),function(t){GI(e.getItemGraphicEl(t),n,i)})}sw(WI,[`dispose`]),lw(WI);function qI(e){return UI(e.model)}function JI(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&HI(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),YI[c]}var YI={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};function XI(e,t,n,r,i){var a=e.getArea(),o=a.x,s=a.y,c=a.width,l=a.height,u=n.get([`lineStyle`,`width`])||0;o-=u/2,s-=u/2,c+=u,l+=u,c=Math.ceil(c),o!==Math.floor(o)&&(o=Math.floor(o),c++);var d=new fO({shape:{x:o,y:s,width:c,height:l}});if(t){var f=e.getBaseAxis(),p=f.isHorizontal(),m=f.inverse;p?(m&&(d.shape.x+=c),d.shape.width=0):(m||(d.shape.y+=l),d.shape.height=0);var h=jC(i)?function(e){i(e,d)}:null;Pj(d,{shape:{width:c,height:l,x:o,y:s}},n,null,r,h)}return d}function ZI(e,t,n){var r=e.getArea(),i=zO(r.r0,1),a=zO(r.r,1),o=new uj({shape:{cx:zO(e.cx,1),cy:zO(e.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return t&&(e.getBaseAxis().dim===`angle`?o.shape.endAngle=r.startAngle:o.shape.r=i,Pj(o,{shape:{endAngle:r.endAngle,r:a}},n)),o}function QI(e,t,n,r,i){return e?e.type===`polar`?ZI(e,t,n):e.type===`cartesian2d`?XI(e,t,n,r,i):null:null}function $I(e,t,n){e?t.setClipPath(n):t.removeClipPath()}function eL(e){var t=e.coordinateSystem;if(e.get(`clip`,!0)&&t&&(!t.shouldClip||t.shouldClip()))return t.getArea&&t.getArea(.1)}function tL(e,t){return e.type===t}var nL=function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();lw(nL);var rL=0,iL=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++rL,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&wC(r,aL);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!MC(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var r=this._getOrCreateMap();return t=r.get(e),t??(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||=QC(this.categories)},e}();function aL(e){return FC(e)&&e.value!=null?e.value:e+``}var oL=DC({needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1});function sL(e,t,n){var r;e||={};var i=bP();if(i){var a=i.createBreakScaleMapper(t,n);a.hasBreaks()&&(Z(oL,function(t){a[t]&&(e[t]=OC(a[t],a))}),r=a)}return r??mL(e,n),{brk:r,mapper:e}}function cL(e,t){Z(oL,function(n){e[n]=t[n]})}function lL(e,t){e.freeze=nw}function uL(e){return e.getExtentUnsafe(0,2)}function dL(e,t){return e.getExtentUnsafe(1,t)||e.getExtentUnsafe(0,t)}function fL(e){var t=dL(e,3);return t[1]-t[0]}function pL(e){var t=e.getExtentUnsafe(0,3);return t[1]-t[0]}function mL(e,t){var n=e||{},r=[];return n._extents=r,r[0]=t?t.slice():Tk(),yC(n,hL),n}var hL={needTransform:function(){return!1},normalize:function(e){var t=this._extents[1]||this._extents[0];return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},scale:function(e){var t=this._extents[1]||this._extents[0];return e*(t[1]-t[0])+t[0]},transformIn:function(e){return e},transformOut:function(e){return e},contain:function(e){var t=dL(this,null);return e>=t[0]&&e<=t[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){gL(this._extents,0,e,t)},setExtent2:function(e,t,n){var r=this._extents;r[e]||(r[e]=r[0].slice()),gL(r,e,t,n)},freeze:function(){}};function gL(e,t,n,r){Ak(n,r)&&(e[t][0]=n,e[t][1]=r)}function _L(e){return vL(e)||bL(e)}function vL(e){return e.type===`interval`}function yL(e){return e.type===`time`}function bL(e){return e.type===`log`}function xL(e){return e.type===`ordinal`}function SL(e){var t=YO(e),n=NO(10,t),r=AO(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,zO(r*n,-t)}function CL(e){return VO(e)+2}function wL(e,t){return PO(e)/PO(t)}function TL(e,t,n){var r=n&&n.lookup;if(r){for(var i=0;i<r.from.length;i++)if(e===r.from[i])return r.to[i]}return NO(t,e)}function EL(e,t,n){var r=e.slice();if(r[0]===r[1]){var i=n&&n.ctnShp;if(r[0]!==0){var a=kO(r[0]);t[1]||(r[1]+=a/2),r[0]-=a/2}else i&&(r[0]=-1),r[1]=1}return kk(r[0])&&kk(r[1])||(r[0]=0,r[1]=1),r[1]<r[0]&&r.reverse(),r}function DL(e,t){return[e[0]!==t[0],e[1]!==t[1]]}function OL(e,t){return e||=t,AO(OO(e,1))}function kL(e,t,n){var r=uL(e),i=r[0],a=e.count(),o=Math.max((t||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==r[0]&&c(r[0],!0,!0);for(var s=i;s<=r[1];s+=o)c(s,!1,s===r[0]||s===r[1]);s-o!==r[1]&&c(r[1],!0,!0);function c(e,t,r){n({value:e,offInterval:t},r)}}var AL=function(e){iC(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,cL(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new iL({}),AC(i)&&(i=new iL({categories:wC(i,function(e){return FC(e)?e.value:e})})),r._ordinalMeta=i;var a=sL(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,lL(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:MC(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=AO(e),e},t.prototype.getTicks=function(){var e=[];return kL(this,0,function(t){e.push(t)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null)this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;else{for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=DO(a,t.length);i<o;++i){var s=n[i]=t[i];r[s]=i}for(var c=0;i<a;++i){for(;r[c]!=null;)c++;n[i]=c,r[c]=i}}},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return n==null?``:n+``}},t.prototype.count=function(){var e=uL(this._mapper);return e[1]-e[0]+1},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.type=`ordinal`,t.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(e){return this._mapper.contain(this._getTickNumber(e))&&e>=0&&e<this._ordinalMeta.categories.length},normalize:function(e){return this._mapper.normalize(this._getTickNumber(e))},scale:function(e){return this.getRawOrdinalNumber(AO(this._mapper.scale(e)))},transformIn:function(e,t){return this._mapper.transformIn(this._getTickNumber(e),t)},transformOut:function(e,t){return this.getRawOrdinalNumber(this._mapper.transformOut(e,t))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(e,t){return this._mapper.getExtentUnsafe(e,t)},setExtent:function(e,t){return this._mapper.setExtent(e,t)},setExtent2:function(e,t,n){return this._mapper.setExtent2(e,t,n)}},t}(nL);nL.registerClass(AL);function jL(e,t,n,r){for(var i=e.getTicks({expandToNicedExtent:!0}),a=[],o=e.getExtent(),s=1;s<i.length;s++){var c=i[s],l=i[s-1];if(!(l.break||c.break)){for(var u=0,d=[],f=(c.value-l.value)/t,p=CL(f);u<t-1;){var m=zO(l.value+(u+1)*f,p);m>o[0]&&m<o[1]&&d.push(m),u++}var h=bP();h&&h.pruneTicksByBreak(`auto`,d,n,function(e){return e},r,o),a.push(d)}}return a}var ML=function(e){iC(t,e);function t(n){var r=e.call(this)||this;return r.type=`interval`,r.parse=t.parse,n||={},r.brk=sL(r,xP(r,n),null).brk,r._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},r}return t.parse=function(e){return e==null||e===``?NaN:Number(e)},t.prototype.getConfig=function(){return _C(this._cfg)},t.prototype.setConfig=function(e){var t=uL(this);this._cfg=e=_C(e),e.niceExtent??(e.niceExtent=t.slice()),e.intervalPrecision??(e.intervalPrecision=CL(e.interval))},t.prototype.getTicks=function(e){e||={};var t=this._cfg,n=t.interval,r=uL(this),i=t.niceExtent,a=t.intervalPrecision,o=bP(),s=this.brk,c=o&&s,l=[];if(!n)return l;if(e.breakTicks===`only_break`&&c)return o.addBreaksToTicks(l,s.breaks,r),l;var u=3e3;r[0]<i[0]&&l.push({value:e.expandToNicedExtent?zO(i[0]-n,a):r[0]});for(var d=function(e,t){return AO((t-e)/n)},f=t.intervalCount,p=i[0],m=0;;m++){if(f==null){if(p>i[1]||!isFinite(p)||!isFinite(i[1]))break}else{if(m>f)break;p=DO(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=zO(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=zO(p+h*n,a))}if(l.length>0&&p===l[l.length-1].value)break;if(l.length>u)return[]}var g=l.length?l[l.length-1].value:i[1];return r[1]>g&&l.push({value:e.expandToNicedExtent?zO(g+n,a):r[1]}),c&&o.pruneTicksByBreak(e.pruneByBreak,l,s.breaks,function(e){return e.value},t.interval,r),c&&e.breakTicks!==`none`&&o.addBreaksToTicks(l,s.breaks,r),l},t.prototype.getMinorTicks=function(e){return jL(this,e,SP(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=VO(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),ZP(zO(e.value,n,!0))},t.type=`interval`,t}(nL);nL.registerClass(ML);var NL=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},PL=function(e){iC(t,e);function t(n){var r=e.call(this)||this;return r.type=`time`,r.parse=t.parse,r._locale=n.locale,r._useUTC=n.useUTC,r._interval=0,r.brk=sL(r,xP(r,n),null).brk,r}return t.prototype.getLabel=function(e){return FP(e.value,jP[FTe(PP(this._minLevelUnit))]||jP.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(e,t,n){return ITe(e,t,n,this._locale,this._useUTC)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=uL(this),r=bP(),i=this.brk,a=r&&i,o=[];if(!t)return o;var s=this._useUTC;if(a&&e.breakTicks===`only_break`)return bP().addBreaksToTicks(o,i.breaks,n),o;o=SEe(this._minLevelUnit,this._approxInterval,s,n,pL(this),i);var c=MP.length-1,l=0;return Z(o,function(e){e.time&&(c=Math.min(c,xC(MP,e.time.upperTimeUnit)),l=Math.max(l,e.time.level))}),a&&bP().pruneTicksByBreak(e.pruneByBreak,o,i.breaks,function(e){return e.value},this._approxInterval,n),a&&e.breakTicks!==`none`&&bP().addBreaksToTicks(o,i.breaks,n,function(e){for(var t=Math.max(xC(MP,IP(e.vmin,s)),xC(MP,IP(e.vmax,s))),n=0,r=0;r<MP.length;r++)if(!IL(MP[r],e.vmin,e.vmax,s)){n=r;break}var i=Math.min(n,c);return{level:l,lowerTimeUnit:MP[Math.max(i,t)],upperTimeUnit:MP[i]}}),o},t.prototype.getMinorTicks=function(e){return jL(this,e,SP(this),this._interval)},t.prototype.setTimeInterval=function(e){this._interval=e.interval,this._approxInterval=e.approxInterval,this._minLevelUnit=e.minLevelUnit},t.parse=function(e){return PC(e)?Math.round(e):+qO(e)},t.type=`time`,t}(nL),FL=[[`second`,wP],[`minute`,TP],[`hour`,EP],[`quarter-day`,EP*6],[`half-day`,EP*12],[`day`,DP*1.2],[`half-week`,DP*3.5],[`week`,DP*7],[`month`,DP*31],[`quarter`,DP*95],[`half-year`,OP/2],[`year`,OP]];function IL(e,t,n,r){return LP(new Date(t),e,r).getTime()===LP(new Date(n),e,r).getTime()}function LL(e,t){return e/=DP,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function RL(e){var t=30*DP;return e/=t,e>6?6:e>3?3:e>2?2:1}function vEe(e){return e/=EP,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function zL(e,t){return e/=t?TP:wP,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function yEe(e){return OO(XO(e,!0),1)}function bEe(e,t,n){var r=Math.max(0,xC(MP,t)-1);return LP(new Date(e),MP[r],n).getTime()}function xEe(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(e,t){return Math.max(0,Math.round((t-e)/i))}}function SEe(e,t,n,r,i,a){var o=jTe,s=0;function c(e,t,n,i,o,c,l){for(var u=xEe(o,e),d=t,f=new Date(d);d<n&&d<=r[1]&&(l.push({value:d}),!(s++>3e3));)if(f[o](f[i]()+e),d=f.getTime(),a){var p=a.calcNiceTickMultiple(d,u);p>0&&(f[o](f[i]()+p*e),d=f.getTime())}l.push({value:d,notAdd:d>r[1]})}function l(e,i,a){var o=[],s=!i.length;if(!IL(PP(e),r[0],r[1],n)){s&&(i=[{value:bEe(r[0],e,n)},{value:r[1]}]);for(var l=0;l<i.length-1;l++){var u=i[l].value,d=i[l+1].value;if(u!==d){var f=void 0,p=void 0,m=void 0,h=!1;switch(e){case`year`:f=Math.max(1,Math.round(t/DP/365)),p=RP(n),m=LTe(n);break;case`half-year`:case`quarter`:case`month`:f=RL(t),p=zP(n),m=GP(n);break;case`week`:case`half-week`:case`day`:f=LL(t,31),p=BP(n),m=KP(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=vEe(t),p=VP(n),m=qP(n);break;case`minute`:f=zL(t,!0),p=HP(n),m=JP(n);break;case`second`:f=zL(t,!1),p=UP(n),m=YP(n);break;case`millisecond`:f=yEe(t),p=WP(n),m=XP(n)}d>=r[0]&&u<=r[1]&&c(f,u,d,p,m,h,o),e===`year`&&a.length>1&&l===0&&a.unshift({value:a[0].value-f})}}for(var l=0;l<o.length;l++)a.push(o[l])}}for(var u=[],d=[],f=0,p=0,m=0;m<o.length;++m){var h=PP(o[m]);if(PTe(o[m])&&(l(o[m],u[u.length-1]||[],d),h!==(o[m+1]?PP(o[m+1]):null))){if(d.length){p=f,d.sort(function(e,t){return e.value-t.value});for(var g=[],_=0;_<d.length;++_){var v=d[_].value;(_===0||d[_-1].value!==v)&&(g.push(d[_]),v>=r[0]&&v<=r[1]&&f++)}var y=i/t;if(f>y*1.5&&p>y/1.5||(u.push(g),f>y||e===o[m]))break}d=[]}}for(var b=EC(wC(u,function(e){return EC(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),x=b.length-1,S=[],m=0;m<b.length;++m)for(var C=b[m],w=0;w<C.length;++w){var T=IP(C[w].value,n);S.push({value:C[w].value,time:{level:x-m,upperTimeUnit:T,lowerTimeUnit:T}})}Nk(S,nCe,null),S.sort(function(e,t){return e.value-t.value});var E=S[0],D=S[S.length-1],O=IP(r[0],n),k=IP(r[1],n);return(!E||E.value>r[0])&&S.unshift({value:r[0],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),(!D||D.value<r[1])&&S.push({value:r[1],time:{level:0,upperTimeUnit:k,lowerTimeUnit:k},notNice:!0}),S}var CEe=function(e,t){var n=e.getExtent();if(n[0]===n[1]&&(n[0]-=DP,n[1]+=DP),n[1]===-1/0&&n[0]===1/0){var r=new Date;n[1]=+new Date(r.getFullYear(),r.getMonth(),r.getDate()),n[0]=n[1]-DP}e.setExtent(n[0],n[1]);var i=OL(t.splitNumber,10),a=pL(e)/i,o=t.minInterval,s=t.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var c=FL.length,l=Math.min(NL(FL,a,0,c),c-1),u=FL[l][1],d=FL[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})};nL.registerClass(PL);var BL=0,VL=1,wEe=2,HL=function(e){iC(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=ML.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[BL]=i[VL]=a[BL]=a[VL]=NaN,cL(r,t.mapperMethods);var s=bP(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},wEe,l),r.powStub=new ML({breakParsed:l.original}),r.intervalStub=new ML({breakParsed:l.transformed}),lL(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=bP(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return wC(i.getTicks(e||{}),function(e){var i=e.value,o=TL(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,SP(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return jL(this,e,SP(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,t){return this.intervalStub.getLabel(e,t)},t.type=`log`,t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(wL(e,this.base))},scale:function(e){return TL(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=wL(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return UL.depth=n,WL.lookup=this._lookup,TL(n===2?e:this.intervalStub.transformOut(e,UL),this.base,WL)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!Ak(t,n)||t<=0||n<=0)){var r=GL,i=GL;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[BL]=t,r[VL]=n);var o=this.base;this.intervalStub.setExtent2(e,i[BL]=wL(t,o),i[VL]=wL(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return Ak(t[0],t[1])&&nk(e)&&e<=0&&(e=t[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,t){return t===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,t)}},t}(nL);nL.registerClass(HL);var UL={},WL={},GL=[],KL={value:1,category:1,time:1,log:1},qL=yk();function TEe(e){var t=e.get(`type`);return(t==null||!tw(KL,t)&&!nL.getClass(t))&&(t=`value`),t}function EEe(e,t,n){var r=bP(),i;switch(r&&(i=$L(e,t,n)),t){case`category`:return new AL({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:Tk()});case`time`:return new PL({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new HL({logBase:e.get(`logBase`),breakOption:i});case`value`:return new ML({breakOption:i});default:return new((nL.getClass(t))||ML)({})}}function DEe(e,t,n){var r=n?dL(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return Ak(i,a)?i===t||a===t?2:i<t&&a>t?1:3:3}function OEe(e){qL(e).noOnMyZero=!0}function kEe(e){return qL(e).noOnMyZero}function JL(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=MTe(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}if(MC(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};if(jC(t)){if(e.type===`category`)return function(n,r){return t(YL(e,n),n.value-e.scale.getExtent()[0],null)};var r=bP();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(YL(e,n),i,a)}}return function(t){return e.scale.getLabel(t)}}function YL(e,t){var n=e.scale;return xL(n)?n.getLabel(t):t.value}function XL(e){return e.get(`interval`)??`auto`}function AEe(e){return e.type===`category`&&XL(e.getLabelModel())===0}function jEe(e,t){var n={};return Z(e.mapDimensionsAll(t),function(t){n[cTe(e,t)]=!0}),DC(n)}function ZL(e){return e===`middle`||e===`center`}function QL(e){return e.getShallow(`show`)}function $L(e,t,n){var r=e.get(`breaks`,!0);if(r!=null)return!bP()||!n||!MEe(t)?void 0:r}function MEe(e){return e!==`category`}function eR(e,t,n,r,i,a){var o=bL(e),s=o?e.intervalStub:e;if(s.setExtent(r[0],r[1]),o){var c=e.powStub,l={depth:2},u=e.transformOut(r[0],l),d=e.transformOut(r[1],l),f=DL(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function tR(e,t){return xL(e)?e.getRawOrdinalNumber(t.value):t.value}function nR(e,t){return xL(e)&&!!t.get(`boundaryGap`)}function rR(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function iR(e){for(var t=Tk(),n=Tk(),r=0;r<e.length;){var i=e[r++],a=e[r++];DI(i,a)||(Ek(t,i),Ek(n,a))}return[t,n]}function aR(e,t){var n=iR(e),r=n[0],i=n[1],a=iR(t),o=a[0],s=a[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(i[0]-s[0]),Math.abs(r[1]-o[1]),Math.abs(i[1]-s[1]))}function oR(e){return PC(e)?e:e?.5:0}function NEe(e,t,n){if(n.valueDim==null)return[];for(var r=t.count(),i=AI(r*2),a=0;a<r;a++){var o=EI(n,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function sR(e,t,n,r,i){var a=n.getBaseAxis(),o=a.dim===`x`||a.dim===`radius`?0:1,s=[],c=0,l=[],u=[],d=[],f=[];if(i){for(c=0;c<e.length;c+=2){var p=t||e;DI(p[c],p[c+1])||f.push(e[c],e[c+1])}e=f}for(c=0;c<e.length-2;c+=2)switch(d[0]=e[c+2],d[1]=e[c+3],u[0]=e[c],u[1]=e[c+1],s.push(u[0],u[1]),r){case`end`:l[o]=d[o],l[1-o]=u[1-o],s.push(l[0],l[1]);break;case`middle`:var m=(u[o]+d[o])/2,h=[];l[o]=h[o]=m,l[1-o]=u[1-o],h[1-o]=d[1-o],s.push(l[0],l[1]),s.push(h[0],h[1]);break;default:l[o]=u[o],l[1-o]=d[1-o],s.push(l[0],l[1])}return s.push(e[c++],e[c++]),s}function PEe(e,t){var n=[],r=e.length,i,a;function o(e,t,n){var r=e.coord;return{coord:n,color:Fxe((n-r)/(t.coord-r),[e.color,t.color])}}for(var s=0;s<r;s++){var c=e[s],l=c.coord;if(l<0)i=c;else if(l>t){a?n.push(o(a,c,t)):i&&n.push(o(i,c,0),o(i,c,t));break}else i&&=(n.push(o(i,c,0)),null),n.push(c),a=c}return n}function FEe(e,t,n){var r=e.getVisual(`visualMeta`);if(r&&r.length&&e.count()&&t.type===`cartesian2d`){for(var i,a,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i===`x`||i===`y`){a=r[o];break}}if(a){var c=t.getAxis(i),l=wC(a.stops,function(e){return{coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}}),u=l.length,d=a.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),d.reverse());var f=PEe(l,i===`x`?n.getWidth():n.getHeight()),p=f.length;if(!p&&u)return l[0].coord<0?d[1]?d[1]:l[u-1].color:d[0]?d[0]:l[0].color;var m=10,h=f[0].coord-m,g=f[p-1].coord+m,_=g-h;if(_<.001)return`transparent`;Z(f,function(e){e.offset=(e.coord-h)/_}),f.push({offset:p?f[p-1].offset:.5,color:d[1]||`transparent`}),f.unshift({offset:p?f[0].offset:.5,color:d[0]||`transparent`});var v=new xj(0,0,0,0,f,!0);return v[i]=h,v[i+`2`]=g,v}}}function IEe(e,t,n){var r=e.get(`showAllSymbol`),i=r===`auto`;if(!r||i){var a=n.getAxesByScale(`ordinal`)[0];if(a&&!(i&&LEe(a,t))){var o=t.mapDimension(a.dim),s={};return Z(a.getViewLabels(),function(e){e.tick.offInterval||(s[tR(a.scale,e.tick)]=1)}),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function LEe(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(_I.getSymbolSize(t,o)[+!!e.isHorizontal()]*1.5>r)return!1;return!0}function REe(e){for(var t=e.length/2;t>0&&DI(e[t*2-2],e[t*2-1]);t--);return t-1}function cR(e,t){return[e[t*2],e[t*2+1]]}function zEe(e,t,n){for(var r=e.length/2,i=n===`x`?0:1,a,o,s=0,c=-1,l=0;l<r;l++)if(o=e[l*2+i],!DI(o,e[l*2+1-i])){if(l===0)a=o;else{if(a<=t&&o>=t||a>=t&&o<=t){c=l;break}s=l,a=o}}return{range:[s,c],t:(t-a)/(o-a)}}function lR(e){if(e.get([`endLabel`,`show`]))return!0;for(var t=0;t<Xk.length;t++)if(e.get([Xk[t],`endLabel`,`show`]))return!0;return!1}function uR(e,t,n,r){if(tL(t,`cartesian2d`)){var i=r.getModel(`endLabel`),a=i.get(`valueAnimation`),o=r.getData(),s={lastFrameIndex:0},c=lR(r)?function(n,r){e._endLabelOnDuring(n,r,o,s,a,i,t)}:null,l=t.getBaseAxis().isHorizontal(),u=XI(t,n,r,function(){var t=e._endLabel;t&&n&&s.originalX!=null&&t.attr({x:s.originalX,y:s.originalY})},c);if(!r.get(`clip`,!0)){var d=u.shape,f=Math.max(d.width,d.height);l?(d.y-=f,d.height+=f*2):(d.x-=f,d.width+=f*2)}return c&&c(1,u),u}return ZI(t,n,r)}function BEe(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,a=r?i?`right`:`left`:`center`,o=r?`middle`:i?`top`:`bottom`;return{normal:{align:e.get(`align`)||a,verticalAlign:e.get(`verticalAlign`)||o}}}var VEe=function(e){iC(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var e=new XA,t=new CI;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e,this._changePolyState=OC(this._changePolyState,this)},t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=e.getModel(`lineStyle`),s=e.getModel(`areaStyle`),c=a.getLayout(`points`)||[],l=r.type===`polar`,u=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,m=this._lineGroup,h=!t.ssr&&e.get(`animation`),g=!s.isEmpty(),_=s.get(`origin`),v=wI(r,a,_),y=g&&NEe(r,a,v),b=e.get(`showSymbol`),x=e.get(`connectNulls`),S=b&&!l&&IEe(e,a,r),C=this._data;C&&C.eachItemGraphicEl(function(e,t){e.__temp&&(i.remove(e),C.setItemGraphicEl(t,null))}),b||d.remove(),i.add(m);var w=!l&&e.get(`step`),T;r&&r.getArea&&e.get(`clip`,!0)&&(T=r.getArea(),T.width==null?T.r0&&(T.r0-=.5,T.r+=.5):(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2)),this._clipShapeForSymbol=T;var E=FEe(a,r,n)||a.getVisual(`style`)[a.getVisual(`drawType`)];if(!(f&&u.type===r.type&&w===this._step))b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),h&&this._initSymbolLabelAnimation(a,r,T),w&&(y&&=sR(y,c,r,w,x),c=sR(c,null,r,w,x)),f=this._newPolyline(c),g?p=this._newPolygon(c,y):p&&=(m.remove(p),this._polygon=null),l||this._initOrUpdateEndLabel(e,r,iF(E)),m.setClipPath(uR(this,r,!0,e));else{g&&!p?p=this._newPolygon(c,y):p&&!g&&(m.remove(p),p=this._polygon=null),l||this._initOrUpdateEndLabel(e,r,iF(E));var D=m.getClipPath();D?Pj(D,{shape:uR(this,r,!1,e).shape},e):m.setClipPath(uR(this,r,!0,e)),b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),rR(this._stackedOnPoints,y)&&rR(this._points,c)||(h?this._doUpdateAnimation(a,y,r,n,w,_,x):(w&&(y&&=sR(y,c,r,w,x),c=sR(c,null,r,w,x)),f.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:y})))}var O=e.getModel(`emphasis`),k=O.get(`focus`),A=O.get(`blurScope`),j=O.get(`disabled`);if(f.useStyle(bC(o.getLineStyle(),{fill:`none`,stroke:E,lineJoin:`bevel`})),AA(f,e,`lineStyle`),f.style.lineWidth>0&&e.get([`emphasis`,`lineStyle`,`width`])===`bolder`){var ee=f.getState(`emphasis`).style;ee.lineWidth=+f.style.lineWidth+1}Lk(f).seriesIndex=e.seriesIndex,OA(f,k,A,j);var te=oR(e.get(`smooth`)),M=e.get(`smoothMonotone`);if(f.setShape({smooth:te,smoothMonotone:M,connectNulls:x}),p){var ne=a.getCalculationInfo(`stackedOnSeries`),re=0;p.useStyle(bC(s.getAreaStyle(),{fill:E,opacity:.7,lineJoin:`bevel`,decal:a.getVisual(`style`).decal})),ne&&(re=oR(ne.get(`smooth`))),p.setShape({smooth:te,stackedOnSmooth:re,smoothMonotone:M,connectNulls:x}),AA(p,e,`areaStyle`),Lk(p).seriesIndex=e.seriesIndex,OA(p,k,A,j)}var ie=this._changePolyState;a.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=ie)}),this._polyline.onHoverStateChange=ie,this._data=a,this._coordSys=r,this._stackedOnPoints=y,this._points=c,this._step=w,this._valueOrigin=_;var N=e.get(`triggerEvent`),P=e.get(`triggerLineEvent`),ae=P===!0||N===!0||N===`line`,oe=P===!0||N===!0||N===`area`;this.packEventData(e,f,ae),p&&this.packEventData(e,p,oe)},t.prototype.packEventData=function(e,t,n){Lk(t).eventData=n?{componentType:`series`,componentSubType:`line`,componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:`line`,selfType:t===this._polygon?`area`:`line`}:null},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=vk(i,r);if(this._changePolyState(`emphasis`),!(a instanceof Array)&&a!=null&&a>=0){var o=i.getLayout(`points`),s=i.getItemGraphicEl(a);if(!s){var c=o[a*2],l=o[a*2+1];if(DI(c,l)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,l))return;var u=e.get(`zlevel`)||0,d=e.get(`z`)||0;s=new _I(i,a),s.x=c,s.y=l,s.setZ(u,d);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=u,f.z=d,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else WI.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=vk(i,r);if(this._changePolyState(`normal`),a!=null&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else WI.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;fA(this._polyline,e),t&&fA(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new RI({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new BI({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,a=t.getBaseAxis(),o=a.inverse;t.type===`cartesian2d`?(r=a.isHorizontal(),i=!1):t.type===`polar`&&(r=a.dim===`angle`,i=!0);var s=e.hostModel,c=s.get(`animationDuration`);jC(c)&&(c=c(null));var l=s.get(`animationDelay`)||0,u=jC(l)?l(null):l;e.eachItemGraphicEl(function(e,a){var s=e;if(s){var d=[e.x,e.y],f=void 0,p=void 0,m=void 0;if(n){if(i){var h=n,g=t.pointToCoord(d);r?(f=h.startAngle,p=h.endAngle,m=-g[1]/180*Math.PI):(f=h.r0,p=h.r,m=g[0])}else{var _=n;r?(f=_.x,p=_.x+_.width,m=e.x):(f=_.y+_.height,p=_.y,m=e.y)}}var v=p===f?0:(m-f)/(p-f);o&&(v=1-v);var y=jC(l)?l(a):c*v+u,b=s.getSymbolPath(),x=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:y}),b.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel(`endLabel`);if(lR(e)){var i=e.getData(),a=this._polyline,o=i.getLayout(`points`);if(!o){a.removeTextContent(),this._endLabel=null;return}var s=this._endLabel;s||(s=this._endLabel=new gO({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var c=REe(o);c>=0&&(SM(a,CM(e,`endLabel`),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(e,t,n){return n==null?hI(i,e):gI(i,n)},enableTextSetter:!0},BEe(r,t)),a.textConfig.position=null)}else this._endLabel&&=(this._polyline.removeTextContent(),null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,a,o){var s=this._endLabel,c=this._polyline;if(s){e<1&&r.originalX==null&&(r.originalX=s.x,r.originalY=s.y);var l=n.getLayout(`points`),u=n.hostModel,d=u.get(`connectNulls`),f=a.get(`precision`),p=a.get(`distance`)||0,m=o.getBaseAxis(),h=m.isHorizontal(),g=m.inverse,_=t.shape,v=g?h?_.x:_.y+_.height:h?_.x+_.width:_.y,y=(h?p:0)*(g?-1:1),b=(h?0:-p)*(g?-1:1),x=h?`x`:`y`,S=zEe(l,v,x),C=S.range,w=C[1]-C[0],T=void 0;if(w>=1){if(w>1&&!d){var E=cR(l,C[0]);s.attr({x:E[0]+y,y:E[1]+b}),i&&(T=u.getRawValue(C[0]))}else{var E=c.getPointOn(v,x);E&&s.attr({x:E[0]+y,y:E[1]+b});var D=u.getRawValue(C[0]),O=u.getRawValue(C[1]);i&&(T=QSe(n,f,D,O,S.t))}r.lastFrameIndex=C[0]}else{var k=e===1||r.lastFrameIndex>0?C[0]:0,E=cR(l,k);i&&(T=u.getRawValue(k)),s.attr({x:E[0]+y,y:E[1]+b})}if(i){var A=jM(s);typeof A.setLabelText==`function`&&A.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,a,o){var s=this._polyline,c=this._polygon,l=e.hostModel,u=NI(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,a),d=u.current,f=u.stackedOnCurrent,p=u.next,m=u.stackedOnNext;if(i&&(f=sR(u.stackedOnCurrent,u.current,n,i,o),d=sR(u.current,null,n,i,o),m=sR(u.stackedOnNext,u.next,n,i,o),p=sR(u.next,null,n,i,o)),aR(d,p)>3e3||c&&aR(f,m)>3e3)s.stopAnimation(),s.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m}));else{s.shape.__points=u.current,s.shape.points=d;var h={shape:{points:p}};u.current!==d&&(h.shape.__points=u.next),s.stopAnimation(),Nj(s,h,l),c&&(c.setShape({points:d,stackedOnPoints:f}),c.stopAnimation(),Nj(c,{shape:{stackedOnPoints:m}},l),s.shape.points!==c.shape.points&&(c.shape.points=s.shape.points));for(var g=[],_=u.status,v=0;v<_.length;v++)if(_[v].cmd===`=`){var y=e.getItemGraphicEl(_[v].idx1);y&&g.push({el:y,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during(function(){c&&c.dirtyShape();for(var e=s.shape.__points,t=0;t<g.length;t++){var n=g[t].el,r=g[t].ptIdx*2;n.x=e[r],n.y=e[r+1],n.markRedraw()}})}},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type=`line`,t}(WI);function dR(e,t){return{seriesType:e,plan:VI(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,a=t||i.large;if(r){var o=wC(r.dimensions,function(e){return n.mapDimension(e)}).slice(0,2),s=o.length,c=n.getCalculationInfo(`stackResultDimension`);nP(n,o[0])&&(o[0]=c),nP(n,o[1])&&(o[1]=c);var l=n.getStore(),u=n.getDimensionIndex(o[0]),d=n.getDimensionIndex(o[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,i=a&&AI(n*s),o=[],c=[],f=e.start,p=0;f<e.end;f++){var m=void 0;if(s===1){var h=l.get(u,f);m=r.dataToPoint(h,null,c)}else o[0]=l.get(u,f),o[1]=l.get(d,f),m=r.dataToPoint(o,null,c);a?(i[p++]=m[0],i[p++]=m[1]):t.setItemLayout(f,m.slice())}a&&(t.setLayout(`points`,i),t.setLayout(`pointsRange`,{start:e.start,end:e.end}))}}}}}}var HEe={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},UEe=function(e){return Math.round(e.length/2)};function fR(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get(`sampling`),a=e.coordinateSystem,o=r.count();if(o>10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;MC(i)?p=HEe[i]:jC(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,UEe))}}}}}function WEe(e){e.registerChartView(VEe),e.registerSeriesModel(mI),e.registerLayout(dR(`line`,!0)),e.registerVisual({seriesType:`line`,reset:function(e){var t=e.getData(),n=e.getModel(`lineStyle`).getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual(`style`).fill),t.setVisual(`legendLineStyle`,n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,fR(`line`))}var GEe=yk(),pR=yk(),mR={estimate:1,determine:2};function hR(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function KEe(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:wC(gR(n,r),function(t,n){return{formattedLabel:JL(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?JEe(e,t):XEe(e)}function qEe(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:gR(i,r)}:e.type===`category`?YEe(e,t):{ticks:r.getTicks(n)}}function gR(e,t){var n=t.getExtent(),r=[];return Z(e,function(e){e=t.parse(e),e>=n[0]&&e<=n[1]&&r.push(e)}),Nk(r,rCe,null),BO(r),wC(r,function(e){return{value:e}})}function JEe(e,t){var n=e.getLabelModel(),r=_R(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function _R(e,t,n){var r=QEe(e),i=XL(t),a=n.kind===mR.estimate;if(!a){var o=yR(r,i);if(o)return o}var s,c;jC(i)?s=SR(e,i,!1):(c=i===`auto`?$Ee(e,n):i,s=SR(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return bR(r,i,l),!0}):bR(r,i,l),l}function YEe(e,t){var n=ZEe(e),r=XL(t),i=yR(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),jC(r))a=SR(e,r,!0);else if(r===`auto`){var s=_R(e,e.getLabelModel(),hR(mR.determine));o=s.labelCategoryInterval,a=wC(s.labels,function(e){return e.tick})}else o=r,a=SR(e,o,!0);return bR(n,r,{ticks:a,tickCategoryInterval:o})}function XEe(e){var t=e.scale.getTicks(),n=JL(e);return{labels:wC(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}var ZEe=vR(`axisTick`),QEe=vR(`axisLabel`);function vR(e){return function(t){return pR(t)[e]||(pR(t)[e]={list:[]})}}function yR(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function bR(e,t,n){return e.list.push({key:t,value:n}),n}function $Ee(e,t){if(t.kind===mR.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return pR(e).autoInterval=n,!0}),n}return pR(e).autoInterval??(pR(e).autoInterval=e.calculateCategoryInterval(t))}function eDe(e,t){var n=t.kind,r=nDe(e),i=JL(e),a=(r.axisRotate-r.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),c=o.count();if(s[1]-s[0]<1)return 0;var l=1,u=40;c>u&&(l=Math.max(1,Math.floor(c/u)));for(var d=s[0],f=e.dataToCoord(d+1)-e.dataToCoord(d),p=Math.abs(f*Math.cos(a)),m=Math.abs(f*Math.sin(a)),h=0,g=0;d<=s[1];d+=l){var _=0,v=0,y=uT(i({value:d}),r.font,`center`,`top`);_=y.width*1.3,v=y.height*1.3,h=Math.max(h,_,7),g=Math.max(g,v,7)}var b=h/p,x=g/m;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(b,x)));return n===mR.estimate?(t.out.noPxChangeTryDetermine.push(OC(tDe,null,e,S,c)),S):xR(e,S,c)??S}function tDe(e,t,n){return xR(e,t,n)==null}function xR(e,t,n){var r=GEe(e.model),i=e.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-n)<=1&&a>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function nDe(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get(`rotate`)||0,font:t.getFont()}}function SR(e,t,n){var r=JL(e),i=e.scale,a=[],o=jC(t);return kL(i,o?0:t,function(e,s){var c=i.getLabel(e);if(o){var l=!!t(e.value,c);if(e.offInterval=!l,!l&&!s)return}a.push(n?e:{formattedLabel:r(e),rawLabel:c,tick:e})}),a}var CR=yk();function rDe(e){CR(e).prepare={}}function iDe(e){CR(e).fullUpdate={}}function wR(e){return CR(e).prepare}function TR(e){return CR(e).fullUpdate}var aDe=Mk(),ER=yk(),oDe=yk();function DR(e,t){var n=e.model,r=ER(TR(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function sDe(e,t){return kR(DR(e,t))}function cDe(e,t){var n=[];return OR(e.model.ecModel,function(e){for(var r=0;r<t.length;r++)t[r]&&e.serByIdx[t[r].seriesIndex]&&n.push(kR(e))}),n}function OR(e,t){var n=ER(TR(e)).keyed;n&&n.each(function(e,n){e.each(function(e,r){t(e,n,r)})})}function kR(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function lDe(e,t){var n=e.model.ecModel,r=ER(TR(n)).axSer;r&&jR(n,r.get(e.model.uid),t)}function AR(e,t,n){var r=DR(e,t);r&&jR(e.model.ecModel,r.sers,n)}function jR(e,t,n){if(t)for(var r=0;r<t.length;r++){var i=t[r];e.isSeriesFiltered(i)||n(i)}}function uDe(e,t,n){var r=ER(TR(e)).keyed,i=r&&r.get(t);i&&i.each(function(e){n(e.axis)})}function MR(e,t){var n=e.model,r=ER(TR(n.ecModel)).keys;r&&Z(r.get(n.uid),function(e){t(e)})}function dDe(e){var t=oDe(wR(e)),n=t.keyed||=QC();OR(e,function(t,r,i){var a=n.get(r)||n.set(r,QC()),o=a.get(i)||a.set(i,{});t.metrics.liPosMinGap&&NR.liPosMinGap(e,t,o)})}function fDe(e,t){NR[e]=t}var NR={};function PR(e,t,n){if(e){var r=t.ecModel,i=ER(TR(r)),a=e.model.uid,o=i.axSer||=QC();(o.get(a)||o.set(a,[])).push(t);var s=t.subType,c=t.getBaseAxis()===e,l=LR.get(FR(s,c,n))||LR.get(FR(s,c,null));if(l){var u=i.keyed||=QC(),d=i.keys||=QC(),f=l.key,p=u.get(f)||u.set(f,QC()),m=p.get(a);m||(m=p.set(a,{axis:e,sers:[],serByIdx:[]}),m.metrics=l.getMetrics(e),(d.get(a)||d.set(a,[])).push(f)),m.sers.push(t),m.serByIdx[t.seriesIndex]=t}}}function FR(e,t,n){return e+`|&`+HC(t,!0)+`|&`+(n||``)}function IR(e,t){var n=FR(t.seriesType,t.baseAxis,t.coordSysType);LR.set(n,t),aDe(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:dDe})})}var LR=QC(),pDe=.8;function RR(e,t){t||={};var n={w:NaN,w2:NaN},r=e.scale,i=t.fromStat,a=t.min,o=fL(r);nk(o)||(o=NaN);var s=e.getExtent(),c=kO(s[1]-s[0]);return xL(r)?mDe(n,e,o,c):i&&hDe(n,e,o,c,i),a!=null&&(n.w=nk(n.w)?OO(a,n.w):a),n}function mDe(e,t,n,r){var i=t.onBand,a=n+ +!!i;a===0&&(a=1),e.w=r/a,!i&&n&&r&&(e.w2=e.w*n/r)}function hDe(e,t,n,r,i){var a=!1,o=-1/0;Z(i.key?[sDe(t,i.key)]:cDe(t,i.sers||[]),function(e){var t=e.liPosMinGap;t!=null&&(t>0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),nk(n)&&n>0&&nk(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*pDe,e.w2=e.w*n/r)}var zR=[0,1],gDe=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),IO(e,zR,BR(this),t)},e.prototype.coordToData=function(e,t){var n=IO(e,BR(this),zR,t);return this.scale.scale(n)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=wC(qEe(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(tR(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=_De(this,n,r);return wC(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(xL(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),wC(this.scale.getMinorTicks(e),function(e){return wC(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=hR(mR.determine),KEe(this,e).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){return RR(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=hR(mR.determine),eDe(this,e)},e}();function BR(e){var t=e.getExtent();if(e.onBand){var n=(t[1]-t[0])/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}function _De(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=RR(e).w;if(!i)return!1;Z(t,function(e){e.coord-=i/2});var a=e.scale.getExtent(),o=t[r-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var vDe=function(e){iC(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(gDe),VR=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],yDe=1,HR=2,UR=yDe|HR;function WR(e,t,n){n||=UR,t?e.dirty|=n:e.dirty&=~n}function GR(e,t){return t||=UR,e.dirty==null||!!(e.dirty&t)}function KR(e){if(e)return GR(e)&&qR(e,e.label,e),e}function qR(e,t,n){var r=t.getComputedTransform();e.transform=hM(e.transform,r);var i=e.localRect=mM(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=n&&n.marginForce,c=n&&n.minMarginForce,l=n&&n.marginDefault,u=a.__marginType;u==null&&l&&(o=l,u=MM.textMargin);for(var d=0;d<4;d++)JR[d]=u===MM.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===MM.textMargin&&oM(i,JR,!1,!1);var f=e.rect=mM(e.rect,i);return r&&f.applyTransform(r),u===MM.minMargin&&oM(f,JR,!1,!1),e.axisAligned=fM(r),(e.label=e.label||{}).ignore=t.ignore,WR(e,!1),WR(e,!0,HR),e}var JR=[0,0,0,0];function bDe(e,t,n){return e.transform=hM(e.transform,n),e.localRect=mM(e.localRect,t),e.rect=mM(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=fM(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function xDe(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var n=e.transform;n&&(n[4]+=t.x,n[5]+=t.y);var r=e.rect;r&&(r.x+=t.x,r.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,n)}}function YR(e,t){for(var n=0;n<VR.length;n++){var r=VR[n];e[r]??(e[r]=t[r])}return KR(e)}function XR(e){var t=e.obb;return(!t||GR(e,HR))&&(e.obb=t||=new kj,t.fromBoundingRect(e.localRect,e.transform),WR(e,!1,HR)),t}function SDe(e,t,n,r,i){var a=e.length,o=Hj[t],s=Uj[t];if(a<2)return!1;e.sort(function(e,t){return e.rect[o]-t.rect[o]});for(var c=0,l,u=!1,d=0,f=0;f<a;f++){var p=e[f],m=p.rect;l=m[o]-c,l<0&&(m[o]-=l,p.label[o]-=l,u=!0);var h=Math.max(-l,0);d+=h,c=m[o]+m[s]}d>0&&i&&S(-d/a,0,a);var g=e[0],_=e[a-1],v,y;b(),v<0&&C(-v,.8),y<0&&C(y,.8),b(),x(v,y,1),x(y,v,-1),b(),v<0&&w(-v),y<0&&w(y);function b(){v=g.rect[o]-n,y=r-_.rect[o]-_.rect[s]}function x(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){S(r*n,0,a);var i=r+e;i<0&&C(-i*n,1)}else C(-e*n,1)}}function S(t,n,r){t!==0&&(u=!0);for(var i=n;i<r;i++){var a=e[i],s=a.rect;s[o]+=t,a.label[o]+=t}}function C(t,n){for(var r=[],i=0,c=1;c<a;c++){var l=e[c-1].rect,u=Math.max(e[c].rect[o]-l[o]-l[s],0);r.push(u),i+=u}if(i){var d=Math.min(Math.abs(t)/i,n);if(t>0)for(var c=0;c<a-1;c++){var f=r[c]*d;S(f,0,c+1)}else for(var c=a-1;c>0;c--){var f=r[c-1]*d;S(-f,c,a)}}}function w(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),r=0;r<a-1;r++)if(t>0?S(n,0,r+1):S(-n,a-r-1,a),e-=n,e<=0)return}return u}function CDe(e){var t=[];e.sort(function(e,t){return+!!t.suggestIgnore-!!e.suggestIgnore||t.priority-e.priority});function n(e){if(!e.ignore){var t=e.ensureState(`emphasis`);t.ignore??=!1}e.ignore=!0}for(var r=0;r<e.length;r++){var i=KR(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(ZR(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}function ZR(e,t,n,r){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,n,r)?!1:e.axisAligned&&t.axisAligned?!0:XR(e).intersect(XR(t),n,r)}var wDe=null;function QR(){return wDe}var TDe=`expandAxisBreak`,$R=Math.PI,EDe=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],DDe=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],ez=yk(),tz=yk(),nz=function(){function e(e){this.recordMap={},this.resolveAxisNameOverlap=e}return e.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,r=this.recordMap,i=r[t]||(r[t]=[]);return i[n]||(i[n]={ready:{}})},e}();function ODe(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=gz(e.axisName)&&ZL(e.nameLocation);Z(r,function(e){var t=KR(e);if(t&&!t.label.ignore){o.push(t);var n=a.transGroup;c&&(n.transform?Cw(rz,n.transform):vw(rz),t.transform&&bw(rz,rz,t.transform),Yw.copy(iz,t.localRect),iz.applyTransform(rz),s?s.union(iz):Yw.copy(s=new Yw(0,0,0,0),iz))}});var l=Math.abs(a.dirVec.x)>.1?`x`:`y`,u=a.transGroup[l];if(o.sort(function(e,t){return Math.abs(e.label[l]-u)-Math.abs(t.label[l]-u)}),c&&s){var d=i.getExtent(),f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-f;s.union(new Yw(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var rz=_w(),iz=new Yw(0,0,0,0),az=function(e,t,n,r,i,a){if(ZL(e.nameLocation)){var o=a.stOccupiedRect;o&&oz(bDe({},o,a.transGroup.transform),r,i)}else sz(a.labelInfoList,a.dirVec,r,i)};function oz(e,t,n){var r=new Iw;ZR(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&xDe(t,r)}function sz(e,t,n,r){for(var i=Iw.dot(r,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||oz(s,n,r)}}var cz=function(){function e(e,t,n,r){this.group=new XA,this._axisModel=e,this._api=t,this._local={},this._shared=r||new nz(az),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(e){var t=this._cfg.raw;t.position=e.position,t.labelOffset=e.labelOffset,this._resetCfgDetermined(t)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},r=HC(e.axisName,t.get(`name`)),i=t.get(`nameMoveOverlap`);(i==null||i===`auto`)&&(i=HC(e.defaultNameMoveOverlap,!0));var a={raw:e,position:e.position,rotation:e.rotation,nameDirection:HC(e.nameDirection,1),tickDirection:HC(e.tickDirection,1),labelDirection:HC(e.labelDirection,1),labelOffset:HC(e.labelOffset,0),silent:HC(e.silent,!0),axisName:r,nameLocation:UC(t.get(`nameLocation`),n.nameLocation,`end`),shouldNameMoveOverlap:gz(r)&&i,optionHideOverlap:t.get([`axisLabel`,`hideOverlap`]),showMinorTicks:t.get([`minorTick`,`show`])};this._cfg=a;var o=new XA({x:a.position[0],y:a.position[1],rotation:a.rotation});o.updateTransform(),this._transformGroup=o;var s=this._shared.ensureRecord(t);s.transGroup=this._transformGroup,s.dirVec=new Iw(Math.cos(-a.rotation),Math.sin(-a.rotation))},e.prototype.build=function(e,t){var n=this;return e||={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0},Z(kDe,function(r){e[r]&&ADe[r](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,t||{})}),this},e.innerTextLayout=function(e,t,n){var r=GO(t-e),i,a;return KO(r)?(a=n>0?`top`:`bottom`,i=`center`):KO(r-$R)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r<$R?n>0?`right`:`left`:n>0?`left`:`right`),{rotation:r,textAlign:i,textVerticalAlign:a}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),kDe=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],ADe={axisLine:function(e,t,n,r,i,a,o){var s=r.get([`axisLine`,`show`]);if(s===`auto`&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),s){var c=r.axis.getExtent(),l=a.transform,u=[c[0],0],d=[c[1],0],f=u[0]>d[0];l&&(Nw(u,u,l),Nw(d,d,l));var p=yC({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get([`axisLine`,`breakLine`])&&CP(r.axis.scale))QR().buildAxisBreakLine(r,i,a,m);else{var h=new hj(yC({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));Yj(h.shape,h.style.lineWidth),h.anid=`line`,i.add(h)}var g=r.get([`axisLine`,`symbol`]);if(g!=null){var _=r.get([`axisLine`,`symbolSize`]);MC(g)&&(g=[g,g]),(MC(_)||PC(_))&&(_=[_,_]);var v=pI(r.get([`axisLine`,`symbolOffset`])||0,_),y=_[0],b=_[1];Z([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(t,n){if(g[n]!==`none`&&g[n]!=null){var r=dI(g[n],-y/2,-b/2,y,b,p.stroke,!0),a=t.r+t.offset,o=f?d:u;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,a,o,s){fz(t,i,s)&&lz(e,t,n,r,i,a,o,mR.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){fz(t,i,s)&&lz(e,t,n,r,i,a,o,mR.determine);var c=PDe(e,i,a,r);NDe(e,t.labelLayoutList,c),FDe(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var l=e.axisName;if(gz(l)){var u=e.nameLocation,d=e.nameDirection,f=r.getModel(`nameTextStyle`),p=r.get(`nameGap`)||0,m=r.axis.getExtent(),h=r.axis.inverse?-1:1,g=new Iw(0,0),_=new Iw(0,0);u===`start`?(g.x=m[0]-h*p,_.x=-h):u===`end`?(g.x=m[1]+h*p,_.x=h):(g.x=(m[0]+m[1])/2,g.y=e.labelOffset+d*p,_.y=d);var v=_w();_.transform(Sw(v,v,e.rotation));var y=r.get(`nameRotate`);y!=null&&(y=y*$R/180);var b,x;ZL(u)?b=cz.innerTextLayout(e.rotation,y??e.rotation,d):(b=jDe(e.rotation,u,y||0,m),x=e.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(b.rotation)),!isFinite(x)&&(x=null)));var S=f.getFont(),C=r.get(`nameTruncate`,!0)||{},w=C.ellipsis,T=VC(e.raw.nameTruncateMaxWidth,C.maxWidth,x),E=s.nameMarginLevel||0,D=new gO({x:g.x,y:g.y,rotation:b.rotation,silent:cz.isLabelSilent(r),style:wM(f,{text:l,font:S,overflow:`truncate`,width:T,ellipsis:w,fill:f.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:f.get(`align`)||b.textAlign,verticalAlign:f.get(`verticalAlign`)||b.textVerticalAlign}),z2:1});if(lM({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=cz.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,Lk(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=KR({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:ZL(u)?EDe[E]:DDe[E]});if(c.nameLocation=u,i.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&k){var A=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,k,_,A)}}}};function lz(e,t,n,r,i,a,o,s){pz(t)||IDe(e,t,i,s,r,o);var c=t.labelLayoutList;LDe(e,r,c,a),BDe(r,e.rotation,c);var l=e.optionHideOverlap;MDe(r,c,l),l&&CDe(EC(c,function(e){return e&&!e.label.ignore})),ODe(e,n,r,c)}function jDe(e,t,n,r){var i=GO(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return KO(i-$R/2)?(o=c?`bottom`:`top`,a=`center`):KO(i-$R*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=i<$R*1.5&&i>$R/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function MDe(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(AEe(r))return;function a(e,a,o){var s=KR(t[a]),c=KR(t[o]),l=r.scale;if(s&&c){if(e==null){if(!n&&i)return;var u=ez(s.label).labelInfo.tick;if(yL(l)&&u.notNice||xL(l)&&u.offInterval){uz(s.label);return}}if(e===!1||s.suggestIgnore)uz(s.label);else if(c.suggestIgnore)uz(c.label);else{var d=.1;if(!n){var f=[0,0,0,0];s=YR({marginForce:f},s),c=YR({marginForce:f},c)}ZR(s,c,null,{touchThreshold:d})&&uz(e?c.label:s.label)}}}var o=e.get([`axisLabel`,`showMinLabel`]),s=e.get([`axisLabel`,`showMaxLabel`]),c=t.length;a(o,0,1),a(s,c-1,c-2)}function NDe(e,t,n){e.showMinorTicks||Z(t,function(e){if(e&&e.label.ignore)for(var t=0;t<n.length;t++){var r=n[t],i=tz(r),a=ez(e.label);if(i.tickValue!=null&&!i.onBand&&i.tickValue===a.labelInfo.tick.value){uz(r);return}}})}function uz(e){e&&(e.ignore=!0)}function dz(e,t,n,r,i){for(var a=[],o=[],s=[],c=0;c<e.length;c++){var l=e[c].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=n,t&&(Nw(o,o,t),Nw(s,s,t));var u=new hj({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});Yj(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u);var d=tz(u);d.onBand=!!e[c].onBand,d.tickValue=e[c].tickValue}return a}function PDe(e,t,n,r){var i=r.axis,a=r.getModel(`axisTick`),o=a.get(`show`);if(o===`auto`&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel(`lineStyle`),c=e.tickDirection*a.get(`length`),l=dz(i.getTicksCoords(),n.transform,c,bC(s.getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])}),`ticks`),u=0;u<l.length;u++)t.add(l[u]);return l}function FDe(e,t,n,r,i){var a=r.axis,o=r.getModel(`minorTick`);if(e.showMinorTicks&&!a.scale.isBlank()){var s=a.getMinorTicksCoords();if(s.length)for(var c=o.getModel(`lineStyle`),l=i*o.get(`length`),u=bC(c.getLineStyle(),bC(r.getModel(`axisTick`).getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])})),d=0;d<s.length;d++)for(var f=dz(s[d],n.transform,l,u,`minorticks_`+d),p=0;p<f.length;p++)t.add(f[p])}}function fz(e,t,n){if(pz(e)){var r=e.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(n.noPxChange){for(var i=!0,a=0;a<r.length;a++)i&&=r[a]();if(i)return!1}r.length&&(t.remove(e.labelGroup),mz(e,null,null,null))}return!0}function IDe(e,t,n,r,i,a){var o=i.axis,s=VC(e.raw.axisLabelShow,i.get([`axisLabel`,`show`])),c=new XA;n.add(c);var l=hR(r);if(!s||o.scale.isBlank())mz(t,[],c,l);else{var u=i.getModel(`axisLabel`),d=o.getViewLabels(l),f=(VC(e.raw.labelRotate,u.get(`rotate`))||0)*$R/180,p=cz.innerTextLayout(e.rotation,f,e.labelDirection),m=i.getCategories&&i.getCategories(!0),h=[],g=i.get(`triggerEvent`),_=1/0,v=-1/0;Z(d,function(e,t){var n=e.tick,r=e.formattedLabel,s=e.rawLabel,l=u,f=tR(o.scale,n);if(m&&m[f]){var y=m[f];FC(y)&&y.textStyle&&(l=new LM(y.textStyle,u,i.ecModel))}var b=l.getTextColor()||i.get([`axisLine`,`lineStyle`,`color`]),x=l.getShallow(`align`,!0)||p.textAlign,S=HC(l.getShallow(`alignMinLabel`,!0),x),C=HC(l.getShallow(`alignMaxLabel`,!0),x),w=l.getShallow(`verticalAlign`,!0)||l.getShallow(`baseline`,!0)||p.textVerticalAlign,T=HC(l.getShallow(`verticalAlignMinLabel`,!0),w),E=HC(l.getShallow(`verticalAlignMaxLabel`,!0),w),D=10+(n.time?.level||0);_=Math.min(_,D),v=Math.max(v,D);var O=new gO({x:0,y:0,rotation:0,silent:cz.isLabelSilent(i),z2:D,style:wM(l,{text:r,align:t===0?S:t===d.length-1?C:x,verticalAlign:t===0?T:t===d.length-1?E:w,fill:jC(b)?b(o.type===`category`?s:o.type===`value`?f+``:f,t):b})});O.anid=`label_`+f;var k=ez(O);if(k.labelInfo=e,k.layoutRotation=p.rotation,lM({el:O,componentModel:i,itemName:r,formatterParamsExtra:{isTruncated:function(){return O.isTruncated},value:s,tickIndex:t}}),g){var A=cz.makeAxisEventDataBase(i);A.targetType=`axisLabel`,A.value=s,A.tickIndex=t;var j=e.tick.break;if(j){var ee=j.parsedBreak;A.break={start:ee.vmin,end:ee.vmax}}o.type===`category`&&(A.dataIndex=f),Lk(O).eventData=A,j&&zDe(i,a,O,j)}h.push(O),c.add(O)}),mz(t,wC(h,function(e){return{label:e,priority:ez(e).labelInfo.tick.break?e.z2+(v-_+1):e.z2,defaultAttr:{ignore:e.ignore}}}),c,l)}}function pz(e){return!!e.labelLayoutList}function mz(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}function LDe(e,t,n,r){var i=t.get([`axisLabel`,`margin`]);Z(n,function(n,a){var o=KR(n);if(o){var s=o.label,c=ez(s);o.suggestIgnore=s.ignore,s.ignore=!1,zT(hz,RDe);var l=t.axis;hz.x=l.dataToCoord(tR(l.scale,c.labelInfo.tick)),hz.y=e.labelOffset+e.labelDirection*i,hz.rotation=c.layoutRotation,r.add(hz),hz.updateTransform(),r.remove(hz),hz.decomposeTransform(),zT(s,hz),s.markRedraw(),WR(o,!0),KR(o)}})}var hz=new fO,RDe=new fO;function gz(e){return!!e}function zDe(e,t,n,r){n.on(`click`,function(n){var i={type:TDe,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[e.axis.dim+`AxisIndex`]=e.componentIndex,t.dispatchAction(i)})}function BDe(e,t,n){var r=bP();if(r){var i=r.retrieveAxisBreakPairs(n,function(e){return e&&ez(e.label).labelInfo.tick.break},!0),a=e.get([`breakLabelLayout`,`moveOverlap`],!0);(a===!0||a===`auto`)&&Z(i,function(r){QR().adjustBreakLabelPair(e.axis.inverse,t,[KR(n[r[0]]),KR(n[r[1]])])})}}function _z(e,t,n){n||={};var r=t.axis,i={},a=r.getAxesOnZeroOf()[0],o=r.position,s=a?`onZero`:o,c=r.dim,l=[e.x,e.x+e.width,e.y,e.y+e.height],u={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get(`offset`)||0,f=c===`x`?[l[2]-d,l[3]+d]:[l[0]-d,l[1]+d];if(a){var p=a.toGlobalCoord(a.dataToCoord(0));f[u.onZero]=Math.max(Math.min(p,f[1]),f[0])}i.position=[c===`y`?f[u[s]]:l[0],c===`x`?f[u[s]]:l[3]],i.rotation=Math.PI/2*(c===`x`?0:1),i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,left:-1,right:1}[o],i.labelOffset=a?f[u[o]]-f[u.onZero]:0,t.get([`axisTick`,`inside`])&&(i.tickDirection=-i.tickDirection),VC(n.labelInside,t.get([`axisLabel`,`inside`]))&&(i.labelDirection=-i.labelDirection);var m=t.get([`axisLabel`,`rotate`]);return i.labelRotate=s===`top`?-m:m,i.z2=1,i}function VDe(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}function HDe(e){var t={xAxisModel:null,yAxisModel:null};return Z(t,function(n,r){var i=r.replace(/Model$/,``);t[r]=e.getReferringComponents(i,Sk).models[0]}),t}function UDe(e,t,n,r,i,a){for(var o=_z(e,n),s=!1,c=!1,l=0;l<t.length;l++)_L(t[l].getOtherAxis(n.axis).scale)&&(s=c=!0,n.axis.type===`category`&&n.axis.onBand&&(c=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=c,o.defaultNameMoveOverlap=a,new cz(n,r,o,i)}function WDe(e,t,n){var r=_z(t,n);e.updateCfg(r)}function GDe(e){return e.dim+`_`+e.index}var KDe=yk(),qDe=3,vz=function(){function e(e,t,n,r,i){var a=xL(e),o=a?t.getCategories().length:null,s;if(a){var c=t.getCategories(!0);s=c&&!c.length}var l=n.slice();(vL(e)||bL(e)||yL(e))&&(Dk(l,bz(e,t.get(`dataMin`,!0))),Ok(l,bz(e,t.get(`dataMax`,!0)))),eCe(l)||(l[0]=l[1]=NaN);var u=[],d=[!1,!1],f=t.get(`min`,!0);f===`dataMin`?(u[0]=l[0],d[0]=!0):(u[0]=bz(e,jC(f)?f({min:l[0],max:l[1]}):f),d[0]=u[0]!=null);var p=t.get(`max`,!0);p===`dataMax`?(u[1]=l[1],d[1]=!0):(u[1]=bz(e,jC(p)?p({min:l[0],max:l[1]}):p),d[1]=u[1]!=null);var m=JDe(e,t),h=a?null:l[1]-l[0]||Math.abs(l[0]);u[0]??=a?s?l[0]:o?0:NaN:l[0]-m[0]*h,u[1]??=a?s?l[1]:o?o-1:NaN:l[1]+m[1]*h,!kk(u[0])&&(u[0]=NaN),!kk(u[1])&&(u[1]=NaN);var g=s||BC(u[0])||BC(u[1])||a&&!o,_=vL(e),v=_&&t.needIncludeZero&&t.needIncludeZero();v&&(u[0]>0&&u[1]>0&&!d[0]&&(u[0]=0),u[0]<0&&u[1]<0&&!d[1]&&(u[1]=0));var y=!1;u[0]>u[1]&&(u.reverse(),y=!0);var b=bz(e,t.get(`startValue`,!0)),x=b!=null;!nk(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),nk(b)&&(x||!_||v)&&(b<u[0]&&!d[0]?(u[0]=b,d[0]=!0):b>u[1]&&!d[1]&&(u[1]=b,d[1]=!0)),yz(this._i={scale:e,dataMM:l,noZoomEffMM:u,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:v,tggAxInv:y,ctnShp:i},u)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,r=e.zoomFixMM,i=e.fixMM,a={fixMM:i,zoomFixMM:r,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},o=a.effMM;return t[0]!=null&&(o[0]=t[0],i[0]=r[0]=!0),t[1]!=null&&(o[1]=t[1],i[1]=r[1]=!0),yz(e,o),a},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},e}();function yz(e,t){var n=e.scale,r=e.dataMM;n.sanitize&&(t[0]=n.sanitize(t[0],r),t[1]=n.sanitize(t[1],r),jk(t))}function bz(e,t){return t==null?null:BC(t)?NaN:e.parse(t)}function JDe(e,t){var n;if(xL(e))n=[0,0];else{var r=t.get(`boundaryGap`);typeof r==`boolean`&&(r=null),n=AC(r)?r:[r,r]}return[xz(n[0]),xz(n[1])]}function xz(e){return mT(typeof e==`boolean`?0:e,1)||0}function Sz(e){var t=KDe(e.scale);return t.extent||=Tk(),t}function YDe(e,t){Sz(e).dimIdxInCoord=t.get(e.dim)}function Cz(e,t){var n=e.scale,r=e.model,i=e.dim;n.rawExtentInfo||XDe(n,e,i,r,t)}function XDe(e,t,n,r,i){var a=Sz(t),o=a.extent,s=!1;lDe(t,function(r){if(r.boxCoordinateSystem){var i=eP(r).coord,c=a.dimIdxInCoord;if(c>=0&&AC(i)){var l=i[c];l!=null&&!AC(l)&&Ek(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;Z(jEe(u,n),function(e){$Se(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=QDe(e,t,r);wz(e,new vz(e,r,o,s,c),i),a.extent=null}function ZDe(e,t){var n=e.scale;wz(n,new vz(n,e.model,t,!1,!1),qDe)}function wz(e,t,n){e.rawExtentInfo=t,t.from=n}function Tz(e,t){Ez.set(e,t)}var Ez=QC();function Dz(e,t,n,r,i){e.rawExtentInfo||ZDe({scale:e,model:t},i||Tk());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),r&&a.tggAxInv&&n&&!n.get(`legacyMinMaxDontInverseAxis`)&&(r.inverse=!r.inverse),a}function QDe(e,t,n){var r=nR(e,n),i=n.get(`containShape`,!0);if(i==null&&!r&&(i=!0),!i)return!1;var a=!1;return MR(t,function(e){a=!!Ez.get(e)||a}),a}function $De(e,t,n,r){if(n.ctnShp){var i;if(MR(e,function(t){var n=Ez.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],Dk(i,a[0]),Ok(i,a[1]),OEe(e))}}),i){var a=t.getExtent();if(xL(t))e.onBand||t.setExtent2(1,DO(a[0],a[0]+i[0]),OO(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=DO(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=OO(o[1],t.transformOut(t.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&t.setExtent2(1,o[0],o[1])}}}}function eOe(){fDe(`liPosMinGap`,tOe)}function tOe(e,t,n){var r=QC(),i=n.serUids,a=n.liPosMinGap,o,s=t.axis,c=s.scale,l=c.needTransform(),u=c.getFilter?c.getFilter():null,d=wN(u);function f(n){jR(e,t.sers,function(e){var t=e.getRawData(),r=t.getDimensionIndex(t.mapDimension(s.dim));r>=0&&n(r,e,t.getStore())})}var p=0;if(f(function(e,t,n){r.set(t.uid,1),i&&i.hasKey(t.uid)||(o=!0),p+=n.count()}),i&&i.keys().length===r.keys().length||(o=!0),!o&&a!=null)t.liPosMinGap=a;else{jI(Oz,p);var m=0;f(function(e,t,n){for(var r=0,i=n.count();r<i;++r){var a=n.get(e,r);isFinite(a)&&(!u||TN(d,a))&&(l&&(a=c.transformIn(a,null)),Oz.arr[m++]=a)}});var h=Oz.typed?Oz.arr.subarray(0,m):(Oz.arr.length=m,Oz.arr);Oz.typed?h.sort():BO(h);for(var g=1/0,_=1;_<m;++_){var v=h[_]-h[_-1];v>0&&v<g&&(g=v)}n.liPosMinGap=t.liPosMinGap=nk(g)?g:m>0?-2:-1,n.serUids=r}}var Oz=jI({ctor:kI},50);function kz(e){return function(t,n){var r=RR(t,{fromStat:{key:e}});if(nk(r.w2))return[-r.w2/2,r.w2/2]}}function Az(e){return e+`|&`}function jz(e,t){return e+`|&`+t}function Mz(e){return eOe(),{liPosMinGap:!xL(e.scale)}}var Nz=`pictorialBar`;function nOe(e,t,n,r){IR(e,{key:t,seriesType:n,coordSysType:r,getMetrics:Mz})}function rOe(e){return e.scale.rawExtentInfo.makeRenderInfo().startValue}var Pz={left:0,right:0,top:0,bottom:0},Fz=[`25%`,`25%`],Iz=`cartesian2d`,iOe=function(e){iC(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=hF(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&mF(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&mF(this.option.outerBounds,t.outerBounds)},t.type=`grid`,t.dependencies=[`xAxis`,`yAxis`],t.layoutMode=`box`,t.defaultOption={show:!1,z:0,left:`15%`,top:65,right:`10%`,bottom:80,containLabel:!1,outerBoundsMode:`auto`,outerBounds:Pz,outerBoundsContain:`all`,outerBoundsClampWidth:Fz[0],outerBoundsClampHeight:Fz[1],backgroundColor:AF.color.transparent,borderWidth:1,borderColor:AF.color.neutral30},t}(gF),aOe=Mk(),oOe=`__ec_stack_`;function Lz(e){return e.get(`stack`)||oOe+e.seriesIndex}function sOe(e,t){var n=cOe(e,t);return n.columnMap=lOe(n),n}function cOe(e,t){var n=jz(t,Iz),r=[],i=RR(e,{fromStat:{key:n},min:1});return AR(e,n,function(e){r.push({barWidth:LO(e.get(`barWidth`),i.w),barMaxWidth:LO(e.get(`barMaxWidth`),i.w),barMinWidth:LO(e.get(`barMinWidth`)||(Bz(e)?.5:1),i.w),barGap:e.get(`barGap`),barCategoryGap:e.get(`barCategoryGap`),defaultBarGap:e.get(`defaultBarGap`),stackId:Lz(e)})}),{bandWidthResult:i,seriesInfo:r}}function lOe(e){var t=e.bandWidthResult.w,n=t,r=0,i,a,o=[],s={};Z(e.seriesInfo,function(e,t){t||(a=e.defaultBarGap||0);var c=e.stackId;tw(s,c)||r++;var l=s[c];l||(l=s[c]={width:0,maxWidth:0},o.push(c));var u=e.barWidth;u&&!l.width&&(l.width=u,u=DO(n,u),n-=u);var d=e.barMaxWidth;d&&(l.maxWidth=d);var f=e.barMinWidth;f&&(l.minWidth=f);var p=e.barGap;p!=null&&(a=p);var m=e.barCategoryGap;m!=null&&(i=m)}),i??=OO(35-o.length*4,15)+`%`;var c=LO(i,t),l=LO(a,1),u=(n-c)/(r+(r-1)*l);u=OO(u,0),Z(o,function(e){var t=s[e],i=t.maxWidth,a=t.minWidth;if(t.width){var o=t.width;i&&(o=DO(o,i)),a&&(o=OO(o,a)),t.width=o,n-=o+l*o,r--}else{var o=u;i&&i<o&&(o=DO(i,n)),a&&a>o&&(o=a),o!==u&&(t.width=o,n-=o+l*o,r--)}}),u=(n-c)/(r+(r-1)*l),u=OO(u,0);var d=0,f;Z(o,function(e){var t=s[e];t.width||=u,f=t,d+=t.width*(1+l)}),f&&(d-=f.width*l);var p={},m=-d/2;return Z(o,function(e){var n=s[e];p[e]=p[e]||{bandWidth:t,offset:m,width:n.width},m+=n.width*(1+l)}),p}function Rz(e){return{seriesType:e,overallReset:function(t){var n=jz(e,Iz);uDe(t,n,function(t){var r=sOe(t,e);AR(t,n,function(e){var t=r.columnMap[Lz(e)];e.getData().setLayout({bandWidth:t.bandWidth,offset:t.offset,size:t.width})})})}}}function zz(e){return{seriesType:e,plan:VI(),reset:function(e){if(VDe(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=nP(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=i.toGlobalCoord(i.dataToCoord(rOe(i))),p=Bz(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r=e.count,i=p&&AI(r*3),c=p&&s&&AI(r*3),l=p&&AI(r),v=n.master.getRect(),y=d?v.width:v.height,b,x=t.getStore(),S=0;(b=e.next())!=null;){var C=x.get(u?h:a,b),w=x.get(o,b),T=f,E=void 0;u&&(E=+C-x.get(a,b));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);u&&(T=n.dataToPoint([E,w])[0]),D=T,O=j[1]+_,k=j[0]-T,A=g,kO(k)<m&&(k=(k<0?-1:1)*m)}else{var j=n.dataToPoint([w,C]);u&&(T=n.dataToPoint([w,E])[1]),D=j[0]+_,O=T,k=g,A=j[1]-T,kO(A)<m&&(A=(A<=0?-1:1)*m)}p?(i[S]=D,i[S+1]=O,i[S+2]=d?k:A,c&&(c[S]=d?v.x:D,c[S+1]=d?O:v.y,c[S+2]=y),l[b]=b):t.setItemLayout(b,{x:D,y:O,width:k,height:A}),S+=3}p&&t.setLayout({largePoints:i,largeDataIndices:l,largeBackgroundPoints:c,valueAxisHorizontal:d})}}}}}}function Bz(e){return e.pipelineContext&&e.pipelineContext.large}function uOe(e){return kz(jz(e,Iz))}function Vz(e){aOe(e,function(){function t(t){var n=jz(t,Iz);nOe(e,n,t,Iz),Tz(n,uOe(t))}t(`bar`),t(`pictorialBar`)})}var Hz=function(e){iC(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return rP(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(e),a=r.dataToPoint(i);if(n)Z(r.getAxes(),function(e,n){if(e.type===`category`&&t!=null){var r=e.getTicksCoords(),o=e.getTickModel().get(`alignWithLabel`),s=i[n],c=t[n]===`x1`||t[n]===`y1`;if(c&&!o&&(s+=1),r.length<2)return;if(r.length===2){a[n]=e.toGlobalCoord(e.getExtent()[+!!c]);return}for(var l=void 0,u=void 0,d=1,f=0;f<r.length;f++){var p=r[f].coord,m=f===r.length-1?r[f-1].tickValue+d:r[f].tickValue;if(m===s){u=p;break}if(m<s)l=p;else if(l!=null&&m>s){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u??(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=+!r.getBaseAxis().isHorizontal();a[l]+=s+c/2}return a}return[NaN,NaN]},t.prototype.__requireStartValue=function(e){return this.getBaseAxis()!==e},t.type=`series.__base_bar__`,t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:`mod`,defaultBarGap:`10%`},t}(XF);XF.registerClass(Hz);var dOe=function(e){iC(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return rP(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},t.prototype.getProgressive=function(){return this.get(`large`)?this.get(`progressive`):!1},t.prototype.__preparePipelineContext=function(e,t){var n=Fk(this,e,t);return n.progressiveRender&&(n.large=!0),n},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=aP(Hz.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:`rgba(180, 180, 180, 0.2)`,borderColor:null,borderWidth:0,borderType:`solid`,borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:AF.color.primary,borderWidth:2}},realtimeSort:!1}),t}(Hz),Uz=`\0__throttleOriginMethod`,Wz=`\0__throttleRate`,Gz=`\0__throttleType`;function Kz(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t||=0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){var e=[...arguments];r=new Date().getTime(),c=this,l=e;var f=u||t,p=u||n;u=null,s=r-(p?i:a)-f,clearTimeout(o),p?o=setTimeout(d,f):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&=(clearTimeout(o),null)},f.debounceNextCall=function(e){u=e},f}function qz(e,t,n,r){var i=e[t];if(i){var a=i[Uz]||i,o=i[Gz];if(i[Wz]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=Kz(a,n,r===`debounce`),i[Uz]=a,i[Gz]=r,i[Wz]=n}return i}}function Jz(e,t){var n=e[t];n&&n[Uz]&&(n.clear&&n.clear(),e[t]=n[Uz])}var fOe=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),Yz=function(e){iC(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new fOe},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=(a-i)*.5,s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=Math.PI*2,f=u?l-c<d:c-l<d;f||(c=l-(u?d:-d));var p=Math.cos(c),m=Math.sin(c),h=Math.cos(l),g=Math.sin(l);f?(e.moveTo(p*i+n,m*i+r),e.arc(p*s+n,m*s+r,o,-Math.PI+c,c,!u)):e.moveTo(p*a+n,m*a+r),e.arc(n,r,a,c,l,!u),e.arc(h*s+n,g*s+r,o,l-Math.PI*2,l-Math.PI,!u),i!==0&&e.arc(n,r,i,l,c,u)},t}(aO);function pOe(e,t){t||={};var n=t.isRoundCap;return function(t,r,i){var a=r.position;if(!a||a instanceof Array)return hT(t,r,i);var o=e(a),s=r.distance==null?5:r.distance,c=this.shape,l=c.cx,u=c.cy,d=c.r,f=c.r0,p=(d+f)/2,m=c.startAngle,h=c.endAngle,g=(m+h)/2,_=n?Math.abs(d-f)/2:0,v=Math.cos,y=Math.sin,b=l+d*v(m),x=u+d*y(m),S=`left`,C=`top`;switch(o){case`startArc`:b=l+(f-s)*v(g),x=u+(f-s)*y(g),S=`center`,C=`top`;break;case`insideStartArc`:b=l+(f+s)*v(g),x=u+(f+s)*y(g),S=`center`,C=`bottom`;break;case`startAngle`:b=l+p*v(m)+Xz(m,s+_,!1),x=u+p*y(m)+Zz(m,s+_,!1),S=`right`,C=`middle`;break;case`insideStartAngle`:b=l+p*v(m)+Xz(m,-s+_,!1),x=u+p*y(m)+Zz(m,-s+_,!1),S=`left`,C=`middle`;break;case`middle`:b=l+p*v(g),x=u+p*y(g),S=`center`,C=`middle`;break;case`endArc`:b=l+(d+s)*v(g),x=u+(d+s)*y(g),S=`center`,C=`bottom`;break;case`insideEndArc`:b=l+(d-s)*v(g),x=u+(d-s)*y(g),S=`center`,C=`top`;break;case`endAngle`:b=l+p*v(h)+Xz(h,s+_,!0),x=u+p*y(h)+Zz(h,s+_,!0),S=`left`,C=`middle`;break;case`insideEndAngle`:b=l+p*v(h)+Xz(h,-s+_,!0),x=u+p*y(h)+Zz(h,-s+_,!0),S=`right`,C=`middle`;break;default:return hT(t,r,i)}return t||={},t.x=b,t.y=x,t.align=S,t.verticalAlign=C,t}}function mOe(e,t,n,r){if(PC(r))e.setTextConfig({rotation:r});else if(AC(t))e.setTextConfig({rotation:0});else{var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,c,l=n(t);switch(l){case`startArc`:case`insideStartArc`:case`middle`:case`insideEndArc`:case`endArc`:c=s;break;case`startAngle`:case`insideStartAngle`:c=a;break;case`endAngle`:case`insideEndAngle`:c=o;break;default:e.setTextConfig({rotation:0});return}var u=Math.PI*1.5-c;l===`middle`&&u>Math.PI/2&&u<Math.PI*1.5&&(u-=Math.PI),e.setTextConfig({rotation:u})}}function Xz(e,t,n){return t*Math.sin(e)*(n?-1:1)}function Zz(e,t,n){return t*Math.cos(e)*(n?1:-1)}function Qz(e,t,n){var r=e.get(`borderRadius`);if(r==null)return n?{cornerRadius:0}:null;AC(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:wC(r,function(e){return mT(e,i)})}}var $z=Math.max,eB=Math.min,hOe=function(e){iC(t,e);function t(){var t=e.call(this)||this;return t.type=`bar`,t._isFirstFrame=!0,t}return t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get(`coordinateSystem`);(i===`cartesian2d`||i===`polar`)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){dM(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i=this.group,a=e.getData(),o=this._data,s=e.coordinateSystem,c=s.getBaseAxis(),l;s.type===`cartesian2d`?l=c.isHorizontal():s.type===`polar`&&(l=c.dim===`angle`);var u=e.isAnimationEnabled()?e:null,d=gOe(e,s);d&&this._enableRealtimeSort(d,a,n);var f=e.get(`clip`,!0)||d,p=s.getArea();i.removeClipPath();var m=e.get(`roundCap`,!0),h=e.get(`showBackground`,!0),g=e.getModel(`backgroundStyle`),_=g.get(`borderRadius`)||0,v=[],y=this._backgroundEls,b=r&&r.isInitSort,x=r&&r.type===`changeAxisOrder`;function S(e){var t=oB[s.type](a,e);if(!t)return null;var n=COe(s,l,t);return n.useStyle(g.getItemStyle()),s.type===`cartesian2d`?n.setShape(`r`,_):n.setShape(`cornerRadius`,_),v[e]=n,n}a.diff(o).add(function(t){var n=a.getItemModel(t),r=oB[s.type](a,t,n);if(r&&(h&&S(t),a.hasValue(t)&&aB[s.type](r))){var o=!1;f&&(o=tB[s.type](p,r));var g=nB[s.type](e,a,t,r,l,u,c.model,!1,m);d&&(g.forceLabelAnimation=!0),cB(g,a,t,n,r,e,l,s.type===`polar`),b?g.attr({shape:r}):d?rB(d,u,g,r,t,l,!1,!1):Pj(g,{shape:r},e,t),a.setItemGraphicEl(t,g),i.add(g),g.ignore=o}}).update(function(t,n){var r=a.getItemModel(t),C=oB[s.type](a,t,r);if(C){if(h){var w=void 0;y.length===0?w=S(n):(w=y[n],w.useStyle(g.getItemStyle()),s.type===`cartesian2d`?w.setShape(`r`,_):w.setShape(`cornerRadius`,_),v[t]=w);var T=oB[s.type](a,t),E=fB(l,T,s);Nj(w,{shape:E},u,t)}var D=o.getItemGraphicEl(n);if(!a.hasValue(t)||!aB[s.type](C))i.remove(D);else{var O=!1;if(f&&(O=tB[s.type](p,C),O&&i.remove(D)),D&&(D.type===`sector`&&m||D.type===`sausage`&&!m)&&(D&&Rj(D,e,n),D=null),D?zj(D):D=nB[s.type](e,a,t,C,l,u,c.model,!0,m),d&&(D.forceLabelAnimation=!0),x){var k=D.getTextContent();if(k){var A=jM(k);A.prevValue!=null&&(A.prevValue=A.value)}}else cB(D,a,t,r,C,e,l,s.type===`polar`);b?D.attr({shape:C}):d?rB(d,u,D,C,t,l,!0,x):Nj(D,{shape:C},e,t,null),a.setItemGraphicEl(t,D),D.ignore=O,i.add(D)}}}).remove(function(t){var n=o.getItemGraphicEl(t);n&&Rj(n,e,t)}).execute();var C=this._backgroundGroup||=new XA;C.removeAll();for(var w=0;w<v.length;++w)C.add(v[w]);i.add(C),this._backgroundEls=v,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),uB(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),uB(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get(`clip`,!0)&&QI(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var a=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,a,i,n)},n.getZr().on(`rendered`,this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),function(e,t){var i=n(t);i??=NaN,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})}),r.sort(function(e,t){return t.mappedValue-e.mappedValue}),{ordinalNumbers:wC(r,function(e){return e.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),a=Number.MAX_VALUE,o=0,s=r.getOrdinalMeta().categories.length;o<s;++o){var c=e.rawIndexOf(i,r.getRawOrdinalNumber(o)),l=c<0?Number.MIN_VALUE:t(e.indexOfRawIndex(c));if(l>a)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&=(e.getZr().off(`rendered`,this._onRendered),null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){Rj(t,e,Lk(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(WI),tB={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=$z(t.x,e.x),s=eB(t.x+t.width,i),c=$z(t.y,e.y),l=eB(t.y+t.height,a),u=s<o,d=l<c;return t.x=u&&o>i?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=eB(t.r,e.r),a=$z(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},nB={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new fO({shape:yC({},r),z2:1});if(l.__dataIndex=n,l.name=`item`,a){var u=l.shape,d=i?`height`:`width`;u[d]=0}return l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?Yz:uj,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=pOe(sB(i),{isRoundCap:l===Yz}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?Nj:Pj)(u,{shape:p},a)}return u}};function gOe(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function rB(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?Nj:Pj)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?Nj:Pj)(n,{shape:l},u,i)}function iB(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var _Oe=[`x`,`y`,`width`,`height`],vOe=[`cx`,`cy`,`r`,`startAngle`,`endAngle`],aB={cartesian2d:function(e){return!iB(e,_Oe)},polar:function(e){return!iB(e,vOe)}},oB={cartesian2d:function(e,t,n){var r=e.getItemLayout(t);if(!r)return null;var i=n?bOe(n,r):0,a=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function yOe(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function sB(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function cB(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(!s){var l=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,l)}else if(!a.get(`roundCap`)){var u=e.shape;yC(u,Qz(r.getModel(`itemStyle`),u,!0)),e.setShape(u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=s?o?i.r>=i.r0?`endArc`:`startArc`:i.endAngle>=i.startAngle?`endAngle`:`startAngle`:o?wOe(i,a.coordinateSystem):TOe(i,a.coordinateSystem),p=CM(r);SM(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:hI(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`||null,mOe(e,h===`outside`?f:h,sB(o),r.get([`label`,`rotate`]))}ywe(m,p,a.getRawValue(n),function(e){return gI(t,e)});var g=r.getModel([`emphasis`]);OA(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),AA(e,r),yOe(i)&&(e.style.fill=`none`,e.style.stroke=`none`,Z(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function bOe(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=e.get([`itemStyle`,`borderWidth`])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var xOe=function(){function e(){}return e}(),lB=function(e){iC(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new xOe},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c<n.length;c+=3)o[r]=s,o[i]=n[c+2],a[r]=n[c+r],a[i]=n[c+i],e.rect(a[0],a[1],o[0],o[1])},t}(aO);function uB(e,t,n,r){var i=e.getData(),a=+!!i.getLayout(`valueAxisHorizontal`),o=i.getLayout(`largeDataIndices`),s=i.getLayout(`size`),c=e.getModel(`backgroundStyle`),l=i.getLayout(`largeBackgroundPoints`),u=r?Pk(e):0;if(l){var d=new lB({shape:{points:l},incremental:u,silent:!0,z2:0});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=s,d.useStyle(c.getItemStyle()),t.add(d),n&&n.push(d)}var f=new lB({shape:{points:i.getLayout(`largePoints`)},incremental:u,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(i.getVisual(`style`)),f.style.stroke=null,Lk(f).seriesIndex=e.seriesIndex,e.get(`silent`)||(f.on(`mousedown`,dB),f.on(`mousemove`,dB)),n&&n.push(f)}var dB=Kz(function(e){var t=this,n=SOe(t,e.offsetX,e.offsetY);Lk(t).dataIndex=n>=0?n:null},30,!1);function SOe(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u<d;u++){var f=u*3;if(c[r]=l,c[i]=a[f+2],s[r]=a[f+r],s[i]=a[f+i],c[i]<0&&(s[i]+=c[i],c[i]=-c[i]),t>=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}function fB(e,t,n){if(tL(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}function COe(e,t,n){return new(e.type===`polar`?uj:fO)({shape:fB(t,n,e),silent:!0,z2:0})}function wOe(e,t){return e.height===0?t.getOtherAxis(t.getBaseAxis()).inverse?`bottom`:`top`:e.height>0?`bottom`:`top`}function TOe(e,t){return e.width===0?t.getOtherAxis(t.getBaseAxis()).inverse?`left`:`right`:e.width>=0?`right`:`left`}function EOe(e){e.registerChartView(hOe),e.registerSeriesModel(dOe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Rz(`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,zz(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,fR(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})}),Vz(e)}function DOe(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:`series`,subType:e,query:n},function(e){r.push(e.seriesIndex)}),r}Z([[e+`ToggleSelect`,`toggleSelect`],[e+`Select`,`select`],[e+`UnSelect`,`unselect`]],function(e){t(e[0],function(t,r,i){t=yC({},t),i.dispatchAction(yC(t,{type:e[1],seriesIndex:n(r,t)}))})})}function pB(e,t,n,r,i){var a=e+t;n.isSilent(a)||r.eachComponent({mainType:`series`,subType:`pie`},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s<o.length;s++)if(o[s].seriesIndex===t){var c=e.getData(),l=vk(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:AC(l)?c.getName(l[0]):c.getName(l),selected:MC(r)?r:yC({},r)})}})}function OOe(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(pB(`map`,`selectchanged`,t,r,e),pB(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(pB(`map`,`selected`,t,r,e),pB(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(pB(`map`,`unselected`,t,r,e),pB(`pie`,`unselected`,t,r,e))})}function kOe(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:`legend`});if(n&&n.length){var r=e.getData();r.filterSelf(function(e){for(var t=r.getName(e),i=0;i<n.length;i++)if(!n[i].isSelected(t))return!1;return!0})}}}}function mB(e,t,n){t=AC(t)&&{coordDimensions:t}||yC({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=YN(r,t).dimensions,a=new JN(i,e);return a.initData(r,n),a}var AOe=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),jOe=yk(),hB=function(e){iC(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new AOe(OC(this.getData,this),OC(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return mB(this,{coordDimensions:[`value`],encodeDefaulter:kC(Dwe,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=jOe(n),i=r.seats;if(!i){var a=[];n.each(n.mapDimension(`value`),function(e){a.push(e)}),i=r.seats=MSe(a,n.hostModel.get(`percentPrecision`))}var o=e.prototype.getDataParams.call(this,t);return o.percent=i[t]||0,o.$vars.push(`percent`),o},t.prototype._defaultLabelLine=function(e){uk(e,`labelLine`,[`show`]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type=`series.pie`,t.defaultOption={z:2,legendHoverLink:!0,colorBy:`data`,center:[`50%`,`50%`],radius:[0,`50%`],clockwise:!0,startAngle:90,endAngle:`auto`,padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:`box`,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:`truncate`,position:`outer`,alignTo:`none`,edgeDistance:`25%`,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:`solid`}},itemStyle:{borderWidth:1,borderJoin:`round`},showEmptyCircle:!0,emptyCircleStyle:{color:`lightgray`,opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:`expansion`,animationDuration:1e3,animationTypeUpdate:`transition`,animationEasingUpdate:`cubicInOut`,animationDurationUpdate:500,animationEasing:`cubicInOut`},t}(XF);eTe({fullType:hB.type,getCoord2:function(e){return e.getShallow(`center`)}}),KD.CMD;function gB(e,t,n,r,i,a,o,s){var c=i-e,l=a-t,u=n-e,d=r-t,f=Math.sqrt(u*u+d*d);u/=f,d/=f;var p=(c*u+l*d)/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var m=o[0]=e+p*u,h=o[1]=t+p*d;return Math.sqrt((m-i)*(m-i)+(h-a)*(h-a))}var _B=new Iw,vB=new Iw,yB=new Iw,bB=new Iw,xB=new Iw,SB=[],CB=new Iw;function MOe(e,t){if(t<=180&&t>0){t=t/180*Math.PI,_B.fromArray(e[0]),vB.fromArray(e[1]),yB.fromArray(e[2]),Iw.sub(bB,_B,vB),Iw.sub(xB,yB,vB);var n=bB.len(),r=xB.len();if(!(n<.001||r<.001)){bB.scale(1/n),xB.scale(1/r);var i=bB.dot(xB);if(Math.cos(t)<i){var a=gB(vB.x,vB.y,yB.x,yB.y,_B.x,_B.y,SB,!1);CB.fromArray(SB),CB.scaleAndAdd(xB,a/Math.tan(Math.PI-t));var o=yB.x===vB.x?(CB.y-vB.y)/(yB.y-vB.y):(CB.x-vB.x)/(yB.x-vB.x);if(isNaN(o))return;o<0?Iw.copy(CB,vB):o>1&&Iw.copy(CB,yB),CB.toArray(e[1])}}}}function NOe(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,_B.fromArray(e[0]),vB.fromArray(e[1]),yB.fromArray(e[2]),Iw.sub(bB,vB,_B),Iw.sub(xB,yB,vB);var r=bB.len(),i=xB.len();if(!(r<.001||i<.001)&&(bB.scale(1/r),xB.scale(1/i),bB.dot(t)<Math.cos(n))){var a=gB(vB.x,vB.y,yB.x,yB.y,_B.x,_B.y,SB,!1);CB.fromArray(SB);var o=Math.PI/2,s=o+Math.acos(xB.dot(t))-n;if(s>=o)Iw.copy(CB,yB);else{CB.scaleAndAdd(xB,a/Math.tan(Math.PI/2-s));var c=yB.x===vB.x?(CB.y-vB.y)/(yB.y-vB.y):(CB.x-vB.x)/(yB.x-vB.x);if(isNaN(c))return;c<0?Iw.copy(CB,vB):c>1&&Iw.copy(CB,yB)}CB.toArray(e[1])}}}function wB(e,t,n,r){var i=n===`normal`,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get(`smooth`);o=o===!0?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=r.getModel(`lineStyle`).getLineStyle();i?e.useStyle(s):a.style=s}function POe(e,t){var n=t.smooth,r=t.points;if(r){if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=Aw(r[0],r[1]),a=Aw(r[1],r[2]);if(!i||!a){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var o=Math.min(i,a)*n,s=Mw([],r[1],r[0],o/i),c=Mw([],r[1],r[2],o/a),l=Mw([],s,c,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(c[0],c[1],c[0],c[1],r[2][0],r[2][1])}else for(var u=1;u<r.length;u++)e.lineTo(r[u][0],r[u][1])}}function FOe(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(!i)r&&e.removeTextGuideLine();else{for(var a=t.normal,o=a.get(`show`),s=i.ignore,c=0;c<Zk.length;c++){var l=Zk[c],u=t[l],d=l===`normal`;if(u){var f=u.get(`show`);if((d?s:HC(i.states[l]&&i.states[l].ignore,s))||!HC(f,o)){var p=d?r:r&&r.states[l];p&&(p.ignore=!0),r&&wB(r,!0,l,u);continue}r||(r=new mj,e.setTextGuideLine(r),d||!s&&o||wB(r,!0,`normal`,t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),wB(r,!1,l,u)}}if(r){bC(r.style,n),r.style.fill=null;var m=a.get(`showAbove`),h=e.textGuideLineConfig=e.textGuideLineConfig||{};h.showAbove=m||!1,r.buildPath=POe}}}function IOe(e,t){t||=`labelLine`;for(var n={normal:e.getModel(t)},r=0;r<Xk.length;r++){var i=Xk[r];n[i]=e.getModel([i,t])}return n}var LOe=Math.PI/180;function TB(e,t,n,r,i,a,o,s,c,l){if(e.length<2)return;function u(e){for(var a=e.rB,o=a*a,s=0;s<e.list.length;s++){var c=e.list[s],l=Math.abs(c.label.y-n),u=r+c.len,d=u*u,f=t+(Math.sqrt(Math.abs((1-l*l/o)*d))+c.len2)*i,p=f-c.label.x;EB(c,c.targetTextWidth-p*i,!0),c.label.x=f}}function d(e){for(var a={list:[],maxY:0},o={list:[],maxY:0},s=0;s<e.length;s++)if(e[s].labelAlignTo===`none`){var c=e[s],l=c.label.y>n?o:a,d=Math.abs(c.label.y-n);if(d>=l.maxY){var f=c.label.x-t-c.len2*i,p=r+c.len;l.rB=Math.abs(f)<p?Math.sqrt(d*d/(1-f*f/p/p)):p,l.maxY=d}l.list.push(c)}u(a),u(o)}for(var f=e.length,p=0;p<f;p++)if(e[p].position===`outer`&&e[p].labelAlignTo===`labelLine`){var m=e[p].label.x-l;e[p].linePoints[1][0]+=m,e[p].label.x=l}SDe(e,1,c,c+o)&&d(e)}function ROe(e,t,n,r,i,a,o,s){for(var c=[],l=[],u=Number.MAX_VALUE,d=-Number.MAX_VALUE,f=0;f<e.length;f++){var p=e[f].label;kB(e[f])||(p.x<t?(u=Math.min(u,p.x),c.push(e[f])):(d=Math.max(d,p.x),l.push(e[f])))}for(var f=0;f<e.length;f++){var m=e[f];if(!kB(m)&&m.linePoints){if(m.labelStyleWidth!=null)continue;var p=m.label,h=m.linePoints,g=void 0;g=m.labelAlignTo===`edge`?p.x<t?h[2][0]-m.labelDistance-o-m.edgeDistance:o+i-m.edgeDistance-h[2][0]-m.labelDistance:m.labelAlignTo===`labelLine`?p.x<t?u-o-m.bleedMargin:o+i-d-m.bleedMargin:p.x<t?p.x-o-m.bleedMargin:o+i-p.x-m.bleedMargin,m.targetTextWidth=g,EB(m,g,!1)}}TB(l,t,n,r,1,i,a,o,s,d),TB(c,t,n,r,-1,i,a,o,s,u);for(var f=0;f<e.length;f++){var m=e[f];if(!kB(m)&&m.linePoints){var p=m.label,h=m.linePoints,_=m.labelAlignTo===`edge`,v=p.style.padding,y=v?v[1]+v[3]:0,b=p.style.backgroundColor?0:y,x=m.rect.width+b,S=h[1][0]-h[2][0];_?p.x<t?h[2][0]=o+m.edgeDistance+x+m.labelDistance:h[2][0]=o+i-m.edgeDistance-x-m.labelDistance:(p.x<t?h[2][0]=p.x+m.labelDistance:h[2][0]=p.x-m.labelDistance,h[1][0]=h[2][0]+S),h[1][1]=h[2][1]=p.y}}}function EB(e,t,n){if(e.labelStyleWidth==null){var r=e.label,i=r.style,a=e.rect,o=i.backgroundColor,s=i.padding,c=s?s[1]+s[3]:0,l=i.overflow,u=a.width+(o?0:c);if(t<u||n){if(l&&l.match(`break`)){r.setStyle(`backgroundColor`,null),r.setStyle(`width`,t-c);var d=r.getBoundingRect();r.setStyle(`width`,Math.ceil(d.width)),r.setStyle(`backgroundColor`,o)}else{var f=t-c,p=t<u?f:n?f>e.unconstrainedWidth?null:f:null;r.setStyle(`width`,p)}DB(a,r)}}}function DB(e,t){OB.rect=e,qR(OB,t,zOe)}var zOe={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},OB={};function kB(e){return e.position===`center`}function BOe(e){var t=e.getData(),n=[],r,i,a=!1,o=(e.get(`minShowLabelAngle`)||0)*LOe,s=t.getLayout(`viewRect`),c=t.getLayout(`r`),l=s.width,u=s.x,d=s.y,f=s.height;function p(e){e.ignore=!0}function m(e){if(!e.ignore)return!0;for(var t in e.states)if(e.states[t].ignore===!1)return!0;return!1}t.each(function(e){var s=t.getItemGraphicEl(e),d=s.shape,h=s.getTextContent(),g=s.getTextGuideLine(),_=t.getItemModel(e),v=_.getModel(`label`),y=v.get(`position`)||_.get([`emphasis`,`label`,`position`]),b=v.get(`distanceToLabelLine`),x=v.get(`alignTo`),S=LO(v.get(`edgeDistance`),l),C=v.get(`bleedMargin`);C??=Math.min(l,f)>200?10:2;var w=_.getModel(`labelLine`),T=w.get(`length`);T=LO(T,l);var E=w.get(`length2`);if(E=LO(E,l),Math.abs(d.endAngle-d.startAngle)<o)Z(h.states,p),h.ignore=!0,g&&(Z(g.states,p),g.ignore=!0);else if(m(h)){var D=(d.startAngle+d.endAngle)/2,O=Math.cos(D),k=Math.sin(D),A,j,ee,te;r=d.cx,i=d.cy;var M=y===`inside`||y===`inner`;if(y===`center`)A=d.cx,j=d.cy,te=`center`;else{var ne=(M?(d.r+d.r0)/2*O:d.r*O)+r,re=(M?(d.r+d.r0)/2*k:d.r*k)+i;if(A=ne+O*3,j=re+k*3,!M){var ie=ne+O*(T+c-d.r),N=re+k*(T+c-d.r),P=ie+(O<0?-1:1)*E,ae=N;A=x===`edge`?O<0?u+S:u+l-S:P+(O<0?-b:b),j=ae,ee=[[ne,re],[ie,N],[P,ae]]}te=M?`center`:x===`edge`?O>0?`right`:`left`:O>0?`left`:`right`}var oe=Math.PI,se=0,ce=v.get(`rotate`);if(PC(ce))se=oe/180*ce;else if(y===`center`)se=0;else if(ce===`radial`||ce===!0)se=O<0?-D+oe:-D;else if(ce===`tangential`||ce===`tangential-noflip`&&y!==`outside`&&y!==`outer`){var le=Math.atan2(O,k);le<0&&(le=oe*2+le),k>0&&ce!==`tangential-noflip`&&(le=oe+le),se=le-oe}if(a=!!se,h.x=A,h.y=j,h.rotation=se,h.setStyle({verticalAlign:`middle`}),M){h.setStyle({align:te});var ue=h.states.select;ue&&(ue.x+=h.x,ue.y+=h.y)}else{var de=new Yw(0,0,0,0);DB(de,h),n.push({label:h,labelLine:g,position:y,len:T,len2:E,minTurnAngle:w.get(`minTurnAngle`),maxSurfaceAngle:w.get(`maxSurfaceAngle`),surfaceNormal:new Iw(O,k),linePoints:ee,textAlign:te,labelDistance:b,labelAlignTo:x,edgeDistance:S,bleedMargin:C,rect:de,unconstrainedWidth:de.width,labelStyleWidth:h.style.width})}s.setTextConfig({inside:M})}}),!a&&e.get(`avoidLabelOverlap`)&&ROe(n,r,i,c,l,f,u,d);for(var h=0;h<n.length;h++){var g=n[h],_=g.label,v=g.labelLine,y=isNaN(_.x)||isNaN(_.y);if(_){_.setStyle({align:g.textAlign}),y&&(Z(_.states,p),_.ignore=!0);var b=_.states.select;b&&(b.x+=_.x,b.y+=_.y)}if(v){var x=g.linePoints;y||!x?(Z(v.states,p),v.ignore=!0):(MOe(x,g.minTurnAngle),NOe(x,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:x}),_.__hostTarget.textGuideLineConfig={anchor:new Iw(x[0][0],x[0][1])})}}}var AB=Math.PI*2,jB=Math.PI/180,VOe=iCe(`pie`,HOe);function HOe(e,t){e.eachSeriesByType(`pie`,function(e){var n=e.getData(),r=n.mapDimension(`value`),i=HTe(e,t),a=i.cx,o=i.cy,s=i.r,c=i.r0,l=i.viewRect,u=-e.get(`startAngle`)*jB,d=e.get(`endAngle`),f=e.get(`padAngle`)*jB;d=d===`auto`?u-AB:-d*jB;var p=e.get(`minAngle`)*jB+f,m=0;n.each(r,function(e){!isNaN(e)&&m++});var h=n.getSum(r),g=Math.PI/(h||m)*2,_=e.get(`clockwise`),v=e.get(`roseType`),y=e.get(`stillShowZeroSum`),b=n.getDataExtent(r);b[0]=0;var x=_?1:-1,S=[u,d],C=x*f/2;GD(S,!_),u=S[0],d=S[1];var w=MB(e);w.startAngle=u,w.endAngle=d,w.clockwise=_,w.cx=a,w.cy=o,w.r=s,w.r0=c;var T=Math.abs(d-u),E=T,D=0,O=u;if(n.setLayout({viewRect:l,r:s}),n.each(r,function(e,t){var r;if(isNaN(e))n.setItemLayout(t,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:a,cy:o,r0:c,r:v?NaN:s});else{r=v===`area`?T/m:h===0&&y?g:e*g,r<p?(r=p,E-=p):D+=e;var i=O+x*r,l=0,u=0;f>r?(l=O+x*r/2,u=l):(l=O+C,u=i-C),n.setItemLayout(t,{angle:r,startAngle:l,endAngle:u,clockwise:_,cx:a,cy:o,r0:c,r:v?IO(e,b,[c,s]):s}),O=i}}),E<AB&&m){if(E<=.001){var k=T/m;n.each(r,function(e,t){if(!isNaN(e)){var r=n.getItemLayout(t);r.angle=k;var i=0,a=0;k<f?(i=u+x*(t+1/2)*k,a=i):(i=u+x*t*k+C,a=u+x*(t+1)*k-C),r.startAngle=i,r.endAngle=a}})}else g=E/D,O=u,n.each(r,function(e,t){if(!isNaN(e)){var r=n.getItemLayout(t),i=r.angle===p?p:e*g,a=0,o=0;i<f?(a=O+x*i/2,o=a):(a=O+C,o=O+x*i-C),r.startAngle=a,r.endAngle=o,O+=x*i}})}})}var MB=yk(),UOe=function(e){iC(t,e);function t(t,n,r){var i=e.call(this)||this;i.z2=2;var a=new gO;return i.setTextContent(a),i.updateData(t,n,r,!0),i}return t.prototype.updateData=function(e,t,n,r){var i=this,a=e.hostModel,o=e.getItemModel(t),s=o.getModel(`emphasis`),c=e.getItemLayout(t),l=yC(Qz(o.getModel(`itemStyle`),c,!0),c);if(isNaN(l.startAngle))i.setShape(l);else{if(r){i.setShape(l);var u=a.getShallow(`animationType`);a.ecModel.ssr?(Pj(i,{scaleX:0,scaleY:0},a,{dataIndex:t,isFrom:!0}),i.originX=l.cx,i.originY=l.cy):u===`scale`?(i.shape.r=c.r0,Pj(i,{shape:{r:c.r}},a,t)):n==null?(i.shape.endAngle=c.startAngle,Nj(i,{shape:{endAngle:c.endAngle}},a,t)):(i.setShape({startAngle:n,endAngle:n}),Pj(i,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},a,t))}else zj(i),Nj(i,{shape:l},a,t);i.useStyle(e.getItemVisual(t,`style`)),AA(i,o);var d=(c.startAngle+c.endAngle)/2,f=a.get(`selectedOffset`),p=Math.cos(d)*f,m=Math.sin(d)*f,h=o.getShallow(`cursor`);h&&i.attr(`cursor`,h),this._updateLabel(a,e,t),i.ensureState(`emphasis`).shape=yC({r:c.r+(s.get(`scale`)&&s.get(`scaleSize`)||0)},Qz(s.getModel(`itemStyle`),c)),yC(i.ensureState(`select`),{x:p,y:m,shape:Qz(o.getModel([`select`,`itemStyle`]),c)}),yC(i.ensureState(`blur`),{shape:Qz(o.getModel([`blur`,`itemStyle`]),c)});var g=i.getTextGuideLine(),_=i.getTextContent();g&&yC(g.ensureState(`select`),{x:p,y:m}),yC(_.ensureState(`select`),{x:p,y:m}),OA(this,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))}},t.prototype._updateLabel=function(e,t,n){var r=this,i=t.getItemModel(n),a=i.getModel(`labelLine`),o=t.getItemVisual(n,`style`),s=o&&o.fill,c=o&&o.opacity;SM(r,CM(i),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:c,defaultText:e.getFormattedLabel(n,`normal`)||t.getName(n)});var l=r.getTextContent();r.setTextConfig({position:null,rotation:null}),l.attr({z2:10});var u=i.get([`label`,`position`]);if(u!==`outside`&&u!==`outer`)r.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new mj,this.setTextGuideLine(d)),FOe(this,IOe(i),{stroke:s,opacity:UC(a.get([`lineStyle`,`opacity`]),c,1)})}},t}(uj),WOe=function(e){iC(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`pie`,t.ignoreLabelLineUpdate=!0,t}return t.prototype.render=function(e,t,n,r){var i=e.getData(),a=this._data,o=this.group,s;if(!a&&i.count()>0){for(var c=i.getItemLayout(0),l=1;isNaN(c&&c.startAngle)&&l<i.count();++l)c=i.getItemLayout(l);c&&(s=c.startAngle)}if(this._emptyCircleSector&&o.remove(this._emptyCircleSector),i.count()===0&&e.get(`showEmptyCircle`)){var u=new uj({shape:_C(MB(e))});u.useStyle(e.getModel(`emptyCircleStyle`).getItemStyle()),this._emptyCircleSector=u,o.add(u)}i.diff(a).add(function(e){var t=new UOe(i,e,s);i.setItemGraphicEl(e,t),o.add(t)}).update(function(e,t){var n=a.getItemGraphicEl(t);n.updateData(i,e,s),n.off(`click`),o.add(n),i.setItemGraphicEl(e,n)}).remove(function(t){Rj(a.getItemGraphicEl(t),e,t)}).execute(),BOe(e),e.get(`animationTypeUpdate`)!==`expansion`&&(this._data=i)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,a=Math.sqrt(r*r+i*i);return a<=n.r&&a>=n.r0}},t.type=`pie`,t}(WI);function GOe(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf(function(e){var t=n.mapDimension(`value`),r=n.get(t,e);return!(PC(r)&&!isNaN(r)&&r<0)})}}}function KOe(e){e.registerChartView(WOe),e.registerSeriesModel(hB),DOe(`pie`,e.registerAction),e.registerLayout(VOe),e.registerProcessor(kOe(`pie`)),e.registerProcessor(GOe(`pie`))}var NB=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),qOe=function(){function e(e){this.handler=e,e.on(`mousedown`,this._dragStart,this),e.on(`mousemove`,this._drag,this),e.on(`mouseup`,this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new NB(t,e),`dragstart`,e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new NB(t,e),`drag`,e.event);var o=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new NB(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new NB(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new NB(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new NB(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),JOe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,PB=[],YOe=rw.browser.firefox&&+rw.browser.version.split(`.`)[0]<39;function FB(e,t,n,r){return n||={},r?IB(e,t,n):YOe&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?IB(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function IB(e,t,n){if(rw.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(dP(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}if(uP(PB,e,r,i)){n.zrX=PB[0],n.zrY=PB[1];return}}n.zrX=n.zrY=0}function LB(e){return e||window.event}function RB(e,t,n){if(t=LB(t),t.zrX!=null)return t;var r=t.type;if(r&&r.indexOf(`touch`)>=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&FB(e,i,t,n)}else{FB(e,t,t,n);var a=XOe(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&JOe.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function XOe(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function zB(e,t,n,r){e.addEventListener(t,n,r)}function ZOe(e,t,n,r){e.removeEventListener(t,n,r)}var BB=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},QOe=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a<o;a++){var s=r[a],c=FB(n,s,{});i.points.push([c.zrX,c.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in HB)if(HB.hasOwnProperty(t)){var n=HB[t](this._track,e);if(n)return n}},e}();function VB(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function $Oe(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var HB={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var a=VB(r)/VB(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=$Oe(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}},UB=`silent`;function eke(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:tke}}function tke(){BB(this.event)}var nke=function(e){iC(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(KE),WB=function(){function e(e,t){this.x=e,this.y=t}return e}(),rke=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],GB=new Yw(0,0,0,0),KB=function(e){iC(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new WB(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new nke,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new qOe(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(Z(rke,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=JB(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new WB(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new WB(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e||={};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=eke(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new WB(e,t);if(qB(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new Yw(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u===n||u.ignore||u.ignoreCoarsePointer||u.parent&&u.parent.ignoreCoarsePointer||(GB.copy(u.getBoundingRect()),u.transform&&GB.applyTransform(u.transform),GB.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m<s;m+=d)for(var h=0;h<p;h+=f)if(qB(a,i,e+m*Math.cos(h),t+m*Math.sin(h),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||=new QOe;var n=this._gestureMgr;t===`start`&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(t===`end`&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new WB;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(KE);Z([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){KB.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=JB(this,n,r),a,o;if(e===`mouseup`&&i||(a=this.findHover(n,r),o=a.target),e===`mousedown`)this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e===`mouseup`)this._upEl=o;else if(e===`click`){if(this._downEl!==this._upEl||!this._downPoint||Aw(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function ike(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return!i||UB}return!1}function qB(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=ike(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==UB)){t.target=o;break}}}function JB(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var YB=32,XB=7;function ake(e){for(var t=0;e>=YB;)t|=e&1,e>>=1;return e+t}function ZB(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;oke(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function oke(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function QB(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a=e[r],o=t,s=r,c;o<s;)c=o+s>>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function $B(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c<s&&a(e,t[n+i+c])>0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;c<s&&a(e,t[n+i-c])<=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function eV(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;c<s&&a(e,t[n+i-c])<0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c<s&&a(e,t[n+i+c])>=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function ske(e,t){var n=XB,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,u(e)}}function u(n){var o=r[n],s=i[n],c=r[n+1],l=i[n+1];i[n]=s+l,n===a-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),a--;var u=eV(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=$B(e[o+s-1],e,c,l,l-1,t),l!==0&&(s<=l?d(o,s,c,l):f(o,s,c,l)))}function d(r,i,a,s){var c=0;for(c=0;c<i;c++)o[c]=e[r+c];var l=0,u=a,d=r;if(e[d++]=e[u++],--s===0)for(c=0;c<i;c++)e[d+c]=o[l+c];else if(i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else{for(var f=n,p,m,h;;){p=0,m=0,h=!1;do if(t(e[u],o[l])<0){if(e[d++]=e[u++],m++,p=0,--s===0){h=!0;break}}else if(e[d++]=o[l++],p++,m=0,--i===1){h=!0;break}while((p|m)<f);if(h)break;do{if(p=eV(e[u],o,l,i,0,t),p!==0){for(c=0;c<p;c++)e[d+c]=o[l+c];if(d+=p,l+=p,i-=p,i<=1){h=!0;break}}if(e[d++]=e[u++],--s===0){h=!0;break}if(m=$B(o[l],e,u,s,0,t),m!==0){for(c=0;c<m;c++)e[d+c]=e[u+c];if(d+=m,u+=m,s-=m,s===0){h=!0;break}}if(e[d++]=o[l++],--i===1){h=!0;break}f--}while(p>=XB||m>=XB);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else if(i===0)throw Error();else for(c=0;c<i;c++)e[d+c]=o[l+c]}}function f(r,i,a,s){var c=0;for(c=0;c<s;c++)o[c]=e[a+c];var l=r+i-1,u=s-1,d=a+s-1,f=0,p=0;if(e[d--]=e[l--],--i===0)for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c];else if(s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else{for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)<m);if(_)break;do{if(h=i-eV(o[u],e,r,i,i-1,t),h!==0){for(d-=h,l-=h,i-=h,p=d+1,f=l+1,c=h-1;c>=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-$B(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c<g;c++)e[p+c]=o[f+c];if(s<=1){_=!0;break}}if(e[d--]=e[l--],--i===0){_=!0;break}m--}while(h>=XB||g>=XB);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c]}}return{mergeRuns:c,forceMergeRuns:l,pushRun:s}}function tV(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<YB)a=ZB(e,n,r,t),QB(e,n,r,n+a,t);else{var o=ske(e,t),s=ake(i);do{if(a=ZB(e,n,r,t),a<s){var c=i;c>s&&(c=s),QB(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}}var cke=!1;function nV(){cke||=!0}function rV(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var lke=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=rV}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t||=!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,tV(n,rV)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath(),i=t&&t.length,a=0,o=e.__clipPaths;if(!e.ignoreClip&&(i||r)){if(o||=e.__clipPaths=[],i)for(var s=0;s<t.length;s++)o[a++]=t[s];for(var c=r,l=e;c;)c.parent=l,c.updateTransform(),o[a++]=c,l=c,c=c.getClipPath()}if(o&&(o.length=a),e.childrenRef){for(var u=e.childrenRef(),d=0;d<u.length;d++){var f=u[d];e.__dirty&&(f.__dirty|=1),this._updateAndAddDisplayable(f,o,n)}e.__dirty=0}else{var p=e;isNaN(p.z)&&(nV(),p.z=0),isNaN(p.z2)&&(nV(),p.z2=0),isNaN(p.zlevel)&&(nV(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,o,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,o,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,o,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);else{var r=xC(this._roots,e);r>=0&&this._roots.splice(r,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),iV=rw.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function aV(){return new Date().getTime()}var uke=function(e){iC(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=aV()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)&&(r.ondestroy(),this.removeClip(r)),r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(iV(t),!e._paused&&e.update())}iV(t)},t.prototype.start=function(){this._running||(this._time=aV(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=aV(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=aV()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new GE(e,t.loop);return this.addAnimator(n),n},t}(KE),dke=300,oV=rw.domSupported,sV=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:wC(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),cV={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},lV=!1;function uV(e){var t=e.pointerType;return t===`pen`||t===`touch`}function fke(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function dV(e){e&&(e.zrByTouch=!0)}function pke(e,t){return RB(e.dom,new mke(e,t),!0)}function fV(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var mke=function(){function e(e,t){this.stopPropagation=nw,this.stopImmediatePropagation=nw,this.preventDefault=nw,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),pV={mousedown:function(e){e=RB(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=RB(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger(`mousemove`,e)},mouseup:function(e){e=RB(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=RB(this.dom,e);var t=e.toElement||e.relatedTarget;fV(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){lV=!0,e=RB(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){lV||(e=RB(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=RB(this.dom,e),dV(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),pV.mousemove.call(this,e),pV.mousedown.call(this,e)},touchmove:function(e){e=RB(this.dom,e),dV(e),this.handler.processGesture(e,`change`),pV.mousemove.call(this,e)},touchend:function(e){e=RB(this.dom,e),dV(e),this.handler.processGesture(e,`end`),pV.mouseup.call(this,e),+new Date-this.__lastTouchMoment<dke&&pV.click.call(this,e)},pointerdown:function(e){pV.mousedown.call(this,e)},pointermove:function(e){uV(e)||pV.mousemove.call(this,e)},pointerup:function(e){pV.mouseup.call(this,e)},pointerout:function(e){uV(e)||pV.mouseout.call(this,e)}};Z([`click`,`dblclick`,`contextmenu`],function(e){pV[e]=function(t){t=RB(this.dom,t),this.trigger(e,t)}});var mV={pointermove:function(e){uV(e)||mV.mousemove.call(this,e)},pointerup:function(e){mV.mouseup.call(this,e)},mousemove:function(e){this.trigger(`mousemove`,e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger(`mouseup`,e),t&&(e.zrEventControl=`only_globalout`,this.trigger(`mouseout`,e))}};function hke(e,t){var n=t.domHandlers;rw.pointerEventsSupported?Z(sV.pointer,function(r){hV(t,r,function(t){n[r].call(e,t)})}):(rw.touchEventsSupported&&Z(sV.touch,function(r){hV(t,r,function(i){n[r].call(e,i),fke(t)})}),Z(sV.mouse,function(r){hV(t,r,function(i){i=LB(i),t.touching||n[r].call(e,i)})}))}function gke(e,t){rw.pointerEventsSupported?Z(cV.pointer,n):rw.touchEventsSupported||Z(cV.mouse,n);function n(n){function r(r){r=LB(r),fV(e,r.target)||(r=pke(e,r),t.domHandlers[n].call(e,r))}hV(t,n,r,{capture:!0})}}function hV(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,zB(e.domTarget,t,n,r)}function gV(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&ZOe(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var _V=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),_ke=function(e){iC(t,e);function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new _V(t,pV),oV&&(r._globalHandlerScope=new _V(document,mV)),hke(r,r._localHandlerScope),r}return t.prototype.dispose=function(){gV(this._localHandlerScope),oV&&gV(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||`default`)},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,oV&&+this.__pointerCapturing^e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?gke(this,t):gV(t)}},t}(KE),vV={},yV={};function vke(e){delete yV[e]}function yke(e){if(!e)return!1;if(typeof e==`string`)return TE(e,1)<YE;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=TE(t[i].color,1);return n/=r,n<YE}return!1}var bke=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n||={},this.dom=t,this.id=e;var i=new lke,a=n.renderer||`canvas`;vV[a]||(a=DC(vV)[0]),n.useDirtyRect=n.useDirtyRect!=null&&n.useDirtyRect;var o=new vV[a](t,i,n,e),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var c=!rw.node&&!rw.worker&&!s?new _ke(o.getViewportRoot(),o.root):null,l=n.useCoarsePointer,u=l==null||l===`auto`?rw.touchEventsSupported:!!l,d=44,f;u&&(f=HC(n.pointerSize,d)),this.handler=new KB(i,o,c,o.root,f),this.animation=new uke({stage:{update:s?null:function(){return r._flush(!1)}}}),s||this.animation.start()}return e.prototype.add=function(e){!this._disposed&&e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){!this._disposed&&e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=yke(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},e.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!0)},e.prototype._flush=function(e){var t,n=aV(),r=this._needsRefresh,i=this._needsRefreshHover;(r||i)&&(t=!0,this._refresh({animUpdate:e,refresh:r,refreshHover:i}));var a=aV();t?(this._stillFrameAccum=0,this.trigger(`rendered`,{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(e){this._disposed||(e||={},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof XA&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,vke(this.id))},e}();function bV(e,t){var n=new bke(hC(),e,t);return yV[n.id]=n,n}function xke(e,t){vV[e]=t}var xV=``;typeof navigator<`u`&&(xV=navigator.platform||``);var SV=`rgba(0, 0, 0, 0.2)`,CV=AF.color.theme[0],Ske=CE(CV,null,null,.9),wV={darkMode:`auto`,colorBy:`series`,color:AF.color.theme,gradientColor:[Ske,CV],aria:{decal:{decals:[{color:SV,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:SV,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:SV,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:SV,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:SV,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:SV,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:xV.match(/^Win/)?`Microsoft YaHei`:`sans-serif`,fontSize:12,fontStyle:`normal`,fontWeight:`normal`},blendMode:null,stateAnimation:{duration:300,easing:`cubicOut`},animation:`auto`,animationDuration:1e3,animationDurationUpdate:500,animationEasing:`cubicInOut`,animationEasingUpdate:`cubicInOut`,animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},TV=QC();function Cke(e,t){KC(TV.get(e)==null&&t),TV.set(e,t)}function wke(e,t,n){var r=TV.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var EV,DV,OV,kV=`\0_ec_inner`,Tke=1,AV=function(e){iC(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(e,t,n,r,i,a){r||={},this.option=null,this._theme=new LM(r),this._locale=new LM(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=NV(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,NV(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||e===`recreate`){var i=r.mountOption(e===`recreate`);!this.option||e===`recreate`?OV(this,i):(this.restoreData(),this._mergeOption(i,t)),n=!0}if((e===`timeline`||e===`media`)&&this.restoreData(),!e||e===`recreate`||e===`timeline`){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||e===`recreate`||e===`media`){var o=r.getMediaOption(this);o.length&&Z(o,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=QC(),s=t&&t.replaceMergeMainTypeMap;Ewe(this),Z(e,function(e,t){e!=null&&(gF.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?_C(e):vC(n[t],e,!0))}),s&&s.each(function(e,t){gF.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),gF.topologicalTravel(a,gF.getAllClassMainTypes(),c,this);function c(t){var a=wke(this,t,lk(e[t])),o=r.get(t),c=LSe(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);GSe(c,t,gF),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f;Z(c,function(e,n){var r=e.existing,i=e.newOption;if(!i)r&&(r.mergeOption({},this),r.optionUpdated({},!1));else{var a=t===`series`,o=gF.getClass(t,e.keyInfo.subType,!a);if(!o)return;if(t===`tooltip`){if(f)return;f=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=yC({componentIndex:n},e.keyInfo);r=new o(i,this,this,s),yC(r,s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}r?(l.push(r.option),u.push(r),d++):(l.push(void 0),u.push(void 0))},this),n[t]=l,r.set(t,u),i.set(t,d),t===`series`&&EV(this)}this._seriesIndices||EV(this)},t.prototype.getOption=function(){var e=_C(this.option);return Z(e,function(t,n){if(gF.hasClass(n)){for(var r=lk(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!_k(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[kV],e},t.prototype.setTheme=function(e){this._theme=new LM(e),this._resetOption(`recreate`,null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i<n.length;i++)if(n[i])return n[i]}}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n=e.index,r=e.id,i=e.name,a=this._componentsMap.get(t);if(!a||!a.length)return[];var o;return n==null?o=r==null?i==null?EC(a,function(e){return!!e}):jV(`name`,i,a):jV(`id`,r,a):(o=[],Z(lk(n),function(e){a[e]&&o.push(a[e])})),MV(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(MV(r?this.queryComponents(r):EC(this._componentsMap.get(n),function(e){return!!e}),e));function i(e){var t=n+`Index`,r=n+`Id`,i=n+`Name`;return e&&(e[t]!=null||e[r]!=null||e[i]!=null)?{mainType:n,index:e[t],id:e[r],name:e[i]}:null}function a(t){return e.filter?EC(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(jC(e)){var i=t,a=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&a.call(i,t,r,r.componentIndex)}})}else for(var o=MC(e)?r.get(e):FC(e)?this.findComponents(e):null,s=0;o&&s<o.length;s++){var c=o[s];c&&t.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=hk(e,null);return EC(this._componentsMap.get(`series`),function(e){return!!e&&t!=null&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get(`series`)[e]},t.prototype.getSeriesByType=function(e){return EC(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return EC(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){DV(this),Z(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){Z(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){DV(this),Z(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];i.subType===e&&t.call(n,i,r)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return Z(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return DV(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){DV(this);var n=[];Z(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];e.call(t,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=QC(n)},t.prototype.restoreData=function(e){EV(this);var t=this._componentsMap,n=[];t.each(function(e,t){gF.hasClass(t)&&n.push(t)}),gF.topologicalTravel(n,gF.getAllClassMainTypes(),function(n){Z(t.get(n),function(t){t&&(n!==`series`||!Eke(t,e))&&t.restoreData()})})},t.internalField=function(){EV=function(e){var t=e._seriesIndices=[];Z(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=QC(t)},DV=function(e){},OV=function(e,t){e.option={},e.option[kV]=Tke,e._componentsMap=QC({series:[]}),e._componentsCount=QC();var n=t.aria;FC(n)&&n.enabled==null&&(n.enabled=!0),Dke(t,e._theme.option),vC(t,wV,!1),e._mergeOption(t,null)}}(),t}(LM);function Eke(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}function Dke(e,t){var n=e.color&&!e.colorLayer;Z(t,function(t,r){r===`colorLayer`&&n||r===`color`&&e.color||gF.hasClass(r)||(typeof t==`object`?e[r]=e[r]?vC(e[r],t,!1):_C(t):e[r]??(e[r]=t))})}function jV(e,t,n){if(AC(t)){var r=QC();return Z(t,function(e){e!=null&&hk(e,null)!=null&&r.set(e,!0)}),EC(n,function(t){return t&&r.get(t[e])})}var i=hk(t,null);return EC(n,function(t){return t&&i!=null&&t[e]===i})}function MV(e,t){return t.hasOwnProperty(`subType`)?EC(e,function(e){return e&&e.subType===t.subType}):e}function NV(e){var t=QC();return e&&Z(lk(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}SC(AV,vF);var Oke=/^(min|max)?(.+)$/,kke=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(Z(lk(e.series),function(e){e&&e.data&&LC(e.data)&&YC(e.data)}),Z(lk(e.dataset),function(e){e&&e.source&&LC(e.source)&&YC(e.source)})),e=_C(e);var r=this._optionBackup,i=Ake(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],_C(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent(`timeline`);r&&(t=_C(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,a=[],o=[];if(!r.length&&!i)return o;for(var s=0,c=r.length;s<c;s++)jke(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!Nke(a,this._currentMediaIndices)&&(o=wC(a,function(e){return _C(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}();function Ake(e,t,n){var r=[],i,a,o=e.baseOption,s=e.timeline,c=e.options,l=e.media,u=!!e.media,d=!!(c||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((d||u)&&(e.options=e.media=null),a=e),u&&AC(l)&&Z(l,function(e){e&&e.option&&(e.query?r.push(e):i||=e)}),f(a),Z(c,function(e){return f(e)}),Z(r,function(e){return f(e.option)});function f(e){Z(t,function(t){t(e,n)})}return{baseOption:a,timelineOptions:c||[],mediaDefault:i,mediaList:r}}function jke(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return Z(e,function(e,t){var n=t.match(Oke);if(n&&n[1]&&n[2]){var a=n[1];Mke(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function Mke(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function Nke(e,t){return e.join(`,`)===t.join(`,`)}var PV=Z,FV=FC,IV=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function LV(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=IV.length;n<r;n++){var i=IV[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?vC(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?vC(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function RV(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,bC(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function zV(e){RV(e,`itemStyle`),RV(e,`lineStyle`),RV(e,`areaStyle`),RV(e,`label`),RV(e,`labelLine`),RV(e,`upperLabel`),RV(e,`edgeLabel`)}function BV(e,t){var n=FV(e)&&e[t],r=FV(n)&&n.textStyle;if(r)for(var i=0,a=dk.length;i<a;i++){var o=dk[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function VV(e){e&&(zV(e),BV(e,`label`),e.emphasis&&BV(e.emphasis,`label`))}function Pke(e){if(FV(e)){LV(e),zV(e),BV(e,`label`),BV(e,`upperLabel`),BV(e,`edgeLabel`),e.emphasis&&(BV(e.emphasis,`label`),BV(e.emphasis,`upperLabel`),BV(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(LV(t),VV(t));var n=e.markLine;n&&(LV(n),VV(n));var r=e.markArea;r&&VV(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!LC(a))for(var o=0;o<a.length;o++)VV(a[o]);Z(e.categories,function(e){zV(e)})}if(i&&!LC(i))for(var o=0;o<i.length;o++)VV(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)VV(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)AC(c[o])?(VV(c[o][0]),VV(c[o][1])):VV(c[o]);e.type===`gauge`?(BV(e,`axisLabel`),BV(e,`title`),BV(e,`detail`)):e.type===`treemap`?(RV(e.breadcrumb,`itemStyle`),Z(e.levels,function(e){zV(e)})):e.type===`tree`&&zV(e.leaves)}}function HV(e){return AC(e)?e:e?[e]:[]}function UV(e){return(AC(e)?e[0]:e)||{}}function Fke(e,t){PV(HV(e.series),function(e){FV(e)&&Pke(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),PV(n,function(t){PV(HV(e[t]),function(e){e&&(BV(e,`axisLabel`),BV(e.axisPointer,`label`))})}),PV(HV(e.parallel),function(e){var t=e&&e.parallelAxisDefault;BV(t,`axisLabel`),BV(t&&t.axisPointer,`label`)}),PV(HV(e.calendar),function(e){RV(e,`itemStyle`),BV(e,`dayLabel`),BV(e,`monthLabel`),BV(e,`yearLabel`)}),PV(HV(e.radar),function(e){BV(e,`name`),e.name&&e.axisName==null&&(e.axisName=e.name,delete e.name),e.nameGap!=null&&e.axisNameGap==null&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),PV(HV(e.geo),function(e){FV(e)&&(VV(e),PV(HV(e.regions),function(e){VV(e)}))}),PV(HV(e.timeline),function(e){VV(e),RV(e,`label`),RV(e,`itemStyle`),RV(e,`controlStyle`,!0);var t=e.data;AC(t)&&Z(t,function(e){FC(e)&&(RV(e,`label`),RV(e,`itemStyle`))})}),PV(HV(e.toolbox),function(e){RV(e,`iconStyle`),PV(e.feature,function(e){RV(e,`iconStyle`)})}),BV(UV(e.axisPointer),`label`),BV(UV(e.tooltip).axisPointer,`label`)}function Ike(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]],r!=null);i++);return r}function Lke(e,t,n,r){for(var i=t.split(`,`),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]??(a[o]={}),a=a[o];(r||a[i[s]]==null)&&(a[i[s]]=n)}function WV(e){e&&Z(Rke,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Rke=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],zke=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],GV=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]];function KV(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<GV.length;n++){var r=GV[n][1],i=GV[n][0];t[r]!=null&&(t[i]=t[r])}}function qV(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function JV(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Bke(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(e.emphasis.focus=`adjacency`))}function YV(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&YV(e[n].children,t)}function XV(e,t){Fke(e,t),e.series=lk(e.series),Z(e.series,function(e){if(FC(e)){var t=e.type;if(t===`line`)e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(t===`pie`||t===`gauge`){e.clockWise!=null&&(e.clockwise=e.clockWise),qV(e.label);var n=e.data;if(n&&!LC(n))for(var r=0;r<n.length;r++)qV(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=Ike(e,`pointer.color`);i!=null&&Lke(e,`itemStyle.color`,i)}else if(t===`bar`){KV(e),KV(e.backgroundStyle),KV(e.emphasis);var n=e.data;if(n&&!LC(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(KV(n[r]),KV(n[r]&&n[r].emphasis))}else if(t===`sunburst`){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),JV(e),YV(e.data,JV)}else t===`graph`||t===`sankey`?Bke(e):t===`map`&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&bC(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),WV(e)}}),e.dataRange&&(e.visualMap=e.dataRange),Z(zke,function(t){var n=e[t];n&&(AC(n)||(n=[n]),Z(n,function(e){WV(e)}))})}var Vke=Ik(Hke);function Hke(e){var t=QC();e.eachSeries(function(e){var n=e.get(`stack`);if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),a={stackResultDimension:i.getCalculationInfo(`stackResultDimension`),stackedOverDimension:i.getCalculationInfo(`stackedOverDimension`),stackedDimension:i.getCalculationInfo(`stackedDimension`),stackedByDimension:i.getCalculationInfo(`stackedByDimension`),isStackedByIndex:i.getCalculationInfo(`isStackedByIndex`),data:i,seriesModel:e};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;r.push(a)}}),t.each(function(e){e.length!==0&&((e[0].seriesModel.get(`stackOrder`)||`seriesAsc`)===`seriesDesc`&&e.reverse(),Z(e,function(t,n){t.data.setCalculationInfo(`stackedOnSeries`,n>0?e[n-1].seriesModel:null)}),Uke(e))})}function Uke(e){Z(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=UO(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var ZV=function(){function e(){this.group=new XA,this.uid=iP(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();sw(ZV),lw(ZV);var QV=yk(),$V={itemStyle:uw(IM,!0),lineStyle:uw(FM,!0)},Wke={lineStyle:`stroke`,itemStyle:`fill`};function eH(e,t){return e.visualStyleMapper||$V[t]||$V.itemStyle}function tH(e,t){return e.visualDrawType||Wke[t]||`fill`}var Gke={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=eH(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=tH(e,r),c=a[s],l=jC(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||jC(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||jC(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=yC({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},nH=new LM,Kke={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=eH(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){nH.option=n[r];var o=i(nH);yC(e.ensureUniqueItemVisual(t,`style`),o),nH.option.decal&&(e.setItemVisual(t,`decal`,nH.option.decal),nH.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},qke={performRawSeries:!0,overallReset:function(e){var t=QC();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();QV(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=QV(e).scope,a=tH(e,e.visualStyleAccessPath||`itemStyle`);r.each(function(e){var t=r.getRawIndex(e);n[t]=e}),t.each(function(o){var s=n[o];if(r.getItemVisual(s,`colorFromPalette`)){var c=r.ensureUniqueItemVisual(s,`style`),l=t.getName(o)||o+``,u=t.count();c[a]=e.getColorFromPalette(l,i,u)}})}})}},rH=Math.PI;function Jke(e,t){t||={},bC(t,{text:`loading`,textColor:AF.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:AF.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new XA,r=new fO({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new gO({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new fO({style:{fill:`none`},textContent:i,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new yj({shape:{startAngle:-rH/2,endAngle:-rH/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:`round`,lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:rH*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:rH*3/2}).delay(300).start(`circularInOut`),n.add(o)),n.resize=function(){var n=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-s*2-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:l}),a.setShape({x:c-s,y:l-s,width:s*2,height:s*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var iH=function(){function e(e,t,n,r){this._stageTaskMap=QC(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid);e.pipelineContext=n.context=e.__preparePipelineContext?e.__preparePipelineContext(t,n):Fk(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=QC();t.eachSeries(function(t){var i=e.painter.type===`canvas`&&t.getProgressive(),a=t.uid;r.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(t,t.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;Z(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});KC(!(r.reset&&r.overallReset),``),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;Z(e,function(e,s){if(!(r.visualType&&r.visualType!==e.visualType)){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}});function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=QC(),s=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l);function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||SF({plan:$ke,reset:eAe,count:nAe}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||SF({reset:Yke});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=QC(),c=e.seriesType,l=e.getTargetSeries,u=e.dirtyOnOverallProgress,d=!1;KC(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):Z(n.getSeries(),f);function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,SF({reset:Xke,onDirty:Qke})));n.context={model:e,dirtyOnOverallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return jC(e)&&(e={overallReset:e,seriesType:rAe(e)}),e.uid=iP(`stageHandler`),t&&(e.visualType=t),e},e}();function Yke(e){e.overallReset(e.ecModel,e.api,e.payload)}function Xke(e){return e.dirtyOnOverallProgress&&Zke}function Zke(){this.agent.dirty(),this.getDownstream().dirty()}function Qke(){this.agent&&this.agent.dirty()}function $ke(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function eAe(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=lk(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?wC(t,function(e,t){return aH(t)}):tAe}var tAe=aH(0);function aH(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(r,a);else i&&i.progress&&i.progress(t,r)}}function nAe(e){return e.data.count()}function rAe(e){cH=null;try{e(oH,sH)}catch{}return cH}var oH={},sH={},cH;lH(oH,AV),lH(sH,Gk),oH.eachSeriesByType=oH.eachRawSeriesByType=function(e){cH=e},oH.eachComponent=function(e){e.mainType===`series`&&e.subType&&(cH=e.subType)};function lH(e,t){for(var n in t.prototype)e[n]=nw}var uH=AF.darkColor,dH=uH.background,fH=function(){return{axisLine:{lineStyle:{color:uH.axisLine}},splitLine:{lineStyle:{color:uH.axisSplitLine}},splitArea:{areaStyle:{color:[uH.backgroundTint,uH.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:uH.axisMinorSplitLine}},axisLabel:{color:uH.axisLabel},axisName:{}}},pH={label:{color:uH.secondary},itemStyle:{borderColor:uH.borderTint},dividerLineStyle:{color:uH.border}},mH={darkMode:!0,color:uH.theme,backgroundColor:dH,axisPointer:{lineStyle:{color:uH.border},crossStyle:{color:uH.borderShade},label:{color:uH.tertiary}},legend:{textStyle:{color:uH.secondary},pageTextStyle:{color:uH.tertiary}},textStyle:{color:uH.secondary},title:{textStyle:{color:uH.primary},subtextStyle:{color:uH.quaternary}},toolbox:{iconStyle:{borderColor:uH.accent50},feature:{dataView:{backgroundColor:dH,textColor:uH.primary,textareaColor:uH.background,textareaBorderColor:uH.border,buttonColor:uH.accent50,buttonTextColor:uH.neutral00}}},tooltip:{backgroundColor:uH.neutral20,defaultBorderColor:uH.border,textStyle:{color:uH.tertiary}},dataZoom:{borderColor:uH.accent10,textStyle:{color:uH.tertiary},brushStyle:{color:uH.backgroundTint},handleStyle:{color:uH.neutral00,borderColor:uH.accent20},moveHandleStyle:{color:uH.accent40},emphasis:{handleStyle:{borderColor:uH.accent50}},dataBackground:{lineStyle:{color:uH.accent30},areaStyle:{color:uH.accent20}},selectedDataBackground:{lineStyle:{color:uH.accent50},areaStyle:{color:uH.accent30}}},visualMap:{textStyle:{color:uH.secondary},handleStyle:{borderColor:uH.neutral30}},timeline:{lineStyle:{color:uH.accent10},label:{color:uH.tertiary},controlStyle:{color:uH.accent30,borderColor:uH.accent30}},calendar:{itemStyle:{color:uH.neutral00,borderColor:uH.neutral20},dayLabel:{color:uH.tertiary},monthLabel:{color:uH.secondary},yearLabel:{color:uH.secondary}},matrix:{x:pH,y:pH,backgroundColor:{borderColor:uH.axisLine},body:{itemStyle:{borderColor:uH.borderTint}}},timeAxis:fH(),logAxis:fH(),valueAxis:fH(),categoryAxis:fH(),line:{symbol:`circle`},graph:{color:uH.theme},gauge:{title:{color:uH.secondary},axisLine:{lineStyle:{color:[[1,uH.neutral05]]}},axisLabel:{color:uH.axisLabel},detail:{color:uH.primary}},candlestick:{itemStyle:{color:`#f64e56`,color0:`#54ea92`,borderColor:`#f64e56`,borderColor0:`#54ea92`}},funnel:{itemStyle:{borderColor:uH.background}},radar:function(){var e=fH();return e.axisName={color:uH.axisLabel},e.axisLine.lineStyle.color=uH.neutral20,e}(),treemap:{breadcrumb:{itemStyle:{color:uH.neutral20,textStyle:{color:uH.secondary}},emphasis:{itemStyle:{color:uH.neutral30}}}},sunburst:{itemStyle:{borderColor:uH.background}},map:{itemStyle:{borderColor:uH.border,areaColor:uH.neutral10},label:{color:uH.tertiary},emphasis:{label:{color:uH.primary},itemStyle:{areaColor:uH.highlight}},select:{label:{color:uH.primary},itemStyle:{areaColor:uH.highlight}}},geo:{itemStyle:{borderColor:uH.border,areaColor:uH.neutral10},emphasis:{label:{color:uH.primary},itemStyle:{areaColor:uH.highlight}},select:{label:{color:uH.primary},itemStyle:{color:uH.highlight}}}};mH.categoryAxis.splitLine.show=!1;var iAe=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(MC(e)){var i=ow(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=[`Index`,`Name`,`Id`],o={name:1,dataIndex:1,dataType:1};Z(e,function(e,i){for(var s=!1,c=0;c<a.length;c++){var l=a[c],u=i.lastIndexOf(l);if(u>0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),hH=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],gH=hH.concat([`symbolKeepAspect`]),aAe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual(`legendIcon`,e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o<hH.length;o++){var s=hH[o],c=e.get(s);jC(c)?(a=!0,i[s]=c):r[s]=c}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(yC({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get(`symbolKeepAspect`)},r)),t.isSeriesFiltered(e))return;var l=DC(i);function u(t,n){for(var r=e.getRawValue(n),a=e.getDataParams(n),o=0;o<l.length;o++){var s=l[o];t.setItemVisual(n,s,i[s](r,a))}}return{dataEach:a?u:null}}},oAe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function r(e,t){for(var n=e.getItemModel(t),r=0;r<gH.length;r++){var i=gH[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}};function sAe(e,t,n){switch(n){case`color`:return e.getItemVisual(t,`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getItemVisual(t,`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getItemVisual(t,n)}}function cAe(e,t){switch(t){case`color`:return e.getVisual(`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getVisual(`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getVisual(t)}}function _H(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var vH=new KE,yH={};function lAe(e,t){yH[e]=t}function uAe(e){return yH[e]}var dAe={};function fAe(e,t){dAe[e]=t}var pAe=Math.round(Math.random()*9),mAe=typeof Object.defineProperty==`function`,hAe=function(){function e(){this._id=`__ec_inner_`+pAe++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return mAe?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError(`Value of WeakMap is not a non-null object.`);return e},e}();function bH(e){return isFinite(e)}function gAe(e,t,n){var r=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),r=bH(r)?r:0,i=bH(i)?i:1,a=bH(a)?a:0,o=bH(o)?o:0,e.createLinearGradient(r,a,i,o)}function _Ae(e,t,n){var r=n.width,i=n.height,a=Math.min(r,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,c=t.r==null?.5:t.r;return t.global||(o=o*r+n.x,s=s*i+n.y,c*=a),o=bH(o)?o:.5,s=bH(s)?s:.5,c=c>=0&&bH(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function xH(e,t,n){for(var r=t.type===`radial`?_Ae(e,t,n):gAe(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function vAe(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function SH(e){return parseInt(e,10)}function CH(e,t,n){var r=[`width`,`height`][t],i=[`clientWidth`,`clientHeight`][t],a=[`paddingLeft`,`paddingTop`][t],o=[`paddingRight`,`paddingBottom`][t];if(n[r]!=null&&n[r]!==`auto`)return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||SH(s[r])||SH(e.style[r]))-(SH(s[a])||0)-(SH(s[o])||0)||0}function yAe(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:PC(e)?[e]:AC(e)?e:null}function wH(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&yAe(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=wC(n,function(e){return e/i}),r/=i)}return[n,r]}var bAe=new KD(!0);function TH(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function EH(e){return typeof e==`string`&&e!==`none`}function DH(e){var t=e.fill;return t!=null&&t!==`none`}function OH(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function kH(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function AH(e,t,n){var r=mw(t.image,t.__image,n);if(gw(r)){var i=e.createPattern(r,t.repeat||`repeat`);if(typeof DOMMatrix==`function`&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Hbe),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function xAe(e,t,n,r,i){var a,o=TH(n),s=DH(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||bAe,f=t.__dirty;if(!r){var p=n.fill,m=n.stroke,h=s&&!!p.colorStops,g=o&&!!m.colorStops,_=s&&!!p.image,v=o&&!!m.image,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0;(h||g)&&(C=t.getBoundingRect()),h&&(y=f?xH(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?xH(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?AH(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?AH(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),h?e.fillStyle=y:_&&(x?e.fillStyle=x:s=!1),g?e.strokeStyle=b:v&&(S?e.strokeStyle=S:o=!1)}var w=t.getGlobalScale();d.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,E;e.setLineDash&&n.lineDash&&(a=wH(t),T=a[0],E=a[1]);var D=!0;(u||f&4)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,l?c:1),T&&(e.setLineDash(T),e.lineDashOffset=E),r?(i.batchFill=s,i.batchStroke=o):n.strokeFirst?(o&&kH(e,n),s&&OH(e,n)):(s&&OH(e,n),o&&kH(e,n)),T&&e.setLineDash([])}function SAe(e,t,n){var r=t.__image=mw(n.image,t.__image,t,t.onload);if(r&&gw(r)){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var l=n.sx,u=n.sy,d=o-l,f=s-u;e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function CAe(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=wH(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(TH(n)&&e.strokeText(i,n.x,n.y),DH(n)&&e.fillText(i,n.x,n.y)):(DH(n)&&e.fillText(i,n.x,n.y),TH(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var jH=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],MH=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function NH(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){BH(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?uD.opacity:o}(r||t.blend!==n.blend)&&(a||=(BH(e,i),!0),e.globalCompositeOperation=t.blend||uD.blend);for(var s=0;s<jH.length;s++){var c=jH[s];(r||t[c]!==n[c])&&(a||=(BH(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(BH(e,i),!0),e.shadowColor=t.shadowColor||uD.shadowColor),a}function PH(e,t,n,r,i){var a=t.style,o=r?null:n&&n.style||{};if(a===o)return!1;var s=NH(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(BH(e,i),!0),EH(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(BH(e,i),!0),EH(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(BH(e,i),!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var c=a.lineWidth/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==c&&(s||=(BH(e,i),!0),e.lineWidth=c)}for(var l=0;l<MH.length;l++){var u=MH[l],d=u[0];(r||a[d]!==o[d])&&(s||=(BH(e,i),!0),e[d]=a[d]||u[1])}return s}function wAe(e,t,n,r,i){return NH(e,t.style,n&&n.style,r,i)}function FH(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function TAe(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),FH(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function EAe(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var IH=1,LH=2,RH=3,zH=4;function DAe(e){var t=DH(e),n=TH(e);return!(e.lineDash||!(+t^n)||t&&typeof e.fill!=`string`||n&&typeof e.stroke!=`string`||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function BH(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function VH(e,t){var n={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};HH(e,t,n),UH(e,n)}function HH(e,t,n){var r=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))t.__dirty&=-2,t.__isRendered=!1;else{var i=t.__clipPaths,a=n.prevElClipPaths,o=t.style,s=!1,c=!1;if((!a||vAe(i,a))&&(a&&(BH(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(BH(e,n),e.save(),TAe(i,e,n),s=!0,n.prevElClipPaths=i)),n.allClipped)t.__dirty&=-2,t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(n.beforeBrushParam),t.innerBeforeBrush();var l=n.prevEl;l||(c=s=!0);var u=t instanceof aO&&t.autoBatch&&DAe(o);s||EAe(r,l.transform)?(BH(e,n),FH(e,t)):u||BH(e,n),t instanceof aO?(n.lastDrawType!==IH&&(c=!0,n.lastDrawType=IH),PH(e,t,l,c,n),u&&(n.batchFill||n.batchStroke)||e.beginPath(),xAe(e,t,o,u,n)):t instanceof oO?(n.lastDrawType!==RH&&(c=!0,n.lastDrawType=RH),PH(e,t,l,c,n),CAe(e,t,o)):t instanceof sO?(n.lastDrawType!==LH&&(c=!0,n.lastDrawType=LH),wAe(e,t,l,c,n),SAe(e,t,o)):t.getTemporalDisplayables&&(n.lastDrawType!==zH&&(c=!0,n.lastDrawType=zH),OAe(e,t,n)),t.innerAfterBrush(),t.afterBrush&&(u&&BH(e,n),t.afterBrush()),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}}function UH(e,t){BH(e,t),t.prevElClipPaths&&e.restore()}function OAe(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();for(var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover,beforeBrushParam:{}},o=t.getCursor(),s=r.length;o<s;o++){var c=r[o];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),HH(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}UH(e,a);for(var l=0,u=i.length;l<u;l++){var c=i[l];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),HH(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}UH(e,a),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var WH=new hAe,GH=new fw(100),KH=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`];function qH(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&WH.delete(e);var a=WH.get(e);if(a)return a;var o=bC(e,{symbol:`rect`,symbolSize:1,symbolKeepAspect:!0,color:`rgba(0, 0, 0, 0.2)`,backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor===`none`&&(o.backgroundColor=null);var s={repeat:`repeat`};return c(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/n,WH.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<KH.length;++s){var c=o[KH[s]];if(c!=null&&!AC(c)&&!MC(c)&&!PC(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var l;if(a){l=t.join(`,`)+(i?`-svg`:``);var u=GH.get(l);u&&(i?e.svgElement=u:e.image=u)}var d=YH(o.dashArrayX),f=kAe(o.dashArrayY),p=JH(o.symbol),m=AAe(d),h=XH(f),g=!i&&aC.createCanvas(),_=i&&{tag:`g`,attrs:{},key:`dcl`,children:[]},v=b(),y;g&&(g.width=v.width*n,g.height=v.height*n,y=g.getContext(`2d`)),x(),a&&GH.put(l,g||_),e.image=g,e.svgElement=_,e.svgWidth=v.width,e.svgHeight=v.height;function b(){for(var e=1,t=0,n=m.length;t<n;++t)e=tk(e,m[t]);for(var r=1,t=0,n=p.length;t<n;++t)r=tk(r,p[t].length);e*=r;var i=h*m.length*p.length;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}function x(){y&&(y.clearRect(0,0,g.width,g.height),o.backgroundColor&&(y.fillStyle=o.backgroundColor,y.fillRect(0,0,g.width,g.height)));for(var e=0,t=0;t<f.length;++t)e+=f[t];if(e<=0)return;for(var a=-h,s=0,c=0,l=0;a<v.height;){if(s%2==0){for(var u=c/2%p.length,m=0,b=0,x=0;m<v.width*2;){for(var S=0,t=0;t<d[l].length;++t)S+=d[l][t];if(S<=0)break;if(b%2==0){var C=(1-o.symbolSize)*.5,w=m+d[l][b]*C,T=a+f[s]*C,E=d[l][b]*o.symbolSize,D=f[s]*o.symbolSize,O=x/2%p[u].length;k(w,T,E,D,p[u][O])}m+=d[l][b],++x,++b,b===d[l].length&&(b=0)}++l,l===d.length&&(l=0)}a+=f[s],++c,++s,s===f.length&&(s=0)}function k(e,t,a,s,c){var l=i?1:n,u=dI(c,e*l,t*l,a*l,s*l,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(u);d&&_.children.push(d)}else VH(y,u)}}}}function JH(e){if(!e||e.length===0)return[[`rect`]];if(MC(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!MC(e[n])){t=!1;break}if(t)return JH([e]);for(var r=[],n=0;n<e.length;++n)MC(e[n])?r.push([e[n]]):r.push(e[n]);return r}function YH(e){if(!e||e.length===0)return[[0,0]];if(PC(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!PC(e[r])){n=!1;break}if(n)return YH([e]);for(var i=[],r=0;r<e.length;++r)if(PC(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=wC(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function kAe(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(PC(e)){var t=Math.ceil(e);return[t,t]}var n=wC(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function AAe(e){return wC(e,function(e){return XH(e)})}function XH(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}var jAe=Ik(MAe);function MAe(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(e){var n=r.getItemVisual(e,`decal`);if(n){var i=r.ensureUniqueItemVisual(e,`style`);i.decal=qH(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=qH(i,t)}}})}var NAe=1,PAe=800,FAe=900,IAe=920,LAe=1e3,RAe=2e3,ZH=5e3,QH=1e3,zAe=1100,$H=2e3,eU=3e3,BAe=4e3,tU=4500,VAe=4600,HAe=5e3,UAe=6e3,nU=7e3,WAe={PROCESSOR:{SERIES_FILTER:PAe,AXIS_STATISTICS:IAe,FILTER:LAe,STATISTIC:ZH,STATISTICS:ZH},VISUAL:{LAYOUT:QH,PROGRESSIVE_LAYOUT:zAe,GLOBAL:$H,CHART:eU,POST_CHART_LAYOUT:VAe,COMPONENT:BAe,BRUSH:HAe,CHART_ITEM:tU,ARIA:UAe,DECAL:nU}},rU=`__flagInMainProcess`,iU=`__mainProcessVersion`,aU=`__pendingUpdate`,oU=`__needsUpdateStatus`,sU=/^[a-zA-Z0-9_]+$/,cU=`__connectUpdateStatus`,lU=0,GAe=1,KAe=2;function uU(e){return function(){var t=[...arguments];if(this.isDisposed())this.id;else return fU(this,e,t)}}function dU(e){return function(){var t=[...arguments];return fU(this,e,t)}}function fU(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),KE.prototype[t].apply(e,n)}var pU=function(e){iC(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(KE),mU=pU.prototype;mU.on=dU(`on`),mU.off=dU(`off`);var hU,gU,_U,vU,yU,bU,xU,SU,CU,wU,TU,EU,DU,OU,kU,AU,jU,MU,NU,PU=function(e){iC(t,e);function t(t,n,r){var i=e.call(this,new iAe)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r||={},i.__v_skip=!0,i._dom=t;var a=`canvas`,o=`auto`,s=!1;i[iU]=1,r.ssr;var c=i._zr=bV(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:HC(r.useDirtyRect,s),useCoarsePointer:HC(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=Kz(OC(c.flush,c),17),i._updateTheme(n),i._locale=TTe(r.locale||vP),i._coordSysMgr=new QN;var l=i._api=kU(i);function u(e,t){return e.__prio-t.__prio}return tV(VU,u),tV(zU,u),i._scheduler=new iH(i,l,zU,VU),i._messageCenter=new pU,i._initEvents(),i.resize=OC(i.resize,i),c.animation.on(`frame`,i._onframe,i),wU(c,i),TU(c,i),YC(i),i}return t.prototype._onframe=function(){if(!this._disposed){var e=this._scheduler,t=this._model,n=this._api;if(MU(this),this[aU]){var r=this[aU].silent;this[rU]=!0,NU(this);try{hU(this),vU.update.call(this,null,this[aU].updateParams)}catch(e){throw this[rU]=!1,this[aU]=null,e}this._zr.flush(),this[rU]=!1,this[aU]=null,SU.call(this,r),CU.call(this,r)}else if(e.unfinished){var i=NAe;do{e.unfinished=!1;var a=aC.getTime();e.performSeriesTasks(t),e.performDataProcessorTasks(t),bU(this,t),e.performVisualTasks(t),OU(this,this._model,n,`remain`,{}),i-=aC.getTime()-a}while(i>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[rU]){if(this._disposed)this.id;else{var r,i,a;if(FC(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[rU]=!0,NU(this),!this._model||t){var o=new kke(this._api),s=this._theme,c=this._model=new AV;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},BU);var l={seriesTransition:a,optionChanged:!0};if(n)this[aU]={silent:r,updateParams:l},this[rU]=!1,this.getZr().wakeUp();else{try{hU(this),vU.update.call(this,null,l)}catch(e){throw this[aU]=null,this[rU]=!1,e}this._ssr||this._zr.flush(),this[aU]=null,this[rU]=!1,SU.call(this,r),CU.call(this,r)}}}},t.prototype.setTheme=function(e,t){if(!this[rU]){if(this._disposed)this.id;else{var n=this._model;if(n){var r=t&&t.silent,i=null;this[aU]&&(r??=this[aU].silent,i=this[aU].updateParams,this[aU]=null),this[rU]=!0,NU(this);try{this._updateTheme(e),n.setTheme(this._theme),hU(this),vU.update.call(this,{type:`setTheme`},i)}catch(e){throw this[rU]=!1,e}this[rU]=!1,SU.call(this,r),CU.call(this,r)}}}},t.prototype._updateTheme=function(e){MC(e)&&(e=HU[e]),e&&(e=_C(e),e&&XV(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||rw.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e||={},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e||={},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return Z(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed)this.id;else{e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;Z(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return Z(r,function(e){e.group.ignore=!1}),a}},t.prototype.getConnectedDataURL=function(e){if(this._disposed)this.id;else{var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(GU[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();Z(WU,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(_C(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=d,s*=d,c*=d,l*=d;var f=c-o,p=l-s,m=aC.createCanvas(),h=bV(m,{renderer:t?`svg`:`canvas`});if(h.resize({width:f,height:p}),t){var g=``;return Z(u,function(e){var t=e.left-o,n=e.top-s;g+=`<g transform="translate(`+t+`,`+n+`)">`+e.dom+`</g>`}),h.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&h.painter.setBackgroundColor(e.connectedBackgroundColor),h.refreshImmediately(),h.painter.toDataURL()}return e.connectedBackgroundColor&&h.add(new fO({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),Z(u,function(e){var t=new sO({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});h.add(t)}),h.refreshImmediately(),m.toDataURL(`image/`+(e&&e.type||`png`))}return this.getDataURL(e)}},t.prototype.convertToPixel=function(e,t,n){return yU(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return yU(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return yU(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed)this.id;else{var n=this._model,r;return Z(bk(n,e),function(e,n){n.indexOf(`Models`)>=0&&Z(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r||=!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(r||=a.containPoint(t,e))}},this)},this),!!r}},t.prototype.getVisual=function(e,t){var n=this._model,r=bk(n,e,{defaultMainType:`series`}),i=r.seriesModel.getData(),a=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?i.indexOfRawIndex(r.dataIndex):null;return a==null?cAe(i,t):sAe(i,a,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;Z(qAe,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&_H(i,function(e){var t=Lk(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}if(t.eventData)return a=yC({},t.eventData),!0},!0),a){var o=a.componentType,s=a.componentIndex;(o===`markLine`||o===`markPoint`||o===`markArea`)&&(o=`series`,s=a.seriesIndex);var c=o&&s!=null&&r.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:l},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;Z(RU,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),OOe(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,this.getDom()&&wk(this.getDom(),KU,``);var e=this,t=e._api,n=e._model;Z(e._componentsViews,function(e){e.dispose(n,t)}),Z(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete WU[e.id]}},t.prototype.resize=function(e){if(!this[rU]){if(this._disposed)this.id;else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[aU]&&(r??=this[aU].silent,n=!0,this[aU]=null),this[rU]=!0,NU(this);try{n&&hU(this),vU.update.call(this,{type:`resize`,animation:yC({duration:0},e&&e.animation)})}catch(e){throw this[rU]=!1,e}this[rU]=!1,SU.call(this,r),CU.call(this,r)}}}},t.prototype.showLoading=function(e,t){if(this._disposed)this.id;else if(FC(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),UU[e]){var n=UU[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=yC({},e);return t.type=LU[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)this.id;else if(FC(t)||(t={silent:!!t}),IU[e.type]&&this._model){if(this[rU])this._pendingActions.push(e);else{var n=t.silent;xU.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&rw.browser.weChat&&this._throttledZrFlush(),SU.call(this,n),CU.call(this,n)}}},t.prototype.updateLabelLayout=function(){vH.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)this.id;else{var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){hU=function(e){rDe(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),gU(e,!0),gU(e,!1),t.plan()},gU=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;c<i.length;c++)i[c].__alive=!1;t?n.eachComponent(function(e,t){e!==`series`&&l(t)}):n.eachSeries(l);function l(e){var c=e.__requireNewView;e.__requireNewView=!1;var l=`_ec_`+e.id+`_`+e.type,u=!c&&a[l];if(!u){var d=ow(e.type);u=new(t?ZV.getClass(d.main,d.sub):WI.getClass(d.sub)),u.init(n,s),a[l]=u,i.push(u),o.add(u.group)}e.__viewId=u.__id=l,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(u,e,n,s)}for(var c=0;c<i.length;){var u=i[c];u.__alive?c++:(!t&&u.renderTask.dispose(),o.remove(u.group),u.dispose(n,s),i.splice(c,1),a[u.__id]===u&&delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}},_U=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),!r){Z([].concat(e._componentsViews,e._chartsViews),l);return}var o=YSe(n,r,i),s=n.excludeSeriesId,c;s!=null&&(c=QC(),Z(lk(s),function(e){var t=hk(e,null);t!=null&&c.set(t,!0)})),a&&a.eachComponent(o,function(t){if(!(c&&c.get(t.id)!=null)){if(PA(n)){if(t instanceof XF)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&_Ce(t,n,e._api);else{var r=TA(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&wA(t.mainType,t.componentIndex,e._api),a&&Z(a,function(e){n.type===`highlight`?gA(e):_A(e)})}}else NA(n)&&t instanceof XF&&(bCe(t,n,e._api),EA(t),jU(e))}},e),a&&a.eachComponent(o,function(t){c&&c.get(t.id)!=null||l(e[r===`series`?`_chartsMap`:`_componentsMap`][t.__viewId])},e);function l(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},vU={prepareAndUpdate:function(e){hU(this),vU.update.call(this,e,e&&{optionChanged:e.newOption!=null})},update:function(e,n){var r=this._model,i=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(r){iDe(r),r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),o.create(r,i),vH.trigger(`coordsys:aftercreate`,r,i),s.performDataProcessorTasks(r,e),bU(this,r),o.update(r,i),t(r),s.performVisualTasks(r,e);var c=r.get(`backgroundColor`)||`transparent`;a.setBackgroundColor(c);var l=r.get(`darkMode`);l!=null&&l!==`auto`&&a.setDarkMode(l),EU(this,r,i,e,n),vH.trigger(`afterupdate`,r,i)}},updateTransform:function(e){var t=this,n=t._model,r=t._api;if(n){n.setUpdatePayload(e);var i=[];n.eachComponent(function(a,o){if(a!==`series`){var s=t.getViewOfComponentModel(o);if(s&&s.__alive){if(s.updateTransform){var c=s.updateTransform(o,n,r,e);c&&c.update&&i.push(s)}else i.push(s)}}});var a=QC();n.eachSeries(function(i){var o=t._chartsMap[i.__viewId],s=i.pipelineContext;if(o.updateTransform&&!s.progressiveRender){var c=o.updateTransform(i,n,r,e);c&&c.update&&a.set(i.uid,1)}else a.set(i.uid,1)}),t._scheduler.performVisualTasks(n,e,{setDirty:!0,dirtyMap:a}),OU(t,n,r,e,{},a),vH.trigger(`afterupdate`,n,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),WI.markUpdateMethod(e,`updateView`),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),EU(this,n,this._api,e,{}),vH.trigger(`afterupdate`,n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries(function(e){e.getData().clearAllVisual()}),WI.markUpdateMethod(e,`updateVisual`),t(r),this._scheduler.performVisualTasks(r,e,{visualType:`visual`,setDirty:!0}),r.eachComponent(function(t,i){if(t!==`series`){var a=n.getViewOfComponentModel(i);a&&a.__alive&&a.updateVisual(i,r,n._api,e)}}),r.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,r,n._api,e)}),vH.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){vU.update.call(this,e)}};function e(e,t,n,r,i){if(e._disposed)e.id;else for(var a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s,c=bk(a,n),l=0;l<o.length;l++){var u=o[l];if(u[t]&&(s=u[t](a,c,r,i))!=null)return s}}yU=e,bU=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},xU=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=IU[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&ow(s[0]);this[rU]=!0,NU(this);var u=[e],d=!1;e.batch&&(d=!0,u=wC(e.batch,function(t){return t=bC(yC({},t),e),t.batch=null,t}));var f=[],p,m=[],h=o.nonRefinedEventType,g=NA(e),_=PA(e);if(_&&SA(this._api),Z(u,function(t){var i=o.action(t,r,n._api);if(o.refineEvent?m.push(i):p=i,p||=yC({},t),p.type=h,f.push(p),_){var a=xk(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;_U(n,c,t,u),jU(n)}else g?(_U(n,c,t,`series`),jU(n)):l&&_U(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[aU]?(hU(this),vU.update.call(this,e),this[aU]=null):vU[c].call(this,e)}catch(e){throw this[rU]=!1,e}if(p=d?{type:h,escapeConnect:a,batch:f}:f[0],this[rU]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;KC(FC(y)),v=bC({type:o.refinedEventType},y),v.fromAction=e.type,v.fromActionPayload=e,v.escapeConnect=!0}var b=this._messageCenter;b.trigger(p.type,p),v&&b.trigger(v.type,v)}},SU=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();xU.call(this,n,e)}},CU=function(e){!e&&this.trigger(`updated`)},wU=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[aU]&&!t._scheduler.unfinished&&!t._pendingActions.length?t.trigger(`finished`):e.refresh()})},TU=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=_H(n,MA);r&&(vCe(r,e,t._api),jU(t))}).on(`mouseout`,function(e){var n=e.target,r=_H(n,MA);r&&(yCe(r,e,t._api),jU(t))}).on(`click`,function(e){var n=e.target,r=_H(n,function(e){return Lk(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=Lk(r);t._api.dispatchAction({type:i,dataType:a.dataType,dataIndexInside:a.dataIndex,seriesIndex:a.seriesIndex,isFromClick:!0})}})};function t(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function n(e){var t=[],n=[],r=!1;if(e.eachComponent(function(e,i){var a=i.get(`zlevel`)||0,o=i.get(`z`)||0,s=i.getZLevelKey();r||=!!s,(e===`series`?n:t).push({zlevel:a,z:o,idx:i.componentIndex,type:e,key:s})}),r){var i=t.concat(n),a,o;tV(i,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),Z(i,function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,i=t.key;a!=null&&(r=Math.max(a,r)),i?(r===a&&i!==o&&r++,o=i):o&&=(r===a&&r++,``),a=r,n.setZLevel(r)})}}EU=function(e,t,r,i,a){n(t),DU(e,t,r,i,a),Z(e._chartsViews,function(e){e.__alive=!1}),OU(e,t,r,i,a),Z(e._chartsViews,function(e){e.__alive||e.remove(t,r)})},DU=function(e,t,n,r,i,a){Z(a||e._componentsViews,function(e){var i=e.__model;s(i,e),e.render(i,t,n,r),o(i,e),c(i,e)})},OU=function(e,t,n,r,l,u){var d=e._scheduler;l=yC(l||{},{updatedSeries:t.getSeries()}),vH.trigger(`series:beforeupdate`,t,n,l);var f=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;d.updatePayload(i,r),s(t,n),u&&u.get(t.uid)&&i.dirty(),i.perform(d.getPerformArgs(i))&&(f=!0),n.group.silent=!!t.get(`silent`),a(t,n),EA(t)}),d.unfinished=f||d.unfinished,vH.trigger(`series:layoutlabels`,t,n,l),vH.trigger(`series:transition`,t,n,l),t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];o(t,n),c(t,n)}),i(e,t),vH.trigger(`series:afterupdate`,t,n,l)},jU=function(e){e[oU]=!0,e.getZr().wakeUp()},NU=function(e){e[iU]=(e[iU]+1)%1e6},MU=function(e){e[oU]&&(e.getZr().storage.traverse(function(e){Fj(e)||r(e)}),e[oU]=!1)};function r(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];i!==`emphasis`&&i!==`blur`&&i!==`select`&&t.push(i)}e.selected&&e.states.select&&t.push(`select`),e.hoverState===2&&e.states.emphasis?t.push(`emphasis`):e.hoverState===1&&e.states.blur&&t.push(`blur`),e.useStates(t)}function i(e,t){var n=e._zr;if(n.painter.type===`canvas`){var r=n.storage,i=0;r.traverse(function(e){e.isGroup||i++});var a=i>HC(t.get(`hoverLayerThreshold`),wV.hoverLayerThreshold)&&!rw.node&&!rw.worker;(e._usingTHL||a)&&(t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){var t=e.states.emphasis;t&&t.hoverLayer!==2&&(t.hoverLayer=+!!a)})}}),e._usingTHL=a)}}function a(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function o(e,t){if(!e.preventAutoZ){var n=gM(e);t.eachRendered(function(e){return _M(e,n.z,n.zlevel),!0})}}function s(e,t){t.eachRendered(function(e){if(!Fj(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function c(e,t){var n=e.getModel(`stateAnimation`),i=e.isAnimationEnabled(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(Fj(e))return;if(e instanceof aO&&ECe(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&r(e)}})}kU=function(e){return new(function(t){iC(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}return n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){gA(t,n),jU(e)},n.prototype.leaveEmphasis=function(t,n){_A(t,n),jU(e)},n.prototype.enterBlur=function(t){gCe(t),jU(e)},n.prototype.leaveBlur=function(t){vA(t),jU(e)},n.prototype.enterSelect=function(t){yA(t),jU(e)},n.prototype.leaveSelect=function(t){bA(t),jU(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n.prototype.getECUpdateCycleVersion=function(){return e[iU]},n.prototype.usingTHL=function(){return e._usingTHL},n}(Gk))(e)},AU=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[cU]=t}}Z(LU,function(n,r){e._messageCenter.on(r,function(n){if(GU[e.group]&&e[cU]!==lU){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];Z(WU,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,lU),Z(i,function(e){e[cU]!==GAe&&e.dispatchAction(r)}),t(i,KAe)}})})}}(),t}(KE),FU=PU.prototype;FU.on=uU(`on`),FU.off=uU(`off`),FU.one=function(e,t,n){var r=this;function i(){var n=[...arguments];t&&t.apply&&t.apply(this,n),r.off(e,i)}this.on.call(this,e,i,n)};var qAe=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`],IU={},LU={},RU={},zU=[],BU=[],VU=[],HU={},UU={},WU={},GU={},JAe=new Date-0;new Date-0;var KU=`_echarts_instance_`;function YAe(e,t,n){var r=!(n&&n.ssr);if(r){var i=XAe(e);if(i)return i}var a=new PU(e,t,n);return a.id=`ec_`+JAe++,WU[a.id]=a,r&&wk(e,KU,a.id),AU(a),vH.trigger(`afterinit`,a),a}function XAe(e){return WU[XSe(e,KU)]}function qU(e,t){HU[e]=t}function JU(e){xC(BU,e)<0&&BU.push(e)}function YU(e,t){eW(zU,e,t,RAe)}function ZAe(e){XU(`afterinit`,e)}function QAe(e){XU(`afterupdate`,e)}function XU(e,t){vH.on(e,t)}function ZU(e,t,n){var r,i,a,o,s;jC(t)&&(n=t,t=``),FC(e)?(r=e.type,i=e.event,o=e.update,s=e.publishNonRefinedEvent,n||=e.action,a=e.refineEvent):(r=e,i=t);function c(e){return e.toLowerCase()}i=c(i||r);var l=a?c(r):i;IU[r]||(KC(sU.test(r)&&sU.test(i)),a&&KC(i!==r),IU[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},RU[i]=1,a&&s&&(RU[l]=1),LU[l]=r)}function $Ae(e,t){QN.register(e,t)}function eje(e,t){eW(VU,e,t,QH,`layout`,!0)}function QU(e,t){eW(VU,e,t,eU,`visual`,!0)}var $U=[];function eW(e,t,n,r,i,a){if((jC(t)||FC(t))&&(n=t,t=r),!(xC($U,n)>=0)){$U.push(n);var o=iH.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function tW(e,t){UU[e]=t}function tje(e,t,n){var r=uAe(`registerMap`);r&&r(e,t,n)}var nje=aEe;QU($H,Gke),QU(tU,Kke),QU(tU,qke),QU($H,aAe),QU(tU,oAe),QU(nU,jAe),JU(XV),YU(FAe,Vke),tW(`default`,Jke),ZU({type:Qk,event:Qk,update:Qk},nw),ZU({type:$k,event:$k,update:$k},nw),ZU({type:eA,event:rA,update:eA,action:nw,refineEvent:nW,publishNonRefinedEvent:!0}),ZU({type:tA,event:rA,update:tA,action:nw,refineEvent:nW,publishNonRefinedEvent:!0}),ZU({type:nA,event:rA,update:nA,action:nw,refineEvent:nW,publishNonRefinedEvent:!0});function nW(e,t,n,r){return{eventContent:{selected:xCe(n),isFromClick:t.isFromClick||!1}}}qU(`default`,{}),qU(`dark`,mH);var rW=[],rje={registerPreprocessor:JU,registerProcessor:YU,registerPostInit:ZAe,registerPostUpdate:QAe,registerUpdateLifecycle:XU,registerAction:ZU,registerCoordinateSystem:$Ae,registerLayout:eje,registerVisual:QU,registerTransform:nje,registerLoading:tW,registerMap:tje,registerImpl:lAe,PRIORITY:WAe,ComponentModel:gF,ComponentView:ZV,SeriesModel:XF,ChartView:WI,registerComponentModel:function(e){gF.registerClass(e)},registerComponentView:function(e){ZV.registerClass(e)},registerSeriesModel:function(e){XF.registerClass(e)},registerChartView:function(e){WI.registerClass(e)},registerCustomSeries:function(e,t){fAe(e,t)},registerSubTypeDefaulter:function(e,t){gF.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){xke(e,t)}};function iW(e){AC(e)?Z(e,function(e){iW(e)}):xC(rW,e)>=0||(rW.push(e),jC(e)&&(e={install:e}),e.install(rje))}var ije=function(e){iC(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e,t){return rP(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?5e3:this.get(`progressive`))},t.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?1e4:this.get(`progressiveThreshold`))},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:``},t.type=`series.scatter`,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:AF.color.primary}},universalTransition:{divideShape:`clone`}},t}(XF),aW=4,aje=function(){function e(){}return e}(),oje=function(e){iC(t,e);function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new aje},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.beforeBrush=function(e){e&&!e.contentRetained&&this.reset()},t.prototype.buildPath=function(e,t){var n=t.points,r=t.size,i=this.symbolProxy,a=i.shape,o=e.getContext?e.getContext():e,s=o&&r[0]<aW,c=this.softClipShape,l;if(s)this._ctx=o;else{for(this._ctx=null,l=this._off;l<n.length;){var u=n[l++],d=n[l++];isNaN(u)||isNaN(d)||(!c||c.contain(u,d))&&(a.x=u-r[0]/2,a.y=d-r[1]/2,a.width=r[0],a.height=r[1],i.buildPath(e,a,!0))}this.incremental&&(this._off=l,this.notClear=!0)}},t.prototype.afterBrush=function(){var e=this.shape,t=e.points,n=e.size,r=this._ctx,i=this.softClipShape,a;if(r){for(a=this._off;a<t.length;){var o=t[a++],s=t[a++];isNaN(o)||isNaN(s)||(!i||i.contain(o,s))&&r.fillRect(o-n[0]/2,s-n[1]/2,n[0],n[1])}this.incremental&&(this._off=a,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,r=n.points,i=n.size,a=Math.max(i[0],4),o=Math.max(i[1],4),s=r.length/2-1;s>=0;s--){var c=s*2,l=r[c]-a/2,u=r[c+1]-o/2;if(e>=l&&t>=u&&e<=l+a&&t<=u+o)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,r=t.size,i=r[0],a=r[1],o=1/0,s=1/0,c=-1/0,l=-1/0,u=0;u<n.length;){var d=n[u++],f=n[u++];o=Math.min(d,o),c=Math.max(d,c),s=Math.min(f,s),l=Math.max(f,l)}e=this._rect=new Yw(o-i/2,s-a/2,c-o+i,l-s+a)}return e},t}(aO),sje=function(){function e(){this.group=new XA}return e.prototype.updateData=function(e,t){this._clear(),this._data=e;var n=this._create();n.setShape({points:e.getLayout(`points`)}),this._setCommon(n,e,t)},e.prototype.updateLayout=function(e){var t=this._data;if(t){var n=t.getLayout(`points`);this.group.eachChild(function(e){if(e.startIndex!=null){var t=(e.endIndex-e.startIndex)*2,r=e.startIndex*4*2;n=new Float32Array(n.buffer,r,t)}e.setShape(`points`,n),e.reset(),e.stopAnimation()})}},e.prototype.incrementalPrepareUpdate=function(e){this._clear()},e.prototype.incrementalUpdate=function(e,t,n,r){var i=this._newAdded[0],a=t.getLayout(`points`),o=i&&i.shape.points;if(o&&o.length<2e4){var s=o.length,c=new Float32Array(s+a.length);c.set(o),c.set(a,s),i.endIndex=e.end,i.setShape({points:c})}else{this._newAdded=[];var l=this._create();l.startIndex=e.start,l.endIndex=e.end,l.incremental=n,l.setShape({points:a}),this._setCommon(l,t,r)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new oje({cursor:`default`});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;n||={};var i=t.getVisual(`symbolSize`);e.setShape(`size`,i instanceof Array?i:[i,i]),e.softClipShape=n.clipShape||null,e.symbolProxy=dI(t.getVisual(`symbol`),0,0,0,0),e.setColor=e.symbolProxy.setColor;var a=e.shape.size[0]<aW;e.useStyle(r.getModel(`itemStyle`).getItemStyle(a?[`color`,`shadowBlur`,`shadowColor`]:[`color`]));var o=t.getVisual(`style`),s=o&&o.fill;s&&e.setColor(s);var c=Lk(e);c.seriesIndex=r.seriesIndex,e.on(`mousemove`,function(t){c.dataIndex=null;var n=e.hoverDataIdx;n>=0&&(c.dataIndex=n+(e.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),cje=function(e){iC(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).updateData(r,oW(e)),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).incrementalPrepareUpdate(r),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),Pk(t),oW(t)),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var r=e.getData();if(this.group.dirty(),this._finished){var i=dR(``).reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(oW(e))}else return{update:!0}},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,r=t.pipelineContext.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new sje:new CI,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type=`scatter`,t}(WI);function oW(e){return{clipShape:eL(e)}}var lje=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),sW=function(e){iC(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,Sk).models[0]},t.type=`cartesian2dAxis`,t}(gF);SC(sW,lje);var cW={show:!0,z:0,inverse:!1,name:``,nameLocation:`end`,nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:`...`,placeholder:`.`},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:`auto`,onZeroAxisIndex:null,lineStyle:{color:AF.color.axisLine,width:1,type:`solid`},symbol:[`none`,`none`],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:AF.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:AF.color.axisSplitLine,width:1,type:`solid`}},splitArea:{show:!1,areaStyle:{color:[AF.color.backgroundTint,AF.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:AF.color.neutral00,borderColor:AF.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:`auto`}},uje=vC({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},cW),lW=vC({boundaryGap:[0,0],axisLine:{show:`auto`},axisTick:{show:`auto`},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:AF.color.axisMinorSplitLine,width:1}}},cW),dje={category:uje,value:lW,time:vC({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},lW),log:bC({logBase:10},lW)};function uW(e,t,n,r){Z(KL,function(i,a){var o=vC(vC({},dje[a],!0),r,!0),s=function(e){iC(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+a,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=pF(this),r=n?hF(e):{};vC(e,t.getTheme().get(a+`Axis`)),vC(e,this.getDefaultOption()),e.type=dW(e),n&&mF(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=iL.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){var t=QR();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,dW)}function dW(e){return e.type||(e.data?`category`:`value`)}var fje=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return wC(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),EC(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),fW=[`x`,`y`];function pW(e){return(e.type===`interval`||e.type===`time`)&&!CP(e)}var pje=function(e){iC(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Iz,t.dimensions=fW,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(pW(e)&&pW(t)){var n=dL(e,null),r=dL(t,null),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(o&&s){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s,u=i[0]-n[0]*c,d=i[1]-r[0]*l,f=this._transform=[c,0,0,l,u,d];this._invTransform=Cw([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis(`x`).containData(e[0])&&this.getAxis(`y`).containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new Yw(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n||=[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return Nw(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t||=[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t,n){if(n||=[],this._invTransform)return Nw(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e||=0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new Yw(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(fje);function mje(e,t){var n=e.scale,r=e.model,i=Dz(n,r,r.ecModel,e,null),a=bL(n),o=bL(t)?t.intervalStub:t,s=a?n.intervalStub:n,c=n.base,l=o.getTicks(),u=o.getTicks({expandToNicedExtent:!0}),d=l.length-1,f,p,m;if(d===1)f=p=0,m=1;else if(d===2){var h=kO(l[0].value-l[1].value),g=kO(l[1].value-l[2].value);f=p=0,h===g?m=2:(m=1,h<g?f=h/g:p=g/h)}else{var _=o.getConfig().interval;f=(1-(l[0].value-u[0].value)/_)%1,p=(1-(u[d].value-l[d].value)/_)%1,m=d-+!!f-!!p}var v=i.zoomFixMM,y=v[0]||v[1],b=[i.fixMM[0]||y,i.fixMM[1]||y],x=n.getExtent(),S=s.getExtent(),C=EL(S,b),w,T,E,D,O,k;function A(e){for(var t=50,n=0;n<t&&!e();n++)E=a?E*OO(c,2):SL(E),D=CL(E)}function j(){w=zO(k-E*f,D)}function ee(){T=zO(O+E*p,D)}function te(){k=f?zO(w+E*f,D):w}function M(){O=p?zO(T-E*p,D):T}if(b[0]&&b[1]){w=C[0],T=C[1],E=(T-w)/(m+f+p);var ne=e.getExtent(),re=kO(ne[1]-ne[0]);D=HO([T,w],re,.5/m),te(),M(),nk(D)&&(E=zO(E,D))}else{var ie=C[1]-C[0];E=a?OO(JO(ie),1):XO(ie/m,2),D=CL(E),b[0]?(w=C[0],A(function(){if(te(),O=zO(k+E*m,D),ee(),T>=C[1])return!0})):b[1]?(T=C[1],A(function(){if(M(),k=zO(O-E*m,D),j(),w<=C[0])return!0})):A(function(){k=zO(MO(C[0]/E)*E,D),O=zO(jO(C[1]/E)*E,D);var e=AO((O-k)/E);if(e<=m){var t=m-e,n=void 0,r=i.incl0||a;if(r&&C[0]===0)n=[0,t];else if(r&&C[1]===0)n=[t,0];else{var o=jO(t/2);n=t%2==0?[o,o]:w+T<C[0]+C[1]?[o,o+1]:[o+1,o]}if(k=zO(k-E*n[0],D),O=zO(O+E*n[1],D),j(),ee(),w<=C[0]&&T>=C[1])return!0}})}eR(n,b,S,[w,T],x,{interval:E,intervalCount:m,intervalPrecision:D,niceExtent:[k,O]})}function mW(e,t){var n=bL(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=EL(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?gje(r,t):hje(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=CL(d)),i[0]||(s[0]=zO(jO(s[0]/u)*u,l)),i[1]||(s[1]=zO(MO(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),eR(e,i,o,s,a,c)}function hje(e,t){var n=OL(t.splitNumber,5),r=pL(e),i=t.minInterval,a=t.maxInterval,o=XO(r/n,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=CL(o),c=e.getExtent(),l=[zO(MO(c[0]/o)*o,s),zO(jO(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function gje(e,t){var n=OL(t.splitNumber,10),r=e.getExtent(),i=pL(e),a=OO(JO(i),1);n/i*a<=.5&&(a*=10);var o=CL(a),s=[zO(MO(r[0]/a)*a,o),zO(jO(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function hW(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;_je(t,n,r,i,null)}function _je(e,t,n,r,i){var a=Dz(e,t,r,n,i),o=vL(e)||yL(e);vje(e,{splitNumber:t.get(`splitNumber`),fixMinMax:a.fixMM,userInterval:t.get(`interval`),minInterval:o?t.get(`minInterval`):null,maxInterval:o?t.get(`maxInterval`):null,rawExtentResult:a}),n&&r&&$De(n,e,a,r)}function vje(e,t){yje[e.type](e,t)}var yje={interval:mW,log:mW,time:CEe,ordinal:nw},gW=[[3,1],[0,2]],bje=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=fW,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;Z(this._axesList,function(e){Cz(e,1);var t=e.scale;xL(t)&&t.setSortInfo(e.model.get(`categorySortInfo`))});function r(e){for(var t=DC(e),n=[],r=t.length-1;r>=0;r--){var i=e[+t[r]];i.__alignTo?n.push(i):hW(i)}Z(n,function(e){Sje(e,e.__alignTo)?hW(e):mje(e,e.__alignTo.scale)})}r(n.x),r(n.y);var i={};Z(n.x,function(e){_W(n,`y`,e,i)}),Z(n.y,function(e){_W(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=fF(e,t),i=this._rect=uF(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(bW(a,i),!n){var c=Tje(i,o,a,s,t),l=void 0;if(s)SW?(SW(this._axesList,i),bW(a,i)):l=CW(i.clone(),`axisLabel`,null,i,a,c,r);else{var u=Eje(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=CW(d,f,p,i,a,c,r))}wW(i,a,mR.determine,null,l,r),Z(this._coordsList,function(e){e.calcAffineTransform()})}},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}FC(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis(`x`).index===e||i[r].getAxis(`y`).index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents(`xAxis`,Sk).models[0],r=e.yAxisModel||t&&t.getReferringComponents(`yAxis`,Sk).models[0],i=e.gridModel,a=this._coordsList,o,s;return t?(o=t.coordinateSystem,xC(a,o)<0&&(o=null)):n&&r?o=this.getCartesian(n.componentIndex,r.componentIndex):n?s=this.getAxis(`x`,n.componentIndex):r?s=this.getAxis(`y`,r.componentIndex):i&&i.coordinateSystem===this&&(o=this._coordsList[0]),{cartesian:o,axis:s}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},s={x:0,y:0};if(t.eachComponent(`xAxis`,c(`x`),this),t.eachComponent(`yAxis`,c(`y`),this),!s.x||!s.y){this._axesMap={},this._axesList=[];return}this._axesMap=o,Z(o.x,function(t,n){Z(o.y,function(i,a){var o=`x`+n+`y`+a,s=new pje(o);s.master=r,s.model=e,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})}),yW(o.x),yW(o.y);function c(t){return function(n,r){if(xje(n,e)){var c=n.get(`position`);t===`x`?c!==`top`&&c!==`bottom`&&(c=a.bottom?`top`:`bottom`):c!==`left`&&c!==`right`&&(c=a.left?`right`:`left`),a[c]=!0;var l=TEe(n),u=new vDe(t,EEe(n,l,!0),[0,0],l,c);u.onBand=nR(u.scale,n),u.inverse=n.get(`inverse`),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),o[t][r]=u,s[t]++}}}},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return Z(this.getCartesians(),function(r){var i=e!=null&&e!==`auto`?r.getAxis(e):r.getBaseAxis(),a=r.getOtherAxis(i);xC(t,i)<0&&t.push(i),xC(n,a)<0&&n.push(a)}),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent(`grid`,function(i,a){var o=new e(i,t,n);o.name=`grid_`+a,o.resize(i,n,!0),i.coordinateSystem=o,r.push(o),Z(o._axesList,function(t){YDe(t,e.dimIdxMap)})}),t.eachSeries(function(e){var t,n;nTe({targetModel:e,coordSysType:Iz,coordSysProvider:r});function r(){var r=HDe(e),i=r.xAxisModel,a=r.yAxisModel;return t=i.axis,n=a.axis,i.getCoordSysModel().coordinateSystem.getCartesian(i.componentIndex,a.componentIndex)}t&&n&&(PR(t,e,Iz),PR(n,e,Iz))},this),r},e.dimensions=fW,e.dimIdxMap=FN(fW),e}();function xje(e,t){return e.getCoordSysModel()===t}function _W(e,t,n,r){n.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=n.model,s=o.get([`axisLine`,`onZero`]),c=o.get([`axisLine`,`onZeroAxisIndex`]);if(!s)return;if(c!=null)vW(s,i[c])&&(a=i[c]);else for(var l in i)if(tw(i,l)&&vW(s,i[l])&&!r[u(i[l])]){a=i[l];break}a&&(r[u(a)]=!0);function u(e){return e.dim+`_`+e.index}}function vW(e,t){if(!t)return!1;var n=t.scale,r=DEe(n,0,!1),i=t&&t.type!==`category`&&t.type!==`time`&&r!==3;return i&&e===`auto`&&kEe(t)&&(i=!1),i}function yW(e){for(var t=DC(e),n,r=[],i=t.length-1;i>=0;i--){var a=e[+t[i]];_L(a.scale)&&$L(a.model,a.type,!0)==null&&(a.model.get(`alignTicks`)&&a.model.get(`interval`)==null?r.push(a):n=a)}n||=r.pop(),n&&Z(r,function(e){e.__alignTo=n})}function Sje(e,t){return CP(e.scale)||CP(t.scale)||t.scale.getTicks().length<2}function Cje(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim===`x`?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=e.dim===`x`?function(e){return e-t}:function(e){return r-e+t}}function bW(e,t){Z(e.x,function(e){return xW(e,t.x,t.width)}),Z(e.y,function(e){return xW(e,t.y,t.height)})}function xW(e,t,n){var r=[0,n],i=+!!e.inverse;e.setExtent(r[i],r[1-i]),Cje(e,t)}var SW;function wje(e){SW=e}function CW(e,t,n,r,i,a,o){wW(r,i,mR.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=Pbe(s,function(e){return e>0})==null;return oM(r,s,!0,!0,n),bW(i,r),c;function l(e){Z(i[Hj[e]],function(t){if(QL(t.model)){var n=a.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i<r.length;i++){var o=r[i],s=t.scale.normalize(tR(t.scale,ez(o.label).labelInfo.tick));s=e===1?1-s:s,u(o.rect,e,s),u(o.rect,1-e,NaN)}var c=n.nameLayout;if(c){var s=ZL(n.nameLocation)?.5:NaN;u(c.rect,e,s),u(c.rect,1-e,NaN)}}})}function u(t,n,r){var i=e[Hj[n]]-t[Hj[n]],a=t[Uj[n]]+t[Hj[n]]-(e[Uj[n]]+e[Hj[n]]);i=d(i,1-r),a=d(a,r);var o=gW[n][0],c=gW[n][1];s[o]=OO(s[o],i),s[c]=OO(s[c],a)}function d(e,t){return e>0&&!BC(t)&&t>1e-4&&(e/=t),e}}function Tje(e,t,n,r,i){var a=new nz(Dje);return Z(n,function(n){return Z(n,function(n){if(QL(n.model)){var o=!r;n.axisBuilder=UDe(e,t,n.model,i,a,o)}})}),a}function wW(e,t,n,r,i,a){var o=n===mR.determine;Z(t,function(t){return Z(t,function(t){QL(t.model)&&(WDe(t.axisBuilder,e,t.model),t.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};c(0),c(1);function c(t){s[Hj[1-t]]=e[Uj[t]]<=a.refContainer[Uj[t]]*.5?0:1-t==1?2:1}Z(t,function(e,t){return Z(e,function(e){QL(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function Eje(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():(i==null||i===`auto`)&&(r=uF(e.get(`outerBounds`,!0)||Pz,n.refContainer));var a=e.get(`outerBoundsContain`,!0),o=a==null||a===`auto`||xC([`all`,`axisLabel`],a)<0?`all`:a,s=[RO(HC(e.get(`outerBoundsClampWidth`,!0),Fz[0]),t.width),RO(HC(e.get(`outerBoundsClampHeight`,!0),Fz[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var Dje=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;az(e,t,n,r,i,a),ZL(e.nameLocation)||Z(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&sz(e.labelInfoList,e.dirVec,r,i)})};function Oje(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return kje(n,e,t),n.seriesInvolved&&jje(n,e),n}function kje(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];Z(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=OW(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(Z(n.getAxes(),kC(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&Z(f.baseAxes,kC(p,!d||`cross`,u)),d&&Z(f.otherAxes,kC(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(f&&(f!==`auto`||r||DW(d))){s??=d.get(`triggerTooltip`),d=r?Aje(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=OW(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:DW(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=Mje(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function Aje(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};Z(s,function(e){c[e]=_C(o.get(e))}),c.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(c.type=`line`);var l=c.label||={};if(l.show??=!1,i===`cross`&&(l.show=o.get([`label`,`show`])??!0,!a)){var u=c.lineStyle=o.get(`crossStyle`);u&&bC(l,u.textStyle)}return e.model.getModel(`axisPointer`,new LM(c,n,r))}function jje(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);n&&n.model&&r!==`none`&&r!==!1&&r!==`item`&&i!==!1&&t.get([`axisPointer`,`show`],!0)!==!1&&Z(e.coordSysAxesInfo[OW(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount??=0,e.seriesDataCount+=t.getData().count())})})}function Mje(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(TW(a[r+`AxisId`],n.id)||TW(a[r+`AxisIndex`],n.componentIndex)||TW(a[r+`AxisName`],n.name))return i}}function TW(e,t){return e===`all`||AC(e)&&xC(e,t)>=0||e===t}function Nje(e){var t=EW(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=DW(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent();(o==null||o>c[1])&&(o=c[1]),o<c[0]&&(o=c[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?`hide`:`show`)}}function EW(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[OW(e)]}function Pje(e){var t=EW(e);return t&&t.axisPointerModel}function DW(e){return!!e.get([`handle`,`show`])}function OW(e){return e.type+`||`+e.id}var kW={},AW=function(e){iC(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(t,n,r,i){this.axisPointerClass&&Nje(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var a=Pje(e);a?(this._axisPointer||=new i).render(e,a,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){kW[e]=t},t.getAxisPointerClass=function(e){return e&&kW[e]},t.type=`axis`,t}(ZV),jW=yk();function Fje(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel(`splitArea`),o=a.getModel(`areaStyle`),s=o.get(`color`),c=r.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:a,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`});if(l.length){var u=s.length,d=jW(e).splitAreaColors,f=QC(),p=0;if(d)for(var m=0;m<l.length;m++){var h=d.get(l[m].tickValue);if(h!=null){p=(h+(u-1)*m)%u;break}}var g=i.toGlobalCoord(l[0].coord),_=o.getAreaStyle();s=AC(s)?s:[s];for(var m=1;m<l.length;m++){var v=i.toGlobalCoord(l[m].coord),y=void 0,b=void 0,x=void 0,S=void 0;i.isHorizontal()?(y=g,b=c.y,x=v-y,S=c.height,g=y+x):(y=c.x,b=g,x=c.width,S=v-b,g=b+S);var C=l[m-1].tickValue;C!=null&&f.set(C,p),t.add(new fO({anid:C==null?null:`area_`+C,shape:{x:y,y:b,width:x,height:S},style:bC({fill:s[p]},_),autoBatch:!0,silent:!0})),p=(p+1)%u}jW(e).splitAreaColors=f}}}function Ije(e){jW(e).splitAreaColors=null}var Lje=[`splitArea`,`splitLine`,`minorSplitLine`,`breakArea`],MW=function(e){iC(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`CartesianAxisPointer`,n}return t.prototype.render=function(t,n,r,i){this.group.removeAll();var a=this._axisGroup;this._axisGroup=new XA,this.group.add(this._axisGroup),QL(t)&&(this._axisGroup.add(t.axis.axisBuilder.group),Z(Lje,function(e){t.get([e,`show`])&&Rje[e](this,this._axisGroup,t,t.getCoordSysModel(),r)},this),i&&i.type===`changeAxisOrder`&&i.isInitSort||tM(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i))},t.prototype.remove=function(){Ije(this)},t.type=`cartesianAxis`,t}(AW),Rje={splitLine:function(e,t,n,r,i){var a=n.axis;if(!a.scale.isBlank()){var o=n.getModel(`splitLine`),s=o.getModel(`lineStyle`),c=s.get(`color`),l=o.get(`showMinLine`)!==!1,u=o.get(`showMaxLine`)!==!1;c=AC(c)?c:[c];for(var d=r.coordinateSystem.getRect(),f=a.isHorizontal(),p=0,m=a.getTicksCoords({tickModel:o,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`}),h=[],g=[],_=s.getLineStyle(),v=0;v<m.length;v++){var y=a.toGlobalCoord(m[v].coord);if(!(v===0&&!l||v===m.length-1&&!u)){var b=m[v].tickValue;f?(h[0]=y,h[1]=d.y,g[0]=y,g[1]=d.y+d.height):(h[0]=d.x,h[1]=y,g[0]=d.x+d.width,g[1]=y);var x=p++%c.length,S=new hj({anid:b==null?null:`line_`+b,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},style:bC({stroke:c[x]},_),silent:!0});Yj(S.shape,_.lineWidth),t.add(S)}}}},minorSplitLine:function(e,t,n,r,i){var a=n.axis,o=n.getModel(`minorSplitLine`).getModel(`lineStyle`),s=r.coordinateSystem.getRect(),c=a.isHorizontal(),l=a.getMinorTicksCoords();if(l.length)for(var u=[],d=[],f=o.getLineStyle(),p=0;p<l.length;p++)for(var m=0;m<l[p].length;m++){var h=a.toGlobalCoord(l[p][m].coord);c?(u[0]=h,u[1]=s.y,d[0]=h,d[1]=s.y+s.height):(u[0]=s.x,u[1]=h,d[0]=s.x+s.width,d[1]=h);var g=new hj({anid:`minor_line_`+l[p][m].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]},style:f,silent:!0});Yj(g.shape,f.lineWidth),t.add(g)}},splitArea:function(e,t,n,r,i){Fje(e,t,n,r)},breakArea:function(e,t,n,r,i){var a=QR(),o=n.axis.scale;a&&o.type!==`ordinal`&&a.rectCoordBuildBreakAxis(t,e,n,r.coordinateSystem.getRect(),i)}},NW=function(e){iC(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`xAxis`,t}(MW),zje=function(e){iC(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=NW.type,t}return t.type=`yAxis`,t}(MW),Bje=function(e){iC(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`grid`,t}return t.prototype.render=function(e,t){this.group.removeAll(),e.get(`show`)&&this.group.add(new fO({shape:e.coordinateSystem.getRect(),style:bC({fill:e.get(`backgroundColor`)},e.getItemStyle()),silent:!0,z2:-1}))},t.type=`grid`,t}(ZV),PW={offset:0};function FW(e){e.registerComponentView(Bje),e.registerComponentModel(iOe),e.registerCoordinateSystem(`cartesian2d`,bje),uW(e,`x`,sW,PW),uW(e,`y`,sW,PW),e.registerComponentView(NW),e.registerComponentView(zje),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function Vje(e){iW(FW),e.registerSeriesModel(ije),e.registerChartView(cje),e.registerLayout(dR(`scatter`))}var IW=yk();function Hje(e,t,n){IW(e)[t]=n}function Uje(e,t,n){var r=IW(e);r[t]===n&&(r[t]=null)}ZU({type:`takeGlobalCursor`,event:`globalCursorTaken`,update:`update`},nw);var Wje={axisPointer:1,tooltip:1,brush:1};function Gje(e,t,n){var r=t.getComponentByElement(e.topTarget);if(!r||r===n||Wje.hasOwnProperty(r.mainType))return!1;var i=r.coordinateSystem;if(!i||i.model===n)return!1;var a=gM(r),o=gM(n);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}function LW(e){return e}var Kje=`view`;(function(e){iC(t,e);function t(t,n,r){var i=e.call(this)||this;i.type=Kje,i.dimensions=[`x`,`y`];var a=LW(i);a.invertY=t,a.lgCt=n,a.lgGeo=r;var o=a.trans=[];return o[0]=LT(),o[1]=LT(),o[2]=LT(),a.mtRaw=_w(),a.mtRawInv=_w(),a.mtOverall=_w(),a.mtOverallInv=_w(),a.zoom=1,i}return t.prototype.getBoundingRect=function(){return zW(null,this)},t.prototype.getViewRect=function(){return Jje(null,this)},t.prototype.getRoamTransform=function(){return IT(LW(this).trans[1])},t.prototype.dataToPoint=function(e,t,n){var r=t?LW(this).mtRaw:LW(this).mtOverall;return n||=[],r?Nw(n,e,r):Tw(n,e)},t.prototype.pointToData=function(e,t,n){n||=[];var r=LW(this).mtOverallInv;return r?Nw(n,e,r):Tw(n,e)},t.prototype.convertToPixel=function(e,t,n){var r=BW(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=BW(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){var t=LW(this);return Qw(RW,t.dataRect),$w(RW,RW,t.mtOverall),fxe(RW,e[0],e[1])},t.dimensions=[`x`,`y`],t})(FT);var RW=Xw();function qje(e,t){return yw(e||[],LW(t).mtOverall)}function zW(e,t){return Qw(e||Xw(),LW(t).dataRect)}function Jje(e,t){return Qw(e||Xw(),LW(t).viewRect)}Xw();function BW(e){var t=e.seriesModel;return t?t.coordinateSystem:null}LT(),LT();function VW(e,t,n,r,i,a){e||=0;var o=UO(n[1],-n[0]);if(i!=null&&(i=UW(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),r===`all`){var s=Math.abs(UO(t[1],-t[0]));s=UW(s,[0,o]),i=a=UW(s,[i,a]),r=0}t[0]=UW(t[0],n),t[1]=UW(t[1],n);var c=HW(t,r);t[r]+=e;var l=i||0,u=n.slice();c.sign<0?u[0]=UO(u[0],l):u[1]=UO(u[1],-l),t[r]=UW(t[r],u);var d=HW(t,r);return i!=null&&(d.sign!==c.sign||d.span<i)&&(t[1-r]=UO(t[r],c.sign*i)),d=HW(t,r),a!=null&&d.span>a&&(t[1-r]=UO(t[r],d.sign*a)),t}function HW(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function UW(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}var WW=!0,GW=Math.min,KW=Math.max,Yje=Math.pow,Xje=1e4,Zje=6,Qje=6,qW=`globalPan`,$je={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},eMe={w:`ew`,e:`ew`,n:`ns`,s:`ns`,ne:`nesw`,sw:`nesw`,nw:`nwse`,se:`nwse`},JW={brushStyle:{lineWidth:2,stroke:AF.color.backgroundTint,fill:AF.color.borderTint},transformable:!0,brushMode:`single`,removeOnClick:!1},tMe=0,nMe=function(e){iC(t,e);function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new XA,n._uid=`brushController_`+tMe++,Z(lMe,function(e,t){this._handlers[t]=OC(e,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||Hje(t,qW,this._uid),Z(this._handlers,function(e,n){t.on(n,e)}),this._brushType=e.brushType,this._brushOption=vC(_C(JW),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;Uje(e,qW,this._uid),Z(this._handlers,function(t,n){e.off(n,t)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};Z(e,function(e){t[e.panelId]=_C(e)})}else this._panels=null;return this},t.prototype.mount=function(e){e||={},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=wC(e,function(e){return vC(_C(JW),e,!0)});var t=`\0-brush-index-`,n=this._covers,r=this._covers=[],i=this,a=this._creatingCover;return new BM(n,e,s,o).add(c).update(c).remove(l).execute(),this;function o(e,n){return(e.id==null?t+n:e.id)+`-`+e.brushType}function s(e,t){return o(e.__brushOption,t)}function c(t,o){var s=e[t];o!=null&&n[o]===a?r[t]=n[o]:$W(i,r[t]=o==null?XW(i,YW(i,s)):(n[o].__brushOption=s,n[o]))}function l(e){n[e]!==a&&i.group.remove(n[e])}},t.prototype.unmount=function(){return this.enableBrush(!1),rG(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(KE);function YW(e,t){var n=xG[t.brushType].createCover(e,t);return n.__brushOption=t,QW(n,t),e.group.add(n),n}function XW(e,t){var n=eG(t);return n.endCreating&&(n.endCreating(e,t),QW(t,t.__brushOption)),t}function ZW(e,t){var n=t.__brushOption;eG(t).updateCoverShape(e,t,n.range,n)}function QW(e,t){var n=t.z;n??=Xje,e.traverse(function(e){e.z=n,e.z2=n})}function $W(e,t){eG(t).updateCommon(e,t),ZW(e,t)}function eG(e){return xG[e.__brushOption.brushType]}function tG(e,t,n){var r=e._panels;if(!r)return WW;var i,a=e._transform;return Z(r,function(e){e.isTargetByCursor(t,n,a)&&(i=e)}),i}function nG(e,t){var n=e._panels;if(!n)return WW;var r=t.__brushOption.panelId;return r==null?WW:n[r]}function rG(e){var t=e._covers,n=t.length;return Z(t,function(t){e.group.remove(t)},e),t.length=0,!!n}function iG(e,t){var n=wC(e._covers,function(e){var t=e.__brushOption,n=_C(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}});e.trigger(`brush`,{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function rMe(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],i=n[0]-r[0],a=n[1]-r[1];return Yje(i*i+a*a,.5)>Zje}function aG(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function oG(e,t,n,r){var i=new XA;return i.add(new fO({name:`main`,style:uG(n),silent:!0,draggable:!0,cursor:`move`,drift:kC(pG,e,t,i,[`n`,`s`,`w`,`e`]),ondragend:kC(iG,t,{isEnd:!0})})),Z(r,function(n){i.add(new fO({name:n.join(``),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:kC(pG,e,t,i,n),ondragend:kC(iG,t,{isEnd:!0})}))}),i}function sG(e,t,n,r){var i=r.brushStyle.lineWidth||0,a=KW(i,Qje),o=n[0][0],s=n[1][0],c=o-i/2,l=s-i/2,u=n[0][1],d=n[1][1],f=u-a+i/2,p=d-a+i/2,m=u-o,h=d-s,g=m+i,_=h+i;lG(e,t,`main`,o,s,m,h),r.transformable&&(lG(e,t,`w`,c,l,a,_),lG(e,t,`e`,f,l,a,_),lG(e,t,`n`,c,l,g,a),lG(e,t,`s`,c,p,g,a),lG(e,t,`nw`,c,l,a,a),lG(e,t,`ne`,f,l,a,a),lG(e,t,`sw`,c,p,a,a),lG(e,t,`se`,f,p,a,a))}function cG(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(uG(n)),i.attr({silent:!r,cursor:r?`move`:`default`}),Z([[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]],function(n){var i=t.childOfName(n.join(``)),a=n.length===1?fG(e,n[0]):aMe(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?eMe[a]+`-resize`:null})})}function lG(e,t,n,r,i,a,o){var s=t.childOfName(n);s&&s.setShape(sMe(hG(e,t,[[r,i],[r+a,i+o]])))}function uG(e){return bC({strokeNoScale:!0},e.brushStyle)}function dG(e,t,n,r){var i=[GW(e,n),GW(t,r)],a=[KW(e,n),KW(t,r)];return[[i[0],a[0]],[i[1],a[1]]]}function iMe(e){return Zj(e.group)}function fG(e,t){return{left:`w`,right:`e`,top:`n`,bottom:`s`}[$j({w:`left`,e:`right`,n:`top`,s:`bottom`}[t],iMe(e))]}function aMe(e,t){var n=[fG(e,t[0]),fG(e,t[1])];return(n[0]===`e`||n[0]===`w`)&&n.reverse(),n.join(``)}function pG(e,t,n,r,i,a){var o=n.__brushOption,s=e.toRectRange(o.range),c=mG(t,i,a);Z(r,function(e){var t=$je[e];s[t[0]][t[1]]+=c[t[0]]}),o.range=e.fromRectRange(dG(s[0][0],s[1][0],s[0][1],s[1][1])),$W(t,n),iG(t,{isEnd:!1})}function oMe(e,t,n,r){var i=t.__brushOption.range,a=mG(e,n,r);Z(i,function(e){e[0]+=a[0],e[1]+=a[1]}),$W(e,t),iG(e,{isEnd:!1})}function mG(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),a=r.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function hG(e,t,n){var r=nG(e,t);return r&&r!==WW?r.clipPath(n,e._transform):_C(n)}function sMe(e){var t=GW(e[0][0],e[1][0]),n=GW(e[0][1],e[1][1]),r=KW(e[0][0],e[1][0]),i=KW(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}function cMe(e,t,n){if(e._brushType&&!uMe(e,t.offsetX,t.offsetY)){var r=e._zr,i=e._covers,a=tG(e,t,n);if(!e._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===WW||s.panelId===a.panelId)&&xG[s.brushType].contain(i[o],n[0],n[1]))return}a&&r.setCursorStyle(`crosshair`)}}function gG(e){var t=e.event;t.preventDefault&&t.preventDefault()}function _G(e,t,n){return e.childOfName(`main`).contain(t,n)}function vG(e,t,n,r){var i=e._creatingCover,a=e._creatingPanel,o=e._brushOption,s;if(e._track.push(n.slice()),rMe(e)||i){if(a&&!i){o.brushMode===`single`&&rG(e);var c=_C(o);c.brushType=yG(c.brushType,a),c.panelId=a===WW?null:a.panelId,i=e._creatingCover=YW(e,c),e._covers.push(i)}if(i){var l=xG[yG(e._brushType,a)],u=i.__brushOption;u.range=l.getCreatingRange(hG(e,i,e._track)),r&&(XW(e,i),l.updateCommon(e,i)),ZW(e,i),s={isEnd:r}}}else r&&o.brushMode===`single`&&o.removeOnClick&&tG(e,t,n)&&rG(e)&&(s={isEnd:r,removeOnClick:!0});return s}function yG(e,t){return e===`auto`?t.defaultBrushType:e}var lMe={mousedown:function(e){if(this._dragging)bG(this,e);else if(!e.target||!e.target.draggable){gG(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=tG(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(cMe(this,e,r),this._dragging){gG(e);var i=vG(this,e,r,!1);i&&iG(this,i)}},mouseup:function(e){bG(this,e)}};function bG(e,t){if(e._dragging){gG(t);var n=t.offsetX,r=t.offsetY,i=vG(e,t,e.group.transformCoordToLocal(n,r),!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&iG(e,i)}}function uMe(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var xG={lineX:SG(0),lineY:SG(1),rect:{createCover:function(e,t){function n(e){return e}return oG({toRectRange:n,fromRectRange:n},e,t,[[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]])},getCreatingRange:function(e){var t=aG(e);return dG(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){sG(e,t,n,r)},updateCommon:cG,contain:_G},polygon:{createCover:function(e,t){var n=new XA;return n.add(new mj({name:`main`,style:uG(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new pj({name:`main`,draggable:!0,drift:kC(oMe,e,t),ondragend:kC(iG,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:hG(e,t,n)})},updateCommon:cG,contain:_G}};function SG(e){return{createCover:function(t,n){return oG({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[[`w`],[`e`]],[[`n`],[`s`]]][e])},getCreatingRange:function(t){var n=aG(t);return[GW(n[0][e],n[1][e]),KW(n[0][e],n[1][e])]},updateCoverShape:function(t,n,r,i){var a,o=nG(t,n);if(o!==WW&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var c=[r,a];e&&c.reverse(),sG(t,n,c,i)},updateCommon:cG,contain:_G}}function dMe(e){return e=CG(e),function(t){return nM(t,e)}}function fMe(e,t){return e=CG(e),function(n){var r=t??n,i=r?e.width:e.height,a=r?e.x:e.y;return[a,a+(i||0)]}}function pMe(e,t,n){var r=CG(e);return function(e,i){return r.contain(i[0],i[1])&&!Gje(e,t,n)}}function CG(e){return Yw.create(e)}var mMe=function(){function e(){}return e.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},e.prototype.getInitialData=function(e,t){var n,r=t.getComponent(`xAxis`,this.get(`xAxisIndex`)),i=t.getComponent(`yAxis`,this.get(`yAxisIndex`)),a=r.get(`type`),o=i.get(`type`),s,c=e.layout;a===`category`?(c=`horizontal`,n=r.getOrdinalMeta(),s=!this._hasEncodeRule(`x`)):o===`category`&&(c=`vertical`,n=i.getOrdinalMeta(),s=!this._hasEncodeRule(`y`)),c||=o===`time`?`vertical`:`horizontal`,this._layout=c;var l=[`x`,`y`],u=c===`horizontal`?0:1,d=this._baseAxisDim=l[u],f=l[1-u],p=[r,i],m=p[u].get(`type`),h=p[1-u].get(`type`),g=e.data;if(g&&s){var _=[];Z(g,function(e,t){var n;AC(e)?(n=e.slice(),e.unshift(t)):AC(e.value)?(n=yC({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,_.push(n)}),e.data=_}var v=this.defaultValueDimensions,y=[{name:d,type:vN(m),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:[`base`]},{name:f,type:vN(h),dimsDef:v.slice()}];return mB(this,{coordDimensions:y,dimensionsCount:v.length+1,encodeDefaulter:kC(UM,y,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+`Axis`,this.get(e+`AxisIndex`)).axis},e.prototype.getWhiskerBoxesLayout=function(){return this._layout},e}();function wG(e,t){for(var n=t.ends.length,r=0,i=0;i<n;i++)e.contain(t.ends[i][0],t.ends[i][1])&&r++;return r?+(r<n):2}var TG=`candlestick`,EG=function(e){iC(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:`open`,defaultTooltip:!0},{name:`close`,defaultTooltip:!0},{name:`lowest`,defaultTooltip:!0},{name:`highest`,defaultTooltip:!0}],n}return t.prototype.getShadowDim=function(){return`open`},t.prototype.brushSelector=function(e,t,n){var r=t.getItemLayout(e);return r&&n.rect(r.brushRect)},t.type=`series.`+TG,t.dependencies=[`xAxis`,`yAxis`,`grid`],t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:`#eb5454`,color0:`#47b262`,borderColor:`#eb5454`,borderColor0:`#47b262`,borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:`mod`,animationEasing:`linear`,animationDuration:300},t}(XF);SC(EG,mMe,!0);var hMe=[`itemStyle`,`borderColor`],gMe=[`itemStyle`,`borderColor0`],_Me=[`itemStyle`,`borderColorDoji`],vMe=[`itemStyle`,`color`],yMe=[`itemStyle`,`color0`];function DG(e,t){return t.get(e>0?vMe:yMe)}function OG(e,t){return t.get(e===0?_Me:e>0?hMe:gMe)}var bMe={seriesType:TG,plan:VI(),performRawSeries:!0,reset:function(e,t){if(!t.isSeriesFiltered(e))return!e.pipelineContext.large&&{progress:function(e,t){for(var n;(n=e.next())!=null;){var r=t.getItemModel(n),i=t.getItemLayout(n).sign,a=r.getItemStyle();a.fill=DG(i,r),a.stroke=OG(i,r)||a.fill,yC(t.ensureUniqueItemVisual(n,`style`),a)}}}}},xMe=[`color`,`borderColor`],SMe=function(e){iC(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){dM(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,r=this.group,i=t.getLayout(`isSimpleBox`),a=e.get(`clip`,!0),o=e.coordinateSystem,s=o.getArea&&o.getArea(),c=a&&QI(o,!1,e);this._data||r.removeAll();var l=jG(e);t.diff(n).add(function(n){if(t.hasValue(n)){var o=t.getItemLayout(n),u=a?wG(s,o):0;if(u===2)return;var d=kG(o,n,l,!0);Pj(d,{shape:{points:o.ends}},e,n),$I(u===1,d,c),AG(d,t,n,i),r.add(d),t.setItemGraphicEl(n,d)}}).update(function(o,u){var d=n.getItemGraphicEl(u);if(!t.hasValue(o))r.remove(d);else{var f=t.getItemLayout(o),p=a?wG(s,f):0;p===2?r.remove(d):(d?(Nj(d,{shape:{points:f.ends}},e,o),zj(d)):d=kG(f,o,l),AG(d,t,o,i),$I(p===1,d,c),r.add(d),t.setItemGraphicEl(o,d))}}).remove(function(e){var t=n.getItemGraphicEl(e);t&&r.remove(t)}).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),NG(e,this.group);var t=e.get(`clip`,!0)?QI(e.coordinateSystem,!1,e):null;$I(!!t,this.group,t)},t.prototype._incrementalRenderNormal=function(e,t){for(var n=t.getData(),r=n.getLayout(`isSimpleBox`),i=jG(t),a;(a=e.next())!=null;){var o=kG(n.getItemLayout(a),a,i);AG(o,n,a,r),o.incremental=Pk(t),this.group.add(o),this._progressiveEls.push(o)}},t.prototype._incrementalRenderLarge=function(e,t){NG(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),$I(!1,this.group,null),this._data=null},t.type=TG,t}(WI),CMe=function(){function e(){}return e}(),wMe=function(e){iC(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`normalCandlestickBox`,n}return t.prototype.getDefaultShape=function(){return new CMe},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(aO);function kG(e,t,n,r){var i=e.ends;return new wMe({shape:{points:r?TMe(i,n,e):i},z2:100})}function AG(e,t,n,r){var i=t.getItemModel(n);e.useStyle(t.getItemVisual(n,`style`)),e.style.strokeNoScale=!0;var a=i.getShallow(`cursor`);a&&e.attr(`cursor`,a),e.__simpleBox=r,AA(e,i);var o=t.getItemLayout(n).sign;Z(e.states,function(e,t){var n=i.getModel(t),r=DG(o,n),a=OG(o,n)||r,s=e.style||={};r&&(s.fill=r),a&&(s.stroke=a)});var s=i.getModel(`emphasis`);OA(e,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))}function TMe(e,t,n){return wC(e,function(e){return e=e.slice(),e[t]=n.initBaseline,e})}function jG(e){return+(e.getWhiskerBoxesLayout()===`horizontal`)}var EMe=function(){function e(){}return e}(),MG=function(e){iC(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeCandlestickBox`,n}return t.prototype.getDefaultShape=function(){return new EMe},t.prototype.buildPath=function(e,t){for(var n=t.points,r=0;r<n.length;)if(this.__sign===n[r++]){var i=n[r++];e.moveTo(i,n[r++]),e.lineTo(i,n[r++])}else r+=3},t}(aO);function NG(e,t,n,r){var i=e.getData(),a=i.getLayout(`largePoints`),o=new MG({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new MG({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var c=new MG({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});t.add(c),PG(1,o,e,i),PG(-1,s,e,i),PG(0,c,e,i),r&&(o.incremental=Pk(e),s.incremental=Pk(e),c.incremental=Pk(e)),n&&n.push(o,s,c)}function PG(e,t,n,r){var i=OG(e,n)||DG(e,n),a=n.getModel(`itemStyle`).getItemStyle(xMe);t.useStyle(a),t.style.fill=null,t.style.stroke=i;var o=n.get(`cursor`);o&&t.attr(`cursor`,o)}function DMe(e){e&&AC(e.series)&&Z(e.series,function(e){FC(e)&&e.type===`k`&&(e.type=TG)})}var OMe=Mk(),kMe={seriesType:TG,plan:VI(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=AMe(e,n),i=e.getWhiskerBoxesLayout()===`horizontal`?0:1,a=1-i,o=[`x`,`y`],s=n.getDimensionIndex(n.mapDimension(o[i])),c=wC(n.mapDimensionsAll(o[a]),n.getDimensionIndex,n),l=c[0],u=c[1],d=c[2],f=c[3];return n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||c.length<4?void 0:{progress:e.pipelineContext.large?m:p};function p(e,n){for(var o,c=n.getStore();(o=e.next())!=null;){var p=c.get(s,o),m=c.get(l,o),h=c.get(u,o),g=c.get(d,o),_=c.get(f,o),v=DO(m,h),y=OO(m,h),b=E(v,p),x=E(y,p),S=E(g,p),C=E(_,p),w=[];D(w,x,0),D(w,b,1),w.push(k(C),k(x),k(S),k(b));var T=!!n.getItemModel(o).get([`itemStyle`,`borderColorDoji`]);n.setItemLayout(o,{sign:FG(c,o,m,h,u,T),initBaseline:m>h?x[a]:b[a],ends:w,brushRect:O(g,_,p)})}function E(e,n){var r=[];return r[i]=n,r[a]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(r)}function D(e,t,n){var a=t.slice(),o=t.slice();a[i]=Xj(a[i]+r/2,1,!1),o[i]=Xj(o[i]-r/2,1,!0),n?e.push(a,o):e.push(o,a)}function O(e,t,n){var o=E(e,n),s=E(t,n);return o[i]-=r/2,s[i]-=r/2,{x:o[0],y:o[1],width:a?r:s[0]-o[0],height:a?s[1]-o[1]:r}}function k(e){return e[i]=Xj(e[i],1),e}}function m(n,r){for(var o=AI(n.count*4),c=0,p,m=[],h=[],g,_=r.getStore(),v=!!e.get([`itemStyle`,`borderColorDoji`]);(g=n.next())!=null;){var y=_.get(s,g),b=_.get(l,g),x=_.get(u,g),S=_.get(d,g),C=_.get(f,g);isNaN(y)||isNaN(S)||isNaN(C)?(o[c++]=NaN,c+=3):(o[c++]=FG(_,g,b,x,u,v),m[i]=y,m[a]=S,p=t.dataToPoint(m,null,h),o[c++]=p?p[0]:NaN,o[c++]=p?p[1]:NaN,m[a]=C,p=t.dataToPoint(m,null,h),o[c++]=p?p[1]:NaN)}r.setLayout(`largePoints`,o)}}};function FG(e,t,n,r,i,a){return n>r?-1:n<r?1:a?0:t>0?e.get(i,t-1)<=r?1:-1:1}function AMe(e,t){var n=RR(e.getBaseAxis(),{fromStat:{key:Az(TG)},min:1}).w,r=LO(HC(e.get(`barMaxWidth`),n),n),i=LO(HC(e.get(`barMinWidth`),1),n),a=e.get(`barWidth`);return a==null?OO(DO(n/2,r),i):LO(a,n)}function jMe(e){OMe(e,function(){var t=Az(TG);IR(e,{key:t,seriesType:TG,getMetrics:Mz}),Tz(t,kz(t))})}function MMe(e){e.registerChartView(SMe),e.registerSeriesModel(EG),e.registerPreprocessor(DMe),e.registerVisual(bMe),e.registerLayout(kMe),jMe(e)}var NMe=[`itemStyle`,`borderWidth`],IG=[{xy:`x`,wh:`width`,index:0,posDesc:[`left`,`right`]},{xy:`y`,wh:`height`,index:1,posDesc:[`top`,`bottom`]}],LG=new ZA,PMe=function(e){iC(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Nz,t}return t.prototype.render=function(e,t,n){var r=this.group,i=e.getData(),a=this._data,o=e.coordinateSystem,s=o.getBaseAxis().isHorizontal(),c=o.master.getRect(),l={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:o,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:s,valueDim:IG[+s],categoryDim:IG[1-s]};i.diff(a).add(function(e){if(i.hasValue(e)){var t=RG(i,e,GG(i,e),l),n=KG(i,l,t);i.setItemGraphicEl(e,n),r.add(n),ZG(n,l,t)}}).update(function(e,t){var n=a.getItemGraphicEl(t);if(!i.hasValue(e))r.remove(n);else{var o=RG(i,e,GG(i,e),l),s=JG(i,o);n&&s!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(e,null),n=null),n?VMe(n,l,o):n=KG(i,l,o,!0),i.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=o,r.add(n),ZG(n,l,o)}}).remove(function(e){var t=a.getItemGraphicEl(e);t&&qG(a,e,t.__pictorialSymbolMeta.animationModel,t)}).execute();var u=e.get(`clip`,!0)?QI(e.coordinateSystem,!1,e):null;return u?r.setClipPath(u):r.removeClipPath(),this._data=i,this.group},t.prototype.remove=function(e,t){var n=this.group,r=this._data;e.get(`animation`)?r&&r.eachItemGraphicEl(function(t){qG(r,Lk(t).dataIndex,e,t)}):n.removeAll()},t.type=Nz,t}(WI);function RG(e,t,n,r){var i=e.getItemLayout(t),a=n.get(`symbolRepeat`),o=n.get(`symbolClip`),s=n.get(`symbolPosition`)||`start`,c=(n.get(`symbolRotate`)||0)*Math.PI/180||0,l=n.get(`symbolPatternSize`)||2,u=n.isAnimationEnabled(),d={dataIndex:t,layout:i,itemModel:n,symbolType:e.getItemVisual(t,`symbol`)||`circle`,style:e.getItemVisual(t,`style`),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:n.get(`symbolRepeatDirection`),symbolPatternSize:l,rotation:c,animationModel:u?n:null,hoverScale:u&&n.get([`emphasis`,`scale`]),z2:n.getShallow(`z`,!0)||0};FMe(n,a,i,r,d),IMe(e,t,i,a,o,d.boundingLength,d.pxSign,l,r,d),LMe(n,d.symbolScale,c,r,d);var f=d.symbolSize;return RMe(n,f,i,a,o,pI(n.get(`symbolOffset`),f),s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function FMe(e,t,n,r,i){var a=r.valueDim,o=e.get(`symbolBoundingData`),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),c=s.toGlobalCoord(s.dataToCoord(0)),l=1-(n[a.wh]<=0),u;if(AC(o)){var d=[zG(s,o[0])-c,zG(s,o[1])-c];d[1]<d[0]&&d.reverse(),u=d[l]}else u=o==null?t?r.coordSysExtent[a.index][l]-c:n[a.wh]:zG(s,o)-c;i.boundingLength=u,t&&(i.repeatCutLength=n[a.wh]);var f=a.xy===`x`,p=s.inverse;i.pxSign=f&&!p||!f&&p?u>=0?1:-1:u>0?1:-1}function zG(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function IMe(e,t,n,r,i,a,o,s,c,l){var u=c.valueDim,d=c.categoryDim,f=Math.abs(n[d.wh]),p=e.getItemVisual(t,`symbolSize`),m=AC(p)?p.slice():p==null?[`100%`,`100%`]:[p,p];m[d.index]=LO(m[d.index],f),m[u.index]=LO(m[u.index],r?f:Math.abs(a)),l.symbolSize=m;var h=l.symbolScale=[m[0]/s,m[1]/s];h[u.index]*=(c.isHorizontal?-1:1)*o}function LMe(e,t,n,r,i){var a=e.get(NMe)||0;a&&(LG.attr({scaleX:t[0],scaleY:t[1],rotation:n}),LG.updateTransform(),a/=LG.getLineScale(),a*=t[r.valueDim.index]),i.valueLineWidth=a||0}function RMe(e,t,n,r,i,a,o,s,c,l,u,d){var f=u.categoryDim,p=u.valueDim,m=d.pxSign,h=Math.max(t[p.index]+s,0),g=h;if(r){var _=Math.abs(c),v=VC(e.get(`symbolMargin`),`15%`)+``,y=!1;v.lastIndexOf(`!`)===v.length-1&&(y=!0,v=v.slice(0,v.length-1));var b=LO(v,t[p.index]),x=Math.max(h+b*2,0),S=y?0:b*2,C=QO(r),w=C?r:QG((_+S)/x);b=(_-w*h)/2/(y?w:Math.max(w-1,1)),x=h+b*2,S=y?0:b*2,!C&&r!==`fixed`&&(w=l?QG((Math.abs(l)+S)/x):0),g=w*x-S,d.repeatTimes=w,d.symbolMargin=b}var T=g/2*m,E=d.pathPosition=[];E[f.index]=n[f.wh]/2,E[p.index]=o===`start`?T:o===`end`?c-T:c/2,a&&(E[0]+=a[0],E[1]+=a[1]);var D=d.bundlePosition=[];D[f.index]=n[f.xy],D[p.index]=n[p.xy];var O=d.barRectShape=yC({},n);O[p.wh]=m*Math.max(Math.abs(n[p.wh]),Math.abs(E[p.index]+T)),O[f.wh]=n[f.wh];var k=d.clipShape={};k[f.xy]=-n[f.xy],k[f.wh]=u.ecSize[f.wh],k[p.xy]=0,k[p.wh]=n[p.wh]}function BG(e){var t=e.symbolPatternSize,n=dI(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),n.type!==`image`&&n.setStyle({strokeNoScale:!0}),n}function VG(e,t,n,r){var i=e.__pictorialBundle,a=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,c=t.valueDim,l=n.repeatTimes||0,u=0,d=a[t.valueDim.index]+o+n.symbolMargin*2;for(YG(e,function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=l,u<l?XG(e,null,m(u),n,r):XG(e,null,{scaleX:0,scaleY:0},n,r,function(){i.remove(e)}),u++});u<l;u++){var f=BG(n);f.__pictorialAnimationIndex=u,f.__pictorialRepeatTimes=l,i.add(f);var p=m(u);XG(f,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,r)}function m(e){var t=s.slice(),r=n.pxSign,i=e;return(n.symbolRepeatDirection===`start`?r>0:r<0)&&(i=l-1-e),t[c.index]=d*(i-l/2+.5)+s[c.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function HG(e,t,n,r){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?XG(a,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(a=e.__pictorialMainPath=BG(n),i.add(a),XG(a,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function UG(e,t,n){var r=yC({},t.barRectShape),i=e.__pictorialBarRect;i?XG(i,null,{shape:r},t,n):(i=e.__pictorialBarRect=new fO({z2:2,shape:r,silent:!0,style:{stroke:`transparent`,fill:`transparent`,lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function WG(e,t,n,r){if(n.symbolClip){var i=e.__pictorialClipPath,a=yC({},n.clipShape),o=t.valueDim,s=n.animationModel,c=n.dataIndex;if(i)Nj(i,{shape:a},s,c);else{a[o.wh]=0,i=new fO({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var l={};l[o.wh]=n.clipShape[o.wh],Bj[r?`updateProps`:`initProps`](i,{shape:l},s,c)}}}function GG(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=zMe,n.isAnimationEnabled=BMe,n}function zMe(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function BMe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow(`animation`)}function KG(e,t,n,r){var i=new XA,a=new XA;return i.add(a),i.__pictorialBundle=a,a.x=n.bundlePosition[0],a.y=n.bundlePosition[1],n.symbolRepeat?VG(i,t,n):HG(i,t,n),UG(i,n,r),WG(i,t,n,r),i.__pictorialShapeStr=JG(e,n),i.__pictorialSymbolMeta=n,i}function VMe(e,t,n){var r=n.animationModel,i=n.dataIndex,a=e.__pictorialBundle;Nj(a,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?VG(e,t,n,!0):HG(e,t,n,!0),UG(e,n,!0),WG(e,t,n,!0)}function qG(e,t,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var a=[];YG(r,function(e){a.push(e)}),r.__pictorialMainPath&&a.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),Z(a,function(e){Ij(e,{scaleX:0,scaleY:0},n,t,function(){r.parent&&r.parent.remove(r)})}),e.setItemGraphicEl(t,null)}function JG(e,t){return[e.getItemVisual(t.dataIndex,`symbol`)||`none`,!!t.symbolRepeat,!!t.symbolClip].join(`:`)}function YG(e,t,n){Z(e.__pictorialBundle.children(),function(r){r!==e.__pictorialBarRect&&t.call(n,r)})}function XG(e,t,n,r,i,a){t&&e.attr(t),r.symbolClip&&!i?n&&e.attr(n):n&&Bj[i?`updateProps`:`initProps`](e,n,r.animationModel,r.dataIndex,a)}function ZG(e,t,n){var r=n.dataIndex,i=n.itemModel,a=i.getModel(`emphasis`),o=a.getModel(`itemStyle`).getItemStyle(),s=i.getModel([`blur`,`itemStyle`]).getItemStyle(),c=i.getModel([`select`,`itemStyle`]).getItemStyle(),l=i.getShallow(`cursor`),u=a.get(`focus`),d=a.get(`blurScope`),f=a.get(`scale`);YG(e,function(e){if(e instanceof sO){var t=e.style;e.useStyle(yC({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var r=e.ensureState(`emphasis`);r.style=o,f&&(r.scaleX=e.scaleX*1.1,r.scaleY=e.scaleY*1.1),e.ensureState(`blur`).style=s,e.ensureState(`select`).style=c,l&&(e.cursor=l),e.z2=n.z2});var p=t.valueDim.posDesc[+(n.boundingLength>0)],m=e.__pictorialBarRect;m.ignoreClip=!0,SM(m,CM(i),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:hI(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),OA(e,u,d,a.get(`disabled`))}function QG(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var HMe=function(e){iC(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol=`roundRect`,n}return t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type=`series.`+Nz,t.dependencies=[`grid`],t.defaultOption=aP(Hz.defaultOption,{symbol:`circle`,symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:`end`,symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:`-100%`,clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:AF.color.primary}}}),t}(Hz);function UMe(e){e.registerChartView(PMe),e.registerSeriesModel(HMe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Rz(Nz)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,zz(Nz)),Vz(e)}var $G=yk(),eK=_C,tK=OC,WMe=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==i||this._lastStatus!==a){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`)o&&o.hide(),s&&s.hide();else{o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new XA,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=kC(nK,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}oK(o,t,!0),this._renderHandle(i)}}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&RR(r).w>o)return!0;if(a){var s=EW(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=$G(e).pointerEl=new Bj[i.type](eK(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=$G(e).labelEl=new gO(eK(t.label));e.add(i),iK(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=$G(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=$G(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),iK(i,r))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`)r&&n.remove(r),this._handle=null;else{var o;this._handle||(o=!0,r=this._handle=rM(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){BB(e.event)},onmousedown:tK(this._onHandleDragMove,this,0,0),drift:tK(this._onHandleDragMove,this),ondragend:tK(this._onHandleDragEnd,this)}),n.add(r)),oK(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);AC(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,qz(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}}},e.prototype._moveHandleToValue=function(e,t){nK(this._axisPointerModel,!t&&this._moveAnimation,this._handle,aK(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(aK(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(aK(r)),$G(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),Jz(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function nK(e,t,n,r){rK($G(n).lastProp,r)||($G(n).lastProp=r,t?Nj(n,r,e):(n.stopAnimation(),n.attr(r)))}function rK(e,t){if(FC(e)&&FC(t)){var n=!0;return Z(t,function(t,r){n&&=rK(e[r],t)}),!!n}return e===t}function iK(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function aK(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function oK(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function GMe(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function KMe(e,t,n,r,i){var a=sK(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=$P(o.get(`padding`)||0),c=o.getFont(),l=uT(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),qMe(u,d,f,r);var h=o.get(`backgroundColor`);h&&h!==`auto`||(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:wM(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function qMe(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function sK(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:YL(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};Z(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),MC(o)?a=o.replace(`{value}`,a):jC(o)&&(a=o(s))}return a}function cK(e,t,n){var r=_w();return Sw(r,r,n.rotation),xw(r,r,n.position),Qj([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function JMe(e,t,n,r,i,a){var o=cz.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),KMe(t,r,i,a,{position:cK(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function YMe(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function XMe(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function ZMe(e,t,n){return RR(e,{fromStat:{sers:wC(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function QMe(e,t,n){return[OO(DO(t[0],t[1]),e-n/2),DO(e+n/2,OO(t[0],t[1]))]}var $Me=function(e){iC(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=a.getGlobalExtent(),l=lK(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=GMe(r),f=eNe[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}JMe(t,e,_z(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=_z(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=cK(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=lK(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=DO(o[1],l[c]),l[c]=OO(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(WMe);function lK(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var eNe={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:YMe([t,r[0]],[t,r[1]],uK(e))}},shadow:function(e,t,n,r,i,a){var o=ZMe(e,i,a),s=r[1]-r[0],c=QMe(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:XMe([l,r[0]],[u-l,s],uK(e))}}};function uK(e){return e.dim===`x`?0:1}var tNe=function(e){iC(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`axisPointer`,t.defaultOption={show:`auto`,z:50,type:`line`,snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:AF.color.border,width:1,type:`dashed`},shadowStyle:{color:AF.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:AF.color.neutral00,padding:[5,7,5,7],backgroundColor:AF.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:`M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z`,size:45,margin:50,color:AF.color.accent40,throttle:40}},t}(gF),dK=yk(),nNe=Z;function fK(e,t,n){if(!rw.node){var r=t.getZr();dK(r).records||(dK(r).records={}),rNe(r,t);var i=dK(r).records[e]||(dK(r).records[e]={});i.handler=n}}function rNe(e,t){if(dK(e).initialized)return;dK(e).initialized=!0,n(`click`,kC(pK,`click`)),n(`mousemove`,kC(pK,`mousemove`)),n(`mousewheel`,kC(pK,`mousewheel`)),n(`globalout`,aNe);function n(n,r){e.on(n,function(n){var i=oNe(t);nNe(dK(e).records,function(e){e&&r(e,n,i.dispatchAction)}),iNe(i.pendings,t)})}}function iNe(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function aNe(e,t,n){e.handler(`leave`,null,n)}function pK(e,t,n,r){t.handler(e,n,r)}function oNe(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function mK(e,t){if(!rw.node){var n=t.getZr();(dK(n).records||{})[e]&&(dK(n).records[e]=null)}}var sNe=function(e){iC(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click|mousewheel`;fK(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){mK(`axisPointer`,t)},t.prototype.dispose=function(e,t){mK(`axisPointer`,t)},t.type=`axisPointer`,t}(ZV);function hK(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=vk(a,e);if(o==null||o<0||AC(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint){if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(wC(c.dimensions,function(e){return a.mapDimension(e)}),o))||[]}else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}var gK=yk();function cNe(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||OC(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){yK(i)&&(i=hK({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=yK(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||yK(i),f={},p={},m={list:[],map:{}},h={showPointer:kC(uNe,p),showTooltip:kC(dNe,m)};Z(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);Z(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=hNe(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&_K(e,o,h,!1,f)}})});var g={};return Z(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&Z(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,vK(t),vK(e)))),g[e.key]=a}})}),Z(g,function(e,t){_K(u[t],e,h,!0,f)}),fNe(p,u,f),pNe(m,i,e,o),mNe(u,o,n),f}}function _K(e,t,n,r,i){var a=e.axis;if(!a.scale.isBlank()&&a.containData(t)){if(!e.involveSeries)n.showPointer(e,t);else{var o=lNe(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&yC(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}}function lNe(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return Z(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.indicesOfNearest(r,l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(nk(u)){var p=e-u,m=Math.abs(p);m<=o&&((m<o||p>=0&&s<0)&&(o=m,s=p,i=u,a.length=0),Z(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function uNe(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function dNe(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(t.triggerTooltip&&i.length){var c=t.coordSys.model,l=OW(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function fNe(e,t,n){var r=n.axesInfo=[];Z(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function pNe(e,t,n,r){if(yK(t)||!e.list.length)r({type:`hideTip`});else{var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}}function mNe(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=gK(r)[i]||{},o=gK(r)[i]={};Z(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&Z(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}Z(a,function(e,t){!o[t]&&c.push(l(e))}),Z(o,function(e,t){!a[t]&&s.push(l(e))}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function hNe(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function vK(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function yK(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function bK(e){AW.registerAxisPointerClass(`CartesianAxisPointer`,$Me),e.registerComponentModel(tNe),e.registerComponentView(sNe),e.registerPreprocessor(function(e){if(e){e.axisPointer&&e.axisPointer.length!==0||(e.axisPointer={});var t=e.axisPointer.link;t&&!AC(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=Oje(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},cNe)}function gNe(e){iW(FW),iW(bK)}var xK=[`x`,`y`,`radius`,`angle`,`single`],_Ne=yk(),vNe=[`cartesian2d`,`polar`,`singleAxis`];function yNe(e){return xC(vNe,e.get(`coordinateSystem`))>=0}function SK(e){return e+`Axis`}function bNe(e,t){var n=QC(),r=[],i=QC();e.eachComponent({mainType:`dataZoom`,query:t},function(e){i.get(e.uid)||s(e)});var a;do a=!1,e.eachComponent(`dataZoom`,o);while(a);function o(e){!i.get(e.uid)&&c(e)&&(s(e),a=!0)}function s(e){i.set(e.uid,!0),r.push(e),l(e)}function c(e){var t=!1;return e.eachTargetAxis(function(e,r){var i=n.get(e);i&&i[r]&&(t=!0)}),t}function l(e){e.eachTargetAxis(function(e,t){(n.get(e)||n.set(e,[]))[t]=!0})}return r}function CK(e){var t=_Ne(wR(e));return t.axisProxyMap||=QC()}function wK(e){if(e)return CK(e.ecModel).get(e.uid)}function xNe(e,t){CK(e.ecModel).set(e.uid,t)}function SNe(e,t){var n=t.getAxisModel().axis.__alignTo;return n&&e.getAxisProxy(n.dim,n.model.componentIndex)?wK(n.model):null}var TK=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),CNe=function(e){iC(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=[`percent`,`percent`],n}return t.prototype.init=function(e,t,n){var r=EK(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=EK(e);vC(this.option,e,!0),vC(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;Z([[`start`,`startValue`],[`end`,`endValue`]],function(e,r){this._rangePropMode[r]===`value`&&(t[e[0]]=n[e[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get(`orient`,!0),t=this._targetAxisInfoMap=QC();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||`horizontal`,this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each(function(e){e.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return Z(xK,function(n){var r=this.getReferringComponents(SK(n),JSe);if(r.specified){t=!0;var i=new TK;Z(r.models,function(e){i.add(e.componentIndex)}),e.set(n,i)}},this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i=t===`vertical`?`y`:`x`,a=n.findComponents({mainType:i+`Axis`});o(a,i)}if(r){var a=n.findComponents({mainType:`singleAxis`,filter:function(e){return e.get(`orient`,!0)===t}});o(a,`single`)}function o(t,n){var i=t[0];if(i){var a=new TK;if(a.add(i.componentIndex),e.set(n,a),r=!1,n===`x`||n===`y`){var o=i.getReferringComponents(`grid`,Sk).models[0];o&&Z(t,function(e){i.componentIndex!==e.componentIndex&&o===e.getReferringComponents(`grid`,Sk).models[0]&&a.add(e.componentIndex)})}}}r&&Z(xK,function(t){if(r){var i=n.findComponents({mainType:SK(t),filter:function(e){return e.get(`type`,!0)===`category`}});if(i[0]){var a=new TK;a.add(i[0].componentIndex),e.set(t,a),r=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){!e&&(e=t)},this),e===`y`?`vertical`:`horizontal`},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty(`throttle`)&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get(`rangeMode`);Z([[`start`,`startValue`],[`end`,`endValue`]],function(r,i){var a=e[r[0]]!=null,o=e[r[1]]!=null;a&&!o?t[i]=`percent`:!a&&o?t[i]=`value`:n?t[i]=n[i]:a&&(t[i]=`percent`)})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(t,n){e??=this.ecModel.getComponent(SK(t),n)},this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(n,r){Z(n.indexList,function(n){e.call(t,r,n)})})},t.prototype.getAxisProxy=function(e,t){return wK(this.getAxisModel(e,t))},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(SK(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;Z([[`start`,`startValue`],[`end`,`endValue`]],function(r){(e[r[0]]!=null||e[r[1]]!=null)&&(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;Z([`start`,`startValue`,`end`,`endValue`],function(n){t[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getWindow().percent},t.prototype.getValueRange=function(e,t){if(e==null&&t==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getWindow().value}else return this.getAxisProxy(e,t).getWindow().value},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return wK(e);for(var t,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],a=this._targetAxisInfoMap.get(i),o=0;o<a.indexList.length;o++){var s=this.getAxisProxy(i,a.indexList[o]);if(s.hostedBy(this))return s;t||=s}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type=`dataZoom`,t.dependencies=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`series`,`toolbox`],t.defaultOption={z:4,filterMode:`filter`,start:0,end:100},t}(gF);function EK(e){var t={};return Z([`start`,`end`,`startValue`,`endValue`,`throttle`],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var wNe=function(e){iC(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.select`,t}(CNe),TNe=function(e){iC(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.select`,t}(function(e){iC(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type=`dataZoom`,t}(ZV)),ENe=function(){function e(e,t,n,r){this._dimName=e,this._axisIndex=t,this.ecModel=r,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getWindow=function(){return _C(this._window)},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(yNe(t)){var n=SK(this._dimName),r=t.getReferringComponents(n,Sk).models[0];r&&this._axisIndex===r.componentIndex&&e.push(t)}},this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+`Axis`,this._axisIndex)},e.prototype.getMinMaxSpan=function(){return _C(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t=this._extent,n=this.getAxisModel().axis,r=n.scale,i=this._dataZoomModel.getRangePropMode(),a=[0,100],o=[],s=[],c,l=[!1,!1];Z([`start`,`end`],function(n,u){var d=e[n],f=e[n+`Value`];i[u]===`percent`?(d??=a[u],f=IO(d,a,t),l[u]=!0):(c=!0,f==null?f=t[u]:(f=r.parse(f),r.sanitize&&(f=r.sanitize(f,t))),d=IO(f,t,a)),s[u]=f==null||isNaN(f)?t[u]:f,o[u]=d==null||isNaN(d)?a[u]:d}),BO(s),BO(o);var u=this._minMaxSpan;c?d(s,o,t,a,!1):d(o,s,a,t,!0);function d(e,t,n,r,i){var a=i?`Span`:`ValueSpan`;VW(0,e,n,`all`,u[`min`+a],u[`max`+a]);for(var o=0;o<2;o++)t[o]=IO(e[o],n,r,!0),i&&(t[o]=t[o],l[o]=!0);jk(t)}var f=xL(r)||yL(r),p=n.getExtent(),m=kO(p[1]-p[0]),h=f?0:HO(s,m,.5);Z([[0,MO],[1,jO]],function(e){var n=e[0],r=e[1];l[n]&&isFinite(h)&&(s[n]=zO(s[n],h),s[n]=DO(t[1],OO(t[0],s[n])),o[n]===a[n]&&(s[n]=t[n],f&&(s[n]=r(s[n]))))}),jk(s);var g=[IO(s[0],t,a,!0),IO(s[1],t,a,!0)];return jk(g),{value:s,percent:o,percentInverted:g,valuePrecision:h}},e.prototype.reset=function(e,t){if(this.hostedBy(e)){var n=this.getAxisModel().axis;Cz(n,2);var r=n.scale.rawExtentInfo;this._extent=r.makeNoZoom(),this._updateMinMaxSpan();var i=e.settledOption;t&&(i=bC({start:t[0],end:t[1]},i));var a=this._window=this.calculateDataWindow(i),o=a.percent,s=a.value;o[0]!==0&&r.setZoomMM(0,s[0]),o[1]!==100&&r.setZoomMM(1,s[1])}},e.prototype.filterData=function(e,t){if(!this.hostedBy(e))return;var n=this._dimName,r=this.getTargetSeriesModels(),i=e.get(`filterMode`),a=this._window.value;if(i===`none`)return;Z(r,function(e){var t=e.getData(),r=t.mapDimensionsAll(n);if(r.length){if(i===`weakFilter`){var s=t.getStore(),c=wC(r,function(e){return t.getDimensionIndex(e)},t);t.filterSelf(function(e){for(var t,n,i,o=0;o<r.length;o++){var l=s.get(c[o],e),u=!isNaN(l),d=l<a[0],f=l>a[1];if(u&&!d&&!f)return!0;u&&(i=!0),d&&(t=!0),f&&(n=!0)}return i&&t&&n})}else Z(r,function(n){if(i===`empty`)e.setData(t=t.map(n,function(e){return o(e)?e:NaN}));else{var r={};r[n]=a,t.selectRange(r)}});Z(r,function(e){t.setApproximateExtent(a,e)})}});function o(e){return e>=a[0]&&e<=a[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._extent;Z([`min`,`max`],function(r){var i=t.get(r+`Span`),a=t.get(r+`ValueSpan`);a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a==null?i!=null&&(a=IO(i,[0,100],n,!0)-n[0]):i=IO(n[0]+a,n,[0,100],!0),e[r+`Span`]=i,e[r+`ValueSpan`]=a},this)},e}(),DNe={dirtyOnOverallProgress:!0,getTargetSeries:function(e){function t(t){e.eachComponent(`dataZoom`,function(n){n.eachTargetAxis(function(r,i){t(r,i,e.getComponent(SK(r),i),n)})})}var n=[];t(function(t,r,i,a){if(!wK(i)){var o=new ENe(t,r,a,e);n.push(o),xNe(i,o)}});var r=QC();return Z(n,function(e){Z(e.getTargetSeriesModels(),function(e){r.set(e.uid,e)})}),r},overallReset:function(e,t){e.eachComponent(`dataZoom`,function(e){var n=[];e.eachTargetAxis(function(t,r){var i=e.getAxisProxy(t,r),a=SNe(e,i);a?n.push([i,a]):i.reset(e,null)}),Z(n,function(t){t[0].reset(e,t[1].getWindow().percentInverted)}),e.eachTargetAxis(function(n,r){e.getAxisProxy(n,r).filterData(e,t)})}),e.eachComponent(`dataZoom`,function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getWindow(),r=n.percent,i=n.value;e.setCalculatedRange({start:r[0],end:r[1],startValue:i[0],endValue:i[1]})}})}};function ONe(e){e.registerAction(`dataZoom`,function(e,t){Z(bNe(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var kNe=Mk();function ANe(e){kNe(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,DNe),ONe(e),e.registerSubTypeDefaulter(`dataZoom`,function(){return`slider`})})}function jNe(e){e.registerComponentModel(wNe),e.registerComponentView(TNe),ANe(e)}var DK=function(){function e(){}return e}(),OK={};function kK(e,t){OK[e]=t}function AK(e){return OK[e]}var MNe=function(e){iC(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t,n,r){var i=r.getTheme().get(`toolbox`),a=i?i.feature:null;a&&(this._themeFeatureOption=yC({},a),i.feature={}),e.prototype.init.call(this,t,n,r),a&&(i.feature=a)},t.prototype.optionUpdated=function(){Z(this.option.feature,function(e,t){var n=this._themeFeatureOption,r=AK(t);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(this.ecModel)),n&&n[t]&&(vC(e,n[t]),n[t]=null),vC(e,r.defaultOption))},this)},t.type=`toolbox`,t.layoutMode={type:`box`,ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:`horizontal`,left:`right`,top:`top`,backgroundColor:`transparent`,borderColor:AF.color.border,borderRadius:0,borderWidth:0,padding:AF.size.m,itemSize:15,itemGap:AF.size.s,showTitle:!0,iconStyle:{borderColor:AF.color.accent50,color:`none`},emphasis:{iconStyle:{borderColor:AF.color.accent70}},tooltip:{show:!1,position:`bottom`}},t}(gF);function jK(e,t){var n=$P(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new fO({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}var NNe=function(e){iC(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){var i=this.group;if(i.removeAll(),!e.get(`show`))return;var a=+e.get(`itemSize`),o=e.get(`orient`)===`vertical`,s=e.get(`feature`)||{},c=this._features||=QC(),l=[];Z(s,function(e,t){l.push(t)}),new BM(this._featureNames||[],l).add(u).update(u).remove(kC(u,null)).execute(),this._featureNames=EC(l,function(e){return c.hasKey(e)});function u(i,a){var o=i!=null&&a==null,u=i!=null&&a!=null,f=i==null,p=o||u?l[i]:l[a],m=s[p],h=o||u?new LM(m,e,t):null,g=h&&h.get(`show`),_;if(o){if(!g)return;if(PNe(p))_={onclick:h.option.onclick,featureName:p};else{var v=AK(p);if(!v)return;_=new v}c.set(p,_)}else _=c.get(p);f||!g?(MK(_)&&_.dispose&&_.dispose(t,n),c.removeKey(p)):(r&&r.newTitle!=null&&r.featureName===p&&(m.title=r.newTitle),o&&(_.uid=iP(`toolbox-feature`)),_.model=h,_.ecModel=t,_.api=n,d(h,_,p),h.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&(t===`emphasis`?gA:_A)(r[e])},MK(_)&&_.render&&_.render(h,t,n,r))}function d(r,s,c){var l=r.getModel(`iconStyle`),u=r.getModel([`emphasis`,`iconStyle`]),d=s instanceof DK&&s.getIcons?s.getIcons():r.get(`icon`),f=r.get(`title`)||{},p,m;MC(d)?(p={},p[c]=d):p=d,MC(f)?(m={},m[c]=f):m=f;var h=r.iconPaths={};Z(p,function(c,d){var f=rM(c,{},{x:-a/2,y:-a/2,width:a,height:a});f.setStyle(l.getItemStyle());var p=f.ensureState(`emphasis`);p.style=u.getItemStyle();var g=new gO({style:{text:m[d],align:u.get(`textAlign`),borderRadius:u.get(`textBorderRadius`),padding:u.get(`textPadding`),fill:null,font:AM({fontStyle:u.get(`textFontStyle`),fontFamily:u.get(`textFontFamily`),fontSize:u.get(`textFontSize`),fontWeight:u.get(`textFontWeight`)},t)},ignore:!0});f.setTextContent(g),lM({el:f,componentModel:e,itemName:d,formatterParamsExtra:{title:m[d]}}),f.__title=m[d],f.on(`mouseover`,function(){var t=u.getItemStyle(),r=o?e.get(`right`)==null&&e.get(`left`)!==`right`?`right`:`left`:e.get(`bottom`)==null&&e.get(`top`)!==`bottom`?`bottom`:`top`;g.setStyle({fill:u.get(`textFill`)||t.fill||t.stroke||AF.color.neutral99,backgroundColor:u.get(`textBackgroundColor`)}),f.setTextConfig({position:u.get(`textPosition`)||r}),g.ignore=!e.get(`showTitle`),n.enterEmphasis(this)}).on(`mouseout`,function(){r.get([`iconStatus`,d])!==`emphasis`&&n.leaveEmphasis(this),g.hide()}),(r.get([`iconStatus`,d])===`emphasis`?gA:_A)(f),i.add(f),f.on(`click`,OC(s.onclick,s,t,n,d)),h[d]=f})}var f=fF(e,n).refContainer,p=e.getBoxLayoutParams(),m=e.get(`padding`),h=uF(p,f,m);lF(e.get(`orient`),i,e.get(`itemGap`),h.width,h.height),UTe(i,p,f,m),i.add(jK(i.getBoundingRect(),e)),o||i.eachChild(function(e){var t=e.__title,r=e.ensureState(`emphasis`),o=r.textConfig||={},s=e.getTextContent(),c=s&&s.ensureState(`emphasis`);if(c&&!jC(c)&&t){var l=c.style||={},u=uT(t,gO.makeFont(l)),d=e.x+i.x,f=e.y+i.y+a,p=!1;f+u.height>n.getHeight()&&(o.position=`top`,p=!0);var m=p?-5-u.height:a+10;d+u.width/2>n.getWidth()?(o.position=[`100%`,m],l.align=`right`):d-u.width/2<0&&(o.position=[0,m],l.align=`left`)}})},t.prototype.updateView=function(e,t,n,r){Z(this._features,function(e){e&&e instanceof DK&&e.updateView&&e.updateView(e.model,t,n,r)})},t.prototype.dispose=function(e,t){Z(this._features,function(n){n&&n instanceof DK&&n.dispose&&n.dispose(e,t)})},t.type=`toolbox`,t}(ZV);function PNe(e){return e.indexOf(`my`)===0}function MK(e){return e instanceof DK}var FNe=function(e){iC(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){var n=this.model,r=n.get(`name`)||e.get(`title.0.text`)||`echarts`,i=t.getZr().painter.getType()===`svg`,a=i?`svg`:n.get(`type`,!0)||`png`,o=t.getConnectedDataURL({type:a,backgroundColor:n.get(`backgroundColor`,!0)||e.get(`backgroundColor`)||AF.color.neutral00,connectedBackgroundColor:n.get(`connectedBackgroundColor`),excludeComponents:n.get(`excludeComponents`),pixelRatio:n.get(`pixelRatio`)}),s=rw.browser;if(typeof MouseEvent==`function`&&(s.newEdge||!s.ie&&!s.edge)){var c=document.createElement(`a`);c.download=r+`.`+a,c.target=`_blank`,c.href=o;var l=new MouseEvent(`click`,{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(l)}else if(window.navigator.msSaveOrOpenBlob||i){var u=o.split(`,`),d=u[0].indexOf(`base64`)>-1,f=i?decodeURIComponent(u[1]):u[1];d&&(f=window.atob(f));var p=r+`.`+a;if(window.navigator.msSaveOrOpenBlob){for(var m=f.length,h=new Uint8Array(m);m--;)h[m]=f.charCodeAt(m);var g=new Blob([h]);window.navigator.msSaveOrOpenBlob(g,p)}else{var _=document.createElement(`iframe`);document.body.appendChild(_);var v=_.contentWindow,y=v.document;y.open(`image/svg+xml`,`replace`),y.write(f),y.close(),v.focus(),y.execCommand(`SaveAs`,!0,p),document.body.removeChild(_)}}else{var b=n.get(`lang`),x=`<body style="margin:0;"><img src="`+o+`" style="max-width:100%;" title="`+(b&&b[0]||``)+`" /></body>`,S=window.open();S.document.write(x),S.document.title=r}},t.getDefaultOption=function(e){return{show:!0,icon:`M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0`,title:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`title`]),type:`png`,connectedBackgroundColor:AF.color.neutral00,name:``,excludeComponents:[`toolbox`],lang:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`lang`])}},t}(DK),NK=`__ec_magicType_stack__`,INe=[[`line`,`bar`],[`stack`]],LNe=function(e){iC(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,t=e.get(`icon`),n={};return Z(e.get(`type`),function(e){t[e]&&(n[e]=t[e])}),n},t.getDefaultOption=function(e){return{show:!0,type:[],icon:{line:`M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4`,bar:`M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7`,stack:`M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z`},title:e.getLocaleModel().get([`toolbox`,`magicType`,`title`]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var r=this.model,i=r.get([`seriesIndex`,n]);if(PK[n]){var a={series:[]};Z(INe,function(e){xC(e,n)>=0&&Z(e,function(e){r.setIconStatus(e,`normal`)})}),r.setIconStatus(n,`emphasis`),e.eachComponent({mainType:`series`,query:i==null?null:{seriesIndex:i}},function(e){var t=e.subType,i=e.id,o=PK[n](t,i,e,r);o&&(bC(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&s.type===`cartesian2d`&&(n===`line`||n===`bar`)){var c=s.getAxesByScale(`ordinal`)[0];if(c){var l=c.dim+`Axis`,u=e.getReferringComponents(l,Sk).models[0].componentIndex;a[l]=a[l]||[];for(var d=0;d<=u;d++)a[l][u]=a[l][u]||{};a[l][u].boundaryGap=n===`bar`}}});var o,s=n;n===`stack`&&(o=vC({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),r.get([`iconStatus`,n])!==`emphasis`&&(s=`tiled`)),t.dispatchAction({type:`changeMagicType`,currentType:s,newOption:a,newTitle:o,featureName:`magicType`})}},t}(DK),PK={line:function(e,t,n,r){if(e===`bar`)return vC({id:t,type:`line`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`line`])||{},!0)},bar:function(e,t,n,r){if(e===`line`)return vC({id:t,type:`bar`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`bar`])||{},!0)},stack:function(e,t,n,r){var i=n.get(`stack`)===NK;if(e===`line`||e===`bar`)return r.setIconStatus(`stack`,i?`normal`:`emphasis`),vC({id:t,stack:i?``:NK},r.get([`option`,`stack`])||{},!0)}};ZU({type:`changeMagicType`,event:`magicTypeChanged`,update:`prepareAndUpdate`},function(e,t){t.mergeOption(e.newOption)});var FK=Array(60).join(`-`),IK=` `;function RNe(e){var t={},n=[],r=[];return e.eachRawSeries(function(e){var i=e.coordinateSystem;if(i&&(i.type===`cartesian2d`||i.type===`polar`)){var a=i.getBaseAxis();if(a.type===`category`){var o=GDe(a);t[o]||(t[o]={categoryAxis:a,valueAxis:i.getOtherAxis(a),series:[]},r.push({axisDim:a.dim,axisIndex:a.index})),t[o].series.push(e)}else n.push(e)}else n.push(e)}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function zNe(e){var t=[];return Z(e,function(e,n){var r=e.categoryAxis,i=e.valueAxis.dim,a=[` `].concat(wC(e.series,function(e){return e.name})),o=[r.model.getCategories()];Z(e.series,function(e){var t=e.getRawData();o.push(e.getRawData().mapArray(t.mapDimension(i),function(e){return e}))});for(var s=[a.join(IK)],c=0;c<o[0].length;c++){for(var l=[],u=0;u<o.length;u++)l.push(o[u][c]);s.push(l.join(IK))}t.push(s.join(`
`))}),t.join(`
`+FK+`
`)}function BNe(e){return wC(e,function(e){var t=e.getRawData(),n=[e.name],r=[];return t.each(t.dimensions,function(){for(var e=arguments.length,i=arguments[e-1],a=t.getName(i),o=0;o<e-1;o++)r[o]=arguments[o];n.push((a?a+IK:``)+r.join(IK))}),n.join(`
`)}).join(`
`+FK+`
`)}function VNe(e){var t=RNe(e);return{value:EC([zNe(t.seriesGroupByCategoryAxis),BNe(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,``)}).join(`
`+FK+`
`),meta:t.meta}}function LK(e){return e.replace(/^\s\s*/,``).replace(/\s\s*$/,``)}function HNe(e){if(e.slice(0,e.indexOf(`
`)).indexOf(IK)>=0)return!0}var RK=RegExp(`[`+IK+`]+`,`g`);function UNe(e){for(var t=e.split(/\n+/g),n=LK(t.shift()).split(RK),r=[],i=wC(n,function(e){return{name:e,data:[]}}),a=0;a<t.length;a++){var o=LK(t[a]).split(RK);r.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:r}}function WNe(e){for(var t=e.split(/\n+/g),n=LK(t.shift()),r=[],i=0;i<t.length;i++){var a=LK(t[i]);if(a){var o=a.split(RK),s=``,c=void 0,l=!1;isNaN(o[0])?(l=!0,s=o[0],o=o.slice(1),r[i]={name:s,value:[]},c=r[i].value):c=r[i]=[];for(var u=0;u<o.length;u++)c.push(+o[u]);c.length===1&&(l?r[i].value=c[0]:r[i]=c[0])}}return{name:n,data:r}}function GNe(e,t){var n=e.split(RegExp(`
*`+FK+`
*`,`g`)),r={series:[]};return Z(n,function(e,n){if(HNe(e)){var i=UNe(e),a=t[n],o=a.axisDim+`Axis`;a&&(r[o]=r[o]||[],r[o][a.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{var i=WNe(e);r.series.push(i)}}),r}var KNe=function(e){iC(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){setTimeout(function(){t.dispatchAction({type:`hideTip`})});var n=t.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement(`div`);i.style.cssText=`position:absolute;top:0;bottom:0;left:0;right:0;padding:5px`,i.style.backgroundColor=r.get(`backgroundColor`)||AF.color.neutral00;var a=document.createElement(`h4`),o=r.get(`lang`)||[];a.innerHTML=o[0]||r.get(`title`),a.style.cssText=`margin:10px 20px`,a.style.color=r.get(`textColor`);var s=document.createElement(`div`),c=document.createElement(`textarea`);s.style.cssText=`overflow:auto`;var l=r.get(`optionToContent`),u=r.get(`contentToOption`),d=VNe(e);if(jC(l)){var f=l(t.getOption());MC(f)?s.innerHTML=f:RC(f)&&s.appendChild(f)}else{c.readOnly=r.get(`readOnly`);var p=c.style;p.cssText=`display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none`,p.color=r.get(`textColor`),p.borderColor=r.get(`textareaBorderColor`),p.backgroundColor=r.get(`textareaColor`),c.value=d.value,s.appendChild(c)}var m=d.meta,h=document.createElement(`div`);h.style.cssText=`position:absolute;bottom:5px;left:0;right:0`;var g=`float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px`,_=document.createElement(`div`),v=document.createElement(`div`);g+=`;background-color:`+r.get(`buttonColor`),g+=`;color:`+r.get(`buttonTextColor`);var y=this;function b(){n.removeChild(i),y._dom=null}zB(_,`click`,b),zB(v,`click`,function(){if(u==null&&l!=null||u!=null&&l==null)b();else{var e;try{e=jC(u)?u(s,t.getOption()):GNe(c.value,m)}catch(e){throw b(),Error(`Data view format error `+e)}e&&t.dispatchAction({type:`changeDataView`,newOption:e}),b()}}),_.innerHTML=o[1],v.innerHTML=o[2],v.style.cssText=_.style.cssText=g,!r.get(`readOnly`)&&h.appendChild(v),h.appendChild(_),i.appendChild(a),i.appendChild(s),i.appendChild(h),s.style.height=n.clientHeight-80+`px`,n.appendChild(i),this._dom=i},t.prototype.dispose=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.getDefaultOption=function(e){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:`M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28`,title:e.getLocaleModel().get([`toolbox`,`dataView`,`title`]),lang:e.getLocaleModel().get([`toolbox`,`dataView`,`lang`]),backgroundColor:AF.color.background,textColor:AF.color.primary,textareaColor:AF.color.background,textareaBorderColor:AF.color.border,buttonColor:AF.color.accent50,buttonTextColor:AF.color.neutral00}},t}(DK);function qNe(e,t){return wC(e,function(e,n){var r=t&&t[n];if(FC(r)&&!AC(r)){(!FC(e)||AC(e))&&(e={value:e});var i=r.name!=null&&e.name==null;return e=bC(e,r),i&&delete e.name,e}return e})}ZU({type:`changeDataView`,event:`dataViewChanged`,update:`prepareAndUpdate`},function(e,t){var n=[];Z(e.newOption.series,function(e){var r=t.getSeriesByName(e.name)[0];if(!r)n.push(yC({type:`scatter`},e));else{var i=r.get(`data`);n.push({name:e.name,data:qNe(e.data,i)})}}),t.mergeOption(bC({series:n},e.newOption))});var zK=Z,BK=yk();function JNe(e,t){var n=VK(e);zK(t,function(t,r){for(var i=n.length-1;i>=0&&!n[i][r];i--);if(i<0){var a=e.queryComponents({mainType:`dataZoom`,subType:`select`,id:r})[0];if(a){var o=a.getPercentRange();n[0][r]={dataZoomId:r,start:o[0],end:o[1]}}}}),n.push(t)}function YNe(e){var t=VK(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return zK(n,function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n],e){r[n]=e;break}}),r}function XNe(e){BK(e).snapshots=null}function ZNe(e){return VK(e).length}function VK(e){var t=BK(e);return t.snapshots||=[{}],t.snapshots}var QNe=function(e){iC(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){XNe(e),t.dispatchAction({type:`restore`,from:this.uid})},t.getDefaultOption=function(e){return{show:!0,icon:`M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5`,title:e.getLocaleModel().get([`toolbox`,`restore`,`title`])}},t}(DK);ZU({type:`restore`,event:`restore`,update:`prepareAndUpdate`},function(e,t){t.resetOption(`recreate`)});var $Ne=[`grid`,`xAxis`,`yAxis`,`geo`,`graph`,`polar`,`radiusAxis`,`angleAxis`,`bmap`],HK=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=WK(t,e);Z(ePe,function(e,t){(!n||!n.include||xC(n.include,t)>=0)&&e(i,r._targetInfoList)})}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(e,t,n){if((e.coordRanges||=[]).push(t),!e.coordRange){e.coordRange=t;var r=qK[e.brushType](0,n,t);e.__rangeOffset={offset:YK[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}}),e},e.prototype.matchOutputRanges=function(e,t,n){Z(e,function(e){var r=this.findTargetInfo(e,t);r&&r!==!0&&Z(r.coordSyses,function(r){n(e,qK[e.brushType](1,r,e.range,!0).values,r,t)})},this)},e.prototype.setInputRanges=function(e,t){Z(e,function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&n!==!0){e.panelId=n.panelId;var r=qK[e.brushType](0,n.coordSys,e.coordRange),i=e.__rangeOffset;e.range=i?YK[e.brushType](r.values,i.offset,tPe(r.xyMinMax,i.xyMinMax)):r.values}},this)},e.prototype.makePanelOpts=function(e,t){return wC(this._targetInfoList,function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:dMe(r),isTargetByCursor:pMe(r,e,n.coordSysModel),getLinearBrushOtherExtent:fMe(r)}})},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return r===!0||r&&xC(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=WK(t,e),i=0;i<n.length;i++){var a=n[i],o=e.panelId;if(o){if(a.panelId===o)return a}else for(var s=0;s<GK.length;s++)if(GK[s](r,a))return a}return!0},e}();function UK(e){return e[0]>e[1]&&e.reverse(),e}function WK(e,t){return bk(e,t,{includeMainTypes:$Ne})}var ePe={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,a=QC(),o={},s={};(n||r||i)&&(Z(n,function(e){var t=e.axis.grid.model;a.set(t.id,t),o[t.id]=!0}),Z(r,function(e){var t=e.axis.grid.model;a.set(t.id,t),s[t.id]=!0}),Z(i,function(e){a.set(e.id,e),o[e.id]=!0,s[e.id]=!0}),a.each(function(e){var i=e.coordinateSystem,a=[];Z(i.getCartesians(),function(e,t){(xC(n,e.getAxis(`x`).model)>=0||xC(r,e.getAxis(`y`).model)>=0)&&a.push(e)}),t.push({panelId:`grid--`+e.id,gridModel:e,coordSysModel:e,coordSys:a[0],coordSyses:a,getPanelRect:KK.grid,xAxisDeclared:o[e.id],yAxisDeclared:s[e.id]})}))},geo:function(e,t){Z(e.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:`geo--`+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:KK.geo})})}},GK=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],KK={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys.view,t=zW(null,e);return $w(t,t,qje(null,e)),t}},qK={lineX:kC(JK,0),lineY:kC(JK,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),a=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),o=[UK([i[0],a[0]]),UK([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,r){var i=[Tk(),Tk()];return{values:wC(n,function(n){var a=e?t.pointToData(n,r):t.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],a[0]),i[1][0]=Math.min(i[1][0],a[1]),i[0][1]=Math.max(i[0][1],a[0]),i[1][1]=Math.max(i[1][1],a[1]),a}),xyMinMax:i}}};function JK(e,t,n,r){var i=n.getAxis([`x`,`y`][e]),a=UK(wC([0,1],function(e){return t?i.coordToData(i.toLocalCoord(r[e]),!0):i.toGlobalCoord(i.dataToCoord(r[e]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var YK={lineX:kC(XK,0),lineY:kC(XK,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return wC(e,function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]})}};function XK(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function tPe(e,t){var n=ZK(e),r=ZK(t),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function ZK(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var QK=Z,nPe=WSe(`toolbox-dataZoom_`),rPe={x:`width`,y:`height`},iPe=function(e){iC(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new nMe(n.getZr()),this._brushController.on(`brush`,OC(this._onBrush,this)).mount()),sPe(e,t,this,r,n),oPe(e,t)},t.prototype.onclick=function(e,t,n){aPe[n].call(this)},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(!e.isEnd||!t.length)return;var n={},r=this.ecModel;this._brushController.updateCovers([]),new HK($K(this.model),r,{include:[`grid`]}).matchOutputRanges(t,r,function(e,t,n){if(n.type===`cartesian2d`){var r=n.master.getRect().clone(),a=e.brushType;a===`rect`?(i(`x`,n,r,t[0]),i(`y`,n,r,t[1])):i({lineX:`x`,lineY:`y`}[a],n,r,t)}}),JNe(r,n),this._dispatchZoomAction(n);function i(e,t,i,o){var s=t.getAxis(e),c=s.model,l=a(e,c,r),u=l.findRepresentativeAxisProxy(c).getMinMaxSpan(),d=s.scale.getExtent();(u.minValueSpan!=null||u.maxValueSpan!=null)&&(o=VW(0,o.slice(),d,0,u.minValueSpan,u.maxValueSpan));var f=HO(d,i[rPe[e]],.5);l&&(n[l.id]={dataZoomId:l.id,startValue:isFinite(f)?zO(o[0],f):o[0],endValue:isFinite(f)?zO(o[1],f):o[1]})}function a(e,t,n){var r;return n.eachComponent({mainType:`dataZoom`,subType:`select`},function(n){n.getAxisModel(e,t.componentIndex)&&(r=n)}),r}},t.prototype._dispatchZoomAction=function(e){var t=[];QK(e,function(e,n){t.push(_C(e))}),t.length&&this.api.dispatchAction({type:`dataZoom`,from:this.uid,batch:t})},t.getDefaultOption=function(e){return{show:!0,filterMode:`filter`,icon:{zoom:`M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1`,back:`M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26`},title:e.getLocaleModel().get([`toolbox`,`dataZoom`,`title`]),brushStyle:{borderWidth:0,color:AF.color.backgroundTint}}},t}(DK),aPe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:`takeGlobalCursor`,key:`dataZoomSelect`,dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(YNe(this.ecModel))}};function $K(e){var t={xAxisIndex:e.get(`xAxisIndex`,!0),yAxisIndex:e.get(`yAxisIndex`,!0),xAxisId:e.get(`xAxisId`,!0),yAxisId:e.get(`yAxisId`,!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex=`all`),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex=`all`),t}function oPe(e,t){e.setIconStatus(`back`,ZNe(t)>1?`emphasis`:`normal`)}function sPe(e,t,n,r,i){var a=n._isZoomActive;r&&r.type===`takeGlobalCursor`&&(a=r.key===`dataZoomSelect`&&r.dataZoomSelectActive),n._isZoomActive=a,e.setIconStatus(`zoom`,a?`emphasis`:`normal`);var o=new HK($K(e),t,{include:[`grid`]}).makePanelOpts(i,function(e){return e.xAxisDeclared&&!e.yAxisDeclared?`lineX`:!e.xAxisDeclared&&e.yAxisDeclared?`lineY`:`rect`});n._brushController.setPanels(o).enableBrush(a&&o.length?{brushType:`auto`,brushStyle:e.getModel(`brushStyle`).getItemStyle()}:!1)}Cke(`dataZoom`,function(e){var t=e.getComponent(`toolbox`,0),n=[`feature`,`dataZoom`];if(!t||t.get(n)==null)return;var r=t.getModel(n),i=[],a=bk(e,$K(r));QK(a.xAxisModels,function(e){return o(e,`xAxis`,`xAxisIndex`)}),QK(a.yAxisModels,function(e){return o(e,`yAxis`,`yAxisIndex`)});function o(e,t,n){var a=e.componentIndex,o={type:`select`,$fromToolbox:!0,filterMode:r.get(`filterMode`,!0)||`filter`,id:nPe+t+a};o[n]=a,i.push(o)}return i});function cPe(e){e.registerComponentModel(MNe),e.registerComponentView(NNe),kK(`saveAsImage`,FNe),kK(`magicType`,LNe),kK(`dataView`,KNe),kK(`dataZoom`,iPe),kK(`restore`,QNe),iW(jNe)}var lPe=function(e){iC(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`tooltip`,t.dependencies=[`axisPointer`],t.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click|mousewheel`,alwaysShowContent:!1,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:AF.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:AF.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:AF.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:AF.color.tertiary,fontSize:14}},t}(gF);function eq(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function tq(e){if(rw.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var nq=tq([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),uPe=tq([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]);function rq(e,t){if(!e)return t;t=QP(t,!0);var n=e.indexOf(t);return e=n===-1?t:`-`+e.slice(0,n)+`-`+t,e.toLowerCase()}function dPe(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var fPe=rq(uPe,`transition`),iq=rq(nq,`transform`),pPe=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(rw.transform3dSupported?`will-change:transform;`:``);function mPe(e){return e=e===`left`?`right`:e===`right`?`left`:e===`top`?`bottom`:`top`,e}function hPe(e,t,n){if(!MC(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=iF(t);var a=mPe(n),o=Math.max(Math.round(i)*1.5,6),s=``,c=iq+`:`,l;xC([`left`,`right`],a)>-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`<div style="`+[`position:absolute;width:`+o+`px;height:`+o+`px;z-index:-1;`,s+`;`+c+`;`,`border-bottom:`+m,`border-right:`+m,`background-color:`+r+`;`].join(``)+`"></div>`}function gPe(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(i=` `+e/2+`s `+r,a=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(rw.transformSupported?``+iq+i:`,left`+i+`,top`+i)),fPe+`:`+a}function aq(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!rw.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=rw.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+iq+`:`+o+`;`:[[`top`,0],[`left`,0],[nq,o]]}function _Pe(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=HC(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),Z([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function vPe(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=UF(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(gPe(a,n,r)),o&&i.push(`background-color:`+o),Z([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=QP(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(_Pe(d)),f!=null&&i.push(`padding:`+$P(f).join(`px `)+`px`),i.join(`;`)+`;`}function oq(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&_Te(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var yPe=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,rw.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(MC(i)?document.querySelector(i):RC(i)?i:jC(i)&&i(e.getDom()));oq(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler;RB(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=dPe(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=pPe+vPe(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+aq(i[0],i[1],!0)+(`border-color:`+iF(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null)a.innerHTML=``;else{var o=``;if(MC(i)&&n.get(`trigger`)===`item`&&!eq(n)&&(o=hPe(n,r,i)),MC(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,AC(e)||(e=[e]);for(var s=0;s<e.length;s++)RC(e[s])&&e[s].parentNode!==a&&a.appendChild(e[s]);if(o&&a.childNodes.length){var c=document.createElement(`div`);c.innerHTML=o,a.appendChild(c)}}}},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},e.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(oq(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style;Z(aq(n[0],n[1]),function(e){r[e[0]]=e[1]})}}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility=`hidden`,t.opacity=`0`):t.display=`none`,rw.transform3dSupported&&(t.willChange=``),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(OC(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;vTe(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var n=t.parentNode;n&&n.removeChild(t)}this.el=this._container=null},e}(),bPe=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),lq(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get(`alwaysShowContent`);t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){var a=this;FC(e)&&ak(``),this.el&&this._zr.remove(this.el);var o=n.getModel(`textStyle`);this.el=new gO({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get(`textShadowColor`),fill:n.get([`textStyle`,`color`]),padding:UF(n,`richText`),verticalAlign:`top`,align:`left`},z:n.get(`z`)}),Z([`backgroundColor`,`borderRadius`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],function(e){a.el.style[e]=n.get(e)}),Z([`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],function(e){a.el.style[e]=o.get(e)||0}),this._zr.add(this.el);var s=this;this.el.on(`mouseover`,function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on(`mouseout`,function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=cq(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;lq(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=sq(i.borderWidth||0),o=cq(i);n.x=e+a+o.left,n.y=t+a+o.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(OC(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function sq(e){return Math.max(0,e)}function cq(e){var t=sq(e.shadowBlur||0),n=sq(e.shadowOffsetX||0),r=sq(e.shadowOffsetY||0);return{left:sq(t-n),right:sq(t+n),top:sq(t-r),bottom:sq(t+r)}}function lq(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var xPe=new fO({shape:{x:-1,y:-1,width:2,height:2}}),SPe=function(e){iC(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){if(!rw.node&&t.getDom()){var n=e.getComponent(`tooltip`),r=this._renderMode=ZSe(n.get(`renderMode`));this._tooltipContent=r===`richText`?new bPe(t):new yPe(t,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},t.prototype.render=function(e,t,n){if(!rw.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var r=this._tooltipContent;r.update(e),r.setEnterable(e.get(`enterable`)),this._initGlobalListener(),this._keepShow(),this._renderMode!==`richText`&&e.get(`transitionDuration`)?qz(this,`_updatePosition`,50,`fixRate`):Jz(this,`_updatePosition`)}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);fK(`itemTooltip`,this._api,OC(function(t,n,r){e!==`none`&&(e.indexOf(t)>=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(e.get(`trigger`)!==`axis`&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(r.from!==this.uid&&!rw.node&&n.getDom()){var i=dq(r,n);this._ticket=``;var a=r.dataByCoordSys,o=EPe(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=xPe;c.x=r.x,c.y=r.y,c.update(),Lk(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=hK(r,t),u=l.point[0],d=l.point[1];u!=null&&d!=null&&this._tryShow({offsetX:u,offsetY:d,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide(dq(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(i!=null&&a!=null&&o!=null){var s=t.getSeriesByIndex(i);if(s&&uq([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(Lk(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;_H(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(Lk(e).dataIndex==null?Lk(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=OC(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=uq([t.tooltipOption],r),o=this._renderMode,s=[],c=IF(`section`,{blocks:[],noHeader:!0}),l=[],u=new WF;Z(e,function(e){Z(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value,a=t.axis,d=a.scale.parse(i);if(t&&i!=null){var f=sK(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=IF(`section`,{header:f,noHeader:!qC(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),Z(e.seriesDataIndices,function(i){var a=n.getSeriesByIndex(i.seriesIndex),c=i.dataIndexInside,m=a.getDataParams(c);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=YL(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,iF(m.color),o);var h=xF(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=uq([a],r).get(`valueFormatter`);p.blocks.push(_?yC({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=BF(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?`
`:`<br/>`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=Lk(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=uq([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(m==null||m===`item`){var h=s.getDataParams(c,l),g=new WF;h.marker=g.makeTooltipMarker(`item`,iF(h.color),d);var _=xF(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?BF(y?yC({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=Lk(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(MC(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=_C(a),a.content=fP(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=uq(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new WF;this._showOrMove(d,function(){var n=_C(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,e.get(`showContent`)&&e.get(`show`)){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u){if(MC(u)){var p=e.ecModel.get(`useUTC`),m=AC(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=FP(m.axisValue,d,p)),d=rF(d,n,!0)}else if(jC(u)){var g=OC(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u}l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||AC(t))return{color:r||i};if(!AC(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),jC(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),AC(t))n=LO(t[0],s),r=LO(t[1],c);else if(FC(t)){var p=t;p.width=l[0],p.height=l[1];var m=uF(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(MC(t)&&o){var h=TPe(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=CPe(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=fq(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=fq(d)?l[1]/2:d===`bottom`?l[1]:0),eq(e)){var h=wPe(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&Z(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&Z(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&Z(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&Z(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){!rw.node&&t.getDom()&&(Jz(this,`_updatePosition`),this._tooltipContent.dispose(),mK(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(ZV);function uq(e,t,n){var r=t.ecModel,i;n?(i=new LM(n,r,r),i=new LM(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof LM&&(o=o.get(`tooltip`,!0)),MC(o)&&(o={formatter:o}),o&&(i=new LM(o,i,r)))}return i}function dq(e,t){return e.dispatchAction||OC(t.dispatchAction,t)}function CPe(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function wPe(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function TPe(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function fq(e){return e===`center`||e===`middle`}function EPe(e,t,n){var r=xk(e).queryOptionMap,i=r.keys()[0];if(i&&i!==`series`){var a=Ck(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=Lk(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function DPe(e){iW(bK),e.registerComponentModel(lPe),e.registerComponentView(SPe),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},nw),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},nw)}var OPe=function(e){iC(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.type=`title`,t.defaultOption={z:6,show:!0,text:``,target:`blank`,subtext:``,subtarget:`blank`,left:`center`,top:AF.size.m,backgroundColor:AF.color.transparent,borderColor:AF.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:`bold`,color:AF.color.primary},subtextStyle:{fontSize:12,color:AF.color.quaternary}},t}(gF),kPe=function(e){iC(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get(`show`)){var r=this.group,i=e.getModel(`textStyle`),a=e.getModel(`subtextStyle`),o=e.get(`textAlign`),s=HC(e.get(`textBaseline`),e.get(`textVerticalAlign`)),c=new gO({style:wM(i,{text:e.get(`text`),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=c.getBoundingRect(),u=e.get(`subtext`),d=new gO({style:wM(a,{text:u,fill:a.getTextColor(),y:l.height+e.get(`itemGap`),verticalAlign:`top`},{disableBox:!0}),z2:10}),f=e.get(`link`),p=e.get(`sublink`),m=e.get(`triggerEvent`,!0);c.silent=!f&&!m,d.silent=!p&&!m,f&&c.on(`click`,function(){aF(f,`_`+e.get(`target`))}),p&&d.on(`click`,function(){aF(p,`_`+e.get(`subtarget`))}),Lk(c).eventData=Lk(d).eventData=m?{componentType:`title`,componentIndex:e.componentIndex}:null,r.add(c),u&&r.add(d);var h=r.getBoundingRect(),g=e.getBoxLayoutParams();g.width=h.width,g.height=h.height;var _=uF(g,fF(e,n).refContainer,e.get(`padding`));o||(o=e.get(`left`)||e.get(`right`),o===`middle`&&(o=`center`),o===`right`?_.x+=_.width:o===`center`&&(_.x+=_.width/2)),s||(s=e.get(`top`)||e.get(`bottom`),s===`center`&&(s=`middle`),s===`bottom`?_.y+=_.height:s===`middle`&&(_.y+=_.height/2),s||=`top`),r.x=_.x,r.y=_.y,r.markRedraw();var v={align:o,verticalAlign:s};c.setStyle(v),d.setStyle(v),h=r.getBoundingRect();var y=_.margin,b=e.getItemStyle([`color`,`opacity`]);b.fill=e.get(`backgroundColor`);var x=new fO({shape:{x:h.x-y[3],y:h.y-y[0],width:h.width+y[1]+y[3],height:h.height+y[0]+y[2],r:e.get(`borderRadius`)},style:b,subPixelOptimize:!0,silent:!0});r.add(x)}},t.type=`title`,t}(ZV);function APe(e){e.registerComponentModel(OPe),e.registerComponentView(kPe)}var jPe=function(e,t){if(t===`all`)return{type:`all`,title:e.getLocaleModel().get([`legend`,`selector`,`all`])};if(t===`inverse`)return{type:`inverse`,title:e.getLocaleModel().get([`legend`,`selector`,`inverse`])}},pq=function(e){iC(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;t===!0&&(t=e.selector=[`all`,`inverse`]),AC(t)&&Z(t,function(e,r){MC(e)&&(e={type:e}),t[r]=vC(e,jPe(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get(`selectedMode`)===`single`){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get(`name`);if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get(`name`))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries(function(r){var i=r.name;n.push(i);var a;if(r.legendVisualProvider){var o=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(o)),o.length?t=t.concat(o):a=!0}else a=!0;a&&gk(r)&&t.push(r.name)}),this._availableNames=n;var r=this.get(`data`)||t,i=QC(),a=wC(r,function(e){return(MC(e)||PC(e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new LM(e,this,this.ecModel))},this);this._data=EC(a,function(e){return!!e})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;if(this.get(`selectedMode`)===`single`){var n=this._data;Z(n,function(e){t[e.get(`name`)]=!1})}t[e]=!0},t.prototype.unSelect=function(e){this.get(`selectedMode`)!==`single`&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?`unSelect`:`select`](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;Z(e,function(e){t[e.get(`name`,!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;Z(e,function(e){var n=e.get(`name`,!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]})},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&xC(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get(`orient`)===`vertical`?{index:1,name:`vertical`}:{index:0,name:`horizontal`}},t.type=`legend.plain`,t.dependencies=[`series`],t.defaultOption={z:4,show:!0,orient:`horizontal`,left:`center`,bottom:AF.size.m,align:`auto`,backgroundColor:AF.color.transparent,borderColor:AF.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:AF.color.disabled,inactiveBorderColor:AF.color.disabled,inactiveBorderWidth:`auto`,itemStyle:{color:`inherit`,opacity:`inherit`,borderColor:`inherit`,borderWidth:`auto`,borderCap:`inherit`,borderJoin:`inherit`,borderDashOffset:`inherit`,borderMiterLimit:`inherit`},lineStyle:{width:`auto`,color:`inherit`,inactiveColor:AF.color.disabled,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:AF.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:AF.color.tertiary,borderWidth:1,borderColor:AF.color.border},emphasis:{selectorLabel:{show:!0,color:AF.color.quaternary}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(gF),mq=kC,hq=Z,gq=XA,_q=function(e){iC(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new gq),this.group.add(this._selectorGroup=new gq),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);i&&i!==`auto`||(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=fF(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=uF(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=uF(bC({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=jK(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=QC(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),hq(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===`
`)){var p=new gq;p.newline=!0,s.add(p)}else{var m=n.getSeriesByName(f)[0];if(!c.get(f)){if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,mq(vq,f,null,r,d)).on(`mouseover`,mq(yq,m.name,null,r,d)).on(`mouseout`,mq(bq,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=Lk(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=bE(h.fill);_&&_[3]===0&&(_[3]=.2,h=yC(yC({},h),{fill:wE(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,mq(vq,null,f,r,d)).on(`mouseover`,mq(yq,null,f,r,d)).on(`mouseout`,mq(bq,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=Lk(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this)}}},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};Lk(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();hq(e,function(e){var r=e.type,i=new gO({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),SM(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),DA(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=MPe(c,r,o,s,d,m,u),y=new gq,b=r.getModel(`textStyle`);if(jC(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(NPe({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;MC(w)&&w?T=w.replace(`{name}`,t??``):jC(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new gO({style:wM(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new fO({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&lM({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),DA(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();lF(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){lF(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(ZV);function MPe(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),hq(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:qH(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function NPe(e){var t=e.icon||`roundRect`,n=dI(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=AF.color.neutral00,n.style.lineWidth=2),n}function vq(e,t,n,r){bq(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),yq(e,t,n,r)}function yq(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function bq(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function xq(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),Sq(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){Z(i,function(t,n){e[t?`select`:`unSelect`](n)}),Sq(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function Sq(e,t){var n=t||{};return Z(e.getData(),function(t){var r=t.get(`name`);if(r!==`
`&&r!==``){var i=e.isSelected(r);n[r]=tw(n,r)?n[r]&&i:i}}),n}function PPe(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,kC(xq,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,kC(xq,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,kC(xq,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,kC(xq,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,kC(xq,`unSelect`))}var FPe=Ik(IPe);function IPe(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function Cq(e){e.registerComponentModel(pq),e.registerComponentView(_q),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,FPe),e.registerSubTypeDefaulter(`legend`,function(){return`plain`}),PPe(e)}var LPe=function(e){iC(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=hF(t);e.prototype.init.call(this,t,n,r),wq(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),wq(this,this.option,t)},t.type=`legend.scroll`,t.defaultOption=aP(pq.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:`end`,pageFormatter:`{current}/{total}`,pageIcons:{horizontal:[`M0,0L12,-10L12,10z`,`M0,0L-12,-10L-12,10z`],vertical:[`M0,0L20,0L10,-20z`,`M0,0L20,0L10,20z`]},pageIconColor:AF.color.accent50,pageIconInactiveColor:AF.color.accent10,pageIconSize:15,pageTextStyle:{color:AF.color.tertiary},animationDurationUpdate:800}),t}(pq);function wq(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,mF(t,n,{type:`box`,ignoreSize:!!i})}var Tq=XA,Eq=[`width`,`height`],Dq=[`x`,`y`],RPe=function(e){iC(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new Tq),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Tq)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,a,o,s){var c=this;e.prototype.renderInner.call(this,t,n,r,i,a,o,s);var l=this._controllerGroup,u=n.get(`pageIconSize`,!0),d=AC(u)?u:[u,u];p(`pagePrev`,0);var f=n.getModel(`pageTextStyle`);l.add(new gO({name:`pageText`,style:{text:`xx/xx`,fill:f.getTextColor(),font:f.getFont(),verticalAlign:`middle`,align:`center`},silent:!0})),p(`pageNext`,1);function p(e,t){var r=e+`DataIndex`,a=rM(n.get(`pageIcons`,!0)[n.getOrient().name][t],{onclick:OC(c._pageGo,c,r,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});a.name=e,l.add(a)}},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getSelectorGroup(),s=e.getOrient().index,c=Eq[s],l=Dq[s],u=Eq[1-s],d=Dq[1-s];i&&lF(`horizontal`,o,e.get(`selectorItemGap`,!0));var f=e.get(`selectorButtonGap`,!0),p=o.getBoundingRect(),m=[-p.x,-p.y],h=_C(n);i&&(h[c]=n[c]-p[c]-f);var g=this._layoutContentAndController(e,r,h,s,c,u,d,l);if(i){if(a===`end`)m[s]+=g[c]+f;else{var _=p[c]+f;m[s]-=_,g[l]-=_}g[c]+=p[c]+f,m[1-s]+=g[d]+g[u]/2-p[u]/2,g[u]=Math.max(g[u],p[u]),g[d]=Math.min(g[d],p[d]+m[1-s]),o.x=m[0],o.y=m[1],o.markRedraw()}return g},t.prototype._layoutContentAndController=function(e,t,n,r,i,a,o,s){var c=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup;lF(e.get(`orient`),c,e.get(`itemGap`),r?n.width:null,r?null:n.height),lF(`horizontal`,u,e.get(`pageButtonItemGap`,!0));var d=c.getBoundingRect(),f=u.getBoundingRect(),p=this._showController=d[i]>n[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=HC(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new fO({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&Nj(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;Z([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,MC(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=Eq[i],o=Dq[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i<g.i&&(g=h,f.pagePrevDataIndex??=h.i,++f.pageCount,++f.pageIndex),h=_;return f;function v(e){if(e){var t=e.getBoundingRect(),n=t[o]+e[o];return{s:n,e:n+t[a],i:e.__legendDataIndex}}}function y(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(_q);function zPe(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function BPe(e){iW(Cq),e.registerComponentModel(LPe),e.registerComponentView(RPe),zPe(e)}function VPe(e){iW(Cq),iW(BPe)}var HPe={label:{enabled:!0},decal:{show:!1}},Oq=yk(),kq=yk(),UPe=Ik(WPe);function WPe(e,t){var n=e.getModel(`aria`);if(!n.get(`enabled`))return;var r=kq(e).scope||(kq(e).scope={}),i=_C(HPe);vC(i.label,e.getLocaleModel().get(`aria`),!1),vC(n.option,i,!1),a(),o();function a(){if(n.getModel(`decal`).get(`show`)){var t=QC();e.eachSeries(function(e){e.isColorBySeries()||(Oq(e).scope=t.get(e.type)||t.set(e.type,{}))}),e.eachSeries(function(t){if(jC(t.enableAriaDecal)){t.enableAriaDecal();return}var n=t.getData();if(t.isColorBySeries()){var i=yF(t.ecModel,t.name,r,e.getSeriesCount()),a=n.getVisual(`decal`);n.setVisual(`decal`,u(a,i))}else{var o=t.getRawData(),s={},c=Oq(t).scope;n.each(function(e){var t=n.getRawIndex(e);s[t]=e});var l=o.count();o.each(function(e){var r=s[e],i=o.getName(e)||e+``,a=yF(t.ecModel,i,c,l),d=n.getItemVisual(r,`decal`);n.setItemVisual(r,`decal`,u(d,a))})}function u(e,t){var n=e?yC(yC({},t),e):t;return n.dirty=!0,n}})}}function o(){var r=t.getZr().dom;if(r){var i=e.getLocaleModel().get(`aria`),a=n.getModel(`label`);if(a.option=bC(a.option,i),a.get(`enabled`)){if(r.setAttribute(`role`,`img`),a.get(`description`))r.setAttribute(`aria-label`,a.get(`description`));else{var o=e.getSeriesCount(),u=a.get([`data`,`maxCount`])||10,d=a.get([`series`,`maxCount`])||10,f=Math.min(o,d),p;if(!(o<1)){var m=c();p=m?s(a.get([`general`,`withTitle`]),{title:m}):a.get([`general`,`withoutTitle`]);var h=[],g=o>1?a.get([`series`,`multiple`,`prefix`]):a.get([`series`,`single`,`prefix`]);p+=s(g,{seriesCount:o}),e.eachSeries(function(e,t){if(t<f){var n=void 0,r=e.get(`name`)?`withName`:`withoutName`;n=o>1?a.get([`series`,`multiple`,r]):a.get([`series`,`single`,r]),n=s(n,{seriesId:e.seriesIndex,seriesName:e.get(`name`),seriesType:l(e.subType)});var i=e.getData();if(i.count()>u){var c=a.get([`data`,`partialData`]);n+=s(c,{displayCnt:u})}else n+=a.get([`data`,`allData`]);for(var d=a.get([`data`,`separator`,`middle`]),p=a.get([`data`,`separator`,`end`]),m=a.get([`data`,`excludeDimensionId`]),g=[],_=0;_<i.count();_++)if(_<u){var v=i.getName(_),y=m?EC(i.getValues(_),function(e,t){return xC(m,t)===-1}):i.getValues(_),b=a.get([`data`,v?`withName`:`withoutName`]);g.push(s(b,{name:v,value:y.join(d)}))}n+=g.join(d)+p,h.push(n)}});var _=a.getModel([`series`,`multiple`,`separator`]),v=_.get(`middle`),y=_.get(`end`);p+=h.join(v)+y,r.setAttribute(`aria-label`,p)}}}}}function s(e,t){if(!MC(e))return e;var n=e;return Z(t,function(e,t){n=n.replace(RegExp(`\\{\\s*`+t+`\\s*\\}`,`g`),e)}),n}function c(){var t=e.get(`title`);return t&&t.length&&(t=t[0]),t&&t.text}function l(t){var n=e.getLocaleModel().get([`series`,`typeNames`]);return n[t]||n.chart}}function GPe(e){if(e&&e.aria){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},Z([`description`,`general`,`series`,`data`],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function KPe(e){e.registerPreprocessor(GPe),e.registerVisual(e.PRIORITY.VISUAL.ARIA,UPe)}var Aq={value:`eq`,"<":`lt`,"<=":`lte`,">":`gt`,">=":`gte`,"=":`eq`,"!=":`ne`,"<>":`ne`},qPe=function(){function e(e){(this._condVal=MC(e)?new RegExp(e):Lbe(e)?e:null)??ak(``)}return e.prototype.evaluate=function(e){var t=typeof e;return MC(t)?this._condVal.test(e):PC(t)?this._condVal.test(e+``):!1},e}(),JPe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),YPe=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),XPe=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),ZPe=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),QPe=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,n=t(this.valueGetterParam),r=e?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?r:n))return!1;return!0},e}();function jq(e,t){if(e===!0||e===!1){var n=new JPe;return n.value=e,n}return Nq(e)||ak(``),e.and?Mq(`and`,e,t):e.or?Mq(`or`,e,t):e.not?$Pe(e,t):eFe(e,t)}function Mq(e,t,n){var r=t[e],i=``;AC(r)||ak(i),r.length||ak(i);var a=e===`and`?new YPe:new XPe;return a.children=wC(r,function(e){return jq(e,n)}),a.children.length||ak(i),a}function $Pe(e,t){var n=e.not,r=``;Nq(n)||ak(r);var i=new ZPe;return i.child=jq(n,t),i.child||ak(r),i}function eFe(e,t){for(var n=``,r=t.prepareGetValue(e),i=[],a=DC(e),o=e.parser,s=o?xN(o):null,c=0;c<a.length;c++){var l=a[c];if(!(l===`parser`||t.valueGetterAttrMap.get(l))){var u=tw(Aq,l)?Aq[l]:l,d=e[l],f=s?s(d):d,p=Vwe(u,f)||u===`reg`&&new qPe(f);p||ak(n),i.push(p)}}i.length||ak(n);var m=new QPe;return m.valueGetterParam=r,m.valueParser=s,m.getValue=t.getValue,m.subCondList=i,m}function Nq(e){return FC(e)&&!CC(e)}var tFe=function(){function e(e,t){this._cond=jq(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function nFe(e,t){return new tFe(e,t)}var rFe={type:`echarts:filter`,transform:function(e){for(var t=e.upstream,n,r=nFe(e.config,{valueGetterAttrMap:QC({dimension:!0}),prepareGetValue:function(e){var n=``,r=e.dimension;tw(e,`dimension`)||ak(n);var i=t.getDimensionInfo(r);return i||ak(n),{dimIdx:i.index}},getValue:function(e){return t.retrieveValueFromItem(n,e.dimIdx)}}),i=[],a=0,o=t.count();a<o;a++)n=t.getRawDataItem(a),r.evaluate()&&i.push(n);return{data:i}}},iFe={type:`echarts:sort`,transform:function(e){var t=e.upstream,n=e.config,r=``,i=lk(n);i.length||ak(r);var a=[];Z(i,function(e){var n=e.dimension,i=e.order,o=e.parser,s=e.incomparable;n??ak(r),i!==`asc`&&i!==`desc`&&ak(r),s&&s!==`min`&&s!==`max`&&ak(``),i!==`asc`&&i!==`desc`&&ak(``);var c=t.getDimensionInfo(n);c||ak(r);var l=o?xN(o):null;o&&!l&&ak(r),a.push({dimIdx:c.index,parser:l,comparator:new CN(i,s)})});var o=t.sourceFormat;o!==`arrayRows`&&o!==`objectRows`&&ak(r);for(var s=[],c=0,l=t.count();c<l;c++)s.push(t.getRawDataItem(c));return s.sort(function(e,n){for(var r=0;r<a.length;r++){var i=a[r],o=t.retrieveValueFromItem(e,i.dimIdx),s=t.retrieveValueFromItem(n,i.dimIdx);i.parser&&(o=i.parser(o),s=i.parser(s));var c=i.comparator.evaluate(o,s);if(c!==0)return c}return 0}),{data:s}}};function aFe(e){e.registerTransform(rFe),e.registerTransform(iFe)}var oFe=function(e){iC(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),this._sourceManager=new EF(this),DF(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),DF(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type=`dataset`,t.defaultOption={seriesLayoutBy:Wk},t}(gF),sFe=function(e){iC(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return t.type=`dataset`,t}(ZV);function cFe(e){e.registerComponentModel(oFe),e.registerComponentView(sFe)}var Pq=KD.CMD;function Fq(e,t){return Math.abs(e-t)<1e-5}function Iq(e){var t=e.data,n=e.len(),r=[],i,a=0,o=0,s=0,c=0;function l(e,t){i&&i.length>2&&r.push(i),i=[e,t]}function u(e,t,n,r){Fq(e,n)&&Fq(t,r)||i.push(e,t,n,r,n,r)}function d(e,t,n,r,a,o){var s=Math.abs(t-e),c=Math.tan(s/4)*4/3,l=t<e?-1:1,u=Math.cos(e),d=Math.sin(e),f=Math.cos(t),p=Math.sin(t),m=u*a+n,h=d*o+r,g=f*a+n,_=p*o+r,v=a*c*l,y=o*c*l;i.push(m-v*d,h+y*u,g+v*p,_-y*f,g,_)}for(var f,p,m,h,g=0;g<n;){var _=t[g++],v=g===1;switch(v&&(a=t[g],o=t[g+1],s=a,c=o,(_===Pq.L||_===Pq.C||_===Pq.Q)&&(i=[s,c])),_){case Pq.M:a=s=t[g++],o=c=t[g++],l(s,c);break;case Pq.L:f=t[g++],p=t[g++],u(a,o,f,p),a=f,o=p;break;case Pq.C:i.push(t[g++],t[g++],t[g++],t[g++],a=t[g++],o=t[g++]);break;case Pq.Q:f=t[g++],p=t[g++],m=t[g++],h=t[g++],i.push(a+2/3*(f-a),o+2/3*(p-o),m+2/3*(f-m),h+2/3*(p-h),m,h),a=m,o=h;break;case Pq.A:var y=t[g++],b=t[g++],x=t[g++],S=t[g++],C=t[g++],w=t[g++]+C;g+=1;var T=!t[g++];f=Math.cos(C)*x+y,p=Math.sin(C)*S+b,v?(s=f,c=p,l(s,c)):u(a,o,f,p),a=Math.cos(w)*x+y,o=Math.sin(w)*S+b;for(var E=(T?-1:1)*Math.PI/2,D=C;T?D>w:D<w;D+=E){var O=T?Math.max(D+E,w):Math.min(D+E,w);d(D,O,y,b,x,S)}break;case Pq.R:s=a=t[g++],c=o=t[g++],f=s+t[g++],p=c+t[g++],l(f,c),u(f,c,f,p),u(f,p,s,p),u(s,p,s,c),u(s,c,f,c);break;case Pq.Z:i&&u(a,o,s,c),a=s,o=c}}return i&&i.length>2&&r.push(i),r}function Lq(e,t,n,r,i,a,o,s,c,l){if(Fq(e,n)&&Fq(t,r)&&Fq(i,o)&&Fq(a,s))c.push(o,s);else{var u=2/l,d=u*u,f=o-e,p=s-t,m=Math.sqrt(f*f+p*p);f/=m,p/=m;var h=n-e,g=r-t,_=i-o,v=a-s,y=h*h+g*g,b=_*_+v*v;if(y<d&&b<d)c.push(o,s);else{var x=f*h+p*g,S=-f*_-p*v,C=y-x*x,w=b-S*S;if(C<d&&x>=0&&w<d&&S>=0)c.push(o,s);else{var T=[],E=[];nE(e,n,i,o,.5,T),nE(t,r,a,s,.5,E),Lq(T[0],E[0],T[1],E[1],T[2],E[2],T[3],E[3],c,l),Lq(T[4],E[4],T[5],E[5],T[6],E[6],T[7],E[7],c,l)}}}}function lFe(e,t){var n=Iq(e),r=[];t||=1;for(var i=0;i<n.length;i++){var a=n[i],o=[],s=a[0],c=a[1];o.push(s,c);for(var l=2;l<a.length;){var u=a[l++],d=a[l++],f=a[l++],p=a[l++],m=a[l++],h=a[l++];Lq(s,c,u,d,f,p,m,h,o,t),s=m,c=h}r.push(o)}return r}function Rq(e,t,n){var r=e[t],i=e[1-t],a=Math.abs(r/i),o=Math.ceil(Math.sqrt(a*n)),s=Math.floor(n/o);s===0&&(s=1,o=n);for(var c=[],l=0;l<o;l++)c.push(s);var u=n-o*s;if(u>0)for(var l=0;l<u;l++)c[l%o]+=1;return c}function zq(e,t,n){for(var r=e.r0,i=e.r,a=e.startAngle,o=e.endAngle,s=Math.abs(o-a),c=s*i,l=i-r,u=c>Math.abs(l),d=Rq([c,l],+!u,t),f=(u?s:l)/d.length,p=0;p<d.length;p++)for(var m=(u?l:s)/d[p],h=0;h<d[p];h++){var g={};u?(g.startAngle=a+f*p,g.endAngle=a+f*(p+1),g.r0=r+m*h,g.r=r+m*(h+1)):(g.startAngle=a+m*h,g.endAngle=a+m*(h+1),g.r0=r+f*p,g.r=r+f*(p+1)),g.clockwise=e.clockwise,g.cx=e.cx,g.cy=e.cy,n.push(g)}}function uFe(e,t,n){for(var r=e.width,i=e.height,a=r>i,o=Rq([r,i],+!a,t),s=a?`width`:`height`,c=a?`height`:`width`,l=a?`x`:`y`,u=a?`y`:`x`,d=e[s]/o.length,f=0;f<o.length;f++)for(var p=e[c]/o[f],m=0;m<o[f];m++){var h={};h[l]=f*d,h[u]=m*p,h[s]=d,h[c]=p,h.x+=e.x,h.y+=e.y,n.push(h)}}function Bq(e,t,n,r){return e*r-n*t}function dFe(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=Bq(u,d,c,l);if(Math.abs(f)<1e-6)return null;var p=Bq(e-i,t-a,u,d)/f;return p<0||p>1?null:new Iw(p*c+e,p*l+t)}function fFe(e,t,n){var r=new Iw;Iw.sub(r,n,t),r.normalize();var i=new Iw;return Iw.sub(i,e,t),i.dot(r)}function Vq(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function pFe(e,t,n){for(var r=e.length,i=[],a=0;a<r;a++){var o=e[a],s=e[(a+1)%r],c=dFe(o[0],o[1],s[0],s[1],t.x,t.y,n.x,n.y);c&&i.push({projPt:fFe(c,t,n),pt:c,idx:a})}if(i.length<2)return[{points:e},{points:e}];i.sort(function(e,t){return e.projPt-t.projPt});var l=i[0],u=i[i.length-1];if(u.idx<l.idx){var d=l;l=u,u=d}for(var f=[l.pt.x,l.pt.y],p=[u.pt.x,u.pt.y],m=[f],h=[p],a=l.idx+1;a<=u.idx;a++)Vq(m,e[a].slice());Vq(m,p),Vq(m,f);for(var a=u.idx+1;a<=l.idx+r;a++)Vq(h,e[a%r].slice());return Vq(h,f),Vq(h,p),[{points:m},{points:h}]}function Hq(e){var t=e.points,n=[],r=[];wD(t,n,r);var i=new Yw(n[0],n[1],r[0]-n[0],r[1]-n[1]),a=i.width,o=i.height,s=i.x,c=i.y,l=new Iw,u=new Iw;return a>o?(l.x=u.x=s+a/2,l.y=c,u.y=c+o):(l.y=u.y=c+o/2,l.x=s,u.x=s+a),pFe(t,l,u)}function Uq(e,t,n,r){if(n===1)r.push(t);else{var i=Math.floor(n/2),a=e(t);Uq(e,a[0],i,r),Uq(e,a[1],n-i,r)}return r}function mFe(e,t){for(var n=[],r=0;r<t;r++)n.push(YA(e));return n}function hFe(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function gFe(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function _Fe(e,t){var n=[],r=e.shape,i;switch(e.type){case`rect`:uFe(r,t,n),i=fO;break;case`sector`:zq(r,t,n),i=uj;break;case`circle`:zq({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},t,n),i=uj;break;default:var a=e.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=wC(lFe(e.getUpdatedPathProxy(),o),function(e){return gFe(e)}),c=s.length;if(c===0)Uq(Hq,{points:s[0]},t,n);else if(c===t)for(var l=0;l<c;l++)n.push({points:s[l]});else{var u=0,d=wC(s,function(e){var t=[],n=[];wD(e,t,n);var r=(n[1]-t[1])*(n[0]-t[0]);return u+=r,{poly:e,area:r}});d.sort(function(e,t){return t.area-e.area});for(var f=t,l=0;l<c;l++){var p=d[l];if(f<=0)break;var m=l===c-1?f:Math.ceil(p.area/u*t);m<0||(Uq(Hq,{points:p.poly},m,n),f-=m)}}i=pj}if(!i)return mFe(e,t);for(var h=[],l=0;l<n.length;l++){var g=new i;g.setShape(n[l]),hFe(e,g),h.push(g)}return h}function vFe(e,t){var n=e.length,r=t.length;if(n===r)return[e,t];for(var i=[],a=[],o=n<r?e:t,s=Math.min(n,r),c=Math.abs(r-n)/6,l=(s-2)/6,u=Math.ceil(c/l)+1,d=[o[0],o[1]],f=c,p=2;p<s;){var m=o[p-2],h=o[p-1],g=o[p++],_=o[p++],v=o[p++],y=o[p++],b=o[p++],x=o[p++];if(f<=0)d.push(g,_,v,y,b,x);else{for(var S=Math.min(f,u-1)+1,C=1;C<=S;C++){var w=C/S;nE(m,g,v,b,w,i),nE(h,_,y,x,w,a),m=i[3],h=a[3],d.push(i[1],a[1],i[2],a[2],m,h),g=i[5],_=a[5],v=i[6],y=a[6]}f-=S-1}}return o===e?[d,t]:[e,d]}function Wq(e,t){for(var n=e.length,r=e[n-2],i=e[n-1],a=[],o=0;o<t.length;)a[o++]=r,a[o++]=i;return a}function yFe(e,t){for(var n,r,i,a=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var c=e[s],l=t[s],u=void 0,d=void 0;c?l?(n=vFe(c,l),u=n[0],d=n[1],r=u,i=d):(d=Wq(i||c,c),u=c):(u=Wq(r||l,l),d=l),a.push(u),o.push(d)}return[a,o]}function Gq(e){for(var t=0,n=0,r=0,i=e.length,a=0,o=i-2;a<i;o=a,a+=2){var s=e[o],c=e[o+1],l=e[a],u=e[a+1],d=s*u-l*c;t+=d,n+=(s+l)*d,r+=(c+u)*d}return t===0?[e[0]||0,e[1]||0]:[n/t/3,r/t/3,t]}function bFe(e,t,n,r){for(var i=(e.length-2)/6,a=1/0,o=0,s=e.length,c=s-2,l=0;l<i;l++){for(var u=l*6,d=0,f=0;f<s;f+=2){var p=f===0?u:(u+f-2)%c+2,m=e[p]-n[0],h=e[p+1]-n[1],g=t[f]-r[0],_=t[f+1]-r[1],v=g-m,y=_-h;d+=v*v+y*y}d<a&&(a=d,o=l)}return o}function xFe(e){for(var t=[],n=e.length,r=0;r<n;r+=2)t[r]=e[n-r-2],t[r+1]=e[n-r-1];return t}function SFe(e,t,n,r){for(var i=[],a,o=0;o<e.length;o++){var s=e[o],c=t[o],l=Gq(s),u=Gq(c);a??=l[2]<0!=u[2]<0;var d=[],f=[],p=0,m=1/0,h=[],g=s.length;a&&(s=xFe(s));for(var _=bFe(s,c,l,u)*6,v=g-2,y=0;y<v;y+=2){var b=(_+y)%v+2;d[y+2]=s[b]-l[0],d[y+3]=s[b+1]-l[1]}if(d[0]=s[_]-l[0],d[1]=s[_+1]-l[1],n>0)for(var x=r/n,S=-r/2;S<=r/2;S+=x){for(var C=Math.sin(S),w=Math.cos(S),T=0,y=0;y<s.length;y+=2){var E=d[y],D=d[y+1],O=c[y]-u[0],k=c[y+1]-u[1],A=O*w-k*C,j=O*C+k*w;h[y]=A,h[y+1]=j;var ee=A-E,te=j-D;T+=ee*ee+te*te}if(T<m){m=T,p=S;for(var M=0;M<h.length;M++)f[M]=h[M]}}else for(var ne=0;ne<g;ne+=2)f[ne]=c[ne]-u[0],f[ne+1]=c[ne+1]-u[1];i.push({from:d,to:f,fromCp:l,toCp:u,rotation:-p})}return i}function Kq(e){return e.__isCombineMorphing}var qq=`__mOriginal_`;function Jq(e,t,n){var r=qq+t,i=e[r]||e[t];e[r]||(e[r]=e[t]);var a=n.replace,o=n.after,s=n.before;e[t]=function(){var e=arguments,t;return s&&s.apply(this,e),t=a?a.apply(this,e):i.apply(this,e),o&&o.apply(this,e),t}}function Yq(e,t){var n=qq+t;e[n]&&(e[t]=e[n],e[n]=null)}function Xq(e,t){for(var n=0;n<e.length;n++)for(var r=e[n],i=0;i<r.length;){var a=r[i],o=r[i+1];r[i++]=t[0]*a+t[2]*o+t[4],r[i++]=t[1]*a+t[3]*o+t[5]}}function Zq(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),i=yFe(Iq(n),Iq(r)),a=i[0],o=i[1],s=e.getComputedTransform(),c=t.getComputedTransform();function l(){this.transform=null}s&&Xq(a,s),c&&Xq(o,c),Jq(t,`updateTransform`,{replace:l}),t.transform=null;var u=SFe(a,o,10,Math.PI),d=[];Jq(t,`buildPath`,{replace:function(e){for(var n=t.__morphT,r=1-n,i=[],a=0;a<u.length;a++){var o=u[a],s=o.from,c=o.to,l=o.rotation*n,f=o.fromCp,p=o.toCp,m=Math.sin(l),h=Math.cos(l);Mw(i,f,p,n);for(var g=0;g<s.length;g+=2){var _=s[g],v=s[g+1],y=c[g],b=c[g+1],x=_*r+y*n,S=v*r+b*n;d[g]=x*h-S*m+i[0],d[g+1]=x*m+S*h+i[1]}var C=d[0],w=d[1];e.moveTo(C,w);for(var g=2;g<s.length;){var y=d[g++],b=d[g++],T=d[g++],E=d[g++],D=d[g++],O=d[g++];C===y&&w===b&&T===D&&E===O?e.lineTo(D,O):e.bezierCurveTo(y,b,T,E,D,O),C=D,w=O}}}})}function Qq(e,t,n){if(!e||!t)return t;var r=n.done,i=n.during;Zq(e,t),t.__morphT=0;function a(){Yq(t,`buildPath`),Yq(t,`updateTransform`),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},bC({during:function(e){t.dirtyShape(),i&&i(e)},done:function(){a(),r&&r()}},n)),t}function CFe(e,t,n,r,i,a){var o=16;e=i===n?0:Math.round(32767*(e-n)/(i-n)),t=a===r?0:Math.round(32767*(t-r)/(a-r));for(var s=0,c,l=(1<<o)/2;l>0;l/=2){var u=0,d=0;(e&l)>0&&(u=1),(t&l)>0&&(d=1),s+=l*l*(3*u^d),d===0&&(u===1&&(e=l-1-e,t=l-1-t),c=e,e=t,t=c)}return s}function $q(e){var t=1/0,n=1/0,r=-1/0,i=-1/0;return wC(wC(e,function(e){var a=e.getBoundingRect(),o=e.getComputedTransform(),s=a.x+a.width/2+(o?o[4]:0),c=a.y+a.height/2+(o?o[5]:0);return t=Math.min(s,t),n=Math.min(c,n),r=Math.max(s,r),i=Math.max(c,i),[s,c]}),function(a,o){return{cp:a,z:CFe(a[0],a[1],t,n,r,i),path:e[o]}}).sort(function(e,t){return e.z-t.z}).map(function(e){return e.path})}function eJ(e){return _Fe(e.path,e.count)}function tJ(){return{fromIndividuals:[],toIndividuals:[],count:0}}function wFe(e,t,n){var r=[];function i(e){for(var t=0;t<e.length;t++){var n=e[t];Kq(n)?i(n.childrenRef()):n instanceof aO&&r.push(n)}}i(e);var a=r.length;if(!a)return tJ();var o=(n.dividePath||eJ)({path:t,count:a});if(o.length!==a)return tJ();r=$q(r),o=$q(o);for(var s=n.done,c=n.during,l=n.individualDelay,u=new FT,d=0;d<a;d++){var f=r[d],p=o[d];p.parent=t,p.copyTransform(u),l||Zq(f,p)}t.__isCombineMorphing=!0,t.childrenRef=function(){return o};function m(e){for(var t=0;t<o.length;t++)o[t].addSelfToZr(e)}Jq(t,`addSelfToZr`,{after:function(e){m(e)}}),Jq(t,`removeSelfFromZr`,{after:function(e){for(var t=0;t<o.length;t++)o[t].removeSelfFromZr(e)}});function h(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Yq(t,`addSelfToZr`),Yq(t,`removeSelfFromZr`)}var g=o.length;if(l)for(var _=g,v=function(){_--,_===0&&(h(),s&&s())},d=0;d<g;d++){var y=l?bC({delay:(n.delay||0)+l(d,g,r[d],o[d]),done:v},n):n;Qq(r[d],o[d],y)}else t.__morphT=0,t.animateTo({__morphT:1},bC({during:function(e){for(var n=0;n<g;n++){var r=o[n];r.__morphT=t.__morphT,r.dirtyShape()}c&&c(e)},done:function(){h();for(var t=0;t<e.length;t++)Yq(e[t],`updateTransform`);s&&s()}},n));return t.__zr&&m(t.__zr),{fromIndividuals:r,toIndividuals:o,count:g}}function TFe(e,t,n){var r=t.length,i=[],a=n.dividePath||eJ;function o(e){for(var t=0;t<e.length;t++){var n=e[t];Kq(n)?o(n.childrenRef()):n instanceof aO&&i.push(n)}}if(Kq(e)){o(e.childrenRef());var s=i.length;if(s<r)for(var c=0,l=s;l<r;l++)i.push(YA(i[c++%s]));i.length=r}else{i=a({path:e,count:r});for(var u=e.getComputedTransform(),l=0;l<i.length;l++)i[l].setLocalTransform(u);if(i.length!==r)return tJ()}i=$q(i),t=$q(t);for(var d=n.individualDelay,l=0;l<r;l++){var f=d?bC({delay:(n.delay||0)+d(l,r,i[l],t[l])},n):n;Qq(i[l],t[l],f)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function nJ(e){return AC(e[0])}function rJ(e,t){for(var n=[],r=e.length,i=0;i<r;i++)n.push({one:e[i],many:[]});for(var i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)n[o%r].many.push(t[i][o])}for(var s=0,i=r-1;i>=0;i--)if(!n[i].many.length){var c=n[s].many;if(c.length<=1){if(s)s=0;else return n}var a=c.length,l=Math.ceil(a/2);n[i].many=c.slice(l,a),n[s].many=c.slice(0,l),s++}return n}var EFe={clone:function(e){for(var t=[],n=1-(1-e.path.style.opacity)**(1/e.count),r=0;r<e.count;r++){var i=YA(e.path);i.setStyle(`opacity`,n),t.push(i)}return t},split:null};function iJ(e,t,n,r,i,a){if(!e.length||!t.length)return;var o=jj(`update`,r,i);if(!(o&&o.duration>0))return;var s=r.getModel(`universalTransition`).get(`delay`),c=yC({setToFinal:!0},o),l,u;nJ(e)&&(l=e,u=t),nJ(t)&&(l=t,u=e);function d(e,t,r,i,o){var l=e.many,u=e.one;if(l.length===1&&!o){var f=t?l[0]:u,p=t?u:l[0];if(Kq(f))d({many:[f],one:p},!0,r,i,!0);else{var m=s?bC({delay:s(r,i)},c):c;Qq(f,p,m),a(f,p,f,p,m)}}else for(var h=bC({dividePath:EFe[n],individualDelay:s&&function(e,t,n,a){return s(e+r,i)}},c),g=t?wFe(l,u,h):TFe(u,l,h),_=g.fromIndividuals,v=g.toIndividuals,y=_.length,b=0;b<y;b++){var m=s?bC({delay:s(b,y)},c):c;a(_[b],v[b],t?l[b]:e.one,t?e.one:l[b],m)}}for(var f=l?l===e:e.length>t.length,p=l?rJ(u,l):rJ(f?t:e,[f?e:t]),m=0,h=0;h<p.length;h++)m+=p[h].many.length;for(var g=0,h=0;h<p.length;h++)d(p[h],f,g,m),g+=p[h].many.length}function aJ(e){if(!e)return[];if(AC(e)){for(var t=[],n=0;n<e.length;n++)t.push(aJ(e[n]));return t}var r=[];return e.traverse(function(e){e instanceof aO&&!e.disableMorphing&&!e.invisible&&!e.ignore&&r.push(e)}),r}var oJ=1e4,DFe=0,sJ=1,cJ=2,OFe=yk();function kFe(e,t){for(var n=e.dimensions,r=0;r<n.length;r++){var i=e.getDimensionInfo(n[r]);if(i&&i.otherDims[t]===0)return n[r]}}function AFe(e,t,n){var r=e.getDimensionInfo(n),i=r&&r.ordinalMeta;if(r){var a=e.get(r.name,t);return i&&i.categories[a]||a+``}}function lJ(e,t,n,r){var i=kFe(e,r?`itemChildGroupId`:`itemGroupId`);if(i)return AFe(e,t,i);var a=e.getRawDataItem(t),o=r?`childGroupId`:`groupId`;if(a&&a[o])return a[o]+``;if(!r)return n||e.getId(t)}function uJ(e){var t=[];return Z(e,function(e){var n=e.data,r=e.dataGroupId;if(!(n.count()>oJ))for(var i=n.getIndices(),a=0;a<i.length;a++)t.push({data:n,groupId:lJ(n,a,r,!1),childGroupId:lJ(n,a,r,!0),divide:e.divide,dataIndex:a})}),t}function dJ(e,t,n){e.traverse(function(e){e instanceof aO&&Pj(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})})}function fJ(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function pJ(e){e.stopAnimation(),e.isGroup&&e.traverse(function(e){e.stopAnimation()})}function jFe(e,t,n){var r=jj(`update`,n,t);r&&e.traverse(function(e){if(e instanceof pD){var t=twe(e);t&&e.animateFrom({style:t},r)}})}function MFe(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++){var i=e[r],a=t[r];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function mJ(e,t,n){var r=uJ(e),i=uJ(t);function a(e,t,n,r,i){(n||e)&&t.animateFrom({style:n&&n!==e?yC(yC({},n.style),e.style):e.style},i)}var o=!1,s=DFe,c=QC(),l=QC();Z(r,function(e){e.groupId&&c.set(e.groupId,!0),e.childGroupId&&l.set(e.childGroupId,!0)});for(var u=0;u<i.length;u++){var d=i[u].groupId;if(l.get(d)){s=sJ;break}var f=i[u].childGroupId;if(f&&c.get(f)){s=cJ;break}}function p(e,t){return function(n){var r=n.data,i=n.dataIndex;return t?r.getId(i):e?s===sJ?n.childGroupId:n.groupId:s===cJ?n.childGroupId:n.groupId}}var m=MFe(r,i),h={};if(!m)for(var u=0;u<i.length;u++){var g=i[u],_=g.data.getItemGraphicEl(g.dataIndex);_&&(h[_.id]=!0)}function v(e,t){var n=r[t],s=i[e],c=s.data.hostModel,l=n.data.getItemGraphicEl(n.dataIndex),u=s.data.getItemGraphicEl(s.dataIndex);l===u?u&&jFe(u,s.dataIndex,c):l&&h[l.id]||u&&(pJ(u),l?(pJ(l),fJ(l),o=!0,iJ(aJ(l),aJ(u),s.divide,c,e,a)):dJ(u,c,e))}new BM(r,i,p(!0,m),p(!1,m),null,`multiple`).update(v).updateManyToOne(function(e,t){var n=i[e],s=n.data,c=s.hostModel,l=s.getItemGraphicEl(n.dataIndex),u=EC(wC(t,function(e){return r[e].data.getItemGraphicEl(r[e].dataIndex)}),function(e){return e&&e!==l&&!h[e.id]});l&&(pJ(l),u.length?(Z(u,function(e){pJ(e),fJ(e)}),o=!0,iJ(aJ(u),aJ(l),n.divide,c,e,a)):dJ(l,c,n.dataIndex))}).updateOneToMany(function(e,t){var n=r[t],s=n.data.getItemGraphicEl(n.dataIndex);if(!(s&&h[s.id])){var c=EC(wC(e,function(e){return i[e].data.getItemGraphicEl(i[e].dataIndex)}),function(e){return e&&e!==s}),l=i[e[0]].data.hostModel;c.length&&(Z(c,function(e){return pJ(e)}),s?(pJ(s),fJ(s),o=!0,iJ(aJ(s),aJ(c),n.divide,l,e[0],a)):Z(c,function(t){return dJ(t,l,e[0])}))}}).updateManyToMany(function(e,t){new BM(t,e,function(e){return r[e].data.getId(r[e].dataIndex)},function(e){return i[e].data.getId(i[e].dataIndex)}).update(function(n,r){v(e[n],t[r])}).execute()}).execute(),o&&Z(t,function(e){var t=e.data.hostModel,r=t&&n.getViewOfSeriesModel(t),i=jj(`update`,t,0);r&&t.isAnimationEnabled()&&i&&i.duration>0&&r.group.traverse(function(e){e instanceof aO&&!e.animators.length&&e.animateFrom({style:{opacity:0}},i)})})}function hJ(e){return e.getModel(`universalTransition`).get(`seriesKey`)||e.id}function gJ(e){return AC(e)?e.sort().join(`,`):e}function _J(e){if(e.hostModel)return e.hostModel.getModel(`universalTransition`).get(`divideShape`)}function NFe(e,t){var n=QC(),r=QC(),i=QC();return Z(e.oldSeries,function(t,n){var a=e.oldDataGroupIds[n],o=e.oldData[n],s=hJ(t),c=gJ(s);r.set(c,{dataGroupId:a,data:o}),AC(s)&&Z(s,function(e){i.set(e,{key:c,dataGroupId:a,data:o})})}),Z(t.updatedSeries,function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get(`dataGroupId`),a=e.getData(),o=hJ(e),s=gJ(o),c=r.get(s);if(c)n.set(s,{oldSeries:[{dataGroupId:c.dataGroupId,divide:_J(c.data),data:c.data}],newSeries:[{dataGroupId:t,divide:_J(a),data:a}]});else if(AC(o)){var l=[];Z(o,function(e){var t=r.get(e);t.data&&l.push({dataGroupId:t.dataGroupId,divide:_J(t.data),data:t.data})}),l.length&&n.set(s,{oldSeries:l,newSeries:[{dataGroupId:t,data:a,divide:_J(a)}]})}else{var u=i.get(o);if(u){var d=n.get(u.key);d||(d={oldSeries:[{dataGroupId:u.dataGroupId,data:u.data,divide:_J(u.data)}],newSeries:[]},n.set(u.key,d)),d.newSeries.push({dataGroupId:t,data:a,divide:_J(a)})}}}}),n}function vJ(e,t){for(var n=0;n<e.length;n++)if(t.seriesIndex!=null&&t.seriesIndex===e[n].seriesIndex||t.seriesId!=null&&t.seriesId===e[n].id)return n}function PFe(e,t,n,r){var i=[],a=[];Z(lk(e.from),function(e){var n=vJ(t.oldSeries,e);n>=0&&i.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:_J(t.oldData[n]),groupIdDim:e.dimension})}),Z(lk(e.to),function(e){var r=vJ(n.updatedSeries,e);if(r>=0){var i=n.updatedSeries[r].getData();a.push({dataGroupId:t.oldDataGroupIds[r],data:i,divide:_J(i),groupIdDim:e.dimension})}}),i.length>0&&a.length>0&&mJ(i,a,r)}function FFe(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){Z(lk(n.seriesTransition),function(e){Z(lk(e.to),function(e){for(var t=n.updatedSeries,r=0;r<t.length;r++)(e.seriesIndex!=null&&e.seriesIndex===t[r].seriesIndex||e.seriesId!=null&&e.seriesId===t[r].id)&&(t[r][YF]=!0)})})}),e.registerUpdateLifecycle(`series:transition`,function(e,t,n){var r=OFe(t);if(r.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)Z(lk(i),function(e){PFe(e,r,n,t)});else{var a=NFe(r,n);Z(a.keys(),function(e){var n=a.get(e);mJ(n.oldSeries,n.newSeries,t)})}Z(n.updatedSeries,function(e){e.__universalTransitionEnabled&&(e[YF]=!1)})}for(var o=e.getSeries(),s=r.oldSeries=[],c=r.oldDataGroupIds=[],l=r.oldData=[],u=0;u<o.length;u++){var d=o[u].getData();d.count()<oJ&&(s.push(o[u]),c.push(o[u].get(`dataGroupId`)),l.push(d))}})}function IFe(){wje(LFe)}function LFe(e,t){Z(e,function(e){if(!e.model.get([`axisLabel`,`inside`])){var n=RFe(e);if(n){var r=e.isHorizontal()?`height`:`width`,i=e.model.get([`axisLabel`,`margin`]);t[r]-=n[r]+i,e.position===`top`?t.y+=n.height+i:e.position===`left`&&(t.x+=n.width+i)}}})}function RFe(e){var t=e.model,n=e.scale;if(!t.get([`axisLabel`,`show`])||n.isBlank())return;var r,i,a=n.getExtent();n instanceof AL?i=n.count():(r=n.getTicks(),i=r.length);var o=e.getLabelModel(),s=JL(e),c,l=1;i>40&&(l=Math.ceil(i/40));for(var u=0;u<i;u+=l){var d=s(r?r[u]:{value:a[0]+u},u),f=p(o.getTextRect(d),o.get(`rotate`)||0);c?c.union(f):c=f}return c;function p(e,t){var n=t*Math.PI/180,r=e.width,i=e.height,a=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),o=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n));return new Yw(e.x,e.y,a,o)}}function yJ(e,t,n){var r=aC.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=r.style;return o&&(o.position=`absolute`,o.left=`0`,o.top=`0`,o.width=i+`px`,o.height=a+`px`,r.setAttribute(`data-zr-dom-id`,e)),r.width=i*n,r.height=a*n,r}function bJ(e){return!e.__cursors.get(0)}function xJ(e){var t=e.__cursors.get(0);return{startIdx:t?t.startIdx:0,endIdx:t?t.endIdx:0}}var SJ=function(e){iC(t,e);function t(t,n,r){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.zlevel=0,i.zlevel2=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__prevIdx={startIdx:0,endIdx:0};var a;r||=JE,typeof t==`string`?a=yJ(t,n,r):FC(t)&&(a=t,t=a.id),i.id=t,i.dom=a;var o=a.style;return o&&(ew(a),a.onselectstart=function(){return!1},o.padding=`0`,o.margin=`0`,o.borderWidth=`0`),i.painter=n,i.dpr=r,i}return t.prototype.afterBrush=function(){this.__prevIdx=xJ(this)},t.prototype.initContext=function(){this.ctx=this.dom.getContext(`2d`),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=yJ(`back-`+this.id,this.painter,e),this.ctxBack=this.domBack.getContext(`2d`),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i=[],a=this.maxRepaintRectCount,o=!1,s=new Yw(0,0,0,0);function c(e){if(e.isFinite()&&!e.isZero()){if(i.length===0){var t=new Yw(0,0,0,0);t.copy(e),i.push(t)}else{for(var n=!1,r=1/0,c=0,l=0;l<i.length;++l){var u=i[l];if(u.intersect(e)){var d=new Yw(0,0,0,0);d.copy(u),d.union(e),i[l]=d,n=!0;break}if(o){s.copy(e),s.union(u);var f=e.width*e.height,p=u.width*u.height,m=s.width*s.height-f-p;m<r&&(r=m,c=l)}}if(o&&(i[c].union(e),n=!0),!n){var t=new Yw(0,0,0,0);t.copy(e),i.push(t)}o||=i.length>=a}}}for(var l=xJ(this),u=l.startIdx;u<l.endIdx;++u){var d=e[u];if(d){var f=d.shouldBePainted(n,r,!0,!0),p=d.__isRendered&&(d.__dirty&1||!f)?d.getPrevPaintRect():null;p&&c(p);var m=f&&(d.__dirty&1||!d.__isRendered)?d.getPaintRect():null;m&&c(m)}}for(var h=this.__prevIdx,u=h.startIdx;u<h.endIdx;++u){var d=t[u],f=d&&d.shouldBePainted(n,r,!0,!0);if(d&&(!f||!d.__zr)&&d.__isRendered){var p=d.getPrevPaintRect();p&&c(p)}}var g;do{g=!1;for(var u=0;u<i.length;)if(i[u].isZero())i.splice(u,1);else{for(var _=u+1;_<i.length;)i[u].intersect(i[_])?(g=!0,i[u].union(i[_]),i.splice(_,1)):_++;u++}}while(g);return this._paintRects=i,i},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,a=this.domBack;i&&(i.width=e+`px`,i.height=t+`px`),r.width=e*n,r.height=t*n,a&&(a.width=e*n,a.height=t*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,a=r.width,o=r.height;t||=this.clearColor;var s=this.motionBlur&&!e,c=this.lastFrameAlpha,l=this.dpr,u=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation=`copy`,this.ctxBack.drawImage(r,0,0,a/l,o/l));var d=this.domBack;function f(e,n,r,a){if(i.clearRect(e,n,r,a),t&&t!==`transparent`){var o=void 0;zC(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||xH(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):Ibe(t)&&(t.scaleX=t.scaleX||l,t.scaleY=t.scaleY||l,o=AH(i,t,{dirty:function(){u.setUnpainted(),u.painter.refresh()}})),i.save(),i.fillStyle=o||t,i.fillRect(e,n,r,a),i.restore()}s&&(i.save(),i.globalAlpha=c,i.drawImage(d,e,n,r,a),i.restore())}!n||s?f(0,0,a,o):n.length&&Z(n,function(e){f(e.x*l,e.y*l,e.width*l,e.height*l)})},t}(KE),CJ=1e5,wJ=314159,TJ=void 0,zFe=1,EJ=2;function BFe(e){return e?e.__builtin__?!0:typeof e.resize==`function`&&typeof e.refresh==`function`:!1}function VFe(e,t){var n=document.createElement(`div`);return n.style.cssText=[`position:relative`,`width:`+e+`px`,`height:`+t+`px`,`padding:0`,`margin:0`,`border-width:0`].join(`;`)+`;`,n}function DJ(e,t,n,r){var i=new SJ(e,t,t.dpr);return i.zlevel=n,i.zlevel2=r,i.__builtin__=!0,OJ(i),i}function OJ(e){e.__cursorStack=[],e.__cursors=QC()}function HFe(e){return e.startIdx=e.drawIdx=e.endIdx=e.endIdxNew=0,e.used=!1,e.first=e.last=NaN,e.notClearIdx=-1,e}function UFe(e,t){var n=e.__cursors,r=+t;return n.get(r)||(e.__cursorStack.push(r),n.set(r,HFe({key:r})))}function kJ(e,t){for(var n=e.__cursorStack,r=0;r<n.length;r++)t(e.__cursors.get(n[r]))}function AJ(e,t){var n=e.layers;return n[t]||(n[t]=[,,,])}function jJ(e,t,n){for(var r=e.layerStack,i=0;i<r.length;i++){var a=r[i].zl,o=r[i].zl2,s=e.layers[a][o];n&&(n&MJ&&!s.__builtin__||n&NJ&&s.__builtin__||n&PJ&&s===e.hoverlayer)||t(s,a,o,i)}}var MJ=1,NJ=2,PJ=4,FJ=MJ|PJ,WFe=function(){function e(e,t,n,r){this.type=`canvas`,this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type=`canvas`,this._i={layerStack:[],layers:[]};var i=!e.nodeName||e.nodeName.toUpperCase()===`CANVAS`;if(this._opts=n=yC({},n||{}),this.dpr=n.devicePixelRatio||JE,this._singleCanvas=i,this.root=e,e.style&&(ew(e),e.innerHTML=``),this.storage=t,this._prevDisplayList=[],i){var a=e,o=a.width,s=a.height;n.width!=null&&(o=n.width),n.height!=null&&(s=n.height),this.dpr=n.devicePixelRatio||1,a.width=o*this.dpr,a.height=s*this.dpr,this._width=o,this._height=s;var c=DJ(a,this,wJ,0);c.initContext(),this._insertLayer(c,wJ,0,!0),this._domRoot=e}else{this._width=CH(e,0,n),this._height=CH(e,1,n);var l=this._domRoot=VFe(this._width,this._height);e.appendChild(l)}}return e.prototype.getType=function(){return`canvas`},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=e&&!FC(e)?{paintAll:!!e}:e||{},n=HC(t.refresh,!0),r=HC(t.refreshHover,!1);if(r&&(this._hoverLayerDirty=EJ),!n)return r&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var i=this.storage.getDisplayList(!0);this._updateLayerStatus(i,t.paintAll),this._redrawId=Math.random();var a=this._prevDisplayList;this._paintList(i,a,this._redrawId);var o=this._backgroundColor;return jJ(this._i,function(e,t,n,r){e.refresh&&e.refresh(r===0?o:null)},NJ),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},e.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=TJ,n!==TJ&&(!t&&n===EJ&&(t=this._i.hoverlayer=this._ensureLayer(CJ)),t)){t.clear();for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},i,a=0,o=e.length;a<o;a++){var s=e[a];if(s.__inHover){i||(i=t.ctx,i.save());var c=s.__hoverStyle,l=void 0;c&&(l=s.style,s.style=c),HH(i,s,r),c&&(s.style=l)}}i&&(UH(i,r),i.restore())}},e.prototype.getHoverLayer=function(){return this._ensureLayer(CJ)},e.prototype.paintOne=function(e,t){VH(e,t)},e.prototype._paintList=function(e,t,n){if(this._redrawId===n){var r=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),r)jJ(this._i,function(e){e.afterBrush&&e.afterBrush()},FJ),this._paintHoverList(e);else{var i=this;iV(function(){i._paintList(e,t,n)})}}},e.prototype._compositeManually=function(){var e=this._ensureLayer(wJ).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),jJ(this._i,function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)},MJ)},e.prototype._doPaintList=function(e,t){var n=this,r=!0;return jJ(this._i,function(i){var a=!1;if(kJ(i,function(e){(e.drawIdx<e.endIdx||e.notClearIdx>=0)&&(a=!0)}),a||i.__dirty){var o=n._opts.useDirtyRect&&!bJ(i)?i.createRepaintRects(e,t,n._width,n._height):null,s=n._i.layerStack[0],c=!0;if(i.__dirty){c=!1,i.__dirty=!1;var l=i.zlevel===s.zl&&i.zlevel2===s.zl2?n._backgroundColor:null;i.clear(!1,l,o)}kJ(i,function(t){var a=n._paintPerCursor(i,t,e,o,c);r&&=a})}},FJ),rw.wxa&&jJ(this._i,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),r},e.prototype._paintPerCursor=function(e,t,n,r,i){var a=e.ctx;if(r){if(!r.length)t.drawIdx=t.endIdx;else for(var o=this.dpr,s=0;s<r.length;++s){var c=r[s];a.save(),a.beginPath(),a.rect(c.x*o,c.y*o,c.width*o,c.height*o),a.clip(),this._paintPerCursorInRect(e,t,n,c,i),a.restore()}}else a.save(),this._paintPerCursorInRect(e,t,n,null,i),a.restore();return t.drawIdx>=t.endIdx},e.prototype._paintPerCursorInRect=function(e,t,n,r,i){for(var a={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},o=e.ctx,s=bJ(e),c=s&&aC.getTime(),l=t.drawIdx,u=t.notClearIdx,d=u>=0?Math.min(u,l):l;d<t.endIdx;d++){var f=n[d];if(!(d<l&&!f.notClear)){if(f.__inHover&&(this._hoverLayerDirty=EJ),r!=null){var p=f.getPaintRect();p&&p.intersect(r)&&(HH(o,f,a),f.setPrevPaintRect(p))}else HH(o,f,a);if(s&&aC.getTime()-c>15){d++;break}}}UH(o,a),t.drawIdx=Math.max(d,l)},e.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},e.prototype._ensureLayer=function(e,t,n){t||=0;var r=this._singleCanvas;r&&!this._needsManuallyCompositing&&(e=wJ,t=0);var i=AJ(this._i,e)[t];return i||(i=DJ(`zr_`+e+`.`+t,this,e,t),this._layerConfig[e]&&vC(i,this._layerConfig[e],!0),(n||r&&e!==wJ)&&(i.virtual=!0),this._insertLayer(i,e,t,!1),i.initContext()),i},e.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},e.prototype._insertLayer=function(e,t,n,r){var i=this._i,a=i.layers,o=i.layerStack,s=this._domRoot,c=null;if(!(a[t]&&a[t][n])&&BFe(e)){for(var l=o.length,u=0;u<l&&(o[u].zl<t||o[u].zl===t&&o[u].zl2<n);)u++;if(u>0&&(c=AJ(i,o[u-1].zl)[o[u-1].zl2]),o.splice(u,0,{zl:t,zl2:n}),AJ(i,t)[n]=e,!r&&!e.virtual){if(c){var d=c.dom;d.nextSibling?s.insertBefore(e.dom,d.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom)}e.painter||=this}},e.prototype.eachLayer=function(e,t){return jJ(this._i,function(n,r){e.call(t,n,r)})},e.prototype.eachBuiltinLayer=function(e,t){return jJ(this._i,function(n,r){e.call(t,n,r)},MJ)},e.prototype.eachOtherLayer=function(e,t){return jJ(this._i,function(n,r){e.call(t,n,r)},NJ)},e.prototype.getLayers=function(){var e={};return jJ(this._i,function(t,n,r){e[t.id]=t}),e},e.prototype._updateLayerStatus=function(e,t){var n=this;if(n._singleCanvas)for(var r=1;r<e.length;r++){var i=e[r];if(i.zlevel!==e[r-1].zlevel||i.incremental){n._needsManuallyCompositing=!0;break}}jJ(n._i,function(e){e.__dirty=!1,kJ(e,function(e){e.used=!1,e.endIdxNew=0,e.notClearIdx=-1})},FJ);for(var a,o=null,s=null,c=!1,l=0,u=e.length;l<u;l++){var i=e[l],d=i.zlevel,f=i.incremental,p=void 0;if(a!==d&&(a=d,c=!1),f?(c=!0,p=1):p=c?2:0,(!o||d!==o.zlevel||p!==o.zlevel2)&&(o=n._ensureLayer(d,p),s=null,!o.__builtin__))gC(`ZLevel `+d+` has been used by unknown layer `+o.id);else{if((!s||f!==s.key)&&(s=UFe(o,f),!s.used)){if(s.used=!0,!t&&s.first===i.id){var m=l-s.startIdx;s.startIdx=l,s.drawIdx+=m,s.endIdx+=m}else o.__dirty=!0,s.first=i.id,s.startIdx=s.drawIdx=l,s.endIdx=l+1}s.endIdxNew=l+1,i.__dirty&1&&!i.__inHover&&((!f||!i.notClear&&l<s.drawIdx)&&(o.__dirty=!0),f&&i.notClear&&s.notClearIdx<0&&(s.notClearIdx=l))}}jJ(n._i,function(t){for(var r=t.__cursorStack,i=t.__cursors,a=r.length-1;a>=0;a--){var o=i.get(r[a]);if(!o.used)t.__dirty=!0,i.removeKey(r[a]),r.splice(a,1);else{var s=o.endIdxNew;(bJ(t)?s<o.drawIdx:s!==o.endIdx||!s||e[s-1].id!==o.last)&&(t.__dirty=!0),o.endIdx=o.endIdxNew,o.last=s?e[s-1].id:NaN}}t.__dirty&&(kJ(t,function(e){e.drawIdx=e.startIdx}),n._hoverLayerDirty===TJ&&(n._hoverLayerDirty=zFe))},FJ)},e.prototype.clear=function(){return jJ(this._i,function(e){e.clear(),OJ(e)},MJ),this},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,jJ(this._i,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?vC(n[e],t,!0):n[e]=t,jJ(this._i,function(e,t){vC(e,n[t],!0)})}},e.prototype.delLayer=function(e){for(var t=this._i.layerStack,n=this._i.layers,r=t.length-1;r>=0;r--){var i=t[r];if(i.zl===e){var a=n[e][i.zl2];if(a.__builtin__)continue;if(t.splice(r,1),n[e][i.zl2]=void 0,!a.virtual){var o=a.dom.parentNode;o&&o.removeChild(a.dom)}}}},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display=`none`;var r=this._opts,i=this.root;e!=null&&(r.width=e),t!=null&&(r.height=t),e=CH(i,0,r),t=CH(i,1,r),n.style.display=``,(this._width!==e||t!==this._height)&&(n.style.width=e+`px`,n.style.height=t+`px`,jJ(this._i,function(n){n.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer(wJ).resize(e,t)}return this},e.prototype.clearLayer=function(e){Z(this._i.layers[e],function(e){e&&!e.__builtin__&&e.clear()})},e.prototype.dispose=function(){this.root.innerHTML=``,this.root=this.storage=this._domRoot=this._i=null},e.prototype.getRenderedCanvas=function(e){if(e||={},this._singleCanvas&&!this._compositeManually)return this._i.layers[wJ][0].dom;var t=new SJ(`image`,this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;jJ(this._i,function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else{for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o=this.storage.getDisplayList(!0),s=0,c=o.length;s<c;s++){var l=o[s];HH(n,l,a)}UH(n,a)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function GFe(e){e.registerPainter(`canvas`,WFe)}var IJ=Symbol(`ray-ui-services`),KFe=e=>Oe(IJ,e),LJ=()=>et()?pe(IJ,{}):{},RJ=Y({name:`RIcon`,props:{color:{type:String,default:`currentColor`},prefix:{type:String,default:`icon`},name:{type:String,required:!0},size:{type:[Number,String],default:20},width:{type:[Number,String],default:0},height:{type:[Number,String],default:0},customClassName:{type:String,default:null},depth:{type:Number,default:1},cursor:{type:String,default:`inherit`},onClick:{type:[Function,Array],default:null}},setup(e){let{iconUrl:t}=LJ(),n=V(()=>t?.(e.name,e.prefix)),r=p(),i=V(()=>r.value?.getIconAsset(e.name));return Ve(async()=>{t||(r.value=await Lr(()=>import(`./assets-tTkNmDC5.js`),[]))}),{symbolId:n,asset:i,cssVars:V(()=>({"--r-icon-width":e.width?US(e.width):US(e.size),"--r-icon-height":e.height?US(e.height):US(e.size),"--r-icon-depth":e.depth,"--r-icon-cursor":e.cursor,"--r-icon-color":e.color})),iconClick:t=>{let{onClick:n}=e;n&&WS(n,t)}}},render(){return J(`span`,{class:[`r-icon`,this.customClassName],style:[this.cssVars],onClick:this.iconClick},[J(`svg`,I({viewBox:this.asset?.viewBox,innerHTML:this.asset?.body,fill:this.color},{RIconAttribute:`r-icon`,"aria-hidden":!0}),[this.symbolId?J(`use`,{href:this.symbolId,fill:this.color},null):null])])}}),qFe={...Ap,icon:{type:String,default:`action/more`},iconSize:{type:Number},cursor:{type:String,default:`inherit`}};function JFe(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!wn(e)}var zJ=Y({name:`RMoreDropdown`,props:qFe,render(){let e,{iconSize:t,cursor:n,icon:r}=this,{default:i}=this.$slots;return J(jp,I(this.$props,this.$attrs,{placement:`bottom-start`}),JFe(e=GS(i,{defaultElement:J(RJ,{name:r,size:t,cursor:n},null)}))?e:{default:()=>[e]})}}),YFe=Symbol(`USE_CHART_PROVIDER_KEY`),XFe=$r({backgroundColor:()=>VJ,bar:()=>KJ,boxplot:()=>YJ,candlestick:()=>eY,categoryAxis:()=>iY,color:()=>BJ,dataZoom:()=>pY,default:()=>ZFe,funnel:()=>QJ,gauge:()=>$J,geo:()=>rY,graph:()=>tY,legend:()=>lY,line:()=>WJ,logAxis:()=>oY,map:()=>nY,markPoint:()=>mY,parallel:()=>XJ,pie:()=>qJ,radar:()=>GJ,sankey:()=>ZJ,scatter:()=>JJ,textStyle:()=>HJ,timeAxis:()=>sY,timeline:()=>dY,title:()=>UJ,toolbox:()=>cY,tooltip:()=>uY,valueAxis:()=>aY,visualMap:()=>fY}),BJ=[`#fc97af`,`#87f7cf`,`#f7f494`,`#72ccff`,`#f7c5a0`,`#d4a4eb`,`#d2f5a6`,`#76f2f2`,`#9b8bba`,`#e098c7`,`#8fd3e8`,`#71669e`,`#cc70af`,`#7cb4cc`,`#7EC4FF`,`#5FCBB0`,`#49C4BF`,`#F0C9CA`,`#34DC90`,`#3295E0`,`#EAB62E`,`#76C3F3`,`#2DC2C0`,`#FCC43F`,`#84CFFF`],VJ=`transparent`,HJ={},UJ={textStyle:{color:`#ffffff`},subtextStyle:{color:`#dddddd`}},WJ={itemStyle:{borderWidth:`4`},lineStyle:{width:`3`},symbolSize:`0`,symbol:`circle`,smooth:!0},GJ={itemStyle:{borderWidth:`4`},lineStyle:{width:`3`},symbolSize:`0`,symbol:`circle`,smooth:!0},KJ={itemStyle:{barBorderWidth:0,barBorderColor:`#ccc`}},qJ={itemStyle:{borderWidth:0,borderColor:`#ccc`}},JJ={itemStyle:{borderWidth:0,borderColor:`#ccc`}},YJ={itemStyle:{borderWidth:0,borderColor:`#ccc`}},XJ={itemStyle:{borderWidth:0,borderColor:`#ccc`}},ZJ={itemStyle:{borderWidth:0,borderColor:`#ccc`}},QJ={itemStyle:{borderWidth:0,borderColor:`#ccc`}},$J={itemStyle:{borderWidth:0,borderColor:`#ccc`}},eY={itemStyle:{color:`#fc97af`,color0:`transparent`,borderColor:`#fc97af`,borderColor0:`#87f7cf`,borderWidth:`2`}},tY={itemStyle:{borderWidth:0,borderColor:`#ccc`},lineStyle:{width:`1`,color:`#ffffff`},symbolSize:`0`,symbol:`circle`,smooth:!0,color:[`#fc97af`,`#87f7cf`,`#f7f494`,`#72ccff`,`#f7c5a0`,`#d4a4eb`,`#d2f5a6`,`#76f2f2`],label:{color:`#293441`}},nY={itemStyle:{areaColor:`#f3f3f3`,borderColor:`#999999`,borderWidth:.5},label:{color:`#893448`},emphasis:{itemStyle:{areaColor:`rgba(255,178,72,1)`,borderColor:`#eb8146`,borderWidth:1},label:{color:`rgb(137,52,72)`}}},rY={itemStyle:{areaColor:`#f3f3f3`,borderColor:`#999999`,borderWidth:.5},label:{color:`#893448`},emphasis:{itemStyle:{areaColor:`rgba(255,178,72,1)`,borderColor:`#eb8146`,borderWidth:1},label:{color:`rgb(137,52,72)`}}},iY={axisLine:{show:!0,lineStyle:{color:`#666666`}},axisTick:{show:!1,lineStyle:{color:`#333`}},axisLabel:{show:!0,color:`#aaaaaa`},splitLine:{show:!1,lineStyle:{color:[`#e6e6e6`]}},splitArea:{show:!1,areaStyle:{color:[`rgba(250,250,250,0.05)`,`rgba(200,200,200,0.02)`]}}},aY={axisLine:{show:!0,lineStyle:{color:`#666666`}},axisTick:{show:!1,lineStyle:{color:`#333`}},axisLabel:{show:!0,color:`#aaaaaa`},splitLine:{show:!1,lineStyle:{color:[`#e6e6e6`]}},splitArea:{show:!1,areaStyle:{color:[`rgba(250,250,250,0.05)`,`rgba(200,200,200,0.02)`]}}},oY={axisLine:{show:!0,lineStyle:{color:`#666666`}},axisTick:{show:!1,lineStyle:{color:`#333`}},axisLabel:{show:!0,color:`#aaaaaa`},splitLine:{show:!1,lineStyle:{color:[`#e6e6e6`]}},splitArea:{show:!1,areaStyle:{color:[`rgba(250,250,250,0.05)`,`rgba(200,200,200,0.02)`]}}},sY={axisLine:{show:!0,lineStyle:{color:`#666666`}},axisTick:{show:!1,lineStyle:{color:`#333`}},axisLabel:{show:!0,color:`#aaaaaa`},splitLine:{show:!1,lineStyle:{color:[`#e6e6e6`]}},splitArea:{show:!1,areaStyle:{color:[`rgba(250,250,250,0.05)`,`rgba(200,200,200,0.02)`]}}},cY={iconStyle:{borderColor:`#999999`},emphasis:{iconStyle:{borderColor:`#666666`}}},lY={textStyle:{color:`#999999`},pageTextStyle:{color:`#999999`}},uY={axisPointer:{lineStyle:{color:`#cccccc`,width:1},crossStyle:{color:`#cccccc`,width:1}}},dY={lineStyle:{color:`#87f7cf`,width:1},itemStyle:{color:`#87f7cf`,borderWidth:1},controlStyle:{color:`#87f7cf`,borderColor:`#87f7cf`,borderWidth:.5},checkpointStyle:{color:`#fc97af`,borderColor:`#fc97af`},label:{color:`#87f7cf`},emphasis:{itemStyle:{color:`#f7f494`},controlStyle:{color:`#87f7cf`,borderColor:`#87f7cf`,borderWidth:.5},label:{color:`#87f7cf`}}},fY={color:[`#fc97af`,`#87f7cf`]},pY={backgroundColor:`rgba(255,255,255,0)`,dataBackgroundColor:`rgba(114,204,255,1)`,fillerColor:`rgba(114,204,255,0.2)`,handleColor:`#72ccff`,handleSize:`100%`,textStyle:{color:`#333333`}},mY={label:{color:`#293441`},emphasis:{label:{color:`#293441`}}},ZFe={color:BJ,backgroundColor:VJ,textStyle:HJ,title:UJ,line:WJ,radar:GJ,bar:KJ,pie:qJ,scatter:JJ,boxplot:YJ,parallel:XJ,sankey:ZJ,funnel:QJ,gauge:$J,candlestick:eY,graph:tY,map:nY,geo:rY,categoryAxis:iY,valueAxis:aY,logAxis:oY,timeAxis:sY,toolbox:cY,legend:lY,tooltip:uY,timeline:dY,visualMap:fY,dataZoom:pY,markPoint:mY},QFe=$r({backgroundColor:()=>gY,bar:()=>xY,boxplot:()=>wY,candlestick:()=>kY,categoryAxis:()=>NY,color:()=>hY,dataZoom:()=>HY,default:()=>$Fe,funnel:()=>DY,gauge:()=>OY,geo:()=>MY,graph:()=>AY,legend:()=>RY,line:()=>yY,logAxis:()=>FY,map:()=>jY,markPoint:()=>UY,parallel:()=>TY,pie:()=>SY,radar:()=>bY,sankey:()=>EY,scatter:()=>CY,textStyle:()=>_Y,timeAxis:()=>IY,timeline:()=>BY,title:()=>vY,toolbox:()=>LY,tooltip:()=>zY,valueAxis:()=>PY,visualMap:()=>VY}),hY=`#2ec7c9.#b6a2de.#5ab1ef.#ffb980.#d87a80.#8d98b3.#e5cf0d.#97b552.#95706d.#dc69aa.#07a2a4.#9a7fd1.#588dd5.#f5994e.#c05050.#59678c.#c9ab00.#7eb00a.#6f5553.#c14089.#516b91.#59c4e6.#edafda.#93b7e3.#a5e7f0.#cbb0e3`.split(`.`),gY=`transparent`,_Y={},vY={textStyle:{color:`#008acd`},subtextStyle:{color:`#aaaaaa`}},yY={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:`emptyCircle`,smooth:!0},bY={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:`emptyCircle`,smooth:!0},xY={itemStyle:{barBorderWidth:0,barBorderColor:`#ccc`}},SY={itemStyle:{borderWidth:0,borderColor:`#ccc`}},CY={itemStyle:{borderWidth:0,borderColor:`#ccc`}},wY={itemStyle:{borderWidth:0,borderColor:`#ccc`}},TY={itemStyle:{borderWidth:0,borderColor:`#ccc`}},EY={itemStyle:{borderWidth:0,borderColor:`#ccc`}},DY={itemStyle:{borderWidth:0,borderColor:`#ccc`}},OY={itemStyle:{borderWidth:0,borderColor:`#ccc`}},kY={itemStyle:{color:`#d87a80`,color0:`#2ec7c9`,borderColor:`#d87a80`,borderColor0:`#2ec7c9`,borderWidth:1}},AY={itemStyle:{borderWidth:0,borderColor:`#ccc`},lineStyle:{width:1,color:`#aaa`},symbolSize:3,symbol:`emptyCircle`,smooth:!0,color:[`#2ec7c9`,`#b6a2de`,`#5ab1ef`,`#ffb980`,`#d87a80`,`#8d98b3`,`#e5cf0d`,`#97b552`,`#95706d`,`#dc69aa`,`#07a2a4`,`#9a7fd1`,`#588dd5`,`#f5994e`,`#c05050`,`#59678c`,`#c9ab00`,`#7eb00a`,`#6f5553`,`#c14089`],label:{color:`#eee`}},jY={itemStyle:{areaColor:`#dddddd`,borderColor:`#eeeeee`,borderWidth:.5},label:{color:`#d87a80`},emphasis:{itemStyle:{areaColor:`rgba(254,153,78,1)`,borderColor:`#444`,borderWidth:1},label:{color:`rgb(100,0,0)`}}},MY={itemStyle:{areaColor:`#dddddd`,borderColor:`#eeeeee`,borderWidth:.5},label:{color:`#d87a80`},emphasis:{itemStyle:{areaColor:`rgba(254,153,78,1)`,borderColor:`#444`,borderWidth:1},label:{color:`rgb(100,0,0)`}}},NY={axisLine:{show:!0,lineStyle:{color:`#008acd`}},axisTick:{show:!0,lineStyle:{color:`#333`}},axisLabel:{show:!0,color:`#333`},splitLine:{show:!1,lineStyle:{color:[`#eee`]}},splitArea:{show:!1,areaStyle:{color:[`rgba(250,250,250,0.3)`,`rgba(200,200,200,0.3)`]}}},PY={axisLine:{show:!0,lineStyle:{color:`#008acd`}},axisTick:{show:!0,lineStyle:{color:`#333`}},axisLabel:{show:!0,color:`#333`},splitLine:{show:!0,lineStyle:{color:[`#eee`]}},splitArea:{show:!0,areaStyle:{color:[`rgba(250,250,250,0.3)`,`rgba(200,200,200,0.3)`]}}},FY={axisLine:{show:!0,lineStyle:{color:`#008acd`}},axisTick:{show:!0,lineStyle:{color:`#333`}},axisLabel:{show:!0,color:`#333`},splitLine:{show:!0,lineStyle:{color:[`#eee`]}},splitArea:{show:!0,areaStyle:{color:[`rgba(250,250,250,0.3)`,`rgba(200,200,200,0.3)`]}}},IY={axisLine:{show:!0,lineStyle:{color:`#008acd`}},axisTick:{show:!0,lineStyle:{color:`#333`}},axisLabel:{show:!0,color:`#333`},splitLine:{show:!0,lineStyle:{color:[`#eee`]}},splitArea:{show:!1,areaStyle:{color:[`rgba(250,250,250,0.3)`,`rgba(200,200,200,0.3)`]}}},LY={iconStyle:{borderColor:`#2ec7c9`},emphasis:{iconStyle:{borderColor:`#18a4a6`}}},RY={textStyle:{color:`#333333`}},zY={axisPointer:{lineStyle:{color:`#008acd`,width:`1`},crossStyle:{color:`#008acd`,width:`1`}}},BY={lineStyle:{color:`#008acd`,width:1},itemStyle:{color:`#008acd`,borderWidth:1},controlStyle:{color:`#008acd`,borderColor:`#008acd`,borderWidth:.5},checkpointStyle:{color:`#2ec7c9`,borderColor:`#2ec7c9`},label:{color:`#008acd`},emphasis:{itemStyle:{color:`#a9334c`},controlStyle:{color:`#008acd`,borderColor:`#008acd`,borderWidth:.5},label:{color:`#008acd`}}},VY={color:[`#5ab1ef`,`#e0ffff`]},HY={backgroundColor:`rgba(47,69,84,0)`,dataBackgroundColor:`#efefff`,fillerColor:`rgba(182,162,222,0.2)`,handleColor:`#008acd`,handleSize:`100%`,textStyle:{color:`#333333`}},UY={label:{color:`#eee`},emphasis:{label:{color:`#eee`}}},$Fe={color:hY,backgroundColor:gY,textStyle:_Y,title:vY,line:yY,radar:bY,bar:xY,pie:SY,scatter:CY,boxplot:wY,parallel:TY,sankey:EY,funnel:DY,gauge:OY,candlestick:kY,graph:AY,map:jY,geo:MY,categoryAxis:NY,valueAxis:PY,logAxis:FY,timeAxis:IY,toolbox:LY,legend:RY,tooltip:zY,timeline:BY,visualMap:VY,dataZoom:HY,markPoint:UY},eIe=()=>{let e=Object.assign({"../themes/macarons/macarons-dark.json":XFe,"../themes/macarons/macarons.json":QFe}),t=/\/([^/]+)\.json$/;return Object.keys(e).reduce((n,r)=>{let i=r.match(t)?.[1];if(i)return n.push({name:i,theme:e[r].default}),n;throw Error(`[RChart Theme Error]: name ${r} is invalid!`)},[])},WY=(e,t=!1)=>Object.assign({},e,{text:`loading`,color:`#c23531`,textColor:t?`#fff`:`#000`,maskColor:t?`rgba(0, 0, 0, 0.8)`:`rgba(255, 255, 255, 0.8)`,zlevel:0,fontSize:12,showSpinner:!0,spinnerRadius:10,lineWidth:5,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`}),GY=()=>({notMerge:!0,lazyUpdate:!0,silent:!1,replaceMerge:[]}),tIe={intersectionObserver:{type:Boolean,default:!0},intersectionObserverTarget:{type:Object,default:null},intersectionOptions:{type:Object,default:{threshold:.1}},bordered:{type:Boolean,default:!0},downloadOptions:{type:Object,default:()=>({})},onDropdownSelect:{type:[Function,Array]},dropdownOptions:{type:Array},preset:{type:String},contentStyle:{type:[String,Object]},title:{type:[String,Function]},width:{type:[String,Number],default:`100%`},height:{type:[String,Number],default:`100%`},autoResize:{type:Boolean,default:!0},showAria:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},onFinally:{type:[Function,Array],default:null},theme:{type:String,default:null},autoChangeTheme:{type:Boolean,default:!0},use:{type:Array,default:()=>[]},watchOptions:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingOptions:{type:Object,default:()=>WY()},autoResizeObserverTarget:{type:Object,default:null},watchOptionsThrottleWait:{type:Number,default:500},watchDeep:{type:Boolean,default:!0},nextTick:{type:Boolean,default:!0},setChartOptions:{type:Object,default:()=>GY()},onRegister:{type:[Function,Array],default:null}},nIe=eIe(),KY=`__R_CHART_DOWN_LOAD_CHART__`;nIe.forEach(e=>{qU(e.name,e.theme)});var rIe=Y({name:`RChart`,props:tIe,setup(e,{expose:t}){let{dark:n,chartTheme:r=`macarons`}=LJ(),i=V(()=>n?.()??!1),a=lt(`chartRef`),o=lt(`rayChartWrapperRef`),s=p(),c,l,u,d=V(()=>[{label:`下载图片`,key:KY,disabled:!(s.value&&s.value.getDom())}]),f=V(()=>({"--r-chart-width":US(e.width),"--r-chart-height":US(e.height)})),m=N(!1),h,g={aria:e.showAria},_=pe(YFe,{}),v=async()=>{iW([APe,DPe,gNe,cFe,aFe,VPe,cPe,KPe]),iW([EOe,WEe,KOe,MMe,Vje,UMe]),iW([IFe,FFe]),iW([GFe]);try{iW(e.use?.filter(Boolean))}catch{}},y=()=>{let{theme:t}=_||{};if(s.value&&C(),t)x(t);else if(e.theme==="default")e.autoChangeTheme?x(`dark`):x(``);else if(e.theme)x(e.theme);else{let t=e.autoChangeTheme&&i.value?`${r}-dark`:r;x(t)}},b=t=>{let n=M(t);return n=(e=>Object.assign({},n,e))({aria:{enabled:e.showAria,decal:{show:e.showAria}}}),n},x=(t=r)=>{let n=a.value,i=b(e.options),{height:o,width:c}=n.getBoundingClientRect(),{onSuccess:l,onError:u}=e;try{s.value=YAe(n,t,{width:c===0?200:void 0,height:o===0?200:void 0}),l&&WS(l,s.value);let{nextTick:r}=e;r?he(()=>{i&&s.value?.setOption(i)}):i&&s.value?.setOption(i)}catch(e){throw u&&WS(u),Error(`[RChart render error]: ${e}`,{cause:e})}finally{let{onFinally:t}=e;t&&WS(t)}},S=()=>!!s.value?.isDisposed(),C=()=>{S()||s.value?.dispose()},w=()=>{s.value&&s.value.resize()},T=(t,n)=>{if(t===KY&&!S()){let{filename:t,...n}=e.downloadOptions;YS(s.value.getDataURL(n),t??`${new Date().getTime()}`)}let{onDropdownSelect:r}=e;r&&WS(r,t,n)},E=()=>{if(e.autoResize&&(c||=Ro(w,500),l||=Xi(e.autoResizeObserverTarget||o,c)),s.value?.getDom()||!m.value&&e.intersectionObserver)return;y(),h?.stop();let{onRegister:t}=e;t&&s.value&&WS(t,s.value,E,D)},D=()=>{C(),c?.cancel(),l?.stop(),h?.stop(),h=null,c=null,l=null};return Te(()=>i.value,()=>{e.autoChangeTheme&&(C(),y())}),ot(()=>{e.intersectionObserver?(h?.stop(),h=yte(e.intersectionObserverTarget||o,([e])=>{m.value=e.isIntersecting},e.intersectionOptions)):h?.stop(),e.watchOptions?(u?.(),u=ute(()=>e.options,t=>{let n=b(t),r=Object.assign({},GY(),e.setChartOptions);s.value?.setOption(n,r)},{deep:e.watchDeep,throttle:e.watchOptionsThrottleWait})):u?.(),e.loading?s.value?.showLoading(WY(e.loadingOptions,i.value)):s.value?.hideLoading(),e.showAria!==g.aria&&s.value&&(s.value.setOption(b(e.options)),g.aria=e.showAria),m.value&&!S()&&E()}),t(),qt(async()=>{await v()}),Ve(()=>{E()}),se(()=>{D(),u?.()}),{chartRef:a,cssVarsRef:f,rayChartWrapperRef:o,moreDropDownOptions:d,dropdownSelect:T}},render(){let{title:e,contentStyle:t,preset:n,moreDropDownOptions:r,dropdownSelect:i,bordered:a,dropdownOptions:o}=this,{cardExtra:s}=this.$slots;return n===`card`?J(Rd,{class:`r-chart`,ref:`rayChartWrapperRef`,style:[this.cssVarsRef],contentStyle:t,bordered:a,embedded:!0},{default:GS(J(`div`,{class:`r-chart__container`,ref:`chartRef`},null)),header:GS(e,{defaultElement:J(`div`,{style:`display: none;`},null)}),"header-extra":GS(s,{defaultElement:J(zJ,{iconSize:18,cursor:`pointer`,options:o||r,trigger:`click`,onSelect:i.bind(this),placement:`bottom-end`},null)})}):J(`div`,{class:`r-chart`,style:[this.cssVarsRef],ref:`rayChartWrapperRef`},[J(`div`,{class:`r-chart__container`,ref:`chartRef`},null)])}});({...wg});var iIe=Y({name:`RIframe`,props:{src:{type:String,required:!0},iframeWrapperClass:{type:String,default:null},frameborder:{type:Number,default:0},width:{type:[String,Number],default:`100%`},height:{type:[String,Number],default:`100%`},allow:{type:String,default:null},name:{type:String,default:null},title:{type:String,default:null},onSuccess:{type:[Function,Array],default:null},onError:{type:[Function,Array],default:null},customSpinProps:{type:Object,default:()=>({})},lazy:{type:[Boolean,String],default:!0},iframeClass:{type:String,default:null}},setup(e,{expose:t}){let n=V(()=>({"--r-iframe-frameborder":US(e.frameborder),"--r-iframe-width":US(e.width),"--r-iframe-height":US(e.height)})),r=lt(`iframeRef`),i=N(!0);return zi(r,`load`,t=>{i.value=!1;let{onSuccess:n}=e;n&&WS(n,r.value,t)}),zi(r,`error`,t=>{i.value=!1;let{onError:n}=e;n&&WS(n,t)}),t({iframeInst:r}),{cssVars:n,iframeRef:r,spinShow:i}},render(){return J(`div`,{class:[`r-iframe`,this.iframeWrapperClass],style:[this.cssVars]},[J(a_,I(this.customSpinProps,{show:this.spinShow}),{...this.$slots,default:()=>J(`iframe`,{class:[`r-iframe__container`,this.iframeClass],ref:`iframeRef`,src:this.src,allow:this.allow,name:this.name,title:this.title,loading:this.lazy===!0?`lazy`:this.lazy===!1?`eager`:this.lazy},null)})])}}),aIe=`r-modal__preset-card--fullscreen`,qY=`r-modal`,JY={width:`--r-modal-width`,cardWidth:`--r-modal-card-width`,dialogWidth:`--r-modal-dialog-width`},YY=()=>{let{create:e,destroyAll:t}=th();return{create:t=>{let{content:n,...r}=t,i=n;r.preset===`card`&&r.fullscreen&&(i=()=>Dn(r_,{themeOverrides:{color:`rgba(0, 0, 0, 0)`,colorHover:`rgba(0, 0, 0, 0)`},trigger:`hover`,style:{width:`auto`,maxHeight:`calc(var(--html-height) - 29px - var(--n-padding-bottom) - var(--n-padding-bottom) - var(--n-padding-top))`}},{default:()=>typeof n==`function`?n():n}));let{preset:a,fullscreen:o,width:s,cardWidth:c,dialogWidth:l}=t,u=e({...r,content:i}),{key:d}=u,f={[JY.width]:US(s??600),[JY.cardWidth]:US(c??600),[JY.dialogWidth]:US(l??446)};return he(()=>{let[e]=HS(`[internalkey="${d}"]`)||[];e&&(o&&a===`card`&&BS(e,{width:`100%`,height:`100vh`}),BS(e,f),LS(e,qY))}),u},destroyAll:t}},oIe={...lh,fullscreen:{type:Boolean,default:!1},width:{type:[String,Number],default:600},cardWidth:{type:[String,Number],default:600},dialogWidth:{type:[String,Number],default:446}},sIe=Y({name:`RModal`,props:oIe,setup(e){let t=V(()=>({[JY.width]:US(e.width??600),[JY.cardWidth]:US(e.cardWidth??600),[JY.dialogWidth]:US(e.dialogWidth??446)})),n=JS();return{cssVars:t,isFullscreenCardType:V(()=>e.preset===`card`&&e.fullscreen),uuidEl:n}},render(){let{$props:e,$slots:t,$attrs:n}=this,{preset:r,...i}=e,{cssVars:a,uuidEl:o,isFullscreenCardType:s}=this;return J(uh,I({class:[qY,s?aIe:``],style:a,preset:r},{id:o},i,n),{...t})}}),XY={httpSource:`Local mock API`,localSource:`Local demo data`,directory:`People directory`,name:`Name`,email:`Email`,address:`Region`,age:`Age`,created:`Created`,nameHint:`Enter part of a name`,emailHint:`Enter part of an email address`,reset:`Reset`,search:`Search`,expandSearch:`Show filters`,collapseSearch:`Hide filters`,searchYes:`Yes`,searchNo:`No`,searchError:`Couldn't prepare the search`,searchOptionsError:`Couldn't load options`,reload:`Refresh`,csv:`Export CSV`,print:`Print table`,total:`{count} records`,clearSelection:`Clear selection ({count})`,requestError:`Couldn't load the data`,retry:`Retry`,density:`Table density`,compact:`Compact`,standard:`Standard`,comfortable:`Comfortable`,appearance:`Table appearance`,striped:`Striped rows`,bordered:`Table border`,columns:`Column settings`,pinStart:`Pin to start`,pinEnd:`Pin to end`,resize:`Allow resizing`,showFooter:`Show footer slot`,showAction:`Show action slot`,footerExample:`Use this area for totals or notes.`,actionExample:`Use this area for bulk actions.`,visibleColumns:`Visible columns`,showAllColumns:`Show all columns`,printError:`Could not open print preview`,demoFailure:`Simulate request failure`,virtualRows:`Virtual rows`,contactGroup:`Contact details`,includeIdField:`Include the ID field`,printDemoTitle:`Print the current page`,printSummary:`Print a separate summary`,printSummaryText:`A summary for the directory. This printout excludes the table, toolbar and pagination.`,contextAction:`Row context menu action`,firstPage:`Go to first page`,twentyRows:`20 per page`,customFooter:`Right-click a row or press Shift+F10 on it to open its menu.`,pinNeedsWidth:`Set a numeric column width before pinning`,moveColumnUp:`Move {column} up`,moveColumnDown:`Move {column} down`,resetColumnLayout:`Reset column layout`},ZY={httpSource:`本地 Mock 接口`,localSource:`本地示例数据`,directory:`人员列表`,name:`姓名`,email:`邮箱`,address:`地区`,age:`年龄`,created:`创建日期`,nameHint:`输入姓名关键词`,emailHint:`输入邮箱关键词`,reset:`重置`,search:`查询`,expandSearch:`展开筛选`,collapseSearch:`收起筛选`,searchYes:`是`,searchNo:`否`,searchError:`无法生成查询条件`,searchOptionsError:`选项加载失败`,reload:`刷新`,csv:`导出 CSV`,print:`打印表格`,total:`共 {count} 条`,clearSelection:`清除已选({count})`,requestError:`数据加载失败`,retry:`重试`,density:`表格密度`,compact:`紧凑`,standard:`标准`,comfortable:`宽松`,appearance:`表格外观`,striped:`斑马条纹`,bordered:`表格边框`,columns:`列设置`,pinStart:`固定在列首`,pinEnd:`固定在列尾`,resize:`允许调整列宽`,showFooter:`显示底部插槽`,showAction:`显示操作插槽`,footerExample:`这里可以放置统计或补充说明。`,actionExample:`这里可以放置批量操作。`,visibleColumns:`显示列`,showAllColumns:`恢复全部列`,printError:`无法打开打印预览`,demoFailure:`模拟请求失败`,virtualRows:`虚拟滚动`,contactGroup:`联系方式`,includeIdField:`启用 ID 字段`,printDemoTitle:`打印当前页`,printSummary:`打印独立摘要`,printSummaryText:`当前页人员目录。打印此摘要不包含表格、工具栏或分页。`,contextAction:`触发行右键菜单操作`,firstPage:`回到第 1 页`,twentyRows:`每页 20 条`,customFooter:`右键点击表格行,或聚焦该行后按 Shift+F10 打开菜单。`,pinNeedsWidth:`固定列需要数字列宽`,moveColumnUp:`上移「{column}」`,moveColumnDown:`下移「{column}」`,resetColumnLayout:`恢复列布局`},QY={zh:{...ZY,fullscreen:`全屏`,exitFullscreen:`退出全屏`},en:{...XY,fullscreen:`Full screen`,exitFullscreen:`Exit full screen`}};function $Y(){let{translate:e,locale:t}=LJ();return{t:(n,r={})=>{let i=n===`fullscreen`||n===`exitFullscreen`?`headerTooltip.${n===`fullscreen`?`FullScreen`:`CancelFullScreen`}`:`table.${n}`,a=e?.(i,r);return a!=null&&a!==i?a:((t?.()===`zh-CN`?QY.zh:QY.en)[n]??n).replace(/\{(\w+)\}/g,(e,t)=>String(r[t]??e))}}}var eX=e=>`key`in e,tX=e=>e.flatMap(e=>eX(e)?`children`in e?tX(e.children):[e]:[]),nX=(e,t)=>{let n=new Set(t),r=new Map(e.filter(eX).map(e=>[e.key,e])),i=t.flatMap(e=>r.get(e)??[]),a=0;return e.map(e=>eX(e)&&n.has(e.key)?i[a++]:e)},cIe=(e,t,n)=>{let r=p(),i=p();return{layoutColumns:V(()=>{if(t.value)return e.value;let n=r.value?nX(e.value,r.value):e.value,a=i.value;return a?.size?n.map(e=>{let t=eX(e)&&a.get(e.key);return t?{...e,...t}:e}):n}),reorderColumns:n=>{t.value?t.value(nX(e.value,n)):r.value=n},patchColumn:(n,r)=>{if(t.value)t.value(e.value.map(e=>eX(e)&&e.key===n?{...e,...r}:e));else{let e=new Map(i.value);e.set(n,{...e.get(n),...r}),i.value=e}},resetLayout:()=>{t.value?n.value?.():(r.value=void 0,i.value=void 0)},layoutChanged:V(()=>t.value?!!n.value:!!(r.value||i.value?.size))}},lIe=(e,t)=>{let n=e.flatMap(e=>{if(!eX(e))return[e];if(!(`children`in e))return t.has(e.key)?[]:[e];let n=e.children.filter(e=>!t.has(e.key));return n.length?[n.length===e.children.length?e:{...e,children:n}]:[]});return n.length===e.length&&n.every((t,n)=>t===e[n])?e:n},rX=e=>{let t=e?.trim();return t?`table-pro:columns:v1:${t}`:``},uIe=e=>typeof e==`string`||typeof e==`number`&&Number.isFinite(e),dIe=(e,t,n=typeof localStorage>`u`?void 0:nC(localStorage))=>{let r=p(new Set),i=V(()=>[...new Set(tX(e.value).map(({key:e})=>e))]);Te(()=>rX(t.value),e=>{let t=e?n?.get(e):null;r.value=new Set(Array.isArray(t)?t.filter(uIe):[])},{immediate:!0});let a=V(()=>{if(!r.value.size)return r.value;let e=new Set(i.value.filter(e=>r.value.has(e)));return e.size&&e.size===i.value.length&&e.delete(i.value[0]),e}),o=V(()=>a.value.size?lIe(e.value,a.value):e.value),s=V(()=>i.value.length-a.value.size),c=e=>{r.value=e;let i=rX(t.value);i&&(e.size?n?.set(i,[...e]):n?.remove(i))};return{hiddenKeys:a,visibleColumns:o,setColumnVisible:(e,t)=>{if(!i.value.includes(e)||t!==a.value.has(e)||!t&&s.value<=1)return;let n=new Set(a.value);t?n.delete(e):n.add(e),c(n)},resetColumns:()=>{r.value.size&&c(new Set)}}};function iX(e){return Array.isArray(e)}function fIe(e){return iX(e)?{fields:e}:e||void 0}function pIe(e,t){let n=e.fields??tX(t).flatMap(e=>{let{search:t}=e;if(!t)return[];let n=String(e.key),r=typeof e.title==`string`?e.title:n;return[t===!0?{key:n,label:r}:{...t,key:t.key??n,label:t.label??r}]}),r=new Set;return n.filter(({key:e})=>!r.has(e)&&(r.add(e),!0))}function aX(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,Array.isArray(t)?[...t]:t]))}function mIe(e,t){return!e.type||(e.visible?.(t)??!0)}var oX=e=>typeof e==`number`&&Number.isFinite(e),sX=e=>typeof e==`string`||oX(e),cX=e=>{if(typeof e!=`string`||!/^\d{4}-\d{2}-\d{2}$/.test(e))return!1;let t=new Date(e);return Number.isFinite(t.getTime())&&t.toISOString().slice(0,10)===e},lX=e=>oX(e)&&Math.abs(e)<=864e13;function uX(e,t){if(t==null)return null;switch(e.type){case`text`:return typeof t==`string`?t:null;case`number`:return oX(t)?t:null;case`boolean`:return typeof t==`boolean`?t:null;case`date`:return cX(t)?t:null;case`datetime`:return lX(t)?t:null;case`time`:return typeof t==`string`&&/^([01]\d|2[0-3]):[0-5]\d:[0-5]\d$/.test(t)?t:null;case`dateRange`:case`datetimeRange`:{let n=e.type===`dateRange`?cX:lX;return Array.isArray(t)&&t.length===2&&n(t[0])&&n(t[1])&&t[0]<=t[1]?[...t]:null}case`select`:case`cascader`:case`treeSelect`:return e.multiple?Array.isArray(t)?t.filter(sX):null:sX(t)?t:null;case`custom`:return Array.isArray(t)?t.filter(sX):typeof t==`boolean`||sX(t)?t:null;default:return e.options?sX(t)?t:null:typeof t==`string`?t:null}}function dX(e,t){return Object.fromEntries(e.map(e=>[e.key,uX(e,t[e.key])]))}function fX(e,t){return dX(e,{...Object.fromEntries(e.map(e=>[e.key,e.type?e.initialValue:null])),...t?.initialValues})}var hIe=(e,t)=>e===t||Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((e,n)=>e===t[n]),gIe=e=>{let t=new Map;for(let n of e)if(n.type)for(let e of n.dependsOn??[]){let r=t.get(e);r?r.push(n.key):t.set(e,[n.key])}return t};function _Ie(e,t,n,r){let i=dX(e,{...t,...n}),a=new Set(Object.keys(i).filter(e=>!hIe(i[e],t[e]??null)));if(!a.size)return t;for(let e of a)for(let t of r.get(e)??[])a.has(t)||Object.hasOwn(n,t)||(i[t]=null,a.add(t));return i}function pX(e,t){return!t||t.type!==e.type?!1:!t.type&&!e.type?!!t.options==!!e.options:(`multiple`in e&&e.multiple===!0)==(`multiple`in t&&t.multiple===!0)}function vIe(e,t){return pX(e,t)?!e.type||!t?.type||e.visible===t.visible&&e.getValue===t.getValue&&e.matches===t.matches&&e.transform===t.transform:!1}var mX=(e,t)=>e.filter(e=>mIe(e,t));function hX(e,t){return Object.fromEntries(e.flatMap(e=>{let n=uX(e,t[e.key]),r=(!e.type||e.type===`text`)&&typeof n==`string`?n.trim():n;return r==null||r===``||Array.isArray(r)&&!r.length?[]:[[e.key,r]]}))}function yIe(e,t){let n=new Map(e.map(e=>[e.key,e])),r=Object.fromEntries(Object.entries(t).flatMap(([e,r])=>{if(r==null)return[];let i=n.get(e),a=i?.type&&i.transform;return a?Object.entries(a(r,t)):[[e,r]]}));return delete r.page,delete r.pageSize,r}function bIe(e,t){let n=new Map(e.map(e=>[e.key,e])),r=Object.entries(t).flatMap(([e,t])=>{if(t==null)return[];let r=n.get(e),i=t=>r?.type&&r.getValue?r.getValue(t):ur(t,e);if(r?.type&&r.matches){let e=r.matches;return[n=>e(i(n),t,n)]}if(r?.type===`dateRange`||r?.type===`datetimeRange`){let[e,n]=t;return[t=>{let r=i(t);return(typeof r==`string`||typeof r==`number`)&&typeof r==typeof e&&r>=e&&r<=n}]}if(Array.isArray(t)){let e=new Set(t);return[t=>{let n=i(t);return Array.isArray(n)?n.some(t=>e.has(t)):e.has(n)}]}if(typeof t==`string`&&(!r||r.type===`text`||!r.type&&!r.options)){let e=t.toLowerCase();return[t=>String(i(t)??``).toLowerCase().includes(e)]}return[e=>i(e)===t]});return r.length?e=>r.every(t=>t(e)):null}function xIe(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!wn(e)}var SIe=Y({name:`TableProSearchSelect`,props:{field:{type:Object,required:!0},values:{type:Object,required:!0},inputId:{type:String,required:!0},labelId:{type:String,required:!0},setValue:{type:Function,required:!0}},setup(e){let{t}=$Y(),n=N(``),r=N(0),i=p(),a=N(!1),o=N(!1);return Te([()=>e.field.loadOptions,n,r],([t,n,r],[s,c,l],u)=>{if(i.value=void 0,o.value=!1,a.value=!!t,!t)return;let d=new AbortController,f=aX(e.values),p=async()=>{try{let e=await t({keyword:n,values:f,signal:d.signal});d.signal.aborted||(i.value=e)}catch{d.signal.aborted||(o.value=!0)}finally{d.signal.aborted||(a.value=!1)}},m=t===s&&r===l&&n!==c?e.field.optionDebounce??250:0,h=m>0?setTimeout(()=>void p(),m):void 0;u(()=>{clearTimeout(h),d.abort()}),h===void 0&&p()},{immediate:!0}),()=>{let s,{field:c,values:l,inputId:u,labelId:d,setValue:f}=e,{loadOptions:p,fieldProps:m}=c;return J(`div`,{class:`r-table-search__select`},[J(Mf,I({clearable:!0,placeholder:c.placeholder,"aria-labelledby":d},m,{inputProps:{...m?.inputProps,id:u,"aria-labelledby":d},multiple:c.multiple,filterable:m?.filterable??!!p,remote:p?!0:m?.remote,loading:a.value||(m?.loading??!1),options:i.value??c.options,value:l[c.key]??null,onUpdateValue:f,onSearch:e=>{p&&(n.value=e),m?.onSearch&&WS(m.onSearch,e)}}),null),o.value&&J(`div`,{class:`r-table-search__option-error`,role:`status`},[J(`span`,null,[t(`searchOptionsError`)]),J(wr,{text:!0,attrType:`button`,onClick:()=>{r.value+=1}},xIe(s=t(`retry`))?s:{default:()=>[s]})])])}}});function CIe({field:e,values:t,inputId:n,labelId:r,setValue:i}){let{t:a}=$Y(),o=t[e.key]??null,s={clearable:!0,placeholder:e.placeholder,"aria-labelledby":r},c={id:n,"aria-labelledby":r};switch(e.type){case`custom`:return J(K,null,[e.render({value:o,setValue:i,values:t,inputId:n,labelId:r})]);case`text`:return J(Fr,I(s,e.fieldProps,{inputProps:{...e.fieldProps?.inputProps,...c},value:o??``,onUpdateValue:i}),null);case`number`:return J(Mr,I(s,e.fieldProps,{inputProps:{...e.fieldProps?.inputProps,...c},value:o,onUpdateValue:i}),null);case`boolean`:return J(Mf,I(s,e.fieldProps,{inputProps:{...e.fieldProps?.inputProps,...c},options:[{label:a(`searchYes`),value:1},{label:a(`searchNo`),value:0}],value:o==null?null:Number(o),onUpdateValue:e=>i(e==null?null:e===1)}),null);case`select`:return J(SIe,{key:JSON.stringify(e.dependsOn?.map(e=>t[e])),field:e,values:t,inputId:n,labelId:r,setValue:i},null);case`date`:case`dateRange`:return J(Vm,I(s,e.fieldProps,{type:e.type===`date`?`date`:`daterange`,valueFormat:`yyyy-MM-dd`,formattedValue:o,onUpdateFormattedValue:i}),null);case`datetime`:case`datetimeRange`:return J(Vm,I(s,e.fieldProps,{type:e.type===`datetime`?`datetime`:`datetimerange`,value:o,onUpdateValue:i}),null);case`time`:return J(Am,I(s,e.fieldProps,{valueFormat:`HH:mm:ss`,formattedValue:o,onUpdateFormattedValue:i}),null);case`cascader`:return J(gce,I(s,e.fieldProps,{multiple:e.multiple,value:o,onUpdateValue:i}),null);case`treeSelect`:return J(Mge,I(s,e.fieldProps,{multiple:e.multiple,value:o,onUpdateValue:i}),null);default:return e.options?J(Mf,I(s,{inputProps:c,options:e.options,value:o,onUpdateValue:i}),null):J(Fr,I(s,{inputProps:c,value:o??``,onUpdateValue:i}),null)}}function gX(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!wn(e)}var _X=(e,t)=>e&&Number.isSafeInteger(e)&&e>0?e:t,wIe=Y({name:`TableProSearch`,props:{fields:{type:Array,required:!0},options:{type:Object,default:void 0},values:{type:Object,required:!0},legacy:Boolean,failed:Boolean,submit:{type:Function,required:!0},reset:{type:Function,required:!0},setValue:{type:Function,required:!0}},setup(e,{expose:t}){let{t:n}=$Y(),r=ue(),i=lt(`wrapper`),a=lt(`form`),{width:o}=Qi(i),s=N(e.options?.defaultCollapsed??!1),c=V(()=>Math.min(_X(e.options?.maxColumns,4),o.value>=1320?4:o.value>=960?3:o.value>=600?2:1)),l=V(()=>_X(e.options?.collapsedRows,1)),u=V(()=>e.fields.map((e,t)=>({field:e,path:`field-${t}`,span:Math.min(c.value,_X(e.type?e.span:void 0,1))}))),d=V(()=>{if(e.legacy)return!1;let t=c.value,n=0;for(let{span:e}of u.value){let r=n%t;r+e>t&&(n+=t-r),n+=e}return n>t*l.value}),f=V(()=>{let t=hX(e.fields,e.values);return Object.fromEntries(u.value.map(({field:e,path:n})=>[n,t[e.key]]))}),p=async e=>{if(await he(),!e())return!1;try{return await a.value?.validate(),!0}catch(t){if(!e())return a.value?.restoreValidation(),!1;if(s.value=!1,await he(),Array.isArray(t)){let e=t[0]?.[0]?.field;typeof e==`string`&&/^field-\d+$/.test(e)&&i.value?.querySelector(`[data-search-field="${e}"] :is(input, textarea, button, [tabindex="0"])`)?.focus()}return!1}},m=Promise.resolve(!0);t({validate:e=>(m=m.then(()=>p(e)),m),restoreValidation:()=>a.value?.restoreValidation()});let h=({field:t,path:n})=>{let i=`${r}-${n}-label`,a=`${r}-${n}-input`,o=t.type===`text`||t.type===`number`||!t.type&&!t.options;return J(jr,{class:`r-table-search__item`,"data-search-field":n,label:t.label,labelProps:{id:i,for:o?a:void 0},path:n,rule:t.type?t.rules:void 0,showFeedback:!!(t.type&&t.rules)},{default:()=>[J(CIe,{field:t,values:e.values,labelId:i,inputId:a,setValue:n=>e.setValue(t.key,n)},null)]})},g=()=>{let t,i=[d.value&&J(wr,{attrType:`button`,text:!0,"aria-expanded":!s.value,"aria-controls":`${r}-fields`,onClick:()=>{s.value=!s.value}},gX(t=n(s.value?`expandSearch`:`collapseSearch`))?t:{default:()=>[t]}),J(wr,{attrType:`button`,onClick:()=>void e.reset()},{default:()=>[e.options?.resetText??n(`reset`)]}),J(wr,{attrType:`submit`,type:`primary`,class:`r-table-search__submit`},{default:()=>[e.options?.searchText??n(`search`)]})];return J(`div`,{class:`r-table-search__actions`},[e.options?.renderActions?e.options.renderActions({submit:e.submit,reset:e.reset,collapsed:s.value,canCollapse:d.value,setCollapsed:e=>{s.value=e},defaultActions:i}):i])};return()=>{let t;return J(`div`,{ref:`wrapper`,class:`r-table-search-shell`},[J(Or,{ref:`form`,class:e.legacy?`r-table-search`:`r-table-search--advanced`,model:f.value,labelPlacement:e.options?.labelPlacement??`top`,labelWidth:e.options?.labelWidth,onSubmit:t=>{t.preventDefault(),e.submit()}},{default:()=>[e.legacy?u.value.map(e=>J(`div`,{class:`r-table-search__field`,key:e.field.key},[h(e)])):J(`div`,{id:`${r}-fields`},[J(Tg,{cols:c.value,xGap:12,yGap:12,collapsed:d.value&&s.value,collapsedRows:l.value},gX(t=u.value.map(e=>{let t;return J(xg,{key:e.field.key,span:e.span},gX(t=h(e))?t:{default:()=>[t]})}))?t:{default:()=>[t]})]),g(),e.failed&&J(`div`,{role:`alert`},[n(`searchError`)])]})])}}}),TIe=(e={})=>{let{onUpdatePage:t,"onUpdate:page":n,onChange:r,onUpdatePageSize:i,"onUpdate:pageSize":a,onPageSizeChange:o,...s}=e;return{view:s,notifyPage:e=>{for(let i of[r,t,n])i&&WS(i,e)},notifyPageSize:e=>{for(let t of[o,i,a])t&&WS(t,e)}}},EIe={bare:Boolean,autoHeight:Boolean,tool:{type:Boolean,default:!0},title:[String,Object],downloadCsvTableOptions:Object,printTableOptions:Object,columnStateKey:String,onResetColumnLayout:Function,contextMenuOptions:Array,onContextMenuClick:Function,"onUpdate:columns":Function},vX={...op,...EIe,rowActionsDisabled:Boolean},yX=e=>Object.keys(e),DIe=yX(Fo(op,[`columns`,`pagination`,`rowProps`,`size`,`striped`,`bordered`,`flexHeight`])),OIe=e=>Io(e,DIe),kIe=yX(Fo(vX,[`data`,`pagination`,`remote`,`loading`,`rowActionsDisabled`,`onUpdatePage`,`onUpdate:page`,`onPageChange`,`onUpdatePageSize`,`onUpdate:pageSize`,`onPageSizeChange`])),AIe=e=>Io(e,kIe),bX=Fo(vX,[`rowActionsDisabled`]),xX=Y({props:{icon:{type:String,required:!0},label:{type:String,required:!0},disabled:Boolean,onClick:{type:Function,default:void 0}},setup(e){return()=>J(wr,I({quaternary:!0,size:`small`,class:`r-table__tool`,"aria-label":e.label},{title:e.label},{disabled:e.disabled,onClick:e.onClick}),{icon:()=>J(RJ,{name:e.icon},null)})}}),jIe=Y({name:`TablePropsSelect`,props:{striped:Boolean,bordered:Boolean},emits:{change:e=>!0},setup(e,{emit:t}){let{t:n}=$Y(),r=[`striped`,`bordered`];return()=>J(Of,{value:r.filter(t=>e[t]),options:r.map(e=>({label:n(e),value:e})),trigger:`click`,multiple:!0,onUpdateValue:e=>t(`change`,e)},{default:()=>[J(xX,{icon:`action/more`,label:n(`appearance`)},null)]})}});function SX(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!wn(e)}var MIe=Y({name:`TableColumnSettings`,props:{columns:bX.columns,canResetLayout:Boolean,hiddenKeys:{type:Object,required:!0}},emits:{reorderColumns:e=>!0,patchColumn:(e,t)=>!0,toggleColumn:(e,t)=>!0,resetColumns:()=>!0,resetLayout:()=>!0},setup(e,{emit:t}){let{t:n}=$Y(),r=V(()=>e.columns.filter(eX)),i=V(()=>new Set(r.value.map(({key:e})=>e))),a=V(()=>tX(e.columns)),o=V(()=>a.value.filter(({key:t})=>!e.hiddenKeys.has(t)).length),s=({node:e,dragNode:n,dropPosition:i})=>{if(i===`inside`||e.key===n.key||e.key==null)return;let a=r.value.find(({key:e})=>e===n.key),o=r.value.filter(({key:e})=>e!==n.key),s=o.findIndex(({key:t})=>t===e.key);!a||s<0||(o.splice(s+ +(i===`after`),0,a),t(`reorderColumns`,o.map(({key:e})=>e)))},c=(e,n)=>{let i=r.value.map(({key:e})=>e),a=e+n;a<0||a>=i.length||([i[e],i[a]]=[i[a],i[e]],t(`reorderColumns`,i))},l=(e,i)=>{let a=typeof e.title==`string`?e.title:String(e.key),o=`children`in e?e.children.every(e=>typeof e.width==`number`):typeof e.width==`number`;return J(Nr,{align:`center`,size:2,wrap:!1},{default:()=>[[-1,1].map(e=>{let t=n(e<0?`moveColumnUp`:`moveColumnDown`,{column:a});return J(`button`,{key:e,type:`button`,class:`r-table-columns__move`,"aria-label":t,title:t,"aria-disabled":i+e<0||i+e>=r.value.length,onKeydown:e=>e.stopPropagation(),onClick:t=>{t.stopPropagation(),c(i,e)}},[J(`span`,{"aria-hidden":`true`},[e<0?`↑`:`↓`])])}),J(xX,{icon:`directional/row_head`,label:n(o||e.fixed===`left`?`pinStart`:`pinNeedsWidth`),disabled:!o&&e.fixed!==`left`,"aria-pressed":e.fixed===`left`,onClick:()=>t(`patchColumn`,e.key,{fixed:e.fixed===`left`?void 0:`left`})},null),`children`in e?null:J(xX,{icon:`directional/resize_h`,label:n(`resize`),"aria-pressed":!!e.resizable,onClick:()=>t(`patchColumn`,e.key,{resizable:!e.resizable})},null),J(xX,{icon:`directional/row_end`,label:n(o||e.fixed===`right`?`pinEnd`:`pinNeedsWidth`),disabled:!o&&e.fixed!==`right`,"aria-pressed":e.fixed===`right`,onClick:()=>t(`patchColumn`,e.key,{fixed:e.fixed===`right`?void 0:`right`})},null)]})},u=(e,t)=>e.map((e,n)=>({key:e.key,label:typeof e.title==`string`?e.title:String(e.key),children:`children`in e?u(e.children,!1):void 0,suffix:t?()=>l(e,n):void 0})),d=V(()=>u(r.value,!0));return()=>r.value.length?J(Rc,{trigger:`click`,showArrow:!1,placement:`bottom-end`},{trigger:()=>J(xX,{icon:`action/setting`,label:n(`columns`)},null),default:()=>{let r,a;return J(`fieldset`,{class:`r-table-columns`},[J(`legend`,null,[n(`visibleColumns`)]),J(M_,{data:d.value,blockLine:!0,defaultExpandAll:!0,draggable:!0,selectable:!1,allowDrop:({node:e,dropPosition:t})=>e.key!=null&&i.value.has(e.key)&&t!==`inside`,onDrop:s,renderLabel:({option:n})=>{let{key:r,label:i,children:a}=n;if(a||r==null)return i;let s=!e.hiddenKeys.has(r);return J(`label`,{class:`r-table-columns__check`,onClick:e=>e.stopPropagation()},[J(`input`,{type:`checkbox`,checked:s,disabled:s&&o.value<=1,onKeydown:e=>e.stopPropagation(),onChange:e=>t(`toggleColumn`,r,e.target.checked)},null),J(`span`,null,[i])])}},null),J(Nr,{size:4},{default:()=>[J(wr,{size:`small`,quaternary:!0,disabled:!e.hiddenKeys.size,onClick:()=>t(`resetColumns`)},SX(r=n(`showAllColumns`))?r:{default:()=>[r]}),e.canResetLayout&&J(wr,{size:`small`,quaternary:!0,onClick:()=>t(`resetLayout`)},SX(a=n(`resetColumnLayout`))?a:{default:()=>[a]})]})])}}):null}}),CX=(e,{manual:t,ready:n=!0,refreshDeps:r=[],refreshDepsAction:i})=>{let a=N(!1);return ot(()=>{!t&&e.options.refreshDeps!==!0&&(a.value=M(n))}),r instanceof Array?Te([a,...r],([n])=>{n&&!t&&n&&(i?i():e.refresh())},{deep:!0,immediate:!1}):Te(a,n=>{!t&&n&&(i?i():e.refresh())}),{name:`autoRunPlugin`,onBefore:()=>{if(!M(n))return{stopNow:!0}}}};CX.onInit=({ready:e=!0,manual:t})=>({loading:!t&&M(e)});var wX=new Map,NIe=(e,t,n)=>{let r=wX.get(e);r?.timer&&clearTimeout(r.timer);let i;t>-1&&(i=setTimeout(()=>{wX.delete(e)},t)),wX.set(e,{...n,timer:i})},PIe=e=>wX.get(e),TX=new Map,FIe=e=>TX.get(e),IIe=(e,t)=>{TX.set(e,t),t.then(t=>(TX.delete(e),t)).catch(t=>{throw TX.delete(e),t})},EX={},LIe=[],RIe=(e,t)=>{EX[e]&&(EX[e].forEach(e=>e(t)),LIe.forEach(n=>n({type:e,data:t})))},DX=(e,t)=>(EX[e]||(EX[e]=[]),EX[e].push(t),function(){let n=EX[e].indexOf(t);EX[e].splice(n,1)}),zIe=(e,{cacheKey:t,cacheTime:n=3e5,staleTime:r=0,setCache:i,getCache:a})=>{let o=N(),s=N(),l=(e,t)=>{i?i(t):NIe(e,n,t),RIe(e,t.data)},u=(e,t=[])=>a?a(t):PIe(e);return ot(()=>{if(!t)return;let n=u(t);n&&Object.hasOwnProperty.call(n,`data`)&&(e.state.data=n.data,e.state.params=n.params,(r===-1||new Date().getTime()-n.time<=r)&&(e.state.loading=!1)),o.value=DX(t,t=>{e.setState({data:t})})}),c(()=>{var e;(e=o.value)==null||e.call(o)}),t?{name:`cachePlugin`,onBefore:e=>{let n=u(t,e);return!n||!Object.hasOwnProperty.call(n,`data`)?{}:r===-1||new Date().getTime()-n.time<=r?{loading:!1,data:n?.data,returnNow:!0}:{data:n?.data}},onRequest:(e,n)=>{let r=FIe(t);return r&&r!==s.value||(r=e(...n),s.value=r,IIe(t,r)),{servicePromise:r}},onSuccess:(n,r)=>{var i;t&&((i=o.value)==null||i.call(o),l(t,{data:n,params:r,time:new Date().getTime()}),o.value=DX(t,t=>{e.setState({data:t})}))},onMutate:n=>{var r;t&&((r=o.value)==null||r.call(o),l(t,{data:n,params:e.state.params,time:new Date().getTime()}),o.value=DX(t,t=>{e.setState({data:t})}))}}:{}},BIe=(e,{debounceWait:t,debounceLeading:n,debounceTrailing:r,debounceMaxWait:i})=>{let a=N(),o=V(()=>{let e={},t=M(n),a=M(r),o=M(i);return t!==void 0&&(e.leading=t),a!==void 0&&(e.trailing=a),o!==void 0&&(e.maxWait=o),e});return ot(n=>{if(M(t)){let r=e.runAsync.bind(e);a.value=oo(e=>{e()},M(t),o.value),e.runAsync=(...e)=>new Promise((t,n)=>{var i;(i=a.value)==null||i.call(a,()=>{r(...e).then(t).catch(n)})}),n(()=>{var t;(t=a.value)==null||t.cancel(),e.runAsync=r})}}),M(t)?{name:`debouncePlugin`,onCancel:()=>{var e;(e=a.value)==null||e.cancel()}}:{}},VIe=Object.defineProperty,HIe=(e,t,n)=>t in e?VIe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,OX=(e,t,n)=>(HIe(e,typeof t==`symbol`?t:t+``,n),n);new class{constructor(){OX(this,`table`,{}),OX(this,`hashTable`,{})}insert(e){let t=Symbol(e);return this.table[e]=!0,this.hashTable[t]=e,t}find(e){return this.hashTable[e]}};var UIe=Object.defineProperty,WIe=(e,t,n)=>t in e?UIe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kX=(e,t,n)=>(WIe(e,typeof t==`symbol`?t:t+``,n),n);new class{constructor(){kX(this,`requestInstances`,new Map),kX(this,`listeners`,[])}emit(e){this.listeners.forEach(t=>t(e))}subscribe(e){return this.listeners.push(e),()=>{let t=this.listeners.indexOf(e);this.listeners.splice(t,1)}}insert(e,t){this.requestInstances.set(e,{...t}),this.emit({key:e,...t})}update(e,t){this.has(e)&&this.requestInstances.set(e,{...this.requestInstances.get(e),...t})}has(e){return this.requestInstances.has(e)}reset(e){if(this.requestInstances.has(e)){let t=this.requestInstances.get(e);this.requestInstances.clear(),this.insert(e,t)}else this.requestInstances.clear()}getAll(){return this.requestInstances}};var GIe=(e,{loadingDelay:t})=>{let n=N(),r=()=>{n.value&&=(clearTimeout(M(n.value)),void 0)};return{name:`loadingDelayPlugin`,onFinally:()=>{r();let i=M(t);i&&(e.setState({loading:!0}),n.value=setTimeout(()=>{e.setState({loading:!1})},i))},onError:()=>{r()}}};function AX(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}var KIe=!!(typeof window<`u`&&window.document&&window.document.createElement);function jX(){return!AX()||document.visibilityState!==`hidden`}var MX=[];function qIe(e){return MX.push(e),function(){let t=MX.indexOf(e);MX.splice(t,1)}}AX()&&window.addEventListener(`visibilitychange`,()=>{if(jX())for(let e=0;e<MX.length;e++){let t=MX[e];t()}},!1);var JIe=(e,{pollingInterval:t,pollingWhenHidden:n=!0,pollingErrorRetryCount:r=-1})=>{let i,a=N(),o=N(0),s=()=>{var e;i&&clearTimeout(i),(e=a.value)==null||e.call(a)};return ot(()=>{M(t)||s()}),M(t)?{name:`pollingPlugin`,onBefore:()=>{s()},onError:()=>{o.value+=1},onSuccess:()=>{o.value=0},onFinally:()=>{r===-1||r!==-1&&o.value<=r?i=setTimeout(()=>{!n&&!jX()?a.value=qIe(()=>{e.refresh()}):e.refresh()},M(t)):o.value=0},onCancel:()=>{s()}}:{}};function YIe(e,t){let n=!1;return(...r)=>{n||(n=!0,e(...r),setTimeout(()=>{n=!1},t))}}function XIe(){return AX()&&navigator.onLine!==void 0?navigator.onLine:!0}var NX=[];function ZIe(e){return NX.push(e),function(){let t=NX.indexOf(e);t>-1&&NX.splice(t,1)}}if(KIe){let e=()=>{if(jX()&&XIe())for(let e=0;e<NX.length;e++){let t=NX[e];t()}};window.addEventListener(`visibilitychange`,e,!1),window.addEventListener(`focus`,e,!1)}var QIe=(e,{refreshOnWindowFocus:t,focusTimespan:n=5e3})=>{let r=N(),i=()=>{var e;(e=r.value)==null||e.call(r)};return ot(a=>{if(M(t)){let t=YIe(e.refresh.bind(e),M(n));r.value=ZIe(()=>{t()})}a(()=>{i()})}),c(()=>{i()}),{name:`refreshOnWindowFocusPlugin`}},$Ie=(e,{retryInterval:t,retryCount:n})=>{let r=N(),i=N(0),a=N(!1);return n?{name:`retryPlugin`,onBefore:()=>{a.value||(i.value=0),a.value=!1,r.value&&clearTimeout(r.value)},onSuccess:()=>{i.value=0},onError:()=>{if(i.value+=1,n===-1||i.value<=n){let n=t??Math.min(1e3*2**i.value,3e4);r.value=setTimeout(()=>{a.value=!0,e.refresh()},n)}else i.value=0},onCancel:()=>{i.value=0,r.value&&clearTimeout(r.value)}}:{}},eLe=(e,{throttleWait:t,throttleLeading:n,throttleTrailing:r})=>{let i=null,a=V(()=>{let e={};return M(n)!==void 0&&(e.leading=M(n)),M(r)!==void 0&&(e.trailing=M(r)),e}),o=e.runAsync.bind(e),s=N(),c=V(()=>M(t));return Te([c,a],t=>{i&&(i.cancel(),e.runAsync=o);let[n,r]=t,a=Ro(e=>{e()},M(n),r);i=a,s.value=a,e.runAsync=(...e)=>new Promise((t,n)=>{var r;(r=s.value)==null||r.call(s,()=>{o(...e).then(t).catch(n)})})},{immediate:!0}),M(t)?(qe(()=>{var e;(e=s.value)==null||e.cancel()}),{name:`throttlePlugin`,onCancel:()=>{var e;(e=s.value)==null||e.cancel()}}):{}},PX=e=>typeof e==`function`,tLe=e=>typeof e==`boolean`,nLe=Object.defineProperty,rLe=(e,t,n)=>t in e?nLe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,FX=(e,t,n)=>(rLe(e,typeof t==`symbol`?t:t+``,n),n),iLe=class{constructor(e,t,n,r={}){FX(this,`pluginImpls`),FX(this,`count`,0),FX(this,`state`,{loading:!1,params:void 0,data:void 0,error:void 0}),FX(this,`previousValidData`),this.serviceRef=e,this.options=t,this.setUpdateData=n,this.initState=r,this.state={...this.state,loading:!t.manual,...r}}setState(e={}){this.state={...this.state,...e},this.setUpdateData(this.state)}setData(e,t){t instanceof Array?t.forEach(t=>{this.state[t]=e,this.setUpdateData(e,t)}):(this.state[t]=e,this.setUpdateData(e,t))}setFetchState(e,t){t instanceof Array?t.forEach(t=>{this.state[t]=e,this.setUpdateData(e,t)}):(this.state[t]=e,this.setUpdateData(e,t))}runPluginHandler(e,...t){let n=(this.pluginImpls?.map(n=>n[e]?.call(n,...t))??[])?.filter(Boolean);return Object.assign({},...n)}async runAsync(...e){var t,n,r,i,a,o,s,c;this.count+=1;let l=this.count,{stopNow:u=!1,returnNow:d=!1,...f}=this.runPluginHandler(`onBefore`,e);if(u)return new Promise(()=>{});if(this.setState({loading:!0,params:e,...f}),d)return Promise.resolve(f.data);try{(n=(t=this.options).onBefore)==null||n.call(t,e)}catch(t){return this.setState({error:t,loading:!1}),(i=(r=this.options).onError)==null||i.call(r,t,e),this.runPluginHandler(`onError`,t,e),new Promise(()=>{})}try{let{servicePromise:t}=this.runPluginHandler(`onRequest`,this.serviceRef.value,e),n=t=>{var n,r,i,a;if(!this.options.concurrent&&l!==this.count)return new Promise(()=>{});let o=this.options.formatResult?this.options.formatResult(t):t,s={data:t};return this.setState({data:o,error:void 0,loading:!1}),(r=(n=this.options).onSuccess)==null||r.call(n,o,e),this.runPluginHandler(`onSuccess`,o,e,s),this.previousValidData=o,(a=(i=this.options).onFinally)==null||a.call(i,e,o,void 0),(this.options.concurrent||l===this.count)&&this.runPluginHandler(`onFinally`,e,o,void 0),o};return t||=this.serviceRef.value(...e),n(await t)}catch(t){if(!this.options.concurrent&&l!==this.count)return new Promise(()=>{});throw this.setState({error:t,loading:!1}),(o=(a=this.options).onError)==null||o.call(a,t,e),this.runPluginHandler(`onError`,t,e),(PX(this.options?.rollbackOnError)&&this.options?.rollbackOnError(e)||tLe(this.options?.rollbackOnError)&&this.options.rollbackOnError)&&this.setState({data:this.previousValidData}),(c=(s=this.options).onFinally)==null||c.call(s,e,void 0,t),(this.options.concurrent||l===this.count)&&this.runPluginHandler(`onFinally`,e,void 0,t),t}}run(...e){this.runAsync(...e).catch(e=>{this.options.onError})}cancel(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler(`onCancel`)}refresh(){this.run(...this.state.params||[])}refreshAsync(){return this.runAsync(...this.state.params||[])}mutate(e){let t=PX(e)?e(this.state.data):e;this.runPluginHandler(`onMutate`,t),this.setState({data:t})}},aLe=Symbol(`USEREQUEST_GLOBAL_OPTIONS_PROVIDE_KEY`);function oLe(e){return Object.keys(e).filter(e=>[`data`,`loading`,`params`,`error`].includes(e)).length===4}function sLe(e,t={},n=[]){let{initialData:r=void 0,manual:i=!1,ready:o=!0,...s}={...pe(aLe,{})??{},...t??{}},l={manual:i,ready:o,initialData:r,...s},u=N(e),d=a({data:r,loading:!1,params:void 0,error:void 0}),f=(e,t)=>{t?d[t]=e:oLe(e)&&(d.data=e.data,d.loading=e.loading,d.error=e.error,d.params=e.params)},p=n.map(e=>(e?.onInit)?.call(e,l)).filter(Boolean),m=new iLe(u,l,f,Object.assign({},...p,d));m.options=l,m.pluginImpls=n.map(e=>e(m,l));let g=V(()=>T(o)?o.value:o);if(ot(()=>{if(!i){let e=m.state.params||t.defaultParams||[];g.value&&m.options.refreshDeps===!0&&u.value&&m.run(...e)}}),!i&&m.options.refreshDeps!==!0){let e=m.state.params||t.defaultParams||[];M(o)&&m.run(...e)}return c(()=>{m.cancel()}),{...h(d),cancel:m.cancel.bind(m),refresh:m.refresh.bind(m),refreshAsync:m.refreshAsync.bind(m),run:m.run.bind(m),runAsync:m.runAsync.bind(m),mutate:m.mutate.bind(m)}}var cLe=(e,t)=>function(n,r={},i=[]){let a=e,o=t||[];for(let e=o.length;e--;)a=o[e](a);return a(n,r,i)};function lLe(e,t,n){let r=[null,BIe,GIe,JIe,QIe,eLe,CX,zIe,$Ie].filter(Boolean);return cLe(sLe,t?.use)(e,t,[...n||[],...r])}function IX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)r!==`__proto__`&&(e[r]=n[r])}return e}var uLe={read:function(e){return e[0]===`"`&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function LX(e,t){function n(n,r,i){if(typeof document<`u`){i=IX({},t,i),typeof i.expires==`number`&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a=``;for(var o in i)i[o]&&(a+=`; `+o,i[o]!==!0&&(a+=`=`+i[o].split(`;`)[0]));return document.cookie=n+`=`+e.write(r,n)+a}}function r(t){if(!(typeof document>`u`||arguments.length&&!t)){for(var n=document.cookie?document.cookie.split(`; `):[],r={},i=0;i<n.length;i++){var a=n[i].split(`=`),o=a.slice(1).join(`=`);try{var s=decodeURIComponent(a[0]);if(s in r||(r[s]=e.read(o,s)),t===s)break}catch{}}return t?r[t]:r}}return Object.create({set:n,get:r,remove:function(e,t){n(e,``,IX({},t,{expires:-1}))},withAttributes:function(e){return LX(this.converter,IX({},this.attributes,e))},withConverter:function(e){return LX(IX({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}LX(uLe,{path:`/`});var dLe=!!(typeof window<`u`&&window.document&&window.document.createElement);function RX(e,t){if(!dLe)return;if(!e)return t;let n;return n=typeof e==`function`?e():T(e)?e.value?.$el??e.value:e,n}function zX(e,t){if(e===t)return!0;for(let n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}var fLe=(e=>(t,n,r)=>{let i=N(!1),a=N([]),o=N([]),s=N();e(()=>{var e;let c=(Array.isArray(r)?r:[r]).map(e=>RX(e));i.value?c.length===a.value.length&&zX(c,a.value)&&zX(n,o.value)||((e=s.value)==null||e.call(s),a.value=c,o.value=n,s.value=t()):(i.value=!0,a.value=c,o.value=n,s.value=t())}),qe(()=>{var e;(e=s.value)==null||e.call(s),i.value=!1})})(ot);function pLe(e,t,n={}){let r=N(t);fLe(()=>{let t=RX(n.target,window);if(!t?.addEventListener)return;let i=e=>r.value(e);return t.addEventListener(e,i,{capture:n.capture,once:n.once,passive:n.passive}),()=>{t.removeEventListener(e,i,{capture:n.capture})}},[e,n.capture,n.once,n.passive],n.target)}var mLe=Object.defineProperty,hLe=(e,t,n)=>t in e?mLe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,BX=(e,t,n)=>(hLe(e,typeof t==`symbol`?t:t+``,n),n),VX=class{constructor(e){BX(this,`subscriptions`,new Map),BX(this,`emitEffectCache`,new Map),BX(this,`isGlobal`),this.isGlobal=!!e?.global,this.clear()}static getInstance(){return VX.instance||=new VX({global:!0}),VX.instance}subscribe(e,t){this.subscriptions.has(e)||this.subscriptions.set(e,new Set);let n=this.subscriptions.get(e);return n.add(t),this.isGlobal||this.emitEffect(e),()=>{n.delete(t),n.size===0&&this.subscriptions.delete(e)}}emit(e,...t){if(typeof e==`string`||typeof e==`number`)this.subscriptions.get(e)?.forEach(n=>{n?.({params:Va(t.length===1?t[0]:t),event:e})}),this.isGlobal||this.emitEffectCache.set(e,{params:Va(t.length===1?t[0]:t),event:e});else throw TypeError(`event must be string or number!`)}emitEffect(e){if(this.isGlobal)return;let t=this.emitEffectCache.get(e),n=this.subscriptions.get(e);t&&n?.forEach(e=>{e?.({...t})})}removeListener(e,t){if(!t)this.subscriptions.delete(e);else{let n=this.subscriptions.get(e);n?.delete(t),n&&n.size===0&&this.subscriptions.delete(e)}}clear(){this.subscriptions.clear(),this.emitEffectCache.clear()}},HX=VX;BX(HX,`instance`,null),HX.getInstance();var UX=ei(Qr(((e,t)=>{(function(){var e=typeof window<`u`&&window.document!==void 0?window.document:{},n=t!==void 0&&t.exports,r=(function(){for(var t,n=[[`requestFullscreen`,`exitFullscreen`,`fullscreenElement`,`fullscreenEnabled`,`fullscreenchange`,`fullscreenerror`],[`webkitRequestFullscreen`,`webkitExitFullscreen`,`webkitFullscreenElement`,`webkitFullscreenEnabled`,`webkitfullscreenchange`,`webkitfullscreenerror`],[`webkitRequestFullScreen`,`webkitCancelFullScreen`,`webkitCurrentFullScreenElement`,`webkitCancelFullScreen`,`webkitfullscreenchange`,`webkitfullscreenerror`],[`mozRequestFullScreen`,`mozCancelFullScreen`,`mozFullScreenElement`,`mozFullScreenEnabled`,`mozfullscreenchange`,`mozfullscreenerror`],[`msRequestFullscreen`,`msExitFullscreen`,`msFullscreenElement`,`msFullscreenEnabled`,`MSFullscreenChange`,`MSFullscreenError`]],r=0,i=n.length,a={};r<i;r++)if(t=n[r],t&&t[1]in e){for(r=0;r<t.length;r++)a[n[0][r]]=t[r];return a}return!1})(),i={change:r.fullscreenchange,error:r.fullscreenerror},a={request:function(t,n){return new Promise(function(i,a){var o=function(){this.off(`change`,o),i()}.bind(this);this.on(`change`,o),t||=e.documentElement;var s=t[r.requestFullscreen](n);s instanceof Promise&&s.then(o).catch(a)}.bind(this))},exit:function(){return new Promise(function(t,n){if(!this.isFullscreen)t();else{var i=function(){this.off(`change`,i),t()}.bind(this);this.on(`change`,i);var a=e[r.exitFullscreen]();a instanceof Promise&&a.then(i).catch(n)}}.bind(this))},toggle:function(e,t){return this.isFullscreen?this.exit():this.request(e,t)},onchange:function(e){this.on(`change`,e)},onerror:function(e){this.on(`error`,e)},on:function(t,n){var r=i[t];r&&e.addEventListener(r,n,!1)},off:function(t,n){var r=i[t];r&&e.removeEventListener(r,n,!1)},raw:r};r?(Object.defineProperties(a,{isFullscreen:{get:function(){return!!e[r.fullscreenElement]}},element:{enumerable:!0,get:function(){return e[r.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!e[r.fullscreenEnabled]}}}),n?t.exports=a:window.screenfull=a):n?t.exports={isEnabled:!1}:window.screenfull={isEnabled:!1}})()}))()),WX=(e,t)=>{let{onExit:n,onEnter:r,defaultElement:i=document.documentElement}=t||{},a=N(n),o=N(r),s=N(!1),c=e=>{s.value=e},u=()=>{var t,n,r;if(UX.default.isEnabled){let s=RX(e,i);if(!UX.default.element)(t=a.value)==null||t.call(a),c(!1),UX.default.off(`change`,u);else{let e=UX.default.element===s;e?(n=o.value)==null||n.call(o):(r=a.value)==null||r.call(a),c(e)}}},d=()=>{let t=RX(e,i);if(t&&UX.default.isEnabled)try{UX.default.request(t),UX.default.on(`change`,u)}catch{}},f=()=>{let t=RX(e,i);UX.default.isEnabled&&UX.default.element===t&&UX.default.exit()};return qe(()=>{UX.default.isEnabled&&UX.default.off(`change`,u)}),[l(s),{enterFullscreen:d,exitFullscreen:f,toggleFullscreen:()=>{s.value?f():d()},isEnabled:UX.default.isEnabled}]},gLe={screenX:NaN,screenY:NaN,clientX:NaN,clientY:NaN,pageX:NaN,pageY:NaN,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN};function _Le(e){let t=N(gLe);return pLe(`mousemove`,n=>{let{screenX:r,screenY:i,clientX:a,clientY:o,pageX:s,pageY:c}=n,l={screenX:r,screenY:i,clientX:a,clientY:o,pageX:s,pageY:c,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},u=RX(e);if(u){let{left:e,top:t,width:n,height:r}=u.getBoundingClientRect();l.elementPosX=e+window.pageXOffset,l.elementPosY=t+window.pageYOffset,l.elementX=s-l.elementPosX,l.elementY=c-l.elementPosY,l.elementW=n,l.elementH=r}t.value=l},{target:document}),l(t)}Y({name:`UseMouse`,slots:Object,setup(e,{slots:t}){let n=N(),r=_Le(n);return()=>{let e=t.target?.call(t),i=null;return e&&e.length===1&&wn(e[0])&&(i=At(e[0],{ref:n})),[i,t.default&&t.default(V(()=>r.value).value)]}}});var GX={wrapperKey:Symbol(`table-pro-wrapper`)},vLe=Y({name:`TableFullscreen`,setup(){let[e,{toggleFullscreen:t,isEnabled:n}]=WX(pe(GX.wrapperKey)),{t:r}=$Y();return()=>J(xX,{icon:e.value?`action/fullscreen_fold`:`action/fullscreen`,label:r(e.value?`exitFullscreen`:`fullscreen`),disabled:!n,onClick:t},null)}}),yLe=Y({name:`TableSizeSelect`,props:{size:bX.size},emits:{change:e=>!0},setup(e,{emit:t}){let{t:n}=$Y();return()=>J(Of,{value:e.size??`medium`,options:[{label:n(`compact`),value:`small`},{label:n(`standard`),value:`medium`},{label:n(`comfortable`),value:`large`}],trigger:`click`,onUpdateValue:e=>{(e===`small`||e===`medium`||e===`large`)&&t(`change`,e)}},{default:()=>[J(xX,{icon:`action/adjustment`,label:n(`density`)},null)]})}}),KX=e=>{let t=e==null?``:String(e);return`"${typeof e!=`number`&&typeof e!=`bigint`&&/^[\s\uFEFF]*[=+\-@=+-@]|^[\t\r\n]/u.test(t)?`'`:``}${t.replaceAll(`"`,`""`)}"`},bLe=(e,t,n,r)=>{let i=tX(e).filter(e=>e.allowExport!==!1);return[i.map(e=>KX(r?.(e)??(typeof e.title==`string`?e.title:e.key))).join(`,`),...t.map(e=>i.map(t=>{let r=ur(e,t.key);return KX(n?n(r,e,t):r)}).join(`,`))].join(`\r
`)},xLe=(e,t=`data.csv`)=>{let n=URL.createObjectURL(new Blob([``,e],{type:`text/csv;charset=utf-8`})),r=document.createElement(`a`);r.href=n,r.download=t.endsWith(`.csv`)?t:`${t}.csv`,document.body.append(r);try{r.click()}finally{r.remove(),setTimeout(()=>URL.revokeObjectURL(n),0)}},SLe=`
@page { margin: 12mm; }
:root { color-scheme: light; }
body { margin: 0; background: white; color: #171717; font: 9pt/1.4 system-ui, sans-serif; }
table { width: 100%; border-collapse: collapse; }
thead { display: table-header-group; }
tr { break-inside: avoid; }
th, td { padding: 3pt 5pt; border: 1px solid #b7bec6; text-align: start; overflow-wrap: anywhere; vertical-align: top; }
th { font-weight: 650; background: #f1f3f5; word-break: keep-all; overflow-wrap: break-word; }
img, svg { max-width: 100%; }
[data-print-ignore] { display: none !important; }
`,qX=e=>e==null?``:Array.isArray(e)?e.map(qX).join(`, `):e instanceof Date?e.toLocaleString():[`string`,`number`,`boolean`,`bigint`].includes(typeof e)?String(e):``,CLe=(e,t,n,{formatHeader:r,formatCell:i}={})=>{let a=e.createElement(`table`),o=tX(t),s=a.createTHead(),c=e=>Math.max(0,...e.filter(eX).map(e=>`children`in e?tX(e.children).length?1+c(e.children):0:1)),l=Array.from({length:c(t)},()=>s.insertRow()),u=(t,n)=>{for(let i of t.filter(eX)){let t=`children`in i?tX(i.children):null;if(t&&!t.length)continue;let a=e.createElement(`th`);a.textContent=(t?void 0:r?.(i))??(typeof i.title==`string`?i.title:String(i.key)),`children`in i?(a.colSpan=t.length,a.scope=`colgroup`,u(i.children,n+1)):(a.rowSpan=l.length-n,a.scope=`col`),l[n].append(a)}};u(t,0);let d=a.createTBody();for(let e of n){let t=d.insertRow();for(let n of o){let r=ur(e,n.key);t.insertCell().textContent=i?.(r,e,n)??qX(r)}}return a},JX=`script, iframe, object, embed, link, base, meta`,wLe=e=>{if(e.matches(JX))return null;let t=e.cloneNode(!0),n=[e,...e.querySelectorAll(`*`)],r=[t,...t.querySelectorAll(`*`)];for(let[e,t]of r.entries()){if(t.matches(JX)){t.remove();continue}for(let e of t.getAttributeNames())e.startsWith(`on`)&&t.removeAttribute(e);let r=n[e];if(r instanceof HTMLInputElement&&t instanceof HTMLInputElement)t.value=r.type===`password`||r.type===`file`?``:r.value,t.defaultValue=t.value,t.checked=r.checked,t.indeterminate=r.indeterminate;else if(r instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement)t.value=r.value,t.defaultValue=r.value;else if(r instanceof HTMLOptionElement&&t instanceof HTMLOptionElement)t.selected=r.selected,t.defaultSelected=r.selected;else if(r instanceof HTMLCanvasElement&&t instanceof HTMLCanvasElement)try{t.getContext(`2d`)?.drawImage(r,0,0)}catch{}}return t},YX=(e,t)=>{t.className=e.className,t.dir=e.dir;for(let n of Array.from(e.style))n.startsWith(`--`)&&t.style.setProperty(n,e.style.getPropertyValue(n))},TLe=(e,t)=>{let n=t.createElement(`base`);n.href=e.baseURI,t.head.append(n),YX(e.documentElement,t.documentElement),YX(e.body,t.body);let r=[];for(let n of e.querySelectorAll(`style, link[rel~="stylesheet"]`))if(!n.sheet?.disabled){if(n.tagName===`LINK`){let e=n;if(e.disabled)continue;let i=t.createElement(`link`);i.rel=`stylesheet`,i.href=e.href,i.media=e.media,e.crossOrigin!==null&&(i.crossOrigin=e.crossOrigin),e.integrity&&(i.integrity=e.integrity),e.referrerPolicy&&(i.referrerPolicy=e.referrerPolicy),r.push(new Promise(e=>{i.onload=()=>e(),i.onerror=()=>e()})),t.head.append(i)}else{let e=n,r=t.createElement(`style`);r.media=e.media,e.nonce&&(r.nonce=e.nonce),r.textContent=e.sheet?Array.from(e.sheet.cssRules,e=>e.cssText).join(`
`):e.textContent,t.head.append(r)}}return r},ELe=(e,t)=>{if(e.target==null)return t();let n=FS(e.target);return n instanceof HTMLElement?wLe(n):null},DLe=async(e,t,n)=>{if(n?.aborted)return!1;let r=e.ownerDocument,i=document.createElement(`iframe`);i.tabIndex=-1,i.setAttribute(`sandbox`,`allow-same-origin allow-modals`),i.setAttribute(`aria-hidden`,`true`),i.title=t.title||`TablePro print`,i.style.cssText=`position:fixed;inset:0;width:0;height:0;border:0;`,document.body.append(i);let a,o=()=>{clearTimeout(a),i.remove()};try{let s=i.contentDocument,c=i.contentWindow;if(!s||!c)throw Error(`Print document is unavailable.`);s.documentElement.lang=r.documentElement.lang,s.title=t.title??``;let l=t.target!=null&&t.includePageStyles!==!1?TLe(r,s):[],u=s.createElement(`style`);u.textContent=SLe+(t.style??``),s.head.append(u),s.body.append(e);let d,f=Promise.withResolvers(),p=()=>f.resolve();n?.addEventListener(`abort`,p,{once:!0});try{let e=Array.from(s.querySelectorAll(`img`),e=>(e.loading=`eager`,e.decode())),t=Promise.all(l).then(async()=>{await s.fonts?.ready});await Promise.race([Promise.allSettled([...e,t]),f.promise,new Promise(e=>{d=setTimeout(e,2e3)})])}finally{clearTimeout(d),n?.removeEventListener(`abort`,p)}return n?.aborted?(o(),!1):(c.addEventListener(`afterprint`,o,{once:!0}),a=setTimeout(o,12e4),c.focus(),c.print(),!0)}catch(e){throw o(),e}};function OLe(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!wn(e)}var XX=e=>{let t=V(()=>({value:e()})),n=p();return V({get:()=>n.value?.source===t.value?n.value.value:t.value.value,set:e=>{n.value={source:t.value,value:e}}})},kLe=Y({name:`TablePanel`,inheritAttrs:!1,props:vX,setup(e,{attrs:t,slots:n,expose:r}){let{t:a}=$Y(),{columnStorage:o,reportError:s}=LJ(),c=R_(),l=V(()=>({"--r-table-card-surface":c.value.cardColor,"--r-table-card-divider":c.value.dividerColor,"--r-table-card-radius":c.value.borderRadius,"--r-table-card-text":c.value.textColor1,"--r-table-card-muted":c.value.textColor2})),u=lt(`dataTable`),d=lt(`wrapper`),{width:f}=Qi(V(()=>typeof e.pagination==`object`&&e.pagination.simple==null?d.value:null)),m=V(()=>f.value>0&&f.value<600),h=V(()=>typeof e.pagination==`object`&&e.pagination.simple==null&&m.value?{...e.pagination,simple:!0}:e.pagination),{layoutColumns:g,reorderColumns:_,patchColumn:v,resetLayout:y,layoutChanged:b}=cIe(i(e,`columns`),i(e,`onUpdate:columns`),i(e,`onResetColumnLayout`)),{hiddenKeys:x,visibleColumns:S,setColumnVisible:C,resetColumns:w}=dIe(g,i(e,`columnStateKey`),o),T=N(!1),E,D=()=>E?.abort();se(D),Oe(GX.wrapperKey,d);let O=XX(()=>e.size),k=XX(()=>e.striped),A=XX(()=>e.bordered),j=p(),ee=()=>{j.value=void 0};Te([()=>e.data,()=>e.rowActionsDisabled,()=>e.contextMenuOptions],([e,t],[n,r])=>{ee(),(e!==n||t!==r)&&D()});let te={getTableInstance:()=>u.value,downloadCsv:t=>{if(e.rowActionsDisabled)return;let{fileName:n,keepOriginalData:r}={...e.downloadCsvTableOptions,...t},i=r?e.data:u.value?.getCurrentPageData();i&&xLe(bLe(S.value,i,e.getCsvCell,e.getCsvHeader),n)},print:async t=>{if(T.value||e.loading||e.rowActionsDisabled)return!1;let n={title:typeof e.title==`string`?e.title:``,formatCell:e.getCsvCell,formatHeader:e.getCsvHeader,...e.printTableOptions,...t},r=new AbortController;E=r,T.value=!0;try{let e=ELe(n,()=>{let e=u.value?.getCurrentPageData();return e?CLe(document,S.value,e,n):null});return!!e&&await DLe(e,n,r.signal)}catch{return!1}finally{E=void 0,T.value=!1}}};r(te);let M=(t,n)=>{let r=e.rowProps?.(t,n);return!e.contextMenuOptions?.length||e.rowActionsDisabled?r??{}:{...r,class:[r?.class,`r-table__context-row`],tabindex:r?.tabindex??0,"aria-keyshortcuts":r?.[`aria-keyshortcuts`]??`Shift+F10`,onContextmenu:e=>{r?.onContextmenu?.(e),e.defaultPrevented||(e.preventDefault(),j.value={row:t,index:n,x:e.clientX,y:e.clientY})},onKeydown:e=>{if(r?.onKeydown?.(e),e.defaultPrevented||e.target!==e.currentTarget||e.key!==`ContextMenu`&&!(e.shiftKey&&e.key===`F10`))return;let i=e.currentTarget.getBoundingClientRect();e.preventDefault(),j.value={row:t,index:n,x:i.left,y:i.bottom}}}},ne=e=>{k.value=e.includes(`striped`),A.value=e.includes(`bordered`)},re=V(()=>OIe(e));return()=>{let{bare:r,autoHeight:i,title:o,tool:c,contextMenuOptions:u,onContextMenuClick:d,rowActionsDisabled:f}=e,{filters:p,title:m,toolbar:E,notice:D,tableFooter:ie,tableAction:N,...P}=n,ae=!r&&(c||E),oe=r?null:m?m():typeof o==`string`&&o?J(`h2`,null,[o]):o,se=ie?.(),ce=N?.();return J(`section`,I(t,{ref:`wrapper`,class:[`r-table`,{"r-table--card":!r,"r-table--fill":i},t.class],style:[l.value,t.style]}),[p?.(),D?.(),J(`div`,{class:`r-table__result`},[oe||ae?J(`header`,{class:`r-table__header`},[oe?J(`div`,{class:`r-table__heading`},[oe]):null,ae?J(`div`,{class:`r-table__toolbar`},[E?.(),c?J(K,null,[J(xX,{icon:`action/print`,label:a(`print`),disabled:f||e.loading||T.value,onClick:async()=>{await te.print()||s?.(a(`printError`))}},null),J(yLe,{size:O.value,onChange:e=>{O.value=e}},null),J(vLe,null,null),e.columns.length?J(MIe,{columns:g.value,hiddenKeys:x.value,onReorderColumns:_,onPatchColumn:v,onToggleColumn:C,onResetColumns:w,canResetLayout:b.value,onResetLayout:y},null):null,J(jIe,{striped:k.value,bordered:A.value,onChange:ne},null)]):null]):null]):null,J(Vue,I(re.value,{striped:k.value,bordered:A.value,ref:`dataTable`,columns:S.value,pagination:h.value,flexHeight:i||e.flexHeight,rowProps:M,size:O.value}),OLe(P)?P:{default:()=>[P]})]),se?J(`div`,{class:`r-table__footer`},[se]):null,ce?J(`div`,{class:`r-table__action`},[ce]):null,u?.length?J(jp,{show:!!j.value,placement:`bottom-start`,trigger:`manual`,x:j.value?.x??0,y:j.value?.y??0,options:u,onClickoutside:ee,onUpdateShow:e=>{e||ee()},onSelect:(e,t)=>{let n=j.value;if(ee(),n&&!f){let{row:r,index:i}=n;d?.(e,t,{row:r,index:i})}}},null):null])}}});function ALe({request:e,filters:t,paging:n,updatePage:r,reportError:i}){let a=N(`idle`),o=p(),s=V(n=>{let r=e();if(!r)return;let i=t();return delete i.page,delete i.pageSize,n?.request===r&&Mo(n.filters,i)?n:{request:r,filters:Va(i)}}),c=V(()=>o.value?.scope===s.value?o.value:void 0),l=V(()=>{let e=c.value;return e&&Mo(e.paging,n())?e.response:void 0}),u=V(()=>c.value?.response.total??null),d=V(()=>{if(!e())return null;let t=n();return Object.freeze({loading:a.value===`loading`,failed:a.value===`failed`,page:t?.page??null,pageSize:t?.pageSize??null,total:u.value})}),f,m=async()=>{f?.abort();let e=s.value;if(o.value?.scope!==e&&(o.value=void 0),!e){f=void 0,a.value=`idle`;return}let t=n(),c=new AbortController,l=()=>!c.signal.aborted&&e===s.value&&Mo(t,n());f=c,a.value=`loading`;try{let i=await e.request(Va({...e.filters,...t}),c.signal);if(!l())return;if(!Array.isArray(i.data)||!Number.isSafeInteger(i.total)||i.total<0)throw TypeError(`[RTablePro] Expected { data: Row[], total: number }.`);if(t){let e=Math.max(1,Math.ceil(i.total/t.pageSize));if(t.page>e&&(r(e),i.total)){await m();return}}o.value={scope:e,paging:n(),response:i}}catch(e){if(!l())return;o.value=void 0,a.value=`failed`,i(e)}finally{f===c&&(f=void 0,a.value===`loading`&&(a.value=`idle`))}};return se(()=>{f?.abort(),f=void 0}),{reload:m,activeResult:l,total:u,phase:a,state:d}}function jLe(e,t,n,r,i,a){let o=p(fX(e(),t())),s=V(()=>gIe(e())),l=0,u,d=()=>{clearTimeout(u),l+=1};Te(()=>t()?.submitMode,e=>{e!==`change`&&d()});let f=async()=>{d();let e=l,t=o.value,r=()=>e===l;try{let e=n(r);return e!==!0&&!await e?!1:r()?await a(t,`submit`):!1}catch(e){return r()?i(e):!1}};return c(d),{draft:o,getValues:()=>aX(o.value),setValues:n=>{let r=_Ie(e(),o.value,n,s.value);r!==o.value&&(d(),o.value=r,t()?.submitMode===`change`&&(u=setTimeout(()=>void f(),t()?.debounce??300)))},submit:f,reset:()=>(d(),o.value=fX(e(),t()),r(),a(o.value,`reset`)),reconcile:n=>{d();let r=fX(e(),t()),i=Object.fromEntries(Object.entries(o.value).filter(([e])=>n.has(e)));o.value=dX(e(),{...r,...i})}}}var ZX=e=>Number.isSafeInteger(e)&&e>0,QX=[],$X=[],MLe={...bX,columns:{...bX.columns,type:Array},pagination:{type:[Boolean,Object],default:void 0},pageSize:{type:Number,default:10},request:Function,onRegister:Function,params:Object,search:{type:[Array,Object,Boolean],default:void 0},rowKey:{type:bX.rowKey,default:e=>e.id??e.key}};function eZ(e,t){return{values:e,params:yIe(t,aX(e)),matches:bIe(t,e)}}var NLe=Y({name:`RTablePro`,inheritAttrs:!1,props:MLe,emits:{"request-error":e=>!0,"search-error":e=>!0,search:e=>!0},setup(e,{attrs:t,slots:n,expose:r,emit:i}){let{t:a}=$Y(),{reportError:o}=LJ(),s=p(),c=lt(`searchForm`),l=N(!!n.filters),u=N(!1),d,f=e=>(u.value&&e===d||(d=e,u.value=!0,i(`search-error`,e)),!1),m=V(()=>fIe(e.search)),h=V(()=>{let t=m.value;return l.value||!t?$X:pIe(t,e.columns).map(e=>({...e}))}),g=jLe(()=>h.value,()=>m.value,e=>h.value.some(e=>e.type&&e.rules)?c.value?.validate(e)??!0:!0,()=>c.value?.restoreValidation(),f,(e,t)=>oe(e,h.value,t)),_=p(eZ({},$X)),v=V(e=>{try{return{fields:mX(h.value,g.draft.value)}}catch(t){return{fields:e?.fields??$X,error:{cause:t}}}});try{let e=g.draft.value;_.value=eZ(hX(mX(h.value,e),e),h.value)}catch(e){f(e)}let y=V(()=>e.remote&&!!m.value&&!iX(e.search)&&!l.value),b=V(()=>e.pagination??!e.bare),x=V(()=>b.value!==!1),S=V(()=>typeof e.pagination==`object`?e.pagination:void 0),C=V(()=>{let t=S.value?.pageSize??S.value?.defaultPageSize??e.pageSize;return ZX(t)?t:10}),w=V(()=>TIe(S.value)),T=S.value?.defaultPage??1,E=N(ZX(T)?T:1),D=N(C.value),O=V(()=>e.request?E.value:S.value?.page??E.value),k=V(()=>e.request?D.value:S.value?.pageSize??D.value),A=t=>{if(!x.value||!ZX(t)||O.value===t)return!1;E.value=t,w.value.notifyPage(t);for(let n of[e.onUpdatePage,e[`onUpdate:page`],e.onPageChange])n&&WS(n,t);return!0},{reload:j,activeResult:ee,total:te,phase:M,state:ne}=ALe({request:()=>e.request,filters:()=>({...e.params,..._.value.params}),paging:()=>x.value?{page:E.value,pageSize:D.value}:void 0,updatePage:A,reportError:e=>{i(`request-error`,e),n.error||o?.(a(`requestError`))}}),re=(e=!1)=>(e&&A(1),j()),ie=V(t=>{let n=e.data,{matches:r}=_.value;if(!r||e.request||y.value)return{source:n,rows:n};try{return{source:n,rows:n.filter(r)}}catch(e){return{source:n,rows:t?.source===n?t.rows:[],error:{cause:e}}}});Te([()=>v.value.error,()=>ie.value.error],(e,t)=>{e.forEach((e,n)=>{e&&e!==t[n]&&f(e.cause)})},{immediate:!0});let P=async e=>{A(e)&&await re()},ae=async t=>{if(x.value&&ZX(t)&&k.value!==t){D.value=t,w.value.notifyPageSize(t);for(let n of[e.onPageSizeChange,e.onUpdatePageSize,e[`onUpdate:pageSize`]])n&&WS(n,t);await re(!0)}};async function oe(t,n,r,a=!0){let o=_.value;try{let e=a?hX(mX(n,t),t):t;_.value=eZ(aX(e),n);let r=ie.value.error;if(r)throw r.cause}catch(e){return _.value=o,f(e)}u.value=!1;let s=_.value;return!r&&e.request&&Mo(o.params,s.params)||(A(1),r&&i(`search`,{values:aX(s.values),params:aX(s.params),reason:r}),await re()),!0}let se=async e=>{await oe(e,m.value?.fields?.filter(({type:e})=>!e)??$X,`submit`,!1)};Wt(()=>{l.value=!!n.filters}),Te(h,(e,t)=>{let n=new Map(t.map(e=>[e.key,e])),r=new Set(e.filter(e=>pX(e,n.get(e.key))).map(({key:e})=>e));if(r.size===e.length&&e.length===t.length&&e.every(e=>vIe(e,n.get(e.key))))return;g.reconcile(r);let i=Object.fromEntries(Object.entries(_.value.values).filter(([e])=>r.has(e)));Object.keys(_.value.values).length&&oe(i,e)}),Te([()=>e.request,()=>e.params,x,C],([,,,e],t)=>{e!==t[3]&&(D.value=e),(t.length||!u.value)&&re(t.length>0)},{deep:!0,immediate:!0});let ce={get queryState(){return ne.value},reload:re,setPage:P,setPageSize:ae,getSearchValues:(e=`draft`)=>e===`applied`?aX(_.value.values):g.getValues(),setSearchValues:e=>{h.value.length&&g.setValues(e)},submitSearch:()=>h.value.length?g.submit():Promise.resolve(!1),resetSearch:()=>h.value.length?g.reset():Promise.resolve(!1),getTableInstance:()=>e.request&&!ee.value?null:s.value?.getTableInstance()??null,getCurrentPageData:()=>e.request?ee.value?.data??QX:s.value?.getTableInstance()?.getCurrentPageData()??[],print:t=>(!e.request||ee.value?s.value?.print(t):void 0)??Promise.resolve(!1),downloadCsv:t=>{(!e.request||ee.value)&&s.value?.downloadCsv(t)}};r(ce),Ve(()=>e.onRegister?.(ce));let le=V(()=>AIe(e));return()=>{let{request:r,search:i,loading:o,remote:c}=e,{filters:l,error:d,notice:f,...p}=n,_=b.value!==!1&&{showSizePicker:!0,pageSizes:[10,20,50,100],prefix:({itemCount:e})=>a(`total`,{count:e}),...w.value.view,page:O.value,pageSize:k.value,...r?{itemCount:te.value??0,pageCount:void 0}:{}};return J(kLe,I(t,le.value,{ref:s,remote:!!r||c,data:r?ee.value?.data??QX:ie.value.rows,rowActionsDisabled:!!r&&!ee.value,loading:M.value===`loading`||o,pagination:_,onUpdatePage:P,onUpdatePageSize:ae}),{...p,filters:l?()=>l({submit:se}):h.value.length?()=>J(wIe,{ref:`searchForm`,fields:v.value.fields,values:g.draft.value,options:m.value,legacy:iX(i),failed:u.value,submit:ce.submitSearch,reset:ce.resetSearch,setValue:(e,t)=>g.setValues({[e]:t})},null):void 0,notice:M.value===`failed`&&d?()=>d({reload:re}):f})}}}),PLe={...pee,loading:{type:Boolean,default:!1},loadingDescription:{type:String,default:void 0},autocomplete:{type:String,default:`off`},submitWhenEnter:{type:Boolean,default:!1},onFinish:{type:Function,default:null},onRegister:{type:[Function,Array],default:null}},tZ=Y({name:`RForm`,props:PLe,setup(e,{expose:t}){let n=lt(`formRef`),r=V(()=>e.onFinish??Promise.resolve);return e.submitWhenEnter&&zi(n,`keydown`,e=>{e.code===`Enter`&&(e.stopPropagation(),e.preventDefault(),n.value?.validate().then(r.value))},{capture:!0}),Ve(()=>{let{onRegister:t}=e;t&&n.value&&WS(t,n.value)}),t(),{formRef:n}},render(){let{$attrs:e,$props:t,$slots:n}=this,{loading:r,loadingDescription:i,autocomplete:a,...o}=t;return J(a_,{show:r,description:i,style:{height:`auto`}},{default:()=>[J(Or,I(e,o,{autocomplete:a},{ref:`formRef`}),{...n})]})}}),nZ=(e,t)=>{let n=p(),r=N(),i=e=>{e&&(n.value=e)},a=()=>{if(!n.value)throw Error(`[useForm]: form instance is not ready yet. if you are using useForm, please make sure you have called register method in onRegister event.`);return n.value},o=()=>{typeof e==`function`?r.value=e()??{}:r.value=Va(e)??{}},s=(e,t)=>a().validate.call(null,e,t),c=()=>a().restoreValidation.call(null),l=()=>typeof e==`function`?e():Va(e)||{};return o(),[i,{getFormInstance:a,validate:s,restoreValidation:c,formModel:l,formRules:()=>typeof t==`function`?t():Va(t)||{},reset:e=>{r.value=Object.assign(r.value,l(),e),c()},validateTargetField:e=>{if(!e||typeof e!=`string`)throw Error(`[useForm-validateTargetField]: except key is string, but got ${typeof e}.`);return s(void 0,t=>t?.key===e)},formConditionRef:r,updateFormCondition:e=>{r.value=Object.assign(r.value,e)}}]},FLe=[`addTabClass`,`addTabStyle`,`paneClass`,`paneStyle`,`paneWrapperStyle`,`tabClass`,`tabStyle`,`type`,`label`,`addable`,`closable`,`onAdd`,`onClose`,`placement`,`animated`,`justifyContent`,`builtinThemeOverrides`,`displayDirective`],ILe={tabPaddingSmallSegment:`4px 7px`,tabPaddingMediumSegment:`6px 11px`,tabPaddingLargeSegment:`8px 11px`},LLe=Fo({...h_,options:{type:Array,default:()=>[]},width:{type:[Number,String],default:`fitContent`}},...FLe);function RLe(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!wn(e)}var rZ=e=>{let{icon:t,label:n}=e;return t?J(Nr,{align:`center`,wrap:!1,size:`small`},{default:()=>[typeof t==`function`?t():t,J(`div`,null,[n])]}):n},zLe=e=>{if(typeof e.popover==`string`)return J(Rc,null,{trigger:()=>rZ(e),default:()=>e.popover});if(qS(e.popover,`Object`)){let{popover:t}=e,{label:n,...r}=t;return J(Rc,r,{trigger:()=>rZ(e),default:()=>n})}},iZ=Y({name:`RSegment`,props:LLe,setup(e,{expose:t}){let n=V(()=>{let{width:t}=e,n;switch(t){case`block`:n=`100%`;break;case`fitContent`:n=`fit-content`;break;default:n=typeof t==`number`?US(t):`fit-content`}return{"--r-segment-width":n}});return t(),{cssVars:n}},render(){let e,{$props:t,options:n,cssVars:r,themeOverrides:i}=this;return J(g_,I(t,{style:[r],class:[`r-segment`,{"r-segment--intrinsic":this.width===`fitContent`}],type:`segment`,animated:!0,themeOverrides:Object.assign({},ILe,i)}),RLe(e=n.map(e=>J(f_,{key:e.key,name:e.key,tab:e.popover?zLe(e):rZ(e),disabled:e.disabled},{...e.slots})))?e:{default:()=>[e]})}}),aZ=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}e.default=function e(n,r){t(this,e),this.data=n,this.text=r.text||n,this.options=r}})),BLe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CODE39=void 0;var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=r(aZ());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function a(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function o(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(e){o(n,e);function n(e,t){return i(this,n),e=e.toUpperCase(),t.mod43&&(e+=f(m(e))),a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t))}return t(n,[{key:`encode`,value:function(){for(var e=u(`*`),t=0;t<this.data.length;t++)e+=u(this.data[t])+`0`;return e+=u(`*`),{data:e,text:this.text}}},{key:`valid`,value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),n}(n.default),c=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%*`.split(``),l=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function u(e){return d(p(e))}function d(e){return l[e].toString(2)}function f(e){return c[e]}function p(e){return c.indexOf(e)}function m(e){for(var t=0,n=0;n<e.length;n++)t+=p(e[n]);return t%=43,t}e.CODE39=s})),oZ=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t;function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r=e.SET_A=0,i=e.SET_B=1,a=e.SET_C=2;e.SHIFT=98;var o=e.START_A=103,s=e.START_B=104,c=e.START_C=105;e.MODULO=103,e.STOP=106,e.FNC1=207,e.SET_BY_CODE=(t={},n(t,o,r),n(t,s,i),n(t,c,a),t),e.SWAP={101:r,100:i,99:a},e.A_START_CHAR=`Ð`,e.B_START_CHAR=`Ñ`,e.C_START_CHAR=`Ò`,e.A_CHARS=`[\0-_È-Ï]`,e.B_CHARS=`[ -È-Ï]`,e.C_CHARS=`(Ï*[0-9]{2}Ï*)`,e.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011]})),sZ=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=i(aZ()),r=oZ();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=function(e){s(n,e);function n(e,t){a(this,n);var r=o(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e.substring(1),t));return r.bytes=e.split(``).map(function(e){return e.charCodeAt(0)}),r}return t(n,[{key:`valid`,value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:`encode`,value:function(){var e=this.bytes,t=e.shift()-105,i=r.SET_BY_CODE[t];if(i===void 0)throw RangeError(`The encoding does not start with a start character.`);this.shouldEncodeAsEan128()===!0&&e.unshift(r.FNC1);var a=n.next(e,1,i);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,``):this.text,data:n.getBar(t)+a.result+n.getBar((a.checksum+t)%r.MODULO)+n.getBar(r.STOP)}}},{key:`shouldEncodeAsEan128`,value:function(){var e=this.options.ean128||!1;return typeof e==`string`&&(e=e.toLowerCase()===`true`),e}}],[{key:`getBar`,value:function(e){return r.BARS[e]?r.BARS[e].toString():``}},{key:`correctIndex`,value:function(e,t){if(t===r.SET_A){var n=e.shift();return n<32?n+64:n-32}return t===r.SET_B?e.shift()-32:(e.shift()-48)*10+e.shift()-48}},{key:`next`,value:function(e,t,i){if(!e.length)return{result:``,checksum:0};var a=void 0,o=void 0;if(e[0]>=200){o=e.shift()-105;var s=r.SWAP[o];s===void 0?((i===r.SET_A||i===r.SET_B)&&o===r.SHIFT&&(e[0]=i===r.SET_A?e[0]>95?e[0]-96:e[0]:e[0]<32?e[0]+96:e[0]),a=n.next(e,t+1,i)):a=n.next(e,t+1,s)}else o=n.correctIndex(e,i),a=n.next(e,t+1,i);var c=n.getBar(o),l=o*t;return{result:c+a.result,checksum:l+a.checksum}}}]),n}(n.default)})),VLe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=oZ(),n=function(e){return e.match(RegExp(`^`+t.A_CHARS+`*`))[0].length},r=function(e){return e.match(RegExp(`^`+t.B_CHARS+`*`))[0].length},i=function(e){return e.match(RegExp(`^`+t.C_CHARS+`*`))[0]};function a(e,n){var r=n?t.A_CHARS:t.B_CHARS,i=e.match(RegExp(`^(`+r+`+?)(([0-9]{2}){2,})([^0-9]|$)`));if(i)return i[1]+`Ì`+o(e.substring(i[1].length));var s=e.match(RegExp(`^`+r+`+`))[0];return s.length===e.length?e:s+String.fromCharCode(n?205:206)+a(e.substring(s.length),!n)}function o(e){var t=i(e),o=t.length;if(o===e.length)return e;e=e.substring(o);var s=n(e)>=r(e);return t+String.fromCharCode(s?206:205)+a(e,s)}e.default=function(e){var s=void 0;if(i(e).length>=2)s=t.C_START_CHAR+o(e);else{var c=n(e)>r(e);s=(c?t.A_START_CHAR:t.B_START_CHAR)+a(e,c)}return s.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(e,t){return`Ë`+t})}})),HLe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=r(sZ()),n=r(VLe());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function a(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function o(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=function(e){o(t,e);function t(e,r){if(i(this,t),/^[\x00-\x7F\xC8-\xD3]+$/.test(e))var o=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,(0,n.default)(e),r));else var o=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return a(o)}return t}(t.default)})),ULe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=i(sZ()),r=oZ();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=function(e){s(n,e);function n(e,t){return a(this,n),o(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,r.A_START_CHAR+e,t))}return t(n,[{key:`valid`,value:function(){return RegExp(`^`+r.A_CHARS+`+$`).test(this.data)}}]),n}(n.default)})),WLe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=i(sZ()),r=oZ();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=function(e){s(n,e);function n(e,t){return a(this,n),o(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,r.B_START_CHAR+e,t))}return t(n,[{key:`valid`,value:function(){return RegExp(`^`+r.B_CHARS+`+$`).test(this.data)}}]),n}(n.default)})),GLe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=i(sZ()),r=oZ();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=function(e){s(n,e);function n(e,t){return a(this,n),o(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,r.C_START_CHAR+e,t))}return t(n,[{key:`valid`,value:function(){return RegExp(`^`+r.C_CHARS+`+$`).test(this.data)}}]),n}(n.default)})),KLe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CODE128C=e.CODE128B=e.CODE128A=e.CODE128=void 0;var t=a(HLe()),n=a(ULe()),r=a(WLe()),i=a(GLe());function a(e){return e&&e.__esModule?e:{default:e}}e.CODE128=t.default,e.CODE128A=n.default,e.CODE128B=r.default,e.CODE128C=i.default})),cZ=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SIDE_BIN=`101`,e.MIDDLE_BIN=`01010`,e.BINARIES={L:[`0001101`,`0011001`,`0010011`,`0111101`,`0100011`,`0110001`,`0101111`,`0111011`,`0110111`,`0001011`],G:[`0100111`,`0110011`,`0011011`,`0100001`,`0011101`,`0111001`,`0000101`,`0010001`,`0001001`,`0010111`],R:[`1110010`,`1100110`,`1101100`,`1000010`,`1011100`,`1001110`,`1010000`,`1000100`,`1001000`,`1110100`],O:[`0001101`,`0011001`,`0010011`,`0111101`,`0100011`,`0110001`,`0101111`,`0111011`,`0110111`,`0001011`],E:[`0100111`,`0110011`,`0011011`,`0100001`,`0011101`,`0111001`,`0000101`,`0010001`,`0001001`,`0010111`]},e.EAN2_STRUCTURE=[`LL`,`LG`,`GL`,`GG`],e.EAN5_STRUCTURE=[`GGLLL`,`GLGLL`,`GLLGL`,`GLLLG`,`LGGLL`,`LLGGL`,`LLLGG`,`LGLGL`,`LGLLG`,`LLGLG`],e.EAN13_STRUCTURE=[`LLLLLL`,`LLGLGG`,`LLGGLG`,`LLGGGL`,`LGLLGG`,`LGGLLG`,`LGGGLL`,`LGLGLG`,`LGLGGL`,`LGGLGL`]})),lZ=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=cZ();e.default=function(e,n,r){var i=e.split(``).map(function(e,r){return t.BINARIES[n[r]]}).map(function(t,n){return t?t[e[n]]:``});if(r){var a=e.length-1;i=i.map(function(e,t){return t<a?e+r:e})}return i.join(``)}})),uZ=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=cZ(),r=a(lZ()),i=a(aZ());function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function s(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function c(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=function(e){c(i,e);function i(e,t){o(this,i);var n=s(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e,t));return n.fontSize=!t.flat&&t.fontSize>t.width*10?t.width*10:t.fontSize,n.guardHeight=t.height+n.fontSize/2+t.textMargin,n}return t(i,[{key:`encode`,value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:`leftText`,value:function(e,t){return this.text.substr(e,t)}},{key:`leftEncode`,value:function(e,t){return(0,r.default)(e,t)}},{key:`rightText`,value:function(e,t){return this.text.substr(e,t)}},{key:`rightEncode`,value:function(e,t){return(0,r.default)(e,t)}},{key:`encodeGuarded`,value:function(){var e={fontSize:this.fontSize},t={height:this.guardHeight};return[{data:n.SIDE_BIN,options:t},{data:this.leftEncode(),text:this.leftText(),options:e},{data:n.MIDDLE_BIN,options:t},{data:this.rightEncode(),text:this.rightText(),options:e},{data:n.SIDE_BIN,options:t}]}},{key:`encodeFlat`,value:function(){return{data:[n.SIDE_BIN,this.leftEncode(),n.MIDDLE_BIN,this.rightEncode(),n.SIDE_BIN].join(``),text:this.text}}}]),i}(i.default)})),qLe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=function e(t,n,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:e(a,n,r)}if(`value`in i)return i.value;var o=i.get;return o===void 0?void 0:o.call(r)},r=cZ(),i=a(uZ());function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function s(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function c(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){return(10-e.substr(0,12).split(``).map(function(e){return+e}).reduce(function(e,t,n){return n%2?e+t*3:e+t},0)%10)%10};e.default=function(e){c(i,e);function i(e,t){o(this,i),e.search(/^[0-9]{12}$/)!==-1&&(e+=l(e));var n=s(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e,t));return n.lastChar=t.lastChar,n}return t(i,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===l(this.data)}},{key:`leftText`,value:function(){return n(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),`leftText`,this).call(this,1,6)}},{key:`leftEncode`,value:function(){var e=this.data.substr(1,6),t=r.EAN13_STRUCTURE[this.data[0]];return n(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),`leftEncode`,this).call(this,e,t)}},{key:`rightText`,value:function(){return n(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),`rightText`,this).call(this,7,6)}},{key:`rightEncode`,value:function(){var e=this.data.substr(7,6);return n(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),`rightEncode`,this).call(this,e,`RRRRRR`)}},{key:`encodeGuarded`,value:function(){var e=n(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),`encodeGuarded`,this).call(this);return this.options.displayValue&&(e.unshift({data:`000000000000`,text:this.text.substr(0,1),options:{textAlign:`left`,fontSize:this.fontSize}}),this.options.lastChar&&(e.push({data:`00`}),e.push({data:`00000`,text:this.options.lastChar,options:{fontSize:this.fontSize}}))),e}}]),i}(i.default)})),JLe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=function e(t,n,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:e(a,n,r)}if(`value`in i)return i.value;var o=i.get;return o===void 0?void 0:o.call(r)},r=i(uZ());function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){return(10-e.substr(0,7).split(``).map(function(e){return+e}).reduce(function(e,t,n){return n%2?e+t:e+t*3},0)%10)%10};e.default=function(e){s(r,e);function r(e,t){return a(this,r),e.search(/^[0-9]{7}$/)!==-1&&(e+=c(e)),o(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,t))}return t(r,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===c(this.data)}},{key:`leftText`,value:function(){return n(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),`leftText`,this).call(this,0,4)}},{key:`leftEncode`,value:function(){var e=this.data.substr(0,4);return n(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),`leftEncode`,this).call(this,e,`LLLL`)}},{key:`rightText`,value:function(){return n(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),`rightText`,this).call(this,4,4)}},{key:`rightEncode`,value:function(){var e=this.data.substr(4,4);return n(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),`rightEncode`,this).call(this,e,`RRRR`)}}]),r}(r.default)})),YLe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=cZ(),r=a(lZ()),i=a(aZ());function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function s(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function c(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){return e.split(``).map(function(e){return+e}).reduce(function(e,t,n){return n%2?e+t*9:e+t*3},0)%10};e.default=function(e){c(i,e);function i(e,t){return o(this,i),s(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e,t))}return t(i,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:`encode`,value:function(){var e=n.EAN5_STRUCTURE[l(this.data)];return{data:`1011`+(0,r.default)(this.data,e,`01`),text:this.text}}}]),i}(i.default)})),XLe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=cZ(),r=a(lZ()),i=a(aZ());function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function s(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function c(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=function(e){c(i,e);function i(e,t){return o(this,i),s(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e,t))}return t(i,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:`encode`,value:function(){var e=n.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:`1011`+(0,r.default)(this.data,e,`01`),text:this.text}}}]),i}(i.default)})),dZ=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();e.checksum=l;var n=i(lZ()),r=i(aZ());function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){s(r,e);function r(e,t){a(this,r),e.search(/^[0-9]{11}$/)!==-1&&(e+=l(e));var n=o(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,t));return n.displayValue=t.displayValue,n.fontSize=t.fontSize>t.width*10?t.width*10:t.fontSize,n.guardHeight=t.height+n.fontSize/2+t.textMargin,n}return t(r,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==l(this.data)}},{key:`encode`,value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:`flatEncoding`,value:function(){var e=``;return e+=`101`,e+=(0,n.default)(this.data.substr(0,6),`LLLLLL`),e+=`01010`,e+=(0,n.default)(this.data.substr(6,6),`RRRRRR`),e+=`101`,{data:e,text:this.text}}},{key:`guardedEncoding`,value:function(){var e=[];return this.displayValue&&e.push({data:`00000000`,text:this.text.substr(0,1),options:{textAlign:`left`,fontSize:this.fontSize}}),e.push({data:`101`+(0,n.default)(this.data[0],`L`),options:{height:this.guardHeight}}),e.push({data:(0,n.default)(this.data.substr(1,5),`LLLLL`),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),e.push({data:`01010`,options:{height:this.guardHeight}}),e.push({data:(0,n.default)(this.data.substr(6,5),`RRRRR`),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),e.push({data:(0,n.default)(this.data[11],`R`)+`101`,options:{height:this.guardHeight}}),this.displayValue&&e.push({data:`00000000`,text:this.text.substr(11,1),options:{textAlign:`right`,fontSize:this.fontSize}}),e}}]),r}(r.default);function l(e){for(var t=0,n=1;n<11;n+=2)t+=parseInt(e[n]);for(n=0;n<11;n+=2)t+=parseInt(e[n])*3;return(10-t%10)%10}e.default=c})),ZLe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=a(lZ()),r=a(aZ()),i=dZ();function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function s(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function c(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=[`XX00000XXX`,`XX10000XXX`,`XX20000XXX`,`XXX00000XX`,`XXXX00000X`,`XXXXX00005`,`XXXXX00006`,`XXXXX00007`,`XXXXX00008`,`XXXXX00009`],u=[[`EEEOOO`,`OOOEEE`],[`EEOEOO`,`OOEOEE`],[`EEOOEO`,`OOEEOE`],[`EEOOOE`,`OOEEEO`],[`EOEEOO`,`OEOOEE`],[`EOOEEO`,`OEEOOE`],[`EOOOEE`,`OEEEOO`],[`EOEOEO`,`OEOEOE`],[`EOEOOE`,`OEOEEO`],[`EOOEOE`,`OEEOEO`]],d=function(e){c(r,e);function r(e,t){o(this,r);var n=s(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,t));if(n.isValid=!1,e.search(/^[0-9]{6}$/)!==-1)n.middleDigits=e,n.upcA=f(e,`0`),n.text=t.text||``+n.upcA[0]+e+n.upcA[n.upcA.length-1],n.isValid=!0;else if(e.search(/^[01][0-9]{7}$/)!==-1){if(n.middleDigits=e.substring(1,e.length-1),n.upcA=f(n.middleDigits,e[0]),n.upcA[n.upcA.length-1]===e[e.length-1])n.isValid=!0;else return s(n)}else return s(n);return n.displayValue=t.displayValue,n.fontSize=t.fontSize>t.width*10?t.width*10:t.fontSize,n.guardHeight=t.height+n.fontSize/2+t.textMargin,n}return t(r,[{key:`valid`,value:function(){return this.isValid}},{key:`encode`,value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:`flatEncoding`,value:function(){var e=``;return e+=`101`,e+=this.encodeMiddleDigits(),e+=`010101`,{data:e,text:this.text}}},{key:`guardedEncoding`,value:function(){var e=[];return this.displayValue&&e.push({data:`00000000`,text:this.text[0],options:{textAlign:`left`,fontSize:this.fontSize}}),e.push({data:`101`,options:{height:this.guardHeight}}),e.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),e.push({data:`010101`,options:{height:this.guardHeight}}),this.displayValue&&e.push({data:`00000000`,text:this.text[7],options:{textAlign:`right`,fontSize:this.fontSize}}),e}},{key:`encodeMiddleDigits`,value:function(){var e=this.upcA[0],t=this.upcA[this.upcA.length-1],r=u[parseInt(t)][parseInt(e)];return(0,n.default)(this.middleDigits,r)}}]),r}(r.default);function f(e,t){for(var n=l[parseInt(e[e.length-1])],r=``,a=0,o=0;o<n.length;o++){var s=n[o];r+=s===`X`?e[a++]:s}return r=``+t+r,``+r+(0,i.checksum)(r)}e.default=d})),QLe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.UPCE=e.UPC=e.EAN2=e.EAN5=e.EAN8=e.EAN13=void 0;var t=s(qLe()),n=s(JLe()),r=s(YLe()),i=s(XLe()),a=s(dZ()),o=s(ZLe());function s(e){return e&&e.__esModule?e:{default:e}}e.EAN13=t.default,e.EAN8=n.default,e.EAN5=r.default,e.EAN2=i.default,e.UPC=a.default,e.UPCE=o.default})),$Le=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.START_BIN=`1010`,e.END_BIN=`11101`,e.BINARIES=[`00110`,`10001`,`01001`,`11000`,`00101`,`10100`,`01100`,`00011`,`10010`,`01010`]})),fZ=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=$Le(),r=i(aZ());function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=function(e){s(r,e);function r(){return a(this,r),o(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return t(r,[{key:`valid`,value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:`encode`,value:function(){var e=this,t=this.data.match(/.{2}/g).map(function(t){return e.encodePair(t)}).join(``);return{data:n.START_BIN+t+n.END_BIN,text:this.text}}},{key:`encodePair`,value:function(e){var t=n.BINARIES[e[1]];return n.BINARIES[e[0]].split(``).map(function(e,n){return(e===`1`?`111`:`1`)+(t[n]===`1`?`000`:`0`)}).join(``)}}]),r}(r.default)})),eRe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=r(fZ());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function a(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function o(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(e){var t=e.substr(0,13).split(``).map(function(e){return parseInt(e,10)}).reduce(function(e,t,n){return e+t*(3-n%2*2)},0);return Math.ceil(t/10)*10-t};e.default=function(e){o(n,e);function n(e,t){return i(this,n),e.search(/^[0-9]{13}$/)!==-1&&(e+=s(e)),a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t))}return t(n,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===s(this.data)}}]),n}(n.default)})),tRe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ITF14=e.ITF=void 0;var t=r(fZ()),n=r(eRe());function r(e){return e&&e.__esModule?e:{default:e}}e.ITF=t.default,e.ITF14=n.default})),pZ=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=r(aZ());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function a(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function o(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(e){o(n,e);function n(e,t){return i(this,n),a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t))}return t(n,[{key:`encode`,value:function(){for(var e=`110`,t=0;t<this.data.length;t++){var n=parseInt(this.data[t]).toString(2);n=c(n,4-n.length);for(var r=0;r<n.length;r++)e+=n[r]==`0`?`100`:`110`}return e+=`1001`,{data:e,text:this.text}}},{key:`valid`,value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),n}(n.default);function c(e,t){for(var n=0;n<t;n++)e=`0`+e;return e}e.default=s})),mZ=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.mod10=t,e.mod11=n;function t(e){for(var t=0,n=0;n<e.length;n++){var r=parseInt(e[n]);(n+e.length)%2==0?t+=r:t+=r*2%10+Math.floor(r*2/10)}return(10-t%10)%10}function n(e){for(var t=0,n=[2,3,4,5,6,7],r=0;r<e.length;r++){var i=parseInt(e[e.length-1-r]);t+=n[r%n.length]*i}return(11-t%11)%11}})),nRe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=r(pZ()),n=mZ();function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function a(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function o(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=function(e){o(t,e);function t(e,r){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e+(0,n.mod10)(e),r))}return t}(t.default)})),rRe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=r(pZ()),n=mZ();function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function a(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function o(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=function(e){o(t,e);function t(e,r){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e+(0,n.mod11)(e),r))}return t}(t.default)})),iRe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=r(pZ()),n=mZ();function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function a(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function o(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=function(e){o(t,e);function t(e,r){return i(this,t),e+=(0,n.mod10)(e),e+=(0,n.mod10)(e),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return t}(t.default)})),aRe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=r(pZ()),n=mZ();function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function a(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function o(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=function(e){o(t,e);function t(e,r){return i(this,t),e+=(0,n.mod11)(e),e+=(0,n.mod10)(e),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return t}(t.default)})),oRe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MSI1110=e.MSI1010=e.MSI11=e.MSI10=e.MSI=void 0;var t=o(pZ()),n=o(nRe()),r=o(rRe()),i=o(iRe()),a=o(aRe());function o(e){return e&&e.__esModule?e:{default:e}}e.MSI=t.default,e.MSI10=n.default,e.MSI11=r.default,e.MSI1010=i.default,e.MSI1110=a.default})),sRe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.pharmacode=void 0;var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=r(aZ());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function a(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function o(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.pharmacode=function(e){o(n,e);function n(e,t){i(this,n);var r=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t));return r.number=parseInt(e,10),r}return t(n,[{key:`encode`,value:function(){for(var e=this.number,t=``;!isNaN(e)&&e!=0;)e%2==0?(t=`11100`+t,e=(e-2)/2):(t=`100`+t,e=(e-1)/2);return t=t.slice(0,-2),{data:t,text:this.text}}},{key:`valid`,value:function(){return this.number>=3&&this.number<=131070}}]),n}(n.default)})),cRe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.codabar=void 0;var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=r(aZ());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function a(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function o(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.codabar=function(e){o(n,e);function n(e,t){i(this,n),e.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(e=`A`+e+`A`);var r=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e.toUpperCase(),t));return r.text=r.options.text||r.text.replace(/[A-D]/g,``),r}return t(n,[{key:`valid`,value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:`encode`,value:function(){for(var e=[],t=this.getEncodings(),n=0;n<this.data.length;n++)e.push(t[this.data.charAt(n)]),n!==this.data.length-1&&e.push(`0`);return{text:this.text,data:e.join(``)}}},{key:`getEncodings`,value:function(){return{0:`101010011`,1:`101011001`,2:`101001011`,3:`110010101`,4:`101101001`,5:`110101001`,6:`100101011`,7:`100101101`,8:`100110101`,9:`110100101`,"-":`101001101`,$:`101100101`,":":`1101011011`,"/":`1101101011`,".":`1101101101`,"+":`1011011011`,A:`1011001001`,B:`1001001011`,C:`1010010011`,D:`1010011001`}}}]),n}(n.default)})),lRe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SYMBOLS=`0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,-,., ,$,/,+,%,($),(%),(/),(+),ÿ`.split(`,`),e.BINARIES=`100010100.101001000.101000100.101000010.100101000.100100100.100100010.101010000.100010010.100001010.110101000.110100100.110100010.110010100.110010010.110001010.101101000.101100100.101100010.100110100.100011010.101011000.101001100.101000110.100101100.100010110.110110100.110110010.110101100.110100110.110010110.110011010.101101100.101100110.100110110.100111010.100101110.111010100.111010010.111001010.101101110.101110110.110101110.100100110.111011010.111010110.100110010.101011110`.split(`.`),e.MULTI_SYMBOLS={"\0":[`(%)`,`U`],"":[`($)`,`A`],"":[`($)`,`B`],"":[`($)`,`C`],"":[`($)`,`D`],"":[`($)`,`E`],"":[`($)`,`F`],"\x07":[`($)`,`G`],"\b":[`($)`,`H`]," ":[`($)`,`I`],"\n":[`($)`,`J`],"\v":[`($)`,`K`],"\f":[`($)`,`L`],"\r":[`($)`,`M`],"":[`($)`,`N`],"":[`($)`,`O`],"":[`($)`,`P`],"":[`($)`,`Q`],"":[`($)`,`R`],"":[`($)`,`S`],"":[`($)`,`T`],"":[`($)`,`U`],"":[`($)`,`V`],"":[`($)`,`W`],"":[`($)`,`X`],"":[`($)`,`Y`],"":[`($)`,`Z`],"\x1B":[`(%)`,`A`],"":[`(%)`,`B`],"":[`(%)`,`C`],"":[`(%)`,`D`],"":[`(%)`,`E`],"!":[`(/)`,`A`],'"':[`(/)`,`B`],"#":[`(/)`,`C`],"&":[`(/)`,`F`],"'":[`(/)`,`G`],"(":[`(/)`,`H`],")":[`(/)`,`I`],"*":[`(/)`,`J`],",":[`(/)`,`L`],":":[`(/)`,`Z`],";":[`(%)`,`F`],"<":[`(%)`,`G`],"=":[`(%)`,`H`],">":[`(%)`,`I`],"?":[`(%)`,`J`],"@":[`(%)`,`V`],"[":[`(%)`,`K`],"\\":[`(%)`,`L`],"]":[`(%)`,`M`],"^":[`(%)`,`N`],_:[`(%)`,`O`],"`":[`(%)`,`W`],a:[`(+)`,`A`],b:[`(+)`,`B`],c:[`(+)`,`C`],d:[`(+)`,`D`],e:[`(+)`,`E`],f:[`(+)`,`F`],g:[`(+)`,`G`],h:[`(+)`,`H`],i:[`(+)`,`I`],j:[`(+)`,`J`],k:[`(+)`,`K`],l:[`(+)`,`L`],m:[`(+)`,`M`],n:[`(+)`,`N`],o:[`(+)`,`O`],p:[`(+)`,`P`],q:[`(+)`,`Q`],r:[`(+)`,`R`],s:[`(+)`,`S`],t:[`(+)`,`T`],u:[`(+)`,`U`],v:[`(+)`,`V`],w:[`(+)`,`W`],x:[`(+)`,`X`],y:[`(+)`,`Y`],z:[`(+)`,`Z`],"{":[`(%)`,`P`],"|":[`(%)`,`Q`],"}":[`(%)`,`R`],"~":[`(%)`,`S`],"":[`(%)`,`T`]}})),hZ=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=lRe(),r=i(aZ());function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=function(e){s(r,e);function r(e,t){return a(this,r),o(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,t))}return t(r,[{key:`valid`,value:function(){return/^[0-9A-Z\-. $/+%]+$/.test(this.data)}},{key:`encode`,value:function(){var e=this.data.split(``).flatMap(function(e){return n.MULTI_SYMBOLS[e]||e}),t=e.map(function(e){return r.getEncoding(e)}).join(``),i=r.checksum(e,20),a=r.checksum(e.concat(i),15);return{text:this.text,data:r.getEncoding(`ÿ`)+t+r.getEncoding(i)+r.getEncoding(a)+r.getEncoding(`ÿ`)+`1`}}}],[{key:`getEncoding`,value:function(e){return n.BINARIES[r.symbolValue(e)]}},{key:`getSymbol`,value:function(e){return n.SYMBOLS[e]}},{key:`symbolValue`,value:function(e){return n.SYMBOLS.indexOf(e)}},{key:`checksum`,value:function(e,t){var n=e.slice().reverse().reduce(function(e,n,i){var a=i%t+1;return e+r.symbolValue(n)*a},0);return r.getSymbol(n%47)}}]),r}(r.default)})),uRe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=r(hZ());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function a(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function o(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=function(e){o(n,e);function n(e,t){return i(this,n),a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t))}return t(n,[{key:`valid`,value:function(){return/^[\x00-\x7f]+$/.test(this.data)}}]),n}(n.default)})),dRe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CODE93FullASCII=e.CODE93=void 0;var t=r(hZ()),n=r(uRe());function r(e){return e&&e.__esModule?e:{default:e}}e.CODE93=t.default,e.CODE93FullASCII=n.default})),fRe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.GenericBarcode=void 0;var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=r(aZ());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function a(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function o(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.GenericBarcode=function(e){o(n,e);function n(e,t){return i(this,n),a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t))}return t(n,[{key:`encode`,value:function(){return{data:`10101010101010101010101010101010101010101`,text:this.text}}},{key:`valid`,value:function(){return!0}}]),n}(n.default)})),pRe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=BLe(),n=KLe(),r=QLe(),i=tRe(),a=oRe(),o=sRe(),s=cRe(),c=dRe(),l=fRe();e.default={CODE39:t.CODE39,CODE128:n.CODE128,CODE128A:n.CODE128A,CODE128B:n.CODE128B,CODE128C:n.CODE128C,EAN13:r.EAN13,EAN8:r.EAN8,EAN5:r.EAN5,EAN2:r.EAN2,UPC:r.UPC,UPCE:r.UPCE,ITF14:i.ITF14,ITF:i.ITF,MSI:a.MSI,MSI10:a.MSI10,MSI11:a.MSI11,MSI1010:a.MSI1010,MSI1110:a.MSI1110,pharmacode:o.pharmacode,codabar:s.codabar,CODE93:c.CODE93,CODE93FullASCII:c.CODE93FullASCII,GenericBarcode:l.GenericBarcode}})),gZ=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};e.default=function(e,n){return t({},e,n)}})),mRe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(e){var t=[];function n(e){if(Array.isArray(e))for(var r=0;r<e.length;r++)n(e[r]);else e.text=e.text||``,e.data=e.data||``,t.push(e)}return n(e),t}})),hRe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(e){return e.marginTop=e.marginTop||e.margin,e.marginBottom=e.marginBottom||e.margin,e.marginRight=e.marginRight||e.margin,e.marginLeft=e.marginLeft||e.margin,e}})),_Z=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(e){var t=[`width`,`height`,`textMargin`,`fontSize`,`margin`,`marginTop`,`marginBottom`,`marginLeft`,`marginRight`];for(var n in t)t.hasOwnProperty(n)&&(n=t[n],typeof e[n]==`string`&&(e[n]=parseInt(e[n],10)));return typeof e.displayValue==`string`&&(e.displayValue=e.displayValue!=`false`),e}})),vZ=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={width:2,height:100,format:`auto`,displayValue:!0,fontOptions:``,font:`monospace`,text:void 0,textAlign:`center`,textPosition:`bottom`,textMargin:2,fontSize:20,background:`#ffffff`,lineColor:`#000000`,margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}}})),gRe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=r(_Z()),n=r(vZ());function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var r={};for(var i in n.default)n.default.hasOwnProperty(i)&&(e.hasAttribute(`jsbarcode-`+i.toLowerCase())&&(r[i]=e.getAttribute(`jsbarcode-`+i.toLowerCase())),e.hasAttribute(`data-`+i.toLowerCase())&&(r[i]=e.getAttribute(`data-`+i.toLowerCase())));return r.value=e.getAttribute(`jsbarcode-value`)||e.getAttribute(`data-value`),r=(0,t.default)(r),r}e.default=i})),yZ=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getTotalWidthOfEncodings=e.calculateEncodingAttributes=e.getBarcodePadding=e.getEncodingHeight=e.getMaximumHeightOfEncodings=void 0;var t=n(gZ());function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return t.height+(t.displayValue&&e.text.length>0?t.fontSize+t.textMargin:0)+t.marginTop+t.marginBottom}function i(e,t,n){if(n.displayValue&&t<e){if(n.textAlign==`center`)return Math.floor((e-t)/2);if(n.textAlign==`left`)return 0;if(n.textAlign==`right`)return Math.floor(e-t)}return 0}function a(e,n,a){for(var o=0;o<e.length;o++){var s=e[o],l=(0,t.default)(n,s.options),u=l.displayValue?c(s.text,l,a):0,d=s.data.length*l.width;s.width=Math.ceil(Math.max(u,d)),s.height=r(s,l),s.barcodePadding=i(u,d,l)}}function o(e){for(var t=0,n=0;n<e.length;n++)t+=e[n].width;return t}function s(e){for(var t=0,n=0;n<e.length;n++)e[n].height>t&&(t=e[n].height);return t}function c(e,t,n){var r;if(n)r=n;else if(typeof document<`u`)r=document.createElement(`canvas`).getContext(`2d`);else return 0;r.font=t.fontOptions+` `+t.fontSize+`px `+t.font;var i=r.measureText(e);return i?i.width:0}e.getMaximumHeightOfEncodings=s,e.getEncodingHeight=r,e.getBarcodePadding=i,e.calculateEncodingAttributes=a,e.getTotalWidthOfEncodings=o})),_Re=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=i(gZ()),r=yZ();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}e.default=function(){function e(t,n,r){a(this,e),this.canvas=t,this.encodings=n,this.options=r}return t(e,[{key:`render`,value:function(){if(!this.canvas.getContext)throw Error(`The browser does not support canvas.`);this.prepareCanvas();for(var e=0;e<this.encodings.length;e++){var t=(0,n.default)(this.options,this.encodings[e].options);this.drawCanvasBarcode(t,this.encodings[e]),this.drawCanvasText(t,this.encodings[e]),this.moveCanvasDrawing(this.encodings[e])}this.restoreCanvas()}},{key:`prepareCanvas`,value:function(){var e=this.canvas.getContext(`2d`);e.save(),(0,r.calculateEncodingAttributes)(this.encodings,this.options,e);var t=(0,r.getTotalWidthOfEncodings)(this.encodings),n=(0,r.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=t+this.options.marginLeft+this.options.marginRight,this.canvas.height=n,e.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(e.fillStyle=this.options.background,e.fillRect(0,0,this.canvas.width,this.canvas.height)),e.translate(this.options.marginLeft,0)}},{key:`drawCanvasBarcode`,value:function(e,t){var n=this.canvas.getContext(`2d`),r=t.data,i=e.textPosition==`top`?e.marginTop+e.fontSize+e.textMargin:e.marginTop;n.fillStyle=e.lineColor;for(var a=0;a<r.length;a++){var o=a*e.width+t.barcodePadding;r[a]===`1`?n.fillRect(o,i,e.width,e.height):r[a]&&n.fillRect(o,i,e.width,e.height*r[a])}}},{key:`drawCanvasText`,value:function(e,t){var n=this.canvas.getContext(`2d`),r=e.fontOptions+` `+e.fontSize+`px `+e.font;if(e.displayValue){var i,a=e.textPosition==`top`?e.marginTop+e.fontSize-e.textMargin:e.height+e.textMargin+e.marginTop+e.fontSize;n.font=r,e.textAlign==`left`||t.barcodePadding>0?(i=0,n.textAlign=`left`):e.textAlign==`right`?(i=t.width-1,n.textAlign=`right`):(i=t.width/2,n.textAlign=`center`),n.fillText(t.text,i,a)}}},{key:`moveCanvasDrawing`,value:function(e){this.canvas.getContext(`2d`).translate(e.width,0)}},{key:`restoreCanvas`,value:function(){this.canvas.getContext(`2d`).restore()}}]),e}()})),vRe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=i(gZ()),r=yZ();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var o=`http://www.w3.org/2000/svg`;e.default=function(){function e(t,n,r){a(this,e),this.svg=t,this.encodings=n,this.options=r,this.document=r.xmlDocument||document}return t(e,[{key:`render`,value:function(){var e=this.options.marginLeft;this.prepareSVG();for(var t=0;t<this.encodings.length;t++){var r=this.encodings[t],i=(0,n.default)(this.options,r.options),a=this.createGroup(e,i.marginTop,this.svg);this.setGroupOptions(a,i),this.drawSvgBarcode(a,i,r),this.drawSVGText(a,i,r),e+=r.width}}},{key:`prepareSVG`,value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,r.calculateEncodingAttributes)(this.encodings,this.options);var e=(0,r.getTotalWidthOfEncodings)(this.encodings),t=(0,r.getMaximumHeightOfEncodings)(this.encodings),n=e+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(n,t),this.options.background&&this.drawRect(0,0,n,t,this.svg).setAttribute(`fill`,this.options.background)}},{key:`drawSvgBarcode`,value:function(e,t,n){for(var r=n.data,i=t.textPosition==`top`?t.fontSize+t.textMargin:0,a=0,o=0,s=0;s<r.length;s++)o=s*t.width+n.barcodePadding,r[s]===`1`?a++:a>0&&(this.drawRect(o-t.width*a,i,t.width*a,t.height,e),a=0);a>0&&this.drawRect(o-t.width*(a-1),i,t.width*a,t.height,e)}},{key:`drawSVGText`,value:function(e,t,n){var r=this.document.createElementNS(o,`text`);if(t.displayValue){var i,a;r.setAttribute(`font-family`,t.font),r.setAttribute(`font-size`,t.fontSize),t.fontOptions.includes(`bold`)&&r.setAttribute(`font-weight`,`bold`),t.fontOptions.includes(`italic`)&&r.setAttribute(`font-style`,`italic`),a=t.textPosition==`top`?t.fontSize-t.textMargin:t.height+t.textMargin+t.fontSize,t.textAlign==`left`||n.barcodePadding>0?(i=0,r.setAttribute(`text-anchor`,`start`)):t.textAlign==`right`?(i=n.width-1,r.setAttribute(`text-anchor`,`end`)):(i=n.width/2,r.setAttribute(`text-anchor`,`middle`)),r.setAttribute(`x`,i),r.setAttribute(`y`,a),r.appendChild(this.document.createTextNode(n.text)),e.appendChild(r)}}},{key:`setSvgAttributes`,value:function(e,t){var n=this.svg;n.setAttribute(`width`,e+`px`),n.setAttribute(`height`,t+`px`),n.setAttribute(`x`,`0px`),n.setAttribute(`y`,`0px`),n.setAttribute(`viewBox`,`0 0 `+e+` `+t),n.setAttribute(`xmlns`,o),n.setAttribute(`version`,`1.1`)}},{key:`createGroup`,value:function(e,t,n){var r=this.document.createElementNS(o,`g`);return r.setAttribute(`transform`,`translate(`+e+`, `+t+`)`),n.appendChild(r),r}},{key:`setGroupOptions`,value:function(e,t){e.setAttribute(`fill`,t.lineColor)}},{key:`drawRect`,value:function(e,t,n,r,i){var a=this.document.createElementNS(o,`rect`);return a.setAttribute(`x`,e),a.setAttribute(`y`,t),a.setAttribute(`width`,n),a.setAttribute(`height`,r),i.appendChild(a),a}}]),e}()})),yRe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function n(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}e.default=function(){function e(t,r,i){n(this,e),this.object=t,this.encodings=r,this.options=i}return t(e,[{key:`render`,value:function(){this.object.encodings=this.encodings}}]),e}()})),bRe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=i(_Re()),n=i(vRe()),r=i(yRe());function i(e){return e&&e.__esModule?e:{default:e}}e.default={CanvasRenderer:t.default,SVGRenderer:n.default,ObjectRenderer:r.default}})),bZ=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function n(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function r(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=function(e){r(i,e);function i(e,r){t(this,i);var a=n(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return a.name=`InvalidInputException`,a.symbology=e,a.input=r,a.message=`"`+a.input+`" is not a valid input for `+a.symbology,a}return i}(Error),a=function(e){r(i,e);function i(){t(this,i);var e=n(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return e.name=`InvalidElementException`,e.message=`Not supported type to render on`,e}return i}(Error),o=function(e){r(i,e);function i(){t(this,i);var e=n(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return e.name=`NoElementException`,e.message=`No element to render on.`,e}return i}(Error);e.InvalidInputException=i,e.InvalidElementException=a,e.NoElementException=o})),xRe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},n=a(gRe()),r=a(bRe()),i=bZ();function a(e){return e&&e.__esModule?e:{default:e}}function o(e){if(typeof e==`string`)return s(e);if(Array.isArray(e)){for(var a=[],l=0;l<e.length;l++)a.push(o(e[l]));return a}if(typeof HTMLCanvasElement<`u`&&e instanceof HTMLImageElement)return c(e);if(e&&e.nodeName&&e.nodeName.toLowerCase()===`svg`||typeof SVGElement<`u`&&e instanceof SVGElement)return{element:e,options:(0,n.default)(e),renderer:r.default.SVGRenderer};if(typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement)return{element:e,options:(0,n.default)(e),renderer:r.default.CanvasRenderer};if(e&&e.getContext)return{element:e,renderer:r.default.CanvasRenderer};if(e&&(e===void 0?`undefined`:t(e))===`object`&&!e.nodeName)return{element:e,renderer:r.default.ObjectRenderer};throw new i.InvalidElementException}function s(e){var t=document.querySelectorAll(e);if(t.length!==0){for(var n=[],r=0;r<t.length;r++)n.push(o(t[r]));return n}}function c(e){var t=document.createElement(`canvas`);return{element:t,options:(0,n.default)(e),renderer:r.default.CanvasRenderer,afterRender:function(){e.setAttribute(`src`,t.toDataURL())}}}e.default=o})),SRe=Qr((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function n(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}e.default=function(){function e(t){n(this,e),this.api=t}return t(e,[{key:`handleCatch`,value:function(e){if(e.name===`InvalidInputException`){if(this.api._options.valid!==this.api._defaults.valid)this.api._options.valid(!1);else throw e.message}else throw e;this.api.render=function(){}}},{key:`wrapBarcodeCall`,value:function(e){try{var t=e.apply(void 0,arguments);return this.api._options.valid(!0),t}catch(e){return this.handleCatch(e),this.api}}}]),e}()})),CRe=ei(Qr(((e,t)=>{var n=d(pRe()),r=d(gZ()),i=d(mRe()),a=d(hRe()),o=d(xRe()),s=d(_Z()),c=d(SRe()),l=bZ(),u=d(vZ());function d(e){return e&&e.__esModule?e:{default:e}}var f=function(){},p=function(e,t,n){var r=new f;if(e===void 0)throw Error(`No element to render on was provided.`);return r._renderProperties=(0,o.default)(e),r._encodings=[],r._options=u.default,r._errorHandler=new c.default(r),t!==void 0&&(n||={},n.format||(n.format=_()),r.options(n)[n.format](t,n).render()),r};for(var m in p.getModule=function(e){return n.default[e]},n.default)n.default.hasOwnProperty(m)&&h(n.default,m);function h(e,t){f.prototype[t]=f.prototype[t.toUpperCase()]=f.prototype[t.toLowerCase()]=function(n,i){var a=this;return a._errorHandler.wrapBarcodeCall(function(){i.text=i.text===void 0?void 0:``+i.text;var o=(0,r.default)(a._options,i);o=(0,s.default)(o);var c=e[t],l=g(n,c,o);return a._encodings.push(l),a})}}function g(e,t,n){e=``+e;var a=new t(e,n);if(!a.valid())throw new l.InvalidInputException(a.constructor.name,e);var o=a.encode();o=(0,i.default)(o);for(var s=0;s<o.length;s++)o[s].options=(0,r.default)(n,o[s].options);return o}function _(){return n.default.CODE128?`CODE128`:Object.keys(n.default)[0]}f.prototype.options=function(e){return this._options=(0,r.default)(this._options,e),this},f.prototype.blank=function(e){var t=Array(e+1).join(`0`);return this._encodings.push({data:t}),this},f.prototype.init=function(){if(this._renderProperties){Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]);var e;for(var t in this._renderProperties){e=this._renderProperties[t];var i=(0,r.default)(this._options,e.options);i.format==`auto`&&(i.format=_()),this._errorHandler.wrapBarcodeCall(function(){var t=i.value,r=n.default[i.format.toUpperCase()],a=g(t,r,i);v(e,a,i)})}}},f.prototype.render=function(){if(!this._renderProperties)throw new l.NoElementException;if(Array.isArray(this._renderProperties))for(var e=0;e<this._renderProperties.length;e++)v(this._renderProperties[e],this._encodings,this._options);else v(this._renderProperties,this._encodings,this._options);return this},f.prototype._defaults=u.default;function v(e,t,n){t=(0,i.default)(t);for(var o=0;o<t.length;o++)t[o].options=(0,r.default)(n,t[o].options),(0,a.default)(t[o].options);(0,a.default)(n);var s=e.renderer;new s(e.element,t,n).render(),e.afterRender&&e.afterRender()}typeof window<`u`&&(window.JsBarcode=p),typeof jQuery<`u`&&(jQuery.fn.JsBarcode=function(e,t){var n=[];return jQuery(this).each(function(){n.push(this)}),p(n,e,t)}),t.exports=p}))(),1),wRe=Y({name:`RBarcode`,props:{width:{type:[String,Number],default:`auto`},height:{type:[String,Number],default:`auto`},loading:{type:Boolean,default:!1},barcodeRender:{type:String,default:`canvas`,validator:e=>[`canvas`,`svg`].includes(e)},text:{type:String},options:{type:Object,default:()=>({})},format:{type:String,default:()=>`CODE128`},watchText:{type:Boolean,default:!0},onSuccess:{type:[Function,Array]},onError:{type:[Function,Array]},onFinally:{type:[Function,Array]},responsive:{type:Boolean,default:!1}},setup(e){let t=lt(`barcodeRef`),n=lt(`containerRef`),r=N({width:0,height:0}),i,a=V(()=>{let t=US(e.width),n=US(e.height);return e.width===`responsive`&&r.value.width>0&&(t=`${r.value.width}px`),e.height===`responsive`&&r.value.height>0&&(n=`${r.value.height}px`),{"--r-barcode-width":t,"--r-barcode-height":n}}),o,s=()=>{if(t.value)try{let{format:n,text:i,options:a,onSuccess:o}=e,s=Object.assign({},a,{format:n});r.value.width>0&&(e.width===`responsive`&&(s.width=Math.max(1,r.value.width/100)),e.height===`responsive`&&(s.height=Math.max(20,r.value.height*.8))),(0,CRe.default)(t.value,i==null?``:i.toString(),s),o&&WS(o,i,n,a)}catch(t){let{onError:n}=e;n&&WS(n,t)}finally{let{onFinally:t}=e;t&&WS(t)}};return ot(()=>{e.watchText?(o?.(),o=Te(()=>e.text,s)):o?.(),e.responsive?(i?.stop(),i=Xi(n,e=>{let t=e[0];if(t){let{width:e,height:n}=t.contentRect;r.value={width:e,height:n},he(()=>{s()})}})):(i?.stop(),i=null)}),Ve(()=>{if(n.value){let e=n.value.getBoundingClientRect();r.value={width:e.width,height:e.height}}he(()=>{s()})}),se(()=>{o?.()}),{barcodeRef:t,containerRef:n,cssVars:a}},render(){let{barcodeRender:e,loading:t,cssVars:n,responsive:r}=this,i=J(e===`canvas`?`canvas`:`svg`,{class:[`r-barcode`,{"r-barcode--loading":t}],style:n,ref:`barcodeRef`},null);return J(a_,{class:`r-barcode-spin`,show:t},{default:()=>[r?J(`div`,{class:`r-barcode-container`,ref:`containerRef`},[i]):i]})}}),xZ,SZ,CZ,wZ,TZ,EZ,DZ,OZ,kZ,AZ,jZ,MZ,NZ,PZ,FZ={},IZ=[],TRe=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,LZ=Array.isArray;function RZ(e,t){for(var n in t)e[n]=t[n];return e}function zZ(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function BZ(e,t,n){var r,i,a,o={};for(a in t)a==`key`?r=t[a]:a==`ref`?i=t[a]:o[a]=t[a];if(arguments.length>2&&(o.children=arguments.length>3?xZ.call(arguments,2):n),typeof e==`function`&&e.defaultProps!=null)for(a in e.defaultProps)o[a]===void 0&&(o[a]=e.defaultProps[a]);return VZ(e,o,r,i,null)}function VZ(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++CZ,__i:-1,__u:0};return i==null&&SZ.vnode!=null&&SZ.vnode(a),a}function HZ(){return{current:null}}function UZ(e){return e.children}function WZ(e,t){this.props=e,this.context=t}function GZ(e,t){if(t==null)return e.__?GZ(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==`function`?GZ(e):null}function ERe(e){if(e.__P&&e.__d){var t=e.__v,n=t.__e,r=[],i=[],a=RZ({},t);a.__v=t.__v+1,SZ.vnode&&SZ.vnode(a),tQ(e.__P,a,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,r,n??GZ(t),!!(32&t.__u),i),a.__v=t.__v,a.__.__k[a.__i]=a,rQ(r,a,i),t.__e=t.__=null,a.__e!=n&&KZ(a)}}function KZ(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),KZ(e)}function qZ(e){(!e.__d&&(e.__d=!0)&&wZ.push(e)&&!JZ.__r++||TZ!=SZ.debounceRendering)&&((TZ=SZ.debounceRendering)||EZ)(JZ)}function JZ(){try{for(var e,t=1;wZ.length;)wZ.length>t&&wZ.sort(DZ),e=wZ.shift(),t=wZ.length,ERe(e)}finally{wZ.length=JZ.__r=0}}function YZ(e,t,n,r,i,a,o,s,c,l,u){var d,f,p,m,h,g,_=r&&r.__k||IZ,v=t.length;for(c=DRe(n,t,_,c,v),d=0;d<v;d++)(p=n.__k[d])!=null&&(f=p.__i!=-1&&_[p.__i]||FZ,p.__i=d,g=tQ(e,p,f,i,a,o,s,c,l,u),m=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&aQ(f.ref,null,p),u.push(p.ref,p.__c||m,p)),h==null&&m!=null&&(h=m),4&p.__u?(c=XZ(p,c,e),f.__e&&(f.__e=null)):typeof p.type==`function`&&g!==void 0?c=g:m&&(c=m.nextSibling),p.__u&=-7);return n.__e=h,c}function DRe(e,t,n,r,i){var a,o,s,c,l,u=n.length,d=u,f=0;for(e.__k=Array(i),a=0;a<i;a++)(o=t[a])!=null&&typeof o!=`boolean`&&typeof o!=`function`?(typeof o==`string`||typeof o==`number`||typeof o==`bigint`||o.constructor==String?o=e.__k[a]=VZ(null,o,null,null,null):LZ(o)?o=e.__k[a]=VZ(UZ,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?o=e.__k[a]=VZ(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):e.__k[a]=o,c=a+f,o.__=e,o.__b=e.__b+1,s=null,(l=o.__i=ORe(o,n,c,d))!=-1&&(d--,(s=n[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(i>u?f--:i<u&&f++),typeof o.type!=`function`&&(o.__u|=4)):l!=c&&(l==c-1?f--:l==c+1?f++:(l>c?f--:f++,o.__u|=4))):e.__k[a]=null;if(d)for(a=0;a<u;a++)(s=n[a])!=null&&!(2&s.__u)&&(s.__e==r&&(r=GZ(s)),oQ(s,s));return r}function XZ(e,t,n){var r,i;if(typeof e.type==`function`){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=XZ(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!t.parentNode&&(t=GZ(e)),t=n.insertBefore(e.__e,t||null));do t&&=t.nextSibling;while(t!=null&&t.nodeType==8);return t}function ZZ(e,t){return t||=[],e==null||typeof e==`boolean`||(LZ(e)?e.some(function(e){ZZ(e,t)}):t.push(e)),t}function ORe(e,t,n,r){var i,a,o,s=e.key,c=e.type,l=t[n],u=l!=null&&!(2&l.__u);if(l===null&&s==null||u&&s==l.key&&c==l.type)return n;if(r>+!!u){for(i=n-1,a=n+1;i>=0||a<t.length;)if((l=t[o=i>=0?i--:a++])!=null&&!(2&l.__u)&&s==l.key&&c==l.type)return o}return-1}function QZ(e,t,n){t[0]==`-`?e.setProperty(t,n??``):e[t]=n==null?``:typeof n!=`number`||TRe.test(t)?n:n+`px`}function $Z(e,t,n,r,i){var a,o;n:if(t==`style`){if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||QZ(e.style,t,``);if(n)for(t in n)r&&n[t]==r[t]||QZ(e.style,t,n[t])}}else if(t[0]==`o`&&t[1]==`n`)a=t!=(t=t.replace(jZ,`$1`)),o=t.toLowerCase(),t=o in e||t==`onFocusOut`||t==`onFocusIn`?o.slice(2):t.slice(2),e.l||={},e.l[t+a]=n,n?r?n[AZ]=r[AZ]:(n[AZ]=MZ,e.addEventListener(t,a?PZ:NZ,a)):e.removeEventListener(t,a?PZ:NZ,a);else{if(i==`http://www.w3.org/2000/svg`)t=t.replace(/xlink(H|:h)/,`h`).replace(/sName$/,`s`);else if(t!=`width`&&t!=`height`&&t!=`href`&&t!=`list`&&t!=`form`&&t!=`tabIndex`&&t!=`download`&&t!=`rowSpan`&&t!=`colSpan`&&t!=`role`&&t!=`popover`&&t in e)try{e[t]=n??``;break n}catch{}typeof n==`function`||(n==null||!1===n&&t[4]!=`-`?e.removeAttribute(t):e.setAttribute(t,t==`popover`&&n==1?``:n))}}function eQ(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t[kZ]==null)t[kZ]=MZ++;else if(t[kZ]<n[AZ])return;return n(SZ.event?SZ.event(t):t)}}}function tQ(e,t,n,r,i,a,o,s,c,l){var u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),a=[s=t.__e=n.__e]),(u=SZ.__b)&&u(t);n:if(typeof E==`function`){d=o.length;try{if(v=t.props,y=E.prototype&&E.prototype.render,b=(u=E.contextType)&&r[u.__c],x=u?b?b.props.value:u.__:r,n.__c?_=(f=t.__c=n.__c).__=f.__E:(y?t.__c=f=new E(v,x):(t.__c=f=new WZ(v,x),f.constructor=E,f.render=ARe),b&&b.sub(f),f.state||(f.state={}),f.__n=r,p=f.__d=!0,f.__h=[],f._sb=[]),y&&f.__s==null&&(f.__s=f.state),y&&E.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=RZ({},f.__s)),RZ(f.__s,E.getDerivedStateFromProps(v,f.__s))),m=f.props,h=f.state,f.__v=t,p)y&&E.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),y&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(y&&E.getDerivedStateFromProps==null&&v!==m&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(v,x),t.__v==n.__v||!f.__e&&f.shouldComponentUpdate!=null&&!1===f.shouldComponentUpdate(v,f.__s,x)){t.__v!=n.__v&&(f.props=v,f.state=f.__s,f.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),IZ.push.apply(f.__h,f._sb),f._sb=[],f.__h.length&&o.push(f),s=GZ(n);break n}f.componentWillUpdate!=null&&f.componentWillUpdate(v,f.__s,x),y&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(m,h,g)})}if(f.context=x,f.props=v,f.__P=e,f.__e=!1,S=SZ.__r,C=0,y)f.state=f.__s,f.__d=!1,S&&S(t),u=f.render(f.props,f.state,f.context),IZ.push.apply(f.__h,f._sb),f._sb=[];else do f.__d=!1,S&&S(t),u=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++C<25);f.state=f.__s,f.getChildContext!=null&&(r=RZ(RZ({},r),f.getChildContext())),y&&!p&&f.getSnapshotBeforeUpdate!=null&&(g=f.getSnapshotBeforeUpdate(m,h)),w=u!=null&&u.type===UZ&&u.key==null?iQ(u.props.children):u,s=YZ(e,LZ(w)?w:[w],t,n,r,i,a,o,s,c,l),f.base=t.__e,t.__u&=-161,f.__h.length&&o.push(f),_&&(f.__E=f.__=null)}catch(e){if(o.length=d,t.__v=null,c||a!=null){if(e.then){for(t.__u|=c?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;a!=null&&(a[a.indexOf(s)]=null),t.__e=s}else if(a!=null)for(T=a.length;T--;)zZ(a[T])}else t.__e=n.__e;t.__k??=n.__k||[],e.then||nQ(t),SZ.__e(e,t,n)}}else a==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):s=t.__e=kRe(n.__e,t,n,r,i,a,o,c,l);return(u=SZ.diffed)&&u(t),128&t.__u?void 0:s}function nQ(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(nQ))}function rQ(e,t,n){for(var r=0;r<n.length;r++)aQ(n[r],n[++r],n[++r]);SZ.__c&&SZ.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){SZ.__e(e,t.__v)}})}function iQ(e){return typeof e!=`object`||!e||e.__b>0?e:LZ(e)?e.map(iQ):e.constructor===void 0?RZ({},e):null}function kRe(e,t,n,r,i,a,o,s,c){var l,u,d,f,p,m,h,g=n.props||FZ,_=t.props,v=t.type;if(v==`svg`?i=`http://www.w3.org/2000/svg`:v==`math`?i=`http://www.w3.org/1998/Math/MathML`:i||=`http://www.w3.org/1999/xhtml`,a!=null){for(l=0;l<a.length;l++)if((p=a[l])&&`setAttribute`in p==!!v&&(v?p.localName==v:p.nodeType==3)){e=p,a[l]=null;break}}if(e==null){if(v==null)return document.createTextNode(_);e=document.createElementNS(i,v,_.is&&_),s&&=(SZ.__m&&SZ.__m(t,a),!1),a=null}if(v==null)g===_||s&&e.data==_||(e.data=_);else{if(a=v==`textarea`&&_.defaultValue!=null?null:a&&xZ.call(e.childNodes),!s&&a!=null)for(g={},l=0;l<e.attributes.length;l++)g[(p=e.attributes[l]).name]=p.value;for(l in g)p=g[l],l==`dangerouslySetInnerHTML`?d=p:l==`children`||l in _||l==`value`&&`defaultValue`in _||l==`checked`&&`defaultChecked`in _||$Z(e,l,null,p,i);for(l in _)p=_[l],l==`children`?f=p:l==`dangerouslySetInnerHTML`?u=p:l==`value`?m=p:l==`checked`?h=p:s&&typeof p!=`function`||g[l]===p||$Z(e,l,p,g[l],i);if(u)s||d&&(u.__html==d.__html||u.__html==e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=``),YZ(t.type==`template`?e.content:e,LZ(f)?f:[f],t,n,r,v==`foreignObject`?`http://www.w3.org/1999/xhtml`:i,a,o,a?a[0]:n.__k&&GZ(n,0),s,c),a!=null)for(l=a.length;l--;)zZ(a[l]);s&&v!=`textarea`||(l=`value`,v==`progress`&&m==null?e.removeAttribute(`value`):m!=null&&(m!==e[l]||v==`progress`&&!m||v==`option`&&m!=g[l])&&$Z(e,l,m,g[l],i),l=`checked`,h!=null&&h!=e[l]&&$Z(e,l,h,g[l],i))}return e}function aQ(e,t,n){try{if(typeof e==`function`){var r=typeof e.__u==`function`;r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(e){SZ.__e(e,n)}}function oQ(e,t,n){var r,i;if(SZ.unmount&&SZ.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||aQ(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){SZ.__e(e,t)}r.base=r.__P=r.__n=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&oQ(r[i],t,n||typeof e.type!=`function`);n||zZ(e.__e),e.__c=e.__=e.__e=void 0}function ARe(e,t,n){return this.constructor(e,n)}function jRe(e,t,n){var r,i,a,o;t==document&&(t=document.documentElement),SZ.__&&SZ.__(e,t),i=(r=typeof n==`function`)?null:n&&n.__k||t.__k,a=[],o=[],tQ(t,e=(!r&&n||t).__k=BZ(UZ,null,[e]),i||FZ,FZ,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?xZ.call(t.childNodes):null,a,!r&&n?n:i?i.__e:t.firstChild,r,o),rQ(a,e,o),e.props.children=null}xZ=IZ.slice,SZ={__e:function(e,t,n,r){for(var i,a,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(t){e=t}throw e}},CZ=0,WZ.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=RZ({},this.state);typeof e==`function`&&(e=e(RZ({},n),this.props)),e&&RZ(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),qZ(this))},WZ.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),qZ(this))},WZ.prototype.render=UZ,wZ=[],EZ=typeof Promise==`function`?Promise.prototype.then.bind(Promise.resolve()):setTimeout,DZ=function(e,t){return e.__v.__b-t.__v.__b},JZ.__r=0,OZ=Math.random().toString(8),kZ=`__d`+OZ,AZ=`__a`+OZ,jZ=/(PointerCapture)$|Capture$/i,MZ=0,NZ=eQ(!1),PZ=eQ(!0);var MRe=`An invariant failed, however the error is obfuscated because this is a production build.`,sQ=[];Object.freeze(sQ);var cQ={};Object.freeze(cQ);function lQ(){return++C$.mobxGuid}function uQ(e){throw dQ(!1,e),`X`}function dQ(e,t){if(!e)throw Error(`[mobx] `+(t||MRe))}function fQ(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var pQ=function(){};function NRe(e){var t=[];return e.forEach(function(e){t.indexOf(e)===-1&&t.push(e)}),t}function mQ(e){return typeof e==`object`&&!!e}function hQ(e){if(typeof e!=`object`||!e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function PRe(e){if(vQ(e)||g1(e))return e;if(Array.isArray(e))return new Map(e);if(hQ(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return uQ(`Cannot convert to map from '`+e+`'`)}function gQ(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function FRe(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function IRe(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return!n||n.configurable!==!1&&n.writable!==!1}function _Q(e,t){var n=`isMobX`+e;return t.prototype[n]=!0,function(e){return mQ(e)&&e[n]===!0}}function vQ(e){return e instanceof Map}function yQ(e){return e instanceof Set}function bQ(e){var t=new Set;for(var n in e)t.add(n);return Object.getOwnPropertySymbols(e).forEach(function(n){Object.getOwnPropertyDescriptor(e,n).enumerable&&t.add(n)}),Array.from(t)}function xQ(e){return e&&e.toString?e.toString():new String(e).toString()}function SQ(e){return e===null?null:typeof e==`object`?``+e:e}var LRe=typeof Reflect<`u`&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,CQ=Symbol(`mobx administration`),wQ=function(){function e(e){e===void 0&&(e=`Atom@`+lQ()),this.name=e,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=new Set,this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=XQ.NOT_TRACKING}return e.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach(function(e){return e()})},e.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach(function(e){return e()})},e.prototype.reportObserved=function(){return k$(this)},e.prototype.reportChanged=function(){D$(),sze(this),O$()},e.prototype.toString=function(){return this.name},e}(),TQ=_Q(`Atom`,wQ);function EQ(e,t,n){t===void 0&&(t=pQ),n===void 0&&(n=pQ);var r=new wQ(e);return t!==pQ&&xze(r,t),n!==pQ&&V$(r,n),r}function RRe(e,t){return e===t}function zRe(e,t){return k1(e,t)}function BRe(e,t){return k1(e,t,1)}function VRe(e,t){return Object.is(e,t)}var DQ={identity:RRe,structural:zRe,default:VRe,shallow:BRe},OQ=function(e,t){return OQ=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},OQ(e,t)};function HRe(e,t){OQ(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var kQ=function(){return kQ=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},kQ.apply(this,arguments)};function AQ(e){var t=typeof Symbol==`function`&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function jQ(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function MQ(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(jQ(arguments[t]));return e}var NQ=Symbol(`mobx did run lazy initializers`),PQ=Symbol(`mobx pending decorators`),URe={},WRe={};function GRe(e,t){var n=t?URe:WRe;return n[e]||(n[e]={configurable:!0,enumerable:t,get:function(){return FQ(this),this[e]},set:function(t){FQ(this),this[e]=t}})}function FQ(e){var t,n;if(e[NQ]!==!0){var r=e[PQ];if(r){gQ(e,NQ,!0);var i=MQ(Object.getOwnPropertySymbols(r),Object.keys(r));try{for(var a=AQ(i),o=a.next();!o.done;o=a.next()){var s=r[o.value];s.propertyCreator(e,s.prop,s.descriptor,s.decoratorTarget,s.decoratorArguments)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}}}}function IQ(e,t){return function(){var n,r=function(r,i,a,o){if(o===!0)return t(r,i,a,r,n),null;if(!Object.prototype.hasOwnProperty.call(r,PQ)){var s=r[PQ];gQ(r,PQ,kQ({},s))}return r[PQ][i]={prop:i,propertyCreator:t,descriptor:a,decoratorTarget:r,decoratorArguments:n},GRe(i,e)};return KRe(arguments)?(n=sQ,r.apply(null,arguments)):(n=Array.prototype.slice.call(arguments),r)}}function KRe(e){return(e.length===2||e.length===3)&&(typeof e[1]==`string`||typeof e[1]==`symbol`)||e.length===4&&e[3]===!0}function LQ(e,t,n){return Y$(e)?e:Array.isArray(e)?KQ.array(e,{name:n}):hQ(e)?KQ.object(e,void 0,{name:n}):vQ(e)?KQ.map(e,{name:n}):yQ(e)?KQ.set(e,{name:n}):e}function qRe(e,t,n){return e==null||T1(e)||p1(e)||g1(e)||y1(e)?e:Array.isArray(e)?KQ.array(e,{name:n,deep:!1}):hQ(e)?KQ.object(e,void 0,{name:n,deep:!1}):vQ(e)?KQ.map(e,{name:n,deep:!1}):yQ(e)?KQ.set(e,{name:n,deep:!1}):uQ(!1)}function RQ(e){return e}function JRe(e,t,n){return k1(e,t)?t:e}function zQ(e){dQ(e);var t=IQ(!0,function(t,n,r,i,a){var o=r?r.initializer?r.initializer.call(t):r.value:void 0;x1(t).addObservableProp(n,o,e)});return t.enhancer=e,t}var BQ={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(BQ);function VQ(e){return e==null?BQ:typeof e==`string`?{name:e,deep:!0,proxy:!0}:e}var HQ=zQ(LQ),YRe=zQ(qRe),UQ=zQ(RQ),XRe=zQ(JRe);function WQ(e){return e.defaultDecorator?e.defaultDecorator.enhancer:e.deep===!1?RQ:LQ}function ZRe(e,t,n){if(typeof arguments[1]==`string`||typeof arguments[1]==`symbol`)return HQ.apply(null,arguments);if(Y$(e))return e;var r=hQ(e)?KQ.object(e,t,n):Array.isArray(e)?KQ.array(e,t):vQ(e)?KQ.map(e,t):yQ(e)?KQ.set(e,t):e;if(r!==e)return r;uQ(!1)}var GQ={box:function(e,t){arguments.length>2&&qQ(`box`);var n=VQ(t);return new g$(e,WQ(n),n.name,!0,n.equals)},array:function(e,t){arguments.length>2&&qQ(`array`);var n=VQ(t);return Lze(e,WQ(n),n.name)},map:function(e,t){arguments.length>2&&qQ(`map`);var n=VQ(t);return new h1(e,WQ(n),n.name)},set:function(e,t){arguments.length>2&&qQ(`set`);var n=VQ(t);return new v1(e,WQ(n),n.name)},object:function(e,t,n){typeof arguments[1]==`string`&&qQ(`object`);var r=VQ(n);if(r.proxy===!1)return U$({},e,t,r);var i=W$(r),a=Pze(U$({},void 0,void 0,r));return G$(a,e,t,i),a},ref:UQ,shallow:YRe,deep:HQ,struct:XRe},KQ=ZRe;Object.keys(GQ).forEach(function(e){return KQ[e]=GQ[e]});function qQ(e){uQ(`Expected one or two arguments to observable.`+e+`. Did you accidentally try to use observable.`+e+` as decorator?`)}var JQ=IQ(!1,function(e,t,n,r,i){var a=n.get,o=n.set,s=i[0]||{};x1(e).addComputedProp(e,t,kQ({get:a,set:o,context:e},s))}),QRe=JQ({equals:DQ.structural}),YQ=function(e,t,n){if(typeof t==`string`||typeof e==`object`&&e&&arguments.length===1)return JQ.apply(null,arguments);var r=typeof t==`object`?t:{};return r.get=e,r.set=typeof t==`function`?t:r.set,r.name=r.name||e.name||``,new _$(r)};YQ.struct=QRe;var XQ;(function(e){e[e.NOT_TRACKING=-1]=`NOT_TRACKING`,e[e.UP_TO_DATE=0]=`UP_TO_DATE`,e[e.POSSIBLY_STALE=1]=`POSSIBLY_STALE`,e[e.STALE=2]=`STALE`})(XQ||={});var ZQ;(function(e){e[e.NONE=0]=`NONE`,e[e.LOG=1]=`LOG`,e[e.BREAK=2]=`BREAK`})(ZQ||={});var QQ=function(){function e(e){this.cause=e}return e}();function $Q(e){return e instanceof QQ}function e$(e){switch(e.dependenciesState){case XQ.UP_TO_DATE:return!1;case XQ.NOT_TRACKING:case XQ.STALE:return!0;case XQ.POSSIBLY_STALE:for(var t=s$(!0),n=a$(),r=e.observing,i=r.length,a=0;a<i;a++){var o=r[a];if(v$(o)){if(C$.disableErrorBoundaries)o.get();else try{o.get()}catch{return o$(n),c$(t),!0}if(e.dependenciesState===XQ.STALE)return o$(n),c$(t),!0}}return l$(e),o$(n),c$(t),!1}}function t$(e){var t=e.observers.size>0;C$.computationDepth>0&&t&&uQ(!1),!C$.allowStateChanges&&(t||C$.enforceActions===`strict`)&&uQ(!1)}function n$(e,t,n){var r=s$(!0);l$(e),e.newObserving=Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++C$.runId;var i=C$.trackingDerivation;C$.trackingDerivation=e;var a;if(C$.disableErrorBoundaries===!0)a=t.call(n);else try{a=t.call(n)}catch(e){a=new QQ(e)}return C$.trackingDerivation=i,$Re(e),c$(r),a}function $Re(e){for(var t=e.observing,n=e.observing=e.newObserving,r=XQ.UP_TO_DATE,i=0,a=e.unboundDepsCount,o=0;o<a;o++){var s=n[o];s.diffValue===0&&(s.diffValue=1,i!==o&&(n[i]=s),i++),s.dependenciesState>r&&(r=s.dependenciesState)}for(n.length=i,e.newObserving=null,a=t.length;a--;){var s=t[a];s.diffValue===0&&T$(s,e),s.diffValue=0}for(;i--;){var s=n[i];s.diffValue===1&&(s.diffValue=0,oze(s,e))}r!==XQ.UP_TO_DATE&&(e.dependenciesState=r,e.onBecomeStale())}function r$(e){var t=e.observing;e.observing=[];for(var n=t.length;n--;)T$(t[n],e);e.dependenciesState=XQ.NOT_TRACKING}function i$(e){var t=a$();try{return e()}finally{o$(t)}}function a$(){var e=C$.trackingDerivation;return C$.trackingDerivation=null,e}function o$(e){C$.trackingDerivation=e}function s$(e){var t=C$.allowStateReads;return C$.allowStateReads=e,t}function c$(e){C$.allowStateReads=e}function l$(e){if(e.dependenciesState!==XQ.UP_TO_DATE){e.dependenciesState=XQ.UP_TO_DATE;for(var t=e.observing,n=t.length;n--;)t[n].lowestObserverState=XQ.UP_TO_DATE}}var u$=0,eze=1,d$=Object.getOwnPropertyDescriptor(function(){},`name`);d$&&d$.configurable;function f$(e,t,n){var r=function(){return p$(e,t,n||this,arguments)};return r.isMobxAction=!0,r}function p$(e,t,n,r){var i=tze(e,n,r);try{return t.apply(n,r)}catch(e){throw i.error=e,e}finally{nze(i)}}function tze(e,t,n){var r=I$()&&!!e,i=0,a=a$();D$();var o={prevDerivation:a,prevAllowStateChanges:m$(!0),prevAllowStateReads:s$(!0),notifySpy:r,startTime:i,actionId:eze++,parentActionId:u$};return u$=o.actionId,o}function nze(e){u$!==e.actionId&&uQ(`invalid action stack. did you forget to finish an action?`),u$=e.parentActionId,e.error!==void 0&&(C$.suppressReactionErrors=!0),h$(e.prevAllowStateChanges),c$(e.prevAllowStateReads),O$(),o$(e.prevDerivation),e.notifySpy,C$.suppressReactionErrors=!1}function m$(e){var t=C$.allowStateChanges;return C$.allowStateChanges=e,t}function h$(e){C$.allowStateChanges=e}var g$=function(e){HRe(t,e);function t(t,n,r,i,a){r===void 0&&(r=`ObservableValue@`+lQ()),i===void 0&&(i=!0),a===void 0&&(a=DQ.default);var o=e.call(this,r)||this;return o.enhancer=n,o.name=r,o.equals=a,o.hasUnreportedChange=!1,o.value=n(t,void 0,r),o}return t.prototype.dehanceValue=function(e){return this.dehancer===void 0?e:this.dehancer(e)},t.prototype.set=function(e){this.value,e=this.prepareNewValue(e),e!==C$.UNCHANGED&&this.setNewValue(e)},t.prototype.prepareNewValue=function(e){if(t$(this),a1(this)){var t=s1(this,{object:this,type:`update`,newValue:e});if(!t)return C$.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.equals(this.value,e)?C$.UNCHANGED:e},t.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),c1(this)&&u1(this,{type:`update`,object:this,newValue:e,oldValue:t})},t.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},t.prototype.intercept=function(e){return o1(this,e)},t.prototype.observe=function(e,t){return t&&e({object:this,type:`update`,newValue:this.value,oldValue:void 0}),l1(this,e)},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+`[`+this.value+`]`},t.prototype.valueOf=function(){return SQ(this.get())},t.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},t}(wQ),rze=_Q(`ObservableValue`,g$),_$=function(){function e(e){this.dependenciesState=XQ.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=new Set,this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=XQ.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid=`#`+lQ(),this.value=new QQ(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=ZQ.NONE,dQ(e.get,`missing option for computed: get`),this.derivation=e.get,this.name=e.name||`ComputedValue@`+lQ(),e.set&&(this.setter=f$(this.name+`-setter`,e.set)),this.equals=e.equals||(e.compareStructural||e.struct?DQ.structural:DQ.default),this.scope=e.context,this.requiresReaction=!!e.requiresReaction,this.keepAlive=!!e.keepAlive}return e.prototype.onBecomeStale=function(){lze(this)},e.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach(function(e){return e()})},e.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach(function(e){return e()})},e.prototype.get=function(){this.isComputing&&uQ(`Cycle detected in computation `+this.name+`: `+this.derivation),C$.inBatch===0&&this.observers.size===0&&!this.keepAlive?e$(this)&&(this.warnAboutUntrackedRead(),D$(),this.value=this.computeValue(!1),O$()):(k$(this),e$(this)&&this.trackAndCompute()&&cze(this));var e=this.value;if($Q(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if($Q(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){dQ(!this.isRunningSetter,`The setter of computed value '`+this.name+`' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?`),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else dQ(!1,!1)},e.prototype.trackAndCompute=function(){var e=this.value,t=this.dependenciesState===XQ.NOT_TRACKING,n=this.computeValue(!0),r=t||$Q(e)||$Q(n)||!this.equals(e,n);return r&&(this.value=n),r},e.prototype.computeValue=function(e){this.isComputing=!0,C$.computationDepth++;var t;if(e)t=n$(this,this.derivation,this.scope);else if(C$.disableErrorBoundaries===!0)t=this.derivation.call(this.scope);else try{t=this.derivation.call(this.scope)}catch(e){t=new QQ(e)}return C$.computationDepth--,this.isComputing=!1,t},e.prototype.suspend=function(){this.keepAlive||(r$(this),this.value=void 0)},e.prototype.observe=function(e,t){var n=this,r=!0,i=void 0;return vze(function(){var a=n.get();if(!r||t){var o=a$();e({type:`update`,object:n,newValue:a,oldValue:i}),o$(o)}r=!1,i=a})},e.prototype.warnAboutUntrackedRead=function(){},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+`[`+this.derivation.toString()+`]`},e.prototype.valueOf=function(){return SQ(this.get())},e.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},e}(),v$=_Q(`ComputedValue`,_$),y$=function(){function e(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1}return e}(),ize={};function b$(){return typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:ize}var x$=!0,S$=!1,C$=(function(){var e=b$();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(x$=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new y$().version&&(x$=!1),x$?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new y$):(setTimeout(function(){S$||uQ("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new y$)})();function aze(){(C$.pendingReactions.length||C$.inBatch||C$.isRunningReactions)&&uQ(`isolateGlobalState should be called before MobX is running any reactions`),S$=!0,x$&&(--b$().__mobxInstanceCount===0&&(b$().__mobxGlobals=void 0),C$=new y$)}function w$(){return C$}function oze(e,t){e.observers.add(t),e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function T$(e,t){e.observers.delete(t),e.observers.size===0&&E$(e)}function E$(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,C$.pendingUnobservations.push(e))}function D$(){C$.inBatch++}function O$(){if(--C$.inBatch===0){P$();for(var e=C$.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,n.observers.size===0&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBecomeUnobserved()),n instanceof _$&&n.suspend())}C$.pendingUnobservations=[]}}function k$(e){var t=C$.trackingDerivation;return t===null?(e.observers.size===0&&C$.inBatch>0&&E$(e),!1):(t.runId!==e.lastAccessedBy&&(e.lastAccessedBy=t.runId,t.newObserving[t.unboundDepsCount++]=e,e.isBeingObserved||(e.isBeingObserved=!0,e.onBecomeObserved())),!0)}function sze(e){e.lowestObserverState!==XQ.STALE&&(e.lowestObserverState=XQ.STALE,e.observers.forEach(function(t){t.dependenciesState===XQ.UP_TO_DATE&&(t.isTracing!==ZQ.NONE&&A$(t,e),t.onBecomeStale()),t.dependenciesState=XQ.STALE}))}function cze(e){e.lowestObserverState!==XQ.STALE&&(e.lowestObserverState=XQ.STALE,e.observers.forEach(function(t){t.dependenciesState===XQ.POSSIBLY_STALE?t.dependenciesState=XQ.STALE:t.dependenciesState===XQ.UP_TO_DATE&&(e.lowestObserverState=XQ.UP_TO_DATE)}))}function lze(e){e.lowestObserverState===XQ.UP_TO_DATE&&(e.lowestObserverState=XQ.POSSIBLY_STALE,e.observers.forEach(function(t){t.dependenciesState===XQ.UP_TO_DATE&&(t.dependenciesState=XQ.POSSIBLY_STALE,t.isTracing!==ZQ.NONE&&A$(t,e),t.onBecomeStale())}))}function A$(e,t){if(e.isTracing===ZQ.BREAK){var n=[];j$(Cze(e),n,1),Function(`debugger;
/*
Tracing '`+e.name+`'
You are entering this break point because derivation '`+e.name+`' is being traced and '`+t.name+`' is now forcing it to update.
Just follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update
The stackframe you are looking for is at least ~6-8 stack-frames up.
`+(e instanceof _$?e.derivation.toString().replace(/[*]\//g,`/`):``)+`
The dependencies for this derivation are:
`+n.join(`
`)+`
*/
`)()}}function j$(e,t,n){t.length>=1e3?t.push(`(and many more)`):(t.push(``+Array(n).join(` `)+e.name),e.dependencies&&e.dependencies.forEach(function(e){return j$(e,t,n+1)}))}var M$=function(){function e(e,t,n,r){e===void 0&&(e=`Reaction@`+lQ()),r===void 0&&(r=!1),this.name=e,this.onInvalidate=t,this.errorHandler=n,this.requiresObservable=r,this.observing=[],this.newObserving=[],this.dependenciesState=XQ.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid=`#`+lQ(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=ZQ.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,C$.pendingReactions.push(this),P$())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){if(!this.isDisposed){if(D$(),this._isScheduled=!1,e$(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending}catch(e){this.reportExceptionInDerivation(e)}}O$()}},e.prototype.track=function(e){if(!this.isDisposed){D$(),this._isRunning=!0;var t=n$(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&r$(this),$Q(t)&&this.reportExceptionInDerivation(t.cause),O$()}},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{if(C$.disableErrorBoundaries)throw e;``+this,C$.suppressReactionErrors,I$()&&(this.name,``+e),C$.globalReactionErrorHandlers.forEach(function(n){return n(e,t)})}},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(D$(),r$(this),O$()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e[CQ]=this,e},e.prototype.toString=function(){return`Reaction[`+this.name+`]`},e.prototype.trace=function(e){e===void 0&&(e=!1),jze(this,e)},e}(),uze=100,N$=function(e){return e()};function P$(){C$.inBatch>0||C$.isRunningReactions||N$(dze)}function dze(){C$.isRunningReactions=!0;for(var e=C$.pendingReactions,t=0;e.length>0;){++t===uze&&e.splice(0);for(var n=e.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction()}C$.isRunningReactions=!1}var F$=_Q(`Reaction`,M$);function fze(e){var t=N$;N$=function(n){return e(function(){return t(n)})}}function I$(){return!1}function pze(e){return function(){}}function mze(){uQ(!1)}function L$(e){return function(t,n,r){if(r){if(r.value)return{value:f$(e,r.value),enumerable:!1,configurable:!0,writable:!0};var i=r.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return f$(e,i.call(this))}}}return hze(e).apply(this,arguments)}}function hze(e){return function(t,n,r){Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:function(){},set:function(t){gQ(this,n,Q(e,t))}})}}function gze(e,t,n,r){return r===!0?(R$(e,t,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return R$(this,t,n.value||n.initializer.call(this)),this[t]},set:mze}:{enumerable:!1,configurable:!0,set:function(e){R$(this,t,e)},get:function(){}}}var Q=function(e,t,n,r){if(arguments.length===1&&typeof e==`function`)return f$(e.name||`<unnamed action>`,e);if(arguments.length===2&&typeof t==`function`)return f$(e,t);if(arguments.length===1&&typeof e==`string`)return L$(e);if(r===!0)gQ(e,t,f$(e.name||t,n.value,this));else return L$(t).apply(null,arguments)};Q.bound=gze;function _ze(e,t){return p$(typeof e==`string`?e:e.name||`<unnamed action>`,typeof e==`function`?e:t,this,void 0)}function R$(e,t,n){gQ(e,t,f$(t,n.bind(e)))}function vze(e,t){t===void 0&&(t=cQ);var n=t&&t.name||e.name||`Autorun@`+lQ(),r=!t.scheduler&&!t.delay,i;if(r)i=new M$(n,function(){this.track(s)},t.onError,t.requiresObservable);else{var a=z$(t),o=!1;i=new M$(n,function(){o||(o=!0,a(function(){o=!1,i.isDisposed||i.track(s)}))},t.onError,t.requiresObservable)}function s(){e(i)}return i.schedule(),i.getDisposer()}var yze=function(e){return e()};function z$(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:yze}function B$(e,t,n){n===void 0&&(n=cQ);var r=n.name||`Reaction@`+lQ(),i=Q(r,n.onError?bze(n.onError,t):t),a=!n.scheduler&&!n.delay,o=z$(n),s=!0,c=!1,l,u=n.compareStructural?DQ.structural:n.equals||DQ.default,d=new M$(r,function(){s||a?f():c||(c=!0,o(f))},n.onError,n.requiresObservable);function f(){if(c=!1,!d.isDisposed){var t=!1;d.track(function(){var n=e(d);t=s||!u(l,n),l=n}),s&&n.fireImmediately&&i(l,d),!s&&t===!0&&i(l,d),s&&=!1}}return d.schedule(),d.getDisposer()}function bze(e,t){return function(){try{return t.apply(this,arguments)}catch(t){e.call(this,t)}}}function xze(e,t,n){return H$(`onBecomeObserved`,e,t,n)}function V$(e,t,n){return H$(`onBecomeUnobserved`,e,t,n)}function H$(e,t,n,r){var i=typeof r==`function`?E1(t,n):E1(t),a=typeof r==`function`?r:n,o=e+`Listeners`;return i[o]?i[o].add(a):i[o]=new Set([a]),typeof i[e]==`function`?function(){var e=i[o];e&&(e.delete(a),e.size===0&&delete i[o])}:uQ(!1)}function Sze(e){var t=e.enforceActions,n=e.computedRequiresReaction,r=e.computedConfigurable,i=e.disableErrorBoundaries,a=e.reactionScheduler,o=e.reactionRequiresObservable,s=e.observableRequiresReaction;if(e.isolateGlobalState===!0&&aze(),t!==void 0){var c=void 0;switch(t){case!0:case`observed`:c=!0;break;case!1:case`never`:c=!1;break;case`strict`:case`always`:c=`strict`;break;default:uQ(`Invalid value for 'enforceActions': '`+t+`', expected 'never', 'always' or 'observed'`)}C$.enforceActions=c,C$.allowStateChanges=c!==!0&&c!==`strict`}n!==void 0&&(C$.computedRequiresReaction=!!n),o!==void 0&&(C$.reactionRequiresObservable=!!o),s!==void 0&&(C$.observableRequiresReaction=!!s,C$.allowStateReads=!C$.observableRequiresReaction),r!==void 0&&(C$.computedConfigurable=!!r),i!==void 0&&(C$.disableErrorBoundaries=!!i),a&&fze(a)}function U$(e,t,n,r){r=VQ(r);var i=W$(r);return FQ(e),x1(e,r.name,i.enhancer),t&&G$(e,t,n,i),e}function W$(e){return e.defaultDecorator||(e.deep===!1?UQ:HQ)}function G$(e,t,n,r){var i,a;if(0)var o,s,c,l;D$();try{var o=LRe(t);try{for(var u=AQ(o),d=u.next();!d.done;d=u.next()){var l=d.value,f=Object.getOwnPropertyDescriptor(t,l),p=(n&&l in n?n[l]:f.get?JQ:r)(e,l,f,!0);p&&Object.defineProperty(e,l,p)}}catch(e){i={error:e}}finally{try{d&&!d.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}}finally{O$()}}function Cze(e,t){return K$(E1(e,t))}function K$(e){var t={name:e.name};return e.observing&&e.observing.length>0&&(t.dependencies=NRe(e.observing).map(K$)),t}Object.create(Error.prototype);function q$(e,t){return e==null?!1:t===void 0?v$(e):T1(e)===!1||!e[CQ].values.has(t)?!1:v$(E1(e,t))}function wze(e){return arguments.length>1?uQ(!1):q$(e)}function J$(e,t){return typeof t==`string`?q$(e,t):uQ(!1)}function Tze(e,t){return e==null?!1:t===void 0?T1(e)||!!e[CQ]||TQ(e)||F$(e)||v$(e):T1(e)?e[CQ].values.has(t):!1}function Y$(e){return arguments.length!==1&&uQ(!1),Tze(e)}function X$(e){return T1(e)?e[CQ].getKeys():g1(e)||y1(e)?Array.from(e.keys()):p1(e)?e.map(function(e,t){return t}):uQ(!1)}function Eze(e){return T1(e)?X$(e).map(function(t){return e[t]}):g1(e)?X$(e).map(function(t){return e.get(t)}):y1(e)?Array.from(e.values()):p1(e)?e.slice():uQ(!1)}function Dze(e){return T1(e)?X$(e).map(function(t){return[t,e[t]]}):g1(e)?X$(e).map(function(t){return[t,e.get(t)]}):y1(e)?Array.from(e.entries()):p1(e)?e.map(function(e,t){return[t,e]}):uQ(!1)}function Z$(e,t,n){if(arguments.length===2&&!y1(e)){D$();var r=t;try{for(var i in r)Z$(e,i,r[i])}finally{O$()}}else if(T1(e)){var a=e[CQ];a.values.get(t)?a.write(t,n):a.addObservableProp(t,n,a.defaultEnhancer)}else if(g1(e))e.set(t,n);else if(y1(e))e.add(t);else if(p1(e))typeof t!=`number`&&(t=parseInt(t,10)),dQ(t>=0,`Not a valid index: '`+t+`'`),D$(),t>=e.length&&(e.length=t+1),e[t]=n,O$();else return uQ(!1)}function Q$(e,t,n,r){return typeof n==`function`?kze(e,t,n,r):Oze(e,t,n)}function Oze(e,t,n){return D1(e).observe(t,n)}function kze(e,t,n,r){return D1(e,t).observe(n,r)}var Aze={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function $$(e,t,n,r){return r.detectCycles&&e.set(t,n),n}function e1(e,t,n){if(!t.recurseEverything&&!Y$(e)||typeof e!=`object`)return e;if(e===null)return null;if(e instanceof Date)return e;if(rze(e))return e1(e.get(),t,n);if(Y$(e)&&X$(e),t.detectCycles===!0&&e!==null&&n.has(e))return n.get(e);if(p1(e)||Array.isArray(e)){var r=$$(n,e,[],t),i=e.map(function(e){return e1(e,t,n)});r.length=i.length;for(var a=0,o=i.length;a<o;a++)r[a]=i[a];return r}if(y1(e)||Object.getPrototypeOf(e)===Set.prototype){if(t.exportMapsAsObjects===!1){var s=$$(n,e,new Set,t);return e.forEach(function(e){s.add(e1(e,t,n))}),s}var c=$$(n,e,[],t);return e.forEach(function(e){c.push(e1(e,t,n))}),c}if(g1(e)||Object.getPrototypeOf(e)===Map.prototype){if(t.exportMapsAsObjects===!1){var l=$$(n,e,new Map,t);return e.forEach(function(e,r){l.set(r,e1(e,t,n))}),l}var u=$$(n,e,{},t);return e.forEach(function(e,r){u[r]=e1(e,t,n)}),u}var d=$$(n,e,{},t);return bQ(e).forEach(function(r){d[r]=e1(e[r],t,n)}),d}function t1(e,t){typeof t==`boolean`&&(t={detectCycles:t}),t||=Aze,t.detectCycles=t.detectCycles===void 0?t.recurseEverything===!0:t.detectCycles===!0;var n;return t.detectCycles&&(n=new Map),e1(e,t,n)}function jze(){var e=[...arguments],t=!1;typeof e[e.length-1]==`boolean`&&(t=e.pop());var n=Mze(e);if(!n)return uQ(!1);n.isTracing,ZQ.NONE,n.isTracing=t?ZQ.BREAK:ZQ.LOG}function Mze(e){switch(e.length){case 0:return C$.trackingDerivation;case 1:return E1(e[0]);case 2:return E1(e[0],e[1])}}function n1(e,t){t===void 0&&(t=void 0),D$();try{return e.apply(t)}finally{O$()}}function r1(e){return e[CQ]}function i1(e){return typeof e==`string`||typeof e==`number`||typeof e==`symbol`}var Nze={has:function(e,t){if(t===CQ||t===`constructor`||t===NQ)return!0;var n=r1(e);return i1(t)?n.has(t):t in e},get:function(e,t){if(t===CQ||t===`constructor`||t===NQ)return e[t];var n=r1(e),r=n.values.get(t);if(r instanceof wQ){var i=r.get();return i===void 0&&n.has(t),i}return i1(t)&&n.has(t),e[t]},set:function(e,t,n){return i1(t)?(Z$(e,t,n),!0):!1},deleteProperty:function(e,t){return i1(t)?(r1(e).remove(t),!0):!1},ownKeys:function(e){return r1(e).keysAtom.reportObserved(),Reflect.ownKeys(e)},preventExtensions:function(e){return uQ(`Dynamic observable objects cannot be frozen`),!1}};function Pze(e){var t=new Proxy(e,Nze);return e[CQ].proxy=t,t}function a1(e){return e.interceptors!==void 0&&e.interceptors.length>0}function o1(e,t){var n=e.interceptors||=[];return n.push(t),fQ(function(){var e=n.indexOf(t);e!==-1&&n.splice(e,1)})}function s1(e,t){var n=a$();try{for(var r=MQ(e.interceptors||[]),i=0,a=r.length;i<a&&(t=r[i](t),dQ(!t||t.type,`Intercept handlers should return nothing or a change object`),t);i++);return t}finally{o$(n)}}function c1(e){return e.changeListeners!==void 0&&e.changeListeners.length>0}function l1(e,t){var n=e.changeListeners||=[];return n.push(t),fQ(function(){var e=n.indexOf(t);e!==-1&&n.splice(e,1)})}function u1(e,t){var n=a$(),r=e.changeListeners;if(r){r=r.slice();for(var i=0,a=r.length;i<a;i++)r[i](t);o$(n)}}var Fze=1e4,Ize={get:function(e,t){return t===CQ?e[CQ]:t===`length`?e[CQ].getArrayLength():typeof t==`number`?f1.get.call(e,t):typeof t==`string`&&!isNaN(t)?f1.get.call(e,parseInt(t)):f1.hasOwnProperty(t)?f1[t]:e[t]},set:function(e,t,n){return t===`length`&&e[CQ].setArrayLength(n),typeof t==`number`&&f1.set.call(e,t,n),typeof t==`symbol`||isNaN(t)?e[t]=n:f1.set.call(e,parseInt(t),n),!0},preventExtensions:function(e){return uQ(`Observable arrays cannot be frozen`),!1}};function Lze(e,t,n,r){n===void 0&&(n=`ObservableArray@`+lQ()),r===void 0&&(r=!1);var i=new d1(n,t,r);FRe(i.values,CQ,i);var a=new Proxy(i.values,Ize);if(i.proxy=a,e&&e.length){var o=m$(!0);i.spliceWithArray(0,0,e),h$(o)}return a}var d1=function(){function e(e,t,n){this.owned=n,this.values=[],this.proxy=void 0,this.lastKnownLength=0,this.atom=new wQ(e||`ObservableArray@`+lQ()),this.enhancer=function(n,r){return t(n,r,e+`[..]`)}}return e.prototype.dehanceValue=function(e){return this.dehancer===void 0?e:this.dehancer(e)},e.prototype.dehanceValues=function(e){return this.dehancer!==void 0&&e.length>0?e.map(this.dehancer):e},e.prototype.intercept=function(e){return o1(this,e)},e.prototype.observe=function(e,t){return t===void 0&&(t=!1),t&&e({object:this.proxy,type:`splice`,index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),l1(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if(typeof e!=`number`||e<0)throw Error(`[mobx.array] Out of range: `+e);var t=this.values.length;if(e!==t){if(e>t){for(var n=Array(e-t),r=0;r<e-t;r++)n[r]=void 0;this.spliceWithArray(t,0,n)}else this.spliceWithArray(e,t-e)}},e.prototype.updateArrayLength=function(e,t){if(e!==this.lastKnownLength)throw Error(`[mobx] Modification exception: the internal structure of an observable array was changed.`);this.lastKnownLength+=t},e.prototype.spliceWithArray=function(e,t,n){var r=this;t$(this.atom);var i=this.values.length;if(e===void 0?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=arguments.length===1?i-e:t==null?0:Math.max(0,Math.min(t,i-e)),n===void 0&&(n=sQ),a1(this)){var a=s1(this,{object:this.proxy,type:`splice`,index:e,removedCount:t,added:n});if(!a)return sQ;t=a.removedCount,n=a.added}n=n.length===0?n:n.map(function(e){return r.enhancer(e,void 0)});var o=this.spliceItemsIntoValues(e,t,n);return(t!==0||n.length!==0)&&this.notifyArraySplice(e,n,o),this.dehanceValues(o)},e.prototype.spliceItemsIntoValues=function(e,t,n){var r;if(n.length<Fze)return(r=this.values).splice.apply(r,MQ([e,t],n));var i=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(n,this.values.slice(e+t)),i},e.prototype.notifyArrayChildUpdate=function(e,t,n){var r=!this.owned&&I$(),i=c1(this),a=i||r?{object:this.proxy,type:`update`,index:e,newValue:t,oldValue:n}:null;this.atom.reportChanged(),i&&u1(this,a)},e.prototype.notifyArraySplice=function(e,t,n){var r=!this.owned&&I$(),i=c1(this),a=i||r?{object:this.proxy,type:`splice`,index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom.reportChanged(),i&&u1(this,a)},e}(),f1={intercept:function(e){return this[CQ].intercept(e)},observe:function(e,t){return t===void 0&&(t=!1),this[CQ].observe(e,t)},clear:function(){return this.splice(0)},replace:function(e){var t=this[CQ];return t.spliceWithArray(0,t.values.length,e)},toJS:function(){return this.slice()},toJSON:function(){return this.toJS()},splice:function(e,t){var n=[...arguments].slice(2),r=this[CQ];switch(arguments.length){case 0:return[];case 1:return r.spliceWithArray(e);case 2:return r.spliceWithArray(e,t)}return r.spliceWithArray(e,t,n)},spliceWithArray:function(e,t,n){return this[CQ].spliceWithArray(e,t,n)},push:function(){var e=[...arguments],t=this[CQ];return t.spliceWithArray(t.values.length,0,e),t.values.length},pop:function(){return this.splice(Math.max(this[CQ].values.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){var e=[...arguments],t=this[CQ];return t.spliceWithArray(0,0,e),t.values.length},reverse:function(){var e=this.slice();return e.reverse.apply(e,arguments)},sort:function(e){var t=this.slice();return t.sort.apply(t,arguments)},remove:function(e){var t=this[CQ],n=t.dehanceValues(t.values).indexOf(e);return n>-1&&(this.splice(n,1),!0)},get:function(e){var t=this[CQ];if(t&&e<t.values.length)return t.atom.reportObserved(),t.dehanceValue(t.values[e])},set:function(e,t){var n=this[CQ],r=n.values;if(e<r.length){t$(n.atom);var i=r[e];if(a1(n)){var a=s1(n,{type:`update`,object:n.proxy,index:e,newValue:t});if(!a)return;t=a.newValue}t=n.enhancer(t,i),t!==i&&(r[e]=t,n.notifyArrayChildUpdate(e,t,i))}else if(e===r.length)n.spliceWithArray(e,0,[t]);else throw Error(`[mobx.array] Index out of bounds, `+e+` is larger than `+r.length)}};[`concat`,`flat`,`includes`,`indexOf`,`join`,`lastIndexOf`,`slice`,`toString`,`toLocaleString`].forEach(function(e){typeof Array.prototype[e]==`function`&&(f1[e]=function(){var t=this[CQ];t.atom.reportObserved();var n=t.dehanceValues(t.values);return n[e].apply(n,arguments)})}),[`every`,`filter`,`find`,`findIndex`,`flatMap`,`forEach`,`map`,`some`].forEach(function(e){typeof Array.prototype[e]==`function`&&(f1[e]=function(t,n){var r=this,i=this[CQ];return i.atom.reportObserved(),i.dehanceValues(i.values)[e](function(e,i){return t.call(n,e,i,r)},n)})}),[`reduce`,`reduceRight`].forEach(function(e){f1[e]=function(){var t=this,n=this[CQ];n.atom.reportObserved();var r=arguments[0];return arguments[0]=function(e,i,a){return i=n.dehanceValue(i),r(e,i,a,t)},n.values[e].apply(n.values,arguments)}});var Rze=_Q(`ObservableArrayAdministration`,d1);function p1(e){return mQ(e)&&Rze(e[CQ])}var m1,zze={},h1=function(){function e(e,t,n){if(t===void 0&&(t=LQ),n===void 0&&(n=`ObservableMap@`+lQ()),this.enhancer=t,this.name=n,this[m1]=zze,this._keysAtom=EQ(this.name+`.keys()`),this[Symbol.toStringTag]=`Map`,typeof Map!=`function`)throw Error(`mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js`);this._data=new Map,this._hasMap=new Map,this.merge(e)}return e.prototype._has=function(e){return this._data.has(e)},e.prototype.has=function(e){var t=this;if(!C$.trackingDerivation)return this._has(e);var n=this._hasMap.get(e);if(!n){var r=n=new g$(this._has(e),RQ,this.name+`.`+xQ(e)+`?`,!1);this._hasMap.set(e,r),V$(r,function(){return t._hasMap.delete(e)})}return n.get()},e.prototype.set=function(e,t){var n=this._has(e);if(a1(this)){var r=s1(this,{type:n?`update`:`add`,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this._updateValue(e,t):this._addValue(e,t),this},e.prototype.delete=function(e){var t=this;if(t$(this._keysAtom),a1(this)){var n=s1(this,{type:`delete`,object:this,name:e});if(!n)return!1}if(this._has(e)){var r=I$(),i=c1(this),n=i||r?{type:`delete`,object:this,oldValue:this._data.get(e).value,name:e}:null;return n1(function(){t._keysAtom.reportChanged(),t._updateHasMapEntry(e,!1),t._data.get(e).setNewValue(void 0),t._data.delete(e)}),i&&u1(this,n),!0}return!1},e.prototype._updateHasMapEntry=function(e,t){var n=this._hasMap.get(e);n&&n.setNewValue(t)},e.prototype._updateValue=function(e,t){var n=this._data.get(e);if(t=n.prepareNewValue(t),t!==C$.UNCHANGED){var r=I$(),i=c1(this),a=i||r?{type:`update`,object:this,oldValue:n.value,name:e,newValue:t}:null;n.setNewValue(t),i&&u1(this,a)}},e.prototype._addValue=function(e,t){var n=this;t$(this._keysAtom),n1(function(){var r=new g$(t,n.enhancer,n.name+`.`+xQ(e),!1);n._data.set(e,r),t=r.value,n._updateHasMapEntry(e,!0),n._keysAtom.reportChanged()});var r=I$(),i=c1(this),a=i||r?{type:`add`,object:this,name:e,newValue:t}:null;i&&u1(this,a)},e.prototype.get=function(e){return this.has(e)?this.dehanceValue(this._data.get(e).get()):this.dehanceValue(void 0)},e.prototype.dehanceValue=function(e){return this.dehancer===void 0?e:this.dehancer(e)},e.prototype.keys=function(){return this._keysAtom.reportObserved(),this._data.keys()},e.prototype.values=function(){var e=this,t=this.keys();return M1({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:e.get(i)}}})},e.prototype.entries=function(){var e=this,t=this.keys();return M1({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:[i,e.get(i)]}}})},e.prototype[m1=CQ,Symbol.iterator]=function(){return this.entries()},e.prototype.forEach=function(e,t){var n,r;try{for(var i=AQ(this),a=i.next();!a.done;a=i.next()){var o=jQ(a.value,2),s=o[0],c=o[1];e.call(t,c,s,this)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e.prototype.merge=function(e){var t=this;return g1(e)&&(e=e.toJS()),n1(function(){var n=m$(!0);try{hQ(e)?bQ(e).forEach(function(n){return t.set(n,e[n])}):Array.isArray(e)?e.forEach(function(e){var n=jQ(e,2),r=n[0],i=n[1];return t.set(r,i)}):vQ(e)?(e.constructor!==Map&&uQ(`Cannot initialize from classes that inherit from Map: `+e.constructor.name),e.forEach(function(e,n){return t.set(n,e)})):e!=null&&uQ(`Cannot initialize map from `+e)}finally{h$(n)}}),this},e.prototype.clear=function(){var e=this;n1(function(){i$(function(){var t,n;try{for(var r=AQ(e.keys()),i=r.next();!i.done;i=r.next()){var a=i.value;e.delete(a)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}})})},e.prototype.replace=function(e){var t=this;return n1(function(){var n,r,i,a,o=PRe(e),s=new Map,c=!1;try{for(var l=AQ(t._data.keys()),u=l.next();!u.done;u=l.next()){var d=u.value;if(!o.has(d)){if(t.delete(d))c=!0;else{var f=t._data.get(d);s.set(d,f)}}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}try{for(var p=AQ(o.entries()),m=p.next();!m.done;m=p.next()){var h=jQ(m.value,2),d=h[0],f=h[1],g=t._data.has(d);if(t.set(d,f),t._data.has(d)){var _=t._data.get(d);s.set(d,_),g||(c=!0)}}}catch(e){i={error:e}}finally{try{m&&!m.done&&(a=p.return)&&a.call(p)}finally{if(i)throw i.error}}if(!c){if(t._data.size!==s.size)t._keysAtom.reportChanged();else for(var v=t._data.keys(),y=s.keys(),b=v.next(),x=y.next();!b.done;){if(b.value!==x.value){t._keysAtom.reportChanged();break}b=v.next(),x=y.next()}}t._data=s}),this},Object.defineProperty(e.prototype,"size",{get:function(){return this._keysAtom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),e.prototype.toPOJO=function(){var e,t,n={};try{for(var r=AQ(this),i=r.next();!i.done;i=r.next()){var a=jQ(i.value,2),o=a[0],s=a[1];n[typeof o==`symbol`?o:xQ(o)]=s}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return n},e.prototype.toJS=function(){return new Map(this)},e.prototype.toJSON=function(){return this.toPOJO()},e.prototype.toString=function(){var e=this;return this.name+`[{ `+Array.from(this.keys()).map(function(t){return xQ(t)+`: `+(``+e.get(t))}).join(`, `)+` }]`},e.prototype.observe=function(e,t){return l1(this,e)},e.prototype.intercept=function(e){return o1(this,e)},e}(),g1=_Q(`ObservableMap`,h1),_1,Bze={},v1=function(){function e(e,t,n){if(t===void 0&&(t=LQ),n===void 0&&(n=`ObservableSet@`+lQ()),this.name=n,this[_1]=Bze,this._data=new Set,this._atom=EQ(this.name),this[Symbol.toStringTag]=`Set`,typeof Set!=`function`)throw Error(`mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js`);this.enhancer=function(e,r){return t(e,r,n)},e&&this.replace(e)}return e.prototype.dehanceValue=function(e){return this.dehancer===void 0?e:this.dehancer(e)},e.prototype.clear=function(){var e=this;n1(function(){i$(function(){var t,n;try{for(var r=AQ(e._data.values()),i=r.next();!i.done;i=r.next()){var a=i.value;e.delete(a)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}})})},e.prototype.forEach=function(e,t){var n,r;try{for(var i=AQ(this),a=i.next();!a.done;a=i.next()){var o=a.value;e.call(t,o,o,this)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},Object.defineProperty(e.prototype,"size",{get:function(){return this._atom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=this;if(t$(this._atom),a1(this)){var n=s1(this,{type:`add`,object:this,newValue:e});if(!n)return this}if(!this.has(e)){n1(function(){t._data.add(t.enhancer(e,void 0)),t._atom.reportChanged()});var r=I$(),i=c1(this),n=i||r?{type:`add`,object:this,newValue:e}:null;i&&u1(this,n)}return this},e.prototype.delete=function(e){var t=this;if(a1(this)){var n=s1(this,{type:`delete`,object:this,oldValue:e});if(!n)return!1}if(this.has(e)){var r=I$(),i=c1(this),n=i||r?{type:`delete`,object:this,oldValue:e}:null;return n1(function(){t._atom.reportChanged(),t._data.delete(e)}),i&&u1(this,n),!0}return!1},e.prototype.has=function(e){return this._atom.reportObserved(),this._data.has(this.dehanceValue(e))},e.prototype.entries=function(){var e=0,t=Array.from(this.keys()),n=Array.from(this.values());return M1({next:function(){var r=e;return e+=1,r<n.length?{value:[t[r],n[r]],done:!1}:{done:!0}}})},e.prototype.keys=function(){return this.values()},e.prototype.values=function(){this._atom.reportObserved();var e=this,t=0,n=Array.from(this._data.values());return M1({next:function(){return t<n.length?{value:e.dehanceValue(n[t++]),done:!1}:{done:!0}}})},e.prototype.replace=function(e){var t=this;return y1(e)&&(e=e.toJS()),n1(function(){var n=m$(!0);try{Array.isArray(e)||yQ(e)?(t.clear(),e.forEach(function(e){return t.add(e)})):e!=null&&uQ(`Cannot initialize set from `+e)}finally{h$(n)}}),this},e.prototype.observe=function(e,t){return l1(this,e)},e.prototype.intercept=function(e){return o1(this,e)},e.prototype.toJS=function(){return new Set(this)},e.prototype.toString=function(){return this.name+`[ `+Array.from(this).join(`, `)+` ]`},e.prototype[_1=CQ,Symbol.iterator]=function(){return this.values()},e}(),y1=_Q(`ObservableSet`,v1),b1=function(){function e(e,t,n,r){t===void 0&&(t=new Map),this.target=e,this.values=t,this.name=n,this.defaultEnhancer=r,this.keysAtom=new wQ(n+`.keys`)}return e.prototype.read=function(e){return this.values.get(e).get()},e.prototype.write=function(e,t){var n=this.target,r=this.values.get(e);if(r instanceof _$)r.set(t);else{if(a1(this)){var i=s1(this,{type:`update`,object:this.proxy||n,name:e,newValue:t});if(!i)return;t=i.newValue}if(t=r.prepareNewValue(t),t!==C$.UNCHANGED){var a=c1(this),o=I$(),i=a||o?{type:`update`,object:this.proxy||n,oldValue:r.value,name:e,newValue:t}:null;r.setNewValue(t),a&&u1(this,i)}}},e.prototype.has=function(e){var t=this.pendingKeys||=new Map,n=t.get(e);return n||(n=new g$(!!this.values.get(e),RQ,this.name+`.`+xQ(e)+`?`,!1),t.set(e,n)),n.get()},e.prototype.addObservableProp=function(e,t,n){n===void 0&&(n=this.defaultEnhancer);var r=this.target;if(a1(this)){var i=s1(this,{object:this.proxy||r,name:e,type:`add`,newValue:t});if(!i)return;t=i.newValue}var a=new g$(t,n,this.name+`.`+xQ(e),!1);this.values.set(e,a),t=a.value,Object.defineProperty(r,e,Vze(e)),this.notifyPropertyAddition(e,t)},e.prototype.addComputedProp=function(e,t,n){var r=this.target;n.name=n.name||this.name+`.`+xQ(t),this.values.set(t,new _$(n)),(e===r||IRe(e,t))&&Object.defineProperty(e,t,Hze(t))},e.prototype.remove=function(e){if(this.values.has(e)){var t=this.target;if(a1(this)){var n=s1(this,{object:this.proxy||t,name:e,type:`remove`});if(!n)return}try{D$();var r=c1(this),i=I$(),a=this.values.get(e),o=a&&a.get();if(a&&a.set(void 0),this.keysAtom.reportChanged(),this.values.delete(e),this.pendingKeys){var s=this.pendingKeys.get(e);s&&s.set(!1)}delete this.target[e];var n=r||i?{type:`remove`,object:this.proxy||t,oldValue:o,name:e}:null;r&&u1(this,n)}finally{O$()}}},e.prototype.illegalAccess=function(e,t){},e.prototype.observe=function(e,t){return l1(this,e)},e.prototype.intercept=function(e){return o1(this,e)},e.prototype.notifyPropertyAddition=function(e,t){var n=c1(this),r=I$(),i=n||r?{type:`add`,object:this.proxy||this.target,name:e,newValue:t}:null;if(n&&u1(this,i),this.pendingKeys){var a=this.pendingKeys.get(e);a&&a.set(!0)}this.keysAtom.reportChanged()},e.prototype.getKeys=function(){var e,t;this.keysAtom.reportObserved();var n=[];try{for(var r=AQ(this.values),i=r.next();!i.done;i=r.next()){var a=jQ(i.value,2),o=a[0];a[1]instanceof g$&&n.push(o)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return n},e}();function x1(e,t,n){if(t===void 0&&(t=``),n===void 0&&(n=LQ),Object.prototype.hasOwnProperty.call(e,CQ))return e[CQ];hQ(e)||(t=(e.constructor.name||`ObservableObject`)+`@`+lQ()),t||=`ObservableObject@`+lQ();var r=new b1(e,new Map,xQ(t),n);return gQ(e,CQ,r),r}var S1=Object.create(null),C1=Object.create(null);function Vze(e){return S1[e]||(S1[e]={configurable:!0,enumerable:!0,get:function(){return this[CQ].read(e)},set:function(t){this[CQ].write(e,t)}})}function w1(e){return e[CQ]||(FQ(e),e[CQ])}function Hze(e){return C1[e]||(C1[e]={configurable:C$.computedConfigurable,enumerable:!1,get:function(){return w1(this).read(e)},set:function(t){w1(this).write(e,t)}})}var Uze=_Q(`ObservableObjectAdministration`,b1);function T1(e){return mQ(e)?(FQ(e),Uze(e[CQ])):!1}function E1(e,t){if(typeof e==`object`&&e){if(p1(e))return t!==void 0&&uQ(!1),e[CQ].atom;if(y1(e))return e[CQ];if(g1(e)){var n=e;if(t===void 0)return n._keysAtom;var r=n._data.get(t)||n._hasMap.get(t);return r||uQ(!1),r}if(FQ(e),t&&!e[CQ]&&e[t],T1(e)){if(!t)return uQ(!1);var r=e[CQ].values.get(t);return r||uQ(!1),r}if(TQ(e)||v$(e)||F$(e))return e}else if(typeof e==`function`&&F$(e[CQ]))return e[CQ];return uQ(!1)}function D1(e,t){if(e||uQ(`Expecting some object`),t!==void 0)return D1(E1(e,t));if(TQ(e)||v$(e)||F$(e)||g1(e)||y1(e))return e;if(FQ(e),e[CQ])return e[CQ];uQ(!1)}function Wze(e,t){return(t===void 0?T1(e)||g1(e)||y1(e)?D1(e):E1(e):E1(e,t)).name}var O1=Object.prototype.toString;function k1(e,t,n){return n===void 0&&(n=-1),A1(e,t,n)}function A1(e,t,n,r,i){if(e===t)return e!==0||1/e==1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var a=typeof e;if(a!==`function`&&a!==`object`&&typeof t!=`object`)return!1;var o=O1.call(e);if(o!==O1.call(t))return!1;switch(o){case`[object RegExp]`:case`[object String]`:return``+e==``+t;case`[object Number]`:return+e==+e?+e==0?1/e==1/t:+e==+t:+t!=+t;case`[object Date]`:case`[object Boolean]`:return+e==+t;case`[object Symbol]`:return typeof Symbol<`u`&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case`[object Map]`:case`[object Set]`:n>=0&&n++}e=j1(e),t=j1(t);var s=o===`[object Array]`;if(!s){if(typeof e!=`object`||typeof t!=`object`)return!1;var c=e.constructor,l=t.constructor;if(c!==l&&!(typeof c==`function`&&c instanceof c&&typeof l==`function`&&l instanceof l)&&`constructor`in e&&`constructor`in t)return!1}if(n===0)return!1;n<0&&(n=-1),r||=[],i||=[];for(var u=r.length;u--;)if(r[u]===e)return i[u]===t;if(r.push(e),i.push(t),s){if(u=e.length,u!==t.length)return!1;for(;u--;)if(!A1(e[u],t[u],n-1,r,i))return!1}else{var d=Object.keys(e),f=void 0;if(u=d.length,Object.keys(t).length!==u)return!1;for(;u--;)if(f=d[u],!(Gze(t,f)&&A1(e[f],t[f],n-1,r,i)))return!1}return r.pop(),i.pop(),!0}function j1(e){return p1(e)?e.slice():vQ(e)||g1(e)||yQ(e)||y1(e)?Array.from(e.entries()):e}function Gze(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function M1(e){return e[Symbol.iterator]=Kze,e}function Kze(){return this}if(typeof Proxy>`u`||typeof Symbol>`u`)throw Error(`[mobx] MobX 5+ requires Proxy and Symbol objects. If your environment doesn't support Symbol or Proxy objects, please downgrade to MobX 4. For React Native Android, consider upgrading JSCore.`);(function(){function e(){}e.name})(),typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__==`object`&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:pze,extras:{getDebugName:Wze},$mobx:CQ});function qze(e){return!(e.prototype&&e.prototype.render)&&!WZ.isPrototypeOf(e)}function N1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.prefix,r=n===void 0?``:n,i=t.suffix,a=i===void 0?``:i;return r+(e.displayName||e.name||e.constructor&&e.constructor.name||`<component>`)+a}var P1=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},F1=function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)},I1=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),L1=function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},R1=function(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e},z1=!1,B1=console;function Jze(e){var t=w$().allowStateChanges;return w$().allowStateChanges=e,t}function Yze(e){w$().allowStateChanges=e}function Xze(e,t,n,r,i){var a=Jze(e),o=void 0;try{o=t(n,r,i)}finally{Yze(a)}return o}function V1(e,t){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=e[t],i=U1[t];e[t]=r?n===!0?function(){i.apply(this,arguments),r.apply(this,arguments)}:function(){r.apply(this,arguments),i.apply(this,arguments)}:i}function H1(e,t){if(e==null||t==null||(e===void 0?`undefined`:P1(e))!==`object`||(t===void 0?`undefined`:P1(t))!==`object`)return e!==t;var n=Object.keys(e);if(n.length!==Object.keys(t).length)return!0;for(var r=void 0,i=n.length-1;r=n[i];i--)if(t[r]!==e[r])return!0;return!1}var U1={componentWillMount:function(){var e=this;if(z1===!0)return;var t=N1(this),n=!1,r=!1;function i(e){var t=this[e],i=EQ(`reactive `+e);Object.defineProperty(this,e,{configurable:!0,enumerable:!0,get:function(){return i.reportObserved(),t},set:function(e){!r&&H1(t,e)?(t=e,n=!0,i.reportChanged(),n=!1):t=e}})}i.call(this,`props`),i.call(this,`state`);var a=this.render.bind(this),o=null,s=!1,c=function(){return o=new M$(t+`.render()`,function(){if(!s&&(s=!0,typeof e.componentWillReact==`function`&&e.componentWillReact(),e.__$mobxIsUnmounted!==!0)){var t=!0;try{r=!0,n||WZ.prototype.forceUpdate.call(e),t=!1}finally{r=!1,t&&o.dispose()}}}),o.reactComponent=e,l.$mobx=o,e.render=l,l(e.props,e.state,e.context)},l=function(e,t,n){s=!1;var r=void 0,i=void 0;if(o.track(function(){try{i=Xze(!1,a,e,t,n)}catch(e){r=e}}),r)throw r;return i};this.render=c},componentWillUnmount:function(){z1!==!0&&(this.render.$mobx&&this.render.$mobx.dispose(),this.__$mobxIsUnmounted=!0)},componentDidMount:function(){},componentDidUpdate:function(){},shouldComponentUpdate:function(e,t){return this.state!==t||H1(this.props,e)}};function W1(e){if(arguments.length>1&&B1.warn('Mobx observer: Using observer to inject stores is not supported. Use `@connect(["store1", "store2"]) ComponentClass instead or preferably, use `@inject("store1", "store2") @observer ComponentClass` or `inject("store1", "store2")(observer(componentClass))``'),e.isMobxInjector===!0&&B1.warn(`Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'`),qze(e)){var t,n;return W1((n=t=function(t){L1(n,t);function n(){return F1(this,n),R1(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return I1(n,[{key:`render`,value:function(){return e.call(this,this.props,this.context)}}]),n}(WZ),t.displayName=N1(e),n))}if(!e)throw Error(`Please pass a valid component to 'observer'`);return Zze(e.prototype||e),e.isMobXReactObserver=!0,e}function Zze(e){V1(e,`componentWillMount`,!0),V1(e,`componentDidMount`),e.shouldComponentUpdate||=U1.shouldComponentUpdate}var Qze=W1(function(e){return e.children[0]()});Qze.displayName=`Observer`;var $ze=typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function eBe(e,t){return t={exports:{}},e(t,t.exports),t.exports}eBe(function(e,t){(function(t,n){e.exports=n()})($ze,(function(){var e={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},t={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n=Object.defineProperty,r=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,a=Object.getOwnPropertyDescriptor,o=Object.getPrototypeOf,s=o&&o(Object);return function c(l,u,d){if(typeof u!=`string`){if(s){var f=o(u);f&&f!==s&&c(l,f,d)}var p=r(u);i&&(p=p.concat(i(u)));for(var m=0;m<p.length;++m){var h=p[m];if(!e[h]&&!t[h]&&(!d||!d[h])){var g=a(u,h);try{n(l,h,g)}catch{}}}return l}return l}}))});var G1={children:!0,key:!0,ref:!0},K1=console;if(function(e){L1(t,e);function t(){return F1(this,t),R1(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return I1(t,[{key:`render`,value:function(e){var t=e.children;return t.length>1?BZ(`div`,null,` `,t,` `):t[0]}},{key:`getChildContext`,value:function(){var e={},t=this.context.mobxStores;if(t)for(var n in t)e[n]=t[n];for(var r in this.props)!G1[r]&&r!==`suppressChangedStoreWarning`&&(e[r]=this.props[r]);return{mobxStores:e}}},{key:`componentWillReceiveProps`,value:function(e){if(Object.keys(e).length!==Object.keys(this.props).length&&K1.warn(`MobX Provider: The set of provided stores has changed. Please avoid changing stores as the change might not propagate to all children`),!e.suppressChangedStoreWarning)for(var t in e)!G1[t]&&this.props[t]!==e[t]&&K1.warn(`MobX Provider: Provided store '`+t+`' has changed. Please avoid replacing stores as the change might not propagate to all children`)}}]),t}(WZ),!WZ)throw Error(`mobx-preact requires Preact to be available`);var q1,J1,Y1,X1=[],Z1=SZ,Q1=Z1.__b,$1=Z1.__r,e0=Z1.diffed,t0=Z1.__c,n0=Z1.unmount,r0=Z1.__;function tBe(){for(var e;e=X1.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(a0),t.__h.some(o0),t.__h=[]}catch(n){t.__h=[],Z1.__e(n,e.__v)}}}Z1.__b=function(e){q1=null,Q1&&Q1(e)},Z1.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),r0&&r0(e,t)},Z1.__r=function(e){$1&&$1(e);var t=(q1=e.__c).__H;t&&(J1===q1?(t.__h=[],q1.__h=[],t.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.some(a0),t.__h.some(o0),t.__h=[])),J1=q1},Z1.diffed=function(e){e0&&e0(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(X1.push(t)!==1&&Y1===Z1.requestAnimationFrame||((Y1=Z1.requestAnimationFrame)||nBe)(tBe)),t.__H.__.some(function(e){e.u&&=(e.__H=e.u,void 0)})),J1=q1=null},Z1.__c=function(e,t){t.some(function(e){try{e.__h.some(a0),e.__h=e.__h.filter(function(e){return!e.__||o0(e)})}catch(n){t.some(function(e){e.__h&&=[]}),t=[],Z1.__e(n,e.__v)}}),t0&&t0(e,t)},Z1.unmount=function(e){n0&&n0(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(e){try{a0(e)}catch(e){t=e}}),n.__H=void 0,t&&Z1.__e(t,n.__v))};var i0=typeof requestAnimationFrame==`function`;function nBe(e){var t,n=function(){clearTimeout(r),i0&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);i0&&(t=requestAnimationFrame(n))}function a0(e){var t=q1,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),q1=t}function o0(e){var t=q1;e.__c=e.__(),q1=t}function rBe(e,t){for(var n in t)e[n]=t[n];return e}function s0(e,t){for(var n in e)if(n!==`__source`&&!(n in t))return!0;for(var r in t)if(r!==`__source`&&e[r]!==t[r])return!0;return!1}function c0(e,t){this.props=e,this.context=t}(c0.prototype=new WZ).isPureReactComponent=!0,c0.prototype.shouldComponentUpdate=function(e,t){return s0(this.props,e)||s0(this.state,t)};var l0=SZ.__b;SZ.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),l0&&l0(e)},typeof Symbol<`u`&&Symbol.for;var iBe=SZ.__e;SZ.__e=function(e,t,n,r){if(e.then){for(var i,a=t;a=a.__;)if((i=a.__c)&&i.__c)return t.__e??(t.__e=n.__e,t.__k=n.__k||[]),i.__c(e,t)}iBe(e,t,n,r)};var u0=SZ.unmount;function d0(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(e){typeof e.__c==`function`&&e.__c()}),e.__c.__H=null),(e=rBe({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return d0(e,t,n)})),e}function f0(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return f0(e,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function p0(){this.__u=0,this.o=null,this.__b=null}function m0(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function h0(){this.i=null,this.l=null}SZ.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),u0&&u0(e)},(p0.prototype=new WZ).__c=function(e,t){var n=t.__c,r=this;r.o??=[],r.o.push(n);var i=m0(r.__v),a=!1,o=function(){a||r.__z||(a=!0,n.__R=null,i?i(c):c())};n.__R=o;var s=n.__P;n.__P=null;var c=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=f0(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.__P=s,t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},p0.prototype.componentWillUnmount=function(){this.o=[]},p0.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement(`div`),r=this.__v.__k[0].__c;this.__v.__k[0]=d0(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&BZ(UZ,null,e.fallback);return i&&(i.__u&=-33),[BZ(UZ,null,t.__a?null:e.children),i]};var g0=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!==`t`||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};(h0.prototype=new WZ).__a=function(e){var t=this,n=m0(t.__v),r=t.l.get(e);return r[0]++,function(i){var a=function(){t.props.revealOrder?(r.push(i),g0(t,e,r)):i()};n?n(a):a()}},h0.prototype.render=function(e){this.i=null,this.l=new Map;var t=ZZ(e.children);e.revealOrder&&e.revealOrder[0]===`b`&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},h0.prototype.componentDidUpdate=h0.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){g0(e,n,t)})};var aBe=typeof Symbol<`u`&&Symbol.for&&Symbol.for(`react.element`)||60103,oBe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,sBe=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,cBe=/[A-Z0-9]/g,lBe=typeof document<`u`,uBe=function(e){return(typeof Symbol<`u`&&typeof Symbol()==`symbol`?/fil|che|rad/:/fil|che|ra/).test(e)};function _0(e,t,n){return t.__k??(t.textContent=``),jRe(e,t),typeof n==`function`&&n(),e?e.__c:null}WZ.prototype.isReactComponent=!0,[`componentWillMount`,`componentWillReceiveProps`,`componentWillUpdate`].forEach(function(e){Object.defineProperty(WZ.prototype,e,{configurable:!0,get:function(){return this[`UNSAFE_`+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var v0=SZ.event;SZ.event=function(e){return v0&&(e=v0(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e};var dBe={configurable:!0,get:function(){return this.class}},y0=SZ.vnode;SZ.vnode=function(e){typeof e.type==`string`&&function(e){var t=e.props,n=e.type,r={},i=n.indexOf(`-`)==-1;for(var a in t){var o=t[a];if(!(a===`value`&&`defaultValue`in t&&o==null||lBe&&a===`children`&&n===`noscript`||a===`class`||a===`className`)){var s=a.toLowerCase();a===`defaultValue`&&`value`in t&&t.value==null?a=`value`:a===`download`&&!0===o?o=``:s===`translate`&&o===`no`?o=!1:s[0]===`o`&&s[1]===`n`?s===`ondoubleclick`?a=`ondblclick`:s!==`onchange`||n!==`input`&&n!==`textarea`||uBe(t.type)?s===`onfocus`?a=`onfocusin`:s===`onblur`?a=`onfocusout`:sBe.test(a)&&(a=s):s=a=`oninput`:i&&oBe.test(a)?a=a.replace(cBe,`-$&`).toLowerCase():o===null&&(o=void 0),s===`oninput`&&r[a=s]&&(a=`oninputCapture`),r[a]=o}}n==`select`&&(r.multiple&&Array.isArray(r.value)&&(r.value=ZZ(t.children).forEach(function(e){e.props.selected=r.value.indexOf(e.props.value)!=-1})),r.defaultValue!=null&&(r.value=ZZ(t.children).forEach(function(e){e.props.selected=r.multiple?r.defaultValue.indexOf(e.props.value)!=-1:r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",dBe)):t.className&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=aBe,y0&&y0(e)};var b0=SZ.__r;SZ.__r=function(e){b0&&b0(e),e.__c};var x0=SZ.diffed;SZ.diffed=function(e){x0&&x0(e);var t=e.props,n=e.__e;n!=null&&e.type===`textarea`&&`value`in t&&t.value!==n.value&&(n.value=t.value==null?``:t.value)};var fBe=0;Array.isArray;function S0(e,t,n,r,i,a){t||={};var o,s,c=t;if(`ref`in c)for(s in c={},t)s==`ref`?o=t[s]:c[s]=t[s];var l={type:e,props:c,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--fBe,__i:-1,__u:0,__source:i,__self:a};if(typeof e==`function`&&(o=e.defaultProps))for(s in o)c[s]===void 0&&(c[s]=o[s]);return SZ.vnode&&SZ.vnode(l),l}var pBe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},C0;(function(e){function t(t){var n=pBe(t,[]);if(!t.container)throw Error(`Ensure the container of LogicFlow is specified and valid.`);return ua({},e.defaults,n)}e.get=t})(C0||={}),(function(e){e.defaults={background:!1,grid:!1,textEdit:!0,snapline:!0,outline:!1,disabledTools:[]}})(C0||={});var w0={node:!1,edge:!1},mBe={node:!0,edge:!0},hBe=function(e){return!e||typeof e==`boolean`?Va(e===!0?mBe:w0):ge(Va(w0),e)},gBe=function(){return ur(window,`navigator.userAgent`,``).match(/MSIE|Trident/)!==null};function T0(e){try{return JSON.parse(JSON.stringify(e))}catch{return e}}var E0={default:{baseNode:{fill:`#fff`,stroke:`#474747`,strokeWidth:2,radius:12},baseEdge:{stroke:`#474747`,strokeWidth:2,radius:12},rect:{shadow:{dx:0,dy:0,stdDeviation:4,floodColor:`#9CA1AA55`}},circle:{},diamond:{},ellipse:{},polygon:{},html:{fill:`transparent`,stroke:`transparent`,shadow:{dx:0,dy:0,stdDeviation:4,floodColor:`#9CA1AA55`}},text:{color:`#474747`,stroke:`none`,fontSize:12,background:{fill:`transparent`}},nodeText:{color:`#474747`,overflowMode:`default`,fontSize:12,lineHeight:1.2},anchor:{stroke:`#474747`,fill:`#fff`,r:4,hover:{r:8,fill:`#707070`,fillOpacity:.15,stroke:`transparent`}},anchorLine:{stroke:`#474747`,strokeWidth:2,strokeDasharray:`3,2`},line:{},polyline:{},bezier:{fill:`none`,adjustLine:{stroke:`#949494`},adjustAnchor:{r:4,fill:`#949494`,fillOpacity:1,stroke:`#949494`}},edgeText:{textWidth:100,overflowMode:`default`,fontSize:12,background:{fill:`#fff`}},arrow:{strokeLinecap:`round`,strokeLinejoin:`round`,offset:10,verticalLength:5},snapline:{strokeLinecap:`round`,strokeLinejoin:`round`,stroke:`#AAAAAA`,strokeWidth:1,strokeDasharray:`3,3`},edgeAdjust:{r:4,fill:`#fff`,stroke:`#474747`,strokeWidth:1},outline:{fill:`none`,stroke:`transparent`,strokeWidth:0},edgeOutline:{fill:`transparent`,stroke:`#757575`,strokeWidth:1.5,strokeDasharray:`4,4`,radius:8,hover:{stroke:`#4271DF`}},edgeAnimation:{stroke:`#4271DF`,strokeDasharray:`12,4,6,4`,strokeDashoffset:`100%`,animationName:`lf_animate_dash`,animationDuration:`20s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`,animationDirection:`normal`},rotateControl:{stroke:`#474747`,fill:`#fff`,strokeWidth:1,hover:{fill:`#707070`,fillOpacity:.15,stroke:`transparent`}},resizeControl:{width:8,height:8,radius:2,fill:`#fff`,stroke:`#474747`,hover:{width:12,height:12,fill:`#707070`,fillOpacity:.15,stroke:`transparent`}},resizeOutline:{fill:`transparent`,stroke:`#757575`,strokeWidth:1.5,strokeDasharray:`4,4`,radius:8,hover:{stroke:`#4271DF`}}},colorful:{baseNode:{fill:`#fff`,stroke:`#474747`,strokeWidth:2,radius:12},baseEdge:{stroke:`#474747`,strokeWidth:2,radius:12},rect:{fill:`#72CBFF`,stroke:`#3ABDF9`,radius:8},circle:{fill:`#FFE075`,stroke:`#F9CE3A`,radius:8},ellipse:{fill:`#FFA8A8`,stroke:`#FF6B66`,radius:8},text:{fill:`#72CBFF`,radius:8,fontSize:12},diamond:{fill:`#96F7AF`,stroke:`#40EF7E`,radius:8},polygon:{fill:`#E0A8FF`,stroke:`#C271FF`,radius:8},nodeText:{color:`#474747`,overflowMode:`default`,fontSize:12,lineHeight:1.2},edgeText:{textWidth:100,overflowMode:`default`,fontSize:12,background:{fill:`#fff`}},html:{fill:`#fff`,stroke:`transparent`,strokeWidth:0},anchor:{stroke:`#474747`,fill:`#fff`,r:4,hover:{r:8,fill:`#707070`,fillOpacity:.15,stroke:`transparent`}},anchorLine:{stroke:`#474747`,strokeWidth:2,strokeDasharray:`3,2`},line:{},polyline:{radius:8},bezier:{fill:`none`,adjustLine:{stroke:`#3ABDF9`},adjustAnchor:{r:4,fill:`#3ABDF9`,fillOpacity:1,stroke:`#3ABDF9`}},edgeAdjust:{r:4,fill:`#fff`,stroke:`#474747`,strokeWidth:1},arrow:{strokeLinecap:`round`,strokeLinejoin:`round`,offset:10,verticalLength:5},snapline:{strokeLinecap:`round`,strokeLinejoin:`round`,stroke:`#949494`,strokeWidth:1},outline:{radius:8,fill:`transparent`,stroke:`#949494`,strokeDasharray:`3,3`,hover:{stroke:`#949494`}},edgeOutline:{fill:`transparent`,stroke:`#757575`,strokeWidth:1.5,strokeDasharray:`4,4`,radius:8,hover:{stroke:`#4271DF`}},edgeAnimation:{stroke:`#4271DF`,strokeDasharray:`12,4,6,4`,strokeDashoffset:`100%`,animationName:`lf_animate_dash`,animationDuration:`20s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`,animationDirection:`normal`},rotateControl:{stroke:`#474747`,fill:`#fff`,strokeWidth:1,hover:{fill:`#707070`,fillOpacity:.15,stroke:`transparent`}},resizeControl:{width:8,height:8,radius:2,fill:`#fff`,stroke:`#474747`,hover:{width:12,height:12,fill:`#707070`,fillOpacity:.15,stroke:`transparent`}},resizeOutline:{fill:`transparent`,stroke:`#757575`,strokeWidth:1.5,strokeDasharray:`4,4`,radius:8,hover:{stroke:`#4271DF`}}},dark:{baseNode:{fill:`#33353A`,stroke:`#EAEAEA`,strokeWidth:2,radius:12},baseEdge:{stroke:`#EAEAEA`,strokeWidth:2,radius:12},rect:{},circle:{},diamond:{},ellipse:{},polygon:{},html:{fill:`#33353A`,stroke:`transparent`,shadow:{dx:0,dy:0,stdDeviation:4,floodColor:`#9CA1AA55`}},text:{color:`#EAEAEA`,stroke:`none`,fontSize:12,background:{fill:`transparent`}},nodeText:{color:`#EAEAEA`,overflowMode:`default`,fontSize:12,lineHeight:1.2},anchor:{stroke:`#EAEAEA`,fill:`#33353A`,r:4,hover:{r:8,fill:`#707070`,fillOpacity:.15,stroke:`transparent`}},anchorLine:{stroke:`#EAEAEA`,strokeWidth:2,strokeDasharray:`3,2`},line:{},polyline:{},bezier:{fill:`none`,adjustLine:{stroke:`#EAEAEA`},adjustAnchor:{r:4,fill:`#33353A`,fillOpacity:1,stroke:`#EAEAEA`}},edgeText:{textWidth:100,overflowMode:`default`,fontSize:12,background:{fill:`#EAEAEA`}},arrow:{strokeLinecap:`round`,strokeLinejoin:`round`,offset:10,verticalLength:5},snapline:{strokeLinecap:`round`,strokeLinejoin:`round`,stroke:`#949494`,strokeWidth:1},edgeAdjust:{r:4,fill:`#33353A`,stroke:`#EAEAEA`,strokeWidth:1},outline:{fill:`none`,stroke:`transparent`,strokeWidth:0},edgeOutline:{fill:`transparent`,stroke:`#EAEAEA`,strokeWidth:1.5,strokeDasharray:`4,4`,radius:8,hover:{stroke:`#4271DF`}},edgeAnimation:{stroke:`#4271DF`,strokeDasharray:`12,4,6,4`,strokeDashoffset:`100%`,animationName:`lf_animate_dash`,animationDuration:`20s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`,animationDirection:`normal`},rotateControl:{stroke:`#EAEAEA`,fill:`#33353A`,strokeWidth:1,hover:{fill:`#707070`,fillOpacity:.15,stroke:`transparent`}},resizeControl:{width:8,height:8,radius:2,fill:`#33353A`,stroke:`#EAEAEA`,hover:{width:12,height:12,fill:`#707070`,fillOpacity:.15,stroke:`transparent`}},resizeOutline:{fill:`transparent`,stroke:`#EAEAEA`,strokeWidth:1.5,strokeDasharray:`4,4`,radius:8,hover:{stroke:`#4271DF`}}},retro:{baseNode:{fill:`#fff`,stroke:`#000`,strokeWidth:2},baseEdge:{stroke:`#000`,strokeWidth:2},rect:{},circle:{},diamond:{},ellipse:{},polygon:{},html:{fill:`transparent`,stroke:`transparent`},text:{color:`#000`,stroke:`none`,fontSize:12,background:{fill:`transparent`}},anchor:{stroke:`#000`,fill:`#fff`,r:4,hover:{r:10,fill:`#949494`,fillOpacity:.5,stroke:`#949494`}},anchorLine:{stroke:`#000`,strokeWidth:2,strokeDasharray:`3,2`},nodeText:{color:`#000`,overflowMode:`default`,fontSize:12,lineHeight:1.2},edgeText:{textWidth:100,overflowMode:`default`,fontSize:12,background:{fill:`#fff`}},line:{},polyline:{},bezier:{fill:`none`,adjustLine:{stroke:`#949494`},adjustAnchor:{r:4,fill:`#949494`,fillOpacity:1,stroke:`#949494`}},arrow:{offset:10,verticalLength:5},snapline:{stroke:`#949494`,strokeWidth:1},edgeAdjust:{r:4,fill:`#fff`,stroke:`#949494`,strokeWidth:2},outline:{fill:`transparent`,stroke:`#949494`,strokeDasharray:`3,3`,hover:{stroke:`#949494`}},edgeOutline:{fill:`transparent`,stroke:`#949494`,strokeDasharray:`3,3`,hover:{stroke:`#949494`}},edgeAnimation:{stroke:`red`,strokeDasharray:`10,10`,strokeDashoffset:`100%`,animationName:`lf_animate_dash`,animationDuration:`20s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`,animationDirection:`normal`},rotateControl:{stroke:`#000`,fill:`#fff`,strokeWidth:1.5},resizeControl:{width:7,height:7,fill:`#fff`,stroke:`#000`},resizeOutline:{fill:`none`,stroke:`transparent`,strokeWidth:1,strokeDasharray:`3,3`}}},_Be={background:`#33353A`},vBe={background:`#fefeff`},D0={background:`#FBFCFE`},O0={colorful:vBe,dark:_Be,default:D0,retro:{background:`#ffffff`}},yBe={size:10,visible:!0,type:`mesh`,config:{color:`#83838377`,thickness:2},majorBold:!0},bBe={size:10,visible:!0,type:`dot`,config:{color:`#b7c2d9`,thickness:2},majorBold:!1},k0={size:10,visible:!0,type:`mesh`,config:{color:`#D7DEEB`,thickness:1},majorBold:{opacity:.6,boldIndices:[5],dashArrayConfig:{pattern:[]},customBoldWidth:2}},A0={colorful:bBe,dark:yBe,retro:{size:10,visible:!0,type:`dot`,config:{color:`#ababab`,thickness:1},majorBold:!1},default:k0},xBe=9999,j0;(function(e){e[e.DEFAULT=1]=`DEFAULT`,e[e.TEXT_EDIT=2]=`TEXT_EDIT`,e[e.SHOW_MENU=3]=`SHOW_MENU`,e[e.ALLOW_CONNECT=4]=`ALLOW_CONNECT`,e[e.NOT_ALLOW_CONNECT=5]=`NOT_ALLOW_CONNECT`})(j0||={});var M0;(function(e){e.NODE=`node`,e.EDGE=`edge`,e.GRAPH=`graph`})(M0||={});var N0;(function(e){e.NODE=`node`,e.CIRCLE_NODE=`circle-node`,e.POLYGON_NODE=`polygon-node`,e.RECT_NODE=`rect-node`,e.TEXT_NODE=`text-node`,e.ELLIPSE_NODE=`ellipse-node`,e.DIAMOND_NODE=`diamond-node`,e.HTML_NODE=`html-node`,e.CUSTOM_HTML_NODE=`custom-html-node`,e.EDGE=`edge`,e.LINE_EDGE=`line-edge`,e.POLYLINE_EDGE=`polyline-edge`,e.BEZIER_EDGE=`bezier-edge`,e.GRAPH=`graph`})(N0||={});var P0;(function(e){e.ELEMENT_CLICK=`element:click`,e.NODE_ADD=`node:add`,e.NODE_DELETE=`node:delete`,e.NODE_CLICK=`node:click`,e.NODE_DBCLICK=`node:dbclick`,e.NODE_GROUP_COPY=`node:group-copy-add`,e.NODE_DND_ADD=`node:dnd-add`,e.NODE_DND_DRAG=`node:dnd-drag`,e.NODE_MOUSEDOWN=`node:mousedown`,e.NODE_DRAGSTART=`node:dragstart`,e.NODE_DRAG=`node:drag`,e.NODE_DROP=`node:drop`,e.NODE_MOUSEUP=`node:mouseup`,e.NODE_MOUSEMOVE=`node:mousemove`,e.NODE_MOUSEENTER=`node:mouseenter`,e.NODE_MOUSELEAVE=`node:mouseleave`,e.NODE_CONTEXTMENU=`node:contextmenu`,e.NODE_ROTATE=`node:rotate`,e.NODE_RESIZE=`node:resize`,e.NODE_FOCUS=`node:focus`,e.NODE_BLUR=`node:blur`,e.NODE_PROPERTIES_CHANGE=`node:properties-change`,e.NODE_PROPERTIES_DELETE=`node:properties-delete`,e.EDGE_ADD=`edge:add`,e.EDGE_DELETE=`edge:delete`,e.EDGE_CLICK=`edge:click`,e.EDGE_DBCLICK=`edge:dbclick`,e.EDGE_FOCUS=`edge:focus`,e.EDGE_BLUR=`edge:blur`,e.EDGE_MOUSEENTER=`edge:mouseenter`,e.EDGE_MOUSELEAVE=`edge:mouseleave`,e.EDGE_CONTEXTMENU=`edge:contextmenu`,e.EDGE_ADJUST=`edge:adjust`,e.EDGE_EXCHANGE_NODE=`edge:exchange-node`,e.ANCHOR_CLICK=`anchor:click`,e.ANCHOR_MOUSEDOWN=`anchor:mousedown`,e.ANCHOR_DRAGSTART=`anchor:dragstart`,e.ANCHOR_DRAG=`anchor:drag`,e.ANCHOR_DROP=`anchor:drop`,e.ANCHOR_DRAGEND=`anchor:dragend`,e.ADJUST_POINT_MOUSEDOWN=`adjustPoint:mousedown`,e.ADJUST_POINT_MOUSEUP=`adjustPoint:mouseup`,e.ADJUST_POINT_MOUSEMOVE=`adjustPoint:mousemove`,e.ADJUST_POINT_DRAGSTART=`adjustPoint:dragstart`,e.ADJUST_POINT_DRAG=`adjustPoint:drag`,e.ADJUST_POINT_DROP=`adjustPoint:drop`,e.ADJUST_POINT_DRAGEND=`adjustPoint:dragend`,e.BLANK_MOUSEDOWN=`blank:mousedown`,e.BLANK_DRAGSTART=`blank:dragstart`,e.BLANK_DRAG=`blank:drag`,e.BLANK_DROP=`blank:drop`,e.BLANK_MOUSEMOVE=`blank:mousemove`,e.BLANK_CANVAS_MOUSEMOVE=`blank:canvas-mousemove`,e.BLANK_MOUSEUP=`blank:mouseup`,e.BLANK_CLICK=`blank:click`,e.BLANK_CONTEXTMENU=`blank:contextmenu`,e.SELECTION_MOUSEDOWN=`selection:mousedown`,e.SELECTION_DRAGSTART=`selection:dragstart`,e.SELECTION_DRAG=`selection:drag`,e.SELECTION_DROP=`selection:drop`,e.SELECTION_MOUSEMOVE=`selection:mousemove`,e.SELECTION_MOUSEUP=`selection:mouseup`,e.SELECTION_CONTEXTMENU=`selection:contextmenu`,e.CONNECTION_NOT_ALLOWED=`connection:not-allowed`,e.TEXT_MOUSEDOWN=`text:mousedown`,e.TEXT_DRAGSTART=`text:dragstart`,e.TEXT_DRAG=`text:drag`,e.TEXT_DROP=`text:drop`,e.TEXT_CLICK=`text:click`,e.TEXT_DBCLICK=`text:dbclick`,e.TEXT_BLUR=`text:blur`,e.TEXT_MOUSEMOVE=`text:mousemove`,e.TEXT_MOUSEUP=`text:mouseup`,e.TEXT_FOCUS=`text:focus`,e.TEXT_ADD=`text:add`,e.TEXT_UPDATE=`text:update`,e.TEXT_CLEAR=`text:clear`,e.LABEL_MOUSEDOWN=`label:mousedown`,e.LABEL_DRAGSTART=`label:dragstart`,e.LABEL_DRAG=`label:drag`,e.LABEL_DROP=`label:drop`,e.LABEL_CLICK=`label:click`,e.LABEL_DBCLICK=`label:dbclick`,e.LABEL_BLUR=`label:blur`,e.LABEL_MOUSEMOVE=`label:mousemove`,e.LABEL_MOUSEUP=`label:mouseup`,e.LABEL_FOCUS=`label:focus`,e.LABEL_ADD=`label:add`,e.LABEL_UPDATE=`label:update`,e.LABEL_CLEAR=`label:clear`,e.LABEL_DELETE=`label:delete`,e.LABEL_SHOULD_ADD=`label:should-add`,e.LABEL_BATCH_ADD=`label:batch-add`,e.LABEL_SHOULD_UPDATE=`label:should-update`,e.LABEL_SHOULD_DELETE=`label:should-delete`,e.LABEL_BATCH_DELETE=`label:batch-delete`,e.LABEL_NOT_ALLOWED_ADD=`label:not-allowed-add`,e.HISTORY_CHANGE=`history:change`,e.GRAPH_TRANSFORM=`graph:transform`,e.GRAPH_RENDERED=`graph:rendered`,e.GRAPH_UPDATED=`graph:updated`,e.EDIT_CONFIG_CHANGED=`editConfig:changed`})(P0||={});var F0;(function(e){e[e.STATIC=-1]=`STATIC`,e[e.DEFAULT=0]=`DEFAULT`,e[e.INCREASE=1]=`INCREASE`,e[e.EDGE_TOP=2]=`EDGE_TOP`})(F0||={});var I0;(function(e){e.HORIZONTAL=`horizontal`,e.VERTICAL=`vertical`})(I0||={});var L0;(function(e){e.TEXT=`text`,e.LABEL=`label`})(L0||={});var SBe=0,R0=function(){function e(e){var t=e.onDragStart,n=t===void 0?aa:t,r=e.onDragging,i=r===void 0?aa:r,a=e.onDragEnd,o=a===void 0?aa:a,s=e.eventType,c=s===void 0?``:s,l=e.eventCenter,u=e.step,d=u===void 0?1:u,f=e.isStopPropagation,p=f===void 0||f,m=e.model,h=e.data,g=this;this.isDragging=!1,this.isStartDragging=!1,this.startX=0,this.startY=0,this.sumDeltaX=0,this.sumDeltaY=0,this.handleMouseDown=function(e){var t,n=window==null?void 0:window.document;if(e.button===SBe){g.isStopPropagation&&e.stopPropagation(),g.isStartDragging=!0,g.startX=e.clientX,g.startY=e.clientY,n.addEventListener(`pointermove`,g.handleMouseMove,!1),n.addEventListener(`pointerup`,g.handleMouseUp,!1);var r=g.model?.getData();(t=g.eventCenter)==null||t.emit(P0[`${g.eventType}_MOUSEDOWN`],{e,data:g.data||r}),g.startTime=new Date().getTime()}},this.handleMouseMove=function(e){var t;if(g.isStopPropagation&&e.stopPropagation(),e.preventDefault(),g.isStartDragging&&(g.sumDeltaX+=e.clientX-g.startX,g.sumDeltaY+=e.clientY-g.startY,g.startX=e.clientX,g.startY=e.clientY,g.step<=1||Math.abs(g.sumDeltaX)>g.step||Math.abs(g.sumDeltaY)>g.step)){var n=g.sumDeltaX%g.step,r=g.sumDeltaY%g.step,i=g.sumDeltaX-n,a=g.sumDeltaY-r;g.sumDeltaX=n,g.sumDeltaY=r;var o=g.model?.getData();g.isDragging||((t=g.eventCenter)==null||t.emit(P0[`${g.eventType}_DRAGSTART`],{e,data:g.data||o}),g.onDragStart({event:e})),g.isDragging=!0,Promise.resolve().then(function(){var t,n;g.onDragging({deltaX:i,deltaY:a,event:e}),(t=g.eventCenter)==null||t.emit(P0[`${g.eventType}_MOUSEMOVE`],{deltaX:i,deltaY:a,e,data:g.data||o}),(n=g.eventCenter)==null||n.emit(P0[`${g.eventType}_DRAG`],{e,data:g.data||o})})}},this.handleMouseUp=function(e){var t=window.document;g.isStartDragging=!1,g.isStopPropagation&&e.stopPropagation();var n=e.target;n&&typeof n.releasePointerCapture==`function`&&n.releasePointerCapture(e.pointerId),Promise.resolve().then(function(){var n,r;t.removeEventListener(`pointermove`,g.handleMouseMove,!1),t.removeEventListener(`pointerup`,g.handleMouseUp,!1);var i=g.model?.getData();(n=g.eventCenter)==null||n.emit(P0[`${g.eventType}_MOUSEUP`],{e,data:g.data||i}),g.isDragging&&(g.isDragging=!1,g.onDragEnd({event:e}),(r=g.eventCenter)==null||r.emit(P0[`${g.eventType}_DROP`],{e,data:g.data||i}))})},this.cancelDrag=function(){var e=window==null?void 0:window.document;e.removeEventListener(`pointermove`,g.handleMouseMove,!1),e.removeEventListener(`pointerup`,g.handleMouseUp,!1),g.onDragEnd({event:void 0}),g.isDragging=!1},this.destroy=function(){g.isStartDragging&&g.cancelDrag()},this.onDragStart=n,this.onDragging=i,this.onDragEnd=o,this.step=d,this.isStopPropagation=p,this.eventType=c,this.eventCenter=l,this.model=m,this.data=h}return e.prototype.setStep=function(e){this.step=e},e.prototype.setModel=function(e){this.model=e},e}(),CBe=function(e){var t=e.x,n=e.y,r=e.width,i=e.height;return{x:t-r/2,y:n-i/2,x1:t+r/2,y1:n+i/2}},wBe=function(e){var t=e.startPoint,n=e.endPoint,r=(t.x+n.x)/2,i=(t.y+n.y)/2,a=Math.abs(t.x-n.x)+10,o=Math.abs(t.y-n.y)+10;return{x:r-a/2,y:i-o/2,x1:r+a/2,y1:i+o/2}},TBe=function(e){var t=e.points,n=J0(l2(t),8),r=n.x,i=n.y,a=n.width,o=n.height;return{x:r-a/2,y:i-o/2,x1:r+a/2,y1:i+o/2}},EBe=function(e){var t=e.path,n=J0(p2(t),8),r=n.x,i=n.y,a=n.width,o=n.height;return{x:r-a/2,y:i-o/2,x1:r+a/2,y1:i+o/2}},DBe=function(e){if(e.modelType===N0.LINE_EDGE)return wBe(e);if(e.modelType===N0.POLYLINE_EDGE)return TBe(e);if(e.modelType===N0.BEZIER_EDGE)return EBe(e)},OBe=function(e,t,n,r){var i=(t.y-e.y)*(r.x-n.x)-(e.x-t.x)*(n.y-r.y);if(i===0)return!1;var a=((t.x-e.x)*(r.x-n.x)*(n.y-e.y)+(t.y-e.y)*(r.x-n.x)*e.x-(r.y-n.y)*(t.x-e.x)*n.x)/i,o=-((t.y-e.y)*(r.y-n.y)*(n.x-e.x)+(t.x-e.x)*(r.y-n.y)*e.y-(r.x-n.x)*(t.y-e.y)*n.y)/i;return(a-e.x)*(a-t.x)<=0&&(o-e.y)*(o-t.y)<=0&&(a-n.x)*(a-r.x)<=0&&(o-n.y)*(o-r.y)<=0&&{x:a,y:o}},z0=function(e,t,n){var r=e.x,i=e.y,a=t.x,o=t.y,s=n.x,c=n.y,l=(c-o)/(s-a),u=o-l*a;return(r>=a&&r<=s||r<=a&&r>=s)&&(i>=o&&i<=c||i<=o&&i>=c)&&Math.abs(i-l*r-u)<2**-52},B0=function(e){var t=e.start,n=e.end,r=e.offset,i=e.verticalLength,a=e.type,o={leftX:0,leftY:0,rightX:0,rightY:0},s=Math.atan((n.y-t.y)/(n.x-t.x)),c=Math.atan(r/i),l=Math.sqrt(i*i+r*r);return a===`start`?n.x>=t.x?(o.leftX=t.x+l*Math.sin(s+c),o.leftY=t.y-l*Math.cos(s+c),o.rightX=t.x-l*Math.sin(s-c),o.rightY=t.y+l*Math.cos(s-c)):(o.leftX=t.x-l*Math.sin(s+c),o.leftY=t.y+l*Math.cos(s+c),o.rightX=t.x+l*Math.sin(s-c),o.rightY=t.y-l*Math.cos(s-c)):a===`end`&&(n.x>=t.x?(o.leftX=n.x+l*Math.sin(s-c),o.leftY=n.y-l*Math.cos(s-c),o.rightX=n.x-l*Math.sin(s+c),o.rightY=n.y+l*Math.cos(s+c)):(o.leftX=n.x-l*Math.sin(s-c),o.leftY=n.y+l*Math.cos(s-c),o.rightX=n.x+l*Math.sin(s+c),o.rightY=n.y-l*Math.cos(s+c))),o},V0=function(){return V0=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},V0.apply(this,arguments)},H0=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},U0=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},kBe=function(e,t){return Math.abs(e.centerX-t.centerX)*2<e.width+t.width&&Math.abs(e.centerY-t.centerY)*2<e.height+t.height},W0=function(e){var t=[],n={};return e.forEach(function(e){var t=`${e.x}-${e.y}`;e.id=t,n[t]=e}),Object.keys(n).forEach(function(e){t.push(n[e])}),t},G0=function(e,t){return e.width===0&&e.height===0?e:{x:e.x,y:e.y,centerX:e.centerX,centerY:e.centerY,minX:e.minX-t,minY:e.minY-t,maxX:e.maxX+t,maxY:e.maxY+t,height:e.height+2*t,width:e.width+2*t}},ABe=function(e,t){var n=Math.abs(e.x-t.centerX),r=Math.abs(e.y-t.centerY);return n/t.width>r/t.height?I0.HORIZONTAL:I0.VERTICAL},K0=function(e,t,n){return ABe(n,t)===I0.HORIZONTAL?{x:n.x>e.centerX?e.maxX:e.minX,y:n.y}:{x:n.x,y:n.y>e.centerY?e.maxY:e.minY}},q0=function(e,t){var n=Math.min(e.minX,t.minX),r=Math.min(e.minY,t.minY),i=Math.max(e.maxX,t.maxX),a=Math.max(e.maxY,t.maxY);return{x:(n+i)/2,y:(r+a)/2,centerX:(n+i)/2,centerY:(r+a)/2,minX:n,minY:r,maxX:i,maxY:a,height:a-r,width:i-n}},J0=function(e,t,n){e===void 0&&(e=[]);var r=[],i=[];e.forEach(function(e){r.push(e.x),i.push(e.y)});var a=Math.min.apply(Math,U0([],H0(r),!1)),o=Math.max.apply(Math,U0([],H0(r),!1)),s=Math.min.apply(Math,U0([],H0(i),!1)),c=Math.max.apply(Math,U0([],H0(i),!1)),l=o-a,u=c-s;return t&&(l+=t,u+=n||t),{centerX:(a+o)/2,centerY:(s+c)/2,maxX:o,maxY:c,minX:a,minY:s,x:(a+o)/2,y:(s+c)/2,height:u,width:l}},Y0=function(e){var t=e.minX,n=e.minY,r=e.maxX,i=e.maxY;return[{x:t,y:n},{x:r,y:n},{x:r,y:i},{x:t,y:i}]},X0=function(e,t){var n=e.x,r=e.y;return n<t.minX||n>t.maxX||r<t.minY||r>t.maxY},jBe=function(e,t){return t<e.minX||t>e.maxX?[]:[{x:t,y:e.minY},{x:t,y:e.maxY}]},MBe=function(e,t){return t<e.minY||t>e.maxY?[]:[{x:e.minX,y:t},{x:e.maxX,y:t}]},NBe=function(e,t){return U0(U0([],H0(jBe(e,t.x)),!1),H0(MBe(e,t.y)),!1)},Z0=function(e,t){return Math.abs(e.x-t.x)+Math.abs(e.y-t.y)},PBe=function(e,t){var n=0;return t.forEach(function(t){t&&(e.x===t.x&&(n+=-2),e.y===t.y&&(n+=-2))}),n},Q0=function(e,t,n,r,i){return Z0(e,t)+Z0(e,n)+PBe(e,[t,n,r,i])},$0=function(e,t,n,r,i){i||=0,e.unshift(t[r]),n[r]&&n[r]!==r&&i<=100&&$0(e,t,n,n[r],i+1)},FBe=function(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)},e2=function(e,t,n,r){var i=t.x-e.x,a=t.y-e.y,o=r.x-n.x,s=r.y-n.y,c=(-a*(e.x-n.x)+i*(e.y-n.y))/(-o*a+i*s),l=(o*(e.y-n.y)-s*(e.x-n.x))/(-o*a+i*s);return c>=0&&c<=1&&l>=0&&l<=1},t2=function(e,t,n){if(n.width===0&&n.height===0)return!1;var r=H0(Y0(n),4),i=r[0],a=r[1],o=r[2],s=r[3];return e2(e,t,i,a)||e2(e,t,i,s)||e2(e,t,a,o)||e2(e,t,o,s)},IBe=function(e,t,n,r){var i=[];return e.forEach(function(e){e!==t&&(e.x!==t.x&&e.y!==t.y||t2(e,t,n)||t2(e,t,r)||i.push(e))}),W0(i)},LBe=function(e,t,n,r,i,a,o){var s=[],c=[t],l={},u={},d={};t.id&&(u[t.id]=0,d[t.id]=Q0(t,n,t));var f={};e.forEach(function(e){e.id&&(f[e.id]=e)});for(var p=function(){var p,m=1/0;if(c.forEach(function(e){e.id&&d[e.id]<m&&(m=d[e.id],p=e)}),p===n&&n.id){var h=[];return $0(h,f,l,n.id),{value:h}}if(!p)return{value:[t,n]};FBe(c,p),s.push(p),IBe(e,p,r,i).forEach(function(e){if(s.indexOf(e)===-1&&(c.indexOf(e)===-1&&c.push(e),p?.id&&e?.id)){var r=(u[p.id]??0)+Z0(p,e);if(u[e.id]&&r>=u[e.id])return;l[e.id]=p.id,u[e.id]=r,d[e.id]=u[e.id]+Q0(e,n,t,a,o)}})};c.length;){var m=p();if(typeof m==`object`)return m.value}return[t,n]},n2=function(e){return B2(e)},r2=function(e){for(var t=1;t<e.length-1;){var n=e[t-1],r=e[t],i=e[t+1];n.x===r.x&&r.x===i.x||n.y===r.y&&r.y===i.y?e.splice(t,1):t++}return e},i2=function(e,t,n,r,i){var a=n2(n),o=n2(r),s=G0(a,i),c=G0(o,i),l=K0(s,a,e),u=K0(c,o,t);if(kBe(s,c)){var d=zBe(e,t,l,u);return U0(U0([e,l],H0(d),!1),[u,t],!1)}var f=J0([l,u]),p=q0(s,f),m=q0(c,f),h=[];h=h.concat(Y0(p)),h=h.concat(Y0(m));var g={x:(e.x+t.x)/2,y:(e.y+t.y)/2};[f,p,m].forEach(function(e){h=h.concat(NBe(e,g).filter(function(e){return X0(e,s)&&X0(e,c)}))}),[{x:l.x,y:u.y},{x:u.x,y:l.y}].forEach(function(e){X0(e,s)&&X0(e,c)&&h.push(e)}),h.unshift(l),h.push(u),h=W0(h);var _=LBe(h,l,u,a,o,e,t);return _.unshift(e),_.push(t),_.length>2&&(_=r2(_)),W0(_)},RBe=function(e){if(e.length===1){var t=H0(e,1)[0];return[t,t]}for(var n=e[0],r=e[1],i=R2(n.x,n.y,r.x,r.y),a=1;a<e.length-1;a++){var o=e[a],s=e[a+1],c=R2(o.x,o.y,s.x,s.y);c>i&&(i=c,n=o,r=s)}return[n,r]},a2=function(e,t,n){var r=z2(e,n),i=z2(t,n);return r&&i},o2=function(e,t,n){var r=z2(e,n),i=z2(t,n);return!(r&&i)&&(r||i)},s2=function(e,t,n){for(var r=void 0,i=Y0(B2(n)),a=0;a<i.length;a++)e2(e,t,i[a],i[(a+1)%i.length])&&(r=[i[a],i[(a+1)%i.length]]);if(r)return OBe(e,t,r[0],r[1])},c2=function(e,t){var n=void 0;return e.x===t.x?n=I0.VERTICAL:e.y===t.y&&(n=I0.HORIZONTAL),n},l2=function(e){var t=e.split(` `),n=[];return t&&t.forEach(function(e){var t=H0(e.split(`,`),2),r=t[0],i=t[1];n.push({x:Number(r),y:Number(i)})}),n},zBe=function(e,t,n,r){var i=[];if(c2(e,n)===c2(t,r))e.y===n.y?(i.push({x:n.x,y:(n.y+r.y)/2}),i.push({x:r.x,y:(n.y+r.y)/2})):(i.push({x:(n.x+r.x)/2,y:n.y}),i.push({x:(n.x+r.x)/2,y:r.y}));else{var a={x:n.x,y:r.y},o=z0(a,e,n),s=z0(a,t,r);if(o||s)a={x:r.x,y:n.y};else{var c=u2(a,e,n),l=u2(a,t,r);c&&l&&(a={x:r.x,y:n.y})}i.push(a)}return i},u2=function(e,t,n){return e.x===t.x&&e.x===n.x||e.y===t.y&&e.y===n.y},d2=function(e){if(!e)return 0;for(var t=0,n=0;n<e.length;n++){var r=e.charCodeAt(n);e.match(/[A-Z]/)?t+=1.5:t+=r>=1&&r<=126||r>=65376&&r<=65439?1:2}return t},BBe=function(e){var t=e.start,n=e.end,r;if(t.x===n.x&&t.y===n.y)r=``;else{var i={start:t,end:n,offset:10,verticalLength:5},a=B0(V0(V0({},i),{type:`start`})),o=B0(V0(V0({},i),{type:`end`}));r=`M${a.leftX} ${a.leftY}
L${a.rightX} ${a.rightY}
L${o.rightX} ${o.rightY}
L${o.leftX} ${o.leftY} z`}return{d:r,fill:`transparent`,stroke:`transparent`,strokeWidth:1,strokeDasharray:`4, 4`}},f2=function(e){var t=e.start,n=e.end,r=e.sourceNode,i=e.targetNode,a=e.offset,o=B2(r),s=B2(i),c=G0(o,a),l=G0(s,a);return{sNext:K0(c,o,t),ePre:K0(l,s,n)}},p2=function(e){var t=e.replace(/M/g,``).replace(/C/g,`,`).split(`,`);return[m2(t[0]),m2(t[1]),m2(t[2]),m2(t[3])]},m2=function(e){var t=H0(e.replace(/(^\s*)/g,``).split(` `),2),n=t[0],r=t[1];return{x:+n,y:+r}},h2=function(e,t){var n=H0(e,4),r=n[0],i=n[1],a=n[2],o=n[3];return[AVe(r,i,a,o,t),e[3]]},g2=function(e,t){for(var n=e.x,r=e.y,i=l2(t),a=2**53-1,o,s=[],c=0;c<i.length;c++)s.push({start:i[c],end:i[(c+1)%i.length]});if(s.forEach(function(e){var t=e.start,i=e.end;if(t.x===i.x){var s={x:t.x,y:r},c=z0(s,t,i);if(c){var l=Math.abs(t.x-n);l<a&&(a=l,o=s)}}else if(t.y===i.y){var s={x:n,y:t.y},c=z0(s,t,i);if(c){var l=Math.abs(t.y-r);l<a&&(a=l,o=s)}}}),!o){var l=s[0],u=l.start,d=l.end;o={x:u.x+(d.x-u.x)/2,y:u.y+(d.y-u.y)/2}}return o},VBe=function(e){return Io(e,[`id`,`type`,`sourceNodeId`,`sourceAnchorId`,`targetNodeId`,`targetAnchorId`,`pointsList`,`startPoint`,`endPoint`,`properties`])},_2=function(e,t){return Math.sqrt((e.x-t.x)**2+(e.y-t.y)**2)};function HBe(e,t){return typeof t==`function`?function(n,r,i){var a=t(n,r,i);return a?typeof a==`string`?Object.assign({},i,{type:a}):Object.assign({type:a},i):{type:e.edgeType}}:function(t,n,r){return Object.assign({type:e.edgeType},r)}}var UBe=function(e){var t=e.rows,n=e.rowsLength,r=e.fontSize,i=0;return lo(t,function(e){var t=d2(e);i=t>i?t:i}),{width:Math.ceil(i/2)*r+r/4,height:n*(r+2)+r/4}},v2=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},y2=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};function b2(e,t,n){return n&&t*Math.round(e/t)||e}function WBe(e,t,n){if(!e)return[];var r=Math.min.apply(Math,y2([],v2(e.map(function(e){return e[0]})),!1)),i=Math.max.apply(Math,y2([],v2(e.map(function(e){return e[0]})),!1)),a=Math.min.apply(Math,y2([],v2(e.map(function(e){return e[1]})),!1)),o=Math.max.apply(Math,y2([],v2(e.map(function(e){return e[1]})),!1)),s=-r,c=-a,l=e.map(function(e){var t=v2(e,2),n=t[0],r=t[1];return[n+s,r+c]}),u=i-r,d=o-a,f=t?t/u:1,p=n?n/d:1,m=Math.min(f,p);return l.map(function(e){var t=v2(e,2),n=t[0],r=t[1];return[n*m,r*m]})}var x2=function(e,t,n){var r=e.length;if(r<2||t<=0)return e.slice();for(var i=function(e,t){return{x:t.x-e.x,y:t.y-e.y}},a=function(e){return Math.hypot(e.x,e.y)},o=function(e){var t=a(e)||1;return{x:e.x/t,y:e.y/t}},s=[],c=function(e,n,r){var s=i(n,e),c=i(n,r),l=a(s),u=a(c);if(l<1e-6||u<1e-6)return[n];for(var d=o(s),f=o(c),p=Math.min(t,l*.45,u*.45),m={x:n.x+d.x*p,y:n.y+d.y*p},h={x:n.x+f.x*p,y:n.y+f.y*p},g=10,_=[m],v=1;v<g;v++){var y=v/g,b=1-y;_.push({x:b*b*m.x+2*b*y*n.x+y*y*h.x,y:b*b*m.y+2*b*y*n.y+y*y*h.y})}return _.push(h),_},l=0;l<r;l++){var u=l===0?n?r-1:0:l-1,d=l===r-1?n?0:r-1:l+1,f=e[u],p=e[l],m=e[d];!n&&(l===0||l===r-1)?s.push(p):c(f,p,m).forEach(function(e){return s.push(e)})}for(var h=[],l=0;l<s.length;l++){var g=s[l];(h.length===0||Math.hypot(g.x-h[h.length-1].x,g.y-h[h.length-1].y)>1e-6)&&h.push(g)}if(n&&h.length>1){var _=h[0],v=h[h.length-1];Math.hypot(_.x-v.x,_.y-v.y)<1e-6&&h.pop()}return h},S2=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},C2=function(e,t,n){var r=S2(e,2),i=r[0],a=r[1],o=S2(t,2),s=o[0],c=o[1],l=S2(n,2),u=l[0],d=l[1];return i>s&&i<u&&a>c&&a<d},w2=function(e,t){var n=t.multipleSelectKey,r=!1;switch(n){case`meta`:r=e.metaKey;break;case`alt`:r=e.altKey;break;case`shift`:r=e.shiftKey;break;case`ctrl`:r=e.ctrlKey;break;default:r=!1}return r},T2=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();function E2(e,t){return e instanceof O2&&t instanceof O2}var D2=function(e){T2(t,e);function t(n,r,i){var a=e.call(this,3)||this;return a[0]=n,a[1]=r,a[2]=i,a.x=n,a.y=r,a.z=i,Object.setPrototypeOf(a,t.prototype),a}return t.prototype.add=function(e){if(E2(this,e))return new O2(this.x+e.x,this.y+e.y);var t=this.z+e.z;return new k2((this.x+e.x)/t,(this.y+e.y)/t)},t.prototype.subtract=function(e){if(E2(this,e))return new O2(this.x-e.x,this.y-e.y);var t=this.z-e.z;return t===0?new O2(this.x-e.x,this.y-e.y):new k2((this.x-e.x)/t,(this.y-e.y)/t)},t}(Array),O2=function(e){T2(t,e);function t(n,r,i){var a=e.call(this,n,r,i??0)||this;return Object.setPrototypeOf(a,t.prototype),a}return t.prototype.toString=function(){return`Vector`},t.prototype.dot=function(e){var t=this;return e.reduce(function(e,n,r){return e+n*t[r]})},t.prototype.cross=function(e){return new t(this.y*e.z-this.z*e.y,this.z*e.x-this.x*e.z,this.x*e.y-this.y*e.x)},t.prototype.getLength=function(){return Math.hypot(this.x,this.y)},t.prototype.normalize=function(){var e=this.getLength();return new t(this.x/e,this.y/e)},t.prototype.crossZ=function(e){return this.x*e.y-this.y*e.x},t.prototype.angle=function(e){var t=this.crossZ(e),n=Math.acos(this.normalize().dot(e.normalize()));return t>=0?n:-n},t}(D2),k2=function(e){T2(t,e);function t(n,r){var i=e.call(this,n,r,1)||this;return Object.setPrototypeOf(i,t.prototype),i}return t.prototype.toString=function(){return`Point`},t}(D2),A2=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),j2=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},M2=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},N2=function(e){A2(t,e);function t(){var n=[...arguments],r=e.call(this,n.length)||this;return r.fill([,,,]),n.forEach(function(e,t){r[t]=e}),r.columns=n[0].length,r.rows=n.length,Object.setPrototypeOf(r,t.prototype),r}return t.prototype.getRow=function(e){return this[e]},t.prototype.getColumn=function(e){return M2([],j2(this.map(function(t){return t[e]})),!1)},t.prototype.transpose=function(){for(var e=[],n=0;n<this.columns;n++)e.push(this.getColumn(n));return new(t.bind.apply(t,M2([void 0],j2(e),!1)))},t.prototype.cross=function(e){var n=Array(this.rows).fill(``).map(function(){return[]});if(this.columns===e.rows)for(var r=0;r<this.rows;r++)for(var i=this.getRow(r),a=function(t){var a=e.getColumn(t);n[r][t]=i.reduce(function(e,t,n){return e+t*a[n]},0)},o=0;o<e.columns;o++)a(o);return new(t.bind.apply(t,M2([void 0],j2(n),!1)))},t.prototype.to2D=function(){return this.map(function(e){return[e[0],e[1]]})},t.prototype.toPoints=function(){return this.map(function(e){return new k2(e[0],e[1])})},t.prototype.toString=function(){var e=j2(this[0],2),t=e[0],n=e[1],r=j2(this[1],2),i=r[0],a=r[1],o=j2(this[2],2);return`matrix(${t} ${n} ${i} ${a} ${o[0]} ${o[1]})`},t.prototype.translate=function(e,t){return this.cross(new P2(e,t))},t.prototype.rotate=function(e){return this.cross(new GBe(e))},t.prototype.scale=function(e,t){return this.cross(new KBe(e,t))},t}(Array),GBe=function(e){A2(t,e);function t(n){var r=e.call(this,new O2(+Math.cos(n).toFixed(2),+Math.sin(n).toFixed(2),0),new O2(-Math.sin(n).toFixed(2),+Math.cos(n).toFixed(2),0),new O2(0,0,1))||this;return Object.setPrototypeOf(r,t.prototype),r}return t.prototype.inverse=function(){return this.transpose()},t}(N2),KBe=function(e){A2(t,e);function t(n,r){var i=e.call(this,new O2(n,0,0),new O2(0,r,0),new O2(0,0,1))||this;return i.sx=n,i.sy=r,Object.setPrototypeOf(i,t.prototype),i}return t.prototype.inverse=function(){return new t(1/this.sx,1/this.sy)},t}(N2),P2=function(e){A2(t,e);function t(n,r){var i=e.call(this,new O2(1,0,0),new O2(0,1,0),new O2(n,r,1))||this;return i.tx=n,i.ty=r,Object.setPrototypeOf(i,t.prototype),i}return t.prototype.inverse=function(){return new t(-this.tx,-this.ty)},t}(N2);Sze({isolateGlobalState:!0});var F2=function(){return F2=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},F2.apply(this,arguments)},qBe=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},I2=function(e){return e.anchors},L2=function(e,t){for(var n=t.nodes,r,i=n.length-1;i>=0;i--){var a=n[i];if(XBe(e,a)){var o=a.getTargetAnchor(e);if(o){var s={node:a,anchorIndex:o.index,anchor:o.anchor};(!r||JBe(a,r.node,t))&&(r=s)}}}return r},JBe=function(e,t,n){return e.zIndex>t.zIndex||n.nodesMap[e.id].index>n.nodesMap[t.id].index},YBe=function(e,t){for(var n=I2(t),r,i=2**53-1,a=0;a<n.length;a++){var o=R2(e.x,e.y,n[a].x,n[a].y);o<i&&(i=o,r={index:a,anchor:F2(F2({},n[a]),{x:n[a].x,y:n[a].y,id:n[a].id})})}return r},R2=function(e,t,n,r){return Math.hypot(e-n,t-r)},z2=function(e,t,n){n===void 0&&(n=0);var r=!1,i=B2(t),a=qBe(new N2([e.x,e.y,1]).translate(-t.x,-t.y).rotate(-t.rotate).translate(t.x,t.y)[0],2),o={x:a[0],y:a[1]};return o.x>=i.minX-n&&o.x<=i.maxX+n&&o.y>=i.minY-n&&o.y<=i.maxY+n&&(r=!0),r},XBe=function(e,t){return z2(e,t,5)},B2=function(e){var t=e.x,n=e.y,r=e.width,i=e.height;return{minX:t-r/2,minY:n-i/2,maxX:t+r/2,maxY:n+i/2,x:t,y:n,width:r,height:i,centerX:t,centerY:n}},ZBe=function(e){var t=e,n=t.x,r=t.y,i=t.width,a=t.height,o=t.radius;return[{x:n-i/2+o,y:r-a/2+o,r:o},{x:n+i/2-o,y:r-a/2+o,r:o},{x:n-i/2+o,y:r+a/2-o,r:o},{x:n+i/2-o,y:r+a/2-o,r:o}]},V2=function(e,t,n){var r=ZBe(n),i,a=2**53-1;if(r.forEach(function(n){if(t===I0.HORIZONTAL?Math.abs(e.y-n.y)<=n.r:t===I0.VERTICAL&&Math.abs(e.x-n.x)<=n.r){var r=R2(e.x,e.y,n.x,n.y);r<a&&(a=r,i=n)}}),i)return H2(e,t,i);var o=n.x,s=n.y,c=n.width,l=n.height;return t===I0.HORIZONTAL?{x:e.x<=o?o-c/2:o+c/2,y:e.y}:t===I0.VERTICAL?{x:e.x,y:e.y<=s?s-l/2:s+l/2}:e},H2=function(e,t,n){var r,i=n.x,a=n.y,o=n.r;if(t===I0.HORIZONTAL){var s=i-Math.sqrt(o*o-(e.y-a)*(e.y-a)),c=i+Math.sqrt(o*o-(e.y-a)*(e.y-a));r={x:Math.abs(s-e.x)<Math.abs(c-e.x)?s:c,y:e.y}}else if(t===I0.VERTICAL){var l=a-Math.sqrt(o*o-(e.x-i)*(e.x-i)),u=a+Math.sqrt(o*o-(e.x-i)*(e.x-i)),d=Math.abs(l-e.y)<Math.abs(u-e.y)?l:u;r={x:e.x,y:d}}return r},U2=function(e,t){var n=t,r=!1,i=n.x,a=n.y,o=n.width,s=n.height,c=n.radius,l={minX:i-o/2+c,maxX:i+o/2-c,minY:a-s/2+c,maxY:a+s/2-c};return e.y===a+s/2||e.y===a-s/2?r=e.x>l.minX&&e.x<l.maxX:(e.x===i+o/2||e.x===i-o/2)&&(r=e.y>l.minY&&e.y<l.maxY),r},W2=function(e,t,n){var r,i=n,a=i.x,o=i.y,s=i.rx,c=i.ry;if(t===I0.HORIZONTAL){var l=a-Math.sqrt(s*s-(e.y-o)*(e.y-o)*s*s/(c*c)),u=a+Math.sqrt(s*s-(e.y-o)*(e.y-o)*s*s/(c*c));r={x:Math.abs(l-e.x)<Math.abs(u-e.x)?l:u,y:e.y}}else if(t===I0.VERTICAL){var d=o-Math.sqrt(c*c-(e.x-a)*(e.x-a)*c*c/(s*s)),f=o+Math.sqrt(c*c-(e.x-a)*(e.x-a)*c*c/(s*s)),p=Math.abs(d-e.y)<Math.abs(f-e.y)?d:f;r={x:e.x,y:p}}return r},G2=function(e,t,n){for(var r=n.pointsPosition,i=2**53-1,a,o=[],s=0;s<r.length;s++)o.push({start:r[s],end:r[(s+1)%r.length]});return o.forEach(function(n){var r=n.start,o=n.end,s=r,c=o;r.x>o.x&&(s=o,c=r);var l={x:e.x,y:e.y};if(s.x===c.x&&t===I0.HORIZONTAL&&(l={x:s.x,y:e.y}),s.y===c.y&&t===I0.VERTICAL&&(l={x:e.x,y:s.y}),s.x!==c.x&&s.y!==c.y){var u=(c.y-s.y)/(c.x-s.x),d=(s.x*c.y-c.x*s.y)/(s.x-c.x);t===I0.HORIZONTAL?l={x:(e.y-d)/u,y:e.y}:t===I0.VERTICAL&&(l={x:e.x,y:u*e.x+d})}if(z0(l,r,o)){var f=R2(l.x,l.y,e.x,e.y);f<i&&(i=f,a=l)}}),a},QBe=function(e){return Io(e,[`id`,`type`,`x`,`y`,`text`,`label`,`properties`,`virtual`,`rotate`,`resizable`,`rotatable`])},K2=function(e,t,n,r){var i=e.x,a=e.y;return t.x>e.x?i=e.x+n/2:t.x<e.x&&(i=e.x-n/2),t.y>e.y?a=e.y+r/2:t.y<e.y&&(a=e.y-r/2),{x:i,y:a}},q2=function(e){var t=e.rows,n=e.style,r=e.rowsLength,i=e.className,a=document.createElement(`div`);a.className=i,a.style.fontSize=`${n.fontSize}`,a.style.width=`${n.width}`,a.style.lineHeight=`${n.lineHeight}`,a.style.padding=`${n.padding}`,n.fontFamily&&(a.style.fontFamily=`${n.fontFamily}`),r>1?t.forEach(function(e){var t=document.createElement(`div`);t.textContent=e,a.appendChild(t)}):a.textContent=t[0],document.body.appendChild(a);var o=a.clientHeight;return document.body.removeChild(a),o},J2=function(e){var t=e.rows,n=e.rowsLength,r=e.fontSize,i=0;return t&&t.forEach(function(e){var t=d2(e);i=t>i?t:i}),{width:Math.ceil(i/2)*r+r/4,height:n*(r+2)+r/4}},Y2=function(e){return typeof e==`object`?e:{isAllPass:!!e,msg:e?``:`不允许连接`}},X2=[];for(let e=0;e<256;++e)X2.push((e+256).toString(16).slice(1));function $Be(e,t=0){return(X2[e[t+0]]+X2[e[t+1]]+X2[e[t+2]]+X2[e[t+3]]+`-`+X2[e[t+4]]+X2[e[t+5]]+`-`+X2[e[t+6]]+X2[e[t+7]]+`-`+X2[e[t+8]]+X2[e[t+9]]+`-`+X2[e[t+10]]+X2[e[t+11]]+X2[e[t+12]]+X2[e[t+13]]+X2[e[t+14]]+X2[e[t+15]]).toLowerCase()}var eVe=new Uint8Array(16);function tVe(){return crypto.getRandomValues(eVe)}function nVe(e,t,n){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():rVe(e,t,n)}function rVe(e,t,n){e||={};let r=e.random??e.rng?.()??tVe();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return $Be(r)}var Z2=function(){return nVe()},Q2=new Map,$2=function(e){var t=Z2();function n(){if(e(),Q2.get(t)){var r=window.requestAnimationFrame(n);Q2.set(t,r)}}var r=window.requestAnimationFrame(n);return Q2.set(t,r),t},e4=function(e){var t=Q2.get(e);t&&(window.cancelAnimationFrame(t),Q2.delete(e))},t4=function(){return t4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t4.apply(this,arguments)},iVe=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};function n4(e){var t=e.x,n=t===void 0?0:t,r=e.y,i=r===void 0?0:r,a=e.value,o=e.fontSize,s=o===void 0?12:o,c=e.fill,l=c===void 0?`currentColor`:c,u=e.overflowMode,d=u===void 0?`default`:u,f=e.textWidth,p=f===void 0?void 0:f,m=e.model,h={x:n,y:i,fill:l,fontSize:s,textAnchor:`middle`,dominantBaseline:`central`};if(lo(fo(e),function(e){var t=iVe(e,2),n=t[0],r=t[1];typeof r!=`object`&&(h[n]=r)}),a){var g=String(a).split(/[\r\n]/g),_=g.length;if(d!=="default"){var v=m.BaseType,y=m.modelType;if(v===M0.NODE&&y!==N0.TEXT_NODE||v===M0.EDGE&&p)return aVe(e)}if(_>1){var b=g.map(function(e,t){var r=s+2;return S0(`tspan`,{className:`lf-text-tspan`,x:n,y:i+(t-(_-1)/2)*r,children:e})});return S0(`text`,t4({},h,{children:b}))}return S0(`text`,t4({},h,{children:a}))}return null}function aVe(e){var t=e.x,n=e.y,r=e.value,i=e.model,a=e.textWidth,o=e.fontSize,s=o===void 0?12:o,c=e.lineHeight,l=e.fontFamily,u=l===void 0?``:l,d=e.wrapPadding,f=d===void 0?`0, 0`:d,p=e.overflowMode,m=i.width,h=i.height,g=i.textHeight,_=a||m,v=String(r).split(/[\r\n]/g),y=v.length,b=q2({rows:v,style:{fontSize:`${s}px`,width:`${_}px`,fontFamily:u,lineHeight:c,padding:f},rowsLength:y,className:`lf-get-text-height`}),x=h>b?h:b;g&&(x=g);var S=p===`ellipsis`;return S&&(x=s+2),S0(`g`,{children:S0(`foreignObject`,{width:_,height:x,x:t-_/2,y:n-x/2,style:{overflow:`visible`,textAlign:`left`},children:S0(`div`,{className:`lf-node-text-auto-wrap`,style:{minHeight:x,width:_,padding:f},children:S0(`div`,{className:S?`lf-node-text-ellipsis-content`:`lf-node-text-auto-wrap-content`,title:S?v.join(``):``,style:t4({},e),children:v.map(function(e){return S0(`div`,{className:`lf-node-text--auto-wrap-inner`,children:e})})})})})})}var r4=function(){return r4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r4.apply(this,arguments)},oVe=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};function i4(e){var t={x1:10,y1:10,x2:20,y2:20,stroke:`black`};return lo(fo(e),function(e){var n=oVe(e,2),r=n[0],i=n[1];(r===`style`||typeof i!=`object`)&&(t[r]=i)}),S0(`line`,r4({},t))}var a4=function(){return a4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a4.apply(this,arguments)},sVe=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};function o4(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=e.className,o=e.strokeWidth,s=e.radius,c=s===void 0?0:s,l=t-r/2,u=n-i/2,d={};return d[`stroke-width`]=o,lo(fo(e),function(e){var t=sVe(e,2),n=t[0],r=t[1];typeof r!=`object`&&(d[n]=r)}),d.className=a?`lf-basic-shape ${a}`:`lf-basic-shape`,c&&(d.rx=c,d.ry=c),d.x=l,d.y=u,S0(`rect`,a4({},d))}var s4=function(){return s4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s4.apply(this,arguments)},cVe=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};function c4(e){var t={d:``};return lo(fo(e),function(e){var n=cVe(e,2),r=n[0],i=n[1];(r===`style`||typeof i!=`object`)&&(t[r]=i)}),S0(`path`,s4({},t))}var l4=function(){return l4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},l4.apply(this,arguments)},lVe=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};function u4(e){var t=e.x,n=t===void 0?0:t,r=e.y,i=r===void 0?0:r,a=e.r,o=a===void 0?4:a,s=e.className,c={cx:n,cy:i,r:o,fill:`transparent`,fillOpacity:1,strokeWidth:1,stroke:`#000`,strokeOpacity:1};return lo(fo(e),function(e){var t=lVe(e,2),n=t[0],r=t[1];typeof r!=`object`&&(c[n]=r)}),c.className=s?`lf-basic-shape ${s}`:`lf-basic-shape`,S0(`circle`,l4({},c))}var d4=function(){return d4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},d4.apply(this,arguments)},uVe=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};function dVe(e){var t=e.x,n=t===void 0?0:t,r=e.y,i=r===void 0?0:r,a=e.rx,o=a===void 0?4:a,s=e.ry,c=s===void 0?4:s,l=e.className,u={cx:n,cy:i,rx:o,ry:c,fill:`transparent`,fillOpacity:1,strokeWidth:1,stroke:`#000`,strokeOpacity:1};return lo(fo(e),function(e){var t=uVe(e,2),n=t[0],r=t[1];typeof r!=`object`&&(u[n]=r)}),u.className=l?`lf-basic-shape ${l}`:`lf-basic-shape`,S0(`ellipse`,d4({},u))}var f4=function(){return f4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},f4.apply(this,arguments)},fVe=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};function p4(e){var t=e.points,n=t===void 0?[]:t,r=e.className,i=e.radius,a={fill:`transparent`,fillOpacity:1,strokeWidth:1,stroke:`#000`,strokeOpacity:1,points:``};if(lo(fo(e),function(e){var t=fVe(e,2),n=t[0],r=t[1];typeof r!=`object`&&(a[n]=r)}),a.className=r?`lf-basic-shape ${r}`:`lf-basic-shape`,i){var o=x2(n.map(function(e){return{x:e[0],y:e[1]}}),i,!0);return a.d=o.length?`M ${o[0].x} ${o[0].y} ${o.slice(1).map(function(e){return`L ${e.x} ${e.y}`}).join(` `)} Z`:``,delete a.points,S0(`path`,f4({},a))}return a.points=n.map(function(e){return e.join(`,`)}).join(` `),S0(`polygon`,f4({},a))}var m4=function(){return m4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},m4.apply(this,arguments)},pVe=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a};function mVe(e){var t=e.className,n={points:``,fill:`none`};return lo(fo(e),function(e){var t=pVe(e,2),r=t[0],i=t[1];(r===`style`||typeof i!=`object`)&&(n[r]=i)}),t&&(n.className=`${t}`),S0(`polyline`,m4({},n))}var h4=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),g4=function(){return g4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},g4.apply(this,arguments)},hVe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},gVe=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},_4;(function(e){e[e.LEFT_TOP=0]=`LEFT_TOP`,e[e.RIGHT_TOP=1]=`RIGHT_TOP`,e[e.RIGHT_BOTTOM=2]=`RIGHT_BOTTOM`,e[e.LEFT_BOTTOM=3]=`LEFT_BOTTOM`})(_4||={});var _Ve=function(e){h4(t,e);function t(t){var n=e.call(this)||this;n.isShiftPressed=!1,n.bindKeyboardEvents=function(){document.addEventListener(`keydown`,n.handleKeyDown),document.addEventListener(`keyup`,n.handleKeyUp)},n.handleKeyDown=function(e){e.key===`Shift`&&(n.isShiftPressed=!0)},n.handleKeyUp=function(e){e.key===`Shift`&&(n.isShiftPressed=!1)},n.updateEdgePointByAnchors=function(){var e=n.nodeModel,t=e.id,r=e.anchors;lo(n.graphModel.getNodeEdges(t),function(e){if(e.sourceNodeId===t){var n=go(r,function(t){return t.id===e.sourceAnchorId});n&&e.updateStartPoint({x:n.x,y:n.y})}else if(e.targetNodeId===t){var n=go(r,function(t){return t.id===e.targetAnchorId});n&&e.updateEndPoint({x:n.x,y:n.y})}})},n.triggerResizeEvent=function(e,t,r,i,a,o){n.graphModel.eventCenter.emit(P0.NODE_RESIZE,{preData:e,data:t,deltaX:r,deltaY:i,index:a,model:o})},n.recalcResizeInfo=function(e,t,n,r,i){n===void 0&&(n=1),r===void 0&&(r=!1),i===void 0&&(i=!1);var a=Va(t),o=a.deltaX,s=a.deltaY,c=a.width,l=a.height,u=a.PCTResizeInfo;if(u){var d=4,f=0,p=0;switch(e){case _4.LEFT_TOP:p=(o*-1-s)/d;break;case _4.RIGHT_TOP:p=(o-s)/d;break;case _4.RIGHT_BOTTOM:p=(o+s)/d;break;case _4.LEFT_BOTTOM:p=(o*-1+s)/d}p!==0&&(f=Math.round(p/u.ResizeBasis.basisHeight*1e5)/1e3),u.ResizePCT.widthPCT=Math.max(Math.min(u.ResizePCT.widthPCT+f,u.ScaleLimit.maxScaleLimit),u.ScaleLimit.minScaleLimit),u.ResizePCT.heightPCT=Math.max(Math.min(u.ResizePCT.heightPCT+f,u.ScaleLimit.maxScaleLimit),u.ScaleLimit.minScaleLimit);var m=Math.round(u.ResizePCT.widthPCT*u.ResizeBasis.basisWidth/100),h=Math.round(u.ResizePCT.heightPCT*u.ResizeBasis.basisHeight/100);switch(e){case _4.LEFT_TOP:o=c-m,s=l-h;break;case _4.RIGHT_TOP:o=m-c,s=l-h;break;case _4.RIGHT_BOTTOM:o=m-c,s=h-l;break;case _4.LEFT_BOTTOM:o=c-m,s=h-l}return a}switch(e){case _4.LEFT_TOP:a.width=r?c:c-o*n,a.height=i?l:l-s*n;break;case _4.RIGHT_TOP:a.width=r?c:c+o*n,a.height=i?l:l-s*n;break;case _4.RIGHT_BOTTOM:a.width=r?c:c+o*n,a.height=i?l:l+s*n;break;case _4.LEFT_BOTTOM:a.width=r?c:c-o*n,a.height=i?l:l+s*n}return a},n.resizeNode=function(e){var t=e.deltaX,r=e.deltaY,i=n.index,a=n.props,o=a.model,s=a.graphModel,c=a.x,l=a.y;DVe({x:c,y:l,deltaX:t,deltaY:r,index:i,nodeModel:o,graphModel:s,forceProportional:n.isShiftPressed,cancelCallback:function(){n.dragHandler.cancelDrag()}})},n.onDragStart=function(){n.graphModel.selectNodeById(n.nodeModel.id)},n.onDragging=function(e){var t=e.deltaX,r=e.deltaY,i=n.graphModel.transformModel,a=gVe(i.fixDeltaXY(t,r),2),o=a[0],s=a[1];n.resizeNode({deltaX:o,deltaY:s})},n.onDragEnd=function(){var e=n.nodeModel.x,t=n.nodeModel.y;n.nodeModel.moveTo(e,t),n.updateEdgePointByAnchors()},n.onPointerDown=function(e){e.stopPropagation(),n.dragHandler.handleMouseDown(e)};var r=t.index,i=t.model,a=t.graphModel;return n.index=r,n.nodeModel=i,n.graphModel=a,n.dragHandler=new R0({onDragStart:n.onDragStart,onDragging:n.onDragging,onDragEnd:n.onDragEnd,step:a.gridSize}),n.bindKeyboardEvents(),n}return t.prototype.componentWillUnmount=function(){this.dragHandler.destroy(),document.removeEventListener(`keydown`,this.handleKeyDown),document.removeEventListener(`keyup`,this.handleKeyUp)},t.prototype.getViewPosition=function(e,t,n){var r=this.props.model.getResizeControlStyle(),i=r.width,a=i===void 0?8:i,o=r.height,s=o===void 0?8:o;switch(e){case`nw`:return{x:t-a/2,y:n-s/2};case`ne`:return{x:t+a/2,y:n-s/2};case`se`:return{x:t+a/2,y:n+s/2};case`sw`:return{x:t-a/2,y:n+s/2};default:return{x:t,y:n}}},t.prototype.render=function(){var e=this.props,t=e.x,n=e.y,r=e.direction,i=e.model.getResizeControlStyle(),a=i.width,o=i.height,s=hVe(i,[`width`,`height`]),c=this.getViewPosition(r,t,n),l=c.x,u=c.y;return S0(`g`,{className:`lf-resize-control lf-resize-control-${r}`,children:[S0(o4,g4({className:`lf-resize-control-content`,x:l,y:u,width:a??7,height:o??7},s)),S0(o4,{className:`lf-resize-control-content`,x:l,y:u,width:a?a+5:25,height:a?a+5:25,fill:`transparent`,stroke:`transparent`,onPointerDown:this.onPointerDown})]})},t}(WZ),vVe=function(e){h4(t,e);function t(){return e.call(this)||this}return t.prototype.getResizeControl=function(){var e=this.props,t=e.model,n=e.graphModel,r=B2(t),i=r.minX,a=r.minY,o=r.maxX,s=r.maxY;return vo([{index:_4.LEFT_TOP,direction:`nw`,x:i,y:a},{index:_4.RIGHT_TOP,direction:`ne`,x:o,y:a},{index:_4.RIGHT_BOTTOM,direction:`se`,x:o,y:s},{index:_4.LEFT_BOTTOM,direction:`sw`,x:i,y:s}],function(e){return S0(_Ve,g4({},e,{model:t,graphModel:n}))})},t.prototype.getResizeOutline=function(){var e=this.props.model,t=e.x,n=e.y,r=e.width,i=e.height,a=e.getResizeOutlineStyle();return S0(o4,g4({},a,{"pointer-events":`none`,x:t,y:n,width:r+10,height:i+10}))},t.prototype.render=function(){return S0(`g`,{className:`lf-resize-control-group`,children:[this.getResizeOutline(),this.getResizeControl()]})},t}(WZ);function yVe(e,t){var n=e.x,r=e.y,i=t.x,a=t.y;return{x:n+(i-n)/2,y:r+(a-r)/2}}function v4(e,t,n){var r=bVe(n),i=e.x-t.x,a=e.y-t.y;return{x:i*Math.cos(r)-a*Math.sin(r)+t.x,y:i*Math.sin(r)+a*Math.cos(r)+t.y}}function bVe(e){return e*Math.PI/180}function xVe(e){return e/Math.PI*180}function SVe(e,t,n,r,i,a,o,s){i===void 0&&(i=!1),a===void 0&&(a=!1);var c={x:n.x-(e.x-n.x),y:n.y-(e.y-n.y)},l=yVe(c,t),u=v4(t,l,-r),d=v4(c,l,-r);if(i){var f=Math.abs(u.x-d.x)-o;l.x>u.x?l.x+=f/2:l.x-=f/2}if(a){var p=Math.abs(u.y-d.y)-s;l.y>u.y?l.y+=p/2:l.y-=p/2}if(i||a){var m=v4(d,l,r),h=m.x-c.x,g=m.y-c.y;l.x-=h,l.y-=g,d=v4(c,l,-r),u={x:l.x-(d.x-l.x),y:l.y-(d.y-l.y)}}var _=Math.abs(u.x-d.x),v=Math.abs(u.y-d.y);return i&&(_=o),a&&(v=s),{width:_,height:v,center:l}}function CVe(e,t,n,r,i,a,o,s,c){s===void 0&&(s=!1),c===void 0&&(c=!1);var l=t.deltaX,u=t.deltaY,d=t.width,f=t.height,p=xVe(n),m={x:r,y:i},h={x:a,y:o},g=v4(m,h,p),_=SVe(g,{x:g.x+l,y:g.y+u},h,p,s,c,d,f),v=_.width,y=_.height,b=_.center;return t.width=v*e,t.height=y*e,t.deltaX=(b.x-h.x)*2,t.deltaY=(b.y-h.y)*2,t}var wVe=function(e,t,n,r,i,a,o,s,c,l,u){n===void 0&&(n=1),r===void 0&&(r=!1),i===void 0&&(i=!1),a===void 0&&(a=0),u===void 0&&(u=!1);var d=Va(t),f=d.deltaX,p=d.deltaY,m=d.width,h=d.height,g=d.PCTResizeInfo;if(g){var _=4,v=0,y=0;switch(e){case _4.LEFT_TOP:y=(f*-1-p)/_;break;case _4.RIGHT_TOP:y=(f-p)/_;break;case _4.RIGHT_BOTTOM:y=(f+p)/_;break;case _4.LEFT_BOTTOM:y=(f*-1+p)/_}y!==0&&(v=Math.round(y/g.ResizeBasis.basisHeight*1e5)/1e3),g.ResizePCT.widthPCT=Math.max(Math.min(g.ResizePCT.widthPCT+v,g.ScaleLimit.maxScaleLimit),g.ScaleLimit.minScaleLimit),g.ResizePCT.heightPCT=Math.max(Math.min(g.ResizePCT.heightPCT+v,g.ScaleLimit.maxScaleLimit),g.ScaleLimit.minScaleLimit);var b=Math.round(g.ResizePCT.widthPCT*g.ResizeBasis.basisWidth/100),x=Math.round(g.ResizePCT.heightPCT*g.ResizeBasis.basisHeight/100);switch(e){case _4.LEFT_TOP:f=m-b,p=h-x;break;case _4.RIGHT_TOP:f=b-m,p=h-x;break;case _4.RIGHT_BOTTOM:f=b-m,p=x-h;break;case _4.LEFT_BOTTOM:f=m-b,p=x-h}return d}if(a%(2*Math.PI)!=0&&o!==void 0&&s!==void 0)return CVe(n,d,a,o,s,c,l,r,i);if(u){var S=m/h,C=0,w=m,T=h;switch(e){case _4.LEFT_TOP:C=Math.abs(f)>Math.abs(p)?-f:-p,S>=1?(w=m+C,T=w/S):(T=h+C,w=T*S),d.width=w,d.height=T,d.deltaX=m-w,d.deltaY=h-T;break;case _4.RIGHT_TOP:C=Math.abs(f)>Math.abs(p)?f:-p,S>=1?(w=m+C,T=w/S):(T=h-C,w=T*S),d.width=w,d.height=T,d.deltaX=w-m,d.deltaY=h-T;break;case _4.RIGHT_BOTTOM:C=Math.abs(f)>Math.abs(p)?f:p,S>=1?(w=m+C,T=w/S):(T=h+C,w=T*S),d.width=w,d.height=T,d.deltaX=w-m,d.deltaY=T-h;break;case _4.LEFT_BOTTOM:C=Math.abs(f)>Math.abs(p)?-f:p,S>=1?(w=m-C,T=w/S):(T=h+C,w=T*S),d.width=w,d.height=T,d.deltaX=m-w,d.deltaY=T-h}return d}switch(e){case _4.LEFT_TOP:d.width=r?m:m-f*n,d.height=i?h:h-p*n;break;case _4.RIGHT_TOP:d.width=r?m:m+f*n,d.height=i?h:h-p*n;break;case _4.RIGHT_BOTTOM:d.width=r?m:m+f*n,d.height=i?h:h+p*n;break;case _4.LEFT_BOTTOM:d.width=r?m:m-f*n,d.height=i?h:h+p*n}return d},TVe=function(e,t){var n=e.id,r=e.anchors;lo(t.getNodeEdges(n),function(e){if(e.sourceNodeId===n){var t=go(r,function(t){return t.id===e.sourceAnchorId});t&&e.updateStartPoint({x:t.x,y:t.y})}else if(e.targetNodeId===n){var t=go(r,function(t){return t.id===e.targetAnchorId});t&&e.updateEndPoint({x:t.x,y:t.y})}})},EVe=function(e,t,n,r,i,a,o){o.eventCenter.emit(P0.NODE_RESIZE,{preData:e,data:t,deltaX:n,deltaY:r,index:i,model:a})},DVe=function(e){var t=e.x,n=e.y,r=e.deltaX,i=e.deltaY,a=e.index,o=e.nodeModel,s=e.graphModel,c=e.cancelCallback,l=e.forceProportional,u=l!==void 0&&l,d=o.r,f=o.rx,p=o.ry,m=o.width,h=o.height,g=o.PCTResizeInfo,_=o.minWidth,v=o.minHeight,y=o.maxWidth,b=o.maxHeight,x=o.rotate,S=o.x,C=o.y,w=_===y,T=v===b,E={width:d||f||m,height:d||p||h,deltaX:r,deltaY:i,PCTResizeInfo:g},D=d||f&&p?1/2:1,O=t,k=n,A=wVe(a,E,D,w,T,x,O,k,S,C,u);if(A.width<_||A.width>y||A.height<v||A.height>b)c?.();else{(x%(2*Math.PI)==0||g||O===void 0||k===void 0)&&(A.deltaX=w?0:A.deltaX,A.deltaY=T?0:A.deltaY);var j=o.getData(),ee=o.resize(A);(j.x!==ee.x||j.y!==ee.y)&&(TVe(o,s),EVe(j,ee,r,i,a,o,s))}},OVe=100,kVe={x:1,y:0,z:0};function AVe(e,t,n,r,i){for(var a=function(i){if(i<0||i>1)throw RangeError(`The value range of parameter "t" is [0,1]`);return{x:e.x*(1-i)**3+3*t.x*i*(1-i)**2+3*n.x*i**2*(1-i)+r.x*i**3,y:e.y*(1-i)**3+3*t.y*i*(1-i)**2+3*n.y*i**2*(1-i)+r.y*i**3}},o=0,s=2,c=r.x,l=r.y,u=r;o<i&&s<50;){u=a(1-s/OVe);var d=u.x,f=u.y;o=R2(c,l,d,f),s++}return u}function jVe(e,t){return e.x*t.y-e.y*t.x}function MVe(e,t){var n=[e.x,e.y,e.z];return[t.x,t.y,t.z].reduce(function(e,t,r){return e+t*n[r]})}function NVe(e,t){var n=jVe(e,t),r=Math.acos(MVe(y4(e),y4(t)));return n>=0?r:-r}function y4(e){var t=Math.hypot(e.x,e.y);return{x:e.x/t,y:e.y/t,z:0}}function PVe(e){return NVe(kVe,e)}function FVe(e){return 180/Math.PI*e}var b4=function(e,t){var n=Va(E0[t||`default`])||Va(E0.default);return e&&(n=ge(n,e)),n},IVe=function(e,t){E0[e]||(E0[e]=t,O0[e]=t.background||D0,A0[e]=t.grid||k0)},LVe=function(e){delete E0[e],delete O0[e],delete A0[e]},RVe=function(){var e={colorful:{},dark:{},retro:{},default:{}};ua(E0,e),ua(O0,e),ua(A0,e)},zVe=b4,BVe=1e3,VVe=999,x4=function(){return++BVe},HVe=function(){return--VVe},S4=function(){return S4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},S4.apply(this,arguments)},C4=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},w4=function(){function e(e,t){this.BaseType=M0.EDGE,this.id=``,this.type=``,this.sourceNodeId=``,this.targetNodeId=``,this.textMode=L0.TEXT,this.text={value:``,x:0,y:0,draggable:!1,editable:!0},this.points=``,this.pointsList=[],this.virtual=!1,this.isSelected=!1,this.isHovered=!1,this.isHitable=!0,this.isHittable=!0,this.draggable=!0,this.visible=!0,this.isAnimation=!1,this.isShowAdjustPoint=!1,this.zIndex=0,this.state=j0.DEFAULT,this.modelType=N0.EDGE,this.customTextPosition=!1,this.style={},this.arrowConfig={markerEnd:`url(#marker-end-${this.id})`,markerStart:`url(#marker-start-${this.id})`},this.graphModel=t,this.properties=e.properties??{},this.initEdgeData(e),this.setAttributes()}return e.prototype.initEdgeData=function(e){var t=this;if(e.properties||={},!e.id){var n=this.graphModel.idGenerator,r=n&&n(e.type);e.id=this.createId()||r||Z2()}this.arrowConfig.markerEnd=`url(#marker-end-${e.id})`,this.arrowConfig.markerStart=`url(#marker-start-${e.id})`;var i=this.graphModel.editConfigModel.adjustEdgeStartAndEnd;this.isShowAdjustPoint=i,ua(this,VBe(e));var a=this.graphModel,o=a.overlapMode,s=a.eventCenter;this.updateZIndexByOverlap(o,e.zIndex||x4()),this.setAnchors(),this.initPoints(),this.formatText(e),s.on(`overlap:change`,function(e){var n=e.overlapMode;t.updateZIndexByOverlap(n,t.zIndex||x4())})},e.prototype.setAttributes=function(){},e.prototype.createId=function(){return null},e.prototype.getEdgeStyle=function(){return S4(S4({},this.graphModel.theme.baseEdge),this.style)},e.prototype.getAdjustPointStyle=function(){return S4({},this.graphModel.theme.edgeAdjust)},e.prototype.getTextStyle=function(){var e=this.graphModel.theme.edgeText;return Va(e)},e.prototype.getEdgeAnimationStyle=function(){var e=this.graphModel.theme.edgeAnimation;return Va(e)},e.prototype.getArrowStyle=function(){var e=this.getEdgeStyle(),t=this.getEdgeAnimationStyle(),n=this.graphModel.theme.arrow,r=this.isAnimation?t.stroke:e.stroke;return S4(S4(S4({},e),{fill:r,stroke:r}),n)},e.prototype.getOutlineStyle=function(){var e=this.graphModel.theme.edgeOutline,t=S4({},e);if(this.isHovered){var n=e.hover||{};t=S4(S4({},t),n)}return Va(t)},e.prototype.getTextPosition=function(){return{x:0,y:0}},Object.defineProperty(e.prototype,"sourceNode",{get:function(){return this.graphModel?.nodesMap[this.sourceNodeId]?.model},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"targetNode",{get:function(){return this.graphModel?.nodesMap[this.targetNodeId]?.model},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textPosition",{get:function(){return this.getTextPosition()},enumerable:!1,configurable:!0}),e.prototype.getBeginAnchor=function(e,t,n){var r,i,a=I2(e);return n&&(r=go(a,function(e){return e.id===n}),r)||a.forEach(function(e){var n=_2(e,t);(i===void 0||n<i)&&(i=n,r=e)}),r},e.prototype.getEndAnchor=function(e,t){var n=this,r,i,a=I2(e);return t&&(r=go(a,function(e){return e.id===t}),r)||a.forEach(function(e){if(n.startPoint){var t=_2(e,n.startPoint);(i===void 0||t<i)&&(i=t,r=e)}}),r},e.prototype.getProperties=function(){return t1(this.properties)},e.prototype.getData=function(){var e=this.properties;Y$(e)&&(e=t1(e));var t={id:this.id,type:this.type,properties:e,sourceNodeId:this.sourceNodeId,targetNodeId:this.targetNodeId,sourceAnchorId:this.sourceAnchorId,targetAnchorId:this.targetAnchorId,startPoint:ua({},this.startPoint),endPoint:ua({},this.endPoint)};[F0.INCREASE,F0.STATIC].includes(this.graphModel.overlapMode)&&(t.zIndex=this.zIndex);var n=this.text,r=n.x,i=n.y,a=n.value;return a&&(t.text={x:r,y:i,value:a}),t},e.prototype.getHistoryData=function(){return this.getData()},e.prototype.setProperty=function(e,t){Z$(this.properties,e,T0(t)),this.setAttributes()},e.prototype.deleteProperty=function(e){delete this.properties[e],this.setAttributes()},e.prototype.setProperties=function(e){this.properties=S4(S4({},t1(this.properties)),T0(e)),this.setAttributes()},e.prototype.changeEdgeId=function(e){var t=this.arrowConfig,n=t.markerEnd,r=t.markerStart;r&&r===`url(#marker-start-${this.id})`&&(this.arrowConfig.markerStart=`url(#marker-start-${e})`),n&&n===`url(#marker-end-${this.id})`&&(this.arrowConfig.markerEnd=`url(#marker-end-${e})`),this.id=e},e.prototype.setStyle=function(e,t){var n;this.style=S4(S4({},this.style),(n={},n[e]=T0(t),n))},e.prototype.setStyles=function(e){this.style=S4(S4({},this.style),T0(e))},e.prototype.updateStyles=function(e){this.style=S4({},T0(e))},e.prototype.setTextMode=function(e){this.textMode=e},e.prototype.formatText=function(e){var t=this.graphModel.editConfigModel,n=t.edgeTextDraggable,r=t.edgeTextEdit,i=this.textPosition,a=i.x,o=i.y,s=e.text,c={value:``,x:a,y:o,draggable:n,editable:r};s&&(typeof s==`string`?c=S4(S4({},c),{value:s}):(c=S4(S4({},c),{x:s.x??a,y:s.y??o,value:s.value??``}),Po(s.draggable)||(c.draggable=s.draggable),Po(s.editable)||(c.editable=s.editable))),this.text=c},e.prototype.resetTextPosition=function(){var e=this.textPosition,t=e.x,n=e.y;this.text.x=t,this.text.y=n},e.prototype.moveText=function(e,t){var n=this.text,r=n.x,i=n.y,a=n.value,o=n.draggable,s=n.editable;this.text={value:a,editable:s,draggable:o,x:r+e,y:i+t}},e.prototype.setText=function(e){e&&ua(this.text,e)},e.prototype.updateText=function(e){this.text=S4(S4({},t1(this.text)),{value:e})},e.prototype.setAnchors=function(){if(!this.sourceAnchorId||!this.startPoint){var e=this.getBeginAnchor(this.sourceNode,this.targetNode,this.sourceAnchorId);if(!e)throw Error(`无法获取beginAnchor,请检查anchors相关逻辑,anchors不能为空`);this.startPoint||={x:e.x,y:e.y},this.sourceAnchorId||=e.id}if(!this.targetAnchorId||!this.endPoint){var e=this.getEndAnchor(this.targetNode,this.targetAnchorId);if(!e)throw Error(`无法获取endAnchor,请检查anchors相关逻辑,anchors不能为空`);this.endPoint||={x:e.x,y:e.y},this.targetAnchorId||=e.id}},e.prototype.setSelected=function(e){e===void 0&&(e=!0),this.isSelected=e},e.prototype.setHovered=function(e){e===void 0&&(e=!0),this.isHovered=e},e.prototype.setHitable=function(e){e===void 0&&(e=!0),this.isHitable=e},e.prototype.setHittable=function(e){e===void 0&&(e=!0),this.isHittable=e},e.prototype.openEdgeAnimation=function(){this.isAnimation=!0},e.prototype.closeEdgeAnimation=function(){this.isAnimation=!1},e.prototype.setElementState=function(e,t){this.state=e,this.additionStateData=t},e.prototype.updateStartPoint=function(e){this.startPoint=e},e.prototype.moveStartPoint=function(e,t){this.startPoint&&(this.startPoint.x+=e,this.startPoint.y+=t)},e.prototype.updateEndPoint=function(e){this.endPoint=e},e.prototype.moveEndPoint=function(e,t){this.endPoint&&(this.endPoint.x+=e,this.endPoint.y+=t)},e.prototype.setZIndex=function(e){e===void 0&&(e=0),this.zIndex=e},e.prototype.initPoints=function(){},e.prototype.updateAttributes=function(e){ua(this,e)},e.prototype.getAdjustStart=function(){return this.startPoint},e.prototype.getAdjustEnd=function(){return this.endPoint},e.prototype.updateAfterAdjustStartAndEnd=function(e){var t=e.startPoint,n=e.endPoint;this.updateStartPoint({x:t.x,y:t.y}),this.updateEndPoint({x:n.x,y:n.y})},e.prototype.updateZIndexByOverlap=function(e,t){switch(e){case F0.DEFAULT:this.zIndex=0;break;case F0.EDGE_TOP:this.zIndex=1;break;case F0.INCREASE:this.zIndex=t}},e.BaseType=M0.EDGE,C4([KQ],e.prototype,`type`,void 0),C4([KQ],e.prototype,`sourceNodeId`,void 0),C4([KQ],e.prototype,`targetNodeId`,void 0),C4([KQ],e.prototype,`startPoint`,void 0),C4([KQ],e.prototype,`endPoint`,void 0),C4([KQ],e.prototype,`textMode`,void 0),C4([KQ],e.prototype,`text`,void 0),C4([KQ],e.prototype,`properties`,void 0),C4([KQ],e.prototype,`points`,void 0),C4([KQ],e.prototype,`pointsList`,void 0),C4([KQ],e.prototype,`isSelected`,void 0),C4([KQ],e.prototype,`isHovered`,void 0),C4([KQ],e.prototype,`isHitable`,void 0),C4([KQ],e.prototype,`isHittable`,void 0),C4([KQ],e.prototype,`draggable`,void 0),C4([KQ],e.prototype,`visible`,void 0),C4([KQ],e.prototype,`isAnimation`,void 0),C4([KQ],e.prototype,`isShowAdjustPoint`,void 0),C4([KQ],e.prototype,`zIndex`,void 0),C4([KQ],e.prototype,`state`,void 0),C4([KQ],e.prototype,`style`,void 0),C4([KQ],e.prototype,`arrowConfig`,void 0),C4([YQ],e.prototype,`sourceNode`,null),C4([YQ],e.prototype,`targetNode`,null),C4([YQ],e.prototype,`textPosition`,null),C4([Q],e.prototype,`setProperty`,null),C4([Q],e.prototype,`deleteProperty`,null),C4([Q],e.prototype,`setProperties`,null),C4([Q],e.prototype,`changeEdgeId`,null),C4([Q],e.prototype,`setStyle`,null),C4([Q],e.prototype,`setStyles`,null),C4([Q],e.prototype,`updateStyles`,null),C4([Q],e.prototype,`setTextMode`,null),C4([Q],e.prototype,`formatText`,null),C4([Q],e.prototype,`resetTextPosition`,null),C4([Q],e.prototype,`moveText`,null),C4([Q],e.prototype,`setText`,null),C4([Q],e.prototype,`updateText`,null),C4([Q],e.prototype,`setAnchors`,null),C4([Q],e.prototype,`setSelected`,null),C4([Q],e.prototype,`setHovered`,null),C4([Q],e.prototype,`setHitable`,null),C4([Q],e.prototype,`setHittable`,null),C4([Q],e.prototype,`openEdgeAnimation`,null),C4([Q],e.prototype,`closeEdgeAnimation`,null),C4([Q],e.prototype,`setElementState`,null),C4([Q],e.prototype,`updateStartPoint`,null),C4([Q],e.prototype,`moveStartPoint`,null),C4([Q],e.prototype,`updateEndPoint`,null),C4([Q],e.prototype,`moveEndPoint`,null),C4([Q],e.prototype,`setZIndex`,null),C4([Q],e.prototype,`initPoints`,null),C4([Q],e.prototype,`updateAttributes`,null),C4([Q],e.prototype,`getAdjustStart`,null),C4([Q],e.prototype,`getAdjustEnd`,null),C4([Q],e.prototype,`updateAfterAdjustStartAndEnd`,null),C4([Q],e.prototype,`updateZIndexByOverlap`,null),e}(),UVe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),T4=function(){return T4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},T4.apply(this,arguments)},E4=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},D4=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},O4=function(e){UVe(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.modelType=N0.BEZIER_EDGE,r.path=``,r.initEdgeData(t),r.setAttributes(),r}return t.prototype.initEdgeData=function(t){this.offset=ur(t,`properties.offset`,100),e.prototype.initEdgeData.call(this,t)},t.prototype.getEdgeStyle=function(){var t=this.graphModel.theme.bezier,n=e.prototype.getEdgeStyle.call(this),r=this.properties.style,i=r===void 0?{}:r;return T4(T4(T4({},n),Va(t)),Va(i))},t.prototype.getTextPosition=function(){if(this.pointsList&&this.pointsList.length>0){var e=0,t=0;return this.pointsList.forEach(function(n){var r=n.x,i=n.y;e+=r,t+=i}),{x:e/this.pointsList.length,y:t/this.pointsList.length}}return{x:(this.startPoint.x+this.endPoint.x)/2,y:(this.startPoint.y+this.endPoint.y)/2}},t.prototype.getData=function(){var t=e.prototype.getData.call(this),n=this.pointsList.map(function(e){return{x:e.x,y:e.y}});return T4(T4({},t),{pointsList:n})},t.prototype.getControls=function(){var e=this.startPoint,t=this.endPoint;return f2({start:e,end:t,sourceNode:this.sourceNode,targetNode:this.targetNode,offset:this.offset})},t.prototype.getPath=function(e){var t=D4(e,4),n=t[0],r=t[1],i=t[2],a=t[3];return`M ${n.x} ${n.y}
C ${r.x} ${r.y},
${i.x} ${i.y},
${a.x} ${a.y}`},t.prototype.initPoints=function(){this.pointsList.length>0?this.path=this.getPath(this.pointsList):this.updatePoints()},t.prototype.updatePoints=function(){var e=this.getControls(),t=e.sNext,n=e.ePre;this.updatePath(t,n)},t.prototype.updatePath=function(e,t){e=Va(e),t=Va(t);var n={x:this.startPoint.x,y:this.startPoint.y},r={x:this.endPoint.x,y:this.endPoint.y};if(!e||!t){var i=this.getControls();e=i.sNext,t=i.ePre}this.pointsList=[n,e,t,r],this.path=this.getPath(this.pointsList)},t.prototype.updateStartPoint=function(e){this.startPoint=Object.assign({},e),this.updatePoints()},t.prototype.updateEndPoint=function(e){this.endPoint=Object.assign({},e),this.updatePoints()},t.prototype.moveStartPoint=function(e,t){this.startPoint.x+=e,this.startPoint.y+=t;var n=D4(this.pointsList,3),r=n[1],i=n[2];r.x+=e,r.y+=t,this.updatePath(r,i)},t.prototype.moveEndPoint=function(e,t){this.endPoint.x+=e,this.endPoint.y+=t;var n=D4(this.pointsList,3),r=n[1],i=n[2];i.x+=e,i.y+=t,this.updatePath(r,i)},t.prototype.updateAdjustAnchor=function(e,t){t===`sNext`?this.pointsList[1]=e:t===`ePre`&&(this.pointsList[2]=e),this.path=this.getPath(this.pointsList),this.text?.value&&this.setText(ua({},this.text,this.textPosition))},t.prototype.getAdjustStart=function(){return this.pointsList[0]||this.startPoint},t.prototype.getAdjustEnd=function(){var e=this.pointsList;return e[e.length-1]||this.endPoint},t.prototype.updateAfterAdjustStartAndEnd=function(e){var t=e.startPoint,n=e.endPoint,r=e.sourceNode,i=e.targetNode,a=f2({start:t,end:n,sourceNode:r,targetNode:i,offset:this.offset}),o=a.sNext,s=a.ePre;this.pointsList=[t,o,s,n],this.initPoints()},E4([KQ],t.prototype,`offset`,void 0),E4([KQ],t.prototype,`path`,void 0),E4([Q],t.prototype,`initPoints`,null),E4([Q],t.prototype,`updatePoints`,null),E4([Q],t.prototype,`updateStartPoint`,null),E4([Q],t.prototype,`updateEndPoint`,null),E4([Q],t.prototype,`moveStartPoint`,null),E4([Q],t.prototype,`moveEndPoint`,null),E4([Q],t.prototype,`updateAdjustAnchor`,null),E4([Q],t.prototype,`getAdjustStart`,null),E4([Q],t.prototype,`getAdjustEnd`,null),E4([Q],t.prototype,`updateAfterAdjustStartAndEnd`,null),t}(w4),WVe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),k4=function(){return k4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},k4.apply(this,arguments)},A4=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},GVe=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},j4=function(e){WVe(t,e);function t(){var t=e.apply(this,GVe([],A4(arguments),!1))||this;return t.modelType=N0.LINE_EDGE,t}return t.prototype.getEdgeStyle=function(){var t=this.graphModel.theme.line,n=e.prototype.getEdgeStyle.call(this),r=this.properties.style,i=r===void 0?{}:r;return k4(k4(k4({},n),Va(t)),Va(i))},t.prototype.initEdgeData=function(t){e.prototype.initEdgeData.call(this,t),this.points=this.getPath([this.startPoint,this.endPoint])},t.prototype.getPath=function(e){var t=A4(e,2),n=t[0],r=t[1];return`${n.x},${n.y} ${r.x},${r.y}`},t.prototype.getTextPosition=function(){return{x:(this.startPoint.x+this.endPoint.x)/2,y:(this.startPoint.y+this.endPoint.y)/2}},t}(w4),KVe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),M4=function(){return M4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},M4.apply(this,arguments)},N4=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},P4=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},qVe=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},F4=function(e){return!!e&&Number.isFinite(e.x)&&Number.isFinite(e.y)},I4=function(e){KVe(t,e);function t(){var t=e.apply(this,qVe([],P4(arguments),!1))||this;return t.modelType=N0.POLYLINE_EDGE,t.draggingPointList=[],t}return t.prototype.initEdgeData=function(t){var n=ur(t,`properties.offset`);if(this.offset=typeof n==`number`?n:this.getDefaultOffset(),t.pointsList){var r=this.orthogonalizePath(t.pointsList);t.pointsList=r,this.pointsList=r}e.prototype.initEdgeData.call(this,t)},t.prototype.setAttributes=function(){var e=this.properties.offset;e&&e!==this.offset&&(this.offset=e,this.updatePoints())},t.prototype.orthogonalizePath=function(e){if(!Array.isArray(e)||e.length<2)return e;var t=function(e,t){var n=e[e.length-1];n&&n.x===t.x&&n.y===t.y||e.push({x:t.x,y:t.y})},n=function(e,t){return e.x===t.x||e.y===t.y},r=function(e,t){return Math.abs(e.x-t.x)+Math.abs(e.y-t.y)},i=[];t(i,e[0]);for(var a,o=0;o<e.length-1;o++){var s=i[i.length-1],c=e[o+1];if(s&&c){if(n(s,c))t(i,c),a=s.x===c.x?I0.VERTICAL:I0.HORIZONTAL;else{var l={x:c.x,y:s.y},u={x:s.x,y:c.y},d=a===I0.VERTICAL?u:a===I0.HORIZONTAL||r(s,l)<=r(s,u)?l:u;(d.x!==s.x||d.y!==s.y)&&t(i,d),t(i,c);var f=i[i.length-2],p=i[i.length-1];a=f&&p?f.x===p.x?I0.VERTICAL:I0.HORIZONTAL:a}}}for(var m=[],o=0;o<i.length;o++){var h=i[o-1],g=i[o],c=i[o+1];h&&g&&c&&(h.x===g.x&&g.x===c.x||h.y===g.y&&g.y===c.y)||t(m,g)}return m.length>=2&&(m[0]={x:e[0].x,y:e[0].y},m[m.length-1]={x:e[e.length-1].x,y:e[e.length-1].y}),m.length<2||m.every(function(e,t,r){return t===0||n(r[t-1],r[t])})?m:[{x:e[0].x,y:e[0].y},{x:e[e.length-1].x,y:e[e.length-1].y}]},t.prototype.getDefaultOffset=function(){var e=this.getArrowStyle();return(typeof e.offset==`number`?e.offset:0)+5},t.prototype.getEdgeStyle=function(){var t=this.graphModel.theme.polyline,n=e.prototype.getEdgeStyle.call(this),r=this.properties.style,i=r===void 0?{}:r;return M4(M4(M4({},n),Va(t)),Va(i))},t.prototype.getTextPosition=function(){var e=this.text?.value;if(this.dbClickPosition&&!e){var t=this.dbClickPosition;return{x:t.x,y:t.y}}var n=P4(RBe(l2(this.points)),2),r=n[0],i=n[1];return{x:(r.x+i.x)/2,y:(r.y+i.y)/2}},t.prototype.getAfterAnchor=function(e,t,n){var r,i;return n.forEach(function(n){var a;e===I0.HORIZONTAL?a=Math.abs(t.y-n.y):e===I0.VERTICAL&&(a=Math.abs(t.x-n.x)),(!i||i>a)&&(i=a,r=n)}),r},t.prototype.getCrossPoint=function(e,t,n){var r;return e===I0.HORIZONTAL?r={x:n.x,y:t.y}:e===I0.VERTICAL&&(r={x:t.x,y:n.y}),r},t.prototype.removeCrossPoints=function(e,t,n){var r=n.map(function(e){return e});if(e===1){var i=r[e],a=r[t],o=r[e-1];if(a2(o,i,this.sourceNode)){var s=o2(i,a,this.sourceNode);if(s){var c=s2(i,a,this.sourceNode);c&&(r[e]=c,r.splice(e-1,1),e--,t--)}}else{var l=this.sourceNode.anchors;l.forEach(function(t){(t.x===o.x&&t.x===i.x||t.y===o.y&&t.y===i.y)&&R2(t.x,t.y,i.x,i.y)<R2(o.x,o.y,i.x,i.y)&&(r[e-1]=t)})}}if(t===n.length-2){var u=r[e],d=r[t],f=r[t+1];if(a2(d,f,this.targetNode)){var s=o2(u,d,this.targetNode);if(s){var c=s2(u,d,this.targetNode);c&&(r[t]=c,r.splice(t+1,1))}}else{var l=this.targetNode.anchors;l.forEach(function(e){(e.x===f.x&&e.x===d.x||e.y===f.y&&e.y===d.y)&&R2(e.x,e.y,d.x,d.y)<R2(f.x,f.y,d.x,d.y)&&(r[t+1]=e)})}}return r},t.prototype.getDraggingPoints=function(e,t,n,r,i){var a=i.map(function(e){return e}),o=this.getAfterAnchor(e,n,r),s=this.getCrossPoint(e,n,o);return t===`start`?(a.unshift(s),a.unshift(o)):(a.push(s),a.push(o)),a},t.prototype.updateCrossPoints=function(e){var t=e.map(function(e){return e}),n=e[0],r=e[1],i=e[t.length-2],a=e[t.length-1],o=this,s=o.sourceNode,c=o.targetNode,l=s.modelType,u=c.modelType,d=c2(n,r),f=t[0];switch(l){case N0.RECT_NODE:if(s.radius!==0){var p=U2(n,s);p||(f=V2(n,d,s))}break;case N0.CIRCLE_NODE:f=H2(n,d,s);break;case N0.ELLIPSE_NODE:f=W2(n,d,s);break;case N0.DIAMOND_NODE:f=G2(n,d,s);break;case N0.POLYGON_NODE:f=G2(n,d,s)}F4(f)&&(t[0]=f);var m=c2(i,a),h=t[t.length-1];switch(u){case N0.RECT_NODE:if(c.radius!==0){var p=U2(a,c);p||(h=V2(a,m,c))}break;case N0.CIRCLE_NODE:h=H2(a,m,c);break;case N0.ELLIPSE_NODE:h=W2(a,m,c);break;case N0.DIAMOND_NODE:h=G2(a,m,c);break;case N0.POLYGON_NODE:h=G2(a,m,c)}return F4(h)&&(t[t.length-1]=h),t},t.prototype.updatePath=function(e){this.pointsList=this.orthogonalizePath(e),this.points=this.getPath(this.pointsList)},t.prototype.getData=function(){var t=e.prototype.getData.call(this),n=this.pointsList.map(function(e){return{x:e.x,y:e.y}});return Object.assign({},t,{pointsList:n})},t.prototype.getPath=function(e){return e.map(function(e){return`${e.x},${e.y}`}).join(` `)},t.prototype.initPoints=function(){this.pointsList.length>0?this.points=this.getPath(this.pointsList):this.updatePoints()},t.prototype.updatePoints=function(){var e=i2({x:this.startPoint.x,y:this.startPoint.y},{x:this.endPoint.x,y:this.endPoint.y},this.sourceNode,this.targetNode,this.offset||0);this.pointsList=this.orthogonalizePath(e),this.points=this.pointsList.map(function(e){return`${e.x},${e.y}`}).join(` `)},t.prototype.updateStartPoint=function(e){this.startPoint=Object.assign({},e),this.updatePoints()},t.prototype.moveStartPoint=function(e,t){this.startPoint.x+=e,this.startPoint.y+=t,this.updatePoints()},t.prototype.updateEndPoint=function(e){this.endPoint=Object.assign({},e),this.updatePoints()},t.prototype.moveEndPoint=function(e,t){this.endPoint.x+=e,this.endPoint.y+=t,this.updatePoints()},t.prototype.updatePointsList=function(e,t){this.pointsList.forEach(function(n){n.x+=e,n.y+=t});var n=this.pointsList[0];this.startPoint=Object.assign({},n);var r=this.pointsList[this.pointsList.length-1];this.endPoint=Object.assign({},r),this.initPoints()},t.prototype.dragAppendStart=function(){this.draggingPointList=this.pointsList.map(function(e){return e})},t.prototype.dragAppendSimple=function(e,t){this.isDragging=!0;var n=e.start,r=e.end,i=e.startIndex,a=e.endIndex,o=e.direction,s=this.pointsList,c=s;return o===I0.HORIZONTAL?(s[i]={x:n.x,y:n.y+t.y},s[a]={x:r.x,y:r.y+t.y},c=this.pointsList.map(function(e){return e})):o===I0.VERTICAL&&(s[i]={x:n.x+t.x,y:n.y},s[a]={x:r.x+t.x,y:r.y},c=this.pointsList.map(function(e){return e})),this.updatePointsAfterDrag(c),this.draggingPointList=c,this.text?.value&&this.setText(ua({},this.text,this.textPosition)),{start:ua({},s[i]),end:ua({},s[a]),startIndex:i,endIndex:a,direction:o}},t.prototype.dragAppend=function(e,t){this.isDragging=!0;var n=e.start,r=e.end,i=e.startIndex,a=e.endIndex,o=e.direction,s=this.pointsList;if(o===I0.HORIZONTAL){s[i]={x:n.x,y:n.y+t.y},s[a]={x:r.x,y:r.y+t.y};var c=this.pointsList.map(function(e){return e});if(i!==0&&a!==this.pointsList.length-1&&(c=this.removeCrossPoints(i,a,c)),i===0){var l={x:n.x,y:n.y+t.y},u=z2(l,this.sourceNode);if(!u){var d=this.sourceNode.anchors;c=this.getDraggingPoints(o,`start`,l,d,c)}}if(a===this.pointsList.length-1){var f={x:r.x,y:r.y+t.y},u=z2(f,this.targetNode);if(!u){var d=this.targetNode.anchors;c=this.getDraggingPoints(o,`end`,f,d,c)}}this.updatePointsAfterDrag(c),this.draggingPointList=c}else if(o===I0.VERTICAL){s[i]={x:n.x+t.x,y:n.y},s[a]={x:r.x+t.x,y:r.y};var c=this.pointsList.map(function(e){return e});if(i!==0&&a!==this.pointsList.length-1&&(c=this.removeCrossPoints(i,a,c)),i===0){var l={x:n.x+t.x,y:n.y},u=z2(l,this.sourceNode);if(!u){var d=this.sourceNode.anchors;c=this.getDraggingPoints(o,`start`,l,d,c)}}if(a===this.pointsList.length-1){var f={x:r.x+t.x,y:r.y},u=z2(f,this.targetNode);if(!u){var d=this.targetNode.anchors;c=this.getDraggingPoints(o,`end`,f,d,c)}}this.updatePointsAfterDrag(c),this.draggingPointList=c}return this.text?.value&&this.setText(ua({},this.text,this.textPosition)),{start:ua({},s[i]),end:ua({},s[a]),startIndex:i,endIndex:a,direction:o}},t.prototype.dragAppendEnd=function(){if(this.draggingPointList){var e=r2(l2(this.points));this.pointsList=e.map(function(e){return e}),this.draggingPointList=[];var t=e[0];this.startPoint=ua({},t);var n=e[e.length-1];this.endPoint=ua({},n)}this.isDragging=!1},t.prototype.updatePointsAfterDrag=function(e){var t=this.updateCrossPoints(e);this.points=t.map(function(e){return`${e.x},${e.y}`}).join(` `)},t.prototype.getAdjustStart=function(){return this.pointsList[0]||this.startPoint},t.prototype.getAdjustEnd=function(){var e=this.pointsList;return e[e.length-1]||this.endPoint},t.prototype.updateAfterAdjustStartAndEnd=function(e){var t=e.startPoint,n=e.endPoint,r=e.sourceNode,i=e.targetNode;this.pointsList=this.orthogonalizePath(i2({x:t.x,y:t.y},{x:n.x,y:n.y},r,i,this.offset||0)),this.initPoints()},N4([KQ],t.prototype,`offset`,void 0),N4([KQ],t.prototype,`dbClickPosition`,void 0),N4([Q],t.prototype,`initPoints`,null),N4([Q],t.prototype,`updatePoints`,null),N4([Q],t.prototype,`updateStartPoint`,null),N4([Q],t.prototype,`moveStartPoint`,null),N4([Q],t.prototype,`updateEndPoint`,null),N4([Q],t.prototype,`moveEndPoint`,null),N4([Q],t.prototype,`updatePointsList`,null),N4([Q],t.prototype,`dragAppendStart`,null),N4([Q],t.prototype,`dragAppendSimple`,null),N4([Q],t.prototype,`dragAppend`,null),N4([Q],t.prototype,`dragAppendEnd`,null),N4([Q],t.prototype,`updatePointsAfterDrag`,null),N4([Q],t.prototype,`getAdjustStart`,null),N4([Q],t.prototype,`getAdjustEnd`,null),N4([Q],t.prototype,`updateAfterAdjustStartAndEnd`,null),t}(w4),L4=function(){return L4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},L4.apply(this,arguments)},R4=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},z4=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},JVe=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},B4=function(){function e(e,t){this.BaseType=M0.NODE,this.id=``,this.type=``,this.x=0,this.y=0,this.textMode=L0.TEXT,this.text={value:``,x:0,y:0,draggable:!1,editable:!0},this._width=100,this._height=80,this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3,this.anchorsOffset=[],this.virtual=!1,this.isSelected=!1,this.isHovered=!1,this.isShowAnchor=!1,this.isDragging=!1,this.isHitable=!0,this.isHittable=!0,this.draggable=!0,this.visible=!0,this.rotatable=!0,this.resizable=!0,this.zIndex=1,this.state=j0.DEFAULT,this.autoToFront=!0,this.style={},this._rotate=0,this.modelType=N0.NODE,this.additionStateData={},this.targetRules=[],this.sourceRules=[],this.moveRules=[],this.resizeRules=[],this.hasSetTargetRules=!1,this.hasSetSourceRules=!1,this.graphModel=t,this.properties=e.properties??{},this.initNodeData(e),this.setAttributes()}return Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(e){this._width=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(e){this._height=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rotate",{get:function(){return this._rotate},set:function(e){this._rotate=e;var t=this,n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i;this.transform=new P2(-r,-a).rotate(e).translate(r,a).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"incoming",{get:function(){return{nodes:this.graphModel.getNodeIncomingNode(this.id),edges:this.graphModel.getNodeIncomingEdge(this.id)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"outgoing",{get:function(){return{nodes:this.graphModel.getNodeOutgoingNode(this.id),edges:this.graphModel.getNodeOutgoingEdge(this.id)}},enumerable:!1,configurable:!0}),e.prototype.initNodeData=function(e){var t=this;if(e.properties||={},!e.id){var n=this.graphModel.idGenerator,r=n&&n(e.type);e.id=this.createId()||r||Z2()}this.formatText(e),ua(this,QBe(e));var i=this.graphModel,a=i.overlapMode,o=i.eventCenter;this.updateZIndexByOverlap(a,e.zIndex||x4()),o.on(`overlap:change`,function(e){var n=e.overlapMode;t.updateZIndexByOverlap(n,t.zIndex||x4())})},e.prototype.setAttributes=function(){},e.prototype.createId=function(){return null},e.prototype.setTextMode=function(e){this.textMode=e},e.prototype.formatText=function(e){var t=this.graphModel.editConfigModel,n=t.nodeTextDraggable,r=t.nodeTextEdit,i=e.x,a=e.y,o=e.text,s={value:``,x:i,y:a,draggable:n,editable:r};o&&(typeof o==`string`?s.value=o:(s=L4(L4({},s),{x:o.x??i,y:o.y??a,value:o.value??``}),Po(o.draggable)||(s.draggable=o.draggable),Po(o.editable)||(s.editable=o.editable))),e.text=s},e.prototype.resize=function(e){var t=e.width,n=e.height,r=e.deltaX,i=e.deltaY;return this.isAllowResizeNode(r,i,t,n)&&(this.move(r/2,i/2),this.width=t,this.height=n,this.setProperties({width:t,height:n})),this.getData()},e.prototype.proportionalResize=function(){},e.prototype.getData=function(){var e=this.text,t=e.x,n=e.y,r=e.value,i=this.properties;Y$(i)&&(i=t1(i)),No(i.width)&&(i.width=this.width),No(i.height)&&(i.height=this.height);var a={id:this.id,type:this.type,x:this.x,y:this.y,properties:i};return this.rotate&&(a.rotate=this.rotate),[F0.INCREASE,F0.STATIC].includes(this.graphModel.overlapMode)&&(a.zIndex=this.zIndex),r&&(a.text={x:t,y:n,value:r}),a},e.prototype.getHistoryData=function(){return this.getData()},e.prototype.getProperties=function(){return t1(this.properties)},e.prototype.getOuterGAttributes=function(){return{className:``}},e.prototype.getNodeStyle=function(){return L4(L4({},this.graphModel.theme.baseNode),this.style)},e.prototype.getTextStyle=function(){var e=this.graphModel.theme.nodeText,t=this.properties.textStyle,n=t===void 0?{}:t;return L4(L4({},Va(e)),Va(n))},e.prototype.getRotateControlStyle=function(){var e=this.graphModel.theme.rotateControl;return Va(e)},e.prototype.getResizeControlStyle=function(){var e=this.graphModel.theme.resizeControl;return Va(e)},e.prototype.getResizeOutlineStyle=function(){var e=this.graphModel.theme.resizeOutline,t=L4({},e);if(this.isHovered){var n=e.hover||{};t=L4(L4({},t),n)}return Va(t)},e.prototype.getAnchorStyle=function(e){var t=this.graphModel.theme.anchor;return Va(t)},e.prototype.getAnchorLineStyle=function(e){var t=this.graphModel.theme.anchorLine;return Va(t)},e.prototype.getOutlineStyle=function(){var e=this.graphModel.theme.outline;return Va(e)},e.prototype.isAllowConnectedAsSource=function(e,t,n,r){var i=this.hasSetSourceRules?this.sourceRules:this.getConnectedSourceRules();this.hasSetSourceRules=!0;for(var a=!0,o=``,s=0;s<i.length;s++){var c=i[s];if(!c.validate.call(this,this,e,t,n,r)){a=!1,o=c.message;break}}return{isAllPass:a,msg:o}},e.prototype.getConnectedSourceRules=function(){return this.sourceRules},e.prototype.isAllowConnectedAsTarget=function(e,t,n,r){var i=this.hasSetTargetRules?this.targetRules:this.getConnectedTargetRules();this.hasSetTargetRules=!0;for(var a=!0,o=``,s=0;s<i.length;s++){var c=i[s];if(!c.validate.call(this,e,this,t,n,r)){a=!1,o=c.message;break}}return{isAllPass:a,msg:o}},e.prototype.isAllowMoveNode=function(e,t){var n,r,i=!0,a=!0,o=this.moveRules.concat(this.graphModel.nodeMoveRules);try{for(var s=z4(o),c=s.next();!c.done;c=s.next()){var l=c.value,u=l(this,e,t);if(!u)return!1;if(typeof u==`object`){var d=u;if(!d.x&&!d.y)return!1;i&&=d.x,a&&=d.y}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return{x:i,y:a}},e.prototype.getConnectedTargetRules=function(){return this.targetRules},e.prototype.getAnchorsByOffset=function(){var e=this,t=e.anchorsOffset,n=e.id,r=e.x,i=e.y;return t&&t.length>0?t.map(function(e,t){return e.length?(e=e,{id:`${n}_${t}`,x:r+e[0],y:i+e[1]}):(e=e,L4(L4({},e),{x:r+e.x,y:i+e.y,id:e.id||`${n}_${t}`}))}):this.getDefaultAnchor()},e.prototype.getDefaultAnchor=function(){return[]},e.prototype.getTargetAnchor=function(e){var t=this.graphModel.customTargetAnchor;return t?.(this,e)??YBe(e,this)},e.prototype.getBounds=function(){return{minX:this.x-this.width/2,minY:this.y-this.height/2,maxX:this.x+this.width/2,maxY:this.y+this.height/2}},Object.defineProperty(e.prototype,"anchors",{get:function(){var e=this.getAnchorsByOffset(),t=this,n=t.x,r=t.y,i=t.rotate;return e.forEach(function(e){var t=e.x,a=e.y,o=JVe(new N2([t,a,1]).translate(-n,-r).rotate(i).translate(n,r)[0],2),s=o[0],c=o[1];e.x=s,e.y=c}),e},enumerable:!1,configurable:!0}),e.prototype.getAnchorInfo=function(e){if(!No(e))for(var t=0;t<this.anchors.length;t++){var n=this.anchors[t];if(n.id===e)return n}},e.prototype.addNodeMoveRules=function(e){this.moveRules.includes(e)||this.moveRules.push(e)},e.prototype.isAllowMoveByXORY=function(e,t,n){var r,i;if(n)r=!0,i=!0;else{var a=this.isAllowMoveNode(e,t);typeof a==`boolean`?(r=a,i=a):(r=a.x,i=a.y)}return{isAllowMoveX:r,isAllowMoveY:i}},e.prototype.move=function(e,t,n){n===void 0&&(n=!1);var r=this.isAllowMoveByXORY(e,t,n),i=r.isAllowMoveX,a=r.isAllowMoveY;return i&&(this.x+=e,this.text&&this.moveText(e,0)),a&&(this.y+=t,this.text&&this.moveText(0,t)),(i||a)&&(this.rotate=this._rotate),i||a},e.prototype.getMoveDistance=function(e,t,n){n===void 0&&(n=!1);var r=this.isAllowMoveByXORY(e,t,n),i=r.isAllowMoveX,a=r.isAllowMoveY,o=0,s=0;return i&&e&&(this.x+=e,this.text&&this.moveText(e,0),o=e),a&&t&&(this.y+=t,this.text&&this.moveText(0,t),s=t),this.transform=new P2(-this.x,-this.y).rotate(this.rotate).translate(this.x,this.y).toString(),[o,s]},e.prototype.moveTo=function(e,t,n){n===void 0&&(n=!1);var r=e-this.x,i=t-this.y;return!n&&!this.isAllowMoveNode(r,i)?!1:(this.text&&this.moveText(r,i),this.x=e,this.y=t,!0)},e.prototype.moveText=function(e,t){var n=this.text,r=n.x,i=n.y,a=n.value,o=n.draggable,s=n.editable;this.text={value:a,editable:s,draggable:o,x:r+e,y:i+t}},e.prototype.updateText=function(e){this.text=L4(L4({},t1(this.text)),{value:e})},e.prototype.addNodeResizeRules=function(e){this.resizeRules.includes(e)||this.resizeRules.push(e)},e.prototype.isAllowResizeNode=function(e,t,n,r){var i,a,o=this.resizeRules.concat(this.graphModel.nodeResizeRules);try{for(var s=z4(o),c=s.next();!c.done;c=s.next()){var l=c.value;if(!l(this,e,t,n,r))return!1}}catch(e){i={error:e}}finally{try{c&&!c.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return!0},e.prototype.setSelected=function(e){e===void 0&&(e=!0),this.isSelected=e},e.prototype.setHovered=function(e){e===void 0&&(e=!0),this.isHovered=e,this.setIsShowAnchor(e)},e.prototype.setIsShowAnchor=function(e){e===void 0&&(e=!0),this.isShowAnchor=e},e.prototype.setRotatable=function(e){e===void 0&&(e=!0),this.rotatable=e},e.prototype.setResizable=function(e){e===void 0&&(e=!0),this.resizable=e},e.prototype.setHitable=function(e){e===void 0&&(e=!0),this.isHitable=e},e.prototype.setHittable=function(e){e===void 0&&(e=!0),this.isHittable=e},e.prototype.setElementState=function(e,t){this.state=e,this.additionStateData=t},e.prototype.updateProperties=function(e,t){var n=t1(this.properties);this.properties=e,this.setAttributes(),this.graphModel.eventCenter.emit(P0.NODE_PROPERTIES_CHANGE,{id:this.id,keys:t,preProperties:n,properties:e})},e.prototype.setProperty=function(e,t){var n=Va(t1(this.properties));Lo(n,e,T0(t)),this.updateProperties(n,[e])},e.prototype.setProperties=function(e){var t=t1(this.properties),n=L4(L4({},t),T0(e)),r=[];Xre(e,function(e,n){(So(t,n)&&t[n]!==e||!So(t,n))&&r.push(n)}),this.updateProperties(n,r)},e.prototype.deleteProperty=function(e){delete this.properties[e],this.setAttributes()},e.prototype.setStyle=function(e,t){var n;this.style=L4(L4({},this.style),(n={},n[e]=T0(t),n))},e.prototype.setStyles=function(e){this.style=L4(L4({},this.style),T0(e))},e.prototype.updateStyles=function(e){this.style=L4({},T0(e))},e.prototype.setZIndex=function(e){e===void 0&&(e=1),this.zIndex=e},e.prototype.updateAttributes=function(e){ua(this,e)},e.prototype.updateZIndexByOverlap=function(e,t){switch(e){case F0.DEFAULT:this.zIndex=1;break;case F0.EDGE_TOP:this.zIndex=0;break;case F0.INCREASE:this.zIndex=t}},e.BaseType=M0.NODE,R4([KQ],e.prototype,`type`,void 0),R4([KQ],e.prototype,`x`,void 0),R4([KQ],e.prototype,`y`,void 0),R4([KQ],e.prototype,`textMode`,void 0),R4([KQ],e.prototype,`text`,void 0),R4([KQ],e.prototype,`properties`,void 0),R4([KQ],e.prototype,`_width`,void 0),R4([KQ],e.prototype,`_height`,void 0),R4([KQ],e.prototype,`anchorsOffset`,void 0),R4([KQ],e.prototype,`isSelected`,void 0),R4([KQ],e.prototype,`isHovered`,void 0),R4([KQ],e.prototype,`isShowAnchor`,void 0),R4([KQ],e.prototype,`isDragging`,void 0),R4([KQ],e.prototype,`isHitable`,void 0),R4([KQ],e.prototype,`isHittable`,void 0),R4([KQ],e.prototype,`draggable`,void 0),R4([KQ],e.prototype,`visible`,void 0),R4([KQ],e.prototype,`rotatable`,void 0),R4([KQ],e.prototype,`resizable`,void 0),R4([KQ],e.prototype,`zIndex`,void 0),R4([KQ],e.prototype,`state`,void 0),R4([KQ],e.prototype,`autoToFront`,void 0),R4([KQ],e.prototype,`style`,void 0),R4([KQ],e.prototype,`transform`,void 0),R4([KQ],e.prototype,`_rotate`,void 0),R4([YQ],e.prototype,`incoming`,null),R4([YQ],e.prototype,`outgoing`,null),R4([Q],e.prototype,`setTextMode`,null),R4([Q],e.prototype,`addNodeMoveRules`,null),R4([Q],e.prototype,`move`,null),R4([Q],e.prototype,`getMoveDistance`,null),R4([Q],e.prototype,`moveTo`,null),R4([Q],e.prototype,`moveText`,null),R4([Q],e.prototype,`updateText`,null),R4([Q],e.prototype,`addNodeResizeRules`,null),R4([Q],e.prototype,`setSelected`,null),R4([Q],e.prototype,`setHovered`,null),R4([Q],e.prototype,`setIsShowAnchor`,null),R4([Q],e.prototype,`setRotatable`,null),R4([Q],e.prototype,`setResizable`,null),R4([Q],e.prototype,`setHitable`,null),R4([Q],e.prototype,`setHittable`,null),R4([Q],e.prototype,`setElementState`,null),R4([Q],e.prototype,`setProperty`,null),R4([Q],e.prototype,`setProperties`,null),R4([Q],e.prototype,`deleteProperty`,null),R4([Q],e.prototype,`setStyle`,null),R4([Q],e.prototype,`setStyles`,null),R4([Q],e.prototype,`updateStyles`,null),R4([Q],e.prototype,`setZIndex`,null),R4([Q],e.prototype,`updateAttributes`,null),R4([Q],e.prototype,`updateZIndexByOverlap`,null),e}(),YVe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),V4=function(){return V4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},V4.apply(this,arguments)},H4=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},U4=function(e){YVe(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.modelType=N0.CIRCLE_NODE,r.r=50,r.initNodeData(t),r.setAttributes(),r}return Object.defineProperty(t.prototype,"width",{get:function(){return this.r*2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.r*2},enumerable:!1,configurable:!0}),t.prototype.setAttributes=function(){e.prototype.setAttributes.call(this);var t=this.properties.r;t&&(this.r=t)},t.prototype.getNodeStyle=function(){var t=e.prototype.getNodeStyle.call(this),n=this.graphModel.theme.circle,r=this.properties.style,i=r===void 0?{}:r;return V4(V4(V4({},t),Va(n)),Va(i))},t.prototype.getDefaultAnchor=function(){var e=this,t=e.x,n=e.y,r=e.r;return[{x:t,y:n-r,id:`${this.id}_0`},{x:t+r,y:n,id:`${this.id}_1`},{x:t,y:n+r,id:`${this.id}_2`},{x:t-r,y:n,id:`${this.id}_3`}]},t.prototype.resize=function(e){var t=e.width,n=e.deltaX,r=e.deltaY;return this.move(n/2,r/2),this.r=t,this.setProperties({r:t}),this.getData()},H4([KQ],t.prototype,`r`,void 0),H4([YQ],t.prototype,`width`,null),H4([YQ],t.prototype,`height`,null),t}(B4),XVe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),W4=function(){return W4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},W4.apply(this,arguments)},G4=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},K4=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},q4=function(e){XVe(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.modelType=N0.DIAMOND_NODE,r.rx=30,r.ry=50,r.initNodeData(t),r.setAttributes(),r}return t.prototype.setAttributes=function(){e.prototype.setAttributes.call(this);var t=this.properties,n=t.rx,r=t.ry;n&&(this.rx=n),r&&(this.ry=r)},t.prototype.getNodeStyle=function(){var t=e.prototype.getNodeStyle.call(this),n=this.graphModel.theme.diamond,r=this.properties.style,i=r===void 0?{}:r;return W4(W4(W4({},t),Va(n)),Va(i))},Object.defineProperty(t.prototype,"points",{get:function(){var e=this,t=e.x,n=e.y,r=e.rx,i=e.ry;return[[t,n-i],[t+r,n],[t,n+i],[t-r,n]]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pointsPosition",{get:function(){return vo(this.points,function(e){var t=K4(e,2);return{x:t[0],y:t[1]}})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){var e=2**53-1,t=-(2**53-1);return lo(this.points,function(n){var r=K4(n,1)[0];r<e&&(e=r),r>t&&(t=r)}),t-e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){var e=2**53-1,t=-(2**53-1);return lo(this.points,function(n){var r=K4(n,2)[1];r<e&&(e=r),r>t&&(t=r)}),t-e},enumerable:!1,configurable:!0}),t.prototype.getDefaultAnchor=function(){var e=this;return vo(this.points,function(t,n){var r=K4(t,2);return{x:r[0],y:r[1],id:`${e.id}_${n}`}})},t.prototype.resize=function(e){var t=e.width,n=e.height,r=e.deltaX,i=e.deltaY;return this.move(r/2,i/2),this.rx=t,this.ry=n,this.setProperties({rx:t,ry:n}),this.getData()},G4([KQ],t.prototype,`rx`,void 0),G4([KQ],t.prototype,`ry`,void 0),G4([YQ],t.prototype,`points`,null),G4([YQ],t.prototype,`pointsPosition`,null),G4([YQ],t.prototype,`width`,null),G4([YQ],t.prototype,`height`,null),t}(B4),ZVe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),J4=function(){return J4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},J4.apply(this,arguments)},Y4=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},X4=function(e){ZVe(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.modelType=N0.ELLIPSE_NODE,r.rx=30,r.ry=45,r.initNodeData(t),r.setAttributes(),r}return t.prototype.setAttributes=function(){e.prototype.setAttributes.call(this);var t=this.properties,n=t.rx,r=t.ry;n&&(this.rx=n),r&&(this.ry=r)},t.prototype.getNodeStyle=function(){var t=e.prototype.getNodeStyle.call(this),n=this.graphModel.theme.ellipse,r=this.properties.style,i=r===void 0?{}:r;return J4(J4(J4({},t),Va(n)),Va(i))},Object.defineProperty(t.prototype,"width",{get:function(){return this.rx*2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.ry*2},enumerable:!1,configurable:!0}),t.prototype.getDefaultAnchor=function(){var e=this,t=e.x,n=e.y,r=e.rx,i=e.ry;return[{x:t,y:n-i,id:`${this.id}_0`},{x:t+r,y:n,id:`${this.id}_1`},{x:t,y:n+i,id:`${this.id}_2`},{x:t-r,y:n,id:`${this.id}_3`}]},t.prototype.resize=function(e){var t=e.width,n=e.height,r=e.deltaX,i=e.deltaY;return this.move(r/2,i/2),this.rx=t,this.ry=n,this.setProperties({rx:t,ry:n}),this.getData()},Y4([KQ],t.prototype,`rx`,void 0),Y4([KQ],t.prototype,`ry`,void 0),Y4([YQ],t.prototype,`width`,null),Y4([YQ],t.prototype,`height`,null),t}(B4),QVe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),Z4=function(){return Z4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Z4.apply(this,arguments)},Q4=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},$4=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},e3=function(e){QVe(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.modelType=N0.POLYGON_NODE,r.points=[[50,0],[100,50],[50,100],[0,50]],r.initNodeData(t),r.setAttributes(),r}return t.prototype.setAttributes=function(){e.prototype.setAttributes.call(this);var t=this.properties,n=t.points,r=t.width,i=t.height,a=n||this.points;this.points=WBe(a,r,i)},t.prototype.getNodeStyle=function(){var t=e.prototype.getNodeStyle.call(this),n=this.graphModel,r=n.theme.polygon,i=n.customStyles.polygon,a=this.properties.style,o=a===void 0?{}:a;return Z4(Z4(Z4(Z4({},t),Va(r)),Va(i)),Va(o))},Object.defineProperty(t.prototype,"pointsPosition",{get:function(){var e=this,t=e.x,n=e.y,r=e.width,i=e.height;return this.points.map(function(e){return{x:e[0]+t-r/2,y:e[1]+n-i/2}})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){var e=2**53-1,t=-(2**53-1);return this.points.forEach(function(n){var r=$4(n,1)[0];r<e&&(e=r),r>t&&(t=r)}),t-e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){var e=2**53-1,t=-(2**53-1);return this.points.forEach(function(n){var r=$4(n,2)[1];r<e&&(e=r),r>t&&(t=r)}),t-e},enumerable:!1,configurable:!0}),t.prototype.getDefaultAnchor=function(){var e=this,t=this,n=t.x,r=t.y,i=t.width,a=t.height;return t.points.map(function(t,o){var s=$4(t,2),c=s[0],l=s[1];return{x:n+c-i/2,y:r+l-a/2,id:`${e.id}_${o}`}})},t.prototype.resize=function(e){var t=this,n=e.width,r=e.height,i=e.deltaX,a=e.deltaY;this.move(i/2,a/2);var o=vo(this.points,function(e){var i=$4(e,2),a=i[0],o=i[1];return[a*n/t.width,o*r/t.height]});return this.points=o,this.properties.points=o,this.getData()},Q4([KQ],t.prototype,`points`,void 0),Q4([YQ],t.prototype,`pointsPosition`,null),Q4([YQ],t.prototype,`width`,null),Q4([YQ],t.prototype,`height`,null),t}(B4),$Ve=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),t3=function(){return t3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t3.apply(this,arguments)},eHe=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},n3=function(e){$Ve(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.modelType=N0.RECT_NODE,r.radius=0,r.initNodeData(t),r.setAttributes(),r}return t.prototype.setAttributes=function(){e.prototype.setAttributes.call(this);var t=this.properties,n=t.width,r=t.height,i=t.radius,a=this.getNodeStyle().radius;No(n)||(this.width=n),No(r)||(this.height=r),No(i)||(this.radius=i),No(a)||(this.radius=a)},t.prototype.getDefaultAnchor=function(){var e=this,t=e.x,n=e.y,r=e.width,i=e.height;return[{x:t,y:n-i/2,id:`${this.id}_0`},{x:t+r/2,y:n,id:`${this.id}_1`},{x:t,y:n+i/2,id:`${this.id}_2`},{x:t-r/2,y:n,id:`${this.id}_3`}]},t.prototype.getNodeStyle=function(){var t=e.prototype.getNodeStyle.call(this),n=this.graphModel.theme.rect,r=this.properties.style,i=r===void 0?{}:r;return t3(t3(t3({},t),Va(n)),Va(i))},eHe([KQ],t.prototype,`radius`,void 0),t}(B4),tHe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r3=function(){return r3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r3.apply(this,arguments)},i3=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},nHe=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},rHe=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},a3=function(e){tHe(t,e);function t(){var t=e.apply(this,rHe([],nHe(arguments),!1))||this;return t.modelType=N0.TEXT_NODE,t}return t.prototype.getTextStyle=function(){var t=e.prototype.getTextStyle.call(this),n=this.graphModel.theme.text,r=this.properties.textStyle;return r3(r3(r3({},t),Va(n)),Va(r))},Object.defineProperty(t.prototype,"width",{get:function(){var e=String(this.text.value).split(/[\r\n]/g),t=this.getTextStyle().fontSize;return J2({rows:e,fontSize:t,rowsLength:e.length}).width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){var e=String(this.text.value).split(/[\r\n]/g),t=this.getTextStyle().fontSize;return J2({rows:e,fontSize:t,rowsLength:e.length}).height},enumerable:!1,configurable:!0}),i3([YQ],t.prototype,`width`,null),i3([YQ],t.prototype,`height`,null),t}(B4),iHe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),o3=function(){return o3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o3.apply(this,arguments)},s3=function(e){iHe(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.modelType=N0.HTML_NODE,r.setAttributes(),r}return t.prototype.setAttributes=function(){e.prototype.setAttributes.call(this);var t=this.properties,n=t.width,r=t.height;n&&(this.width=n),r&&(this.height=r)},t.prototype.getDefaultAnchor=function(){var e=this,t=e.x,n=e.y,r=e.width,i=e.height;return[{x:t,y:n-i/2,id:`${this.id}_0`},{x:t+r/2,y:n,id:`${this.id}_1`},{x:t,y:n+i/2,id:`${this.id}_2`},{x:t-r/2,y:n,id:`${this.id}_3`}]},t.prototype.getNodeStyle=function(){var t=e.prototype.getNodeStyle.call(this),n=this.graphModel.theme,r=n.baseNode,i=n.html,a=this.properties.style,o=a===void 0?{}:a;return o3(o3(o3(o3({},t),Va(r)),Va(i)),Va(o))},t}(B4),c3=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},aHe={stopZoomGraph:!1,stopScrollGraph:!1,stopMoveGraph:!1,adjustEdge:!1,adjustEdgeStartAndEnd:!1,adjustNodePosition:!1,hideAnchors:!0,allowRotate:!1,allowResize:!1,nodeSelectedOutline:!0,textEdit:!1,nodeTextEdit:!1,edgeTextEdit:!1,textDraggable:!1,nodeTextDraggable:!1,edgeTextDraggable:!1},l3=`isSilentMode.stopZoomGraph.stopScrollGraph.stopMoveGraph.snapGrid.adjustEdge.adjustEdgeMiddle.adjustEdgeStartAndEnd.adjustEdgeStart.adjustEdgeEnd.adjustNodePosition.hideAnchors.allowRotate.allowResize.autoExpand.hoverOutline.nodeSelectedOutline.edgeSelectedOutline.textEdit.nodeTextEdit.edgeTextEdit.textDraggable.nodeTextDraggable.edgeTextDraggable.multipleSelectKey.textMode.nodeTextMode.edgeTextMode.nodeTextMultiple.edgeTextMultiple.nodeTextVertical.edgeTextVertical.isPinching`.split(`.`),oHe=function(){function e(e){this.isSilentMode=!1,this.stopZoomGraph=!1,this.stopMoveGraph=!1,this.stopScrollGraph=!1,this.snapGrid=!1,this.isPinching=!1,this.textMode=L0.TEXT,this.textEdit=!0,this.textDraggable=!1,this.nodeTextEdit=!0,this.nodeTextDraggable=!1,this.nodeTextMultiple=!1,this.nodeTextVertical=!1,this.nodeTextMode=L0.TEXT,this.edgeTextMode=L0.TEXT,this.edgeTextEdit=!0,this.edgeTextDraggable=!1,this.edgeTextMultiple=!1,this.edgeTextVertical=!1,this.hideAnchors=!1,this.allowRotate=!1,this.allowResize=!1,this.hoverOutline=!0,this.nodeSelectedOutline=!0,this.adjustNodePosition=!0,this.autoExpand=!1,this.adjustEdge=!0,this.adjustEdgeMiddle=!1,this.adjustEdgeStartAndEnd=!1,this.adjustEdgeStart=!1,this.adjustEdgeEnd=!1,this.edgeSelectedOutline=!0,this.multipleSelectKey=``,ua(this,this.computeConfig(e))}return e.prototype.updateEditConfig=function(e){var t=this.computeConfig(e);ua(this,t)},e.prototype.computeConfig=function(e){var t=e.isSilentMode,n=e.textDraggable,r=e.textMode,i=e.textEdit,a=e.adjustEdgeStartAndEnd,o={};if(t===!1&&ua(o,this.stagedConfig),t===!0&&t!==this.isSilentMode){var s=Io(aHe,l3);this.stagedConfig=Io(this,l3),ua(o,s)}return Po(i)||ua(o,{nodeTextEdit:i,edgeTextEdit:i}),Po(n)||ua(o,{nodeTextDraggable:n,edgeTextDraggable:n}),r&&ua(o,{nodeTextMode:r,edgeTextMode:r}),Do(a)&&ua(o,{adjustEdgeStart:a,adjustEdgeEnd:a}),ua(o,Io(e,l3))},e.prototype.updateTextMode=function(e){this.textMode=e,this.edgeTextMode=e,this.nodeTextMode=e},e.prototype.getConfig=function(){return Io(this,l3)},c3([KQ],e.prototype,`isSilentMode`,void 0),c3([KQ],e.prototype,`stopZoomGraph`,void 0),c3([KQ],e.prototype,`stopMoveGraph`,void 0),c3([KQ],e.prototype,`stopScrollGraph`,void 0),c3([KQ],e.prototype,`snapGrid`,void 0),c3([KQ],e.prototype,`isPinching`,void 0),c3([KQ],e.prototype,`textMode`,void 0),c3([KQ],e.prototype,`textEdit`,void 0),c3([KQ],e.prototype,`textDraggable`,void 0),c3([KQ],e.prototype,`nodeTextEdit`,void 0),c3([KQ],e.prototype,`nodeTextDraggable`,void 0),c3([KQ],e.prototype,`nodeTextMultiple`,void 0),c3([KQ],e.prototype,`nodeTextVertical`,void 0),c3([KQ],e.prototype,`nodeTextMode`,void 0),c3([KQ],e.prototype,`edgeTextMode`,void 0),c3([KQ],e.prototype,`edgeTextEdit`,void 0),c3([KQ],e.prototype,`edgeTextDraggable`,void 0),c3([KQ],e.prototype,`edgeTextMultiple`,void 0),c3([KQ],e.prototype,`edgeTextVertical`,void 0),c3([KQ],e.prototype,`hideAnchors`,void 0),c3([KQ],e.prototype,`allowRotate`,void 0),c3([KQ],e.prototype,`allowResize`,void 0),c3([KQ],e.prototype,`hoverOutline`,void 0),c3([KQ],e.prototype,`nodeSelectedOutline`,void 0),c3([KQ],e.prototype,`adjustNodePosition`,void 0),c3([KQ],e.prototype,`autoExpand`,void 0),c3([KQ],e.prototype,`adjustEdge`,void 0),c3([KQ],e.prototype,`adjustEdgeMiddle`,void 0),c3([KQ],e.prototype,`adjustEdgeStartAndEnd`,void 0),c3([KQ],e.prototype,`adjustEdgeStart`,void 0),c3([KQ],e.prototype,`adjustEdgeEnd`,void 0),c3([KQ],e.prototype,`edgeSelectedOutline`,void 0),c3([Q],e.prototype,`updateEditConfig`,null),c3([Q],e.prototype,`updateTextMode`,null),e}(),sHe=`*`,cHe=function(){function e(){this._events={}}return e.prototype.on=function(e,t,n){var r=this;e?.split(`,`).forEach(function(e){e=e.trim(),r._events[e]||(r._events[e]=[]),r._events[e].push({callback:t,once:!!n})})},e.prototype.once=function(e,t){var n=this;e?.split(`,`).forEach(function(e){e=e.trim(),n.on(e,t,!0)})},e.prototype.emit=function(e,t){var n=this;e?.split(`,`).forEach(function(e){var r=n._events[e]||[],i=n._events[sHe]||[],a=function(r){for(var i=r.length,a=0;a<i;a++)if(r[a]){var o=r[a],s=o.callback;o.once&&(r.splice(a,1),r.length===0&&delete n._events[e],i--,a--),s.apply(n,[t])}};a(r),a(i)})},e.prototype.off=function(e,t){var n=this;e||(this._events={}),e.split(`,`).forEach(function(e){if(!t)delete n._events[e];else{for(var r=n._events[e]||[],i=r.length,a=0;a<i;a++)r[a].callback===t&&(r.splice(a,1),i--,a--);r.length===0&&delete n._events[e]}})},e.prototype.getEvents=function(){return this._events},e.prototype.destroy=function(){this._events={}},e}(),lHe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),uHe=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},dHe=function(e){lHe(t,e);function t(t){var n=e.call(this)||this;n.stepScrollX=0,n.stepScrollY=0,n.pointers=new Map,n.onDragging=function(e){var t=e.deltaX,r=e.deltaY;n.longPressTimer&&=(clearTimeout(n.longPressTimer),void 0),n.setState({isDragging:!0});var i=n.props.graphModel,a=i.transformModel;i.editConfigModel.stopMoveGraph!==!0&&a.translate(t,r)},n.onDragEnd=function(){n.setState({isDragging:!1})},n.zoomHandler=function(e){var t=n.props,r=t.graphModel,i=r.editConfigModel,a=r.transformModel,o=r.gridSize,s=t.graphModel,c=e.deltaX,l=e.deltaY,u=i.stopScrollGraph,d=i.stopZoomGraph;if(!u&&!e.ctrlKey&&!e.metaKey){if(e.preventDefault(),n.stepScrollX+=c,n.stepScrollY+=l,Math.abs(n.stepScrollX)>=o){var f=n.stepScrollX%o,p=n.stepScrollX-f;a.translate(-p*a.SCALE_X,0),n.stepScrollX=f}if(Math.abs(n.stepScrollY)>=o){var m=n.stepScrollY%o,h=n.stepScrollY-m;a.translate(0,-h*a.SCALE_Y),n.stepScrollY=m}}else if(!d){e.preventDefault();var g=s.getPointByClient({x:e.clientX,y:e.clientY}).canvasOverlayPosition,_=g.x,v=g.y;a.zoom(e.deltaY<0,[_,v])}},n.clickHandler=function(e){if(e.target.getAttribute(`name`)===`canvas-overlay`){var t=n.props.graphModel;if(t.selectElements.size>0&&t.clearSelectElements(),n.state.isDragging)return;t.eventCenter.emit(P0.BLANK_CLICK,{e})}},n.handleContextMenu=function(e){if(e.target.getAttribute(`name`)===`canvas-overlay`){e.preventDefault();var t=n.props.graphModel,r=t.getPointByClient({x:e.clientX,y:e.clientY});t.eventCenter.emit(P0.BLANK_CONTEXTMENU,{e,position:r})}},n.pointerDownHandler=function(e){var t=n.props.graphModel,r=t.eventCenter,i=t.editConfigModel,a=t.transformModel.SCALE_X,o=t.gridSize;if(n.pointers.set(e.pointerId,{x:e.clientX,y:e.clientY}),n.longPressTimer&&clearTimeout(n.longPressTimer),e.pointerType===`touch`&&(n.longPressTimer=window.setTimeout(function(){n.handleContextMenu(e)},500)),n.pointers.size===2){var s=n.props.graphModel,c=s.transformModel,l=s.editConfigModel,u=Array.from(n.pointers.values()),d=u[0].x-u[1].x,f=u[0].y-u[1].y,p=(u[0].x+u[1].x)/2,m=(u[0].y+u[1].y)/2;n.pinchStartDistance=Math.hypot(d,f),n.pinchStartScale=c.SCALE_X,n.stepDrag.cancelDrag(),n.pinchLastCenterX=p,n.pinchLastCenterY=m,l.updateEditConfig({isPinching:!0})}else{var h=i.adjustEdge,g=i.adjustNodePosition,_=i.stopMoveGraph,v=e.target,y=!h&&!g;(v.getAttribute(`name`)===`canvas-overlay`||y)&&(_===!0?r.emit(P0.BLANK_MOUSEDOWN,{e}):(n.stepDrag.setStep(o*a),n.stepDrag.handleMouseDown(e)))}},n.pointerMoveHandler=function(e){if(n.pointers.set(e.pointerId,{x:e.clientX,y:e.clientY}),n.pinchStartDistance&&n.pointers.size>=2){var t=n.props,r=t.graphModel,i=t.graphModel,a=i.editConfigModel,o=i.transformModel;if(a.stopZoomGraph)return;n.longPressTimer&&clearTimeout(n.longPressTimer);var s=Array.from(n.pointers.values()),c=s[0].x-s[1].x,l=s[0].y-s[1].y,u=Math.hypot(c,l),d=(n.pinchStartScale??o.SCALE_X)*(u/n.pinchStartDistance),f=(s[0].x+s[1].x)/2,p=(s[0].y+s[1].y)/2,m=r.getPointByClient({x:f,y:p}).canvasOverlayPosition,h=m.x,g=m.y;if(o.zoom(d,[h,g]),!a.stopMoveGraph||a.isPinching){var _=n.pinchLastCenterX===void 0?0:f-n.pinchLastCenterX,v=n.pinchLastCenterY===void 0?0:p-n.pinchLastCenterY;o.translate(_,v),n.pinchLastCenterX=f,n.pinchLastCenterY=p}e.preventDefault()}},n.pointerUpHandler=function(e){n.pointers.delete(e.pointerId),n.longPressTimer&&=(clearTimeout(n.longPressTimer),void 0),n.pointers.size<2&&(n.pinchStartDistance=void 0,n.pinchStartScale=void 0,n.pinchLastCenterX=void 0,n.pinchLastCenterY=void 0,n.props.graphModel.editConfigModel.updateEditConfig({isPinching:!1}),n.clickHandler(e))};var r=t.graphModel,i=r.gridSize,a=r.eventCenter;return n.stepDrag=new R0({onDragging:n.onDragging,onDragEnd:n.onDragEnd,step:i,eventType:`BLANK`,isStopPropagation:!1,eventCenter:a,model:void 0}),n.state={isDragging:!1},n}return t.prototype.render=function(){var e=this.props.graphModel.transformModel.getTransformStyle().transform,t=this.props.children,n=this.state.isDragging;return S0(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`100%`,height:`100%`,name:`canvas-overlay`,onWheel:this.zoomHandler,onPointerDown:this.pointerDownHandler,onPointerMove:this.pointerMoveHandler,onPointerUp:this.pointerUpHandler,onPointerCancel:this.pointerUpHandler,onContextMenu:this.handleContextMenu,style:{touchAction:`none`,WebkitUserSelect:`none`},className:n?`lf-canvas-overlay lf-dragging`:`lf-canvas-overlay lf-drag-able`,children:S0(`g`,{transform:e,children:t})})},t=uHe([F6],t),t}(WZ),u3=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),d3=function(){return d3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},d3.apply(this,arguments)},fHe=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},pHe=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},f3=function(e){u3(t,e);function t(){var t=e.call(this)||this;return t.onDragging=function(e){var n=e.event,r=t.props,i=r.graphModel,a=r.bezierModel,o=r.type,s=i.getPointByClient({x:n.clientX,y:n.clientY}).canvasOverlayPosition,c=s.x,l=s.y;a.updateAdjustAnchor({x:c,y:l},o),i.eventCenter.emit(P0.EDGE_ADJUST,{data:a.getData()})},t.onDragEnd=function(){var e=t.props.bezierModel;e.isDragging=!1},t.dragHandler=new R0({onDragging:t.onDragging,onDragEnd:t.onDragEnd}),t}return t.prototype.render=function(){var e=this,t=this.props.position,n=t.x,r=t.y,i=this.props.bezierModel.getEdgeStyle().adjustAnchor;return S0(u4,d3({className:`lf-bezier-adjust-anchor`,x:n,y:r},i,{onPointerDown:function(t){e.dragHandler.handleMouseDown(t)}}))},t}(WZ),mHe=function(e){u3(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getBezierAdjust=function(e,t){var n=e.path,r=e.id,i=pHe(p2(n),4),a=i[0],o=i[1],s=i[2],c=i[3],l=e.getEdgeStyle().adjustLine,u=[];return u.push(S0(i4,d3({x1:a.x,y1:a.y,x2:o.x,y2:o.y},l))),u.push(S0(f3,{position:o,bezierModel:e,graphModel:t,type:`sNext`},`${r}_ePre`)),u.push(S0(i4,d3({x1:c.x,y1:c.y,x2:s.x,y2:s.y},l))),u.push(S0(f3,{position:s,bezierModel:e,graphModel:t,type:`ePre`},`${r}_sNext`)),u},t.prototype.selectedBezierEdge=function(){for(var e=this.props.graphModel,t=e.edges,n=[],r=0;r<t.length;r++){var i=t[r];i.isSelected&&i.modelType===N0.BEZIER_EDGE&&i.draggable&&n.push(this.getBezierAdjust(i,e))}return n},t.prototype.render=function(){return S0(`g`,{className:`lf-bezier-adjust`,children:this.selectedBezierEdge()})},t=fHe([F6],t),t}(WZ),hHe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),gHe=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_He=function(e){hHe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var e=this.props.background;return S0(`div`,{className:`lf-background`,children:S0(`div`,{style:j(e)?e:{},className:`lf-background-area`})})},t=gHe([F6],t),t}(WZ),p3=function(){return p3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},p3.apply(this,arguments)},vHe=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},m3={opacity:1,boldIndices:[5],dashArrayConfig:{pattern:[2,1]},customBoldWidth:2};function yHe(e){var t,n,r=Math.max(0,Math.min(1,e.opacity??m3.opacity)),i=new Set,a=Array.isArray(e.boldIndices)?e.boldIndices:m3.boldIndices;try{for(var o=vHe(a),s=o.next();!s.done;s=o.next()){var c=s.value;typeof c==`number`&&Number.isFinite(c)&&c>0&&i.add(Math.floor(c))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}var l=Array.from(i),u={pattern:Array.isArray(e.dashArrayConfig?.pattern)?e.dashArrayConfig.pattern:m3.dashArrayConfig.pattern},d=e.customBoldWidth;return{opacity:r,boldIndices:l.length?l:m3.boldIndices,dashArrayConfig:u,customBoldWidth:d}}function h3(e){return e===!1?{mode:`disabled`,config:{opacity:1,boldIndices:[],dashArrayConfig:{pattern:[]}}}:e===!0||e==null?{mode:`default`,config:p3({},m3)}:{mode:`custom`,config:yHe(e)}}var bHe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),xHe=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},SHe=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},CHe=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},g3=function(e){bHe(t,e);function t(t){var n=e.call(this,t)||this;return n.id=Z2(),n.gridOptions=n.props.graphModel.grid,n}return t.prototype.renderDot=function(){var e=this.gridOptions,t=e.config,n=e.size,r=n===void 0?1:n,i=e.visible,a=t??{},o=a.color,s=a.thickness,c=Math.min(Math.max(2,s===void 0?2:s),r/4);return S0(`g`,{fill:o,opacity:+!!i,children:[S0(`circle`,{cx:0,cy:0,r:c/2}),S0(`circle`,{cx:0,cy:r,r:c/2}),S0(`circle`,{cx:r,cy:0,r:c/2}),S0(`circle`,{cx:r,cy:r,r:c/2})]})},t.prototype.getDashArrayForSize=function(e){return((e?.pattern)?.filter(function(e){return typeof e==`number`&&e>0}))?.join(`,`)||`2,1`},t.prototype.getPeriod=function(e){var t=Array.isArray(e?.boldIndices)?e.boldIndices.filter(function(e){return typeof e==`number`&&e>0}):[];return t.length?Math.max.apply(Math,CHe([],SHe(t),!1)):0},t.prototype.getBoldStrokeWidth=function(e,t,n,r){if(typeof e?.customBoldWidth==`number`)return e.customBoldWidth;var i=Math.max(1,n??1),a=Math.max(1,r??this.getPeriod(e));return Math.min(i,t*a/2)/2},t.prototype.renderMeshEdgeLines=function(e,t,n,r,i){return S0(`g`,{opacity:r,fill:`transparent`,children:[{d:`M 0 0 H ${e}`},{d:`M 0 ${e} H ${e}`},{d:`M 0 0 V ${e}`},{d:`M ${e} 0 V ${e}`}].map(function(e){return S0(`path`,{d:e.d,stroke:t,strokeWidth:n/2,strokeDasharray:i,strokeLinecap:`butt`,fill:`transparent`})})})},t.prototype.renderMesh=function(){var e=this.gridOptions,t=e.config,n=e.size,r=n===void 0?1:n,i=e.visible,a=e.majorBold,o=h3(a).config,s=o.opacity,c=t?.color??`#D7DEEB`,l=t?.thickness??1,u=Math.min(Math.max(1,l),r/2),d=i?s:0,f=a===!1?void 0:this.getDashArrayForSize(o.dashArrayConfig);return this.renderMeshEdgeLines(r,c,u,d,f)},t.prototype.render=function(){var e=this,t=this.props.graphModel,n=t.transformModel,r=t.grid;this.gridOptions=r;var i=this.gridOptions,a=i.type,o=i.config,s=o===void 0?{}:o,c=i.size,l=c===void 0?1:c,u=i.majorBold,d=u!==!1&&!No(u),f=h3(u).config,p=`matrix(${[n.SCALE_X,n.SKEW_Y,n.SKEW_X,n.SCALE_Y,n.TRANSLATE_X,n.TRANSLATE_Y].join(`,`)})`,m=Math.min(Math.max(2,s.thickness??1),l/4),h=d?f.opacity:1;return S0(`div`,{className:`lf-grid`,children:S0(`svg`,{xmlns:`http://www.w3.org/2000/svg`,version:`1.1`,width:`100%`,height:`100%`,children:[S0(`defs`,{children:[S0(`pattern`,{id:this.id,patternUnits:`userSpaceOnUse`,patternTransform:p,x:`0`,y:`0`,width:l,height:l,children:[a===`dot`&&this.renderDot(),a===`mesh`&&this.renderMesh()]}),a===`dot`&&f.boldIndices.length?S0(`pattern`,{id:`${this.id}-dot-major`,patternUnits:`userSpaceOnUse`,patternTransform:p,x:`0`,y:`0`,width:l*this.getPeriod(f),height:l*this.getPeriod(f),children:S0(`g`,{fill:this.gridOptions.config?.color??`#D7DEEB`,opacity:this.gridOptions.visible?h:0,children:[S0(`circle`,{cx:0,cy:0,r:m*1.5/2}),S0(`circle`,{cx:l*this.getPeriod(f),cy:0,r:m*1.5/2}),S0(`circle`,{cx:0,cy:l*this.getPeriod(f),r:m*1.5/2}),S0(`circle`,{cx:l*this.getPeriod(f),cy:l*this.getPeriod(f),r:m*1.5/2})]})}):null,a===`mesh`&&f.boldIndices.length?S0(`pattern`,{id:`${this.id}-major`,patternUnits:`userSpaceOnUse`,patternTransform:p,x:`0`,y:`0`,width:l*this.getPeriod(f),height:l*this.getPeriod(f),children:f.boldIndices.map(function(t){return S0(`g`,{children:[S0(`path`,{d:`M ${l*t} 0 V ${l*e.getPeriod(f)}`,stroke:e.gridOptions.config?.color??`#D7DEEB`,strokeWidth:e.getBoldStrokeWidth(f,l,(e.gridOptions.config??{}).thickness,e.getPeriod(f)),opacity:e.gridOptions.visible?h:0,fill:`transparent`}),S0(`path`,{d:`M 0 ${l*t} H ${l*e.getPeriod(f)}`,stroke:e.gridOptions.config?.color??`#D7DEEB`,strokeWidth:e.getBoldStrokeWidth(f,l,(e.gridOptions.config??{}).thickness,e.getPeriod(f)),opacity:e.gridOptions.visible?h:0,fill:`transparent`})]})})}):null]}),S0(`rect`,{width:`100%`,height:`100%`,fill:`url(#${this.id})`}),a===`dot`&&d&&f.boldIndices.length?S0(`rect`,{width:`100%`,height:`100%`,fill:`url(#${this.id}-dot-major)`}):null,a===`mesh`&&d&&f.boldIndices.length?S0(`rect`,{width:`100%`,height:`100%`,fill:`url(#${this.id}-major)`}):null]})})},t=xHe([F6],t),t}(WZ);(function(e){function t(e){var t=Va(k0);return typeof e==`number`?ua(t,{size:e}):typeof e==`boolean`?ua(t,{visible:e}):ua(t,e)}e.getGridOptions=t})(g3||={});var wHe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),THe=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},EHe=function(e){wHe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var e=this.props.graphModel.transformModel.getTransformStyle().transform,t=this.props.children;return S0(`svg`,{xmlns:`http://www.w3.org/2000/svg`,version:`1.1`,width:`100%`,height:`100%`,className:`modification-overlay`,children:S0(`g`,{transform:e,children:t})})},t=THe([F6],t),t}(WZ),DHe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),_3=function(){return _3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},_3.apply(this,arguments)},OHe=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},kHe=function(e){DHe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.renderRectOutline=function(e,t,n,r){var i=t||{},a=i.widthOffset,o=a===void 0?r.widthOffset:a,s=i.heightOffset,c=J0(e,o,s===void 0?r.heightOffset:s),l=c.x,u=c.y,d=c.width,f=c.height;return S0(o4,_3({className:n,x:l,y:u,width:d,height:f},t))},t.prototype.getNodesOutline=function(){var e=this.props.graphModel,t=e.nodes,n=e.editConfigModel,r=n.hoverOutline,i=n.nodeSelectedOutline,a=[];return t.forEach(function(e){if(e.isHovered||e.isSelected){var t=e.isHovered,n=e.isSelected,o=e.x,s=e.y,c=e.width,l=e.height;if(i&&n||r&&t){var u=e.getOutlineStyle()||{},d={};if(Object.keys(u).forEach(function(e){e!==`hover`&&(d[e]=u[e])}),t){var f=u.hover;d=_3(_3({},d),f)}a.push(S0(o4,_3({transform:e.transform,className:`lf-outline-node`,x:o,y:s,width:c+4,height:l+4},d)))}}}),a},t.prototype.getEdgeOutline=function(){for(var e=this.props.graphModel,t=e.edges,n=e.editConfigModel,r=n.edgeSelectedOutline,i=n.hoverOutline,a=[],o=0;o<t.length;o++){var s=t[o];(r&&s.isSelected||i&&s.isHovered)&&(s.modelType===N0.LINE_EDGE?a.push(this.getLineOutline(s)):s.modelType===N0.POLYLINE_EDGE?a.push(this.getPolylineOutline(s)):s.modelType===N0.BEZIER_EDGE&&a.push(this.getBezierOutline(s)))}return a},t.prototype.getLineOutline=function(e){var t=e.startPoint,n=e.endPoint,r=e.getOutlineStyle();return this.renderRectOutline([t,n],r,`lf-outline-edge`,{widthOffset:10,heightOffset:10})},t.prototype.getPolylineOutline=function(e){var t=e.points,n=l2(t),r=e.getOutlineStyle();return this.renderRectOutline(n,r,`lf-outline`,{widthOffset:8,heightOffset:16})},t.prototype.getBezierOutline=function(e){var t=e.path,n=p2(t),r=e.getOutlineStyle();return this.renderRectOutline(n,r,`lf-outline`,{widthOffset:8,heightOffset:16})},t.prototype.render=function(){return S0(`g`,{className:`lf-outline`,children:[this.getNodesOutline(),this.getEdgeOutline()]})},t=OHe([F6],t),t}(WZ),AHe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),v3=function(){return v3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},v3.apply(this,arguments)},jHe=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},MHe=function(e){AHe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var e=this.props.snaplineModel,t=e??{},n=t.position,r=t.isShowHorizontal,i=t.isShowVertical,a=e?.getStyle(),o=n??{},s=o.x,c=s===void 0?0:s,l=o.y,u=l===void 0?0:l,d=v3(v3({x1:-1e5,y1:u,x2:1e5,y2:u},a),{stroke:r?a?.stroke:`none`}),f=v3(v3({x1:c,y1:-1e5,x2:c,y2:1e5},a),{stroke:i?a?.stroke:`none`});return S0(`g`,{className:`lf-snapline`,children:[S0(i4,v3({},d)),S0(i4,v3({},f))]})},t=jHe([F6],t),t}(WZ),NHe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),PHe=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},FHe=function(e){NHe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidMount=function(){this.triggerToolRender()},t.prototype.componentDidUpdate=function(){this.triggerToolRender()},t.prototype.getTools=function(){var e=this.props,t=e.tool,n=e.graphModel,r=n.textEditElement,i=t.getTools().map(function(e){return BZ(e,{textEditElement:r,graphModel:n,lf:t.instance})});return t.components=i,i},t.prototype.triggerToolRender=function(){var e=this.props,t=e.tool,n=e.graphModel,r=document.querySelector(`#ToolOverlay_${n.flowId}`),i=t.getInstance();i.components.forEach(function(e){return e(i,r)}),i.components=[]},t.prototype.render=function(){var e=this.props.graphModel;return S0(`div`,{className:`lf-tool-overlay`,id:`ToolOverlay_${e.flowId}`,children:this.getTools()})},t=PHe([F6],t),t}(WZ),y3=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},b3=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},IHe={false:[-1/0,-1/0,1/0,1/0],true:[-1/0,-1/0,1/0,1/0],vertical:[-1/0,0,1/0,0],horizontal:[0,-1/0,0,1/0]},LHe=function(){function e(e,t){this.MINI_SCALE_SIZE=.2,this.MAX_SCALE_SIZE=16,this.SCALE_X=1,this.SKEW_Y=0,this.SKEW_X=0,this.SCALE_Y=1,this.TRANSLATE_X=0,this.TRANSLATE_Y=0,this.ZOOM_SIZE=.04,this.translateLimitMinX=-1/0,this.translateLimitMinY=-1/0,this.translateLimitMaxX=1/0,this.translateLimitMaxY=1/0,this.eventCenter=e;var n=t.stopMoveGraph,r=n!==void 0&&n;this.updateTranslateLimits(r)}return e.prototype.setZoomMiniSize=function(e){this.MINI_SCALE_SIZE=e},e.prototype.setZoomMaxSize=function(e){this.MAX_SCALE_SIZE=e},e.prototype.HtmlPointToCanvasPoint=function(e){var t=b3(e,2),n=t[0],r=t[1];return[(n-this.TRANSLATE_X)/this.SCALE_X,(r-this.TRANSLATE_Y)/this.SCALE_Y]},e.prototype.CanvasPointToHtmlPoint=function(e){var t=b3(e,2),n=t[0],r=t[1];return[n*this.SCALE_X+this.TRANSLATE_X,r*this.SCALE_Y+this.TRANSLATE_Y]},e.prototype.moveCanvasPointByHtml=function(e,t,n){var r=b3(e,2),i=r[0],a=r[1];return[i+t/this.SCALE_X,a+n/this.SCALE_Y]},e.prototype.fixDeltaXY=function(e,t){return[e/this.SCALE_X,t/this.SCALE_Y]},e.prototype.getTransformStyle=function(){return{transform:`matrix(${[this.SCALE_X,this.SKEW_Y,this.SKEW_X,this.SCALE_Y,this.TRANSLATE_X,this.TRANSLATE_Y].join(`,`)})`}},e.prototype.zoom=function(e,t){e===void 0&&(e=!1);var n=this.SCALE_X,r=this.SCALE_Y;return typeof e==`number`?(n=e,r=e):e?(n+=this.ZOOM_SIZE,r+=this.ZOOM_SIZE):(n-=this.ZOOM_SIZE,r-=this.ZOOM_SIZE),n<this.MINI_SCALE_SIZE||n>this.MAX_SCALE_SIZE||(t&&(this.TRANSLATE_X-=(n-this.SCALE_X)*t[0],this.TRANSLATE_Y-=(r-this.SCALE_Y)*t[1]),this.SCALE_X=n,this.SCALE_Y=r,this.emitGraphTransform(`zoom`)),`${this.SCALE_X*100}%`},e.prototype.emitGraphTransform=function(e){this.eventCenter.emit(P0.GRAPH_TRANSFORM,{type:e,transform:{SCALE_X:this.SCALE_X,SKEW_Y:this.SKEW_Y,SKEW_X:this.SKEW_X,SCALE_Y:this.SCALE_Y,TRANSLATE_X:this.TRANSLATE_X,TRANSLATE_Y:this.TRANSLATE_Y}})},e.prototype.resetZoom=function(){this.SCALE_X=1,this.SCALE_Y=1,this.emitGraphTransform(`resetZoom`)},e.prototype.translate=function(e,t){this.TRANSLATE_X+e<=this.translateLimitMaxX&&this.TRANSLATE_X+e>=this.translateLimitMinX&&(this.TRANSLATE_X+=e),this.TRANSLATE_Y+t<=this.translateLimitMaxY&&this.TRANSLATE_Y+t>=this.translateLimitMinY&&(this.TRANSLATE_Y+=t),this.emitGraphTransform(`translate`)},e.prototype.focusOn=function(e,t,n,r){var i=b3(this.CanvasPointToHtmlPoint([e,t]),2),a=i[0],o=i[1],s=b3([n/2-a,r/2-o],2),c=s[0],l=s[1];this.TRANSLATE_X+=c,this.TRANSLATE_Y+=l,this.emitGraphTransform(`focusOn`)},e.prototype.updateTranslateLimits=function(e){var t=b3(Array.isArray(e)&&e.length===4?e:IHe[e.toString()],4);this.translateLimitMinX=t[0],this.translateLimitMinY=t[1],this.translateLimitMaxX=t[2],this.translateLimitMaxY=t[3]},y3([KQ],e.prototype,`SCALE_X`,void 0),y3([KQ],e.prototype,`SKEW_Y`,void 0),y3([KQ],e.prototype,`SKEW_X`,void 0),y3([KQ],e.prototype,`SCALE_Y`,void 0),y3([KQ],e.prototype,`TRANSLATE_X`,void 0),y3([KQ],e.prototype,`TRANSLATE_Y`,void 0),y3([KQ],e.prototype,`ZOOM_SIZE`,void 0),y3([Q],e.prototype,`zoom`,null),y3([Q],e.prototype,`resetZoom`,null),y3([Q],e.prototype,`translate`,null),y3([Q],e.prototype,`focusOn`,null),e}(),RHe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),x3=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},zHe=function(e){RHe(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.parentTransform=n.parentTransform,r}return t.prototype.setParentTransform=function(e){this.parentTransform=e},t.prototype.getCumulativeScale=function(){var e=this.SCALE_X,n=this.SCALE_Y;if(this.parentTransform){if(this.parentTransform instanceof t){var r=this.parentTransform.getCumulativeScale();e*=r.scaleX,n*=r.scaleY}else e*=this.parentTransform.SCALE_X,n*=this.parentTransform.SCALE_Y}return{scaleX:e,scaleY:n}},t.prototype.getCumulativeTranslate=function(){var e=this.TRANSLATE_X,n=this.TRANSLATE_Y;if(this.parentTransform&&this.parentTransform instanceof t){var r=this.parentTransform.getCumulativeScale(),i=r.scaleX,a=r.scaleY;e=i*e,n=a*n}return{translateX:e,translateY:n}},t.prototype.HtmlPointToCanvasPoint=function(e){var t=x3(e,2),n=t[0],r=t[1],i=this.getCumulativeScale(),a=i.scaleX,o=i.scaleY,s=this.getCumulativeTranslate(),c=s.translateX,l=s.translateY;return[(n-c)/a,(r-l)/o]},t.prototype.CanvasPointToHtmlPoint=function(e){var t=x3(e,2),n=t[0],r=t[1],i=this.getCumulativeScale(),a=i.scaleX,o=i.scaleY,s=this.getCumulativeTranslate(),c=s.translateX,l=s.translateY;return[n*a+c,r*o+l]},t.prototype.moveCanvasPointByHtml=function(e,t,n){var r=x3(e,2),i=r[0],a=r[1],o=this.getCumulativeScale(),s=o.scaleX,c=o.scaleY;return[i+t/s,a+n/c]},t.prototype.fixDeltaXY=function(e,t){var n=this.getCumulativeScale(),r=n.scaleX,i=n.scaleY;return[e/r,t/i]},t}(LHe),S3=function(){return S3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},S3.apply(this,arguments)},C3=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},BHe=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},w3=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},T3=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},VHe=function(){function e(e){var t=this;this.themeMode=`default`,this.modelMap=new Map,this.nodeModelMap=new Map,this.edgeModelMap=new Map,this.elementsModelMap=new Map,this.nodeMoveRules=[],this.nodeResizeRules=[],this.nodes=[],this.edges=[],this.overlapMode=F0.DEFAULT,this.gridSize=1,this.partial=!1,this.waitCleanEffects=[];var n=e.container,r=e.partial,i=e.background,a=i===void 0?{}:i,o=e.grid,s=e.idGenerator,c=e.edgeGenerator,l=e.animation,u=e.customTrajectory,d=e.customTargetAnchor;this.themeMode=e.themeMode||`default`;var f=A0[this.themeMode]||A0.default,p=O0[this.themeMode]||O0.default;this.rootEl=n,this.partial=!!r,this.background=a,this.customStyles=e.style||{},this.theme=b4(e.style,e.themeMode),this.grid=g3.getGridOptions(typeof o==`object`&&o?ua({},f,o):o??!1),this.theme.grid=Va(this.grid),e.snapGrid&&(this.gridSize=this.grid.size||1),a&&(this.background=Va(ua({},p,a)),this.theme.background=Va(ua({},p,a))),this.edgeType=e.edgeType||`polyline`,this.animation=hBe(l),this.overlapMode=e.overlapMode||F0.DEFAULT,this.isMiniMap=e.isMiniMap||!1,this.width=e.width??this.rootEl.getBoundingClientRect().width,this.isContainerWidth=No(e.width),this.height=e.height??this.rootEl.getBoundingClientRect().height,this.isContainerHeight=No(e.height);var m=new ResizeObserver(oo((function(e){var n,r;try{for(var i=BHe(e),a=i.next();!a.done;a=i.next()){var o=a.value;if(o.target===t.rootEl){if(!document.body.contains(t.rootEl))return;t.resize(),t.eventCenter.emit(`graph:resize`,{target:t.rootEl,contentRect:o.contentRect})}}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}),16));m.observe(this.rootEl),this.waitCleanEffects.push(function(){m.disconnect()}),this.eventCenter=new cHe,this.editConfigModel=new oHe(e),this.transformModel=new zHe(this.eventCenter,e),this.flowId=Z2(),this.idGenerator=s,this.edgeGenerator=HBe(this,c),this.customTrajectory=u,this.customTargetAnchor=d}return Object.defineProperty(e.prototype,"nodesMap",{get:function(){return this.nodes.reduce(function(e,t,n){return e[t.id]={index:n,model:t},e},{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"edgesMap",{get:function(){return this.edges.reduce(function(e,t,n){return e[t.id]={index:n,model:t},e},{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"modelsMap",{get:function(){return T3(T3([],w3(this.nodes),!1),w3(this.edges),!1).reduce(function(e,t){return e[t.id]=t,e},{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sortElements",{get:function(){for(var e=function(e){return T3([],w3(e),!1).sort(function(e,t){return e.zIndex-t.zIndex})}(T3(T3([],w3(this.nodes),!1),w3(this.edges),!1)),t=[],n=[-200,-200],r=[this.width+200,this.height+200],i=0;i<e.length;i++){var a=e[i];a.visible&&(!this.partial||a.isSelected||this.isElementInArea(a,n,r,!1,!1))&&t.push(a)}return t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textEditElement",{get:function(){var e=this.nodes.find(function(e){return e.state===j0.TEXT_EDIT}),t=this.edges.find(function(e){return e.state===j0.TEXT_EDIT});return e||t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectElements",{get:function(){var e=new Map;return this.nodes.forEach(function(t){t.isSelected&&e.set(t.id,t)}),this.edges.forEach(function(t){t.isSelected&&e.set(t.id,t)}),e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selectNodes",{get:function(){var e=[];return this.nodes.forEach(function(t){t.isSelected&&e.push(t)}),e},enumerable:!1,configurable:!0}),e.prototype.getAreaElement=function(e,t,n,r,i){var a=this;n===void 0&&(n=!0),r===void 0&&(r=!0),i===void 0&&(i=!1);var o=[];return lo(T3(T3([],w3(this.nodes),!1),w3(this.edges),!1),function(s){var c=a.isElementInArea(s,e,t,n,r);(!i||s.visible)&&c&&o.push(s)}),o},e.prototype.getModel=function(e){return this.modelMap.get(e)},e.prototype.getNodeModelById=function(e){return this.fakeNode&&e===this.fakeNode.id?this.fakeNode:this.nodesMap[e]?.model},e.prototype.getPointByClient=function(e){var t=e.x,n=e.y,r=this.rootEl.getBoundingClientRect(),i={x:t-r.left,y:n-r.top},a=w3(this.transformModel.HtmlPointToCanvasPoint([i.x,i.y]),2);return{domOverlayPosition:i,canvasOverlayPosition:{x:a[0],y:a[1]}}},e.prototype.isElementInArea=function(e,t,n,r,i){var a;if(r===void 0&&(r=!0),i===void 0&&(i=!0),e.BaseType===M0.NODE){e=e;for(var o=B2(e),s=o.minX,c=o.minY,l=o.maxX,u=o.maxY,d=[{x:s,y:c},{x:l,y:c},{x:l,y:u},{x:s,y:u}],f=i,p=0;p<d.length;p++){var m=d[p],h=m.x,g=m.y;if(a=w3(this.transformModel.CanvasPointToHtmlPoint([h,g]),2),h=a[0],g=a[1],C2([h,g],t,n)!==i){f=!i;break}}return f}if(e.BaseType===M0.EDGE){e=e;var _=e.startPoint,v=e.endPoint,y=this.transformModel.CanvasPointToHtmlPoint([_.x,_.y]),b=this.transformModel.CanvasPointToHtmlPoint([v.x,v.y]),x=C2(y,t,n),S=C2(b,t,n);return r?x&&S:x||S}return!1},e.prototype.graphDataToModel=function(e){var t=this;if(!e)this.clearData();else if(this.elementsModelMap.clear(),this.nodeModelMap.clear(),this.edgeModelMap.clear(),this.nodes=e.nodes?vo(e.nodes,function(e){var n=t.getModelAfterSnapToGrid(e);return t.elementsModelMap.set(n.id,n),t.nodeModelMap.set(n.id,n),n}):[],e.edges){var n=this.edgeType;this.edges=vo(e.edges,function(e){var r=t.getModel(e.type??n);if(!r)throw Error(`找不到${e.type}对应的边。`);var i=new r(e,t);return t.edgeModelMap.set(i.id,i),t.elementsModelMap.set(i.id,i),i})}else this.edges=[]},e.prototype.modelToGraphData=function(){var e=[];this.edges.forEach(function(t){var n=t.getData();n&&!t.virtual&&e.push(n)});var t=[];return this.nodes.forEach(function(e){var n=e.getData();n&&!e.virtual&&t.push(n)}),{nodes:t,edges:e}},e.prototype.modelToHistoryData=function(){for(var e=!1,t=[],n=0;n<this.nodes.length;n++){var r=this.nodes[n];if(r.isDragging){e=!0;break}t.push(r.getHistoryData())}if(e)return!1;for(var i=!1,a=[],o=0;o<this.edges.length;o++){var s=this.edges[o];if(s.isDragging){i=!0;break}s.virtual||a.push(s.getHistoryData())}return!i&&{nodes:t,edges:a}},e.prototype.getEdgeModelById=function(e){return this.edgesMap[e]?.model},e.prototype.getElement=function(e){return this.modelsMap[e]},e.prototype.getNodeEdges=function(e){for(var t=[],n=0;n<this.edges.length;n++){var r=this.edges[n],i=r.sourceNodeId===e,a=r.targetNodeId===e;(i||a)&&t.push(r)}return t},e.prototype.getSelectElements=function(e){e===void 0&&(e=!0);var t=this.selectElements,n={nodes:[],edges:[]};return t.forEach(function(r){if(r.BaseType===M0.NODE&&n.nodes.push(r.getData()),r.BaseType===M0.EDGE){var i=r.getData(),a=t.get(i.sourceNodeId)&&t.get(i.targetNodeId);(e||a)&&n.edges.push(i)}}),n},e.prototype.updateAttributes=function(e,t){this.getElement(e)?.updateAttributes(t)},e.prototype.changeNodeId=function(e,t){return t||=Z2(),this.nodesMap[t]||!this.nodesMap[e]?``:(this.edges.forEach(function(n){n.sourceNodeId===e&&(n.sourceNodeId=t),n.targetNodeId===e&&(n.targetNodeId=t)}),this.nodesMap[e].model.id=t,this.nodesMap[t]=this.nodesMap[e],t)},e.prototype.changeEdgeId=function(e,t){return t||=Z2(),this.edgesMap[t]||!this.edgesMap[e]?``:(this.edges.forEach(function(n){n.id===e&&n.changeEdgeId(t)}),t)},e.prototype.getTextModel=function(e){var t=this.editConfigModel,n=t.textMode,r=t.nodeTextMode,i=t.edgeTextMode;if(e.BaseType===M0.NODE)return e.textMode||r||n||L0.TEXT;if(e.BaseType===M0.EDGE)return e.textMode||i||n||L0.TEXT},e.prototype.setOverlapMode=function(e){this.overlapMode=e,this.eventCenter.emit(`overlap:change`,{overlapMode:e})},e.prototype.setTextMode=function(e,t){this.editConfigModel.updateEditConfig({textMode:e})},e.prototype.setFakeNode=function(e){this.fakeNode=e},e.prototype.removeFakeNode=function(){this.fakeNode=null},e.prototype.setModel=function(e,t){return this.modelMap.set(e,t)},e.prototype.toFront=function(e){var t,n=this.nodesMap[e]?.model||this.edgesMap[e]?.model;if(n){if(this.overlapMode===F0.STATIC)return;if(this.overlapMode===F0.INCREASE){this.setElementZIndex(e,`top`);return}(t=this.topElement)==null||t.setZIndex(),n.setZIndex(xBe),this.topElement=n}},e.prototype.setElementZIndex=function(e,t){var n=this.nodesMap[e]?.model||this.edgesMap[e]?.model;if(n){var r=void 0;typeof t==`number`?r=t:(t===`top`&&(r=x4()),t===`bottom`&&(r=HVe())),n.setZIndex(r)}},e.prototype.deleteNode=function(e){var t=this.nodesMap[e].model,n=t.getData();this.deleteEdgeBySource(e),this.deleteEdgeByTarget(e),this.nodes.splice(this.nodesMap[e].index,1),this.eventCenter.emit(P0.NODE_DELETE,{data:n,model:t})},e.prototype.addNode=function(e,t,n){t===void 0&&(t=P0.NODE_ADD);var r=T0(e),i=r.id;i&&this.nodesMap[i]&&delete r.id;var a=this.getModelAfterSnapToGrid(r);this.nodes.push(a);var o={data:a.getData()};return n&&(o.e=n),this.eventCenter.emit(t,o),a},e.prototype.getModelAfterSnapToGrid=function(e){var t=this.getModel(e.type),n=this.editConfigModel.snapGrid;if(!t)throw Error(`找不到${e.type}对应的节点,请确认是否已注册此类型节点。`);var r=e.x,i=e.y;r&&i&&(e.x=b2(r,this.gridSize,n),e.y=b2(i,this.gridSize,n),typeof e.text==`object`&&e.text!==null&&(e.text.x+=e.x-r,e.text.y+=e.y-i));var a=new t(e,this);return this.nodeModelMap.set(a.id,a),this.elementsModelMap.set(a.id,a),a},e.prototype.cloneNode=function(e){var t=this.getNodeModelById(e),n=t?.getData();if(n){n.x+=30,n.y+=30,n.id=``,typeof n.text==`object`&&n.text!==null&&(n.text.x+=30,n.text.y+=30);var r=this.addNode(n);return r.setSelected(!0),t?.setSelected(!1),r.getData()}},e.prototype.moveNode=function(e,t,n,r){var i;r===void 0&&(r=!1);var a=this.nodesMap[e];if(a){var o=a.model;i=w3(o.getMoveDistance(t,n,r),2),t=i[0],n=i[1],this.moveEdge(e,t,n)}},e.prototype.moveNode2Coordinate=function(e,t,n,r){r===void 0&&(r=!1);var i=this.nodesMap[e];if(i){var a=i.model,o=a.x,s=a.y,c=t-o,l=n-s;this.moveNode(e,c,l,r)}},e.prototype.editText=function(e){this.setElementStateById(e,j0.TEXT_EDIT)},e.prototype.addEdge=function(e){var t=T0(e),n=t.type;n||=this.edgeType,t.id&&this.edgesMap[t.id]&&(delete t.id,delete t.sourceAnchorId,delete t.targetAnchorId);var r=this.getModel(n);if(!r)throw Error(`找不到${n}对应的边,请确认是否已注册此类型边。`);var i=new r(S3(S3({},t),{type:n}),this);this.edgeModelMap.set(i.id,i),this.elementsModelMap.set(i.id,i);var a=i.getData();return this.edges.push(i),this.eventCenter.emit(P0.EDGE_ADD,{data:a}),i},e.prototype.moveEdge=function(e,t,n){for(var r=0;r<this.edges.length;r++){var i=this.edges[r],a=i.textPosition,o=a.x,s=a.y,c=this.edges[r].sourceNodeId===e,l=this.edges[r].targetNodeId===e;c&&i.moveStartPoint(t,n),l&&i.moveEndPoint(t,n),(c||l)&&this.handleEdgeTextMove(i,o,s)}},e.prototype.handleEdgeTextMove=function(e,t,n){if(e.customTextPosition)e.resetTextPosition();else{if(e.modelType===N0.POLYLINE_EDGE&&e.text?.value){var r=e.text,i=g2(r,e.points);e.moveText(i.x-r.x,i.y-r.y)}var a=e.textPosition,o=a.x,s=a.y;e.moveText(o-t,s-n)}},e.prototype.deleteEdgeBySourceAndTarget=function(e,t){for(var n=0;n<this.edges.length;n++)if(this.edges[n].sourceNodeId===e&&this.edges[n].targetNodeId===t){var r=this.edges[n].getData();this.edges.splice(n,1),n--,this.eventCenter.emit(P0.EDGE_DELETE,{data:r})}},e.prototype.deleteEdgeById=function(e){if(this.edgesMap[e]){var t=this.edgesMap[e].index,n=this.edgesMap[e].model.getData();this.edges.splice(t,1),this.eventCenter.emit(P0.EDGE_DELETE,{data:n})}},e.prototype.deleteEdgeBySource=function(e){for(var t=0;t<this.edges.length;t++)if(this.edges[t].sourceNodeId===e){var n=this.edges[t].getData();this.edges.splice(t,1),t--,this.eventCenter.emit(P0.EDGE_DELETE,{data:n})}},e.prototype.deleteEdgeByTarget=function(e){for(var t=0;t<this.edges.length;t++)if(this.edges[t].targetNodeId===e){var n=this.edges[t].getData();this.edges.splice(t,1),t--,this.eventCenter.emit(P0.EDGE_DELETE,{data:n})}},e.prototype.setElementStateById=function(e,t,n){this.nodes.forEach(function(r){r.id===e?r.setElementState(t,n):r.setElementState(j0.DEFAULT)}),this.edges.forEach(function(r){r.id===e?r.setElementState(t,n):r.setElementState(j0.DEFAULT)})},e.prototype.updateText=function(e,t){go(T3(T3([],w3(this.nodes),!1),w3(this.edges),!1),function(t){return t.id===e})?.updateText(t)},e.prototype.selectNodeById=function(e,t){t===void 0&&(t=!1),t||this.clearSelectElements(),(this.nodesMap[e]?.model)?.setSelected(!0)},e.prototype.selectEdgeById=function(e,t){t===void 0&&(t=!1),t||this.clearSelectElements(),(this.edgesMap[e]?.model)?.setSelected(!0)},e.prototype.selectElementById=function(e,t){t===void 0&&(t=!1),t||this.clearSelectElements(),this.getElement(e)?.setSelected(!0)},e.prototype.deselectElementById=function(e){var t=this.getElement(e);t&&t.setSelected(!1)},e.prototype.clearSelectElements=function(){var e;this.selectElements.forEach(function(e){e?.setSelected(!1),e?.setHovered(!1)}),this.selectElements.clear(),[F0.DEFAULT,F0.EDGE_TOP].includes(this.overlapMode)&&((e=this.topElement)==null||e.setZIndex())},e.prototype.moveNodes=function(e,t,n,r){var i,a,o,s=this;r===void 0&&(r=!1);for(var c=e.reduce(function(e,i){var a=s.nodesMap[i]?.model;return a&&(e[i]=a.getMoveDistance(t,n,r)),e},{}),l=0;l<this.edges.length;l++){var u=this.edges[l],d=u.textPosition,f=d.x,p=d.y,m=c[u.sourceNodeId],h=c[u.targetNodeId],g=void 0,_=void 0;m&&h&&u.modelType===N0.POLYLINE_EDGE?(i=w3(m,2),g=i[0],_=i[1],u.updatePointsList(g,_)):(m&&(a=w3(m,2),g=a[0],_=a[1],u.moveStartPoint(g,_)),h&&(o=w3(h,2),g=o[0],_=o[1],u.moveEndPoint(g,_))),(m||h)&&this.handleEdgeTextMove(u,f,p)}},e.prototype.addNodeMoveRules=function(e){this.nodeMoveRules.includes(e)||this.nodeMoveRules.push(e)},e.prototype.addNodeResizeRules=function(e){this.nodeResizeRules.includes(e)||this.nodeResizeRules.push(e)},e.prototype.setDefaultEdgeType=function(e){this.edgeType=e},e.prototype.changeNodeType=function(e,t){var n=this.getNodeModelById(e);if(n){var r=n.getData();r.type=t;var i=this.getModel(t);if(!i)throw Error(`找不到${t}对应的节点,请确认是否已注册此类型节点。`);var a=new i(r,this);this.nodes.splice(this.nodesMap[e].index,1,a),this.getNodeEdges(e).forEach(function(t){if(t.sourceNodeId===e){var n=K2(a,t.startPoint,a.width,a.height);t.updateStartPoint(n)}if(t.targetNodeId===e){var n=K2(a,t.endPoint,a.width,a.height);t.updateEndPoint(n)}})}},e.prototype.changeEdgeType=function(e,t){var n=this.getEdgeModelById(e);if(n&&n.type!==t){var r=n.getData();r.type=t;var i=this.getModel(t);if(!i)throw Error(`找不到${t}对应的节点,请确认是否已注册此类型节点。`);delete r.pointsList;var a=new i(r,this);this.edges.splice(this.edgesMap[e].index,1,a)}},e.prototype.getNodeIncomingEdge=function(e){var t=[];return this.edges.forEach(function(n){n.targetNodeId===e&&t.push(n)}),t},e.prototype.getNodeOutgoingEdge=function(e){var t=[];return this.edges.forEach(function(n){n.sourceNodeId===e&&t.push(n)}),t},e.prototype.getAnchorIncomingEdge=function(e){var t=[];return this.edges.forEach(function(n){n.targetAnchorId===e&&t.push(n)}),t},e.prototype.getAnchorOutgoingEdge=function(e){var t=[];return this.edges.forEach(function(n){n.sourceAnchorId===e&&t.push(n)}),t},e.prototype.getNodeIncomingNode=function(e){var t=this,n=[];return this.edges.forEach(function(r){r.targetNodeId===e&&n.push(t.nodesMap[r.sourceNodeId]?.model)}),n},e.prototype.getNodeOutgoingNode=function(e){var t=this,n=[];return this.edges.forEach(function(r){r.sourceNodeId===e&&n.push(t.nodesMap[r.targetNodeId].model)}),n},e.prototype.setTheme=function(e,t){if(t&&(this.themeMode=t,O0[t]&&this.updateBackgroundOptions(S3(S3({},typeof this.background==`object`?this.background:{}),O0[t])),A0[t]&&this.updateGridOptions(g3.getGridOptions(S3(S3({},this.grid),A0[t])))),e.background&&this.updateBackgroundOptions(e.background),e.grid){var n=g3.getGridOptions(e.grid??!1);this.updateGridOptions(n)}this.theme=zVe(S3(S3({},this.customStyles),e),t),this.customStyles=S3(S3({},this.customStyles),e)},e.prototype.getTheme=function(){var e=this,t=e.background,n=e.grid;return S3(S3({},Va(this.theme)),{background:t,grid:n})},e.prototype.updateGridOptions=function(e){ge(this.grid,e)},e.prototype.updateGridSize=function(e){this.gridSize=e},e.prototype.updateBackgroundOptions=function(e){this.background=Do(e)||Do(this.background)?e:S3(S3({},this.background),e)},e.prototype.resize=function(e,t){if(this.rootEl&&document.body.contains(this.rootEl)){var n=this.rootEl.offsetParent!==null;if(n)try{this.width=e??this.rootEl.getBoundingClientRect().width,this.isContainerWidth=No(e),this.height=t??this.rootEl.getBoundingClientRect().height,this.isContainerHeight=No(t),n&&(!this.width||this.height)}catch{}}},e.prototype.clearData=function(){this.nodes=[],this.edges=[],this.edgeModelMap.clear(),this.nodeModelMap.clear(),this.elementsModelMap.clear()},e.prototype.getVirtualRectSize=function(){var e=this.nodes,t=[],n=[];e.forEach(function(e){var r=e.x,i=e.y,a=e.width,o=e.height,s=e.getNodeStyle().strokeWidth,c=s===void 0?0:s,l=r+a/2+c,u=r-a/2-c,d=i+o/2+c,f=i-o/2-c;t=t.concat([l,u].filter(function(e){return!Number.isNaN(e)})),n=n.concat([d,f].filter(function(e){return!Number.isNaN(e)}))});var r=Math.min.apply(Math,T3([],w3(t),!1)),i=Math.max.apply(Math,T3([],w3(t),!1)),a=Math.min.apply(Math,T3([],w3(n),!1)),o=Math.max.apply(Math,T3([],w3(n),!1)),s=i-r||0,c=o-a||0;return{width:s,height:c,x:r+s/2,y:a+c/2}},e.prototype.translateCenter=function(){var e=this,t=e.nodes,n=e.width,r=e.height,i=e.rootEl,a=e.transformModel;if(t.length){var o=n||i.clientWidth,s=r||i.clientHeight,c=this.getVirtualRectSize(),l=c.x,u=c.y;a.focusOn(l,u,o,s)}},e.prototype.fitView=function(e,t){e===void 0&&(e=20),t===void 0&&(t=20);var n=this,r=n.nodes,i=n.width,a=n.height,o=n.rootEl,s=n.transformModel;if(r.length){var c=i||o.clientWidth,l=a||o.clientHeight,u=this.getVirtualRectSize(),d=u.width,f=u.height,p=u.x,m=u.y,h=(d+t)/c,g=(f+e)/l,_=1/Math.max(h,g),v=[c/2,l/2];s.zoom(_,v),s.focusOn(p,m,c,l)}},e.prototype.openEdgeAnimation=function(e){this.getEdgeModelById(e)?.openEdgeAnimation()},e.prototype.closeEdgeAnimation=function(e){this.getEdgeModelById(e)?.closeEdgeAnimation()},e.prototype.getPartial=function(){return this.partial},e.prototype.setPartial=function(e){this.partial=e},e.prototype.destroy=function(){try{this.waitCleanEffects.forEach(function(e){e()})}catch{}this.waitCleanEffects.length=0,this.eventCenter.destroy()},C3([KQ],e.prototype,`width`,void 0),C3([KQ],e.prototype,`height`,void 0),C3([KQ],e.prototype,`theme`,void 0),C3([KQ],e.prototype,`themeMode`,void 0),C3([KQ],e.prototype,`grid`,void 0),C3([KQ],e.prototype,`edgeType`,void 0),C3([KQ],e.prototype,`nodes`,void 0),C3([KQ],e.prototype,`edges`,void 0),C3([KQ],e.prototype,`fakeNode`,void 0),C3([KQ],e.prototype,`overlapMode`,void 0),C3([KQ],e.prototype,`background`,void 0),C3([KQ],e.prototype,`gridSize`,void 0),C3([KQ],e.prototype,`transformModel`,void 0),C3([KQ],e.prototype,`editConfigModel`,void 0),C3([KQ],e.prototype,`partial`,void 0),C3([YQ],e.prototype,`nodesMap`,null),C3([YQ],e.prototype,`edgesMap`,null),C3([YQ],e.prototype,`modelsMap`,null),C3([YQ],e.prototype,`sortElements`,null),C3([YQ],e.prototype,`textEditElement`,null),C3([YQ],e.prototype,`selectElements`,null),C3([YQ],e.prototype,`selectNodes`,null),C3([Q],e.prototype,`setOverlapMode`,null),C3([Q],e.prototype,`setTextMode`,null),C3([Q],e.prototype,`setFakeNode`,null),C3([Q],e.prototype,`removeFakeNode`,null),C3([Q],e.prototype,`setModel`,null),C3([Q],e.prototype,`toFront`,null),C3([Q],e.prototype,`setElementZIndex`,null),C3([Q],e.prototype,`deleteNode`,null),C3([Q],e.prototype,`addNode`,null),C3([Q],e.prototype,`cloneNode`,null),C3([Q],e.prototype,`moveNode`,null),C3([Q],e.prototype,`moveNode2Coordinate`,null),C3([Q],e.prototype,`editText`,null),C3([Q],e.prototype,`addEdge`,null),C3([Q],e.prototype,`moveEdge`,null),C3([Q],e.prototype,`deleteEdgeBySourceAndTarget`,null),C3([Q],e.prototype,`deleteEdgeById`,null),C3([Q],e.prototype,`deleteEdgeBySource`,null),C3([Q],e.prototype,`deleteEdgeByTarget`,null),C3([Q],e.prototype,`setElementStateById`,null),C3([Q],e.prototype,`updateText`,null),C3([Q],e.prototype,`selectNodeById`,null),C3([Q],e.prototype,`selectEdgeById`,null),C3([Q],e.prototype,`selectElementById`,null),C3([Q],e.prototype,`deselectElementById`,null),C3([Q],e.prototype,`clearSelectElements`,null),C3([Q],e.prototype,`moveNodes`,null),C3([Q],e.prototype,`setDefaultEdgeType`,null),C3([Q],e.prototype,`changeNodeType`,null),C3([Q],e.prototype,`changeEdgeType`,null),C3([Q],e.prototype,`getNodeIncomingEdge`,null),C3([Q],e.prototype,`getNodeOutgoingEdge`,null),C3([Q],e.prototype,`getAnchorIncomingEdge`,null),C3([Q],e.prototype,`getAnchorOutgoingEdge`,null),C3([Q],e.prototype,`getNodeIncomingNode`,null),C3([Q],e.prototype,`getNodeOutgoingNode`,null),C3([Q],e.prototype,`setTheme`,null),C3([Q],e.prototype,`getTheme`,null),C3([Q],e.prototype,`resize`,null),C3([Q],e.prototype,`clearData`,null),C3([Q],e.prototype,`translateCenter`,null),C3([Q],e.prototype,`fitView`,null),C3([Q],e.prototype,`openEdgeAnimation`,null),C3([Q],e.prototype,`closeEdgeAnimation`,null),C3([Q],e.prototype,`setPartial`,null),e}(),E3=function(){return E3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},E3.apply(this,arguments)},D3=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},HHe=function(){function e(e,t){t===void 0&&(t=1),this.isShowHorizontal=!1,this.isShowVertical=!1,this.position={x:0,y:0},this.graphModel=e,this.epsilon=t}return e.prototype.getStyle=function(){return E3({},this.graphModel.theme.snapline)},e.prototype.getCenterSnapLine=function(e,t){for(var n=e.x,r=e.y,i=!1,a=!1,o=0;o<t.length;o++){var s=t[o];if(s.id!==e.id&&(O3(n,s.x,this.epsilon)&&(i=!0),O3(r,s.y,this.epsilon)&&(a=!0),i&&a))break}return{isShowVertical:i,isShowHorizontal:a,position:{x:n,y:r}}},e.prototype.getHorizontalSnapline=function(e,t){var n=!1,r=0,i=e.id,a;if(i){var o=this.graphModel.fakeNode;if(o&&o.id===i)a=B2(o);else{var s=this.graphModel.getNodeModelById(i);s&&(a=B2(s))}}for(var c=0;c<t.length;c++){var l=t[c];if(l.id!==e.id){var u=B2(l);if(O3(u.minY,a?.minY,this.epsilon)||O3(u.maxY,a?.minY,this.epsilon)){n=!0,r=a.minY;break}if(O3(u.minY,a?.maxY,this.epsilon)||O3(u.maxY,a?.maxY,this.epsilon)){n=!0,r=a.maxY;break}}}return{isShowHorizontal:n,isShowVertical:this.isShowVertical,position:E3(E3({},this.position),{y:r})}},e.prototype.getVerticalSnapline=function(e,t){var n=!1,r=0,i=e.id,a;if(i){var o=this.graphModel.fakeNode;if(o&&o.id===i)a=B2(o);else{var s=this.graphModel.getNodeModelById(i);s&&(a=B2(s))}}for(var c=0;c<t.length;c++){var l=t[c];if(l.id!==e.id){var u=B2(l);if(O3(u.minX,a?.minX,this.epsilon)||O3(u.minX,a?.minX,this.epsilon)||O3(u.maxX,a?.minX,this.epsilon)){n=!0,r=a.minX;break}if(O3(u.minX,a?.maxX,this.epsilon)||O3(u.maxX,a?.maxX,this.epsilon)){n=!0,r=a.maxX;break}}}return{isShowHorizontal:this.isShowHorizontal,isShowVertical:n,position:E3(E3({},this.position),{x:r})}},e.prototype.getSnapLinePosition=function(e,t){var n=this.getCenterSnapLine(e,t),r=n.isShowHorizontal,i=n.isShowVertical;if(!r){var a=this.getHorizontalSnapline(e,t);a.isShowHorizontal&&(n.isShowHorizontal=a.isShowHorizontal,n.position.y=a.position.y)}if(!i){var o=this.getVerticalSnapline(e,t);o.isShowVertical&&(n.isShowVertical=o.isShowVertical,n.position.x=o.position.x)}return n},e.prototype.setSnaplineInfo=function(e){var t=e.isShowHorizontal,n=e.isShowVertical,r=e.position;this.position=r,this.isShowHorizontal=t,this.isShowVertical=n},e.prototype.clearSnapline=function(){this.position={x:0,y:0},this.isShowHorizontal=!1,this.isShowVertical=!1},e.prototype.setNodeSnapLine=function(e){var t=this.graphModel.nodes,n=this.getSnapLinePosition(e,t);this.setSnaplineInfo(n)},D3([KQ],e.prototype,`isShowHorizontal`,void 0),D3([KQ],e.prototype,`isShowVertical`,void 0),D3([KQ],e.prototype,`position`,void 0),D3([Q],e.prototype,`clearSnapline`,null),D3([Q],e.prototype,`setNodeSnapLine`,null),e}();function O3(e,t,n){return Math.abs(e-t)<=n}var UHe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),WHe=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},GHe=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},KHe=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},qHe=function(e){UHe(t,e);function t(){var t=e.apply(this,KHe([],GHe(arguments),!1))||this;return t.handleResize=function(){var e=t.props,n=e.graphModel,r=e.options,i=n.width,a=n.height,o=n.isContainerWidth,s=n.isContainerHeight,c=i,l=a,u=!1;o&&(c=void 0,u=!0),s&&(l=void 0,u=!0),u&&n.resize(c,l),r.width=i,r.height=a},t.throttleResize=Ro(t.handleResize,200),t}return t.prototype.componentDidMount=function(){window.addEventListener(`resize`,this.throttleResize)},t.prototype.componentDidUpdate=function(){var e=this.props.graphModel.modelToGraphData();this.props.graphModel.eventCenter.emit(P0.GRAPH_UPDATED,{data:e})},t.prototype.componentWillUnmount=function(){window.removeEventListener(`resize`,this.throttleResize)},t.prototype.getComponent=function(e,t,n){n===void 0&&(n=`canvas-overlay`);var r=this.props.getView,i=r(e.type);return i?S0(i,{model:e,graphModel:t,overlay:n},e.id):null},t.prototype.render=function(){var e=this,t=this.props,n=t.graphModel,r=t.tool,i=t.options,a=t.dnd,o=t.snaplineModel,s={};i.width&&(s.width=`${n.width}px`),i.height&&(s.height=`${n.height}px`);var c=n.fakeNode,l=n.editConfigModel,u=n.background,d=l.adjustEdge;return S0(`div`,{className:`lf-graph`,"flow-id":n.flowId,style:s,children:[S0(dHe,{graphModel:n,dnd:a,children:[S0(`g`,{className:`lf-base`,children:vo(n.sortElements,function(t){return e.getComponent(t,n)})}),c?this.getComponent(c,n):``]}),S0(EHe,{graphModel:n,children:[S0(kHe,{graphModel:n}),d?S0(mHe,{graphModel:n}):``,i.snapline===!1?``:S0(MHe,{snaplineModel:o})]}),S0(FHe,{graphModel:n,tool:r}),u&&S0(_He,{background:u}),S0(g3,{graphModel:n})]})},t=WHe([F6],t),t}(WZ),JHe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),k3=function(){return k3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},k3.apply(this,arguments)},YHe=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},XHe=function(e){JHe(t,e);function t(){var t=e.call(this)||this;return t.onDragStart=function(e){var n=e.event,r=t.props,i=r.anchorData,a=r.nodeModel,o=r.graphModel;o.selectNodeById(a.id),a.autoToFront&&o.toFront(a.id),o.eventCenter.emit(P0.ANCHOR_DRAGSTART,{data:i,e:n,nodeModel:a}),t.setState({startX:i.x,startY:i.y,endX:i.x,endY:i.y})},t.onDragging=function(e){var n=e.event,r=t.props,i=r.graphModel,a=r.nodeModel,o=r.anchorData,s=i.transformModel,c=i.eventCenter,l=i.width,u=i.height,d=i.editConfigModel,f=d.autoExpand,p=d.stopMoveGraph;if(n){var m=n.clientX,h=n.clientY,g=i.getPointByClient({x:m,y:h}),_=g.domOverlayPosition,v=_.x,y=_.y,b=g.canvasOverlayPosition,x=b.x,S=b.y;t.t&&e4(t.t);var C=[],w=10;v<10?C=[w,0]:v+10>l?C=[-w,0]:y<10?C=[0,w]:y+10>u&&(C=[0,-w]),t.setState({endX:x,endY:S,dragging:!0}),t.moveAnchorEnd(x,S,n),C.length>0&&!p&&f&&(t.t=$2(function(){var e=YHe(C,2),r=e[0],i=e[1];s.translate(r,i);var a=t.state,o=a.endX,c=a.endY;t.setState({endX:o-r,endY:c-i}),t.moveAnchorEnd(o-r,c-i,n)})),c.emit(P0.ANCHOR_DRAG,{data:o,e:n,nodeModel:a})}},t.onDragEnd=function(e){var n=e.event;t.t&&e4(t.t);var r=t.checkEnd(n);t.setState({startX:0,startY:0,endX:0,endY:0,dragging:!1}),t.sourceRuleResults.clear(),t.targetRuleResults.clear();var i=t.props,a=i.graphModel,o=i.nodeModel,s=i.anchorData;t.preTargetNode&&=(t.preTargetNode.setHovered(!1),void 0),a.eventCenter.emit(P0.ANCHOR_DRAGEND,{data:s,e:n,nodeModel:o,edgeModel:r??void 0})},t.checkEnd=function(e){var n=t.props,r=n.graphModel,i=n.nodeModel,a=n.anchorData,o=a.x,s=a.y,c=a.id,l=t.state,u=l.endX,d=l.endY,f=l.dragging,p=L2({x:u,y:d},r);if(t.preTargetNode&&t.preTargetNode.state!==j0.DEFAULT&&t.preTargetNode.setElementState(j0.DEFAULT),f&&p&&p.node){var m=p.node,h=p.anchor.id,g=`${i.id}_${m.id}_${h}_${c}`,_=t.sourceRuleResults.get(g)||{},v=_.isAllPass,y=_.msg,b=t.targetRuleResults.get(g)||{},x=b.isAllPass,S=b.msg;if(v&&x){m.setElementState(j0.DEFAULT);var C=r.getNodeModelById(p.node.id),w=r.edgeGenerator?.call(r,i.getData(),C?.getData()),T=r.addEdge(k3(k3({},w),{sourceNodeId:i.id,sourceAnchorId:c,startPoint:{x:o,y:s},targetNodeId:p.node.id,targetAnchorId:p.anchor.id,endPoint:{x:p.anchor.x,y:p.anchor.y}})),E=t.props.anchorData;return r.eventCenter.emit(P0.ANCHOR_DROP,{data:E,e,nodeModel:i,edgeModel:T}),T}var D=m.getData();return r.eventCenter.emit(P0.CONNECTION_NOT_ALLOWED,{data:D,msg:S||y||`不允许添加连线`}),null}},t.sourceRuleResults=new Map,t.targetRuleResults=new Map,t.state={startX:0,startY:0,endX:0,endY:0,dragging:!1},t.dragHandler=new R0({onDragStart:t.onDragStart,onDragging:t.onDragging,onDragEnd:t.onDragEnd}),t}return t.prototype.getAnchorShape=function(){var e=this.props,t=e.anchorData,n=e.style,r=e.node.getAnchorShape(t);if(r)return r;var i=t.x,a=t.y,o=k3(k3({},n),n?.hover);return S0(`g`,{children:[S0(u4,k3({className:`lf-node-anchor-hover`},o,{x:i,y:a})),S0(u4,k3({className:`lf-node-anchor`},n,{x:i,y:a}))]})},Object.defineProperty(t.prototype,"customTrajectory",{get:function(){return this.props.graphModel.customTrajectory},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"relateEdges",{get:function(){var e=this.props,t=e.graphModel,n=t.getAnchorIncomingEdge,r=t.getAnchorOutgoingEdge,i=e.anchorData.id;return{incomingEdgeList:n(i),outgoingEdgeList:r(i)}},enumerable:!1,configurable:!0}),t.prototype.moveAnchorEnd=function(e,t,n){var r=this.props,i=r.graphModel,a=r.nodeModel,o=r.anchorData,s=L2({x:e,y:t},i);if(s){var c=s.node,l=s.anchor.id;if(this.preTargetNode&&this.preTargetNode!==s.node&&this.preTargetNode.setElementState(j0.DEFAULT),o.id===l)return;if(this.preTargetNode=c,this.validateAndSetState(c,l,s.anchor,a,o),!c.isHovered){var u=c.getData();n&&i.eventCenter.emit(P0.NODE_MOUSEENTER,{data:u,e:n}),c.setHovered(!0)}}else if(this.preTargetNode&&this.preTargetNode.state!==j0.DEFAULT){this.preTargetNode.setElementState(j0.DEFAULT);var d=this.preTargetNode.getData();n&&i.eventCenter.emit(P0.NODE_MOUSELEAVE,{data:d,e:n}),this.preTargetNode.setHovered(!1),this.preTargetNode=void 0}},t.prototype.validateAndSetState=function(e,t,n,r,i){var a=`${r.id}_${e.id}_${t}_${i.id}`;if(!this.targetRuleResults.has(a)){var o=r.isAllowConnectedAsSource(e,i,n),s=e.isAllowConnectedAsTarget(r,i,n);this.sourceRuleResults.set(a,Y2(o)),this.targetRuleResults.set(a,Y2(s))}var c=(this.sourceRuleResults.get(a)??{}).isAllPass,l=(this.targetRuleResults.get(a)??{}).isAllPass;c&&l?e.setElementState(j0.ALLOW_CONNECT):e.setElementState(j0.NOT_ALLOW_CONNECT)},t.prototype.isShowLine=function(){var e=this.state,t=e.startX,n=e.startY,r=e.endX,i=e.endY;return R2(t,n,r,i)>10},t.prototype.render=function(){var e=this,t=this.state,n=t.startX,r=t.startY,i=t.endX,a=t.endY,o=this.props,s=o.anchorData,c=o.edgeStyle,l=o.nodeModel,u=o.graphModel,d=s.edgeAddable;return S0(`g`,{className:`lf-anchor`,children:[S0(`g`,{onClick:function(e){e.stopPropagation(),u.eventCenter.emit(P0.ANCHOR_CLICK,{data:s,e,nodeModel:l})},onPointerDown:function(t){u.eventCenter.emit(P0.ANCHOR_MOUSEDOWN,{data:s,e:t,nodeModel:l}),d!==!1&&e.dragHandler.handleMouseDown(t)},children:this.getAnchorShape()}),this.isShowLine()&&(this.customTrajectory?this.customTrajectory(k3({sourcePoint:{x:n,y:r},targetPoint:{x:i,y:a}},c)):S0(i4,k3({x1:n,y1:r,x2:i,y2:a},c,{"pointer-events":`none`})))]})},t}(WZ),ZHe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),A3=function(){return A3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},A3.apply(this,arguments)},QHe=function(e){ZHe(t,e);function t(t){var n=e.call(this,t)||this;return n.style={},n.onDragging=function(e){var t=e.event,r=n.props,i=r.graphModel,a=r.nodeModel,o=r.eventCenter,s=i.selectNodes,c=a.x,l=a.y,u=t.clientX,d=t.clientY,f=i.getPointByClient({x:u,y:d}).canvasOverlayPosition,p=f.x,m=f.y,h=new O2(p-c,m-l),g=n.normal?.angle(h)-n.defaultAngle;a.transform=new P2(-c,-l).rotate(g).translate(c,l).toString(),a.rotate=g;var _=vo(s,function(e){return e.id});_.indexOf(a.id)===-1&&(_=[a.id]);var v=oie(_,function(e,t){return e[t]=i.getNodeModelById(t)?.getMoveDistance(0,0,!1),e},{});_.forEach(function(e){i.getNodeEdges(e).forEach(function(e){if(v[e.sourceNodeId]){var t=i.getNodeModelById(e.sourceNodeId),n=t.anchors.find(function(t){return t.id===e.sourceAnchorId});e.updateStartPoint(n)}if(v[e.targetNodeId]){var t=i.getNodeModelById(e.targetNodeId),n=t.anchors.find(function(t){return t.id===e.targetAnchorId});e.updateEndPoint(n)}})}),o.emit(P0.NODE_ROTATE,{e:t,model:a,data:a.getData()})},n.style=t.style,n.stepperDrag=new R0({onDragging:n.onDragging}),n}return t.prototype.render=function(){var e=this,t=this.props.nodeModel,n=t.x,r=t.y,i=t.width,a=t.height,o=n+i/2+20,s=r-a/2-20;return this.normal=new O2(1,0),this.defaultAngle=this.normal.angle(new O2(o-n,s-r)),t.defaultAngle=this.defaultAngle,S0(`g`,{className:`lf-rotate-control`,children:S0(`g`,{onPointerDown:function(t){e.stepperDrag.handleMouseDown(t)},children:S0(u4,A3({},this.style,{cx:o,cy:s}))})})},t}(WZ),$He=ei(Qr(((e,t)=>{(function(){var e={}.hasOwnProperty;function n(){for(var e=``,t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,r(n)))}return e}function r(t){if(typeof t==`string`||typeof t==`number`)return t;if(typeof t!=`object`)return``;if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes(`[native code]`))return t.toString();var r=``;for(var a in t)e.call(t,a)&&t[a]&&(r=i(r,a));return r}function i(e,t){return t?e?e+` `+t:e+t:e}t!==void 0&&t.exports?(n.default=n,t.exports=n):typeof define==`function`&&typeof define.amd==`object`&&define.amd?define(`classnames`,[],function(){return n}):window.classNames=n})()}))()),eUe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),j3=function(){return j3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},j3.apply(this,arguments)},tUe=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},M3=function(e){eUe(t,e);function t(t){var n=e.call(this)||this;n.mouseDownHandler=function(e){var t=n.props,r=t.draggable,i=t.model,a=t.graphModel.editConfigModel.nodeTextDraggable;(r??a)&&(e.stopPropagation(),n.stepperDrag.model=i,n.stepperDrag.handleMouseDown(e))},n.onDragging=function(e){var t=e.deltaX,r=e.deltaY,i=n.props,a=i.model,o=i.graphModel.transformModel;if(t||r){var s=tUe(o.fixDeltaXY(t,r),2),c=s[0],l=s[1];a.moveText(c,l)}},n.dbClickHandler=function(){var e=n.props,t=e.editable,r=e.graphModel.eventCenter,i=e.model;t&&i.setElementState(j0.TEXT_EDIT),r.emit(P0.TEXT_DBCLICK,{data:i.text,model:i})};var r=t.draggable;return n.stepperDrag=new R0({onDragging:n.onDragging,step:1,eventType:`TEXT`,isStopPropagation:r}),n}return t.prototype.getShape=function(){var e=this.props,t=e.model,n=e.graphModel.editConfigModel,r=t.text,i=r.value,a=r.x,o=r.y,s=r.editable,c=r.draggable,l={x:a,y:o,className:``,value:i},u=t.getTextStyle(),d=n.nodeTextDraggable||c;return S0(n4,j3({},l,u,{className:(0,$He.default)({"lf-element-text":s,"lf-text-draggable":!s&&d,"lf-text-disabled":!s&&!d}),model:t}))},t.prototype.render=function(){if(this.props.model.text)return S0(`g`,{onPointerDown:this.mouseDownHandler,onDblClick:this.dbClickHandler,children:this.getShape()})},t}(WZ),nUe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),N3=function(){return N3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},N3.apply(this,arguments)},P3=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},rUe=function(e){nUe(t,e);function t(t){var n=e.call(this,t)||this;return n.setHoverOn=function(){n.setState({isHovered:!0})},n.setHoverOff=function(){n.setState({isHovered:!1})},n.state={isHovered:!1},n}return t.prototype.getBackground=function(){var e=this.state.isHovered,t=this.props.model,n=t.text,r=t.getTextStyle(),i=r.background||{};if(e&&r.hover&&r.hover.background&&(i=N3(N3({},i),r.hover.background)),n?.value&&i?.fill!==`transparent`){var a=r.fontSize,o=r.textWidth,s=r.lineHeight,c=r.overflowMode,l=i.wrapPadding,u=n?.value.split(/[\r\n]/g),d=u.length,f=n.x,p=n.y,m={};if(c===`autoWrap`&&o){var h=q2({rows:u,style:{fontSize:`${a}px`,width:`${o}px`,lineHeight:s,padding:l},rowsLength:d,className:`lf-get-text-height`});m=N3(N3({},i),{x:f,y:p,width:o,height:h})}else{var g=UBe({rows:u,rowsLength:d,fontSize:a}),_=g.width,v=g.height;if(c===`ellipsis`&&(_=o,v=a+2),typeof i.wrapPadding==`string`){var y=i.wrapPadding.split(`,`).filter(function(e){return e.trim()}).map(function(e){return parseFloat(e.trim())});if(y.length>0&&y.length<=4){if(y.length===1){var b=P3(y,1)[0];y=[b,b,b,b]}else if(y.length===2){var x=P3(y,2),S=x[0],C=x[1];y=[S,C,S,C]}else if(y.length===3){var w=P3(y,3),T=w[0],C=w[1];y=[T,C,w[2],C]}var E=P3(y,4),D=E[0],O=E[1],k=E[2],A=E[3];_+=O+A,v+=D+k,f+=(O-A)/2,p+=(k-D)/2}}m=N3(N3({},i),{x:f-1,y:p-1,width:_,height:v})}return S0(o4,N3({},m))}return null},t.prototype.getShape=function(){var e=this.props.model,t=e.text,n=t.x,r=t.y,i=t.value;if(!i)return null;var a=e.getTextStyle(),o=N3({x:n,y:r,value:i,model:e,className:`lf-element-text`},a);return S0(`g`,{className:`lf-line-text`,onMouseEnter:this.setHoverOn,onMouseLeave:this.setHoverOff,children:[this.getBackground(),S0(n4,N3({},o))]})},t}(M3),iUe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),F3=function(){return F3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},F3.apply(this,arguments)},aUe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},I3=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},L3=function(e){iUe(t,e);function t(t){var n=e.call(this)||this;n.onDragStart=function(e){var t=e.event,r=n.props,i=r.model,a=r.graphModel;if(t){var o=a.getPointByClient({x:t.clientX,y:t.clientY}).canvasOverlayPosition,s=o.x,c=o.y;n.moveOffset={dx:i.x-s,dy:i.y-c}}},n.onDragging=function(e){var t=e.event,r=n.props,i=r.model,a=r.graphModel,o=a.editConfigModel,s=o.stopMoveGraph,c=o.autoExpand,l=o.snapGrid,u=a.transformModel,d=a.selectNodes,f=a.width,p=a.height,m=a.gridSize,h=t,g=h.clientX,_=h.clientY,v=n.mouseDownPosition,y=v.x,b=v.y;(g-y>m||_-b>m)&&(i.isDragging=!0);var x=a.getPointByClient({x:g,y:_}).canvasOverlayPosition,S=x.x,C=x.y,w=I3(u.CanvasPointToHtmlPoint([S,C]),2),T=w[0],E=w[1];if(S+=n.moveOffset?.dx??0,C+=n.moveOffset?.dy??0,S=b2(S,m,l),C=b2(C,m,l),!f||!p)a.moveNode2Coordinate(i.id,S,C);else if(!(c&&!s&&(T<0||E<0||T>f||E>p))){var D=I3(u.CanvasPointToHtmlPoint([S-i.width/2,C-i.height/2]),2),O=D[0],k=D[1],A=I3(u.CanvasPointToHtmlPoint([S+i.width/2,C+i.height/2]),2),j=A[0],ee=A[1],te=Math.max(m,20),M=[];O<0?M=[te,0]:j>a.width?M=[-te,0]:k<0?M=[0,te]:ee>a.height&&(M=[0,-te]),n.t&&e4(n.t);var ne=d.map(function(e){return e.id});ne.indexOf(i.id)===-1&&(ne=[i.id]),M.length>0&&!s&&c?n.t=$2(function(){var e=I3(M,2),t=e[0],n=e[1];u.translate(t??0,n??0);var r=-(t??0)/u.SCALE_X,i=-(n??0)/u.SCALE_X;a.moveNodes(ne,r,i)}):a.moveNodes(ne,S-i.x,C-i.y)}},n.onDragEnd=function(){n.t&&e4(n.t);var e=n.props.model;e.isDragging=!1},n.onMouseOut=function(e){gBe()&&n.setHoverOff(e)},n.handleMouseUp=function(){n.mouseUpDrag=n.props.model.isDragging,n.longPressTimer&&=(clearTimeout(n.longPressTimer),void 0)},n.handleClick=function(e){var t=n.mouseUpDrag===!1,r=new Date().getTime();if(n.startTime){var i=r-n.startTime,a=n.props,o=a.model,s=a.graphModel;if(!(!t&&i>300)){t||(n.onDragEnd(),n.handleMouseUp());var c={data:o.getData(),e,position:s.getPointByClient({x:e.clientX,y:e.clientY}),isSelected:!1,isMultiple:!1},l=e.button===2,u=e.detail===2;if(!l){var d=s.editConfigModel,f=w2(e,d);if(c.isMultiple=f,o.isSelected&&!u&&f?(c.isSelected=!1,o.setSelected(!1)):(s.selectNodeById(o.id,f),c.isSelected=!0,d.isSilentMode||n.toFront()),u)d.nodeTextEdit&&o.text.editable&&d.textMode===L0.TEXT&&(o.setSelected(!1),s.setElementStateById(o.id,j0.TEXT_EDIT)),s.eventCenter.emit(P0.NODE_DBCLICK,c);else{s.eventCenter.emit(P0.ELEMENT_CLICK,c),s.eventCenter.emit(P0.NODE_CLICK,c);var p=e.currentTarget;(!No(window)&&S(window.requestAnimationFrame)?window.requestAnimationFrame.bind(window):function(e){return setTimeout(e,0)})(function(){p.focus()})}}}}},n.handleContextMenu=function(e){e.preventDefault();var t=n.props,r=t.model,i=t.graphModel,a=i.editConfigModel,o=r.getData(),s=i.getPointByClient({x:e.clientX,y:e.clientY});i.setElementStateById(r.id,j0.SHOW_MENU,s.domOverlayPosition),r.isSelected||i.selectNodeById(r.id),i.eventCenter.emit(P0.NODE_CONTEXTMENU,{data:o,e,position:s}),a.isSilentMode||n.toFront()},n.handleMouseDown=function(e){var t=n.props,r=t.model,i=t.graphModel;n.mouseDownPosition={x:e.clientX,y:e.clientY},n.startTime=new Date().getTime(),i.editConfigModel.adjustNodePosition&&r.draggable&&n.stepDrag&&n.stepDrag.handleMouseDown(e),n.longPressTimer&&clearTimeout(n.longPressTimer),e.pointerType===`touch`&&(n.longPressTimer=window.setTimeout(function(){n.props.model.isDragging||n.handleContextMenu(e)},500))},n.handleFocus=function(){var e=n.props,t=e.model;e.graphModel.eventCenter.emit(P0.NODE_FOCUS,{data:t.getData()})},n.handleBlur=function(){if(n.props){var e=n.props,t=e.model;e.graphModel.eventCenter.emit(P0.NODE_BLUR,{data:t.getData()})}},n.setHoverOn=function(e){var t=n.props,r=t.model,i=t.graphModel;if(!r.isHovered){var a=r.getData();r.setHovered(!0),i.eventCenter.emit(P0.NODE_MOUSEENTER,{data:a,e})}},n.setHoverOff=function(e){var t=n.props,r=t.model,i=t.graphModel,a=r.getData();r.isHovered&&(r.setHovered(!1),i.eventCenter.emit(P0.NODE_MOUSELEAVE,{data:a,e}))};var r=t.graphModel,i=r.gridSize,a=r.eventCenter,o=t.model;return n.stepDrag=new R0({onDragStart:n.onDragStart,onDragging:n.onDragging,onDragEnd:n.onDragEnd,step:i,eventType:`NODE`,isStopPropagation:!1,eventCenter:a,model:o}),n.modelDisposer=B$(function(){return n.props},function(e){e&&e.model&&n.stepDrag.setModel(e.model)}),n}return t.prototype.componentWillUnmount=function(){this.modelDisposer&&this.modelDisposer(),this.render.$mobx&&this.render.$mobx.dispose()},t.prototype.componentDidMount=function(){},t.prototype.componentDidUpdate=function(){},t.prototype.getAnchorShape=function(e){return null},t.prototype.getAnchors=function(){var e=this,t=this.props,n=t.model,r=t.graphModel,i=n.isSelected,a=n.isHitable,o=n.isDragging,s=n.isShowAnchor;return a&&(i||s)&&!o?vo(n.anchors,function(t,i){var a=n.getAnchorLineStyle(t);return S0(XHe,{anchorData:t,node:e,style:n.getAnchorStyle(t),edgeStyle:a,anchorIndex:i,nodeModel:n,graphModel:r,setHoverOff:e.setHoverOff})}):[]},t.prototype.getRotateControl=function(){var e=this.props,t=e.model,n=e.graphModel,r=n.editConfigModel,i=r.isSilentMode,a=r.allowRotate,o=t.isSelected,s=t.isHitable,c=t.rotatable,l=t.isHovered,u=a&&c,d=t.getRotateControlStyle();if(!i&&s&&(o||l)&&u)return S0(QHe,{graphModel:n,nodeModel:t,eventCenter:n.eventCenter,style:d})},t.prototype.getResizeControl=function(){var e=this.props,t=e.model,n=e.graphModel,r=n.editConfigModel,i=r.isSilentMode,a=r.allowResize,o=t.isSelected,s=t.isHitable,c=t.resizable,l=t.isHovered,u=a&&c,d=t.getResizeControlStyle();return!i&&s&&(o||l)&&u?S0(vVe,{style:d,model:t,graphModel:n}):null},t.prototype.getText=function(){var e=this.props,t=e.model,n=e.graphModel,r=n.editConfigModel;if(r.nodeTextMode!==L0.TEXT||t.state===j0.TEXT_EDIT)return null;if(t.text){var i=!1;return r.nodeTextDraggable&&t.text.draggable&&(i=!0),S0(M3,{editable:r.nodeTextEdit&&(t.text.editable??!0),model:t,graphModel:n,draggable:i})}return null},t.prototype.getStateClassName=function(){var e=this.props.model,t=e.state,n=e.isDragging,r=e.isSelected,i=`lf-node`;switch(t){case j0.ALLOW_CONNECT:i+=` lf-node-allow`;break;case j0.NOT_ALLOW_CONNECT:i+=` lf-node-not-allow`;break;default:i+=` lf-node-default`}return n&&(i+=` lf-dragging`),r&&(i+=` lf-node-selected`),i},t.prototype.toFront=function(){var e=this.props,t=e.model,n=e.graphModel;t.autoToFront&&n.toFront(t.id)},t.prototype.render=function(){var e=this.props,t=e.model,n=e.graphModel,r=n.editConfigModel,i=r.hideAnchors,a=r.adjustNodePosition,o=r.allowRotate,s=r.allowResize,c=n.gridSize,l=n.transformModel.SCALE_X,u=t.isHitable,d=t.draggable,f=t.transform,p=t.getOuterGAttributes(),m=p.className,h=m===void 0?``:m,g=aUe(p,[`className`]),_=S0(`g`,{className:`lf-node-content`,children:[S0(`g`,{transform:f,children:[this.getShape(),this.getText(),s&&this.getResizeControl(),o&&this.getRotateControl()]}),!i&&this.getAnchors()]}),v;return u?(a&&d&&this.stepDrag.setStep(c*l),v=S0(`g`,F3({className:`${this.getStateClassName()} ${h}`,onPointerDown:this.handleMouseDown,onPointerUp:this.handleMouseUp,onClick:this.handleClick,onMouseEnter:this.setHoverOn,onMouseOver:this.setHoverOn,onMouseLeave:this.setHoverOff,onMouseOut:this.onMouseOut,onContextMenu:this.handleContextMenu,onFocus:this.handleFocus,onBlur:this.handleBlur},g,{children:_}))):v=S0(`g`,F3({className:`${this.getStateClassName()} ${h}`},g,{children:_})),v},t.isObserved=!1,t}(WZ),oUe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),R3=function(){return R3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},R3.apply(this,arguments)},z3=function(e){oUe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getShape=function(){var e=this.props.model,t=e.getNodeStyle();return S0(o4,R3({},t,{x:e.x,y:e.y,width:e.width,height:e.height,radius:e.radius}))},t}(L3),sUe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),B3=function(){return B3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},B3.apply(this,arguments)},V3=function(e){sUe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getShape=function(){var e=this.props.model,t=e.x,n=e.y,r=e.r,i=e.getNodeStyle();return S0(u4,B3({},i,{x:t,y:n,r}))},t}(L3),cUe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),H3=function(){return H3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},H3.apply(this,arguments)},U3=function(e){cUe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getShape=function(){var e=this.props.model,t=e,n=t.x,r=t.y,i=t.width,a=t.height,o=t.points,s=e.getNodeStyle(),c={transform:`matrix(1 0 0 1 ${n-i/2} ${r-a/2})`};return S0(`g`,H3({},c,{children:S0(p4,H3({},s,{points:o,x:n,y:r}))}))},t}(L3),lUe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),W3=function(){return W3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},W3.apply(this,arguments)},G3=function(e){lUe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getShape=function(){var e=this.props.model,t=e.getNodeStyle();return S0(`g`,{children:S0(p4,W3({},t,{points:e.points,x:e.x,y:e.y}))})},t}(L3),uUe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),K3=function(){return K3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},K3.apply(this,arguments)},q3=function(e){uUe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getShape=function(){var e=this.props.model,t=e.getNodeStyle();return S0(dVe,K3({},t,{x:e.x,y:e.y,rx:e.rx,ry:e.ry}))},t}(L3),dUe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),J3=function(){return J3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},J3.apply(this,arguments)},Y3=function(e){dUe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getBackground=function(){var e=this.props.model,t=e.getTextStyle(),n=e.width,r=e.height,i=e.x,a=e.y,o=J3(J3({},t.background),{x:i,y:a,width:n,height:r});return S0(o4,J3({},o))},t.prototype.getResizeControl=function(){return null},t.prototype.getShape=function(){return S0(`g`,{children:this.getBackground()})},t}(L3),fUe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),X3=function(){return X3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},X3.apply(this,arguments)},pUe=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},mUe=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},Z3=function(e){fUe(t,e);function t(){var t=e.apply(this,mUe([],pUe(arguments),!1))||this;return t.ref=HZ(),t}return Object.defineProperty(t.prototype,"rootEl",{get:function(){return this.ref.current},enumerable:!1,configurable:!0}),t.prototype.setHtml=function(e){e.appendChild(document.createElement(`div`))},t.prototype.confirmUpdate=function(e){this.setHtml(e)},t.prototype.shouldUpdate=function(){return this.preProperties&&this.preProperties===this.currentProperties?!1:(this.preProperties=this.currentProperties,!0)},t.prototype.componentDidMount=function(){this.shouldUpdate()&&this.rootEl&&this.setHtml(this.rootEl)},t.prototype.componentDidUpdate=function(){this.shouldUpdate()&&this.rootEl&&this.confirmUpdate(this.rootEl)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.rootEl.innerHTML=``},t.prototype.getShape=function(){var e=this.props.model,t=e.x,n=e.y,r=e.height,i=e.width,a=e.getNodeStyle();return this.currentProperties=JSON.stringify(e.properties),S0(`g`,{children:[a.shadow&&S0(`defs`,{children:S0(`filter`,{id:`shadow`,x:`-50%`,y:`-50%`,width:`200%`,height:`200%`,children:S0(`feDropShadow`,X3({},a.shadow))})}),S0(`rect`,X3({x:t-i/2,y:n-r/2,width:i,height:r,rx:a.radius,ry:a.radius},a,{filter:`url(#shadow)`})),S0(`foreignObject`,X3({},a,{x:t-i/2,y:n-r/2,width:i,height:r,ref:this.ref}))]})},t}(L3),hUe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),Q3=function(){return Q3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Q3.apply(this,arguments)},gUe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},_Ue=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},$3;(function(e){e.SOURCE=`SOURCE`,e.TARGET=`TARGET`})($3||={});var e6=function(e){hUe(t,e);function t(t){var n=e.call(this)||this;n.handleMouseDown=function(e){n.stepDrag&&n.stepDrag.handleMouseDown(e)},n.onDragStart=function(){var e=n.props,t=e.x,r=e.y,i=e.edgeModel;n.oldEdge={startPoint:i.startPoint,endPoint:i.endPoint,pointsList:i.pointsList},n.setState({endX:t,endY:r,dragging:!0})},n.onDragging=function(e){var t=e.deltaX,r=e.deltaY,i=n.state,a=i.endX,o=i.endY,s=n.props,c=s.graphModel,l=s.type,u=c.transformModel,d=c.editConfigModel,f=_Ue(u.moveCanvasPointByHtml([a,o],t,r),2),p=f[0],m=f[1];n.setState({endX:p,endY:m,dragging:!0});var h=n.props.edgeModel,g=L2({x:a,y:o},c);if(g&&g.node&&n.isAllowAdjust(g).pass){var _=h.startPoint,v=h.endPoint,y=h.sourceNode,b=h.targetNode,x=l===$3.SOURCE?{startPoint:{x:g.anchor.x,y:g.anchor.y},endPoint:{x:v.x,y:v.y},sourceNode:g.node,targetNode:b}:{startPoint:{x:_.x,y:_.y},endPoint:{x:g.anchor.x,y:g.anchor.y},sourceNode:y,targetNode:g.node};h.updateAfterAdjustStartAndEnd(x)}else l===$3.SOURCE?h.updateStartPoint({x:p,y:m}):h.updateEndPoint({x:p,y:m});h.text.value&&d.adjustEdge&&h.setText(Object.assign({},h.text,h.textPosition))},n.onDragEnd=function(e){var t,r=e.event;try{n.setState({dragging:!1});var i=n.props,a=i.graphModel,o=i.edgeModel,s=i.type,c=n.state,l=c.endX,u=c.endY,d=c.dragging,f=L2({x:l,y:u},a);if(!d)return;var p=!1,m=void 0;if(f&&f.node){var h=n.isAllowAdjust(f),g=h.pass,_=h.msg,v=h.newTargetNode;if(g){var y=o.getData(),b=y.text,x=y.sourceAnchorId,S=x===void 0?``:x,C=y.targetAnchorId,w=C===void 0?``:C,T=gUe(y,[`text`,`sourceAnchorId`,`targetAnchorId`]);if(m=Q3(Q3({sourceAnchorId:S,targetAnchorId:w},T),{text:b?.value||``}),s===$3.SOURCE){var E=a.getNodeModelById(f.node.id),D=a.getNodeModelById(o.targetNodeId),O=a.edgeGenerator?.call(a,E?.getData(),D?.getData(),m);m=Q3(Q3({},O),{sourceNodeId:f.node.id,sourceAnchorId:f.anchor.id,startPoint:{x:f.anchor.x,y:f.anchor.y},targetNodeId:o.targetNodeId,endPoint:Q3({},o.endPoint)}),o.sourceNodeId===f.node.id&&o.sourceAnchorId===f.anchor.id&&(p=!0)}else if(s===$3.TARGET){var E=a.getNodeModelById(o.sourceNodeId),D=a.getNodeModelById(f.node.id),O=a.edgeGenerator?.call(a,E?.getData(),D?.getData(),m);m=Q3(Q3({},O),{sourceNodeId:o.sourceNodeId,startPoint:Q3({},o.startPoint),targetNodeId:f.node.id,targetAnchorId:f.anchor.id,endPoint:{x:f.anchor.x,y:f.anchor.y}}),o.targetNodeId===f.node.id&&o.targetAnchorId===f.anchor.id&&(p=!0)}}else{p=!0;var k=v.getData();a.eventCenter.emit(P0.CONNECTION_NOT_ALLOWED,{data:k,msg:_})}}else p=!0;if(p)n.recoveryEdge();else{var A=o.getData();a.deleteEdgeById(o.id);var j=a.addEdge(Q3({},m));a.eventCenter.emit(P0.EDGE_EXCHANGE_NODE,{data:{newEdge:j.getData(),oldEdge:A}})}(t=n.preTargetNode)==null||t.setElementState(j0.DEFAULT)}finally{var a=n.props.graphModel;a.eventCenter.emit(P0.ADJUST_POINT_DRAGEND,{e:r,data:n.stepDragData})}},n.recoveryEdge=function(){var e=n.props.edgeModel,t=n.oldEdge,r=t.startPoint,i=t.endPoint,a=t.pointsList;e.updateStartPoint(r),e.updateEndPoint(i),e.modelType!==N0.LINE_EDGE&&(e.pointsList=a??[],e.initPoints())},n.getAdjustPointStyle=function(){return n.props.graphModel.theme.edgeAdjust},n.state={dragging:!1,endX:0,endY:0},n.targetRuleResults=new Map,n.sourceRuleResults=new Map;var r=t.type,i=t.edgeModel,a=t.graphModel.eventCenter;return n.stepDragData={type:r,edgeData:i.getData()},n.stepDrag=new R0({onDragStart:n.onDragStart,onDragging:n.onDragging,onDragEnd:n.onDragEnd,eventType:`ADJUST_POINT`,isStopPropagation:!1,eventCenter:a,data:n.stepDragData}),n}return t.prototype.isAllowAdjust=function(e){var t=this.props,n=t.edgeModel,r=n.id,i=n.sourceNode,a=n.targetNode,o=n.sourceAnchorId,s=n.targetAnchorId,c=t.type,l,u,d,f;if(c===$3.SOURCE?(l=e.node,u=a,d=e.anchor,f=a.getAnchorInfo(s)):(l=i,u=e.node,f=e.anchor,d=i.getAnchorInfo(o)),this.preTargetNode&&this.preTargetNode!==e.node&&this.preTargetNode.setElementState(j0.DEFAULT),this.preTargetNode=e.node,f.id===d.id)return{pass:!1,msg:``,newTargetNode:u};var p=`${l.id}_${u.id}_${d.id}_${f.id}`;if(!this.targetRuleResults.has(p)){var m=l.isAllowConnectedAsSource(u,d,f,r),h=u.isAllowConnectedAsTarget(l,d,f,r);this.sourceRuleResults.set(p,Y2(m)),this.targetRuleResults.set(p,Y2(h))}var g=this.sourceRuleResults.get(p),_=g.isAllPass,v=g.msg,y=this.targetRuleResults.get(p),b=y.isAllPass,x=y.msg,S=_&&b?j0.ALLOW_CONNECT:j0.NOT_ALLOW_CONNECT;return c===$3.SOURCE?l.setElementState(S):u.setElementState(S),{pass:_&&b,msg:x||v,newTargetNode:u}},t.prototype.render=function(){var e=this.props,t=e.x,n=e.y,r=e.getAdjustPointShape,i=e.edgeModel,a=this.state.dragging;return S0(`g`,{pointerEvents:a?`none`:``,onPointerDown:this.handleMouseDown,children:a?``:r(t,n,i)})},t}(WZ),vUe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),t6=function(){return t6=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t6.apply(this,arguments)};(function(e){vUe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getArrowAttributes=function(){var e=this.props,t=e.arrowInfo,n=e.style,r=t.start,i=t.end,a=B0({start:r,end:i,offset:n.offset,verticalLength:n.verticalLength,type:`end`}),o=a.leftX,s=a.leftY,c=a.rightX,l=a.rightY;return t6({d:`M${o} ${s} L${i.x} ${i.y} L${c} ${l} z`},n)},t.prototype.getShape=function(){var e=this.getArrowAttributes(),t=e.d,n=e.strokeWidth,r=e.stroke,i=e.fill;return S0(c4,{d:t,fill:i,strokeWidth:n,stroke:r})},t.prototype.render=function(){return S0(`g`,{className:`lf-arrow`,children:this.getShape()})},t})(WZ);var yUe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n6=function(){return n6=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n6.apply(this,arguments)},bUe=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r6=function(e){yUe(t,e);function t(){var t=e.call(this)||this;return t.textRef=HZ(),t.handleHover=function(e,n){var r=t.props,i=r.model,a=r.graphModel.eventCenter;i.setHovered(e);var o=e?P0.EDGE_MOUSEENTER:P0.EDGE_MOUSELEAVE,s=i.getData();a.emit(o,{data:s,e:n})},t.setHoverOn=function(e){t.props.model.isHovered||(t.textRef&&t.textRef.current&&t.textRef.current.setHoverOn(),t.handleHover(!0,e))},t.setHoverOff=function(e){t.props.model.isHovered&&(t.textRef&&t.textRef.current&&t.textRef.current.setHoverOff(),t.handleHover(!1,e))},t.handleContextMenu=function(e){e.preventDefault(),t.contextMenuTime=new Date().getTime(),t.clickTimer&&clearTimeout(t.clickTimer);var n=t.props,r=n.model,i=n.graphModel,a=i.editConfigModel,o=i.getPointByClient({x:e.clientX,y:e.clientY});i.setElementStateById(r.id,j0.SHOW_MENU,o.domOverlayPosition),a.isSilentMode||t.toFront(),r.isSelected||i.selectEdgeById(r.id);var s=r?.getData();i.eventCenter.emit(P0.EDGE_CONTEXTMENU,{data:s,e,position:o})},t.handleMouseDown=function(e){e.stopPropagation(),t.startTime=new Date().getTime(),t.longPressTimer&&clearTimeout(t.longPressTimer),e.pointerType===`touch`&&(t.longPressTimer=window.setTimeout(function(){t.props.model.isDragging||t.handleContextMenu(e)},500))},t.handleMouseUp=function(){t.mouseUpDrag=t.props.model.isDragging,t.longPressTimer&&=(clearTimeout(t.longPressTimer),void 0)},t.handleClick=function(e){if(t.startTime&&!t.mouseUpDrag&&e.button!==2){var n=e.detail===2,r=t.props,i=r.model,a=r.graphModel,o=i?.getData(),s=a.getPointByClient({x:e.clientX,y:e.clientY});if(n){var c=a.editConfigModel,l=a.textEditElement,u=i.id,d=i.text,f=i.modelType;if(l&&l.id===u&&a.setElementStateById(u,j0.DEFAULT),c.edgeTextEdit&&d.editable&&(i.setSelected(!1),a.setElementStateById(u,j0.TEXT_EDIT)),f===N0.POLYLINE_EDGE){var p=i,m=a.getPointByClient({x:e.x,y:e.y}).canvasOverlayPosition,h=m.x,g=m.y;p.dbClickPosition=g2({x:h,y:g},p.points)}a.eventCenter.emit(P0.EDGE_DBCLICK,{data:o,e,position:s})}else{a.eventCenter.emit(P0.ELEMENT_CLICK,{data:o,e,position:s}),a.eventCenter.emit(P0.EDGE_CLICK,{data:o,e,position:s});var _=e.currentTarget;(!No(window)&&S(window.requestAnimationFrame)?window.requestAnimationFrame.bind(window):function(e){return setTimeout(e,0)})(function(){_.focus()})}var v=a.editConfigModel;a.selectEdgeById(i.id,w2(e,v)),v.isSilentMode||t.toFront()}},t.handleFocus=function(){var e=t.props,n=e.model;e.graphModel.eventCenter.emit(P0.EDGE_FOCUS,{data:n.getData()})},t.handleBlur=function(){var e=t.props,n=e.model;e.graphModel.eventCenter.emit(P0.EDGE_BLUR,{data:n.getData()})},t}return t.prototype.getShape=function(){return S0(`g`,{children:this.getEdge()})},t.prototype.getTextStyle=function(){},t.prototype.getText=function(){var e=this.props,t=e.model,n=e.graphModel,r=n.editConfigModel;if(r.edgeTextMode!==L0.TEXT||t.state===j0.TEXT_EDIT)return null;if(t.text){var i=!1;return r.edgeTextDraggable&&t.text.draggable&&(i=!0),S0(rUe,{ref:this.textRef,editable:r.edgeTextEdit&&(t.text.editable??!0),model:t,graphModel:n,draggable:i})}return null},t.prototype.getArrowInfo=function(){var e=this.props.model,t=e.startPoint,n=e.endPoint,r=e.isSelected;return{start:t,end:n,hover:this.state.hover,isSelected:r}},t.prototype.getLastTwoPoints=function(){var e=this.props.model;return[e.startPoint,e.endPoint]},t.prototype.getArrowStyle=function(){return null},t.prototype.getArrow=function(){var e=this.props.model,t=e.id,n=e.getArrowStyle(),r=n.refY,i=r===void 0?0:r,a=n.refX,o=a===void 0?2:a,s=bUe(this.getLastTwoPoints(),2),c=s[0],l=s[1],u=`auto`;if(c&&l){var d=l.x-c.x,f=l.y-c.y;if(d!==0||f!==0){var p=FVe(PVe({x:d,y:f,z:0}));Number.isFinite(p)&&!Number.isNaN(p)&&(u=p)}}return S0(`g`,{children:S0(`defs`,{children:[S0(`marker`,{id:`marker-start-${t}`,refX:-o,refY:i,overflow:`visible`,orient:`auto`,markerUnits:`userSpaceOnUse`,children:this.getStartArrow()}),S0(`marker`,{id:`marker-end-${t}`,refX:o,refY:i,overflow:`visible`,orient:u,markerUnits:`userSpaceOnUse`,children:this.getEndArrow()})]})})},t.prototype.getArrowPath=function(e,t){var n=t.stroke,r=t.fill,i=r===void 0?n:r,a=t.strokeWidth,o=t.offset,s=o===void 0?10:o,c=t.verticalLength,l=t.strokeLinecap,u=t.strokeLinejoin,d=t.transform,f=``;switch(e){case`solid`:f=`M${-s/4},0 L${3*s/4},${c} L${3*s/4},-${c} Z`;break;case`hollow`:f=`M${-s/4},0 L${3*s/4},${c} L${-s/4},0 L${3*s/4},-${c} L${-s/4},0 Z`;break;case`diamond`:f=`M${-s/2},0 L0,${c} L${s/2},0 L0,-${c} L${-s/2},0 Z`;break;case`circle`:f=`M${-s/2},0 A${s/4},${s/4} 0 1,0 ${s/2},0 A${s/4},${s/4} 0 1,0 ${-s/2},0 Z`;break;default:f=``}return S0(`path`,{d:f,stroke:n,fill:i,strokeWidth:a,strokeLinecap:l,strokeLinejoin:u,transform:d})},t.prototype.getStartArrow=function(){var e=this.props.model.getArrowStyle(),t=e.stroke,n=e.strokeWidth,r=e.offset,i=e.verticalLength,a=e.startArrowType,o=a===void 0?`none`:a,s=e.strokeLinecap,c=e.strokeLinejoin;return this.getArrowPath(o,{stroke:t,strokeWidth:n,offset:r,verticalLength:i,strokeLinecap:s,strokeLinejoin:c})},t.prototype.getEndArrow=function(){var e=this.props.model.getArrowStyle(),t=e.stroke,n=e.strokeWidth,r=e.offset,i=e.verticalLength,a=e.endArrowType,o=a===void 0?`solid`:a,s=e.strokeLinecap,c=e.strokeLinejoin;return this.getArrowPath(o,{stroke:t,strokeWidth:n,offset:r,verticalLength:i,strokeLinecap:s,strokeLinejoin:c,transform:`rotate(180)`})},t.prototype.getAdjustPointShape=function(e,t,n){var r=n.getAdjustPointStyle();return S0(u4,n6({className:`lf-edge-adjust-point`},r,{x:e,y:t}))},t.prototype.getAdjustPoints=function(){var e=this.props,t=e.model,n=e.graphModel,r=n.editConfigModel,i=r.adjustEdgeStartAndEnd,a=r.adjustEdgeStart,o=r.adjustEdgeEnd,s=t.getAdjustStart(),c=t.getAdjustEnd();return S0(`g`,{children:[i&&a&&S0(e6,n6({type:$3.SOURCE},s,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:t,graphModel:n})),i&&o&&S0(e6,n6({type:$3.TARGET},c,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:t,graphModel:n}))]})},t.prototype.getAnimation=function(){},t.prototype.getAppendWidth=function(){return S0(`g`,{})},t.prototype.getAppend=function(){return S0(`g`,{className:`lf-edge-append`,children:this.getAppendWidth()})},t.prototype.getEdge=function(){return null},t.prototype.toFront=function(){var e=this.props,t=e.graphModel,n=e.model;t.toFront(n.id)},t.prototype.render=function(){var e=this.props.model,t=e.isSelected,n=e.isHitable,r=e.isShowAdjustPoint;return S0(`g`,{children:[S0(`g`,{className:[`lf-edge`,!n&&`pointer-none`,t&&`lf-edge-selected`].filter(Boolean).join(` `),style:{touchAction:`none`,WebkitTouchCallout:`none`},onClick:this.handleClick,onContextMenu:this.handleContextMenu,onPointerDown:this.handleMouseDown,onPointerUp:this.handleMouseUp,onPointerCancel:this.handleMouseUp,onMouseOver:this.setHoverOn,onMouseEnter:this.setHoverOn,onMouseLeave:this.setHoverOff,onFocus:this.handleFocus,onBlur:this.handleBlur,children:[this.getShape(),this.getAppend(),this.getText(),this.getArrow()]}),r&&t?this.getAdjustPoints():``]})},t.isObserved=!1,t}(WZ),xUe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),i6=function(){return i6=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i6.apply(this,arguments)},SUe=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},a6=function(e){xUe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getEdge=function(){var e=this.props.model,t=e.getEdgeStyle(),n=e,r=n.path,i=n.isAnimation,a=n.arrowConfig,o=e.getEdgeAnimationStyle(),s=o.strokeDasharray,c=o.stroke,l=o.strokeDashoffset,u=o.animationName,d=o.animationDuration,f=o.animationIterationCount,p=o.animationTimingFunction,m=o.animationDirection;return S0(c4,i6({d:r},t,a,i?{strokeDasharray:s,stroke:c,style:{strokeDashoffset:l,animationName:u,animationDuration:d,animationIterationCount:f,animationTimingFunction:p,animationDirection:m}}:{}))},t.prototype.getAppendWidth=function(){var e=this.props.model.path;return S0(c4,{d:e,strokeWidth:10,stroke:`transparent`,fill:`none`})},t.prototype.getArrowInfo=function(){var e=this.props.model,t=this.state.hover,n=e.isSelected,r=e.getArrowStyle().offset,i=SUe(h2(e.pointsList.map(function(e){return{x:e.x,y:e.y}}),r),2);return{start:i[0],end:i[1],hover:t,isSelected:n}},t.prototype.getLastTwoPoints=function(){var e=this.props.model,t=e.getArrowStyle().offset;return h2(e.pointsList.map(function(e){return{x:e.x,y:e.y}}),t)},t}(r6),CUe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),o6=function(){return o6=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o6.apply(this,arguments)},s6=function(e){CUe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getEdge=function(){var e=this.props.model,t=e.startPoint,n=e.endPoint,r=e.isAnimation,i=e.arrowConfig,a=e.getEdgeStyle(),o=e.getEdgeAnimationStyle(),s=o.strokeDasharray,c=o.stroke,l=o.strokeDashoffset,u=o.animationName,d=o.animationDuration,f=o.animationIterationCount,p=o.animationTimingFunction,m=o.animationDirection;return S0(i4,o6({},a,{x1:t.x,y1:t.y,x2:n.x,y2:n.y},i,r?{strokeDasharray:s,stroke:c,style:{strokeDashoffset:l,animationName:u,animationDuration:d,animationIterationCount:f,animationTimingFunction:p,animationDirection:m}}:{}))},t.prototype.getAppendWidth=function(){var e=this.props.model,t=BBe({start:e.startPoint,end:e.endPoint}),n=t.d,r=t.strokeWidth,i=t.fill,a=t.strokeDasharray,o=t.stroke;return S0(c4,{d:n,fill:i,strokeWidth:r,stroke:o,strokeDasharray:a})},t}(r6),wUe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),c6=function(){return c6=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},c6.apply(this,arguments)},TUe=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},l6=function(e){wUe(t,e);function t(){var t=e.call(this)||this;return t.onDragStart=function(){var e=t.props.model;e.dragAppendStart(),t.isShowAdjustPointTemp=e.isShowAdjustPoint,e.isShowAdjustPoint=!1},t.onDragging=function(e){var n=e.deltaX,r=e.deltaY,i=t.props,a=i.model,o=i.graphModel;t.isDragging=!0;var s=o.transformModel,c=o.editConfigModel,l=TUe(s.fixDeltaXY(n,r),2),u=l[0],d=l[1],f=a;t.appendInfo=c.adjustEdgeMiddle?f.dragAppendSimple(t.appendInfo,{x:u,y:d}):f.dragAppend(t.appendInfo,{x:u,y:d})},t.onDragEnd=function(){var e=t.props,n=e.model,r=e.graphModel.eventCenter,i=n;i.dragAppendEnd(),t.isDragging=!1,i.isShowAdjustPoint=t.isShowAdjustPointTemp??!1,t.appendInfo=void 0,r.emit(P0.EDGE_ADJUST,{data:i.getData()})},t.beforeDragStart=function(e,n){n.draggable&&t.drag.handleMouseDown(e),t.appendInfo=n},t.drag=new R0({onDragStart:t.onDragStart,onDragging:t.onDragging,onDragEnd:t.onDragEnd,isStopPropagation:!1}),t}return t.prototype.getEdge=function(){var e=this.props.model,t=e.points,n=e.isAnimation,r=e.arrowConfig,i=e.properties,a=e.getEdgeStyle(),o=e.getEdgeAnimationStyle(),s=o.strokeDasharray,c=o.stroke,l=o.strokeDashoffset,u=o.animationName,d=o.animationDuration,f=o.animationIterationCount,p=o.animationTimingFunction,m=o.animationDirection,h=i?.radius??a?.radius??0,g=(function(){return!h||h<=0?t:x2(l2(t),h,!1).map(function(e){return`${e.x},${e.y}`}).join(` `)})();return S0(mVe,c6({points:g},a,r,n?{strokeDasharray:s,stroke:c,style:{strokeDashoffset:l,animationName:u,animationDuration:d,animationIterationCount:f,animationTimingFunction:p,animationDirection:m}}:{}))},t.prototype.getArrowInfo=function(){var e=this.props.model,t=e.points,n=e.isSelected,r=this.state.hover,i=l2(t),a=i[0],o=i[0];return i.length>=2&&(a=i[i.length-2],o=i[i.length-1]),{start:a,end:o,hover:r,isSelected:n}},t.prototype.getLastTwoPoints=function(){var e=this.props.model.points,t=l2(e),n=t[0],r=t[0];return t.length>=2&&(n=t[t.length-2],r=t[t.length-1]),[n,r]},t.prototype.getAppendAttributes=function(e){var t=e.start,n=e.end,r;if(t.x===n.x&&t.y===n.y)r=``;else{var i={start:t,end:n,offset:10,verticalLength:5},a=B0(c6(c6({},i),{type:`start`})),o=B0(c6(c6({},i),{type:`end`}));r=`M${a.leftX} ${a.leftY}
L${a.rightX} ${a.rightY}
L${o.rightX} ${o.rightY}
L${o.leftX} ${o.leftY} z`}return{d:r,fill:`transparent`,stroke:`transparent`,strokeWidth:1,strokeDasharray:`4, 4`}},t.prototype.getAppendShape=function(e){var t=this.getAppendAttributes(e),n=t.d,r=t.strokeWidth,i=t.fill,a=t.strokeDasharray,o=t.stroke;return S0(c4,{d:n,fill:i,strokeWidth:r,stroke:o,strokeDasharray:a})},t.prototype.getAppendWidth=function(){for(var e=this,t=this.props,n=t.model,r=t.graphModel,i=n.pointsList,a=n.draggable,o=[],s=i.length,c=function(t){var n=`lf-polyline-append`,c={start:{x:i[t].x,y:i[t].y},end:{x:i[t+1].x,y:i[t+1].y},startIndex:t,endIndex:t+1,direction:I0.HORIZONTAL,draggable:!0},u=S0(`g`,{className:n,children:l.getAppendShape(c)}),d=r.editConfigModel,f=d.adjustEdge,p=d.adjustEdgeMiddle;if(f&&a){var m=c.startIndex,h=c.endIndex;c.draggable=!p||m!==0&&h!==s-1,c.start.x===c.end.x?(c.draggable&&(n+=`-ew-resize`),c.direction=I0.VERTICAL):c.start.y===c.end.y&&(c.draggable&&(n+=`-ns-resize`),c.direction=I0.HORIZONTAL),u=S0(`g`,{className:l.isDragging?`lf-dragging`:`lf-drag-able`,onPointerDown:function(t){return e.beforeDragStart(t,c)},children:S0(`g`,{className:n,children:l.getAppendShape(c)})})}o.push(u)},l=this,u=0;u<s-1;u++)c(u);return S0(`g`,{children:o})},t}(r6),u6=function(){return u6=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},u6.apply(this,arguments)},EUe=function(){function e(e){var t=this;this.nodeConfig=null,this.fakeNode=null,this.stopDrag=function(){t.nodeConfig=null,t.docPointerMove&&window.document.removeEventListener(`pointermove`,t.docPointerMove),t.docPointerUp&&window.document.removeEventListener(`pointerup`,t.docPointerUp)},this.dragEnter=function(e){t.nodeConfig&&!t.fakeNode&&(t.fakeNode=t.lf.createFakeNode(u6(u6({},t.nodeConfig),t.clientToLocalPoint({x:e.clientX,y:e.clientY}))))},this.onDragOver=function(e){if(t.lf.graphModel.eventCenter.emit(P0.BLANK_CANVAS_MOUSEMOVE,{e}),e.preventDefault(),t.fakeNode){var n=t.clientToLocalPoint({x:e.clientX,y:e.clientY}),r=n.x,i=n.y;t.fakeNode.moveTo(r,i);var a=t.fakeNode.getData();t.lf.setNodeSnapLine(a),t.lf.graphModel.eventCenter.emit(P0.NODE_DND_DRAG,{data:a,e})}return!1},this.onDragLeave=function(){t.fakeNode&&=(t.lf.removeNodeSnapLine(),t.lf.graphModel.removeFakeNode(),null)},this.onDrop=function(e){t.lf.graphModel&&e&&t.nodeConfig&&(t.lf.addNode(u6(u6({},t.nodeConfig),t.clientToLocalPoint({x:e.clientX,y:e.clientY})),P0.NODE_DND_ADD,e),e.preventDefault(),e.stopPropagation(),t.nodeConfig=null,t.lf.removeNodeSnapLine(),t.lf.graphModel.removeFakeNode(),t.fakeNode=null)};var n=e.lf;this.lf=n}return e.prototype.clientToLocalPoint=function(e){var t=e.x,n=e.y,r=ur(this.lf.options,[`grid`,`size`]),i=this.lf.graphModel.getPointByClient({x:t,y:n}).canvasOverlayPosition,a=i.x,o=i.y,s=this.lf.graphModel.editConfigModel.snapGrid;return{x:b2(a,r,s),y:b2(o,r,s)}},e.prototype.isInsideCanvas=function(e){var t=this.lf.graphModel.rootEl.querySelector(`[name="canvas-overlay"]`),n=window.document.elementFromPoint(e.clientX,e.clientY);return n===t||n!==null&&!!t&&t.contains(n)},e.prototype.startDrag=function(e){var t=this;this.lf.graphModel.editConfigModel?.isSilentMode||(this.nodeConfig=e,this.docPointerMove=function(e){t.nodeConfig&&(t.isInsideCanvas(e)?t.fakeNode?t.onDragOver(e):t.dragEnter(e):t.onDragLeave())},this.docPointerUp=function(e){t.nodeConfig&&(t.isInsideCanvas(e)?t.onDrop(e):t.onDragLeave(),e.preventDefault(),e.stopPropagation(),t.stopDrag())},window.document.addEventListener(`pointermove`,this.docPointerMove),window.document.addEventListener(`pointerup`,this.docPointerUp))},e}();function DUe(e,t){e.on(`node:mousemove`,function(e){var n=e.data;t.setNodeSnapLine(n)}),e.on(`node:mouseup`,function(){t.clearSnapline()})}var OUe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),d6=function(){return d6=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},d6.apply(this,arguments)},kUe=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},AUe=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},jUe=function(e){OUe(t,e);function t(t){var n=e.call(this,t)||this;return n.ref=HZ(),n.__prevText={type:``,text:``,id:``},n.keyupHandler=function(e){var t=n.props.graphModel.textEditElement;e.key===`Enter`&&e.altKey&&t?.setElementState(j0.DEFAULT)},n.inputHandler=function(e){var t=e.target.innerText,r=n.props.graphModel.textEditElement;r&&(n.__prevText={type:r.type,text:t.replace(/(\r\n)+$|(\n)+$/,``),id:r.id})},n.keydownHandler=function(e){e.stopPropagation()},n.state={style:{left:0,top:0}},n}return t.getDerivedStateFromProps=function(e){var t=e.textEditElement,n=e.graphModel,r=n.transformModel,i=n.theme,a=i.inputText,o;if(t){if(!t.text?.value&&t.BaseType===M0.EDGE){var s=t.text,c=t.textPosition,l=c.x,u=c.y;s.x=l,s.y=u,t.setText(s)}var d={resize:`auto`,whiteSpace:`normal`,wordBreak:`break-all`};if(t.BaseType===M0.EDGE){var f=i.edgeText,p=f.overflowMode,m=f.lineHeight,h=f.wrapPadding,g=f.textWidth;g&&p===`autoWrap`&&(o=d6(d6({},d),{width:g,minWidth:g,lineHeight:m,padding:h}))}else if(t.BaseType===M0.NODE){var _=i.nodeText,p=_.overflowMode,m=_.lineHeight,h=_.wrapPadding,g=_.textWidth,v=t.width,y=t.modelType,b=t.textWidth||g||v;(y!==N0.TEXT_NODE&&p===`autoWrap`||y===N0.TEXT_NODE&&g)&&(o=d6(d6({},d),{width:b,minWidth:b,lineHeight:m,padding:h}))}var x=t.text,S=x.x,C=x.y,w=AUe(r.CanvasPointToHtmlPoint([S,C]),2),T=w[0],E=w[1];return{style:d6(d6({left:T,top:E},o),a)}}return null},t.prototype.componentDidUpdate=function(){var e=this.props.graphModel;if(this.ref.current&&(this.ref.current.focus(),this.placeCaretAtEnd(this.ref.current)),this.__prevText.id!==``){var t=this.__prevText,n=t.text,r=t.id;e.updateText(r,n),e.eventCenter.emit(P0.TEXT_UPDATE,{data:d6({},this.__prevText)}),this.__prevText.id=``,this.__prevText.text=``,this.__prevText.type=``}},t.prototype.placeCaretAtEnd=function(e){if(window.getSelection!==void 0&&document.createRange!==void 0){var t=document.createRange();t.selectNodeContents(e),t.collapse(!1);var n=window.getSelection();n?.removeAllRanges(),n?.addRange(t)}},t.prototype.render=function(){var e=this.props.graphModel.textEditElement,t=this.state.style;return e?S0(`div`,{contentEditable:!0,className:`lf-text-input`,style:t,ref:this.ref,onKeyUp:this.keyupHandler,onKeyDown:this.keydownHandler,onKeyPress:this.keydownHandler,onInput:this.inputHandler,children:e.text?.value},e.id):null},t.toolName=`text-edit-tool`,t=kUe([F6],t),t}(WZ),MUe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),NUe=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},f6=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},PUe=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},FUe=function(e){MUe(t,e);function t(t){var n=e.call(this,t)||this;n.handleMouseDown=function(e){var t=n.props,r=t.graphModel.gridSize,i=t.lf.getTransform().SCALE_X;n.stepDrag.setStep(r*i),n.stepDrag.handleMouseDown(e)},n.handleWheelEvent=function(e){var t;e.preventDefault();var r=e.deltaX,i=e.deltaY,a=e.clientX,o=e.clientY,s=e.ctrlKey,c=new WheelEvent(`wheel`,{deltaX:r,deltaY:i,clientX:a,clientY:o,ctrlKey:s});(t=n.props.lf.container?.querySelector(`.lf-canvas-overlay[name="canvas-overlay"]`))==null||t.dispatchEvent(c)},n.onDragging=function(e){var t=e.deltaX,r=e.deltaY,i=n.props,a=i.graphModel,o=i.lf.getTransform(),s=o.SCALE_X,c=o.SCALE_Y,l=a.getSelectElements(!0);a.moveNodes(l.nodes.map(function(e){return e.id}),t/s,r/c)},n.handleContextMenu=function(e){e.preventDefault();var t=n.props,r=t.graphModel,i=t.graphModel,a=i.eventCenter,o=i.selectElements,s=r.getPointByClient({x:e.clientX,y:e.clientY}),c={nodes:[],edges:[]};PUe([],f6(o.values()),!1).forEach(function(e){e.BaseType===M0.NODE&&c.nodes.push(e.getData()),e.BaseType===M0.EDGE&&c.edges.push(e.getData())}),a.emit(P0.SELECTION_CONTEXTMENU,{data:c,e,position:s})};var r=t.graphModel,i=r.gridSize,a=r.eventCenter;return n.stepDrag=new R0({onDragging:n.onDragging,step:i,eventType:`SELECTION`,eventCenter:a}),n}return t.prototype.render=function(){var e,t,n=this.props.graphModel,r=n.selectElements,i=n.transformModel,a=n.theme,o=this.props.lf.getTransform(),s=o.SCALE_X,c=o.SCALE_Y,l=a.multiSelect||{},u=l.xPadding,d=u===void 0?8:u,f=l.yPadding,p=f===void 0?8:f;if(!(r.size<=1)){var m=2**53-1,h=2**53-1,g=-(2**53-1),_=-(2**53-1);return r.forEach(function(e){var t;e.BaseType===M0.NODE&&(t=CBe(e)),e.BaseType===M0.EDGE&&(t=DBe(e)),t!==void 0&&(m=Math.min(m,t.x),h=Math.min(h,t.y),g=Math.max(g,t.x1),_=Math.max(_,t.y1))}),e=f6(i.CanvasPointToHtmlPoint([m,h]),2),m=e[0],h=e[1],t=f6(i.CanvasPointToHtmlPoint([g,_]),2),g=t[0],_=t[1],S0(`div`,{className:`lf-multiple-select`,style:{left:`${m-20*s/2-d/2}px`,top:`${h-20*c/2-p/2}px`,width:`${g-m+20*s+d}px`,height:`${_-h+20*c+p}px`,"border-width":`${2*s}px`},onPointerDown:this.handleMouseDown,onContextMenu:this.handleContextMenu,onWheel:this.handleWheelEvent})}},t.toolName=`multiple-select-tool`,t=NUe([F6],t),t}(WZ),p6=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},IUe=[jUe,FUe],LUe=function(){function e(e){var t=this;this.toolMap=new Map,this.disabledToolMap=new Map,this.instance=e,lo(IUe,function(e){t.isDisabled(e.toolName)||t.registerTool(e.toolName,e)});var n=e.graphModel;n.eventCenter.on(`${P0.GRAPH_TRANSFORM},${P0.NODE_CLICK},${P0.BLANK_CLICK} `,function(){var e,t=n.textEditElement,r=n.editConfigModel,i=r.edgeTextEdit,a=r.nodeTextEdit;(i||a)&&t&&((e=n.textEditElement)==null||e.setElementState(j0.DEFAULT))})}return e.prototype.isDisabled=function(e){return this.instance.options.disabledTools?.indexOf(e)!==-1},e.prototype.registerTool=function(e,t){this.toolMap.set(e,t)},e.prototype.disableTool=function(e){var t=this.toolMap.get(e);if(t)return this.disabledToolMap.set(e,t),this.toolMap.delete(e),!0;throw Error(`禁用失败,不存在名为 ${t} 的工具`)},e.prototype.enableTool=function(e){var t=this.disabledToolMap.get(e);if(t)return this.toolMap.set(e,t),this.disabledToolMap.delete(e),!0;throw Error(`不存在名为 ${t} 的工具`)},e.prototype.getTools=function(){return Array.from(this.toolMap.values())},e.prototype.getInstance=function(){return this.instance},e.prototype.destroy=function(){this.toolMap.clear(),this.disabledToolMap.clear()},p6([KQ],e.prototype,`toolMap`,void 0),p6([Q],e.prototype,`disableTool`,null),p6([Q],e.prototype,`enableTool`,null),e}();function RUe(e){throw Error(`[mobx-utils] `+e)}function m6(e,t){t===void 0&&(t=`Illegal state`),e||RUe(t)}var h6=function(e){return e&&e!==Object.prototype&&Object.getOwnPropertyNames(e).concat(h6(Object.getPrototypeOf(e))||[])},zUe=function(e){var t=h6(e);return t.filter(function(e,n){return t.indexOf(e)===n})},BUe=function(e){return zUe(e).filter(function(e){return e!==`constructor`&&!~e.indexOf(`__`)})},g6=`pending`,_6=`fulfilled`,v6=`rejected`;function VUe(e){switch(this.state){case g6:return e.pending&&e.pending(this.value);case v6:return e.rejected&&e.rejected(this.value);case _6:return e.fulfilled?e.fulfilled(this.value):this.value}}function HUe(e,t){if(m6(arguments.length<=2,`fromPromise expects up to two arguments`),m6(typeof e==`function`||typeof e==`object`&&e&&typeof e.then==`function`,`Please pass a promise or function to fromPromise`),e.isPromiseBasedObservable===!0)return e;typeof e==`function`&&(e=new Promise(e));var n=e;return e.then(Q(`observableFromPromise-resolve`,function(e){n.value=e,n.state=_6}),Q(`observableFromPromise-reject`,function(e){n.value=e,n.state=v6})),n.isPromiseBasedObservable=!0,n.case=VUe,U$(n,{value:t&&t.state===`fulfilled`?t.value:void 0,state:g6},{},{deep:!1}),n}(function(e){e.reject=Q(`fromPromise.reject`,function(t){var n=e(Promise.reject(t));return n.state=v6,n.value=t,n});function t(t){t===void 0&&(t=void 0);var n=e(Promise.resolve(t));return n.state=_6,n.value=t,n}e.resolve=Q(`fromPromise.resolve`,t)})(HUe||={});var y6=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};(function(){function e(e,t){var n=this;_ze(function(){n.current=t,n.subscription=e.subscribe(n)})}return e.prototype.dispose=function(){this.subscription&&this.subscription.unsubscribe()},e.prototype.next=function(e){this.current=e},e.prototype.complete=function(){this.dispose()},e.prototype.error=function(e){this.current=e,this.dispose()},y6([KQ.ref],e.prototype,`current`,void 0),y6([Q.bound],e.prototype,`next`,null),y6([Q.bound],e.prototype,`complete`,null),y6([Q.bound],e.prototype,`error`,null),e})();var b6=function(){return b6=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},b6.apply(this,arguments)},x6=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},UUe=[`model`,`reset`,`submit`,`isDirty`,`isPropertyDirty`,`resetProperty`];(function(){function e(e){var t=this;this.model=e,this.localValues=KQ.map({}),this.localComputedValues=KQ.map({}),this.isPropertyDirty=function(e){return t.localValues.has(e)},m6(T1(e),`createViewModel expects an observable object`),BUe(e).forEach(function(n){if(n!==CQ&&n!==`__mobxDidRunLazyInitializers`){if(m6(UUe.indexOf(n)===-1,`The propertyname `+n+` is reserved and cannot be used with viewModels`),J$(e,n)){var r=D1(e,n).derivation;t.localComputedValues.set(n,YQ(r.bind(t)))}var i=Object.getOwnPropertyDescriptor(e,n),a=i?{enumerable:i.enumerable}:{};Object.defineProperty(t,n,b6(b6({},a),{configurable:!0,get:function(){return J$(e,n)?t.localComputedValues.get(n).get():t.isPropertyDirty(n)?t.localValues.get(n):t.model[n]},set:Q(function(e){e===t.model[n]?t.localValues.delete(n):t.localValues.set(n,e)})}))}})}return Object.defineProperty(e.prototype,"isDirty",{get:function(){return this.localValues.size>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"changedValues",{get:function(){return this.localValues.toJS()},enumerable:!1,configurable:!0}),e.prototype.submit=function(){var e=this;X$(this.localValues).forEach(function(t){var n=e.localValues.get(t),r=e.model[t];p1(r)?r.replace(n):g1(r)?(r.clear(),r.merge(n)):wze(n)||(e.model[t]=n)}),this.localValues.clear()},e.prototype.reset=function(){this.localValues.clear()},e.prototype.resetProperty=function(e){this.localValues.delete(e)},x6([YQ],e.prototype,`isDirty`,null),x6([YQ],e.prototype,`changedValues`,null),x6([Q.bound],e.prototype,`submit`,null),x6([Q.bound],e.prototype,`reset`,null),x6([Q.bound],e.prototype,`resetProperty`,null),e})();function S6(e){if(!e)return`ROOT`;for(var t=[];e.parent;)t.push(e.path),e=e.parent;return t.reverse().join(`/`)}function C6(e){return T1(e)||p1(e)||g1(e)}function WUe(e,t){var n=new WeakMap;function r(r){var a=n.get(r.object);i(r,a),t(r,S6(a),e)}function i(e,t){switch(e.type){case`add`:a(e.newValue,t,e.name);break;case`update`:o(e.oldValue),a(e.newValue,t,e.name||``+e.index);break;case`remove`:case`delete`:o(e.oldValue);break;case`splice`:e.removed.map(o),e.added.forEach(function(n,r){return a(n,t,``+(e.index+r))});for(var r=e.index+e.addedCount;r<e.object.length;r++)if(C6(e.object[r])){var i=n.get(e.object[r]);i&&(i.path=``+r)}}}function a(e,t,i){if(C6(e)){var o=n.get(e);if(o){if(o.parent!==t||o.path!==i)throw Error(`The same observable object cannot appear twice in the same tree,`+(` trying to assign it to '`+S6(t)+`/`+i+`',`)+(` but it already exists at '`+S6(o.parent)+`/`+o.path+`'`))}else{var s={parent:t,path:i,dispose:Q$(e,r)};n.set(e,s),Dze(e).forEach(function(e){var t=e[0],n=e[1];return a(n,s,t)})}}}function o(e){if(C6(e)){var t=n.get(e);if(!t)return;n.delete(e),t.dispose(),Eze(e).forEach(o)}}return a(e,void 0,``),function(){o(e)}}var GUe=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();(function(e){GUe(t,e);function t(t,n,r){var i=r===void 0?{}:r,a=i.name,o=a===void 0?`ogm`+(Math.random()*1e3|0):a,s=i.keyToName,c=s===void 0?function(e){return``+e}:s,l=e.call(this)||this;l._keyToName=c,l._groupBy=n,l._ogmInfoKey=Symbol(`ogmInfo`+o),l._base=t;for(var u=0;u<t.length;u++)l._addItem(t[u]);return l._disposeBaseObserver=Q$(l._base,function(e){if(e.type===`splice`)n1(function(){for(var t=0,n=e.removed;t<n.length;t++){var r=n[t];l._removeItem(r)}for(var i=0,a=e.added;i<a.length;i++){var o=a[i];l._addItem(o)}});else if(e.type===`update`)n1(function(){l._removeItem(e.oldValue),l._addItem(e.newValue)});else throw Error(`illegal state`)}),l}return t.prototype.clear=function(){throw Error(`not supported`)},t.prototype.delete=function(e){throw Error(`not supported`)},t.prototype.set=function(e,t){throw Error(`not supported`)},t.prototype.dispose=function(){this._disposeBaseObserver();for(var e=0;e<this._base.length;e++){var t=this._base[e];t[this._ogmInfoKey].reaction(),delete t[this._ogmInfoKey]}},t.prototype._getGroupArr=function(t){var n=e.prototype.get.call(this,t);return n===void 0&&(n=KQ([],{name:`GroupArray[`+this._keyToName(t)+`]`,deep:!1}),e.prototype.set.call(this,t,n)),n},t.prototype._removeFromGroupArr=function(t,n){var r=e.prototype.get.call(this,t);r.length===1?e.prototype.delete.call(this,t):(n===r.length-1||(r[n]=r[r.length-1],r[n][this._ogmInfoKey].groupArrIndex=n),r.length--)},t.prototype._addItem=function(e){var t=this,n=this._groupBy(e),r=this._getGroupArr(n),i={groupByValue:n,groupArrIndex:r.length,reaction:B$(function(){return t._groupBy(e)},function(n,r){var i=e[t._ogmInfoKey];t._removeFromGroupArr(i.groupByValue,i.groupArrIndex);var a=t._getGroupArr(n),o=a.length;a.push(e),i.groupByValue=n,i.groupArrIndex=o})};Object.defineProperty(e,this._ogmInfoKey,{configurable:!0,enumerable:!1,value:i}),r.push(e)},t.prototype._removeItem=function(e){var t=e[this._ogmInfoKey];this._removeFromGroupArr(t.groupByValue,t.groupArrIndex),t.reaction(),delete e[this._ogmInfoKey]},t})(h1);var KUe=function(){function e(e,t){this.base=e,this.args=t,this.closestIdx=0,this.isDisposed=!1;for(var n=this.closest=this.root=e,r=0;r<this.args.length-1&&(n=n.get(t[r]),n);r++)this.closest=n;this.closestIdx=r}return e.prototype.exists=function(){this.assertNotDisposed();var e=this.args.length;return this.closestIdx>=e-1&&this.closest.has(this.args[e-1])},e.prototype.get=function(){if(this.assertNotDisposed(),!this.exists())throw Error(`Entry doesn't exist`);return this.closest.get(this.args[this.args.length-1])},e.prototype.set=function(e){this.assertNotDisposed();for(var t=this.args.length,n=this.closest,r=this.closestIdx;r<t-1;r++){var i=new Map;n.set(this.args[r],i),n=i}this.closestIdx=t-1,this.closest=n,n.set(this.args[t-1],e)},e.prototype.delete=function(){if(this.assertNotDisposed(),!this.exists())throw Error(`Entry doesn't exist`);var e=this.args.length;this.closest.delete(this.args[e-1]);for(var t=this.root,n=[t],r=0;r<e-1;r++)t=t.get(this.args[r]),n.push(t);for(var r=n.length-1;r>0;r--)n[r].size===0&&n[r-1].delete(this.args[r-1]);this.isDisposed=!0},e.prototype.assertNotDisposed=function(){if(this.isDisposed)throw Error(`Concurrent modification exception`)},e}();(function(){function e(){this.store=new Map,this.argsLength=-1}return e.prototype.entry=function(e){if(this.argsLength===-1)this.argsLength=e.length;else if(this.argsLength!==e.length)throw Error(`DeepMap should be used with functions with a consistent length, expected: `+this.argsLength+`, got: `+e.length);return this.last&&(this.last.isDisposed=!0),this.last=new KUe(this.store,e)},e})(),Promise.resolve(),typeof queueMicrotask<`u`||typeof process<`u`&&process.nextTick;var w6=function(){return w6=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},w6.apply(this,arguments)},qUe=function(){function e(e){this.undos=[],this.redos=[],this.callbacks=[],this.stopWatch=null,this.curData=null,this.maxSize=50,this.waitTime=100,this.eventCenter=e}return e.prototype.add=function(e){Mo(so(this.undos),e)||(this.undos.push(e),Mo(this.curData,e)||(this.redos=[]),this.eventCenter.emit(P0.HISTORY_CHANGE,{data:{undos:this.undos,redos:this.redos,undoAble:this.undoAble(),redoAble:this.redoAble()}}),this.undos.length>this.maxSize&&this.undos.shift())},e.prototype.undoAble=function(){return this.undos.length>1},e.prototype.undo=function(){if(this.undoAble()){var e=this.undos.pop();this.redos.push(e);var t=this.undos.pop();return this.curData=Va(t),t}},e.prototype.redoAble=function(){return this.redos.length>0},e.prototype.redo=function(){if(this.redoAble()){var e=this.redos.pop();return this.curData=Va(e),e}},e.prototype.watch=function(e){var t=this;this.stopWatch&&this.stopWatch(),this.undos.push(e.modelToGraphData()),this.stopWatch=WUe(e,oo(function(){var n=e.modelToHistoryData();n&&t.add(w6({},n))},this.waitTime))},e.prototype.destroy=function(){this.undos=[],this.redos=[],this.curData=null,this.stopWatch&&this.stopWatch()},e}(),JUe=ei(Qr(((e,t)=>{(function(e,n,r){if(!e)return;for(var i={8:`backspace`,9:`tab`,13:`enter`,16:`shift`,17:`ctrl`,18:`alt`,20:`capslock`,27:`esc`,32:`space`,33:`pageup`,34:`pagedown`,35:`end`,36:`home`,37:`left`,38:`up`,39:`right`,40:`down`,45:`ins`,46:`del`,91:`meta`,93:`meta`,224:`meta`},a={106:`*`,107:`+`,109:`-`,110:`.`,111:`/`,186:`;`,187:`=`,188:`,`,189:`-`,190:`.`,191:`/`,192:"`",219:`[`,220:`\\`,221:`]`,222:`'`},o={"~":"`","!":`1`,"@":`2`,"#":`3`,$:`4`,"%":`5`,"^":`6`,"&":`7`,"*":`8`,"(":`9`,")":`0`,_:`-`,"+":`=`,":":`;`,'"':`'`,"<":`,`,">":`.`,"?":`/`,"|":`\\`},s={option:`alt`,command:`meta`,return:`enter`,escape:`esc`,plus:`+`,mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?`meta`:`ctrl`},c,l=1;l<20;++l)i[111+l]=`f`+l;for(l=0;l<=9;++l)i[l+96]=l.toString();function u(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent(`on`+t,n)}function d(e){if(e.type==`keypress`){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return i[e.which]?i[e.which]:a[e.which]?a[e.which]:String.fromCharCode(e.which).toLowerCase()}function f(e,t){return e.sort().join(`,`)===t.sort().join(`,`)}function p(e){var t=[];return e.shiftKey&&t.push(`shift`),e.altKey&&t.push(`alt`),e.ctrlKey&&t.push(`ctrl`),e.metaKey&&t.push(`meta`),t}function m(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function h(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function g(e){return e==`shift`||e==`ctrl`||e==`alt`||e==`meta`}function _(){if(!c)for(var e in c={},i)e>95&&e<112||i.hasOwnProperty(e)&&(c[i[e]]=e);return c}function v(e,t,n){return n||=_()[e]?`keydown`:`keypress`,n==`keypress`&&t.length&&(n=`keydown`),n}function y(e){return e===`+`?[`+`]:(e=e.replace(/\+{2}/g,`+plus`),e.split(`+`))}function b(e,t){var n,r,i,a=[];for(n=y(e),i=0;i<n.length;++i)r=n[i],s[r]&&(r=s[r]),t&&t!=`keypress`&&o[r]&&(r=o[r],a.push(`shift`)),g(r)&&a.push(r);return t=v(r,a,t),{key:r,modifiers:a,action:t}}function x(e,t){return e===null||e===n?!1:e===t||x(e.parentNode,t)}function S(e){var t=this;if(e||=n,!(t instanceof S))return new S(e);t.target=e,t._callbacks={},t._directMap={};var r={},i,a=!1,o=!1,s=!1;function c(e){e||={};var t=!1,n;for(n in r)e[n]?t=!0:r[n]=0;t||(s=!1)}function l(e,n,i,a,o,s){var c,l,u=[],d=i.type;if(!t._callbacks[e])return[];for(d==`keyup`&&g(e)&&(n=[e]),c=0;c<t._callbacks[e].length;++c)if(l=t._callbacks[e][c],(a||!l.seq||r[l.seq]==l.level)&&d==l.action&&(d==`keypress`&&!i.metaKey&&!i.ctrlKey||f(n,l.modifiers))){var p=!a&&l.combo==o,m=a&&l.seq==a&&l.level==s;(p||m)&&t._callbacks[e].splice(c,1),u.push(l)}return u}function _(e,n,r,i){t.stopCallback(n,n.target||n.srcElement,r,i)||e(n,r)===!1&&(m(n),h(n))}t._handleKey=function(e,t,n){var r=l(e,t,n),i,a={},u=0,d=!1;for(i=0;i<r.length;++i)r[i].seq&&(u=Math.max(u,r[i].level));for(i=0;i<r.length;++i)if(r[i].seq){if(r[i].level!=u)continue;d=!0,a[r[i].seq]=1,_(r[i].callback,n,r[i].combo,r[i].seq)}else d||_(r[i].callback,n,r[i].combo);var f=n.type==`keypress`&&o;n.type==s&&!g(e)&&!f&&c(a),o=d&&n.type==`keydown`};function v(e){typeof e.which!=`number`&&(e.which=e.keyCode);var n=d(e);n&&(e.type==`keyup`&&a===n?a=!1:t.handleKey(n,p(e),e))}function y(){clearTimeout(i),i=setTimeout(c,1e3)}function x(e,t,n,i){r[e]=0;function o(t){return function(){s=t,++r[e],y()}}function l(t){_(n,t,e),i!==`keyup`&&(a=d(t)),setTimeout(c,10)}for(var u=0;u<t.length;++u){var f=u+1===t.length?l:o(i||b(t[u+1]).action);C(t[u],f,i,e,u)}}function C(e,n,r,i,a){t._directMap[e+`:`+r]=n,e=e.replace(/\s+/g,` `);var o=e.split(` `),s;o.length>1?x(e,o,n,r):(s=b(e,r),t._callbacks[s.key]=t._callbacks[s.key]||[],l(s.key,s.modifiers,{type:s.action},i,e,a),t._callbacks[s.key][i?`unshift`:`push`]({callback:n,modifiers:s.modifiers,action:s.action,seq:i,level:a,combo:e}))}t._bindMultiple=function(e,t,n){for(var r=0;r<e.length;++r)C(e[r],t,n)},u(e,`keypress`,v),u(e,`keydown`,v),u(e,`keyup`,v)}S.prototype.bind=function(e,t,n){var r=this;return e=e instanceof Array?e:[e],r._bindMultiple.call(r,e,t,n),r},S.prototype.unbind=function(e,t){var n=this;return n.bind.call(n,e,function(){},t)},S.prototype.trigger=function(e,t){var n=this;return n._directMap[e+`:`+t]&&n._directMap[e+`:`+t]({},e),n},S.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},S.prototype.stopCallback=function(e,t){var n=this;if((` `+t.className+` `).indexOf(` mousetrap `)>-1||x(t,n.target))return!1;if(`composedPath`in e&&typeof e.composedPath==`function`){var r=e.composedPath()[0];r!==e.target&&(t=r)}return t.tagName==`INPUT`||t.tagName==`SELECT`||t.tagName==`TEXTAREA`||t.isContentEditable},S.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},S.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);c=null},S.init=function(){var e=S(n);for(var t in e)t.charAt(0)!==`_`&&(S[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},S.init(),e.Mousetrap=S,t!==void 0&&t.exports&&(t.exports=S),typeof define==`function`&&define.amd&&define(function(){return S})})(typeof window<`u`?window:null,typeof window<`u`?document:null)}))()),T6=null;function E6(e,t){var n;return e.x+=t,e.y+=t,jo(e.text)||(e.text.x+=t,e.text.y+=t),jo(e.properties?._label)||(n=e.properties)==null||n._label.forEach(function(e){e.x+=t,e.y+=t}),e}function D6(e,t){return e.startPoint&&(e.startPoint.x+=t,e.startPoint.y+=t),e.endPoint&&(e.endPoint.x+=t,e.endPoint.y+=t),e.pointsList&&e.pointsList.length>0&&e.pointsList.forEach(function(e){e.x+=t,e.y+=t}),jo(e.text)||(e.text.x+=t,e.text.y+=t),e}var O6=40,k6=40;function YUe(e,t){var n=e.keyboard,r=n.options.keyboard;n.on([`cmd + c`,`ctrl + c`],function(){if(k6=O6,!r?.enabled||t.textEditElement)return!0;var n=e.options.guards,i=t.getSelectElements(!1);return n&&n.beforeClone&&!n.beforeClone(i)||i.nodes.length===0&&i.edges.length===0?(T6=null,!0):(T6=i,T6.nodes.forEach(function(e){return E6(e,O6)}),T6.edges.forEach(function(e){return D6(e,O6)}),!1)}),n.on([`cmd + v`,`ctrl + v`],function(){if(!r?.enabled||t.textEditElement)return!0;if(T6&&(T6.nodes||T6.edges)){e.clearSelectElements();var n=e.addElements(T6,k6);if(!n)return!0;n.nodes.forEach(function(t){return e.selectElementById(t.id,!0)}),n.edges.forEach(function(t){return e.selectElementById(t.id,!0)}),T6.nodes.forEach(function(e){return E6(e,O6)}),T6.edges.forEach(function(e){return D6(e,O6)}),k6+=O6}return!1}),n.on([`cmd + z`,`ctrl + z`],function(){return!r?.enabled||t.textEditElement?!0:(e.undo(),!1)}),n.on([`cmd + y`,`ctrl + y`],function(){return!r?.enabled||t.textEditElement?!0:(e.redo(),!1)}),n.on([`backspace`],function(){if(!r?.enabled||t.textEditElement)return!0;var n=t.getSelectElements(!0);return e.clearSelectElements(),n.edges.forEach(function(t){return t.id&&e.deleteEdge(t.id)}),n.nodes.forEach(function(t){return t.id&&e.deleteNode(t.id)}),!1})}var XUe=function(){function e(e){e.keyboard||={enabled:!1},this.options=e;var t=e.lf;this.target=t.container,this.mousetrap=new JUe.default(this.target),e.keyboard.enabled&&!t.options.isSilentMode&&this.enable(!0)}return e.prototype.initShortcuts=function(){var e=this,t=(this.options.keyboard??{}).shortcuts;if(t){if(O(t))t.forEach(function(t){var n=t.keys,r=t.callback,i=t.action;return e.on(n,r,i)});else{var n=t.keys,r=t.callback,i=t.action;this.on(n,r,i)}}},e.prototype.on=function(e,t,n){this.mousetrap.bind(this.getKeys(e),t,n)},Object.defineProperty(e.prototype,"disabled",{get:function(){return this.options?.keyboard?.enabled!==!0},enumerable:!1,configurable:!0}),e.prototype.off=function(e,t){this.mousetrap.unbind(this.getKeys(e),t)},e.prototype.enable=function(e){(this.disabled||e)&&(this.options.keyboard&&(this.options.keyboard.enabled=!0),this.target instanceof HTMLElement&&(this.target.setAttribute(`tabindex`,`-1`),this.target.style.outline=`none`))},e.prototype.disable=function(){this.disabled||(this.options.keyboard&&(this.options.keyboard.enabled=!1),this.target instanceof HTMLElement&&this.target.removeAttribute(`tabindex`))},e.prototype.destroy=function(){this.mousetrap.reset()},e.prototype.getKeys=function(e){var t=this;return(Array.isArray(e)?e:[e]).map(function(e){return t.formatKey(e)})},e.prototype.formatKey=function(e){return e.toLowerCase().replace(/\s/g,``).replace(`delete`,`del`).replace(`cmd`,`command`)},e}(),A6=function(){return A6=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},A6.apply(this,arguments)},j6=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},M6=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},N6=Symbol(`plugin registered by Logicflow.use`),P6=function(){function e(e){var t=this;this.viewMap=new Map,this.components=[],this.extension={},this.setView=function(e,n){return t.viewMap.set(e,n)},this.getView=function(e){return t.viewMap.get(e)};var n=C0.get(e),r=n.container,i=n.width,a=n.height;this.options=n,this.container=this.initContainer(r,i,a),this.graphModel=new VHe(A6(A6({},n),{container:this.container})),this.plugins=n.plugins??[];var o=this.graphModel.eventCenter;this.tool=new LUe(this),this.dnd=new EUe({lf:this}),this.history=new qUe(o),this.keyboard=new XUe({lf:this,keyboard:n.keyboard}),n.snapline!==!1&&(this.snaplineModel=new HHe(this.graphModel,n.snaplineEpsilon),DUe(o,this.snaplineModel)),n.isSilentMode||(YUe(this,this.graphModel),this.keyboard.initShortcuts()),this.defaultRegister(),this.installPlugins(n.disabledPlugins)}return e.prototype.initContainer=function(e,t,n){var r=document.createElement(`div`);return r.style.position=`relative`,r.style.width=t?`${t}px`:`100%`,r.style.height=n?`${n}px`:`100%`,e.innerHTML=``,e.appendChild(r),r},Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return e.toStringTag},enumerable:!1,configurable:!0}),e.prototype.register=function(e,t,n){if(n===void 0&&(n=!0),typeof e!=`string`)this.registerElement(e);else{var r={BaseEdge:r6,BaseEdgeModel:w4,BaseNode:L3,BaseNodeModel:B4,RectNode:z3,RectNodeModel:n3,CircleNode:V3,CircleNodeModel:U4,PolygonNode:U3,PolygonNodeModel:e3,TextNode:Y3,TextNodeModel:a3,LineEdge:s6,LineEdgeModel:j4,DiamondNode:G3,DiamondNodeModel:q4,PolylineEdge:l6,PolylineEdgeModel:I4,BezierEdge:a6,BezierEdgeModel:O4,EllipseNode:q3,EllipseNodeModel:X4,HtmlNode:Z3,HtmlNodeModel:s3,h:BZ,type:e};if(this.viewMap.forEach(function(e){var t=e.extendKey;t&&(r[t]=e)}),this.graphModel.modelMap.forEach(function(e){var t=e.extendKey;t&&(r[t]=e)}),t){var i=t(r),a=i.view,o=i.model,s=a;n&&!s.isObserved&&(s.isObserved=!0,s=F6(s)),this.setView(e,s),this.graphModel.setModel(e,o)}}},e.prototype.registerElement=function(e){var t=e.view;e.isObserverView!==!1&&!t.isObserved&&(t.isObserved=!0,t=F6(t)),this.setView(e.type,t),this.graphModel.setModel(e.type,e.model)},e.prototype.batchRegister=function(e){var t=this;e===void 0&&(e=[]),lo(e,function(e){t.registerElement(e)})},e.prototype.defaultRegister=function(){var e=[{type:`rect`,view:z3,model:n3},{type:`circle`,view:V3,model:U4},{type:`polygon`,view:U3,model:e3},{type:`text`,view:Y3,model:a3},{type:`ellipse`,view:q3,model:X4},{type:`diamond`,view:G3,model:q4},{type:`html`,view:Z3,model:s3},{type:`line`,view:s6,model:j4},{type:`polyline`,view:l6,model:I4},{type:`bezier`,view:a6,model:O4}];this.batchRegister(e)},e.prototype.addNode=function(e,t,n){return t===void 0&&(t=P0.NODE_ADD),this.graphModel.addNode(e,t,n)},e.prototype.deleteNode=function(e){var t=this.graphModel.getNodeModelById(e);if(!t)return!1;var n=t.getData(),r=this.options.guards,i=!r?.beforeDelete||r.beforeDelete(n);return i&&this.graphModel.deleteNode(e),i},e.prototype.cloneNode=function(e){var t=this.graphModel.getNodeModelById(e)?.getData();if(t){var n=this.options.guards;if(!n?.beforeClone||n.beforeClone(t))return this.graphModel.cloneNode(e)}},e.prototype.changeNodeId=function(e,t){return this.graphModel.changeNodeId(e,t)},e.prototype.changeNodeType=function(e,t){this.graphModel.changeNodeType(e,t)},e.prototype.getNodeModelById=function(e){return this.graphModel.getNodeModelById(e)},e.prototype.getNodeDataById=function(e){return this.getNodeModelById(e)?.getData()},e.prototype.getNodeIncomingEdge=function(e){return this.graphModel.getNodeIncomingEdge(e)},e.prototype.getNodeOutgoingEdge=function(e){return this.graphModel.getNodeOutgoingEdge(e)},e.prototype.getNodeIncomingNode=function(e){return this.graphModel.getNodeIncomingNode(e)},e.prototype.getNodeOutgoingNode=function(e){return this.graphModel.getNodeOutgoingNode(e)},e.prototype.createFakeNode=function(e){var t=this.graphModel.modelMap.get(e.type);if(!t)return null;var n=new t(A6(A6({},e),{virtual:!0}),this.graphModel);return this.graphModel.setFakeNode(n),n},e.prototype.removeFakeNode=function(){this.graphModel.removeFakeNode()},e.prototype.setNodeSnapLine=function(e){var t;(t=this.snaplineModel)==null||t.setNodeSnapLine(e)},e.prototype.removeNodeSnapLine=function(){var e;(e=this.snaplineModel)==null||e.clearSnapline()},e.prototype.setDefaultEdgeType=function(e){this.graphModel.setDefaultEdgeType(e)},e.prototype.addEdge=function(e){return this.graphModel.addEdge(e)},e.prototype.getEdgeDataById=function(e){return this.getEdgeModelById(e)?.getData()},e.prototype.getEdgeModelById=function(e){return this.graphModel.getEdgeModelById(e)},e.prototype.getEdgeModels=function(e){var t=e.sourceNodeId,n=e.targetNodeId,r=[],i=this.graphModel.edges;return t&&n?lo(i,function(e){e.sourceNodeId===t&&e.targetNodeId===n&&r.push(e)}):t?lo(i,function(e){e.sourceNodeId===t&&r.push(e)}):n&&lo(i,function(e){e.targetNodeId===n&&r.push(e)}),r},e.prototype.changeEdgeId=function(e,t){return this.graphModel.changeEdgeId(e,t)},e.prototype.changeEdgeType=function(e,t){this.graphModel.changeEdgeType(e,t)},e.prototype.deleteEdge=function(e){var t=this.graphModel.getEdgeModelById(e);if(!t)return!1;var n=t.getData(),r=this.options.guards,i=!r?.beforeDelete||r.beforeDelete(n);return i&&this.graphModel.deleteEdgeById(e),i},e.prototype.deleteEdgeByNodeId=function(e){var t=e.sourceNodeId,n=e.targetNodeId;t&&n?this.graphModel.deleteEdgeBySourceAndTarget(t,n):t?this.graphModel.deleteEdgeBySource(t):n&&this.graphModel.deleteEdgeByTarget(n)},e.prototype.getNodeEdges=function(e){return this.graphModel.getNodeEdges(e)},e.prototype.addElements=function(e,t){var n=this,r=e.nodes,i=e.edges;t===void 0&&(t=40);var a={},o={nodes:[],edges:[]};return lo(r,function(e){var t=e.id,r=n.addNode(e);t&&(a[t]=r.id),o.nodes.push(r)}),lo(i,function(e){var t=e.sourceNodeId,r=e.targetNodeId;a[t]&&(t=a[t]),a[r]&&(r=a[r]);var i=n.graphModel.addEdge(A6(A6({},e),{sourceNodeId:t,targetNodeId:r}));o.edges.push(i)}),o},e.prototype.selectElementById=function(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),this.graphModel.selectElementById(e,t),!t&&n&&this.graphModel.toFront(e)},e.prototype.deselectElementById=function(e){this.graphModel.deselectElementById(e)},e.prototype.getSelectElements=function(e){return e===void 0&&(e=!0),this.graphModel.getSelectElements(e)},e.prototype.clearSelectElements=function(){this.graphModel.clearSelectElements()},e.prototype.getModelById=function(e){return this.graphModel.getElement(e)},e.prototype.getDataById=function(e){return this.graphModel.getElement(e)?.getData()},e.prototype.deleteElement=function(e){var t,n=this.getModelById(e);return n?(t={},t[M0.NODE]=this.deleteNode,t[M0.EDGE]=this.deleteEdge,t)[n.BaseType]?.call(this,e)??!1:!1},e.prototype.setElementZIndex=function(e,t){return this.graphModel.setElementZIndex(e,t)},e.prototype.getAreaElement=function(e,t,n,r,i){return n===void 0&&(n=!0),r===void 0&&(r=!0),i===void 0&&(i=!1),this.graphModel.getAreaElement(e,t,n,r,i).map(function(e){return e.getData()})},e.prototype.setProperties=function(e,t){var n;(n=this.graphModel.getElement(e))==null||n.setProperties(T0(t))},e.prototype.getProperties=function(e){return this.graphModel.getElement(e)?.getProperties()},e.prototype.deleteProperty=function(e,t){var n;(n=this.graphModel.getElement(e))==null||n.deleteProperty(t)},e.prototype.updateAttributes=function(e,t){this.graphModel.updateAttributes(e,t)},e.prototype.editText=function(e){this.graphModel.editText(e)},e.prototype.updateText=function(e,t){this.graphModel.updateText(e,t)},e.prototype.updateEditConfig=function(e){var t=this.graphModel,n=t.editConfigModel,r=t.transformModel,i=n.snapGrid;if(n.updateEditConfig(e),e?.stopMoveGraph!==void 0&&r.updateTranslateLimits(e.stopMoveGraph),e?.isSilentMode?this.keyboard.disable():this.keyboard.enable(!0),!No(e?.snapGrid)&&e.snapGrid!==i){var a=this.graphModel.grid.size,o=a===void 0?1:a;this.graphModel.updateGridSize(e.snapGrid?o:1)}this.emit(P0.EDIT_CONFIG_CHANGED,{data:n.getConfig()})},e.prototype.getEditConfig=function(){return this.graphModel.editConfigModel.getConfig()},e.prototype.setTheme=function(e,t){this.graphModel.setTheme(e,t)},e.prototype.getTheme=function(){return this.graphModel.getTheme()},e.prototype.focusByElement=function(e){var t=void 0,n=this.getNodeModelById(e);if(n){var r=n.getData(),i=r.x,a=r.y;t={x:i,y:a}}var o=this.getEdgeModelById(e);if(o){var s=o.textPosition,i=s.x,a=s.y;t={x:i,y:a}}t&&this.focusByCoordinate(t)},e.prototype.focusByCoordinate=function(e){var t=this.graphModel,n=t.transformModel,r=t.width,i=t.height,a=e.x,o=e.y;n.focusOn(a,o,r,i)},e.prototype.focusOn=function(e){if(typeof e==`string`)this.focusByElement(e);else if(`x`in e&&`y`in e)this.focusByCoordinate(e);else{var t=e.id,n=e.coordinate;t&&this.focusByElement(t),n&&this.focusByCoordinate(n)}},e.prototype.resize=function(e,t){this.graphModel.resize(e,t),this.options.width=this.graphModel.width,this.options.height=this.graphModel.height},e.prototype.toFront=function(e){this.graphModel.toFront(e)},e.prototype.getPointByClient=function(e,t){if(typeof e==`object`)return this.graphModel.getPointByClient(e);if(typeof t==`number`)return this.graphModel.getPointByClient({x:e,y:t})},e.prototype.getGraphData=function(){var e=[...arguments],t=this.getGraphRawData();return this.adapterOut?this.adapterOut.apply(this,M6([t],j6(e),!1)):t},e.prototype.getGraphRawData=function(){return this.graphModel.modelToGraphData()},e.prototype.clearData=function(){this.graphModel.clearData(),this.render({})},e.prototype.setOverlapMode=function(e){this.graphModel.setOverlapMode(e)},e.prototype.renderRawData=function(e){this.graphModel.graphDataToModel(T0(e)),this.options.history!==!1&&this.history.watch(this.graphModel),_0(S0(qHe,{getView:this.getView,tool:this.tool,options:this.options,dnd:this.dnd,snaplineModel:this.snaplineModel,graphModel:this.graphModel}),this.container),this.emit(P0.GRAPH_RENDERED,{data:this.graphModel.modelToGraphData(),graphModel:this.graphModel})},e.prototype.render=function(e){var t=Va(e);this.adapterIn&&(t=this.adapterIn(t)),this.renderRawData(t)},e.prototype.undo=function(){if(this.history.undoAble()){var e=T0(this.history.undo());this.clearSelectElements(),this.graphModel.graphDataToModel(e)}},e.prototype.redo=function(){if(this.history.redoAble()){var e=T0(this.history.redo());this.clearSelectElements(),this.graphModel.graphDataToModel(e)}},e.prototype.zoom=function(e,t){return this.graphModel.transformModel.zoom(e,t)},e.prototype.resetZoom=function(){this.graphModel.transformModel.resetZoom()},e.prototype.setZoomMiniSize=function(e){this.graphModel.transformModel.setZoomMiniSize(e)},e.prototype.setZoomMaxSize=function(e){this.graphModel.transformModel.setZoomMaxSize(e)},e.prototype.getTransform=function(){var e=this.graphModel.transformModel;return{SCALE_X:e.SCALE_X,SCALE_Y:e.SCALE_Y,TRANSLATE_X:e.TRANSLATE_X,TRANSLATE_Y:e.TRANSLATE_Y}},e.prototype.translate=function(e,t){this.graphModel.transformModel.translate(e,t)},e.prototype.resetTranslate=function(){var e=this.graphModel.transformModel,t=e.TRANSLATE_X,n=e.TRANSLATE_Y;this.translate(-t,-n)},e.prototype.translateCenter=function(){this.graphModel.translateCenter()},e.prototype.fitView=function(e,t){t===void 0&&(t=e),this.graphModel.fitView(e,t)},e.prototype.openEdgeAnimation=function(e){this.graphModel.openEdgeAnimation(e)},e.prototype.closeEdgeAnimation=function(e){this.graphModel.closeEdgeAnimation(e)},e.prototype.on=function(e,t){this.graphModel.eventCenter.on(e,t)},e.prototype.off=function(e,t){this.graphModel.eventCenter.off(e,t)},e.prototype.once=function(e,t){this.graphModel.eventCenter.once(e,t)},e.prototype.emit=function(e,t){this.graphModel.eventCenter.emit(e,t)},e.use=function(e,t){var n,r=e.pluginName;if(!r)throw Error(`请给插件指定 pluginName!`);this.extensions.set(r,(n={},n[N6]=N6,n.extension=e,n.props=t,n))},e.addThemeMode=function(e,t){IVe(e,t)},e.removeThemeMode=function(e){LVe(e)},e.clearThemeMode=function(){RVe()},e.prototype.installPlugins=function(t){var n=this;t===void 0&&(t=[]);var r=Array.from(e.extensions,function(e){return j6(e,2)[1]});lo(M6(M6([],j6(this.plugins),!1),j6(r),!1),function(e){var r,i;N6 in e?(r=e.extension,i=e.props):r=e;var a=r?.pluginName;wo(t,a)===-1&&n.installPlugin(r,i)})},e.prototype.installPlugin=function(t,n){if(`pluginName`in t&&`install`in t){var r=t.pluginName,i=t.install,a=t.render;r&&(i&&i.call(t,this,e),a&&this.components.push(a.bind(t)),this.extension[r]=t)}else{var o=t,s=o.pluginName,c=new o({lf:this,LogicFlow:e,props:n,options:this.options.pluginsOptions?.[s]??{}});c.render&&this.components.push(c.render.bind(c)),this.extension[s]=c}},e.prototype.destroy=function(){var e;for(var t in this.clearData(),_0(null,this.container),this.keyboard.destroy(),this.graphModel.destroy(),this.tool.destroy(),this.history.destroy(),this.extension){var n=this.extension[t];`destroy`in n&&((e=n.destroy)==null||e.call(n))}},e.extensions=new Map,e}();(function(e){e.toStringTag=`LF.${e.name}`})(P6||={});var ZUe=P6;function F6(e){return W1(e)}var I6=ZUe,QUe={use:{type:Array,default:void 0},watchData:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},width:{type:[String,Number],default:`100%`},height:{type:[String,Number],default:`100%`},data:{type:Object,default:void 0},options:{type:Object,default:{grid:!0,partial:!1,keyboard:{enabled:!0}}},onRegister:{type:[Function,Array],default:void 0}},$Ue=!1,eWe=Y({name:`RFlow`,props:QUe,setup(e){let t=lt(`flowDomRef`),n=V(()=>{let{width:t,height:n}=e;return{"--r-flow-width":US(t),"--r-flow-height":US(n)}}),r=p(),i={nodeTextEdit:!1,edgeTextEdit:!1,textEdit:!1},a={nodes:[],edges:[]},o=()=>{$Ue||=(e.use?.filter(Boolean).forEach(e=>I6.use(e)),!0)},s=e=>{if(!r.value)return;let t=Object.entries(i).reduce((t,[n])=>(t[n]=!e,t),{});Object.assign(i,t,{isSilentMode:e,adjustNodePosition:!e}),r.value.updateEditConfig(i)},c=n=>{if(o(),!t.value)return;let{options:i,readonly:c}=e;r.value=new I6({container:M(t.value),...Fo(i,`container`)}),r.value.render(n||a),s(c)};return Te(()=>e.data,t=>{e.watchData&&t&&r.value?.renderRawData(t)}),Te(()=>e.readonly,s),Ve(()=>{c(e.data);let{onRegister:t}=e;t&&r.value&&WS(t,r.value)}),se(()=>r.value?.destroy()),{flowDomRef:t,cssVars:n}},render(){let{cssVars:e}=this;return J(`div`,{class:`r-flow`,style:[e],ref:`flowDomRef`},null)}}),L6={transitionPropName:`fade`,transitionMode:`out-in`,transitionAppear:!0},tWe=e=>{let t=Zi(e[0]),n=Zi(e[1]),r=Zi(e[2]);return V(()=>({"--window-width":`var(--html-width, 100vw)`,"--window-height":`var(--html-height, 100dvh)`,"--layout-content-height":`calc(var(--html-height, 100dvh) - ${t.height.value}px - ${n.height.value}px - ${r.height.value}px)`,"--layout-content-width":`${t.width.value}px`,"--layout-siderbar-height":`${t.height.value}px`,"--layout-menutag-height":`${n.height.value}px`,"--layout-footer-height":`${r.height.value}px`}))},R6=[`side`,`top`,`mixed`,`right`,`split`],nWe=Y({name:`RayAdminShell`,props:{layout:{type:Object,required:!0},mode:{type:String,default:void 0},groupedSidebar:Boolean,showTabs:Boolean,showFooter:Boolean,busy:Boolean,contentRef:{type:Object,default:void 0},maximized:Boolean,maximizedStyle:{type:Object,default:void 0},restore:{type:Function,default:void 0},restoreLabel:{type:String,default:`Restore layout`}},setup(e,{slots:t}){let n=p(),r=p(),i=p(),a=tWe([n,r,i]),o=null;zi(typeof window>`u`?void 0:window,`keydown`,t=>{t instanceof KeyboardEvent&&t.key===`Escape`&&!t.defaultPrevented&&e.maximized&&e.restore?.()}),Te(()=>e.maximized,e=>{if(!e)return;let t=document.activeElement;o=t instanceof HTMLElement?t:null},{flush:`sync`}),Te(()=>e.maximized,e=>{!e&&o?.isConnected&&o.focus({preventScroll:!0})},{flush:`post`}),se(()=>{e.maximized&&e.restore?.()});let s=()=>J(`div`,{ref:n,class:`r-layout-header-region`,inert:e.maximized},[t.header?.()]),c=()=>e.showTabs?J(`div`,{ref:r,class:`r-layout-tabs-region`,inert:e.maximized},[t.tabs?.()]):null,l=()=>e.showFooter?J(`div`,{ref:i,class:`r-layout-footer-region`,inert:e.maximized},[t.footer?.()]):null;return()=>{let n=e.layout,r=e.mode??n.mode,i=r===`split`&&n.fixedHeader,o=r===`side`||r===`right`||(r===`mixed`||r===`split`)&&e.groupedSidebar,u=()=>o?t.sidebar?.():null;return J(`div`,{class:`r-layout-full`,style:[a.value,{"--layout-content-padding":`${n.contentPadding}px`,"--layout-content-max-width":n.contentWidth===`fixed`?`${n.contentMaxWidth}px`:`100%`}]},[i?s():null,J(rhe,{class:`r-layout-full__body`,hasSider:o,siderPlacement:r===`right`?`right`:`left`,embedded:!0},{default:()=>[r===`right`?null:u(),J(Ng,{class:`r-layout-full__viewer`},{default:()=>[n.fixedHeader?J(K,null,[i?null:s(),c()]):null,J(`div`,{class:[`r-layout-content-viewport`,{"r-layout-content--maximized":e.maximized}],style:e.maximized?e.maximizedStyle:void 0},[J(Ng,{ref:e.contentRef,class:`r-layout-full__viewer-content`,nativeScrollbar:!1,contentClass:`r-layout-content-scroll`},{default:()=>[n.fixedHeader?null:J(K,null,[s(),c()]),J(`main`,{class:`r-layout-content-inner`,"aria-busy":e.busy},[t.default?.()]),n.fixedFooter?null:l()]}),t.loading?.(),e.maximized?J(`button`,I({type:`button`,class:`r-layout-content-restore__button`,"aria-label":e.restoreLabel,title:e.restoreLabel},{onVnodeMounted:({el:e})=>{e instanceof HTMLElement&&e.focus({preventScroll:!0})}},{onClick:()=>e.restore?.()}),[J(RJ,{name:`action/fullscreen_fold`},null)]):null]),n.fixedFooter?l():null]}),r===`right`?u():null]})])}}});function rWe(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!wn(e)}var iWe=Y({name:`LayoutSettings`,props:{showDescription:Boolean,layout:{type:Object,required:!0},defaults:{type:Object,required:!0},translate:{type:Function,required:!0},update:{type:Function,required:!0}},setup(e){let t=e.translate,n=e.update;return()=>{let r;return J(Nr,{vertical:!0,size:16,class:`r-layout-settings`},{default:()=>[e.showDescription?J(`p`,{class:`r-layout-settings__hint`},[t(`description`)]):null,J(`div`,{class:`r-layout-presets`,role:`group`,"aria-label":t(`tab`)},[R6.map(r=>J(`button`,{type:`button`,class:`r-layout-preset`,key:r,"aria-label":t(r),title:t(r),"aria-pressed":e.layout.mode===r,onClick:()=>n({mode:r})},[J(`span`,{class:[`r-layout-preview`,`r-layout-preview--${r}`],"aria-hidden":`true`},[J(`span`,{class:`r-layout-preview__header`},null),J(`span`,{class:`r-layout-preview__aside`},null),J(`span`,{class:`r-layout-preview__body`},null)]),J(`span`,{class:`r-layout-preset__label`},[t(r)]),e.layout.mode===r?J(`span`,{class:`r-layout-preset__selected`,"aria-hidden":`true`},[bt(`✓`)]):null]))]),e.showDescription?J(`p`,{class:`r-layout-settings__hint`},[t(`modeHint.${e.layout.mode}`)]):null,J(Or,{labelPlacement:`top`,showFeedback:!1},{default:()=>[J(jr,{label:t(`contentWidth`)},{default:()=>[J(Mf,{value:e.layout.contentWidth,options:[`fluid`,`fixed`].map(e=>({value:e,label:t(e)})),onUpdateValue:e=>n({contentWidth:e})},null)]}),J(jr,{label:t(`maxWidth`)},{default:()=>[J(Mr,{value:e.layout.contentMaxWidth,disabled:e.layout.contentWidth!==`fixed`,min:640,max:2560,step:40,precision:0,onUpdateValue:e=>{e!==null&&n({contentMaxWidth:e})}},null)]}),J(jr,{label:t(`padding`)},{default:()=>[J(Mr,{value:e.layout.contentPadding,min:0,max:48,step:4,precision:0,onUpdateValue:e=>{e!==null&&n({contentPadding:e})}},null)]}),J(jr,{label:t(`fixedHeader`)},{default:()=>[J(c_,{value:e.layout.fixedHeader,onUpdateValue:e=>n({fixedHeader:e})},null)]}),J(jr,{label:t(`fixedFooter`)},{default:()=>[J(c_,{value:e.layout.fixedFooter,onUpdateValue:e=>n({fixedFooter:e})},null)]})]}),J(wr,{onClick:()=>n({...e.defaults})},rWe(r=t(`reset`))?r:{default:()=>[r]})]})}}}),aWe={class:`r-route-transition`},oWe=Y({name:`RTransitionComponent`,__name:`RouteTransition`,props:rt({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean},getKeepAliveConfig:{},getKeepAliveInclude:{}},L6),setup(e){return(t,n)=>(L(),H(`div`,aWe,[J(M(Qx),null,{default:ft(({Component:t,route:n})=>[t?(L(),W(gn,{key:0,name:e.transitionPropName,mode:e.transitionMode,appear:e.transitionAppear},{default:ft(()=>[(L(),W(Dt,null,{default:ft(()=>[e.getKeepAliveConfig.setupKeepAlive?(L(),W(pn,{key:0,max:e.getKeepAliveConfig.maxKeepAliveLength,include:e.getKeepAliveInclude,exclude:e.getKeepAliveConfig.keepAliveExclude},[(L(),W(jn(t),{key:n.fullPath}))],1032,[`max`,`include`,`exclude`])):(L(),W(jn(t),{key:n.fullPath}))]),_:2},1024))]),_:2},1032,[`name`,`mode`,`appear`])):Rt(``,!0)]),_:1})]))}}),sWe=Y({name:`ShellTopNavigation`,props:{items:{type:Array,required:!0},active:{type:[String,Number],default:null},label:{type:String,required:!0},grouped:Boolean,iconSize:{type:Number,default:20},select:{type:Function,required:!0}},setup(e,{slots:t}){let n=V(()=>e.grouped),r=V(()=>n.value?e.items.filter(e=>e.show!==!1).map(e=>({...e,children:void 0})):e.items),i=V(()=>n.value?yS(e.items,String(e.active))?.fullPath:e.active),a=(t,r)=>{let i=n.value?e.items.find(e=>e.fullPath===t):r,a=i&&bS(i);a&&e.select(a)};return()=>J(`nav`,{class:`r-layout-top-navigation`,"aria-label":e.label},[t.logo?.(),J($g,{mode:`horizontal`,responsive:!0,iconSize:e.iconSize,collapsedIconSize:e.iconSize,keyField:`fullPath`,value:i.value,options:r.value,onUpdateValue:(e,t)=>a(String(e),t)},null)])}}),cWe=Y({name:`ShellTab`,props:{label:{type:String,required:!0},active:Boolean,closeLabel:{type:String,default:``},select:{type:Function,required:!0},close:{type:Function,default:void 0},contextMenu:{type:Function,default:void 0}},setup(e){return()=>J(`div`,{class:[`menu-tag__item`,{"menu-tag__item--active":e.active}],onContextmenu:e.contextMenu},[J(`button`,{type:`button`,class:`menu-tag__tab`,"aria-current":e.active?`page`:void 0,title:e.label,onClick:e.select,onKeydown:t=>{t.key===`Delete`&&e.close&&(t.preventDefault(),e.close(!0))}},[e.label]),e.close?J(`button`,{type:`button`,class:`menu-tag__close`,"aria-label":e.closeLabel,onClick:t=>e.close?.(t.detail===0)},[J(RJ,{name:`action/close`,size:14,"aria-hidden":`true`},null)]):null])}}),lWe=Y({name:`RTransitionComponent`,__name:`TransitionComponent`,props:rt({transitionPropName:{},transitionMode:{},transitionAppear:{type:Boolean}},L6),setup(e){let{getKeepAliveInclude:t}=lYe(),{getKeepAliveConfig:n}=L9();return(e,r)=>(L(),W(M(oWe),I(e.$props,{getKeepAliveConfig:M(n),getKeepAliveInclude:M(t)}),null,16,[`getKeepAliveConfig`,`getKeepAliveInclude`]))}}),z6=()=>({BASE_URL:`/ray-template/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1,VITE_APP_OFFICE_PROXY_URL:`https://office.yka.one/`,VITE_APP_OFFICE_SCRIPT_URL:`https://office.yka.one/web-apps/apps/api/documents/api.js`,VITE_APP_URL:`/`});function uWe(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;let n=document.implementation.createHTMLDocument(),r=n.createElement(`base`),i=n.createElement(`a`);return n.head.appendChild(r),n.body.appendChild(i),t&&(r.href=t),i.href=e,i.href}var dWe=(()=>{let e=0,t=()=>`0000${(Math.random()*36**4|0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function B6(e){let t=[];for(let n=0,r=e.length;n<r;n++)t.push(e[n]);return t}var V6=null;function H6(e={}){return V6||(e.includeStyleProperties?(V6=e.includeStyleProperties,V6):(V6=B6(window.getComputedStyle(document.documentElement)),V6))}function U6(e,t){let n=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return n?parseFloat(n.replace(`px`,``)):0}function fWe(e){let t=U6(e,`border-left-width`),n=U6(e,`border-right-width`);return e.clientWidth+t+n}function pWe(e){let t=U6(e,`border-top-width`),n=U6(e,`border-bottom-width`);return e.clientHeight+t+n}function W6(e,t={}){return{width:t.width||fWe(e),height:t.height||pWe(e)}}function mWe(){let e,t;try{t=process}catch{}let n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}var G6=16384;function hWe(e){(e.width>G6||e.height>G6)&&(e.width>G6&&e.height>G6?e.width>e.height?(e.height*=G6/e.width,e.width=G6):(e.width*=G6/e.height,e.height=G6):e.width>G6?(e.height*=G6/e.width,e.width=G6):(e.width*=G6/e.height,e.height=G6))}function gWe(e,t={}){return e.toBlob?new Promise(n=>{e.toBlob(n,t.type?t.type:`image/png`,t.quality?t.quality:1)}):new Promise(n=>{let r=window.atob(e.toDataURL(t.type?t.type:void 0,t.quality?t.quality:void 0).split(`,`)[1]),i=r.length,a=new Uint8Array(i);for(let e=0;e<i;e+=1)a[e]=r.charCodeAt(e);n(new Blob([a],{type:t.type?t.type:`image/png`}))})}function K6(e){return new Promise((t,n)=>{let r=new Image;r.onload=()=>{r.decode().then(()=>{requestAnimationFrame(()=>t(r))})},r.onerror=n,r.crossOrigin=`anonymous`,r.decoding=`async`,r.src=e})}async function _We(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}async function vWe(e,t,n){let r=`http://www.w3.org/2000/svg`,i=document.createElementNS(r,`svg`),a=document.createElementNS(r,`foreignObject`);return i.setAttribute(`width`,`${t}`),i.setAttribute(`height`,`${n}`),i.setAttribute(`viewBox`,`0 0 ${t} ${n}`),a.setAttribute(`width`,`100%`),a.setAttribute(`height`,`100%`),a.setAttribute(`x`,`0`),a.setAttribute(`y`,`0`),a.setAttribute(`externalResourcesRequired`,`true`),i.appendChild(a),a.appendChild(e),_We(i)}var q6=(e,t)=>{if(e instanceof t)return!0;let n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||q6(n,t)};function yWe(e){let t=e.getPropertyValue(`content`);return`${e.cssText} content: '${t.replace(/'|"/g,``)}';`}function bWe(e,t){return H6(t).map(t=>`${t}: ${e.getPropertyValue(t)}${e.getPropertyPriority(t)?` !important`:``};`).join(` `)}function xWe(e,t,n,r){let i=`.${e}:${t}`,a=n.cssText?yWe(n):bWe(n,r);return document.createTextNode(`${i}{${a}}`)}function J6(e,t,n,r){let i=window.getComputedStyle(e,n),a=i.getPropertyValue(`content`);if(a===``||a===`none`)return;let o=dWe();try{t.className=`${t.className} ${o}`}catch{return}let s=document.createElement(`style`);s.appendChild(xWe(o,n,i,r)),t.appendChild(s)}function SWe(e,t,n){J6(e,t,`:before`,n),J6(e,t,`:after`,n)}var Y6=`application/font-woff`,X6=`image/jpeg`,CWe={woff:Y6,woff2:Y6,ttf:`application/font-truetype`,eot:`application/vnd.ms-fontobject`,png:`image/png`,jpg:X6,jpeg:X6,gif:`image/gif`,tiff:`image/tiff`,svg:`image/svg+xml`,webp:`image/webp`};function wWe(e){let t=/\.([^./]*?)$/g.exec(e);return t?t[1]:``}function Z6(e){return CWe[wWe(e).toLowerCase()]||``}function TWe(e){return e.split(/,/)[1]}function Q6(e){return e.search(/^(data:)/)!==-1}function $6(e,t){return`data:${t};base64,${e}`}async function e8(e,t,n){let r=await fetch(e,t);if(r.status===404)throw Error(`Resource "${r.url}" not found`);let i=await r.blob();return new Promise((e,t)=>{let a=new FileReader;a.onerror=t,a.onloadend=()=>{try{e(n({res:r,result:a.result}))}catch(e){t(e)}},a.readAsDataURL(i)})}var t8={};function EWe(e,t,n){let r=e.replace(/\?.*/,``);return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,``)),t?`[${t}]${r}`:r}async function n8(e,t,n){let r=EWe(e,t,n.includeQueryParams);if(t8[r]!=null)return t8[r];n.cacheBust&&(e+=(/\?/.test(e)?`&`:`?`)+new Date().getTime());let i;try{i=$6(await e8(e,n.fetchRequestInit,({res:e,result:n})=>(t||=e.headers.get(`Content-Type`)||``,TWe(n))),t)}catch(t){i=n.imagePlaceholder||``,`${e}`,t&&(typeof t==`string`||t.message)}return t8[r]=i,i}async function DWe(e){let t=e.toDataURL();return t===`data:,`?e.cloneNode(!1):K6(t)}async function OWe(e,t){if(e.currentSrc){let t=document.createElement(`canvas`),n=t.getContext(`2d`);return t.width=e.clientWidth,t.height=e.clientHeight,n?.drawImage(e,0,0,t.width,t.height),K6(t.toDataURL())}let n=e.poster;return K6(await n8(n,Z6(n),t))}async function kWe(e,t){try{if(e?.contentDocument?.body)return await i8(e.contentDocument.body,t,!0)}catch{}return e.cloneNode(!1)}async function AWe(e,t){return q6(e,HTMLCanvasElement)?DWe(e):q6(e,HTMLVideoElement)?OWe(e,t):q6(e,HTMLIFrameElement)?kWe(e,t):e.cloneNode(r8(e))}var jWe=e=>e.tagName!=null&&e.tagName.toUpperCase()===`SLOT`,r8=e=>e.tagName!=null&&e.tagName.toUpperCase()===`SVG`;async function MWe(e,t,n){if(r8(t))return t;let r=[];return r=jWe(e)&&e.assignedNodes?B6(e.assignedNodes()):q6(e,HTMLIFrameElement)&&e.contentDocument?.body?B6(e.contentDocument.body.childNodes):B6((e.shadowRoot??e).childNodes),r.length===0||q6(e,HTMLVideoElement)||await r.reduce((e,r)=>e.then(()=>i8(r,n)).then(e=>{e&&t.appendChild(e)}),Promise.resolve()),t}function NWe(e,t,n){let r=t.style;if(!r)return;let i=window.getComputedStyle(e);i.cssText?(r.cssText=i.cssText,r.transformOrigin=i.transformOrigin):H6(n).forEach(n=>{let a=i.getPropertyValue(n);n===`font-size`&&a.endsWith(`px`)&&(a=`${Math.floor(parseFloat(a.substring(0,a.length-2)))-.1}px`),q6(e,HTMLIFrameElement)&&n===`display`&&a===`inline`&&(a=`block`),n===`d`&&t.getAttribute(`d`)&&(a=`path(${t.getAttribute(`d`)})`),r.setProperty(n,a,i.getPropertyPriority(n))})}function PWe(e,t){q6(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),q6(e,HTMLInputElement)&&t.setAttribute(`value`,e.value)}function FWe(e,t){if(q6(e,HTMLSelectElement)){let n=t,r=Array.from(n.children).find(t=>e.value===t.getAttribute(`value`));r&&r.setAttribute(`selected`,``)}}function IWe(e,t,n){return q6(t,Element)&&(NWe(e,t,n),SWe(e,t,n),PWe(e,t),FWe(e,t)),t}async function LWe(e,t){let n=e.querySelectorAll?e.querySelectorAll(`use`):[];if(n.length===0)return e;let r={};for(let i=0;i<n.length;i++){let a=n[i].getAttribute(`xlink:href`);if(a){let n=e.querySelector(a),i=document.querySelector(a);!n&&i&&!r[a]&&(r[a]=await i8(i,t,!0))}}let i=Object.values(r);if(i.length){let t=`http://www.w3.org/1999/xhtml`,n=document.createElementNS(t,`svg`);n.setAttribute(`xmlns`,t),n.style.position=`absolute`,n.style.width=`0`,n.style.height=`0`,n.style.overflow=`hidden`,n.style.display=`none`;let r=document.createElementNS(t,`defs`);n.appendChild(r);for(let e=0;e<i.length;e++)r.appendChild(i[e]);e.appendChild(n)}return e}async function i8(e,t,n){return!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(e=>AWe(e,t)).then(n=>MWe(e,n,t)).then(n=>IWe(e,n,t)).then(e=>LWe(e,t))}var a8=/url\((['"]?)([^'"]+?)\1\)/g,RWe=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,zWe=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function BWe(e){let t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,`\\$1`);return RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,`g`)}function VWe(e){let t=[];return e.replace(a8,(e,n,r)=>(t.push(r),e)),t.filter(e=>!Q6(e))}async function HWe(e,t,n,r,i){try{let a=n?uWe(t,n):t,o=Z6(t),s;return s=i?$6(await i(a),o):await n8(a,o,r),e.replace(BWe(t),`$1${s}$3`)}catch{}return e}function UWe(e,{preferredFontFormat:t}){return t?e.replace(zWe,e=>{for(;;){let[n,,r]=RWe.exec(e)||[];if(!r)return``;if(r===t)return`src: ${n};`}}):e}function o8(e){return e.search(a8)!==-1}async function s8(e,t,n){if(!o8(e))return e;let r=UWe(e,n);return VWe(r).reduce((e,r)=>e.then(e=>HWe(e,r,t,n)),Promise.resolve(r))}async function c8(e,t,n){let r=t.style?.getPropertyValue(e);if(r){let i=await s8(r,null,n);return t.style.setProperty(e,i,t.style.getPropertyPriority(e)),!0}return!1}async function WWe(e,t){await c8(`background`,e,t)||await c8(`background-image`,e,t),await c8(`mask`,e,t)||await c8(`-webkit-mask`,e,t)||await c8(`mask-image`,e,t)||await c8(`-webkit-mask-image`,e,t)}async function GWe(e,t){let n=q6(e,HTMLImageElement);if((!n||Q6(e.src))&&(!q6(e,SVGImageElement)||Q6(e.href.baseVal)))return;let r=n?e.src:e.href.baseVal,i=await n8(r,Z6(r),t);await new Promise((r,a)=>{e.onload=r,e.onerror=t.onImageErrorHandler?(...e)=>{try{r(t.onImageErrorHandler(...e))}catch(e){a(e)}}:a;let o=e;o.decode&&=r,o.loading===`lazy`&&(o.loading=`eager`),n?(e.srcset=``,e.src=i):e.href.baseVal=i})}async function KWe(e,t){let n=B6(e.childNodes).map(e=>l8(e,t));await Promise.all(n).then(()=>e)}async function l8(e,t){q6(e,Element)&&(await WWe(e,t),await GWe(e,t),await KWe(e,t))}function qWe(e,t){let{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);let r=t.style;return r!=null&&Object.keys(r).forEach(e=>{n[e]=r[e]}),e}var u8={};async function d8(e){let t=u8[e];return t??(t={url:e,cssText:await(await fetch(e)).text()},u8[e]=t),t}async function f8(e,t){let n=e.cssText,r=/url\(["']?([^"')]+)["']?\)/g,i=(n.match(/url\([^)]+\)/g)||[]).map(async i=>{let a=i.replace(r,`$1`);return a.startsWith(`https://`)||(a=new URL(a,e.url).href),e8(a,t.fetchRequestInit,({result:e})=>(n=n.replace(i,`url(${e})`),[i,e]))});return Promise.all(i).then(()=>n)}function p8(e){if(e==null)return[];let t=[],n=e.replace(/(\/\*[\s\S]*?\*\/)/gi,``),r=RegExp(`((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})`,`gi`);for(;;){let e=r.exec(n);if(e===null)break;t.push(e[0])}n=n.replace(r,``);let i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a=RegExp(`((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})`,`gi`);for(;;){let e=i.exec(n);if(e===null){if(e=a.exec(n),e===null)break;i.lastIndex=a.lastIndex}else a.lastIndex=i.lastIndex;t.push(e[0])}return t}async function JWe(e,t){let n=[],r=[];return e.forEach(n=>{if(`cssRules`in n)try{B6(n.cssRules||[]).forEach((e,i)=>{if(e.type===CSSRule.IMPORT_RULE){let a=i+1,o=e.href,s=d8(o).then(e=>f8(e,t)).then(e=>p8(e).forEach(e=>{try{n.insertRule(e,e.startsWith(`@import`)?a+=1:n.cssRules.length)}catch{}})).catch(e=>{});r.push(s)}})}catch{let i=e.find(e=>e.href==null)||document.styleSheets[0];n.href!=null&&r.push(d8(n.href).then(e=>f8(e,t)).then(e=>p8(e).forEach(e=>{i.insertRule(e,i.cssRules.length)})).catch(e=>{}))}}),Promise.all(r).then(()=>(e.forEach(e=>{if(`cssRules`in e)try{B6(e.cssRules||[]).forEach(e=>{n.push(e)})}catch{}}),n))}function YWe(e){return e.filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>o8(e.style.getPropertyValue(`src`)))}async function XWe(e,t){if(e.ownerDocument==null)throw Error(`Provided element is not within a Document`);return YWe(await JWe(B6(e.ownerDocument.styleSheets),t))}function m8(e){return e.trim().replace(/["']/g,``)}function ZWe(e){let t=new Set;function n(e){(e.style.fontFamily||getComputedStyle(e).fontFamily).split(`,`).forEach(e=>{t.add(m8(e))}),Array.from(e.children).forEach(e=>{e instanceof HTMLElement&&n(e)})}return n(e),t}async function QWe(e,t){let n=await XWe(e,t),r=ZWe(e);return(await Promise.all(n.filter(e=>r.has(m8(e.style.fontFamily))).map(e=>{let n=e.parentStyleSheet?e.parentStyleSheet.href:null;return s8(e.cssText,n,t)}))).join(`
`)}async function $We(e,t){let n=t.fontEmbedCSS==null?t.skipFonts?null:await QWe(e,t):t.fontEmbedCSS;if(n){let t=document.createElement(`style`),r=document.createTextNode(n);t.appendChild(r),e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}}async function h8(e,t={}){let{width:n,height:r}=W6(e,t),i=await i8(e,t,!0);return await $We(i,t),await l8(i,t),qWe(i,t),await vWe(i,n,r)}async function g8(e,t={}){let{width:n,height:r}=W6(e,t),i=await K6(await h8(e,t)),a=document.createElement(`canvas`),o=a.getContext(`2d`),s=t.pixelRatio||mWe(),c=t.canvasWidth||n,l=t.canvasHeight||r;return a.width=c*s,a.height=l*s,t.skipAutoScale||hWe(a),a.style.width=`${c}`,a.style.height=`${l}`,t.backgroundColor&&(o.fillStyle=t.backgroundColor,o.fillRect(0,0,a.width,a.height)),o.drawImage(i,0,0,a.width,a.height),a}async function eGe(e,t={}){let{width:n,height:r}=W6(e,t);return(await g8(e,t)).getContext(`2d`).getImageData(0,0,n,r).data}async function tGe(e,t={}){return(await g8(e,t)).toDataURL()}async function nGe(e,t={}){return(await g8(e,t)).toDataURL(`image/jpeg`,t.quality||1)}async function rGe(e,t={}){return await gWe(await g8(e,t))}var iGe={svg:h8,png:tGe,jpeg:nGe,blob:rGe,pixelData:eGe,canvas:g8},_8=(e,t)=>{let{beforeCreate:n,created:r,createdError:i,finally:a,imageType:o,...s}=t??{};return{create:async t=>{let c;try{if(c=FS(e),n?.(c),!c)throw Error(`[useDomToImage]: target element is undefined.`);let i=await iGe[t??o??`jpeg`](c,s);return r?.(i,c),i}catch(e){let t=e instanceof Error?e:Error(String(e));throw i?.(t),t}finally{a?.(c)}}}},v8=ei(Qr(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.printJS=r():n.printJS=r()})(window,function(){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(t&1&&(e=n(e)),t&8||t&4&&typeof e==`object`&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),t&2&&typeof e!=`string`)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=0)})({"./src/index.js":(function(e,t,n){n.r(t),n(`./src/sass/index.scss`);var r=n(`./src/js/init.js`).default.init;typeof window<`u`&&(window.printJS=r),t.default=r}),"./src/js/browser.js":(function(e,t,n){n.r(t);var r={isFirefox:function(){return typeof InstallTrigger<`u`},isIE:function(){return navigator.userAgent.indexOf(`MSIE`)!==-1||!!document.documentMode},isEdge:function(){return!r.isIE()&&!!window.StyleMedia},isChrome:function(){return!!(arguments.length>0&&arguments[0]!==void 0?arguments[0]:window).chrome},isSafari:function(){return Object.prototype.toString.call(window.HTMLElement).indexOf(`Constructor`)>0||navigator.userAgent.toLowerCase().indexOf(`safari`)!==-1},isIOSChrome:function(){return navigator.userAgent.toLowerCase().indexOf(`crios`)!==-1}};t.default=r}),"./src/js/functions.js":(function(e,t,n){n.r(t),n.d(t,`addWrapper`,function(){return o}),n.d(t,`capitalizePrint`,function(){return s}),n.d(t,`collectStyles`,function(){return c}),n.d(t,`addHeader`,function(){return u}),n.d(t,`cleanUp`,function(){return d}),n.d(t,`isRawHTML`,function(){return f});var r=n(`./src/js/modal.js`),i=n(`./src/js/browser.js`);function a(e){"@babel/helpers - typeof";return a=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},a(e)}function o(e,t){return`<div style="`+(`font-family:`+t.font+` !important; font-size: `+t.font_size+` !important; width:100%;`)+`">`+e+`</div>`}function s(e){return e.charAt(0).toUpperCase()+e.slice(1)}function c(e,t){for(var n=document.defaultView||window,r=``,i=n.getComputedStyle(e,``),a=0;a<i.length;a++)(t.targetStyles.indexOf(`*`)!==-1||t.targetStyle.indexOf(i[a])!==-1||l(t.targetStyles,i[a]))&&i.getPropertyValue(i[a])&&(r+=i[a]+`:`+i.getPropertyValue(i[a])+`;`);return r+=`max-width: `+t.maxWidth+`px !important; font-size: `+t.font_size+` !important;`,r}function l(e,t){for(var n=0;n<e.length;n++)if(a(t)===`object`&&t.indexOf(e[n])!==-1)return!0;return!1}function u(e,t){var n=document.createElement(`div`);if(f(t.header))n.innerHTML=t.header;else{var r=document.createElement(`h1`),i=document.createTextNode(t.header);r.appendChild(i),r.setAttribute(`style`,t.headerStyle),n.appendChild(r)}e.insertBefore(n,e.childNodes[0])}function d(e){e.showModal&&r.default.close(),e.onLoadingEnd&&e.onLoadingEnd(),(e.showModal||e.onLoadingStart)&&window.URL.revokeObjectURL(e.printable);var t=`mouseover`;(i.default.isChrome()||i.default.isFirefox())&&(t=`focus`),window.addEventListener(t,function n(){window.removeEventListener(t,n),e.onPrintDialogClose();var r=document.getElementById(e.frameId);r&&r.remove()})}function f(e){return RegExp(`<([A-Za-z][A-Za-z0-9]*)\\b[^>]*>(.*?)</\\1>`).test(e)}}),"./src/js/html.js":(function(e,t,n){n.r(t);var r=n(`./src/js/functions.js`),i=n(`./src/js/print.js`);function a(e){"@babel/helpers - typeof";return a=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},a(e)}t.default={print:function(e,t){var n=s(e.printable)?e.printable:document.getElementById(e.printable);n?(e.printableElement=o(n,e),e.header&&(0,r.addHeader)(e.printableElement,e),i.default.send(e,t)):window.console.error(`Invalid HTML element id: `+e.printable)}};function o(e,t){for(var n=e.cloneNode(),i=Array.prototype.slice.call(e.childNodes),a=0;a<i.length;a++)if(t.ignoreElements.indexOf(i[a].id)===-1){var s=o(i[a],t);n.appendChild(s)}switch(t.scanStyles&&e.nodeType===1&&n.setAttribute(`style`,(0,r.collectStyles)(e,t)),e.tagName){case`SELECT`:n.value=e.value;break;case`CANVAS`:n.getContext(`2d`).drawImage(e,0,0)}return n}function s(e){return a(e)===`object`&&e&&(e instanceof HTMLElement||e.nodeType===1)}}),"./src/js/image.js":(function(e,t,n){n.r(t);var r=n(`./src/js/functions.js`),i=n(`./src/js/print.js`),a=n(`./src/js/browser.js`);t.default={print:function(e,t){e.printable.constructor!==Array&&(e.printable=[e.printable]),e.printableElement=document.createElement(`div`),e.printable.forEach(function(t){var n=document.createElement(`img`);n.setAttribute(`style`,e.imageStyle),n.src=t,a.default.isFirefox()&&(n.src=n.src);var r=document.createElement(`div`);r.appendChild(n),e.printableElement.appendChild(r)}),e.header&&(0,r.addHeader)(e.printableElement,e),i.default.send(e,t)}}}),"./src/js/init.js":(function(e,t,n){n.r(t);var r=n(`./src/js/browser.js`),i=n(`./src/js/modal.js`),a=n(`./src/js/pdf.js`),o=n(`./src/js/html.js`),s=n(`./src/js/raw-html.js`),c=n(`./src/js/image.js`),l=n(`./src/js/json.js`);function u(e){"@babel/helpers - typeof";return u=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},u(e)}var d=[`pdf`,`html`,`image`,`json`,`raw-html`];t.default={init:function(){var e={printable:null,fallbackPrintable:null,type:`pdf`,header:null,headerStyle:`font-weight: 300;`,maxWidth:800,properties:null,gridHeaderStyle:`font-weight: bold; padding: 5px; border: 1px solid #dddddd;`,gridStyle:`border: 1px solid lightgray; margin-bottom: -1px;`,showModal:!1,onError:function(e){throw e},onLoadingStart:null,onLoadingEnd:null,onPrintDialogClose:function(){},onIncompatibleBrowser:function(){},modalMessage:`Retrieving Document...`,frameId:`printJS`,printableElement:null,documentTitle:`Document`,targetStyle:[`clear`,`display`,`width`,`min-width`,`height`,`min-height`,`max-height`],targetStyles:[`border`,`box`,`break`,`text-decoration`],ignoreElements:[],repeatTableHeader:!0,css:null,style:null,scanStyles:!0,base64:!1,onPdfOpen:null,font:`TimesNewRoman`,font_size:`12pt`,honorMarginPadding:!0,honorColor:!1,imageStyle:`max-width: 100%;`},t=arguments[0];if(t===void 0)throw Error(`printJS expects at least 1 attribute.`);switch(u(t)){case`string`:e.printable=encodeURI(t),e.fallbackPrintable=e.printable,e.type=arguments[1]||e.type;break;case`object`:for(var n in e.printable=t.printable,e.fallbackPrintable=t.fallbackPrintable===void 0?e.printable:t.fallbackPrintable,e.fallbackPrintable=e.base64?`data:application/pdf;base64,${e.fallbackPrintable}`:e.fallbackPrintable,e)n!==`printable`&&n!==`fallbackPrintable`&&(e[n]=t[n]===void 0?e[n]:t[n]);break;default:throw Error(`Unexpected argument type! Expected "string" or "object", got `+u(t))}if(!e.printable)throw Error(`Missing printable information.`);if(!e.type||typeof e.type!=`string`||d.indexOf(e.type.toLowerCase())===-1)throw Error(`Invalid print type. Available types are: pdf, html, image and json.`);e.showModal&&i.default.show(e),e.onLoadingStart&&e.onLoadingStart();var f=document.getElementById(e.frameId);f&&f.parentNode.removeChild(f);var p=document.createElement(`iframe`);switch(r.default.isFirefox()?p.setAttribute(`style`,`width: 1px; height: 100px; position: fixed; left: 0; top: 0; opacity: 0; border-width: 0; margin: 0; padding: 0`):p.setAttribute(`style`,`visibility: hidden; height: 0; width: 0; position: absolute; border: 0`),p.setAttribute(`id`,e.frameId),e.type!==`pdf`&&(p.srcdoc=`<html><head><title>`+e.documentTitle+`</title>`,e.css&&(Array.isArray(e.css)||(e.css=[e.css]),e.css.forEach(function(e){p.srcdoc+=`<link rel="stylesheet" href="`+e+`">`})),p.srcdoc+=`</head><body></body></html>`),e.type){case`pdf`:if(r.default.isIE())try{window.open(e.fallbackPrintable,`_blank`).focus(),e.onIncompatibleBrowser()}catch(t){e.onError(t)}finally{e.showModal&&i.default.close(),e.onLoadingEnd&&e.onLoadingEnd()}else a.default.print(e,p);break;case`image`:c.default.print(e,p);break;case`html`:o.default.print(e,p);break;case`raw-html`:s.default.print(e,p);break;case`json`:l.default.print(e,p)}}}}),"./src/js/json.js":(function(e,t,n){n.r(t);var r=n(`./src/js/functions.js`),i=n(`./src/js/print.js`);function a(e){"@babel/helpers - typeof";return a=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},a(e)}t.default={print:function(e,t){if(a(e.printable)!==`object`)throw Error(`Invalid javascript data object (JSON).`);if(typeof e.repeatTableHeader!=`boolean`)throw Error(`Invalid value for repeatTableHeader attribute (JSON).`);if(!e.properties||!Array.isArray(e.properties))throw Error(`Invalid properties array for your JSON data.`);e.properties=e.properties.map(function(t){return{field:a(t)===`object`?t.field:t,displayName:a(t)===`object`?t.displayName:t,columnSize:a(t)===`object`&&t.columnSize?t.columnSize+`;`:100/e.properties.length+`%;`}}),e.printableElement=document.createElement(`div`),e.header&&(0,r.addHeader)(e.printableElement,e),e.printableElement.innerHTML+=o(e),i.default.send(e,t)}};function o(e){var t=e.printable,n=e.properties,i=`<table style="border-collapse: collapse; width: 100%;">`;e.repeatTableHeader&&(i+=`<thead>`),i+=`<tr>`;for(var a=0;a<n.length;a++)i+=`<th style="width:`+n[a].columnSize+`;`+e.gridHeaderStyle+`">`+(0,r.capitalizePrint)(n[a].displayName)+`</th>`;i+=`</tr>`,e.repeatTableHeader&&(i+=`</thead>`),i+=`<tbody>`;for(var o=0;o<t.length;o++){i+=`<tr>`;for(var s=0;s<n.length;s++){var c=t[o],l=n[s].field.split(`.`);if(l.length>1)for(var u=0;u<l.length;u++)c=c[l[u]];else c=c[n[s].field];i+=`<td style="width:`+n[s].columnSize+e.gridStyle+`">`+c+`</td>`}i+=`</tr>`}return i+=`</tbody></table>`,i}}),"./src/js/modal.js":(function(e,t,n){n.r(t);var r={show:function(e){var t=`font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;`,n=document.createElement(`div`);n.setAttribute(`style`,t),n.setAttribute(`id`,`printJS-Modal`);var i=document.createElement(`div`);i.setAttribute(`style`,`display:table-cell; vertical-align:middle; padding-bottom:100px;`);var a=document.createElement(`div`);a.setAttribute(`class`,`printClose`),a.setAttribute(`id`,`printClose`),i.appendChild(a);var o=document.createElement(`span`);o.setAttribute(`class`,`printSpinner`),i.appendChild(o);var s=document.createTextNode(e.modalMessage);i.appendChild(s),n.appendChild(i),document.getElementsByTagName(`body`)[0].appendChild(n),document.getElementById(`printClose`).addEventListener(`click`,function(){r.close()})},close:function(){var e=document.getElementById(`printJS-Modal`);e&&e.parentNode.removeChild(e)}};t.default=r}),"./src/js/pdf.js":(function(e,t,n){n.r(t);var r=n(`./src/js/print.js`),i=n(`./src/js/functions.js`);t.default={print:function(e,t){if(e.base64)a(e,t,Uint8Array.from(atob(e.printable),function(e){return e.charCodeAt(0)}));else{e.printable=/^(blob|http|\/\/)/i.test(e.printable)?e.printable:window.location.origin+(e.printable.charAt(0)===`/`?e.printable:`/`+e.printable);var n=new window.XMLHttpRequest;n.responseType=`arraybuffer`,n.addEventListener(`error`,function(){(0,i.cleanUp)(e),e.onError(n.statusText,n)}),n.addEventListener(`load`,function(){[200,201].indexOf(n.status)===-1?((0,i.cleanUp)(e),e.onError(n.statusText,n)):a(e,t,n.response)}),n.open(`GET`,e.printable,!0),n.send()}}};function a(e,t,n){var i=new window.Blob([n],{type:`application/pdf`});i=window.URL.createObjectURL(i),t.setAttribute(`src`,i),r.default.send(e,t)}}),"./src/js/print.js":(function(e,t,n){n.r(t);var r=n(`./src/js/browser.js`),i=n(`./src/js/functions.js`),a={send:function(e,t){document.getElementsByTagName(`body`)[0].appendChild(t);var n=document.getElementById(e.frameId);n.onload=function(){if(e.type===`pdf`)r.default.isFirefox()?setTimeout(function(){return o(n,e)},1e3):o(n,e);else{var t=n.contentWindow||n.contentDocument;if(t.document&&(t=t.document),t.body.appendChild(e.printableElement),e.type!==`pdf`&&e.style){var i=document.createElement(`style`);i.innerHTML=e.style,t.head.appendChild(i)}var a=t.getElementsByTagName(`img`);a.length>0?s(Array.from(a)).then(function(){return o(n,e)}):o(n,e)}}}};function o(e,t){try{if(e.focus(),r.default.isEdge()||r.default.isIE())try{e.contentWindow.document.execCommand(`print`,!1,null)}catch{e.contentWindow.print()}else e.contentWindow.print()}catch(e){t.onError(e)}finally{r.default.isFirefox()&&(e.style.visibility=`hidden`,e.style.left=`-1px`),(0,i.cleanUp)(t)}}function s(e){var t=e.map(function(e){if(e.src&&e.src!==window.location.href)return c(e)});return Promise.all(t)}function c(e){return new Promise(function(t){(function n(){!e||e.naturalWidth===void 0||e.naturalWidth===0||!e.complete?setTimeout(n,500):t()})()})}t.default=a}),"./src/js/raw-html.js":(function(e,t,n){n.r(t);var r=n(`./src/js/print.js`);t.default={print:function(e,t){e.printableElement=document.createElement(`div`),e.printableElement.setAttribute(`style`,`width:100%`),e.printableElement.innerHTML=e.printable,r.default.send(e,t)}}}),"./src/sass/index.scss":(function(e,t,n){}),0:(function(e,t,n){e.exports=n(`./src/index.js`)})}).default})}))(),1),y8=(e,t)=>({print:()=>{let n=FS(e);if(n!=null&&n!==``){if(n instanceof Blob||n instanceof Uint8ClampedArray){let e=t?.type??(n instanceof Blob&&n.type.startsWith(`image/`)?`image`:`pdf`);return ZS(n instanceof Blob?new File([n],``,{type:n.type}):new File([Uint8Array.from(n)],``,{type:`application/pdf`})).then(n=>{(0,v8.default)({...t,type:e,base64:e===`pdf`,printable:e===`pdf`?n.slice(n.indexOf(`,`)+1):n})})}(0,v8.default)({...t,type:t?.type??(n instanceof Element?`html`:`pdf`),printable:n})}}}),aGe=async(e,t)=>{let n=t?.loading;try{n?.start();let{create:r}=_8(e,t?.domToImageOptions);return await y8(await r(`jpeg`),{targetStyles:[`*`],...t?.printOptions,type:`image`,base64:!0}).print(),n?.finish(),!0}catch{return n?.error(),!1}},oGe=(e,t)=>aGe(e,{...t,loading:window.$loadingBar}),sGe=Qr(((e,t)=>{t.exports={}})),b8=Qr(((e,t,n)=>{(function(n,r){typeof e==`object`?t.exports=e=r():typeof define==`function`&&define.amd?define([],r):n.CryptoJS=r()})(n,function(){var e=e||function(e,t){var n;if(typeof window<`u`&&window.crypto&&(n=window.crypto),typeof self<`u`&&self.crypto&&(n=self.crypto),typeof globalThis<`u`&&globalThis.crypto&&(n=globalThis.crypto),!n&&typeof window<`u`&&window.msCrypto&&(n=window.msCrypto),!n&&typeof global<`u`&&global.crypto&&(n=global.crypto),!n&&typeof Aee==`function`)try{n=sGe()}catch{}var r=function(){if(n){if(typeof n.getRandomValues==`function`)try{return n.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof n.randomBytes==`function`)try{return n.randomBytes(4).readInt32LE()}catch{}}throw Error(`Native crypto module could not be used to get secure random number.`)},i=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),a={},o=a.lib={},s=o.Base=function(){return{extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty(`init`)&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty(`toString`)&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),c=o.WordArray=s.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n==t?e.length*4:n},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var a=0;a<i;a++){var o=n[a>>>2]>>>24-a%4*8&255;t[r+a>>>2]|=o<<24-(r+a)%4*8}else for(var s=0;s<i;s+=4)t[r+s>>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(r());return new c.init(t,e)}}),l=a.enc={},u=l.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var a=t[i>>>2]>>>24-i%4*8&255;r.push((a>>>4).toString(16)),r.push((a&15).toString(16))}return r.join(``)},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(n,t/2)}},d=l.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var a=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(a))}return r.join(``)},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(e.charCodeAt(r)&255)<<24-r%4*8;return new c.init(n,t)}},f=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch{throw Error(`Malformed UTF-8 data`)}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},p=o.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){typeof e==`string`&&(e=f.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,a=r.sigBytes,o=this.blockSize,s=a/(o*4);s=t?e.ceil(s):e.max((s|0)-this._minBufferSize,0);var l=s*o,u=e.min(l*4,a);if(l){for(var d=0;d<l;d+=o)this._doProcessBlock(i,d);n=i.splice(0,l),r.sigBytes-=u}return new c.init(n,u)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});o.Hasher=p.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new m.HMAC.init(e,n).finalize(t)}}});var m=a.algo={};return a}(Math);return e})})),x8=Qr(((e,t,n)=>{(function(n,r){typeof e==`object`?t.exports=e=r(b8()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS)})(n,function(e){return(function(t){var n=e,r=n.lib,i=r.Base,a=r.WordArray,o=n.x64={};o.Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),o.WordArray=i.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n==t?e.length*8:n},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var i=e[r];n.push(i.high),n.push(i.low)}return a.create(n,this.sigBytes)},clone:function(){for(var e=i.clone.call(this),t=e.words=this.words.slice(0),n=t.length,r=0;r<n;r++)t[r]=t[r].clone();return e}})})(),e})})),cGe=Qr(((e,t,n)=>{(function(n,r){typeof e==`object`?t.exports=e=r(b8()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS)})(n,function(e){return(function(){if(typeof ArrayBuffer==`function`){var t=e.lib.WordArray,n=t.init,r=t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||typeof Uint8ClampedArray<`u`&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,r=[],i=0;i<t;i++)r[i>>>2]|=e[i]<<24-i%4*8;n.call(this,r,t)}else n.apply(this,arguments)};r.prototype=t}})(),e.lib.WordArray})})),lGe=Qr(((e,t,n)=>{(function(n,r){typeof e==`object`?t.exports=e=r(b8()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS)})(n,function(e){return(function(){var t=e,n=t.lib.WordArray,r=t.enc;r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i+=2){var a=t[i>>>2]>>>16-i%4*8&65535;r.push(String.fromCharCode(a))}return r.join(``)},parse:function(e){for(var t=e.length,r=[],i=0;i<t;i++)r[i>>>1]|=e.charCodeAt(i)<<16-i%2*16;return n.create(r,t*2)}},r.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],a=0;a<n;a+=2){var o=i(t[a>>>2]>>>16-a%4*8&65535);r.push(String.fromCharCode(o))}return r.join(``)},parse:function(e){for(var t=e.length,r=[],a=0;a<t;a++)r[a>>>1]|=i(e.charCodeAt(a)<<16-a%2*16);return n.create(r,t*2)}};function i(e){return e<<8&4278255360|e>>>8&16711935}})(),e.enc.Utf16})})),S8=Qr(((e,t,n)=>{(function(n,r){typeof e==`object`?t.exports=e=r(b8()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS)})(n,function(e){return(function(){var t=e,n=t.lib.WordArray,r=t.enc;r.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],a=0;a<n;a+=3)for(var o=t[a>>>2]>>>24-a%4*8&255,s=t[a+1>>>2]>>>24-(a+1)%4*8&255,c=t[a+2>>>2]>>>24-(a+2)%4*8&255,l=o<<16|s<<8|c,u=0;u<4&&a+u*.75<n;u++)i.push(r.charAt(l>>>6*(3-u)&63));var d=r.charAt(64);if(d)for(;i.length%4;)i.push(d);return i.join(``)},parse:function(e){var t=e.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var a=0;a<n.length;a++)r[n.charCodeAt(a)]=a}var o=n.charAt(64);if(o){var s=e.indexOf(o);s!==-1&&(t=s)}return i(e,t,r)},_map:`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`};function i(e,t,r){for(var i=[],a=0,o=0;o<t;o++)if(o%4){var s=r[e.charCodeAt(o-1)]<<o%4*2|r[e.charCodeAt(o)]>>>6-o%4*2;i[a>>>2]|=s<<24-a%4*8,a++}return n.create(i,a)}})(),e.enc.Base64})})),uGe=Qr(((e,t,n)=>{(function(n,r){typeof e==`object`?t.exports=e=r(b8()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS)})(n,function(e){return(function(){var t=e,n=t.lib.WordArray,r=t.enc;r.Base64url={stringify:function(e,t){t===void 0&&(t=!0);var n=e.words,r=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var a=[],o=0;o<r;o+=3)for(var s=n[o>>>2]>>>24-o%4*8&255,c=n[o+1>>>2]>>>24-(o+1)%4*8&255,l=n[o+2>>>2]>>>24-(o+2)%4*8&255,u=s<<16|c<<8|l,d=0;d<4&&o+d*.75<r;d++)a.push(i.charAt(u>>>6*(3-d)&63));var f=i.charAt(64);if(f)for(;a.length%4;)a.push(f);return a.join(``)},parse:function(e,t){t===void 0&&(t=!0);var n=e.length,r=t?this._safe_map:this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var o=0;o<r.length;o++)a[r.charCodeAt(o)]=o}var s=r.charAt(64);if(s){var c=e.indexOf(s);c!==-1&&(n=c)}return i(e,n,a)},_map:`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`,_safe_map:`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`};function i(e,t,r){for(var i=[],a=0,o=0;o<t;o++)if(o%4){var s=r[e.charCodeAt(o-1)]<<o%4*2|r[e.charCodeAt(o)]>>>6-o%4*2;i[a>>>2]|=s<<24-a%4*8,a++}return n.create(i,a)}})(),e.enc.Base64url})})),C8=Qr(((e,t,n)=>{(function(n,r){typeof e==`object`?t.exports=e=r(b8()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS)})(n,function(e){return(function(t){var n=e,r=n.lib,i=r.WordArray,a=r.Hasher,o=n.algo,s=[];(function(){for(var e=0;e<64;e++)s[e]=t.abs(t.sin(e+1))*4294967296|0})();var c=o.MD5=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360}var a=this._hash.words,o=e[t+0],c=e[t+1],p=e[t+2],m=e[t+3],h=e[t+4],g=e[t+5],_=e[t+6],v=e[t+7],y=e[t+8],b=e[t+9],x=e[t+10],S=e[t+11],C=e[t+12],w=e[t+13],T=e[t+14],E=e[t+15],D=a[0],O=a[1],k=a[2],A=a[3];D=l(D,O,k,A,o,7,s[0]),A=l(A,D,O,k,c,12,s[1]),k=l(k,A,D,O,p,17,s[2]),O=l(O,k,A,D,m,22,s[3]),D=l(D,O,k,A,h,7,s[4]),A=l(A,D,O,k,g,12,s[5]),k=l(k,A,D,O,_,17,s[6]),O=l(O,k,A,D,v,22,s[7]),D=l(D,O,k,A,y,7,s[8]),A=l(A,D,O,k,b,12,s[9]),k=l(k,A,D,O,x,17,s[10]),O=l(O,k,A,D,S,22,s[11]),D=l(D,O,k,A,C,7,s[12]),A=l(A,D,O,k,w,12,s[13]),k=l(k,A,D,O,T,17,s[14]),O=l(O,k,A,D,E,22,s[15]),D=u(D,O,k,A,c,5,s[16]),A=u(A,D,O,k,_,9,s[17]),k=u(k,A,D,O,S,14,s[18]),O=u(O,k,A,D,o,20,s[19]),D=u(D,O,k,A,g,5,s[20]),A=u(A,D,O,k,x,9,s[21]),k=u(k,A,D,O,E,14,s[22]),O=u(O,k,A,D,h,20,s[23]),D=u(D,O,k,A,b,5,s[24]),A=u(A,D,O,k,T,9,s[25]),k=u(k,A,D,O,m,14,s[26]),O=u(O,k,A,D,y,20,s[27]),D=u(D,O,k,A,w,5,s[28]),A=u(A,D,O,k,p,9,s[29]),k=u(k,A,D,O,v,14,s[30]),O=u(O,k,A,D,C,20,s[31]),D=d(D,O,k,A,g,4,s[32]),A=d(A,D,O,k,y,11,s[33]),k=d(k,A,D,O,S,16,s[34]),O=d(O,k,A,D,T,23,s[35]),D=d(D,O,k,A,c,4,s[36]),A=d(A,D,O,k,h,11,s[37]),k=d(k,A,D,O,v,16,s[38]),O=d(O,k,A,D,x,23,s[39]),D=d(D,O,k,A,w,4,s[40]),A=d(A,D,O,k,o,11,s[41]),k=d(k,A,D,O,m,16,s[42]),O=d(O,k,A,D,_,23,s[43]),D=d(D,O,k,A,b,4,s[44]),A=d(A,D,O,k,C,11,s[45]),k=d(k,A,D,O,E,16,s[46]),O=d(O,k,A,D,p,23,s[47]),D=f(D,O,k,A,o,6,s[48]),A=f(A,D,O,k,v,10,s[49]),k=f(k,A,D,O,T,15,s[50]),O=f(O,k,A,D,g,21,s[51]),D=f(D,O,k,A,C,6,s[52]),A=f(A,D,O,k,m,10,s[53]),k=f(k,A,D,O,x,15,s[54]),O=f(O,k,A,D,c,21,s[55]),D=f(D,O,k,A,y,6,s[56]),A=f(A,D,O,k,E,10,s[57]),k=f(k,A,D,O,_,15,s[58]),O=f(O,k,A,D,w,21,s[59]),D=f(D,O,k,A,h,6,s[60]),A=f(A,D,O,k,S,10,s[61]),k=f(k,A,D,O,p,15,s[62]),O=f(O,k,A,D,b,21,s[63]),a[0]=a[0]+D|0,a[1]=a[1]+O|0,a[2]=a[2]+k|0,a[3]=a[3]+A|0},_doFinalize:function(){var e=this._data,n=e.words,r=this._nDataBytes*8,i=e.sigBytes*8;n[i>>>5]|=128<<24-i%32;var a=t.floor(r/4294967296),o=r;n[(i+64>>>9<<4)+15]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360,n[(i+64>>>9<<4)+14]=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360,e.sigBytes=(n.length+1)*4,this._process();for(var s=this._hash,c=s.words,l=0;l<4;l++){var u=c[l];c[l]=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360}return s},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,n,r,i,a,o){var s=e+(t&n|~t&r)+i+o;return(s<<a|s>>>32-a)+t}function u(e,t,n,r,i,a,o){var s=e+(t&r|n&~r)+i+o;return(s<<a|s>>>32-a)+t}function d(e,t,n,r,i,a,o){var s=e+(t^n^r)+i+o;return(s<<a|s>>>32-a)+t}function f(e,t,n,r,i,a,o){var s=e+(n^(t|~r))+i+o;return(s<<a|s>>>32-a)+t}n.MD5=a._createHelper(c),n.HmacMD5=a._createHmacHelper(c)})(Math),e.MD5})})),w8=Qr(((e,t,n)=>{(function(n,r){typeof e==`object`?t.exports=e=r(b8()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS)})(n,function(e){return(function(){var t=e,n=t.lib,r=n.WordArray,i=n.Hasher,a=t.algo,o=[],s=a.SHA1=i.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],s=n[3],c=n[4],l=0;l<80;l++){if(l<16)o[l]=e[t+l]|0;else{var u=o[l-3]^o[l-8]^o[l-14]^o[l-16];o[l]=u<<1|u>>>31}var d=(r<<5|r>>>27)+c+o[l];d+=l<20?(i&a|~i&s)+1518500249:l<40?(i^a^s)+1859775393:l<60?(i&a|i&s|a&s)-1894007588:(i^a^s)-899497514,c=s,s=a,a=i<<30|i>>>2,i=r,r=d}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,n=this._nDataBytes*8,r=e.sigBytes*8;return t[r>>>5]|=128<<24-r%32,t[(r+64>>>9<<4)+14]=Math.floor(n/4294967296),t[(r+64>>>9<<4)+15]=n,e.sigBytes=t.length*4,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=i._createHelper(s),t.HmacSHA1=i._createHmacHelper(s)})(),e.SHA1})})),T8=Qr(((e,t,n)=>{(function(n,r){typeof e==`object`?t.exports=e=r(b8()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS)})(n,function(e){return(function(t){var n=e,r=n.lib,i=r.WordArray,a=r.Hasher,o=n.algo,s=[],c=[];(function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(e){return(e-(e|0))*4294967296|0}for(var r=2,i=0;i<64;)e(r)&&(i<8&&(s[i]=n(t.pow(r,1/2))),c[i]=n(t.pow(r,1/3)),i++),r++})();var l=[],u=o.SHA256=a.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],u=n[5],d=n[6],f=n[7],p=0;p<64;p++){if(p<16)l[p]=e[t+p]|0;else{var m=l[p-15],h=(m<<25|m>>>7)^(m<<14|m>>>18)^m>>>3,g=l[p-2],_=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;l[p]=h+l[p-7]+_+l[p-16]}var v=s&u^~s&d,y=r&i^r&a^i&a,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),x=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),S=f+x+v+c[p]+l[p],C=b+y;f=d,d=u,u=s,s=o+S|0,o=a,a=i,i=r,r=S+C|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+f|0},_doFinalize:function(){var e=this._data,n=e.words,r=this._nDataBytes*8,i=e.sigBytes*8;return n[i>>>5]|=128<<24-i%32,n[(i+64>>>9<<4)+14]=t.floor(r/4294967296),n[(i+64>>>9<<4)+15]=r,e.sigBytes=n.length*4,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=a._createHelper(u),n.HmacSHA256=a._createHmacHelper(u)})(Math),e.SHA256})})),dGe=Qr(((e,t,n)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(b8(),T8()):typeof define==`function`&&define.amd?define([`./core`,`./sha256`],r):r(n.CryptoJS)})(n,function(e){return(function(){var t=e,n=t.lib.WordArray,r=t.algo,i=r.SHA256,a=r.SHA224=i.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=i._createHelper(a),t.HmacSHA224=i._createHmacHelper(a)})(),e.SHA224})})),E8=Qr(((e,t,n)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(b8(),x8()):typeof define==`function`&&define.amd?define([`./core`,`./x64-core`],r):r(n.CryptoJS)})(n,function(e){return(function(){var t=e,n=t.lib.Hasher,r=t.x64,i=r.Word,a=r.WordArray,o=t.algo;function s(){return i.create.apply(i,arguments)}var c=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],l=[];(function(){for(var e=0;e<80;e++)l[e]=s()})();var u=o.SHA512=n.extend({_doReset:function(){this._hash=new a.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],u=n[5],d=n[6],f=n[7],p=r.high,m=r.low,h=i.high,g=i.low,_=a.high,v=a.low,y=o.high,b=o.low,x=s.high,S=s.low,C=u.high,w=u.low,T=d.high,E=d.low,D=f.high,O=f.low,k=p,A=m,j=h,ee=g,te=_,M=v,ne=y,re=b,ie=x,N=S,P=C,ae=w,oe=T,se=E,ce=D,le=O,ue=0;ue<80;ue++){var de,fe,pe=l[ue];if(ue<16)fe=pe.high=e[t+ue*2]|0,de=pe.low=e[t+ue*2+1]|0;else{var me=l[ue-15],F=me.high,he=me.low,ge=(F>>>1|he<<31)^(F>>>8|he<<24)^F>>>7,_e=(he>>>1|F<<31)^(he>>>8|F<<24)^(he>>>7|F<<25),I=l[ue-2],ve=I.high,ye=I.low,L=(ve>>>19|ye<<13)^(ve<<3|ye>>>29)^ve>>>6,be=(ye>>>19|ve<<13)^(ye<<3|ve>>>29)^(ye>>>6|ve<<26),xe=l[ue-7],Se=xe.high,Ce=xe.low,we=l[ue-16],Te=we.high,Ee=we.low;de=_e+Ce,fe=ge+Se+ +(de>>>0<_e>>>0),de+=be,fe=fe+L+ +(de>>>0<be>>>0),de+=Ee,fe=fe+Te+ +(de>>>0<Ee>>>0),pe.high=fe,pe.low=de}var De=ie&P^~ie&oe,Oe=N&ae^~N&se,ke=k&j^k&te^j&te,Ae=A&ee^A&M^ee&M,je=(k>>>28|A<<4)^(k<<30|A>>>2)^(k<<25|A>>>7),Me=(A>>>28|k<<4)^(A<<30|k>>>2)^(A<<25|k>>>7),Ne=(ie>>>14|N<<18)^(ie>>>18|N<<14)^(ie<<23|N>>>9),Pe=(N>>>14|ie<<18)^(N>>>18|ie<<14)^(N<<23|ie>>>9),Fe=c[ue],Ie=Fe.high,Le=Fe.low,Re=le+Pe,ze=ce+Ne+ +(Re>>>0<le>>>0),Re=Re+Oe,ze=ze+De+ +(Re>>>0<Oe>>>0),Re=Re+Le,ze=ze+Ie+ +(Re>>>0<Le>>>0),Re=Re+de,ze=ze+fe+ +(Re>>>0<de>>>0),Be=Me+Ae,Ve=je+ke+ +(Be>>>0<Me>>>0);ce=oe,le=se,oe=P,se=ae,P=ie,ae=N,N=re+Re|0,ie=ne+ze+ +(N>>>0<re>>>0)|0,ne=te,re=M,te=j,M=ee,j=k,ee=A,A=Re+Be|0,k=ze+Ve+ +(A>>>0<Re>>>0)|0}m=r.low=m+A,r.high=p+k+ +(m>>>0<A>>>0),g=i.low=g+ee,i.high=h+j+ +(g>>>0<ee>>>0),v=a.low=v+M,a.high=_+te+ +(v>>>0<M>>>0),b=o.low=b+re,o.high=y+ne+ +(b>>>0<re>>>0),S=s.low=S+N,s.high=x+ie+ +(S>>>0<N>>>0),w=u.low=w+ae,u.high=C+P+ +(w>>>0<ae>>>0),E=d.low=E+se,d.high=T+oe+ +(E>>>0<se>>>0),O=f.low=O+le,f.high=D+ce+ +(O>>>0<le>>>0)},_doFinalize:function(){var e=this._data,t=e.words,n=this._nDataBytes*8,r=e.sigBytes*8;return t[r>>>5]|=128<<24-r%32,t[(r+128>>>10<<5)+30]=Math.floor(n/4294967296),t[(r+128>>>10<<5)+31]=n,e.sigBytes=t.length*4,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=n._createHelper(u),t.HmacSHA512=n._createHmacHelper(u)})(),e.SHA512})})),fGe=Qr(((e,t,n)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(b8(),x8(),E8()):typeof define==`function`&&define.amd?define([`./core`,`./x64-core`,`./sha512`],r):r(n.CryptoJS)})(n,function(e){return(function(){var t=e,n=t.x64,r=n.Word,i=n.WordArray,a=t.algo,o=a.SHA512,s=a.SHA384=o.extend({_doReset:function(){this._hash=new i.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=16,e}});t.SHA384=o._createHelper(s),t.HmacSHA384=o._createHmacHelper(s)})(),e.SHA384})})),pGe=Qr(((e,t,n)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(b8(),x8()):typeof define==`function`&&define.amd?define([`./core`,`./x64-core`],r):r(n.CryptoJS)})(n,function(e){return(function(t){var n=e,r=n.lib,i=r.WordArray,a=r.Hasher,o=n.x64.Word,s=n.algo,c=[],l=[],u=[];(function(){for(var e=1,t=0,n=0;n<24;n++){c[e+5*t]=(n+1)*(n+2)/2%64;var r=t%5,i=(2*e+3*t)%5;e=r,t=i}for(var e=0;e<5;e++)for(var t=0;t<5;t++)l[e+5*t]=t+(2*e+3*t)%5*5;for(var a=1,s=0;s<24;s++){for(var d=0,f=0,p=0;p<7;p++){if(a&1){var m=(1<<p)-1;m<32?f^=1<<m:d^=1<<m-32}a&128?a=a<<1^113:a<<=1}u[s]=o.create(d,f)}})();var d=[];(function(){for(var e=0;e<25;e++)d[e]=o.create()})();var f=s.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new o.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,r=this.blockSize/2,i=0;i<r;i++){var a=e[t+2*i],o=e[t+2*i+1];a=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360,o=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360;var s=n[i];s.high^=o,s.low^=a}for(var f=0;f<24;f++){for(var p=0;p<5;p++){for(var m=0,h=0,g=0;g<5;g++){var s=n[p+5*g];m^=s.high,h^=s.low}var _=d[p];_.high=m,_.low=h}for(var p=0;p<5;p++)for(var v=d[(p+4)%5],y=d[(p+1)%5],b=y.high,x=y.low,m=v.high^(b<<1|x>>>31),h=v.low^(x<<1|b>>>31),g=0;g<5;g++){var s=n[p+5*g];s.high^=m,s.low^=h}for(var S=1;S<25;S++){var m,h,s=n[S],C=s.high,w=s.low,T=c[S];T<32?(m=C<<T|w>>>32-T,h=w<<T|C>>>32-T):(m=w<<T-32|C>>>64-T,h=C<<T-32|w>>>64-T);var E=d[l[S]];E.high=m,E.low=h}var D=d[0],O=n[0];D.high=O.high,D.low=O.low;for(var p=0;p<5;p++)for(var g=0;g<5;g++){var S=p+5*g,s=n[S],k=d[S],A=d[(p+1)%5+5*g],j=d[(p+2)%5+5*g];s.high=k.high^~A.high&j.high,s.low=k.low^~A.low&j.low}var s=n[0],ee=u[f];s.high^=ee.high,s.low^=ee.low}},_doFinalize:function(){var e=this._data,n=e.words;this._nDataBytes*8;var r=e.sigBytes*8,a=this.blockSize*32;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/a)*a>>>5)-1]|=128,e.sigBytes=n.length*4,this._process();for(var o=this._state,s=this.cfg.outputLength/8,c=s/8,l=[],u=0;u<c;u++){var d=o[u],f=d.high,p=d.low;f=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360,p=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,l.push(p),l.push(f)}return new i.init(l,s)},clone:function(){for(var e=a.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=a._createHelper(f),n.HmacSHA3=a._createHmacHelper(f)})(Math),e.SHA3})})),mGe=Qr(((e,t,n)=>{(function(n,r){typeof e==`object`?t.exports=e=r(b8()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS)})(n,function(e){return(function(t){var n=e,r=n.lib,i=r.WordArray,a=r.Hasher,o=n.algo,s=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=i.create([0,1518500249,1859775393,2400959708,2840853838]),f=i.create([1352829926,1548603684,1836072691,2053994217,0]),p=o.RIPEMD160=a.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360}for(var a=this._hash.words,o=d.words,p=f.words,b=s.words,x=c.words,S=l.words,C=u.words,w,T,E,D,O,k=w=a[0],A=T=a[1],j=E=a[2],ee=D=a[3],te=O=a[4],M,n=0;n<80;n+=1)M=w+e[t+b[n]]|0,M+=n<16?m(T,E,D)+o[0]:n<32?h(T,E,D)+o[1]:n<48?g(T,E,D)+o[2]:n<64?_(T,E,D)+o[3]:v(T,E,D)+o[4],M|=0,M=y(M,S[n]),M=M+O|0,w=O,O=D,D=y(E,10),E=T,T=M,M=k+e[t+x[n]]|0,M+=n<16?v(A,j,ee)+p[0]:n<32?_(A,j,ee)+p[1]:n<48?g(A,j,ee)+p[2]:n<64?h(A,j,ee)+p[3]:m(A,j,ee)+p[4],M|=0,M=y(M,C[n]),M=M+te|0,k=te,te=ee,ee=y(j,10),j=A,A=M;M=a[1]+E+ee|0,a[1]=a[2]+D+te|0,a[2]=a[3]+O+k|0,a[3]=a[4]+w+A|0,a[4]=a[0]+T+j|0,a[0]=M},_doFinalize:function(){var e=this._data,t=e.words,n=this._nDataBytes*8,r=e.sigBytes*8;t[r>>>5]|=128<<24-r%32,t[(r+64>>>9<<4)+14]=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360,e.sigBytes=(t.length+1)*4,this._process();for(var i=this._hash,a=i.words,o=0;o<5;o++){var s=a[o];a[o]=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360}return i},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function m(e,t,n){return e^t^n}function h(e,t,n){return e&t|~e&n}function g(e,t,n){return(e|~t)^n}function _(e,t,n){return e&n|t&~n}function v(e,t,n){return e^(t|~n)}function y(e,t){return e<<t|e>>>32-t}n.RIPEMD160=a._createHelper(p),n.HmacRIPEMD160=a._createHmacHelper(p)})(Math),e.RIPEMD160})})),D8=Qr(((e,t,n)=>{(function(n,r){typeof e==`object`?t.exports=e=r(b8()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS)})(n,function(e){(function(){var t=e,n=t.lib.Base,r=t.enc.Utf8,i=t.algo;i.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,typeof t==`string`&&(t=r.parse(t));var n=e.blockSize,i=n*4;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),o=this._iKey=t.clone(),s=a.words,c=o.words,l=0;l<n;l++)s[l]^=1549556828,c[l]^=909522486;a.sigBytes=o.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})})()})})),hGe=Qr(((e,t,n)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(b8(),T8(),D8()):typeof define==`function`&&define.amd?define([`./core`,`./sha256`,`./hmac`],r):r(n.CryptoJS)})(n,function(e){return(function(){var t=e,n=t.lib,r=n.Base,i=n.WordArray,a=t.algo,o=a.SHA256,s=a.HMAC,c=a.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:o,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=s.create(n.hasher,e),a=i.create(),o=i.create([1]),c=a.words,l=o.words,u=n.keySize,d=n.iterations;c.length<u;){var f=r.update(t).finalize(o);r.reset();for(var p=f.words,m=p.length,h=f,g=1;g<d;g++){h=r.finalize(h),r.reset();for(var _=h.words,v=0;v<m;v++)p[v]^=_[v]}a.concat(f),l[0]++}return a.sigBytes=u*4,a}});t.PBKDF2=function(e,t,n){return c.create(n).compute(e,t)}})(),e.PBKDF2})})),O8=Qr(((e,t,n)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(b8(),w8(),D8()):typeof define==`function`&&define.amd?define([`./core`,`./sha1`,`./hmac`],r):r(n.CryptoJS)})(n,function(e){return(function(){var t=e,n=t.lib,r=n.Base,i=n.WordArray,a=t.algo,o=a.MD5,s=a.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:o,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,r=this.cfg,a=r.hasher.create(),o=i.create(),s=o.words,c=r.keySize,l=r.iterations;s.length<c;){n&&a.update(n),n=a.update(e).finalize(t),a.reset();for(var u=1;u<l;u++)n=a.finalize(n),a.reset();o.concat(n)}return o.sigBytes=c*4,o}});t.EvpKDF=function(e,t,n){return s.create(n).compute(e,t)}})(),e.EvpKDF})})),k8=Qr(((e,t,n)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(b8(),O8()):typeof define==`function`&&define.amd?define([`./core`,`./evpkdf`],r):r(n.CryptoJS)})(n,function(e){e.lib.Cipher||function(t){var n=e,r=n.lib,i=r.Base,a=r.WordArray,o=r.BufferedBlockAlgorithm,s=n.enc;s.Utf8;var c=s.Base64,l=n.algo.EvpKDF,u=r.Cipher=o.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){o.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return typeof e==`string`?S:y}return function(t){return{encrypt:function(n,r,i){return e(r).encrypt(t,n,r,i)},decrypt:function(n,r,i){return e(r).decrypt(t,n,r,i)}}}}()});r.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var d=n.mode={},f=r.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=d.CBC=function(){var e=f.extend();e.Encryptor=e.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize;n.call(this,e,t,i),r.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),e.Decryptor=e.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,a=e.slice(t,t+i);r.decryptBlock(e,t),n.call(this,e,t,i),this._prevBlock=a}});function n(e,n,r){var i,a=this._iv;a?(i=a,this._iv=t):i=this._prevBlock;for(var o=0;o<r;o++)e[n+o]^=i[o]}return e}(),m=n.pad={},h=m.Pkcs7={pad:function(e,t){for(var n=t*4,r=n-e.sigBytes%n,i=r<<24|r<<16|r<<8|r,o=[],s=0;s<r;s+=4)o.push(i);var c=a.create(o,r);e.concat(c)},unpad:function(e){var t=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=t}};r.BlockCipher=u.extend({cfg:u.cfg.extend({mode:p,padding:h}),reset:function(){var e;u.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var g=r.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),_=n.format={},v=_.OpenSSL={stringify:function(e){var t,n=e.ciphertext,r=e.salt;return t=r?a.create([1398893684,1701076831]).concat(r).concat(n):n,t.toString(c)},parse:function(e){var t,n=c.parse(e),r=n.words;return r[0]==1398893684&&r[1]==1701076831&&(t=a.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),g.create({ciphertext:n,salt:t})}},y=r.SerializableCipher=i.extend({cfg:i.extend({format:v}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r),a=i.finalize(t),o=i.cfg;return g.create({ciphertext:a,key:n,iv:o.iv,algorithm:e,mode:o.mode,padding:o.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return typeof e==`string`?t.parse(e,this):e}}),b=n.kdf={},x=b.OpenSSL={execute:function(e,t,n,r,i){if(r||=a.random(8),i)var o=l.create({keySize:t+n,hasher:i}).compute(e,r);else var o=l.create({keySize:t+n}).compute(e,r);var s=a.create(o.words.slice(t),n*4);return o.sigBytes=t*4,g.create({key:o,iv:s,salt:r})}},S=r.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:x}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=r.kdf.execute(n,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=i.iv;var a=y.encrypt.call(this,e,t,i.key,r);return a.mixIn(i),a},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=r.kdf.execute(n,e.keySize,e.ivSize,t.salt,r.hasher);return r.iv=i.iv,y.decrypt.call(this,e,t,i.key,r)}})}()})})),gGe=Qr(((e,t,n)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(b8(),k8()):typeof define==`function`&&define.amd?define([`./core`,`./cipher-core`],r):r(n.CryptoJS)})(n,function(e){return e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize;n.call(this,e,t,i,r),this._prevBlock=e.slice(t,t+i)}}),t.Decryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,a=e.slice(t,t+i);n.call(this,e,t,i,r),this._prevBlock=a}});function n(e,t,n,r){var i,a=this._iv;a?(i=a.slice(0),this._iv=void 0):i=this._prevBlock,r.encryptBlock(i,0);for(var o=0;o<n;o++)e[t+o]^=i[o]}return t}(),e.mode.CFB})})),_Ge=Qr(((e,t,n)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(b8(),k8()):typeof define==`function`&&define.amd?define([`./core`,`./cipher-core`],r):r(n.CryptoJS)})(n,function(e){return e.mode.CTR=function(){var t=e.lib.BlockCipherMode.extend();return t.Decryptor=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=this._iv,a=this._counter;i&&(a=this._counter=i.slice(0),this._iv=void 0);var o=a.slice(0);n.encryptBlock(o,0),a[r-1]=a[r-1]+1|0;for(var s=0;s<r;s++)e[t+s]^=o[s]}}),t}(),e.mode.CTR})})),vGe=Qr(((e,t,n)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(b8(),k8()):typeof define==`function`&&define.amd?define([`./core`,`./cipher-core`],r):r(n.CryptoJS)})(n,function(e){return e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function n(e){if((e>>24&255)==255){var t=e>>16&255,n=e>>8&255,r=e&255;t===255?(t=0,n===255?(n=0,r===255?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}function r(e){return(e[0]=n(e[0]))===0&&(e[1]=n(e[1])),e}return t.Decryptor=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,a=this._iv,o=this._counter;a&&(o=this._counter=a.slice(0),this._iv=void 0),r(o);var s=o.slice(0);n.encryptBlock(s,0);for(var c=0;c<i;c++)e[t+c]^=s[c]}}),t}(),e.mode.CTRGladman})})),yGe=Qr(((e,t,n)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(b8(),k8()):typeof define==`function`&&define.amd?define([`./core`,`./cipher-core`],r):r(n.CryptoJS)})(n,function(e){return e.mode.OFB=function(){var t=e.lib.BlockCipherMode.extend();return t.Decryptor=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=this._iv,a=this._keystream;i&&(a=this._keystream=i.slice(0),this._iv=void 0),n.encryptBlock(a,0);for(var o=0;o<r;o++)e[t+o]^=a[o]}}),t}(),e.mode.OFB})})),bGe=Qr(((e,t,n)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(b8(),k8()):typeof define==`function`&&define.amd?define([`./core`,`./cipher-core`],r):r(n.CryptoJS)})(n,function(e){return e.mode.ECB=function(){var t=e.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),t.Decryptor=t.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),t}(),e.mode.ECB})})),xGe=Qr(((e,t,n)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(b8(),k8()):typeof define==`function`&&define.amd?define([`./core`,`./cipher-core`],r):r(n.CryptoJS)})(n,function(e){return e.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,r=t*4,i=r-n%r,a=n+i-1;e.clamp(),e.words[a>>>2]|=i<<24-a%4*8,e.sigBytes+=i},unpad:function(e){var t=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=t}},e.pad.Ansix923})})),SGe=Qr(((e,t,n)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(b8(),k8()):typeof define==`function`&&define.amd?define([`./core`,`./cipher-core`],r):r(n.CryptoJS)})(n,function(e){return e.pad.Iso10126={pad:function(t,n){var r=n*4,i=r-t.sigBytes%r;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=t}},e.pad.Iso10126})})),CGe=Qr(((e,t,n)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(b8(),k8()):typeof define==`function`&&define.amd?define([`./core`,`./cipher-core`],r):r(n.CryptoJS)})(n,function(e){return e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971})})),wGe=Qr(((e,t,n)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(b8(),k8()):typeof define==`function`&&define.amd?define([`./core`,`./cipher-core`],r):r(n.CryptoJS)})(n,function(e){return e.pad.ZeroPadding={pad:function(e,t){var n=t*4;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){for(var t=e.words,n=e.sigBytes-1,n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},e.pad.ZeroPadding})})),TGe=Qr(((e,t,n)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(b8(),k8()):typeof define==`function`&&define.amd?define([`./core`,`./cipher-core`],r):r(n.CryptoJS)})(n,function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding})})),EGe=Qr(((e,t,n)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(b8(),k8()):typeof define==`function`&&define.amd?define([`./core`,`./cipher-core`],r):r(n.CryptoJS)})(n,function(e){return(function(t){var n=e,r=n.lib.CipherParams,i=n.enc.Hex,a=n.format;a.Hex={stringify:function(e){return e.ciphertext.toString(i)},parse:function(e){var t=i.parse(e);return r.create({ciphertext:t})}}})(),e.format.Hex})})),DGe=Qr(((e,t,n)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(b8(),S8(),C8(),O8(),k8()):typeof define==`function`&&define.amd?define([`./core`,`./enc-base64`,`./md5`,`./evpkdf`,`./cipher-core`],r):r(n.CryptoJS)})(n,function(e){return(function(){var t=e,n=t.lib.BlockCipher,r=t.algo,i=[],a=[],o=[],s=[],c=[],l=[],u=[],d=[],f=[],p=[];(function(){for(var e=[],t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var n=0,r=0,t=0;t<256;t++){var m=r^r<<1^r<<2^r<<3^r<<4;m=m>>>8^m&255^99,i[n]=m,a[m]=n;var h=e[n],g=e[h],_=e[g],v=e[m]*257^m*16843008;o[n]=v<<24|v>>>8,s[n]=v<<16|v>>>16,c[n]=v<<8|v>>>24,l[n]=v;var v=_*16843009^g*65537^h*257^n*16843008;u[m]=v<<24|v>>>8,d[m]=v<<16|v>>>16,f[m]=v<<8|v>>>24,p[m]=v,n?(n=h^e[e[e[_^h]]],r^=e[e[r]]):n=r=1}})();var m=[0,1,2,4,8,16,32,64,128,27,54],h=r.AES=n.extend({_doReset:function(){var e;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var t=this._keyPriorReset=this._key,n=t.words,r=t.sigBytes/4,a=((this._nRounds=r+6)+1)*4,o=this._keySchedule=[],s=0;s<a;s++)s<r?o[s]=n[s]:(e=o[s-1],s%r?r>6&&s%r==4&&(e=i[e>>>24]<<24|i[e>>>16&255]<<16|i[e>>>8&255]<<8|i[e&255]):(e=e<<8|e>>>24,e=i[e>>>24]<<24|i[e>>>16&255]<<16|i[e>>>8&255]<<8|i[e&255],e^=m[s/r|0]<<24),o[s]=o[s-r]^e);for(var c=this._invKeySchedule=[],l=0;l<a;l++){var s=a-l;if(l%4)var e=o[s];else var e=o[s-4];l<4||s<=4?c[l]=e:c[l]=u[i[e>>>24]]^d[i[e>>>16&255]]^f[i[e>>>8&255]]^p[i[e&255]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,o,s,c,l,i)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,d,f,p,a);var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,a,o,s){for(var c=this._nRounds,l=e[t]^n[0],u=e[t+1]^n[1],d=e[t+2]^n[2],f=e[t+3]^n[3],p=4,m=1;m<c;m++){var h=r[l>>>24]^i[u>>>16&255]^a[d>>>8&255]^o[f&255]^n[p++],g=r[u>>>24]^i[d>>>16&255]^a[f>>>8&255]^o[l&255]^n[p++],_=r[d>>>24]^i[f>>>16&255]^a[l>>>8&255]^o[u&255]^n[p++],v=r[f>>>24]^i[l>>>16&255]^a[u>>>8&255]^o[d&255]^n[p++];l=h,u=g,d=_,f=v}var h=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[f&255])^n[p++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[l&255])^n[p++],_=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[u&255])^n[p++],v=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[d&255])^n[p++];e[t]=h,e[t+1]=g,e[t+2]=_,e[t+3]=v},keySize:8});t.AES=n._createHelper(h)})(),e.AES})})),OGe=Qr(((e,t,n)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(b8(),S8(),C8(),O8(),k8()):typeof define==`function`&&define.amd?define([`./core`,`./enc-base64`,`./md5`,`./evpkdf`,`./cipher-core`],r):r(n.CryptoJS)})(n,function(e){return(function(){var t=e,n=t.lib,r=n.WordArray,i=n.BlockCipher,a=t.algo,o=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=a.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=o[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var i=this._subKeys=[],a=0;a<16;a++){for(var l=i[a]=[],u=c[a],n=0;n<24;n++)l[n/6|0]|=t[(s[n]-1+u)%28]<<31-n%6,l[4+(n/6|0)]|=t[28+(s[n+24]-1+u)%28]<<31-n%6;l[0]=l[0]<<1|l[0]>>>31;for(var n=1;n<7;n++)l[n]=l[n]>>>(n-1)*4+3;l[7]=l[7]<<5|l[7]>>>27}for(var d=this._invSubKeys=[],n=0;n<16;n++)d[n]=i[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],f.call(this,4,252645135),f.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),f.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],a=this._lBlock,o=this._rBlock,s=0,c=0;c<8;c++)s|=l[c][((o^i[c])&u[c])>>>0];this._lBlock=o,this._rBlock=a^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,f.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function f(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function p(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}t.DES=i._createHelper(d);var m=a.TripleDES=i.extend({_doReset:function(){var e=this._key.words;if(e.length!==2&&e.length!==4&&e.length<6)throw Error(`Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.`);var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),i=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(r.create(t)),this._des2=d.createEncryptor(r.create(n)),this._des3=d.createEncryptor(r.create(i))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=i._createHelper(m)})(),e.TripleDES})})),kGe=Qr(((e,t,n)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(b8(),S8(),C8(),O8(),k8()):typeof define==`function`&&define.amd?define([`./core`,`./enc-base64`,`./md5`,`./evpkdf`,`./cipher-core`],r):r(n.CryptoJS)})(n,function(e){return(function(){var t=e,n=t.lib.StreamCipher,r=t.algo,i=r.RC4=n.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;for(var i=0,a=0;i<256;i++){var o=i%n,s=t[o>>>2]>>>24-o%4*8&255;a=(a+r[i]+s)%256;var c=r[i];r[i]=r[a],r[a]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var e=this._S,t=this._i,n=this._j,r=0,i=0;i<4;i++){t=(t+1)%256,n=(n+e[t])%256;var a=e[t];e[t]=e[n],e[n]=a,r|=e[(e[t]+e[n])%256]<<24-i*8}return this._i=t,this._j=n,r}t.RC4=n._createHelper(i);var o=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)a.call(this)}});t.RC4Drop=n._createHelper(o)})(),e.RC4})})),AGe=Qr(((e,t,n)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(b8(),S8(),C8(),O8(),k8()):typeof define==`function`&&define.amd?define([`./core`,`./enc-base64`,`./md5`,`./evpkdf`,`./cipher-core`],r):r(n.CryptoJS)})(n,function(e){return(function(){var t=e,n=t.lib.StreamCipher,r=t.algo,i=[],a=[],o=[],s=r.Rabbit=n.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=(e[n]<<8|e[n]>>>24)&16711935|(e[n]<<24|e[n]>>>8)&4278255360;var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,e[0]&4294901760|e[1]&65535,e[3]<<16|e[3]>>>16,e[1]&4294901760|e[2]&65535,e[0]<<16|e[0]>>>16,e[2]&4294901760|e[3]&65535,e[1]<<16|e[1]>>>16,e[3]&4294901760|e[0]&65535];this._b=0;for(var n=0;n<4;n++)c.call(this);for(var n=0;n<8;n++)i[n]^=r[n+4&7];if(t){var a=t.words,o=a[0],s=a[1],l=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360,u=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,d=l>>>16|u&4294901760,f=u<<16|l&65535;i[0]^=l,i[1]^=d,i[2]^=u,i[3]^=f,i[4]^=l,i[5]^=d,i[6]^=u,i[7]^=f;for(var n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=(i[r]<<8|i[r]>>>24)&16711935|(i[r]<<24|i[r]>>>8)&4278255360,e[t+r]^=i[r]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)a[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+ +(t[0]>>>0<a[0]>>>0)|0,t[2]=t[2]+886263092+ +(t[1]>>>0<a[1]>>>0)|0,t[3]=t[3]+1295307597+ +(t[2]>>>0<a[2]>>>0)|0,t[4]=t[4]+3545052371+ +(t[3]>>>0<a[3]>>>0)|0,t[5]=t[5]+886263092+ +(t[4]>>>0<a[4]>>>0)|0,t[6]=t[6]+1295307597+ +(t[5]>>>0<a[5]>>>0)|0,t[7]=t[7]+3545052371+ +(t[6]>>>0<a[6]>>>0)|0,this._b=+(t[7]>>>0<a[7]>>>0);for(var n=0;n<8;n++){var r=e[n]+t[n],i=r&65535,s=r>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((r&4294901760)*r|0)+((r&65535)*r|0);o[n]=c^l}e[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,e[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,e[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,e[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,e[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,e[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,e[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,e[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.Rabbit=n._createHelper(s)})(),e.Rabbit})})),jGe=Qr(((e,t,n)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(b8(),S8(),C8(),O8(),k8()):typeof define==`function`&&define.amd?define([`./core`,`./enc-base64`,`./md5`,`./evpkdf`,`./cipher-core`],r):r(n.CryptoJS)})(n,function(e){return(function(){var t=e,n=t.lib.StreamCipher,r=t.algo,i=[],a=[],o=[],s=r.RabbitLegacy=n.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,e[0]&4294901760|e[1]&65535,e[3]<<16|e[3]>>>16,e[1]&4294901760|e[2]&65535,e[0]<<16|e[0]>>>16,e[2]&4294901760|e[3]&65535,e[1]<<16|e[1]>>>16,e[3]&4294901760|e[0]&65535];this._b=0;for(var i=0;i<4;i++)c.call(this);for(var i=0;i<8;i++)r[i]^=n[i+4&7];if(t){var a=t.words,o=a[0],s=a[1],l=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360,u=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,d=l>>>16|u&4294901760,f=u<<16|l&65535;r[0]^=l,r[1]^=d,r[2]^=u,r[3]^=f,r[4]^=l,r[5]^=d,r[6]^=u,r[7]^=f;for(var i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=(i[r]<<8|i[r]>>>24)&16711935|(i[r]<<24|i[r]>>>8)&4278255360,e[t+r]^=i[r]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)a[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+ +(t[0]>>>0<a[0]>>>0)|0,t[2]=t[2]+886263092+ +(t[1]>>>0<a[1]>>>0)|0,t[3]=t[3]+1295307597+ +(t[2]>>>0<a[2]>>>0)|0,t[4]=t[4]+3545052371+ +(t[3]>>>0<a[3]>>>0)|0,t[5]=t[5]+886263092+ +(t[4]>>>0<a[4]>>>0)|0,t[6]=t[6]+1295307597+ +(t[5]>>>0<a[5]>>>0)|0,t[7]=t[7]+3545052371+ +(t[6]>>>0<a[6]>>>0)|0,this._b=+(t[7]>>>0<a[7]>>>0);for(var n=0;n<8;n++){var r=e[n]+t[n],i=r&65535,s=r>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((r&4294901760)*r|0)+((r&65535)*r|0);o[n]=c^l}e[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,e[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,e[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,e[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,e[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,e[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,e[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,e[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.RabbitLegacy=n._createHelper(s)})(),e.RabbitLegacy})})),MGe=Qr(((e,t,n)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(b8(),S8(),C8(),O8(),k8()):typeof define==`function`&&define.amd?define([`./core`,`./enc-base64`,`./md5`,`./evpkdf`,`./cipher-core`],r):r(n.CryptoJS)})(n,function(e){return(function(){var t=e,n=t.lib.BlockCipher,r=t.algo;let i=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var o={pbox:[],sbox:[]};function s(e,t){let n=t>>24&255,r=t>>16&255,i=t>>8&255,a=t&255,o=e.sbox[0][n]+e.sbox[1][r];return o^=e.sbox[2][i],o+=e.sbox[3][a],o}function c(e,t,n){let r=t,i=n,a;for(let t=0;t<16;++t)r^=e.pbox[t],i=s(e,r)^i,a=r,r=i,i=a;return a=r,r=i,i=a,i^=e.pbox[16],r^=e.pbox[17],{left:r,right:i}}function l(e,t,n){let r=t,i=n,a;for(let t=17;t>1;--t)r^=e.pbox[t],i=s(e,r)^i,a=r,r=i,i=a;return a=r,r=i,i=a,i^=e.pbox[1],r^=e.pbox[0],{left:r,right:i}}function u(e,t,n){for(let t=0;t<4;t++){e.sbox[t]=[];for(let n=0;n<256;n++)e.sbox[t][n]=a[t][n]}let r=0;for(let a=0;a<18;a++)e.pbox[a]=i[a]^t[r],r++,r>=n&&(r=0);let o=0,s=0,l=0;for(let t=0;t<18;t+=2)l=c(e,o,s),o=l.left,s=l.right,e.pbox[t]=o,e.pbox[t+1]=s;for(let t=0;t<4;t++)for(let n=0;n<256;n+=2)l=c(e,o,s),o=l.left,s=l.right,e.sbox[t][n]=o,e.sbox[t][n+1]=s;return!0}var d=r.Blowfish=n.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words;u(o,t,e.sigBytes/4)}},encryptBlock:function(e,t){var n=c(o,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},decryptBlock:function(e,t){var n=l(o,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=n._createHelper(d)})(),e.Blowfish})})),A8=Qr(((e,t,n)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(b8(),x8(),cGe(),lGe(),S8(),uGe(),C8(),w8(),T8(),dGe(),E8(),fGe(),pGe(),mGe(),D8(),hGe(),O8(),k8(),gGe(),_Ge(),vGe(),yGe(),bGe(),xGe(),SGe(),CGe(),wGe(),TGe(),EGe(),DGe(),OGe(),kGe(),AGe(),jGe(),MGe()):typeof define==`function`&&define.amd?define(`./core,./x64-core,./lib-typedarrays,./enc-utf16,./enc-base64,./enc-base64url,./md5,./sha1,./sha256,./sha224,./sha512,./sha384,./sha3,./ripemd160,./hmac,./pbkdf2,./evpkdf,./cipher-core,./mode-cfb,./mode-ctr,./mode-ctr-gladman,./mode-ofb,./mode-ecb,./pad-ansix923,./pad-iso10126,./pad-iso97971,./pad-zeropadding,./pad-nopadding,./format-hex,./aes,./tripledes,./rc4,./rabbit,./rabbit-legacy,./blowfish`.split(`,`),r):n.CryptoJS=r(n.CryptoJS)})(n,function(e){return e})}))(),j8=(e,t)=>{try{if(typeof t==`object`){let n=typeof e==`string`?/^([a-f0-9]{32}):(.+)$/i.exec(e):null,r=typeof e==`string`?n&&A8.enc.Hex.parse(n[1]):e.iv;if(!r)throw Error(`Missing AES initialization vector.`);let i=A8.AES.decrypt(n?.[2]??e,t,{iv:r});return JSON.parse(i.toString(A8.enc.Utf8))}let n=A8.AES.decrypt(e,t||`4cP+dX5FI2EVYzln`);return JSON.parse(n.toString(A8.enc.Utf8))}catch{}},NGe=(e,t)=>{let n=JSON.stringify(e);if(n===void 0)throw TypeError(`[encrypt]: Value is not JSON serializable.`);if(typeof t==`object`){let e=A8.lib.WordArray.random(16),r=A8.AES.encrypt(n,t,{iv:e});return`${e.toString()}:${r.toString()}`}return A8.AES.encrypt(n,t||`4cP+dX5FI2EVYzln`).toString()},M8=ei(Qr(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n||=self,n.currency=r())})(n,function(){function e(a,o){if(!(this instanceof e))return new e(a,o);o=Object.assign({},n,o);var s=10**o.precision;this.intValue=a=t(a,o),this.value=a/s,o.increment=o.increment||1/s,o.groups=o.useVedic?i:r,this.s=o,this.p=s}function t(t,n){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:!0,i=n.decimal,a=n.errorOnInvalid,o=n.fromCents,s=10**n.precision,c=t instanceof e;if(c&&o)return t.intValue;if(typeof t==`number`||c)i=c?t.value:t;else if(typeof t==`string`)a=RegExp(`[^-\\d`+i+`]`,`g`),i=RegExp(`\\`+i,`g`),i=(i=t.replace(/\((.*)\)/,`-$1`).replace(a,``).replace(i,`.`))||0;else{if(a)throw Error(`Invalid Input`);i=0}return o||(i=(i*s).toFixed(4)),r?Math.round(i):i}var n={symbol:`$`,separator:`,`,decimal:`.`,errorOnInvalid:!1,precision:2,pattern:`!#`,negativePattern:`-!#`,format:function(e,t){var n=t.pattern,r=t.negativePattern,i=t.symbol,a=t.separator,o=t.decimal;t=t.groups;var s=(``+e).replace(/^-/,``).split(`.`),c=s[0];return s=s[1],(0<=e.value?n:r).replace(`!`,i).replace(`#`,c.replace(t,`$1`+a)+(s?o+s:``))},fromCents:!1},r=/(\d)(?=(\d{3})+\b)/g,i=/(\d)(?=(\d\d)+\d\b)/g;return e.prototype={add:function(n){var r=this.s,i=this.p;return e((this.intValue+t(n,r))/(r.fromCents?1:i),r)},subtract:function(n){var r=this.s,i=this.p;return e((this.intValue-t(n,r))/(r.fromCents?1:i),r)},multiply:function(t){var n=this.s;return e(this.intValue*t/(n.fromCents?1:10**n.precision),n)},divide:function(n){var r=this.s;return e(this.intValue/t(n,r,!1),r)},distribute:function(t){var n=this.intValue,r=this.p,i=this.s,a=[],o=Math[0<=n?`floor`:`ceil`](n/t),s=Math.abs(n-o*t);for(r=i.fromCents?1:r;t!==0;t--){var c=e(o/r,i);0<s--&&(c=c[0<=n?`add`:`subtract`](1/r)),a.push(c)}return a},dollars:function(){return~~this.value},cents:function(){return~~(this.intValue%this.p)},format:function(e){var t=this.s;return typeof e==`function`?e(this,t):t.format(this,Object.assign({},t,e))},toString:function(){var e=this.s,t=e.increment;return(Math.round(this.intValue/this.p/t)*t).toFixed(e.precision)},toJSON:function(){return this.value}},e})}))(),1),N8={precision:8,decimal:`.`},PGe=(e,t)=>{let n=(0,M8.default)(e,{...N8,...t});return t?.type===`string`?n.toString():n.value},FGe=(...e)=>e.reduce((e,t)=>e.add(t),(0,M8.default)(0,N8)),IGe=(...e)=>{let[t=0,...n]=e;return n.reduce((e,t)=>e.subtract(t),(0,M8.default)(t,N8))},LGe=(...e)=>{let[t=0,...n]=e;return n.reduce((e,t)=>{let n=typeof t==`string`?(0,M8.default)(t,N8).value:t;return e.multiply(n)},(0,M8.default)(t,N8))},RGe=(...e)=>{let[t=0,...n]=e;return n.reduce((e,t)=>{let n=e.divide(t);if(!Number.isFinite(n.value))throw RangeError(`[divide]: Invalid divisor or result.`);return n},(0,M8.default)(t,N8))},zGe=(e,t,n)=>{if(!Number.isSafeInteger(t)||t<0)throw RangeError(`[distribute]: Invalid length.`);return(0,M8.default)(e,{...N8,...n}).distribute(Math.max(1,t)).map(e=>n?.type===`string`?e.toString():e.value)},P8=()=>(e,t)=>{let n=Un.value;typeof e==`number`?n?.scrollTo(e,t??0):n?.scrollTo(e)},BGe=`.n-menu-item-content--selected`,VGe=`.n-menu-item-content--child-active`,F8=()=>{let e=FS(Un),t=e?.querySelector(`.n-layout-scroll-container, .n-scrollbar-container`),n=e?.querySelector(BGe)||e?.querySelector(VGe);if(!n||!t)return;let r=n.getBoundingClientRect(),i=t.getBoundingClientRect();if(r.top>=i.top&&r.bottom<=i.bottom)return;let a=n.closest(`.n-menu-item`),o=a&&parseFloat(window.getComputedStyle(a).marginTop)||0;P8()({top:t.scrollTop+r.top-i.top-o,left:0,behavior:`smooth`})},I8=Qr(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(n,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),L8=ei(I8(),1),HGe=Y({name:`UnlockScreen`,setup(){let[e,{validate:t}]=nZ(),{logout:n}=z9(),{updateSettingState:r}=R9(),{setLockAppScreen:i}=jS(),{isTabletOrSmaller:o}=D9(),s=`HH:mm`,c=`YYYY-MM-DD`,l=a({lockCondition:PS(),HH_MM:(0,L8.default)().format(s),AM_PM:(0,L8.default)().format(`A`),YY_MM_DD:(0,L8.default)().format(c),DDD:(0,L8.default)().format(`ddd`)}),u=setInterval(()=>{l.HH_MM=(0,L8.default)().format(s),l.AM_PM=(0,L8.default)().format(`A`)},6e3),d=setInterval(()=>{l.YY_MM_DD=(0,L8.default)().format(c),l.DDD=(0,L8.default)().format(`ddd`)},864e5),f=()=>{Kn(Fn.appLockScreenPasswordKey,`localStorage`),r(`lockScreenSwitch`,!1),setTimeout(()=>{n()},100)},p=()=>{window.$dialog.warning({title:`警告`,content:`是否返回到登陆页并且重新登录`,positiveText:`确定`,negativeText:`重新登录`,onPositiveClick:f})},m=()=>{let e=qn(Fn.appLockScreenPasswordKey,`localStorage`);if(!e){window.$dialog.warning({title:`警告`,content:()=>`检测到锁屏密码被修改,请重新登录`,closable:!1,maskClosable:!1,closeOnEsc:!1,positiveText:`重新登录`,onPositiveClick:f});return}let n=j8(e);t().then(()=>{n===l.lockCondition.lockPassword?(i(!1),r(`lockScreenSwitch`,!1),Kn(Fn.appLockScreenPasswordKey,`localStorage`),l.lockCondition=PS()):window.$message.warning(`密码错误,请重新输入`)})};return se(()=>{clearInterval(u),clearInterval(d)}),{...h(l),backToSigning:p,unlockScreen:m,isTabletOrSmaller:o,register:e}},render(){let{isTabletOrSmaller:e}=this,{HH_MM:t,AM_PM:n,YY_MM_DD:r,DDD:i}=this,a=t.split(`:`),{unlockScreen:o,backToSigning:s,register:c}=this;return J(`div`,{class:`app-lock-screen__content app-lock-screen__content--full`},[J(`div`,{class:`app-lock-screen__unlock`},[J(`div`,{class:`app-lock-screen__unlock__content`},[J(`div`,{class:`app-lock-screen__unlock__content-wrapper`},[J(`div`,{class:[`app-lock-screen__unlock__content-bg__wrapper`,`app-lock-screen__unlock__content-bg`,e?`app-lock-screen__unlock__content-bg--smaller`:``]},[J(`div`,{class:`left`},[a[0]]),J(`div`,{class:`right`},[a[1]])])]),J(`div`,{class:`app-lock-screen__unlock__content-avatar`},[J(MS,{avatarSize:52,style:`pointer-events: none;`,vertical:!0},null)]),J(`div`,{class:`app-lock-screen__unlock__content-input`},[J(tZ,{onRegister:c,model:this.lockCondition,rules:NS},{default:()=>[J(jr,{path:`lockPassword`},{default:()=>[J(Fr,{autofocus:!0,value:this.lockCondition.lockPassword,"onUpdate:value":e=>this.lockCondition.lockPassword=e,type:`password`,placeholder:`请输入解锁密码`,clearable:!0,minlength:6,onKeydown:e=>{e.code===`Enter`&&o()}},null)]}),J(Nr,{justify:`space-between`},{default:()=>[J(wr,{type:`primary`,text:!0,onClick:s.bind(this)},{default:()=>[bt(`返回登陆`)]}),J(wr,{type:`primary`,text:!0,onClick:o.bind(this)},{default:()=>[bt(`进入系统`)]})]})]})]),J(`div`,{class:`app-lock-screen__unlock__content-date`},[J(`div`,{class:`current-year`},[r,bt(`\xA0`),J(`span`,null,[i]),bt(`\xA0`),J(`span`,null,[n])])])])])])}}),R8=Y({name:`SiderBarLogo`,props:{collapsed:{type:Boolean,required:!0}},setup(){let e=dx(),{getSideBarLogo:t}=L9();return{sideBarLogo:t,sideBarLogoClick:()=>{t.value&&t.value.url&&(t.value.jumpType===`station`?e.push(t.value.url):window.open(t.value.url))},TemplateLogo:({cursor:e})=>{if(!t.value)return null;if(typeof t.value.icon==`string`)return J(RJ,{name:vS(t.value.icon)??`logo/ray`,size:`30`,cursor:e},null);if(qS(t.value.icon,`Object`))return GS(t.value.icon)}}},render(){let{sideBarLogo:e,collapsed:t,TemplateLogo:n,sideBarLogoClick:r}=this;return e?.title?J(`button`,{type:`button`,disabled:!e?.url,class:[`r-menu__logo`,{"r-menu__logo-url":e.url,"r-menu__logo--collapsed":t}],onClick:r.bind(this)},[e?.icon?t?J(mp,{placement:`right`},{trigger:()=>n({cursor:`pointer`}),default:()=>e.title}):n({cursor:`pointer`}):t?J(mp,{placement:`right`},{trigger:()=>J(`span`,{class:`r-menu__logo-initial`},[e.title?.[0]||null]),default:()=>e.title}):null,J(`span`,{class:[t?null:`r-menu__logo-title--open`,`r-menu__logo-title`]},[J(yp,null,{default:()=>[e.title]})])]):null}});function UGe(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!wn(e)}var WGe=Y({name:`AppMenu`,props:{options:{type:Array,default:void 0},showLogo:{type:Boolean,default:!0},end:Boolean,inert:Boolean},setup(e){let t=p(null),{changeMenuModelValue:n,collapsedMenu:r,updateMenuState:i}=I9(),{getAppTheme:a,getMenuConfig:o}=L9(),{getMenuOptions:s,getCollapsed:c,getMenuKey:l}=F9(),{globalDrawerValue:u}=B9(),{setRuntimeState:d}=V9(),{isTabletOrSmaller:f,width:m}=D9({observer:e=>{e?i(`collapsed`,!1):d(`globalDrawerValue`,!1)}}),h=V(()=>f.value?Math.min(o.value.menuWidth,m.value-32):o.value.menuWidth),g=V(()=>!f.value&&c.value);Te([l,()=>e.options,t],async()=>{await he(),l.value!=null&&t.value?.showOption(String(l.value)),F8()},{flush:`post`});let _=()=>J(phe,I({class:[`app-menu__sider`,{"app-menu__sider--end":e.end}]},{inert:e.inert},{showTrigger:!f.value,collapseMode:o.value.collapsedMode,collapsedWidth:o.value.collapsedWidth,onUpdateCollapsed:r,width:h.value,contentClass:`app-menu__body`,contentStyle:{overflow:`clip`},collapsed:g.value,inverted:o.value.inverted}),{default:()=>[e.showLogo&&o.value.menuSiderBarLogo?J(R8,{collapsed:g.value},null):null,J(Ng,{class:`app-menu__scroll`,nativeScrollbar:o.value.nativeScrollbar,themeOverrides:o.value.inverted&&!a.value?{peers:{Scrollbar:{color:`rgb(255 255 255 / 30%)`,colorHover:`rgb(255 255 255 / 40%)`}}}:void 0,ref:Un},{default:()=>[J($g,{ref:t,class:`r-menu--app`,keyField:`fullPath`,value:l.value,options:e.options??s.value,indent:o.value.collapsedIndent,collapsed:g.value,collapsedIconSize:o.value.collapsedIconSize,collapsedWidth:o.value.collapsedWidth,onUpdateValue:(e,t)=>{n(e,t),f.value&&d(`globalDrawerValue`,!1)},accordion:o.value.accordion,iconSize:o.value.iconSize,inverted:o.value.inverted},null)]})]});return()=>{let e;return f.value?J(Fh,{class:`app-menu__drawer`,width:h.value,show:u.value,onUpdateShow:e=>d(`globalDrawerValue`,e),placement:`left`,displayDirective:`show`,autoFocus:!1},UGe(e=_())?e:{default:()=>[e]}):_()}}}),GGe=Y({name:`TopNavigation`,setup(){let{t:e}=Hb(),{getMenuOptions:t,getMenuKey:n}=F9(),{getLayoutConfig:r,getMenuConfig:i}=L9(),{changeMenuModelValue:a}=I9();return()=>J(sWe,{items:t.value,active:n.value,grouped:r.value.mode===`mixed`||r.value.mode===`split`,label:e(`layout.navigation`),iconSize:i.value.iconSize,select:e=>a(e.fullPath,e)},{logo:()=>i.value.menuSiderBarLogo?J(R8,{collapsed:!1},null):null})}}),KGe=class{pendingRequest=new Map;shouldAddCanceler(e){return e.cancelConfig?.cancel??!0}generateRequestKey(e){let{method:t=``,url:n=``,params:r,data:i}=e;return[n,t,JSON.stringify(r),JSON.stringify(i)].join(`&`)}addPendingRequest(e){if(!this.shouldAddCanceler(e))return;e.__CANCELER_TAG_RAY_TEMPLATE__=`__CANCELER_TAG_RAY_TEMPLATE__`;let t=this.generateRequestKey(e),n=this.pendingRequest.get(t);if(n)e.signal=n.signal;else{let n=new AbortController;e.signal=n.signal,this.pendingRequest.set(t,n)}}removePendingRequest(e){let t=this.generateRequestKey(e),n=this.pendingRequest.get(t);n&&(n.abort(),this.pendingRequest.delete(t))}releasePendingRequest(e){let t=this.generateRequestKey(e);if(this.pendingRequest.get(t)?.signal===e.signal)this.pendingRequest.delete(t);else if(e.signal){for(let[t,n]of this.pendingRequest)if(n.signal===e.signal){this.pendingRequest.delete(t);break}}}cancelAllRequest(){this.pendingRequest.forEach(e=>{e.abort()}),this.pendingRequest.clear()}getPendingCount(){return this.pendingRequest.size}hasPendingRequest(e){let t=this.generateRequestKey(e);return this.pendingRequest.has(t)}},qGe=(e,t)=>{if(e){let n=e.headers;t.forEach(e=>{n[e.key]=e.value})}};function z8(e,t){return function(){return e.apply(t,arguments)}}var{toString:JGe}=Object.prototype,{getPrototypeOf:B8}=Object,{iterator:V8,toStringTag:H8}=Symbol,U8=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),W8=e=>typeof e==`string`&&(e===`__proto__`||e===`constructor`||e===`prototype`),G8=(e,t,n)=>e===Object.prototype||!n&&t===null,YGe=e=>{if(!Object.isExtensible(e))return!1;let t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(W8(t))return!1;let n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&n.writable===!0})},K8=(e,t)=>{let n=e,r=[];for(;n!=null;){if(r.indexOf(n)!==-1)return!1;r.push(n);let i=B8(n);if(G8(n,i,n===e))return!1;if(U8(n,t))return!0;n=i}return!1},XGe=(e,t)=>e!=null&&K8(e,t)?e[t]:void 0,ZGe=e=>{if(e==null||typeof e!=`object`&&typeof e!=`function`)return e;let t=B8(e);if(t===null&&YGe(e))return e;let n=Object.create(null),r=Object.create(null),i=[],a=e;for(;a!=null&&i.indexOf(a)===-1;){i.push(a);let o=a===e?t:B8(a);if(G8(a,o,a===e))break;let s=Object.getOwnPropertyNames(a);Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(a));for(let t of s)W8(t)||U8(r,t)||(n[t]=e[t],r[t]=!0);a=o}return n},q8=(e=>t=>{let n=JGe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),J8=e=>(e=e.toLowerCase(),t=>q8(t)===e),Y8=e=>t=>typeof t===e,{isArray:X8}=Array,Z8=Y8(`undefined`);function Q8(e){return e!==null&&!Z8(e)&&e.constructor!==null&&!Z8(e.constructor)&&e5(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var $8=J8(`ArrayBuffer`);function QGe(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&$8(e.buffer),t}var $Ge=Y8(`string`),e5=Y8(`function`),eKe=Y8(`number`),t5=e=>typeof e==`object`&&!!e,tKe=e=>e===!0||e===!1,n5=e=>{if(!t5(e))return!1;let t=B8(e);return(t===null||t===Object.prototype||B8(t)===null)&&(G8(e,t,!0)||!U8(e,H8)&&!U8(e,V8))},nKe=e=>{if(!t5(e)||Q8(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},rKe=J8(`Date`),iKe=J8(`File`),aKe=e=>!!(e&&e.uri!==void 0),oKe=e=>e&&e.getParts!==void 0,sKe=J8(`Blob`),cKe=J8(`FileList`),lKe=J8(`Set`),uKe=e=>t5(e)&&e5(e.pipe);function dKe(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var r5=dKe(),i5=r5.FormData===void 0?void 0:r5.FormData,fKe=e=>{if(!e)return!1;if(i5&&e instanceof i5)return!0;let t=B8(e);if(!t||t===Object.prototype||!e5(e.append))return!1;let n=q8(e);return n===`formdata`||n===`object`&&e5(e.toString)&&e.toString()===`[object FormData]`},pKe=J8(`URLSearchParams`),[mKe,hKe,gKe,_Ke]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(J8),a5=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function o5(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),X8(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(Q8(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function vKe(e,t){if(Q8(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-->0;)if(i=n[r],t===i.toLowerCase())return i;return null}var s5=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,c5=e=>!Z8(e)&&e!==s5;function l5(...e){let{caseless:t,skipUndefined:n}=c5(this)&&this||{},r={},i=t?Object.create(null):null,a=(e,t)=>{if(t===`__proto__`||t===`constructor`||t===`prototype`)return;let a=t;if(i&&typeof t==`string`){let e=t.toLowerCase(),n=i[e];n!==void 0&&U8(r,n)?a=n:i[e]=t}let o=U8(r,a)?r[a]:void 0;n5(o)&&n5(e)?r[a]=l5(o,e):n5(e)?r[a]=l5({},e):X8(e)?r[a]=e.slice():n&&Z8(e)||(r[a]=e)};for(let t=0,n=e.length;t<n;t++){let n=e[t];if(!n||Q8(n)||(o5(n,a),typeof n!=`object`||X8(n)||!Object.getOwnPropertySymbols))continue;let r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){let t=r[e];AKe.call(n,t)&&a(n[t],t)}}return r}var yKe=(e,t,n,{allOwnKeys:r}={})=>(o5(t,(t,r)=>{n&&e5(t)?Object.defineProperty(e,r,{__proto__:null,value:z8(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),bKe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),xKe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},SKe=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-->0;)o=i[a],r&&!r(o,e,t)||s[o]||(t[o]=e[o],s[o]=!0);e=n!==!1&&B8(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},CKe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},wKe=e=>{if(!e)return null;if(X8(e))return e;let t=e.length;if(!Number.isSafeInteger(t)||t<0||t>4294967295)return null;let n=new Set,r=new Set,i=e;for(;i!=null&&n.size<t;){if(r.has(i))return null;r.add(i);let a=B8(i);if(G8(i,a,i===e))break;Object.getOwnPropertyNames(i).forEach(e=>{let r=+e;Number.isInteger(r)&&r>=0&&r<t&&String(r)===e&&U8(i,e)&&n.add(r)}),i=a}if(n.size!==t)return null;let a=Array(t);for(;t-->0;)a[t]=e[t];return a},TKe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&B8(Uint8Array)),EKe=(e,t)=>{let n=(e&&e[V8]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},DKe=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},OKe=J8(`HTMLFormElement`),kKe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),{propertyIsEnumerable:AKe}=Object.prototype,jKe=J8(`RegExp`),u5=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};o5(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},MKe=e=>{u5(e,(t,n)=>{if(e5(e)&&[`arguments`,`caller`,`callee`].includes(n))return!1;let r=e[n];e5(r)&&(t.enumerable=!1,`writable`in t?t.writable=!1:t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)})})},NKe=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return X8(e)?r(e):r(String(e).split(t)),n},PKe=()=>{},FKe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function IKe(e){return!!(e&&e5(e.append)&&e[H8]===`FormData`&&e[V8])}var LKe=e=>{let t=new WeakSet,n=e=>{if(t5(e)){if(t.has(e))return;if(Q8(e))return e;if(!(`toJSON`in e)){t.add(e);let r;if(lKe(e)){r=[];for(let t of e){let e=n(t);!Z8(e)&&r.push(e)}}else r=X8(e)?[]:{},o5(e,(e,t)=>{let i=n(e);!Z8(i)&&(r[t]=i)});return t.delete(e),r}}return e};return n(e)},RKe=J8(`AsyncFunction`),zKe=e=>e&&(t5(e)||e5(e))&&e5(e.then)&&e5(e.catch),d5=((e,t)=>e?setImmediate:t?((e,t)=>(s5.addEventListener(`message`,({source:n,data:r})=>{n===s5&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),s5.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,e5(s5.postMessage)),BKe=typeof queueMicrotask<`u`?queueMicrotask.bind(s5):typeof process<`u`&&process.nextTick||d5,f5=e=>e!=null&&e5(e[V8]),$={isArray:X8,isArrayBuffer:$8,isBuffer:Q8,isFormData:fKe,isArrayBufferView:QGe,isString:$Ge,isNumber:eKe,isBoolean:tKe,isObject:t5,isPlainObject:n5,isEmptyObject:nKe,isReadableStream:mKe,isRequest:hKe,isResponse:gKe,isHeaders:_Ke,isUndefined:Z8,isDate:rKe,isFile:iKe,isReactNativeBlob:aKe,isReactNative:oKe,isBlob:sKe,isRegExp:jKe,isFunction:e5,isStream:uKe,isURLSearchParams:pKe,isTypedArray:TKe,isFileList:cKe,forEach:o5,merge:l5,extend:yKe,trim:a5,stripBOM:bKe,inherits:xKe,toFlatObject:SKe,kindOf:q8,kindOfTest:J8,endsWith:CKe,toArray:wKe,forEachEntry:EKe,matchAll:DKe,isHTMLForm:OKe,hasOwnProperty:U8,hasOwnProp:U8,hasOwnInPrototypeChain:K8,getSafeProp:XGe,toSafeFlatObject:ZGe,reduceDescriptors:u5,freezeMethods:MKe,toObjectSet:NKe,toCamelCase:kKe,noop:PKe,toFiniteNumber:FKe,findKey:vKe,global:s5,isContextDefined:c5,isSpecCompliantForm:IKe,toJSONObject:LKe,isAsyncFn:RKe,isThenable:zKe,setImmediate:d5,asap:BKe,isIterable:f5,isSafeIterable:e=>e!=null&&K8(e,V8)&&f5(e)},VKe=$.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]),HKe=e=>{let t=Object.create(null),n,r,i;return e&&e.split(`
`).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim();let a=$.hasOwnProp(t,n);!n||a&&$.hasOwnProp(VKe,n)||(n===`set-cookie`?a?t[n].push(r):t[n]=[r]:t[n]=a?t[n]+`, `+r:r)}),t};function UKe(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}var WKe=RegExp(`[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+`,`g`),GKe=RegExp(`[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+`,`g`);function p5(e,t){return $.isArray(e)?e.map(e=>p5(e,t)):UKe(String(e).replace(t,``))}var KKe=e=>p5(e,WKe),qKe=e=>p5(e,GKe);function m5(e){let t=Object.create(null);return $.forEach(e.toJSON(),(e,n)=>{t[n]=qKe(e)}),t}var h5=Symbol(`internals`);function g5(e){return e&&String(e).trim().toLowerCase()}function _5(e){return e===!1||e==null?e:$.isArray(e)?e.map(_5):KKe(String(e))}function JKe(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var YKe=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function v5(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}function XKe(e){let t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n=``;for(let r=1;r<t;r++){let i=e.charCodeAt(r);if(i===34||i===92&&(r+=1,r>=t))return e;n+=e[r]}return n}function ZKe(e){let t=Object.create(null),n=String(e),r=0,i=!1,a=!1;function o(e){let i=v5(n.slice(r,e)),a=i.indexOf(`=`);if(a<1)return;let o=v5(i.slice(0,a));if(!YKe.test(o))return;let s=o.toLowerCase();if(s===`__proto__`||s===`constructor`||s===`prototype`)return;let c=v5(i.slice(a+1));t[s]=XKe(c)}for(let e=0;e<n.length;e++){let t=n.charCodeAt(e);i?a?a=!1:t===92?a=!0:t===34&&(i=!1):t===34?i=!0:(t===44||t===59)&&(o(e),r=e+1)}return o(n.length),t}var QKe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()),$Ke=`__Proto__`,y5=e=>e===`__proto__`?$Ke:e;function b5(e,t,n,r,i){if($.isFunction(r))return r.call(e,t,n);if(i&&(t=n),$.isString(t)){if($.isString(r))return t.indexOf(r)!==-1;if($.isRegExp(r))return r.test(t)}}function eqe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function tqe(e,t){let n=$.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var x5=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=g5(t);if(!i)return;let a=$.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[y5(a||t)]=_5(e))}let a=(e,t)=>$.forEach(e,(e,n)=>i(e,n,t));if($.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if($.isString(e)&&(e=e.trim())&&!QKe(e))a(HKe(e),t);else if($.isObject(e)&&$.isSafeIterable(e)){let n=Object.create(null),r,i;for(let t of e){if(!$.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);i=t[0],$.hasOwnProp(n,i)?(r=n[i],n[i]=$.isArray(r)?[...r,t[1]]:[r,t[1]]):n[i]=t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=g5(e),e){let n=$.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return JKe(e);if($.isFunction(t))return t.call(this,e,n);if($.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=g5(e),e){let n=$.findKey(this,e);return!(!n||this[n]===void 0||t&&!b5(this,this[n],n,t))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=g5(e),e){let i=$.findKey(n,e);i&&(!t||b5(n,n[i],i,t))&&(delete n[i],r=!0)}}return $.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||b5(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n=Object.create(null);return $.forEach(this,(r,i)=>{let a=$.findKey(n,i);if(a){t[a]=_5(r),delete t[i];return}let o=y5(e?eqe(i):String(i).trim());o!==i&&delete t[i],t[o]=_5(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return $.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&$.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(`
`)}getSetCookie(){let e=this.get(`set-cookie`);return $.isArray(e)?e:e==null||e===!1?[]:[e]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return ZKe(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[h5]=this[h5]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=g5(e);t[r]||(tqe(n,e),t[r]=!0)}return $.isArray(e)?e.forEach(r):r(e),this}};x5.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),$.reduceDescriptors(x5.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),$.freezeMethods(x5);var S5=`[REDACTED ****]`;function nqe(e){if($.hasOwnProp(e,`toJSON`))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if($.hasOwnProp(t,`toJSON`))return!0;t=Object.getPrototypeOf(t)}return!1}function rqe(e,t){let n=new Set(t.map(e=>String(e).toLowerCase())),r=[],i=e=>{if(typeof e!=`object`||!e||$.isBuffer(e))return e;if(r.indexOf(e)!==-1)return;e instanceof x5&&(e=e.toJSON()),r.push(e);let t;if($.isArray(e))t=[],e.forEach((e,n)=>{let r=i(e);$.isUndefined(r)||(t[n]=r)});else{if(!$.isPlainObject(e)&&nqe(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?S5:i(a);$.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}function C5(e){try{return String(e)}catch{return``}}function iqe(e){return e.errors.map(e=>{try{return e&&e.message?C5(e.message):C5(e)}catch{return``}}).filter(Boolean).join(`; `)||e.name||`AggregateError`}var aqe=`
Caused by: `,w5=Symbol(`causeStack`);function oqe(e,t){let n=$.hasOwnProp(e,w5)&&e[w5];return n&&t.endsWith(n)?t.length-n.length:-1}function sqe(e,t){try{let n=t&&t.stack;if(typeof n!=`string`||!n)return;let r=e.stack;if(typeof r!=`string`||!r)return;let i=aqe+n;e.stack=r+i,Object.defineProperty(e,w5,{__proto__:null,value:i})}catch{}}var T5=class e extends Error{static from(t,n,r,i,a,o){let s=t.message;!s&&$.isArray(t.errors)&&t.errors.length&&(s=iqe(t));let c=new e(s,n||t.code,r,i,a);return Object.defineProperty(c,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),c.name=t.name,sqe(c,t),t.status!=null&&c.status==null&&(c.status=t.status),o&&Object.assign(c,o),c}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){let e=this.config,t=e&&$.hasOwnProp(e,`redact`)?e.redact:void 0,n=$.isArray(t)&&t.length>0?rqe(e,t):$.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};T5.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,T5.ERR_BAD_OPTION=`ERR_BAD_OPTION`,T5.ECONNABORTED=`ECONNABORTED`,T5.ETIMEDOUT=`ETIMEDOUT`,T5.ECONNREFUSED=`ECONNREFUSED`,T5.ERR_NETWORK=`ERR_NETWORK`,T5.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,T5.ERR_DEPRECATED=`ERR_DEPRECATED`,T5.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,T5.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,T5.ERR_CANCELED=`ERR_CANCELED`,T5.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,T5.ERR_INVALID_URL=`ERR_INVALID_URL`,T5.ERR_FORM_DATA_DEPTH_EXCEEDED=`ERR_FORM_DATA_DEPTH_EXCEEDED`;function E5(e){return $.isPlainObject(e)||$.isArray(e)}function D5(e){return $.endsWith(e,`[]`)?e.slice(0,-2):e}function O5(e,t,n){return e?e.concat(t).map(function(e,t){return e=D5(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function cqe(e){return $.isArray(e)&&!e.some(E5)}var lqe=$.toFlatObject($,{},null,function(e){return/^is[A-Z]/.test(e)});function k5(e,t,n){if(!$.isObject(e))throw TypeError(`target must be an object`);t||=new FormData;let r=(e,t)=>{let r=$.getSafeProp(n,e);return $.isUndefined(r)?t:r},i=r(`metaTokens`,!0),a=r(`visitor`)||h,o=r(`dots`,!1),s=r(`indexes`,!1),c=r(`Blob`)||typeof Blob<`u`&&Blob,l=r(`maxDepth`,100),u=c&&$.isSpecCompliantForm(t),d=[];if(!$.isFunction(a))throw TypeError(`visitor must be a function`);function f(e){if(e===null)return``;if($.isDate(e))return e.toISOString();if($.isBoolean(e))return e.toString();if(!u&&$.isBlob(e))throw new T5(`Blob is not supported. Use a Buffer instead.`);if($.isArrayBuffer(e)||$.isTypedArray(e)){if(u&&typeof c==`function`)return new c([e]);throw new T5(`Blob is not supported. Use a Buffer instead.`,T5.ERR_NOT_SUPPORT)}return e}function p(e){if(e>l)throw new T5(`Object is too deeply nested (`+e+` levels). Max depth: `+l,T5.ERR_FORM_DATA_DEPTH_EXCEEDED)}function m(e,t){if(l===1/0)return JSON.stringify(e);let n=[];return JSON.stringify(e,function(e,r){if(!$.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),p(t+n.length-1),r})}function h(e,n,r){let a=e;if($.isReactNative(t)&&$.isReactNativeBlob(e))return t.append(O5(r,n,o),f(e)),!1;if(e&&!r&&typeof e==`object`){if($.endsWith(n,`{}`))n=i?n:n.slice(0,-2),e=m(e,1);else if($.isArray(e)&&cqe(e)||($.isFileList(e)||$.endsWith(n,`[]`))&&(a=$.toArray(e)))return n=D5(n),a.forEach(function(e,r){!($.isUndefined(e)||e===null)&&t.append(s===!0?O5([n],r,o):s===null?n:n+`[]`,f(e))}),!1}return E5(e)?!0:(t.append(O5(r,n,o),f(e)),!1)}let g=Object.assign(lqe,{defaultVisitor:h,convertValue:f,isVisitable:E5});function _(e,n,r=0){if(!$.isUndefined(e)){if(p(r),d.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));d.push(e),$.forEach(e,function(e,i){(!($.isUndefined(e)||e===null)&&a.call(t,e,$.isString(i)?i.trim():i,n,g))===!0&&_(e,n?n.concat(i):[i],r+1)}),d.pop()}}if(!$.isObject(e))throw TypeError(`data must be an object`);return _(e),t}function A5(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function j5(e,t){this._pairs=[],e&&k5(e,this,t)}var M5=j5.prototype;M5.append=function(e,t){this._pairs.push([e,t])},M5.toString=function(e){let t=e?t=>e.call(this,t,A5):A5;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function uqe(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function N5(e,t,n){if(!t)return e;e||=``;let r=$.isFunction(n)?{serialize:n}:n,i=$.getSafeProp(r,`encode`)||uqe,a=$.getSafeProp(r,`serialize`),o;if(o=a?a(t,r):$.isURLSearchParams(t)?t.toString():new j5(t,r).toString(i),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var P5=Symbol(`internals`);function F5(e){return e?e.length:0}function I5(e){if(e)for(;e.length&&e[e.length-1]===null;)e.pop()}function dqe(e){return typeof e==`string`&&e!==``&&String(Number(e))===e?Number(e):e}function L5(e,t){let n=e.handlers,r=F5(n);n===t.handlersRef?r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(e,r){n[e.index]!==e.handler&&t.handlerEntries.delete(r)}):t.handlerEntries.clear()):(t.handlersRef=n,t.handlerEntries.clear()),t.handlersLength=r}var R5=class{constructor(){this.handlers=[],this[P5]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){let r={fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null},i=this[P5];this.handlers??=[],L5(this,i);let a=i.nextId++;return this.handlers.push(r),i.handlerEntries.set(a,{handler:r,index:this.handlers.length-1}),i.handlersLength=this.handlers.length,a}eject(e){let t=this[P5];L5(this,t);let n=dqe(e),r=t.handlerEntries.get(n);if(r){if(t.handlerEntries.delete(n),this.handlers[r.index]!==r.handler)return;this.handlers[r.index]=null,t.iterationDepth||(I5(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],L5(this,this[P5]))}forEach(e){let t=this[P5];L5(this,t),t.iterationDepth++;try{$.forEach(this.handlers,function(t){t!==null&&e(t)})}finally{--t.iterationDepth||(L5(this,t),I5(this.handlers),t.handlersLength=F5(this.handlers))}}},z5={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0,encodeBasicAuthUsername:!1},fqe={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:j5,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},pqe=$r({hasBrowserEnv:()=>B5,hasStandardBrowserEnv:()=>mqe,hasStandardBrowserWebWorkerEnv:()=>hqe,navigator:()=>V5,origin:()=>gqe}),B5=typeof window<`u`&&typeof document<`u`,V5=typeof navigator==`object`&&navigator||void 0,mqe=B5&&(!V5||[`ReactNative`,`NativeScript`,`NS`].indexOf(V5.product)<0),hqe=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,gqe=B5&&window.location.href||`http://localhost`,H5={...pqe,...fqe};function _qe(e,t){return k5(e,new H5.classes.URLSearchParams,{visitor:function(e,t,n,r){return H5.isNode&&$.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}var U5=100;function W5(e){if(e>U5)throw new T5(`FormData field is too deeply nested (`+e+` levels). Max depth: `+U5,T5.ERR_FORM_DATA_DEPTH_EXCEEDED)}function vqe(e){let t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g,r;for(;(r=n.exec(e))!==null;)W5(t.length),t.push(r[0]===`[]`?``:r[1]||r[0]);return t}function G5(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function K5(e){if(!$.isArray(e))return e;let t=Object.keys(e);return t.length!==e.length||t.some((e,t)=>e!==String(t))?G5(e):e}function yqe(e){let t=[e];for(;t.length;){let e=t.pop();Object.keys(e).forEach(n=>{let r=e[n]=K5(e[n]);($.isArray(r)||$.isPlainObject(r))&&t.push(r)})}return e}function q5(e){function t(e,n,r,i){W5(i);let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&$.isArray(r)?r.length:a,s?($.hasOwnProp(r,a)?(r[a]=K5(r[a]),r[a]=$.isArray(r[a])?r[a].concat(n):[r[a],n]):r[a]=n,!o):($.hasOwnProp(r,a)&&$.isObject(r[a])||(r[a]=[]),t(e,n,r[a],i)&&$.isArray(r[a])&&(r[a]=G5(r[a])),!o)}if($.isFormData(e)&&$.isFunction(e.entries)){let n={};return $.forEachEntry(e,(e,r)=>{t(vqe(e),r,n,0)}),yqe(n)}return null}var J5=Object.freeze([`get`,`delete`,`head`,`options`,`post`,`put`,`patch`,`purge`,`link`,`unlink`,`query`]),Y5=(e,t)=>e!=null&&$.hasOwnProp(e,t)?e[t]:void 0;function bqe(e,t,n){if($.isString(e))try{return(t||JSON.parse)(e),$.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var X5={transitional:z5,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=$.isObject(e);if(i&&$.isHTMLForm(e)&&(e=new FormData(e)),$.isFormData(e))return r?JSON.stringify(q5(e)):e;if($.isArrayBuffer(e)||$.isBuffer(e)||$.isStream(e)||$.isFile(e)||$.isBlob(e)||$.isReadableStream(e))return e;if($.isArrayBufferView(e))return e.buffer;if($.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){let t=Y5(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return _qe(e,t).toString();if((a=$.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=Y5(this,`env`),r=n&&n.FormData;return k5(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),bqe(e)):e}],transformResponse:[function(e){let t=Y5(this,`transitional`)||X5.transitional,n=t&&t.forcedJSONParsing,r=Y5(this,`responseType`),i=r===`json`;if($.isResponse(e)||$.isReadableStream(e))return e;if(e&&$.isString(e)&&(n&&!r||i)){let n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,Y5(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?T5.from(e,T5.ERR_BAD_RESPONSE,this,null,Y5(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:H5.classes.FormData,Blob:H5.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};$.forEach(J5,e=>{X5.headers[e]={}});function Z5(e,t){let n=this||X5,r=t||n,i=x5.from(r.headers),a=r.data;return $.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function Q5(e){return!!(e&&e.__CANCEL__)}var $5=class extends T5{constructor(e,t,n){super(e??`canceled`,T5.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function e7(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new T5(`Request failed with status code `+n.status,n.status>=400&&n.status<500?T5.ERR_BAD_REQUEST:T5.ERR_BAD_RESPONSE,n.config,n.request,n))}var xqe=/[\t\n\r]/g;function t7(e){if(typeof e!=`string`)return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(xqe,``)}function n7(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1].toLowerCase()||``}var r7=e=>{try{return decodeURIComponent(e)}catch{return e}},i7=H5.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];$.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),$.isString(r)&&s.push(`path=${r}`),$.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),$.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie;if(!t)return null;let n=t.split(`;`);for(let t=0;t<n.length;t++){let r=n[t].replace(/^\s+/,``),i=r.indexOf(`=`);if(i!==-1&&r.slice(0,i)===e)return r7(r.slice(i+1))}return null},async readAsync(e){try{let t=typeof window<`u`&&window.cookieStore;if(t&&$.isFunction(t.get)){let n=await t.get(e);return n?r7(n.value):null}}catch{}return this.read(e)},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},async readAsync(){return null},remove(){}};function Sqe(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function Cqe(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i),(...e)=>o(e)]}var a7=(e,t,n=3)=>{let r=0,i=Sqe(50,250);return Cqe(n=>{if(!n||!$.isNumber(n.loaded))return;let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=Math.max(0,o==null?a:Math.min(a,o)),c=Math.max(0,s-r),l=i(c);r=Math.max(r,s),e({loaded:s,total:o,progress:o?s/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o?(o-s)/l:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},o7=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},s7=(e,t=$.asap)=>(...n)=>t(()=>e(...n)),wqe=H5.hasStandardBrowserEnv?(e=>t=>(t=new URL(t,document.baseURI||H5.origin),e.protocol===t.protocol&&e.host===t.host&&e.port===t.port))(new URL(H5.origin)):()=>!0;function Tqe(e){return typeof e==`string`&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Eqe(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+`/`+t.replace(/^\/+/,``)}var Dqe=/^https?:(?!\/\/)/i;function Oqe(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n=``)=>`${t}${n}${S5}`)}function kqe(e){let t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${S5}@`),n=t.indexOf(`#`),r=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${S5}`);return n===-1?r:`${r}#${Oqe(t.slice(n+1))}`}function c7(e,t){if(typeof e==`string`){let n=t7(e);if(Dqe.test(n))throw new T5(`Invalid URL ${JSON.stringify(kqe(n))}: missing "//" after protocol`,T5.ERR_INVALID_URL,t)}}function l7(e,t,n,r){c7(t,r);let i=!Tqe(t);return e&&(i||n===!1)?(c7(e,r),Eqe(e,t)):t}function Aqe(e){let t=[{value:e}],n=new WeakSet,r=new WeakSet;for(;t.length;){let{value:e,done:i}=t.pop();if(!$.isPlainObject(e)&&!$.isArray(e))continue;if(i){n.delete(e);continue}if(n.has(e))throw new T5(`Circular reference detected in params`,T5.ERR_BAD_OPTION_VALUE);if(r.has(e))continue;r.add(e),n.add(e),t.push({value:e,done:!0});let a=Object.keys(e);Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor&&Object.getOwnPropertySymbols(e).forEach(t=>{let n=Object.getOwnPropertyDescriptor(e,t);n&&n.enumerable&&a.push(t)}),a.forEach(n=>{if(n===`__proto__`||n===`constructor`||n===`prototype`){let r=Object.getOwnPropertyDescriptor(e,n);r&&$.hasOwnProp(r,`value`)&&t.push({value:r.value})}else t.push({value:e[n]})})}}var u7=e=>e instanceof x5?{...e}:e,d7=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>{let n=Object.getOwnPropertyDescriptor(e,t);return n&&n.enumerable})):Object.keys(e);function jqe(e,t){let n=[],r=new WeakMap,i={};function a(e,t){if(!$.isPlainObject(t))return $.isArray(t)?t.slice():t;let a=$.isPlainObject(e)?e:i,o=r.get(t);if(o||(o=new WeakMap,r.set(t,o)),o.has(a))return o.get(a);let s={};return o.set(a,s),n.push({base:a,source:t,result:s}),s}let o=$.isUndefined(t)?a(void 0,e):a(e,t);for(;n.length;){let{base:e,source:t,result:r}=n.pop(),i=new Set(d7(e)),o=new Set(d7(t));new Set([...i,...o]).forEach(n=>{if(n===`__proto__`||n===`constructor`||n===`prototype`)return;let s=o.has(n),c=s?t[n]:void 0,l=(!s||$.isPlainObject(c))&&i.has(n)?e[n]:void 0;r[n]=s?a(l,c):a(void 0,l)})}return Aqe(o),o}function f7(e,t,n,r){return $.isPlainObject(e)&&$.isPlainObject(t)?$.merge.call({caseless:r},e,t):$.isPlainObject(t)?$.merge({},t):$.isArray(t)?t.slice():t}function p7(e,t,n,r){if(!$.isUndefined(t))return f7(e,t,n,r);if(!$.isUndefined(e))return f7(void 0,e,n,r)}function m7(e,t){if(!$.isUndefined(t))return f7(void 0,t)}function h7(e,t){if(!$.isUndefined(t))return f7(void 0,t);if(!$.isUndefined(e))return f7(void 0,e)}function Mqe(e,t,n){let r=$.hasOwnProp(t,`transitional`)?t.transitional:void 0;if(!$.isUndefined(r)){if($.isPlainObject(r)){if($.hasOwnProp(r,n))return r[n]}else return}let i=$.hasOwnProp(e,`transitional`)?e.transitional:void 0;if($.isPlainObject(i)&&$.hasOwnProp(i,n))return i[n]}function g7(e,t,n,r,i){if($.hasOwnProp(i,n))return f7(e,t);if($.hasOwnProp(r,n))return f7(void 0,e)}function Nqe(e,t,n){return p7(u7(e),u7(t),n,!0)}var Pqe=Object.freeze({__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0}),_7={url:m7,method:m7,data:m7,baseURL:h7,transformRequest:h7,transformResponse:h7,params:jqe,paramsSerializer:h7,timeout:h7,timeoutErrorMessage:h7,withCredentials:h7,withXSRFToken:h7,adapter:h7,responseType:h7,xsrfCookieName:h7,xsrfHeaderName:h7,onUploadProgress:h7,onDownloadProgress:h7,decompress:h7,maxContentLength:h7,maxBodyLength:h7,beforeRedirect:h7,transport:h7,httpAgent:h7,httpsAgent:h7,cancelToken:h7,socketPath:h7,allowedSocketPaths:h7,responseEncoding:h7,validateStatus:g7,headers:Nqe};function v7(e,t){e||={},t||={};let n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",Pqe);let r=d7({...e,...t});for(let i=0,a=r.length;i<a;i++){let a=r[i];if(a===`__proto__`||a===`constructor`||a===`prototype`)continue;let o=$.hasOwnProp(_7,a)?_7[a]:p7,s=$.hasOwnProp(e,a)?e[a]:void 0,c=$.hasOwnProp(t,a)?t[a]:void 0,l=o===g7?o(s,c,a,e,t):o(s,c,a);$.isUndefined(l)&&o!==g7||(n[a]=l)}return $.hasOwnProp(t,`validateStatus`)&&$.isUndefined(t.validateStatus)&&Mqe(e,t,`validateStatusUndefinedResolves`)===!1&&($.hasOwnProp(e,`validateStatus`)?n.validateStatus=f7(void 0,e.validateStatus):delete n.validateStatus),n}var Fqe=[`content-type`,`content-length`];function Iqe(e,t,n){n===`content-only`?Object.entries(t||{}).forEach(([t,n])=>{Fqe.includes(t.toLowerCase())&&e.set(t,n)}):e.set(t)}var y7=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),Lqe=e=>i7.read(e);function b7(e,t=Lqe){let n=v7({},e),r=e=>$.hasOwnProp(n,e)?n[e]:void 0,i=r(`data`),a=r(`withXSRFToken`),o=r(`xsrfHeaderName`),s=r(`xsrfCookieName`),c=r(`headers`),l=r(`auth`),u=r(`baseURL`),d=r(`allowAbsoluteUrls`),f=r(`url`);if(n.headers=c=x5.from(c),n.url=N5(l7(u,f,d,n),r(`params`),r(`paramsSerializer`)),l){let t=$.getSafeProp(l,`username`)||``,n=$.getSafeProp(l,`password`)||``,i=r(`transitional`),a=i&&$.hasOwnProp(i,`encodeBasicAuthUsername`)&&i.encodeBasicAuthUsername===!0;try{c.set(`Authorization`,`Basic `+btoa((a?y7(t):t)+`:`+(n?y7(n):``)))}catch(t){throw T5.from(t,T5.ERR_BAD_OPTION_VALUE,e)}}if($.isFormData(i)){let e=$.getSafeProp(i,`getHeaders`);H5.hasStandardBrowserEnv||H5.hasStandardBrowserWebWorkerEnv||$.isReactNative(i)?c.setContentType(void 0):$.isFunction(e)&&Iqe(c,e.call(i),r(`formDataHeaderPolicy`))}if(H5.hasStandardBrowserEnv&&($.isFunction(a)&&(a=a(n)),a===!0||a==null&&wqe(n.url))){let e=o&&s&&t(s);e&&c.set(o,e)}return n}var Rqe=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r;try{let e=H5.hasStandardBrowserEnv&&typeof window<`u`&&window.cookieStore;r=e&&$.isFunction(e.get)}catch{}let i,a=b7(e,r?e=>(i=e,null):void 0),o=a.data,s=x5.from(a.headers).normalize(),{responseType:c,onUploadProgress:l,onDownloadProgress:u}=a,d,f,p,m,h,g,_;function v(){clearTimeout(f);try{h&&h()}catch(e){setTimeout(()=>{throw e})}try{g&&g()}catch(e){setTimeout(()=>{throw e})}y&&(m&&y.removeEventListener(`progress`,m),y.upload&&(p&&y.upload.removeEventListener(`progress`,p),h&&y.upload.removeEventListener(`loadend`,h))),a.cancelToken&&a.cancelToken.unsubscribe(d),a.signal&&a.signal.removeEventListener(`abort`,d)}let y=new XMLHttpRequest;y.open(a.method.toUpperCase(),a.url,!0),y.timeout=a.timeout;function b(r){if(!y)return;if(y.status===0&&(n7(t7(a.url))||n7(H5.origin))!==`file`&&!(y.responseURL&&y.responseURL.startsWith(`file:`))){n(new T5(`Request aborted`,T5.ECONNABORTED,e,y)),v(),y=null;return}try{r?_&&_(r):g&&g()}catch(e){setTimeout(()=>{throw e})}if(!y)return;let i=x5.from(`getAllResponseHeaders`in y&&y.getAllResponseHeaders());e7(function(e){t(e),v()},function(e){n(e),v()},{data:!c||c===`text`||c===`json`?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:i,config:e,request:y}),y=null}if(`onloadend`in y?y.onloadend=b:y.onreadystatechange=function(){y&&y.readyState===4&&(y.status!==0||y.responseURL&&y.responseURL.startsWith(`file:`))&&setTimeout(b)},y.onabort=function(){y&&=(n(new T5(`Request aborted`,T5.ECONNABORTED,e,y)),v(),null)},y.onerror=function(t){let r=new T5(t&&t.message?t.message:`Network Error`,T5.ERR_NETWORK,e,y);r.event=t||null,n(r),v(),y=null},y.ontimeout=function(){if(!y)return;let t=a.timeout?`timeout of `+a.timeout+`ms exceeded`:`timeout exceeded`,r=a.transitional||z5;a.timeoutErrorMessage&&(t=a.timeoutErrorMessage),n(new T5(t,r.clarifyTimeoutError?T5.ETIMEDOUT:T5.ECONNABORTED,e,y)),v(),y=null},o===void 0&&s.setContentType(null),$.isUndefined(a.withCredentials)||(y.withCredentials=!!a.withCredentials),c&&c!==`json`&&(y.responseType=a.responseType),u&&([m,g,_]=a7(u,!0),y.addEventListener(`progress`,m)),l&&y.upload&&([p,h]=a7(l),y.upload.addEventListener(`progress`,p),y.upload.addEventListener(`loadend`,h)),a.cancelToken||a.signal){if(d=t=>{if(!y)return;n(!t||t.type?new $5(null,e,y):t);let r=y;v(),y=null,r.abort()},a.cancelToken&&a.cancelToken.subscribe(d),!y)return;a.signal&&(a.signal.aborted?d():a.signal.addEventListener(`abort`,d))}if(!y)return;let x=n7(a.url);if(x&&!H5.protocols.includes(x)){n(new T5(`Unsupported protocol `+x+`:`,T5.ERR_BAD_REQUEST,e)),v();return}let S=()=>{y&&(`setRequestHeader`in y&&$.forEach(m5(s),function(e,t){y.setRequestHeader(t,e)}),y.send(o||null))};if(i){let t=typeof performance<`u`&&$.isFunction(performance.now)?()=>performance.now():Date.now,r=y.timeout>0?t()+Number(y.timeout):void 0,o=()=>{if(!y)return;let e=y;e.ontimeout(),e.abort()};if(r!==void 0){let e=()=>{let n=r-t();n>0?f=setTimeout(e,Math.min(n,2147483647)):o()};e()}i7.readAsync(i).then(e=>{if(y){if(r!==void 0&&t()>=r)o();else{if(e){let t=$.hasOwnProp(a,`xsrfHeaderName`)&&a.xsrfHeaderName;s.set(t,e)}S()}}}).catch(t=>{y&&=(n(T5.from(t,null,e,y)),v(),null)})}else S()})},zqe=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,r=!1,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof T5?t:new $5(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new T5(`timeout of ${t}ms exceeded`,T5.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{let t=$.getSafeProp(e,`unsubscribe`);$.isFunction(t)?t.call(e,i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>{r||(e.aborted?i.call(e):e.addEventListener(`abort`,i,{once:!0}))});let{signal:s}=n;return s.unsubscribe=()=>$.asap(o),s},Bqe=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},Vqe=async function*(e,t){for await(let n of Hqe(e))yield*Bqe(n,t)},Hqe=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},x7=(e,t,n,r)=>{let i=Vqe(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},S7=`\r
`,C7=e=>String(e).replace(/\r\n|\r|\n/g,S7),w7=e=>String(e).replace(/[\r\n"]/g,e=>e===`\r`?`%0D`:e===`
`?`%0A`:`%22`),T7=(e,t)=>{let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);t&&(i===13||i===10)?(i===13&&e.charCodeAt(r+1)===10&&r++,n+=2):i<128?n++:i<2048?n+=2:i>=55296&&i<=56319&&e.charCodeAt(r+1)>=56320&&e.charCodeAt(r+1)<=57343?(n+=4,r++):n+=3}return n},E7=class extends TypeError{constructor(e,t){super(e),this.name=`FormDataError`,this.reason=t}};function Uqe(e,t,n,r,i){if(!$.isFunction(t))throw new E7(`Blob is not supported`,`blob`);if(!$.isString(i)||!/^[A-Za-z0-9'()+_,./:=? -]{1,70}$/.test(i)||/ $/.test(i))throw new E7(`Invalid multipart boundary`,`boundary`);let a=`--`+i+`--\r
`,o=a.length,s=[],c=e=>{if(o+e>n)throw r()};c(0);for(let[t,n]of e){let e=$.isString(n),r=e?T7(n,!0):n.size;if(!Number.isFinite(r)||r<0)throw new E7(`Unsupported FormData part size`,`part`);c(r+T7(t,!0)+(!e&&n.name?T7(n.name,!1):0)+(!e&&n.type?T7(n.type,!1):0));let a=`--`+i+`\r
Content-Disposition: form-data; name="`+w7(C7(t))+`"`;e||(a+=`; filename="`+w7($.isString(n.name)?n.name:`blob`)+`"\r
Content-Type: `+String(n.type||`application/octet-stream`).replace(/[\r\n]/g,``)),a+=`\r
\r
`;let l=T7(a,!1)+r+2;c(l),o+=l,s.push({header:a,value:n,isString:e})}let l=[];for(let e of s)l.push(e.header,e.isString?C7(e.value):e.value,S7);return l.push(a),new t(l,{type:`multipart/form-data; boundary=`+i})}function Wqe(e,t,n,r,i){if(!$.isFunction(t))throw new T5(`Blob is not supported`,T5.ERR_NOT_SUPPORT);if(i===void 0){if($.isFunction(H5.generateString))i=`axios-`+H5.generateString(36,`0123456789abcdef`);else{let e=$.global.crypto;if(!e||!$.isFunction(e.getRandomValues))throw new T5(`Random byte generation is not supported`,T5.ERR_NOT_SUPPORT);let t=new Uint8Array(18);e.getRandomValues(t),i=`axios-`+Array.from(t,e=>(`0`+e.toString(16)).slice(-2)).join(``)}}try{return Uqe(e,t,n,r,i)}catch(e){if(e instanceof E7){let t=e.reason===`boundary`?T5.ERR_BAD_OPTION_VALUE:T5.ERR_BAD_REQUEST;throw new T5(e.message,t)}throw e}}var D7=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,O7=(e,t,n)=>t+2<n&&D7(e.charCodeAt(t+1))&&D7(e.charCodeAt(t+2)),k7=e=>e<=57?e-48:(e&223)-55,Gqe=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,Kqe=e=>e===9||e===10||e===12||e===13||e===32,qqe=e=>{let t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},Jqe=e=>{let t=e.length,n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},Yqe=e=>{let t=e.length,n=0,r=0,i=!1;for(let a=0;a<t;a++){let o=e.charCodeAt(a);o===37&&O7(e,a,t)&&(o=k7(e.charCodeAt(a+1))*16+k7(e.charCodeAt(a+2)),a+=2),Kqe(o)||(o===61?r++:!Gqe(o)||r>0?i=!0:n++)}return i||r>2||r>0&&(n+r)%4!=0||n%4==1?Jqe(e):qqe(n)},Xqe=(e,t,n)=>{if(!e||typeof e!=`string`||!/^data:/i.test(e))return 0;let r=e.indexOf(`,`);if(r<0)return 0;let i=e.slice(5,r),a=e.slice(r+1);if(n.test(i))return t(a);let o=0;for(let e=0,t=a.length;e<t;e++){let n=a.charCodeAt(e);if(n===37&&O7(a,e,t))o+=1,e+=2;else if(n<128)o+=1;else if(n<2048)o+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=a.charCodeAt(e+1);t>=56320&&t<=57343?(o+=4,e++):o+=3}else o+=3}return o};function Zqe(e){let t=typeof e==`string`?e.indexOf(`#`):-1;return Xqe(t===-1?e:e.slice(0,t),Yqe,/; *base64[\t\n\f\r ]*$/i)}var A7=`1.21.0`,j7=65536,M7={cache:`default`,redirect:`follow`,referrer:`about:client`,referrerPolicy:``,mode:`cors`,integrity:``,keepalive:!1,priority:`auto`,window:null},{isFunction:N7}=$,Qqe=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),P7=e=>{if(!$.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},F7=(e,...t)=>{try{return!!e(...t)}catch{return!1}},$qe=e=>{let t=e.indexOf(`://`),n=e;return t!==-1&&(n=n.slice(t+3)),n.includes(`@`)||n.includes(`:`)},eJe=e=>{let t=$.global!==void 0&&$.global!==null?$.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=$.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response,Blob:t.Blob},e);let i=$.hasOwnProp(e,`fetch`)?e.fetch:void 0,{Request:a,Response:o,Blob:s}=e,c=i?N7(i):typeof fetch==`function`,l=N7(a),u=N7(o);if(!c)return!1;let d=c&&N7(n),f=c&&(typeof r==`function`?(e=>t=>e.encode(t))(new r):async e=>new Uint8Array(await new a(e).arrayBuffer())),p=l&&d&&F7(()=>{let e=!1,t=new a(H5.origin,{body:new n,method:`POST`,get duplex(){return e=!0,`half`}}),r=t.headers.has(`Content-Type`);return t.body!=null&&t.body.cancel(),e&&!r}),m=u&&d&&F7(()=>$.isReadableStream(new o(``).body)),h=Object.assign(Object.create(null),M7);l&&!F7(()=>new a(H5.origin,h))&&(delete h.cache,F7(()=>new a(H5.origin,h))||(h.cache=M7.cache));let g={stream:m&&(e=>e.body)};c&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!g[e]&&(g[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new T5(`Response type '${e}' is not supported`,T5.ERR_NOT_SUPPORT,n)})});let _=async e=>{if(e==null)return 0;if($.isBlob(e))return e.size;if($.isArrayBufferView(e)||$.isArrayBuffer(e))return e.byteLength;if($.isURLSearchParams(e)&&(e+=``),$.isString(e))return(await f(e)).byteLength},v=async(e,t)=>$.toFiniteNumber(e.getContentLength())??_(t);return async e=>{let{url:t,method:n,data:c,signal:u,cancelToken:f,timeout:y,onDownloadProgress:b,onUploadProgress:x,responseType:S,headers:C,withCredentials:w=`same-origin`,fetchOptions:T,maxContentLength:E,maxBodyLength:D,maxRedirects:O}=b7(e),k=$.isNumber(E)&&E>-1,A=$.isNumber(D)&&D>-1,j=t=>$.hasOwnProp(e,t)?e[t]:void 0,ee=i||fetch;S=S?(S+``).toLowerCase():`text`;let te=zqe([u,f&&f.toAbortSignal()],y),M=null,ne=te&&te.unsubscribe&&(()=>{te.unsubscribe()}),re,ie=null,N=null,P=()=>new T5(`Request body larger than maxBodyLength limit`,T5.ERR_BAD_REQUEST,e,M);try{let i,u=j(`auth`);u&&(i={username:$.getSafeProp(u,`username`)||``,password:$.getSafeProp(u,`password`)||``});let f;if($qe(t)&&(f=new URL(t,H5.origin),!i&&(f.username||f.password)&&(i={username:P7(f.username),password:P7(f.password)}),(f.username||f.password)&&(f.username=``,f.password=``,t=f.href)),i&&(C.delete(`authorization`),C.set(`Authorization`,`Basic `+btoa(Qqe((i.username||``)+`:`+(i.password||``))))),k&&f&&f.protocol===`data:`&&Zqe(f.href)>E)throw new T5(`maxContentLength size of `+E+` exceeded`,T5.ERR_BAD_RESPONSE,e,M);let y=$.isSpecCompliantForm(c)&&x5.from(j(`headers`)).getContentType(),ae;if($.isString(y)&&/^multipart\/form-data(?:\s*;|$)/i.test(y.trim())){let e=x5.parseParameters(y);$.hasOwnProp(e,`boundary`)&&(ae=e.boundary)}if($.isSpecCompliantForm(c)&&n!==`get`&&n!==`head`&&(A||x&&p||ae!==void 0)&&(c=Wqe(c,s,A?D:1/0,P,ae),C.setContentType(ae===void 0?c.type:y),re=c.size),A&&n!==`get`&&n!==`head`){let e=await _(c);if(typeof e==`number`&&isFinite(e)&&(re=e,e>D))throw P()}let oe=A&&($.isReadableStream(c)||$.isStream(c)),se=(e,t,n)=>x7(e,j7,e=>{if(A&&e>D)throw ie=P();t&&t(e)},n);if(p&&n!==`get`&&n!==`head`&&(x||oe)){if(re??=await v(C,c),re!==0||oe){let e=new a(t,{method:`POST`,body:c,duplex:`half`}),n;if($.isFormData(c)&&(n=e.headers.get(`content-type`))&&C.setContentType(n),e.body){let[t,n]=x&&o7(re,a7(s7(x)))||[];c=se(e.body,t,n)}}}else if(oe&&!l&&d&&n!==`get`&&n!==`head`)c=se(c);else if(oe&&l&&!p&&n!==`get`&&n!==`head`)throw new T5(`Stream request bodies are not supported by the current fetch implementation`,T5.ERR_NOT_SUPPORT,e,M);$.isString(w)||(w=w?`include`:`omit`);let ce=l&&`credentials`in a.prototype;if($.isFormData(c)){let e=C.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&C.delete(`content-type`)}C.set(`User-Agent`,`axios/`+A7,!1);let le=T==null?T:Object.assign(Object.create(null),T);le&&(delete le.body,delete le.headers,delete le.method,delete le.signal,delete le.duplex,delete le.credentials);let ue=Object.assign(Object.create(null),le,{signal:te,method:n.toUpperCase(),headers:m5(C.normalize()),body:c,duplex:`half`,credentials:ce?w:void 0});l&&($.forEach(h,(e,t)=>{ue[t]===void 0&&(ue[t]=e)}),ue.signal===void 0&&(ue.signal=null),ue.body===void 0&&(ue.body=null)),O===0&&(ue.redirect=`manual`,le&&(le.redirect=`manual`)),M=l&&new a(t,ue);let de=await(l?ee(M,le):ee(t,ue)),fe=x5.from(de.headers);if(k){let t=$.toFiniteNumber(fe.getContentLength());if(t!=null&&t>E)throw new T5(`maxContentLength size of `+E+` exceeded`,T5.ERR_BAD_RESPONSE,e,M)}let pe=m&&(S===`stream`||S===`response`);if(m&&de.body&&(b||k||pe&&ne)){let t={};[`status`,`statusText`,`headers`].forEach(e=>{t[e]=de[e]});let n=$.toFiniteNumber(fe.getContentLength()),[r,i]=b&&o7(n,a7(s7(b),!0))||[],a=0;de=new o(x7(de.body,j7,t=>{if(k&&(a=t,a>E))throw N=new T5(`maxContentLength size of `+E+` exceeded`,T5.ERR_BAD_RESPONSE,e,M);r&&r(t)},()=>{i&&i(),ne&&ne()}),t)}S||=`text`;let me=await g[$.findKey(g,S)||`text`](de,e);if(k&&!m&&!pe){let t;if(me!=null&&(typeof me.byteLength==`number`?t=me.byteLength:typeof me.size==`number`?t=me.size:typeof me==`string`&&(t=typeof r==`function`?new r().encode(me).byteLength:me.length)),typeof t==`number`&&t>E)throw new T5(`maxContentLength size of `+E+` exceeded`,T5.ERR_BAD_RESPONSE,e,M)}return!pe&&ne&&ne(),await new Promise((t,n)=>{e7(t,n,{data:me,headers:x5.from(de.headers),status:de.status,statusText:de.statusText,config:e,request:M})})}catch(t){if(ne&&ne(),te&&te.aborted&&te.reason instanceof T5){let n=te.reason;throw n.config=e,M&&(n.request=M),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(ie)throw M&&!ie.request&&(ie.request=M),ie;if(N)throw N;if(t instanceof T5)throw M&&!t.request&&(t.request=M),t;if(t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)){let n=new T5(`Network Error`,T5.ERR_NETWORK,e,M,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw T5.from(t,t&&t.code,e,M,t&&t.response)}}},tJe=new Map,I7=e=>{let t=Object.create(null),n=e&&$.hasOwnProp(e,`env`)&&e.env;[`fetch`,`Request`,`Response`,`Blob`].forEach(e=>{n&&$.hasOwnProp(n,e)&&(t[e]=n[e])});let{fetch:r,Request:i,Response:a,Blob:o}=t,s=[i,a,r,o],c=s.length,l,u,d=tJe;for(;c--;)l=s[c],u=d.get(l),u===void 0&&d.set(l,u=c?new Map:eJe(t)),d=u;return u};I7();var L7={http:null,xhr:Rqe,fetch:{get:I7}};$.forEach(L7,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var R7=e=>`- ${e}`,nJe=e=>$.isFunction(e)||e===null||e===!1;function rJe(e,t){e=$.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!nJe(r)&&(i=L7[(n=String(r)).toLowerCase()],i===void 0))throw new T5(`Unknown adapter '${n}'`);if(i&&($.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new T5(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
`+e.map(R7).join(`
`):` `+R7(e[0]):`as no adapter specified`),T5.ERR_NOT_SUPPORT)}return i}var z7={getAdapter:rJe,adapters:L7};function B7(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $5(null,e)}function V7(e){return Math.max(0,Date.now()-e)}function H7(e){let t=$.toSafeFlatObject(e);B7(t),t.headers=x5.from($.getSafeProp(t,`headers`)),t.data=Z5.call(t,t.transformRequest),[`post`,`put`,`patch`].indexOf(t.method)!==-1&&t.headers.setContentType(`application/x-www-form-urlencoded`,!1);let n=z7.getAdapter(t.adapter||X5.adapter,t),r=Date.now();return n(t).then(function(e){B7(t),e.duration=V7(r),t.response=e;try{e.data=Z5.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=x5.from(e.headers),e},function(e){if(!Q5(e)&&(B7(t),e&&e.response)){e.response.duration=V7(r),t.response=e.response;try{e.response.data=Z5.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=x5.from(e.response.headers)}return Promise.reject(e)})}var U7={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{U7[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var W7={};U7.transitional=function(e,t,n){function r(e,t){return`[Axios v`+A7+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new T5(r(i,` has been removed`+(t?` in `+t:``)),T5.ERR_DEPRECATED);return t&&!W7[i]&&(W7[i]=!0),!e||e(n,i,a)}},U7.spelling=function(e){return(e,t)=>!0};function iJe(e,t,n){if(typeof e!=`object`||!e)throw new T5(`options must be an object`,T5.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-->0;){let a=r[i],o=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new T5(`option `+a+` must be `+n,T5.ERR_BAD_OPTION_VALUE)}else if(n!==!0)throw new T5(`Unknown option `+a,T5.ERR_BAD_OPTION)}}var G7={assertOptions:iJe,validators:U7},K7=G7.validators,q7=e=>{if(e==null||$.isPlainObject(e)||e instanceof x5)return!0;try{return $.isObject(e)&&$.getSafeProp(e,Symbol.toStringTag)===`AxiosHeaders`&&[`toJSON`,`set`,`get`,`has`,`delete`,`clear`,`normalize`,`concat`,`toString`,Symbol.iterator].every(t=>$.isFunction($.getSafeProp(e,t)))}catch{return!1}},J7=class{constructor(e){this.defaults=e||{},this.interceptors={request:new R5,response:new R5}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack,r=``;if(typeof n==`string`){let e=n.indexOf(`
`);r=e===-1?``:n.slice(e+1)}if(!e.stack)e.stack=r;else if(r){let t=r.indexOf(`
`),n=t===-1?-1:r.indexOf(`
`,t+1),i=n===-1?r:r.slice(n+1),a=String(e.stack),o=oqe(e,a),s=o===-1?a:a.slice(0,o),c=o===-1?``:a.slice(o);s.endsWith(i)||(e.stack=s+`
`+r+c)}}catch{}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=v7(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&G7.assertOptions(n,{silentJSONParsing:K7.transitional(K7.boolean),forcedJSONParsing:K7.transitional(K7.boolean),clarifyTimeoutError:K7.transitional(K7.boolean),legacyInterceptorReqResOrdering:K7.transitional(K7.boolean),advertiseZstdAcceptEncoding:K7.transitional(K7.boolean),validateStatusUndefinedResolves:K7.transitional(K7.boolean),encodeBasicAuthUsername:K7.transitional(K7.boolean)},!1),r!=null&&($.isFunction(r)?t.paramsSerializer={serialize:r}:G7.assertOptions(r,{encode:K7.function,serialize:K7.function},!0)),t.allowAbsoluteUrls!==void 0||($.hasOwnProp(this.defaults,`allowAbsoluteUrls`)&&this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),G7.assertOptions(t,{baseUrl:K7.spelling(`baseURL`),withXsrfToken:K7.spelling(`withXSRFToken`)},!0),t.method=($.getSafeProp(t,`method`)||$.getSafeProp(this.defaults,`method`)||`get`).toLowerCase();let a=$.getSafeProp(i,`common`),o=$.getSafeProp(i,t.method),s=i&&$.merge(q7(a)?a:void 0,q7(o)?o:void 0);i&&$.forEach(J5.concat(`common`),e=>{q7($.getSafeProp(i,e))&&delete i[e]}),t.headers=x5.concat(s,i);let c=[],l=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;l&&=e.synchronous;let n=t.transitional||z5;n&&n.legacyInterceptorReqResOrdering?c.unshift(e.fulfilled,e.rejected):c.push(e.fulfilled,e.rejected)});let u=[];this.interceptors.response.forEach(function(e){u.push(e.fulfilled,e.rejected)});let d,f=0,p;if(!l){let e=[H7.bind(this),void 0];for(e.unshift(...c),e.push(...u),p=e.length,d=Promise.resolve(t);f<p;)d=d.then(e[f++],e[f++]);return d}p=c.length;let m=t;for(;f<p;){let e=c[f++],t=c[f++];try{m=e?e(m):m}catch(e){if(!t){d=Promise.reject(e);break}try{let n=t.call(this,e);$.isThenable(n)&&(d=Promise.resolve(n).then(()=>H7.call(this,m)))}catch(e){d=Promise.reject(e)}break}}if(!d)try{d=H7.call(this,m)}catch(e){d=Promise.reject(e)}for(f=0,p=u.length;f<p;)d=d.then(u[f++],u[f++]);return d}getUri(e){return e=v7(this.defaults,e),N5(l7(e.baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};$.forEach([`delete`,`get`,`head`,`options`],function(e){J7.prototype[e]=async function(t,n){return this.request(v7(n||{},{method:e,url:t,data:n&&$.hasOwnProp(n,`data`)?n.data:void 0}))}}),$.forEach([`post`,`put`,`patch`,`query`],function(e){function t(t){return async function(n,r,i){return this.request(v7(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}J7.prototype[e]=t(),e!==`query`&&(J7.prototype[e+`Form`]=t(!0))});var aJe=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-->0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new $5(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function oJe(e){return function(t){return e.apply(null,t)}}function sJe(e){return $.isObject(e)&&e.isAxiosError===!0}var Y7={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Y7).forEach(([e,t])=>{Y7[t]===void 0&&(Y7[t]=e)});function X7(e){let t=new J7(e),n=z8(J7.prototype.request,t);return $.extend(n,J7.prototype,t,{allOwnKeys:!0}),$.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return X7(v7(e,t))},n}var Z7=X7(X5);Z7.Axios=J7,Z7.CanceledError=$5,Z7.CancelToken=aJe,Z7.isCancel=Q5,Z7.VERSION=A7,Z7.toFormData=k5,Z7.AxiosError=T5,Z7.Cancel=Z7.CanceledError,Z7.all=function(e){return Promise.all(e)},Z7.spread=oJe,Z7.isAxiosError=sJe,Z7.mergeConfig=v7,Z7.AxiosHeaders=x5,Z7.formToJSON=e=>q5($.isHTMLForm(e)?new FormData(e):e),Z7.getAdapter=z7.getAdapter,Z7.HttpStatusCode=Y7,Z7.default=Z7;function cJe(e={}){let t=Z7.create(e.axios),n=new KGe,r=e.mode??``,i=(e,t)=>(e.config&&n.releasePendingRequest(e.config),t?.forEach(t=>t(e,r)),Promise.reject(e));return t.interceptors.request.use(t=>{let i=t;return e.onRequest?.forEach(e=>e(i,r)),!i.signal&&i.cancelConfig?.cancel!==!1&&(n.removePendingRequest(i),n.addPendingRequest(i)),t},t=>i(t,e.onRequestError)),t.interceptors.response.use(t=>(e.onResponse?.forEach(e=>e(t,r)),n.releasePendingRequest(t.config),t.data),t=>i(t,e.onResponseError)),{request:t,canceler:n}}var lJe=(e,t)=>{let n=qn(Fn.token,`localStorage`);return e.url,{key:`X-TOKEN`,value:n}},Q7={implementRequestInterceptorArray:[(e,t)=>{qGe(e,[lJe(e,t),{key:`Demo-Header-Key`,value:`Demo Header Value`}])}],implementRequestInterceptorErrorArray:[]},$7={implementResponseInterceptorArray:[],implementResponseInterceptorErrorArray:[]},e9=cJe({axios:Xee,mode:`production`,onRequest:Q7.implementRequestInterceptorArray,onRequestError:Q7.implementRequestInterceptorErrorArray,onResponse:$7.implementResponseInterceptorArray,onResponseError:$7.implementResponseInterceptorErrorArray}),uJe=e9.canceler,dJe=e9.request,fJe=Y({name:`AppRequestCancelerProvider`,setup(e,{expose:t}){aye(()=>{uJe.cancelAllRequest()}),t()},render(){return J(`div`,{class:`app-style-provider`},null)}}),pJe=$r({default:()=>t9}),t9=Y({name:`LayoutContentWrapper`,setup(){let{globalMainLayoutLoad:e}=B9(),{getContentTransition:t}=L9();return()=>J(K,null,[J(fJe,null,null),e.value?J(lWe,{class:`content-wrapper`,transitionPropName:`${t.value}-transform`,transitionAppear:!1},null):null])}}),mJe=Y({name:`AppMenuTag`,setup(e,{expose:t}){let n=lt(`scrollRef`),r=lt(`tags`),{t:i}=Hb(`menuTag`),{getMenuKey:o,getMenuTagOptions:s}=F9(),{changeMenuModelValue:c}=I9(),{getRootPath:l}=Yb(),{maximize:u}=zo(),{reload:d}=Bo(),{close:f,closeAll:p,closeRight:m,closeLeft:h,closeOther:g,checkCloseLeft:_,checkCloseRight:v}=x9(),y=N(-1),b=V(()=>[{label:i(`closeCurrent`),key:`closeCurrentPage`,disabled:!w(s.value[y.value]),icon:()=>J(RJ,{name:`action/close`,size:`1em`},null)},{label:i(`maximize`),key:`maximizeLayoutContent`,icon:()=>J(RJ,{name:`action/fullscreen_fold`,size:`1em`},null)},{label:i(`reload`),key:`reloadCurrentPage`,icon:()=>J(RJ,{name:`action/reload`,size:`1em`},null)},{label:i(`newWindow`),key:`windowOpenTab`,icon:()=>J(RJ,{name:`action/shared`,size:`1em`},null)},{type:`divider`,key:`d1`},{label:i(`closeLeft`),key:`closeLeft`,disabled:!s.value[y.value]||!_(y.value),icon:()=>J(RJ,{name:`action/close_left`,size:`1em`},null)},{label:i(`closeRight`),key:`closeRight`,disabled:!s.value[y.value]||!v(y.value),icon:()=>J(RJ,{name:`action/close_right`,size:`1em`},null)},{type:`divider`,key:`d2`},{label:i(`closeOther`),key:`closeOther`,disabled:s.value.length<2,icon:()=>J(RJ,{name:`action/close_other`,size:`1em`},null)},{label:i(`closeAll`),key:`closeAll`,icon:()=>J(RJ,{name:`directional/resize_h`,size:`1em`},null),disabled:s.value.length<2}]),x={closeCurrentPage:()=>{T(y.value)},reloadCurrentPage:()=>{d()},closeAll:()=>{p()},closeRight:()=>{m(y.value)},closeLeft:()=>{h(y.value)},closeOther:()=>{g(y.value)},windowOpenTab:()=>{let e=s.value[y.value];if(!e?.fullPath)return;let t=e.fullPath.startsWith(`#`)?e.fullPath:`#${e.fullPath}`;window.open(t,`_blank`,`noopener`)},maximizeLayoutContent:()=>{let e=s.value[y.value];u(!0),e&&E(e)}},S=a({x:0,y:0,actionDropdownShow:!1}),C=B9().globalMainLayoutLoad,w=e=>!!e&&s.value.length>1&&e.fullPath!==l.value,T=(e,t=!1)=>{let n=s.value[e];if(!n||!w(n))return;let i=n.fullPath===o.value?Math.max(0,e-1):e;f(e),t&&he(()=>{let e=r.value?.querySelectorAll(`.menu-tag__tab`);e?.[Math.min(i,e.length-1)]?.focus()})},E=e=>{S.actionDropdownShow=!1,c(e.fullPath,e)},D=()=>r.value?.closest(`.n-scrollbar-container`);return Te([o,()=>s.value.length,r],()=>{let e=D(),t=r.value?.querySelector(`.menu-tag__item--active`);if(!t||!e)return;let i=t.getBoundingClientRect(),a=e.getBoundingClientRect(),o=i.left<a.left?i.left-a.left:Math.max(0,i.right-a.right);o&&n.value?.scrollTo({left:e.scrollLeft+o,behavior:`smooth`})},{flush:`post`}),t(),{getMenuTagOptions:s,canClose:w,closeCurrentMenuTag:T,getMenuKey:o,menuTagClick:E,moreOptions:b,scrollX:e=>{let t=D();t&&n.value?.scrollTo({left:Math.max(0,t.scrollLeft+(e===`left`?-200:200)),behavior:`smooth`})},scrollRef:n,tagsRef:r,actionDropdownSelect:e=>{S.actionDropdownShow=!1;let t=x[e];t?.()},actionState:S,menuTagContextMenu:(e,t)=>{t.preventDefault(),y.value=e,S.actionDropdownShow=!1,he(()=>{S.x=t.clientX,S.y=t.clientY,S.actionDropdownShow=!0})},setCurrentContextmenuIndex:()=>{y.value=s.value.findIndex(({fullPath:e})=>e===o.value)},maximize:u,reload:d,globalMainLayoutLoad:C}},render(){let{getMenuTagOptions:e,globalMainLayoutLoad:t}=this,{canClose:n,closeCurrentMenuTag:r,$t:i,menuTagClick:a,menuTagContextMenu:o,actionDropdownSelect:s,reload:c}=this;return J(Pg,null,{default:()=>[J(`div`,{class:`menu-tag`},[J(jp,{class:`menu-tag__dropdown`,options:this.moreOptions,x:this.actionState.x,y:this.actionState.y,keyboard:!1,show:this.actionState.actionDropdownShow,trigger:`manual`,placement:`bottom-start`,onSelect:s,onClickoutside:()=>{this.actionState.actionDropdownShow=!1}},null),J(Nr,{class:`menu-tag-space`,size:4,wrap:!1,align:`center`,justify:`space-between`,inline:!0},{default:()=>[J(wr,{quaternary:!0,class:`override-button__menu-tag`,"aria-label":i(`menuTag.scrollLeft`),onClick:()=>this.scrollX(`left`)},{icon:()=>J(RJ,{name:`directional/left_arrow`},null)}),J(r_,{xScrollable:!0,ref:`scrollRef`,class:`menu-tag__scroll`,themeOverrides:{width:`0px`,height:`0px`}},{default:()=>[J(`div`,{ref:`tags`,class:`menu-tag-wrapper`,role:`group`,"aria-label":i(`menuTag.pages`)},[e.map((e,t)=>{let s=e.fullPath===this.getMenuKey,c=e.meta.i18nKey?i(e.meta.i18nKey):e.breadcrumbLabel||e.fullPath;return J(cWe,{key:e.fullPath,label:c,active:s,select:()=>a(e),closeLabel:i(`menuTag.closeNamed`,{name:c}),close:n(e)?e=>r(t,e):void 0,contextMenu:e=>o(t,e)},null)})])]}),J(Nr,{align:`center`,inline:!0,wrap:!1,size:[0,0]},{default:()=>[J(wr,{quaternary:!0,class:`override-button__menu-tag`,"aria-label":i(`menuTag.scrollRight`),onClick:()=>this.scrollX(`right`)},{icon:()=>J(RJ,{name:`directional/right_arrow`},null)}),J(wr,I({quaternary:!0,class:`override-button__menu-tag`,"aria-label":i(`layout.maximize`)},{title:i(`layout.maximize`)},{onClick:()=>this.maximize(!0)}),{icon:()=>J(RJ,{name:`action/fullscreen_fold`},null)}),J(wr,{quaternary:!0,class:`override-button__menu-tag`,"aria-label":i(`menuTag.reload`),onClick:()=>{c()}},{icon:()=>J(RJ,{name:`action/reload`,customClassName:`${t?``:`menu-tag__right-setting--spinning`}`},null)}),J(zJ,{class:`menu-tag__dropdown`,options:this.moreOptions,trigger:`click`,onSelect:this.actionDropdownSelect.bind(this)},{default:()=>[J(wr,{quaternary:!0,class:`override-button__menu-tag`,"aria-label":i(`menuTag.actions`),onClick:this.setCurrentContextmenuIndex},{icon:()=>J(RJ,{name:`action/more`},null)})]})]})]})])]})}}),hJe=Y({name:`LayoutFeatureWrapper`,setup(){return{}},render(){return J(mJe,null,null)}}),gJe=Y({name:`LayoutFooterWrapper`,setup(){let{layout:{copyright:e}}={pkg:{dependencies:{"@faker-js/faker":`10.6.0`,"@logicflow/core":`2.2.5`,"@logicflow/extension":`2.3.1`,"@ray-template/utils":`workspace:*`,"@valibot/to-json-schema":`1.8.0`,"@vueuse/core":`15.0.0`,axios:`1.21.0`,clipboard:`2.0.11`,"crypto-js":`4.2.0`,dayjs:`1.11.23`,echarts:`6.1.0`,"html-to-image":`1.11.13`,interactjs:`1.10.28`,jsbarcode:`3.12.3`,"lodash-es":`4.18.1`,"naive-ui":`2.45.3`,pinia:`4.1.0`,"pinia-plugin-persistedstate":`4.7.1`,"print-js":`1.6.0`,valibot:`1.5.0`,vue:`3.5.44`,"vue-demi":`0.14.10`,"vue-hooks-plus":`2.4.3`,"vue-i18n":`11.4.17`,"vue-router":`5.4.0`,"vue3-next-qrcode":`4.1.1`,"@ray-template/ui":`workspace:*`,"@ray-template/composables":`workspace:*`,"@ray-template/directives":`workspace:*`,"@ray-template/icons":`workspace:*`,"@ray-template/routing":`workspace:*`,"@ray-template/http":`workspace:*`,"@ray-template/admin-shell":`workspace:*`},devDependencies:{"@commitlint/cli":`21.2.4`,"@commitlint/config-conventional":`21.2.4`,"@eslint/js":`10.0.1`,"@ianvs/prettier-plugin-sort-imports":`4.7.1`,"@intlify/unplugin-vue-i18n":`11.2.8`,"@spiriit/vite-plugin-svg-spritemap":`7.2.0`,"@types/crypto-js":`4.2.2`,"@types/jsbarcode":`3.11.4`,"@types/lodash-es":`4.17.12`,"@types/node":`26.6.6`,"@vitejs/plugin-vue":`6.0.10`,"@vitejs/plugin-vue-jsx":`5.1.6`,"@vitest/ui":`5.0.5`,"@vue/test-utils":`2.5.1`,autoprefixer:`10.6.2`,eslint:`10.14.0`,"eslint-config-prettier":`10.1.8`,"eslint-plugin-vue":`10.12.0`,globals:`17.14.0`,"happy-dom":`21.0.4`,husky:`9.1.7`,"lint-staged":`17.6.0`,postcss:`8.5.32`,"postcss-px-to-viewport-8-with-include":`1.2.2`,prettier:`3.9.10`,"rollup-plugin-gzip":`4.2.1`,sass:`1.107.1`,typescript:`6.0.3`,"typescript-eslint":`8.72.1`,unocss:`66.12.0`,"unplugin-auto-import":`21.1.0`,"unplugin-vue-components":`32.1.0`,vite:`8.3.5`,"vite-bundle-analyzer":`1.3.9`,"vite-plugin-cdn2":`1.1.0`,"vite-plugin-ejs":`2.0.0`,"vite-plugin-inspect":`12.1.0`,"vite-plugin-mock-dev-server":`2.7.1`,"vite-svg-loader":`5.1.3`,vitest:`5.0.5`,"vue-eslint-parser":`10.4.1`,"vue-tsc":`3.3.14`},name:`@ray-template/admin`,version:`6.0.0`},layout:{copyright:`Copyright © 2022-present Ray`},appPrimaryColor:{primaryColor:`#3b63d9`,primaryFadeColor:`rgba(59, 99, 217, 0.85)`}};return{copyright:e}},render(){return this.copyright?J(`div`,{class:`layout-footer-wrapper`},[this.copyright]):``}});function n9(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!wn(e)}var _Je=Y({name:`GlobalSearch`,props:{show:{type:Boolean,default:!1}},emits:[`update:show`],setup(e,{emit:t}){let{changeMenuModelValue:n}=I9(),{getMenuOptions:r}=F9(),i=V({get:()=>e.show,set:e=>{t(`update:show`,e),e||u()}}),a=N(``),o=N(0),s=V(()=>{let e=[],t=n=>{for(let r of n)r.show!==!1&&(r.children?.length?t(r.children):e.push(r))};return t(r.value),e}),c=V(()=>{let e=a.value.trim().toLocaleLowerCase();return e?s.value.filter(({breadcrumbLabel:t})=>t?.toLocaleLowerCase().includes(e)):[]});Te(c,()=>{o.value=0});let l=[{icon:[`↑`,`↓`],label:`切换`,plain:!0},{icon:[`↵`],label:`选择`,plain:!0},{icon:[`esc`],label:`关闭`,plain:!0}],u=()=>{a.value=``,o.value=0},{isTabletOrSmaller:d}=D9({observer:e=>{e&&(i.value=!1)}}),f=e=>{i.value||(e.ctrlKey||e.metaKey)&&e.key===`k`&&(e.preventDefault(),e.stopPropagation(),u(),i.value=!0)},p=async e=>{e.meta.windowOpen||(i.value=!1),await n(e.fullPath,e),e.meta.windowOpen||F8()},m=e=>{let{icon:t}=e;return typeof t==`string`&&t?J(RJ,{name:t,size:`24`},null):typeof t==`function`?J(t,null,null):J(RJ,{name:`action/search`,size:`24`},null)};return zi(window,`keydown`,f),{searchValue:a,searchOptions:c,searchElementIndex:o,modelShow:i,helperTipOptions:l,isTabletOrSmaller:d,SearchItem:({menuOption:e,active:t})=>J(Nr,I({align:`center`,class:[`content-item`,{"content-item--active":t}]},{onClick:()=>p(e)}),{default:()=>[J(`div`,{class:`content-item-icon`},[m(e.meta)]),J(`div`,{class:`content-item-label`},[e.breadcrumbLabel]),J(RJ,{name:`directional/enter`,size:`18`,customClassName:`content-item-icon__enter`},null)]}),registerChangeSearchElementIndex:e=>{let{key:t}=e;if(![`ArrowUp`,`ArrowDown`,`Enter`].includes(t))return;e.preventDefault(),e.stopPropagation();let n=c.value;if(!n.length)return;if(t===`Enter`){let e=n[o.value];e&&p(e);return}let r=t===`ArrowUp`?-1:1;o.value=(o.value+r+n.length)%n.length}}},render(){let{isTabletOrSmaller:e,searchOptions:t,searchElementIndex:n,SearchItem:r,registerChangeSearchElementIndex:i}=this;return e?J(`div`,{style:`display: none;`},null):J(uh,{show:this.modelShow,"onUpdate:show":e=>this.modelShow=e,transformOrigin:`center`,displayDirective:`if`},{default:()=>[J(`div`,{class:`global-search global-search--dark global-search--light`,tabindex:`-1`,onKeydown:i},[J(`div`,{class:`global-search__wrapper`},[J(Rd,{class:`global-search__card`,headerStyle:{padding:`12px 12px 0 12px`},contentStyle:{padding:`12px`},segmented:{action:`soft`}},{header:()=>J(Fr,{size:`large`,value:this.searchValue,"onUpdate:value":e=>this.searchValue=e,clearable:!0},{prefix:()=>J(RJ,{name:`action/search`,size:`24`},null)}),default:()=>{let e;return J(r_,null,{default:()=>[t.length?J(Nr,{vertical:!0,size:[0,6],class:`global-search__card-content`},n9(e=t.map((e,t)=>J(r,{menuOption:e,key:e.fullPath,active:t===n},null)))?e:{default:()=>[e]}):J(n_,{size:`large`,class:`global-search__empty`},{icon:()=>null,default:()=>J(Nr,{justify:`center`,class:`global-search__empty-content`},{default:()=>[J(I_,null,{default:()=>[bt(`没有搜索结果`)]})]})})]})},action:()=>{let e;return J(Nr,{justify:`flex-start`,align:`center`,size:[16,0]},n9(e=this.helperTipOptions.map(e=>J(Nr,{key:e.label,size:[4,0]},{default:()=>[e.icon.map(e=>J(Nr,{class:`item-icon`,align:`center`,justify:`center`},n9(e)?e:{default:()=>[e]})),J(Nr,{class:`item-label`,align:`center`},{default:()=>[e.label]})]})))?e:{default:()=>[e]})}})])])]})}}),vJe=Y({name:`GlobalSearchButton`,props:{onClick:{type:[Function,Array],default:null}},setup(e){return{getShortcutKeyAboutSystem:()=>tC()===`MacOS`?`⌘ + K`:`CTRL + K`,click:t=>{let{onClick:n}=e;n&&WS(n,t)}}},render(){let{getShortcutKeyAboutSystem:e,click:t,$t:n}=this;return J(wr,{bordered:!1,onClick:t.bind(this),round:!0,tertiary:!0,style:`margin-right: 16px`},{icon:()=>J(RJ,{name:`action/search`},null),default:()=>J(Nr,{align:`center`},{default:()=>[n(`headerTooltip.Search`),J(`div`,{class:`global-search-btn__label`},[e()])]})})}});function yJe(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!wn(e)}var bJe=Y({name:`SiderBarBreadcrumb`,setup(){let{changeMenuModelValue:e}=I9(),{getBreadcrumbOptions:t}=F9(),{isTabletOrSmaller:n}=D9();return{getBreadcrumbOptions:t,dropdownSelect:(t,n)=>{e(t,n)},breadcrumbItemClick:t=>{if(!t.children?.length){let{meta:n={}}=t;n.sameLevel||e(t.fullPath,t)}},isTabletOrSmaller:n}},render(){let e,{isTabletOrSmaller:t,getBreadcrumbOptions:n}=this,{dropdownSelect:r,breadcrumbItemClick:i}=this;return t?J(`div`,{style:`display: none;`},null):J(moe,null,{default:()=>[J(tn,{tag:`li`,name:`breadcrumb`,appear:!0},yJe(e=n.map(e=>J(goe,{key:e.fullPath,onClick:i.bind(this,e)},{default:()=>[J(jp,{labelField:`breadcrumbLabel`,keyField:`fullPath`,options:e.children&&e.children?.length>1?e.children:[],onSelect:r.bind(this)},{default:()=>J(`span`,null,[e.label&&typeof e.label==`function`?e.label():e.breadcrumbLabel])})]})))?e:{default:()=>[e]})]})}}),r9={themeStyle:Qn,layoutConfig:{mode:`side`,contentWidth:`fluid`,contentMaxWidth:1200,contentPadding:16,fixedHeader:!0,fixedFooter:!0},contentTransition:`scale`,watermarkSwitch:!1,keepAliveConfig:{maxKeepAliveLength:10,setupKeepAlive:!0,keepAliveExclude:[]},menuConfig:{collapsedWidth:64,collapsedMode:`width`,collapsedIconSize:22,collapsedIndent:24,accordion:!1,menuSiderBarLogo:!0,iconSize:20,menuWidth:272,inverted:!1,nativeScrollbar:!1},menuTagSwitch:!0,breadcrumbSwitch:!0,copyrightSwitch:!0,drawerPlacement:`right`,colorWeakness:!1,watermarkConfig:{content:`Trying be better~`,fontSize:16,lineHeight:16,width:384,height:384,xOffset:12,yOffset:60,rotate:-15,xGap:0,yGap:0,cross:!0},dynamicDocumentTitle:!0},i9=()=>r9;function a9(e){let t=r9.layoutConfig,n=e&&typeof e==`object`?e:{},r=(e,t,n,r)=>typeof e==`number`&&Number.isFinite(e)?Math.min(r,Math.max(n,e)):t;return{mode:R6.find(e=>e===n.mode)??t.mode,contentWidth:n.contentWidth===`fixed`||n.contentWidth===`fluid`?n.contentWidth:t.contentWidth,contentMaxWidth:r(n.contentMaxWidth,t.contentMaxWidth,640,2560),contentPadding:r(n.contentPadding,t.contentPadding,0,48),fixedHeader:typeof n.fixedHeader==`boolean`?n.fixedHeader:t.fixedHeader,fixedFooter:typeof n.fixedFooter==`boolean`?n.fixedFooter:t.fixedFooter}}var o9=Y({name:`LayoutSettings`,props:{showDescription:Boolean},setup(e){let{t}=Hb(`layout`),{getLayoutConfig:n}=L9(),{updateSettingState:r}=R9();return()=>J(iWe,{showDescription:e.showDescription,layout:n.value,defaults:i9().layoutConfig,translate:t,update:e=>r(`layoutConfig`,e)},null)}}),s9=gee(),c9=Rr(yee(),vee()),l9=Rr(c9,Ur(0)),xJe=Rr(Br({content:Yr(),cross:s9,fontSize:c9,lineHeight:c9,width:c9,height:c9,xOffset:c9,yOffset:c9,xGap:c9,yGap:c9,rotate:c9}),zr(({width:e,height:t,xGap:n,yGap:r})=>[e+n,t+r].every(e=>e>0&&e<=4096))),u9=Br({layoutConfig:Br({mode:Wr(R6),contentWidth:Wr([`fluid`,`fixed`]),contentMaxWidth:Rr(c9,Ur(640),Hr(2560)),contentPadding:Rr(c9,Ur(0),Hr(48)),fixedHeader:s9,fixedFooter:s9}),appTheme:Wr([`light`,`dark`,`auto`]),themeStyle:qr(Wr(Rn),Qn),primaryColor:qr(Rr(Yr(),See(64),Cee(/^(?:#[\da-f]+|(?:rgba?|hsla?)\([\d.,%+\s/-]+\))$/i),zr(e=>{let{style:t}=document.createElement(`span`);return t.color=e,t.color!==``}))),contentTransition:Wr(In.map(({value:e})=>e)),drawerPlacement:Wr([`left`,`right`]),breadcrumbSwitch:s9,menuTagSwitch:s9,copyrightSwitch:s9,colorWeakness:s9,menuConfig:Br({menuWidth:l9,collapsedWidth:l9,collapsedMode:Wr([`width`,`transform`]),collapsedIndent:l9,iconSize:l9,collapsedIconSize:l9,accordion:s9,menuSiderBarLogo:s9,inverted:s9,nativeScrollbar:s9}),watermarkSwitch:s9,watermarkConfig:xJe,dynamicDocumentTitle:s9,keepAliveConfig:Br({setupKeepAlive:s9,maxKeepAliveLength:Rr(l9,Vr()),keepAliveExclude:bee(Yr())})}),d9=Br({format:Kr(`ray-template-preferences`),version:Kr(1),preferences:u9});function SJe(e){return Gr(d9,{format:`ray-template-preferences`,version:1,preferences:{...Io(e,Object.keys(u9.entries)),primaryColor:e.primaryColorOverride.common?.primaryColor}})}function CJe(e){return Gr(d9,JSON.parse(e)).preferences}var f9=Y({name:`SettingsSection`,props:{title:{type:String,required:!0}},setup(e,{slots:t}){let n=ue();return()=>J(`section`,{class:`r-settings-section`,"aria-labelledby":n},[J(`h3`,{id:n},[e.title]),t.default?.()])}}),wJe=Y({name:`ThemeSegment`,setup(){let{t:e}=Hb(`preferences`),{getAppThemeStr:t}=L9(),{updateSettingState:n}=R9();return{options:V(()=>[{label:e(`theme.light`),key:`light`,icon:()=>J(RJ,{name:`system/light`,size:`16`,"aria-hidden":`true`},null)},{label:e(`theme.dark`),key:`dark`,icon:()=>J(RJ,{name:`system/dark`,size:`16`,"aria-hidden":`true`},null)},{label:e(`theme.auto`),key:`auto`,icon:()=>J(RJ,{name:`system/system_os`,size:`16`,"aria-hidden":`true`},null)}]),modelAppTheme:V({get:()=>t.value,set:e=>n(`appTheme`,e)})}},render(){let{options:e}=this;return J(iZ,{options:e,size:`small`,width:`block`,value:this.modelAppTheme,"onUpdate:value":e=>this.modelAppTheme=e},null)}});function TJe(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!wn(e)}var EJe=Y({name:`SegmentViewsAppearance`,setup(){let{t:e}=Hb(`preferences`),{changePrimaryColor:t,updateSettingState:n,toggleColorWeakness:r}=R9(),{getAppTheme:i,getThemeStyle:a,getCustomPrimaryColor:o,getDrawerPlacement:s,getContentTransition:c,getMenuTagSwitch:l,getBreadcrumbSwitch:u,getCopyrightSwitch:d,getColorWeakness:f}=L9(),p=R_(),m=ue(),h=N(!1),g=V(()=>{let e=i.value?`dark`:`light`,t=e===`dark`?B_:Vge;return Rn.map(n=>{let{primaryColor:r,bodyColor:i,cardColor:a,borderRadius:o}={...t.common,...Zn[n][e].common};return{value:n,style:{"--preset-accent":r,"--preset-background":i,"--preset-surface":a,"--preset-radius":o}}})}),_=[[`breadcrumbSwitch`,u],[`menuTagSwitch`,l],[`copyrightSwitch`,d],[`colorWeakness`,f]];return()=>{let i;return J(`div`,{class:`r-settings-stack`},[J(f9,{title:e(`appearance.theme`)},{default:()=>[J(wJe,null,null),J(`fieldset`,{class:`r-appearance-presets`},[J(`legend`,null,[e(`appearance.themeStyle`)]),J(`div`,{class:`r-appearance-presets__grid`},[g.value.map(({value:t,style:r})=>J(`label`,{class:`r-appearance-preset`,key:t},[J(`input`,{type:`radio`,name:m,value:t,checked:a.value===t,onChange:()=>n(`themeStyle`,t)},null),J(`span`,{class:`r-appearance-preset__preview`,style:r,"aria-hidden":`true`},[J(`span`,null,null)]),J(`span`,{class:`r-appearance-preset__name`},[e(`themeStyle.${t}`)]),t===`modern`&&J(`span`,{class:`r-appearance-preset__note`},[e(`appearance.defaultStyle`)])]))])]),J(`div`,{class:`r-appearance-color`},[J(`span`,null,[e(`appearance.primaryColor`)]),J(`div`,{class:`r-appearance-color__controls`},[J(ele,{showPreview:!0,show:h.value,onUpdateShow:e=>h.value=e,swatches:Vn.appThemeColors,value:p.value.primaryColor,onUpdateValue:e=>{e&&t(e)}},{trigger:({value:t,onClick:n,ref:r})=>J(`button`,{type:`button`,ref:r,class:`r-appearance-color__trigger`,"aria-label":`${e(`appearance.primaryColor`)}: ${t}`,"aria-expanded":h.value,onClick:n},[J(`span`,{"aria-hidden":`true`,style:{background:t??void 0}},null),t])}),J(wr,{size:`small`,quaternary:!0,disabled:!o.value,onClick:()=>t()},TJe(i=e(`appearance.resetColor`))?i:{default:()=>[i]})])])]}),J(f9,{title:e(`appearance.workspace`)},{default:()=>[J(Or,{labelPlacement:`top`,showFeedback:!1,class:`r-settings-fields`},{default:()=>[J(jr,{label:e(`appearance.transition`)},{default:()=>[J(Mf,{"aria-label":e(`appearance.transition`),value:c.value,options:In.map(({value:t})=>({value:t,label:e(`transition.${t}`)})),onUpdateValue:e=>n(`contentTransition`,e)},null)]}),J(jr,{label:e(`appearance.placement`)},{default:()=>[J(Mf,{"aria-label":e(`appearance.placement`),value:s.value,options:[`right`,`left`].map(t=>({value:t,label:e(`placement.${t}`)})),onUpdateValue:e=>n(`drawerPlacement`,e)},null)]})]})]}),J(f9,{title:e(`appearance.display`)},{default:()=>[J(`div`,{class:`r-settings-switches`},[_.map(([t,i])=>J(`label`,{class:`r-settings-switch`,key:t},[J(`span`,null,[e(`appearance.${t}`)]),J(c_,{value:i.value,"aria-label":e(`appearance.${t}`),onUpdateValue:e=>t===`colorWeakness`?r(e):n(t,e)},null)]))])]})])}}}),DJe=Y({name:`SegmentViewsCommon`,setup(){let{t:e}=Hb(`preferences`),{getKeepAliveConfig:t,getDynamicDocumentTitle:n}=L9(),{updateSettingState:r}=R9();return()=>J(`div`,{class:`r-settings-stack`},[J(f9,{title:e(`section.general`)},{default:()=>[J(`div`,{class:`r-settings-switches`},[J(`label`,{class:`r-settings-switch`},[J(`span`,null,[e(`general.title`)]),J(c_,{value:n.value,"aria-label":e(`general.title`),onUpdateValue:e=>r(`dynamicDocumentTitle`,e)},null)])])]}),J(f9,{title:e(`general.cache`)},{default:()=>[J(`div`,{class:`r-settings-switches`},[J(`label`,{class:`r-settings-switch`},[J(`span`,null,[e(`general.enableCache`)]),J(c_,{value:t.value.setupKeepAlive,"aria-label":e(`general.enableCache`),onUpdateValue:e=>r(`keepAliveConfig`,{setupKeepAlive:e})},null)])]),J(Or,{labelPlacement:`top`,showFeedback:!1,class:`r-settings-fields`},{default:()=>[J(jr,{label:e(`general.cacheLimit`)},{default:()=>[J(Mr,{value:t.value.maxKeepAliveLength,disabled:!t.value.setupKeepAlive,inputProps:{"aria-label":e(`general.cacheLimit`)},min:0,precision:0,showButton:!1,onUpdateValue:e=>{e!==null&&r(`keepAliveConfig`,{maxKeepAliveLength:e})}},null)]}),J(jr,{label:e(`general.cacheExcluded`),class:`r-settings-fields__wide`},{default:()=>[J(Hh,{value:t.value.keepAliveExclude,onUpdateValue:e=>r(`keepAliveConfig`,{keepAliveExclude:e})},null)]})]})]})])}});function p9(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!wn(e)}var OJe=[`menuWidth`,`collapsedWidth`,`collapsedIndent`,`iconSize`,`collapsedIconSize`],kJe=[`inverted`,`menuSiderBarLogo`,`accordion`,`nativeScrollbar`],AJe=Y({name:`SegmentViewsCustomMenu`,setup(){let{t:e}=Hb(`preferences`),{getMenuConfig:t}=L9(),{updateSettingState:n}=R9(),{setupAppMenu:r}=I9();return()=>{let i,a;return J(`div`,{class:`r-settings-stack`},[J(f9,{title:e(`menu.size`)},{default:()=>[J(Or,{labelPlacement:`top`,showFeedback:!1,class:`r-settings-fields`},p9(i=OJe.map(r=>J(jr,{label:e(`menu.${r}`),key:r},{default:()=>[J(Mr,{value:t.value[r],min:0,precision:0,inputProps:{"aria-label":e(`menu.${r}`)},onUpdateValue:e=>{e!==null&&n(`menuConfig`,{[r]:e})}},null)]})))?i:{default:()=>[i]}),J(wr,{secondary:!0,type:`primary`,onClick:r},p9(a=e(`menu.refresh`))?a:{default:()=>[a]})]}),J(f9,{title:e(`menu.behavior`)},{default:()=>[J(`div`,{class:`r-settings-switches`},[kJe.map(r=>J(`label`,{key:r,class:`r-settings-switch`},[J(`span`,null,[e(`menu.${r}`)]),J(c_,{value:t.value[r],"aria-label":e(`menu.${r}`),onUpdateValue:e=>n(`menuConfig`,{[r]:e})},null)]))])]})])}}}),jJe=[`fontSize`,`lineHeight`,`width`,`height`,`xOffset`,`yOffset`,`xGap`,`yGap`,`rotate`],MJe=Y({name:`SegmentViewsWatermark`,setup(){let{t:e}=Hb(`preferences`),{getWatermarkSwitch:t,getWatermarkConfig:n}=L9(),{updateSettingState:r}=R9();return()=>J(`div`,{class:`r-settings-stack`},[J(f9,{title:e(`section.watermark`)},{default:()=>[J(`div`,{class:`r-settings-switches`},[J(`label`,{class:`r-settings-switch`},[J(`span`,null,[e(`watermark.enabled`)]),J(c_,{value:t.value,"aria-label":e(`watermark.enabled`),onUpdateValue:e=>r(`watermarkSwitch`,e)},null)]),J(`label`,{class:`r-settings-switch`},[J(`span`,null,[e(`watermark.cross`)]),J(c_,{value:n.value.cross,"aria-label":e(`watermark.cross`),onUpdateValue:e=>r(`watermarkConfig`,{cross:e})},null)])])]}),J(f9,{title:e(`watermark.style`)},{default:()=>[J(Or,{labelPlacement:`top`,showFeedback:!1,class:`r-settings-fields`},{default:()=>[J(jr,{label:e(`watermark.content`),class:`r-settings-fields__wide`},{default:()=>[J(Fr,{value:n.value.content,inputProps:{"aria-label":e(`watermark.content`)},onUpdateValue:e=>r(`watermarkConfig`,{content:e})},null)]}),jJe.map(t=>J(jr,{label:e(`watermark.${t}`),key:t},{default:()=>[J(Mr,{value:n.value[t],precision:0,showButton:!1,inputProps:{"aria-label":e(`watermark.${t}`)},onUpdateValue:e=>{e!==null&&r(`watermarkConfig`,{[t]:e})}},null)]}))]})]})])}});function m9(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Object]`&&!wn(e)}var NJe=[{key:`layout`,icon:`navigation/layout`,view:o9},{key:`appearance`,icon:`navigation/appearance`,view:EJe},{key:`menu`,icon:`navigation/menu`,view:AJe},{key:`watermark`,icon:`system/watermark`,view:MJe},{key:`general`,icon:`action/setting`,view:DJe}],PJe=Y({name:`SettingDrawer`,props:Ph,setup(e){let{t}=Hb(`preferences`),{create:n}=YY(),{updateSettingState:r,changePrimaryColor:i,exportPreferences:a,importPreferences:o}=R9(),{setupAppMenu:s}=I9(),c=lt(`preferenceFile`),l=N(!1),u=e=>window.$message.error(()=>J(`span`,{role:`alert`},[t(e)])),d=async()=>{try{let e=new Blob([JSON.stringify(a(),null,2)+`
`],{type:`application/json`});if(e.size>262144){u(`config.fileLimit`);return}await XS(e,`ray-template-preferences.json`)}catch{u(`config.exportError`)}},f=async e=>{let n=e.currentTarget,r=n.files?.[0];if(n.value=``,r&&!l.value){if(r.size>262144)u(`config.fileLimit`);else{l.value=!0;try{o(await r.text()),s(),window.$message.success(()=>J(`span`,{role:`status`},[t(`config.imported`)]))}catch{u(`config.importError`)}finally{l.value=!1}}}},p=()=>n({preset:`dialog`,title:t(`reset`),type:`warning`,content:t(`resetDescription`),positiveText:t(`reset`),negativeText:t(`cancel`),dialogWidth:`min(420px, calc(100vw - 32px))`,onPositiveClick:()=>{yo(Va(i9()),(e,t)=>{r(t,e)}),i(),s()}});return()=>J(Fh,I(e,{width:e.width??`min(580px, 100vw)`,class:`r-settings-drawer`}),{default:()=>[J(zpe,{title:t(`title`),closable:!0,headerClass:`r-settings-drawer__header`,bodyContentClass:`r-settings-drawer__body`,footerClass:`r-settings-drawer__footer`,nativeScrollbar:e.nativeScrollbar},{header:()=>J(`div`,{class:`r-settings-heading`},[J(`span`,{class:`r-settings-heading__icon`},[J(RJ,{name:`action/adjustment`,size:20,"aria-hidden":`true`},null)]),J(`div`,null,[J(`h2`,null,[t(`title`)]),J(`p`,null,[t(`subtitle`)])])]),default:()=>{let e;return J(g_,{type:`line`,defaultValue:`appearance`,class:`r-settings-tabs`,justifyContent:`space-between`},m9(e=NJe.map(({key:e,icon:n,view:r})=>J(d_,{key:e,name:e,tab:()=>J(`span`,{class:`r-settings-tabs__label`},[J(RJ,{name:n,size:16,"aria-hidden":`true`},null),t(`section.${e}`)])},{default:()=>[e===`layout`?J(f9,{title:t(`section.layout`)},{default:()=>[J(o9,null,null)]}):J(r,null,null)]})))?e:{default:()=>[e]})},footer:()=>{let e,n,r;return J(`div`,{class:`r-settings-drawer__actions`},[J(wr,{type:`warning`,secondary:!0,onClick:p},m9(e=t(`reset`))?e:{default:()=>[e]}),J(`div`,{class:`r-settings-drawer__file-actions`},[J(wr,{onClick:d},m9(n=t(`config.export`))?n:{default:()=>[n]}),J(wr,{type:`primary`,secondary:!0,loading:l.value,onClick:()=>c.value?.click()},m9(r=t(`config.import`))?r:{default:()=>[r]}),J(`input`,{ref:`preferenceFile`,type:`file`,accept:`.json,application/json`,hidden:!0,onChange:f},null)])])}})]})}}),FJe=Y({name:`TooltipIcon`,props:{...pp,iconName:{type:String,required:!0},customClassName:{type:String,default:null},tooltipText:{type:String,default:null}},emits:[`click`],setup(e,{emit:t}){let n=e=>{t(`click`,e)};return{iconClick:n,Icon:()=>J(RJ,{name:e.iconName,customClassName:`tooltip-text__icon ${e.customClassName}`,onClick:n.bind(this)},null)}},render(){let{Icon:e}=this;return this.tooltipText?J(mp,this.$props,{trigger:()=>J(e,null,null),default:()=>this.tooltipText}):J(e,null,null)}}),IJe=()=>[{key:`person`,label:`个人信息`},{key:`lockScreen`,label:`锁定屏幕`},{type:`divider`,key:`d1`},{key:`logout`,label:`退出登陆`}],LJe={logout:()=>{let{logout:e}=z9();window.$dialog.warning({title:`提示`,content:`您确定要退出登录吗`,positiveText:`确定`,negativeText:`不确定`,onPositiveClick:()=>{e()}})},lockScreen:()=>{let{updateSettingState:e}=R9();e(`lockScreenSwitch`,!0)}},RJe=e=>{let t=LJe[e];t?t():window.$message.info(`这个人很懒, 没做这个功能~`)},zJe=e=>{let{isTabletOrSmaller:t}=e;return t.value?[{name:`navigation/menu`,size:18,eventKey:`menu`}]:[]},BJe=e=>{let{isTabletOrSmaller:t,isFullscreen:n}=e,r=[{name:n.value?`action/fullscreen_fold`:`action/fullscreen`,size:18,eventKey:`fullscreen`},{name:`logo/github`,size:18,eventKey:`github`},{name:`action/setting`,size:18,eventKey:`setting`}],i=[...r],a=r.filter(e=>e.eventKey===`setting`);return t.value?a:i},VJe=Y({name:`AppSiderBar`,setup(){let{updateLocale:e,updateSettingState:t}=R9(),{t:n}=Hb(),[r,{toggleFullscreen:i,isEnabled:a}]=WX(document.getElementsByTagName(`html`)[0]),{getDrawerPlacement:o,getBreadcrumbSwitch:s}=L9(),c=N(!1),l=N(!1),{isTabletOrSmaller:u}=D9(),d=B9().globalDrawerValue,f=V(()=>zJe({isFullscreen:r,isTabletOrSmaller:u})),p=V(()=>BJe({isFullscreen:r,isTabletOrSmaller:u})),m={search:()=>{l.value=!0},setting:()=>{c.value=!0},github:()=>{window.open(`https://github.com/XiaoDaiGua-Ray/r-template`)},fullscreen:()=>{a||window.$message.warning(n(`globalMessage.isEnabledFullscreen`)),i()},lock:()=>{t(`lockScreenSwitch`,!0)},menu:()=>{V9().setRuntimeState(`globalDrawerValue`,!d.value)}};return{t:n,isFullscreen:r,leftIconOptions:f,rightTooltipIconOptions:p,toolIconClick:e=>{m[e]?.()},showSettings:c,updateLocale:e,getDrawerPlacement:o,getBreadcrumbSwitch:s,globalSearchShown:l,isRenderVNode:e=>u.value?null:e}},render(){let{rightTooltipIconOptions:e,leftIconOptions:t,getDrawerPlacement:n,getBreadcrumbSwitch:r}=this,{toolIconClick:i,updateLocale:a,isRenderVNode:o}=this;return J(Pg,{class:`layout-header`},{default:()=>[J(_Je,{show:this.globalSearchShown,"onUpdate:show":e=>this.globalSearchShown=e},null),J(Nr,{class:`layout-header__method`,align:`center`,justify:`space-between`,wrap:!1},{default:()=>[J(Nr,{align:`center`,wrap:!1},{default:()=>[t.map(e=>J(wr,{quaternary:!0,key:e.name,"aria-label":this.t(`layout.toggleMenu`),onClick:i.bind(this,e.eventKey??e.name)},{default:()=>[J(FJe,{iconName:e.name,tooltipText:T(e.tooltip)?e.tooltip.value:e.tooltip,customClassName:e.iconClass},null)]})),r?J(bJe,null,null):null]}),J(Nr,{justify:`end`,align:`center`,size:[0,0],wrap:!1},{default:()=>[o(J(vJe,{onClick:e=>{e.stopPropagation(),this.globalSearchShown=!0}},null)),e.map(e=>J(wr,{class:`override-button__layout`,quaternary:!0,size:`medium`,key:e.eventKey??e.name,"aria-label":this.t(e.eventKey===`setting`?`headerTooltip.Setting`:e.eventKey===`github`?`headerTooltip.Github`:this.isFullscreen?`headerTooltip.CancelFullScreen`:`headerTooltip.FullScreen`),onClick:i.bind(this,e.eventKey??e.name)},{default:()=>[J(RJ,{name:e.name},null)]})),J(jp,{options:Xn,onSelect:e=>a(String(e)),trigger:`click`},{default:()=>[J(wr,{quaternary:!0,"aria-label":this.t(`layout.language`),class:`override-button__layout`},{default:()=>[J(RJ,{name:`system/language`},null)]})]}),J(jp,{options:IJe(),onSelect:RJe.bind(this),trigger:`click`},{default:()=>[J(MS,{avatarSize:24,spaceSize:[8,0],class:`override-button__layout`},null)]})]})]}),J(PJe,{show:this.showSettings,"onUpdate:show":e=>this.showSettings=e,placement:n},null)]})}}),HJe=Y({name:`LayoutHeaderWrapper`,setup(){return{}},render(){return J(Nr,{size:[0,0]},{default:()=>[J(VJe,null,null)]})}}),UJe=Y({name:`ContentLoading`,setup(){let{t:e}=Hb(`layout`),{globalMainLayoutLoad:t,layoutContentSpinning:n}=B9(),r=N(!1),i=N(!1);return Te([t,n,r],([e,t,n],r,a)=>{if(!e)i.value=!0;else if(!t&&!n)i.value=!1;else if(!i.value){let e=setTimeout(()=>i.value=!0,120);a(()=>clearTimeout(e))}},{immediate:!0}),()=>J(`div`,{role:`status`,class:[`layout-content-loading`,{"layout-content-loading--visible":i.value}]},[i.value?J(`div`,{class:`layout-content-loading__indicator`},[J(a_,{size:`small`,"aria-hidden":`true`},null),J(`span`,null,[e(`loading`)])]):null])}}),h9=Y({name:`RLayout`,setup(e,{slots:t}){let{getMenuTagSwitch:n,getCopyrightSwitch:r,getLayoutConfig:i}=L9(),{getMenuOptions:a,getMenuKey:o}=F9(),{globalMainLayoutLoad:s,layoutContentSpinning:c,layoutContentMaximize:l,layoutContentMaximizeStyle:u}=B9(),{maximize:d}=zo(),{t:f}=Hb(`layout`),{isTabletOrSmaller:p}=D9(),{getLockAppScreen:m}=jS(),h=V(()=>p.value?`side`:i.value.mode),g=V(()=>yS(a.value,String(o.value))?.children?.filter(e=>e.show!==!1)??[]);return()=>{if(m())return J(HGe,null,null);let e=h.value===`mixed`||h.value===`split`;return J(nWe,{layout:i.value,mode:h.value,groupedSidebar:g.value.length>0,showTabs:n.value,showFooter:r.value,busy:!t.default&&(!s.value||c.value),maximized:l.value,maximizedStyle:u.value,contentRef:Hn,restore:()=>d(!1),restoreLabel:f(`restore`)},{header:t.header??(()=>J(K,null,[J(HJe,null,null),h.value===`top`||e?J(GGe,null,null):null])),sidebar:t.sidebar??(()=>J(WGe,{options:e?g.value:void 0,showLogo:!e,end:h.value===`right`,inert:l.value},null)),tabs:t.tabs??(()=>J(hJe,null,null)),footer:t.footer??(()=>J(gJe,null,null)),default:t.default??(()=>J(t9,null,null)),loading:t.default?void 0:()=>J(UJe,null,null)})}}}),WJe=[{path:`/tables`,redirect:`/tables/basic`},{path:`/table`,redirect:`/tables/basic`},{path:`/table-pro`,redirect:`/tables/remote`},{path:`/mock-demo`,redirect:`/tables/remote`},{path:`/table-auto-height`,redirect:`/tables/auto-height`}],GJe=[{path:`/`,name:`RLogin`,component:()=>Lr(()=>import(`./login-z3SA6K94.js`),__vite__mapDeps([79,1,2,5,6,7,8,9,11,45,25,80]))},{path:`/`,name:`RLayout`,component:h9}];function KJe(){let e=cbe(),t=new Set(e.flatMap(({path:e,alias:t})=>[e.toLowerCase(),...[t??[]].flat().map(e=>e.toLowerCase())]));return[...e,...WJe.filter(({path:e,redirect:n})=>!t.has(e)&&t.has(n)),{path:Kb,redirect:Eve},{path:Tve,name:`RNotFound`,component:()=>Lr(()=>import(`./Error404-DUaUhA8C.js`),__vite__mapDeps([81,1,2,11,7,82])),meta:{i18nKey:`menu.Error`,icon:`status/error`,hidden:!0,sameLevel:!0}}]}function g9(e,t){let n=e.resolve(t),r=n.matched.at(-1);return n.path===`/`||!r||r.path===`/:catchAll(.*)`||r.redirect||n.path!==`/dashboard`&&!qb(n.meta)?Gb:n.fullPath}var qJe=e=>{e.beforeEach(t=>{let n=qn(Fn.token,`localStorage`),r=t.path===`/`;if(n===null)return r?!0:{path:`/`,replace:!0};let i=typeof t.name==`string`&&Gn.includes(t.name);if(r||!i&&!qb(t.meta)){let{getRootPath:n}=Yb(),r=g9(e,n.value);return Bn(Fn.appMenuKey,r,`localStorage`),t.fullPath!==r&&{path:r,replace:!0}}return!0})},JJe=(e=!0)=>{let{router:t}=y9(),{push:n,replace:r}=t,{getRootPath:i}=Yb(),a=g9(t,i.value);return Bn(Fn.appMenuKey,a,`localStorage`),e?r(a):n(a)},YJe=e=>{let{meta:t}=e;t?.ignoreAutoResetScroll||Hn.value?.scrollTo({top:0,left:0,behavior:`instant`})},XJe=e=>{e.beforeEach(()=>{window.$loadingBar?.start()}),e.afterEach(()=>{window.$loadingBar?.finish()}),e.onError(()=>{window.$loadingBar?.error()})},ZJe=e=>{let{meta:t={}}=e,{hidden:n,sameLevel:r,env:i}=t,{MODE:a}=z6();return!(r||n||i&&typeof i==`string`&&i!==a||i&&Array.isArray(i)&&!i.includes(a))},QJe=e=>{let{setupRouterLoadingBar:t,setupRouterGuard:n}=iee;t&&XJe(e),n&&qJe(e)},$Je=e=>{if(!Array.isArray(e))return;let t=e=>{for(let n of e)if(!(n.meta.hidden||n.meta.sameLevel||`show`in n&&n.show===!1)){if((!n.children||n.children.length===0)&&!n.meta.windowOpen)return n;{let e=t(n.children||[]);if(e)return e}}};return t(e)},_9=Aye({history:dye(),routes:GJe,scrollBehavior:e=>{YJe(e)}}),v9;async function eYe(e){v9??=(async()=>{let e=await ube();if(e){let{toRuntimeRoutes:t}=await Lr(async()=>{let{toRuntimeRoutes:e}=await import(`./contract-Bd-rjgfA.js`);return{toRuntimeRoutes:e}},[]);TS(t(e))}for(let e of KJe())_9.addRoute(`RLayout`,e);QJe(_9)})(),await v9,e.use(_9)}var y9=()=>({router:_9}),b9=(e,t)=>{let{getMenuTagOptions:n}=F9(),r=n.value,i=typeof e==`number`?e:r.findIndex(t=>t.fullPath===(typeof e==`string`?e:e.fullPath));if(!(!Number.isInteger(i)||i<0||i>=r.length))return{option:r[i],index:i}};function x9(){let{getMenuTagOptions:e,getMenuKey:t}=F9(),{changeMenuModelValue:n,spliceMenTagOptions:r,setMenuTagOptions:i,resolveOption:a}=I9(),o=()=>e.value.findIndex(e=>e.fullPath===t.value);return{close:i=>{let a=b9(i,`close`);if(e.value.length!==1&&a){let{index:i,option:o}=a;if(r(i),o.fullPath===t.value){let t=e.value[Math.max(0,i-1)];t&&n(t.fullPath,t)}}},closeAll:()=>{let{getRootPath:e}=Yb(),{router:t}=y9(),r=t.resolve(e.value),o=r.matched.at(-1);if(!o||o.path===`/:catchAll(.*)`||o.redirect||!qb(r.meta))return;let s=a({...Io(o,Jb),fullPath:r.path});return i(s,!1),n(r.path,s,r.query)},closeRight:i=>{let a=b9(i,`closeRight`);if(a){let{option:i,index:s}=a,c=e.value.length-s,l=o();r(s+1,c),s<=l&&t.value!==i.fullPath&&n(i.fullPath,i)}},closeLeft:e=>{let i=b9(e,`closeLeft`);if(i){let{option:e,index:a}=i,s=o();r(0,a),s<=a&&t.value!==e.fullPath&&n(e.fullPath,e)}},closeOther:a=>{let o=b9(a,`closeOther`);if(o){let{option:a}=o;t.value===a.fullPath?i(a,!1):(r(0,e.value.length),n(a.fullPath,a))}},getCurrentTagIndex:o,checkCloseRight:t=>{let n=b9(t,`checkCloseRight`);if(n){let{index:t}=n;return!(t>=e.value.length-1)}return!1},checkCloseLeft:e=>{let t=b9(e,`checkCloseLeft`);return!!t&&t.index>0}}}function tYe(){return{navigationTo:(e,t)=>{let{router:n}=y9(),{isPush:r=!0,query:i}=t??{},a=e=>r?n.push(e):n.replace(e);if(typeof e==`number`){if(!Number.isInteger(e)||e<0)return;let{getMenuOptions:t}=F9();if(e>=t.value.length)return;let n=t.value[e],r=e=>{if(e.children&&e.children.length>0){let{children:[t]}=e;return r(t)}return a({path:e.fullPath,query:i})};return r(n)}if(typeof e!=`string`)return a({path:e.fullPath,query:i});let o=n.resolve(e);if(o.matched.length&&o.matched.at(-1)?.path!==`/:catchAll(.*)`)return a({path:o.path,hash:o.hash,query:{...o.query,...i}})}}}var S9=e=>{let{dynamicDocumentTitle:t}=O9();if(!t)return;let{breadcrumbLabel:n}=e;if(!n)return;let{sideBarLogo:r}=O9(),i=r?r.title:``;document.title=n+` - `+i},nYe=e=>{let{meta:{icon:t}}=e;if(!t)return;if(qS(t,`Object`))return()=>t;let n=vS(t);if(n)return()=>Dn(RJ,{name:n,size:`1em`})},C9=e=>{let{meta:{extra:t}}=e;if(!t)return;let{show:n}=t;if(n===!1)return;let{t:r}=Hb(),{label:i,icon:a,type:o,i18nLabel:s}=t,c={type:`primary`,size:`small`,round:!0,bordered:!1,strong:!0};return()=>Dn(Wc,{...c,type:o||`primary`},{default:()=>s?r(s):i,icon:a?()=>typeof a==`string`?Dn(RJ,{name:a}):a:void 0})},rYe=()=>{let{getRootPath:e}=Yb();return qn(Fn.appMenuKey,`sessionStorage`,{defaultValue:e.value})},iYe=()=>{let e=qn(Fn.appMenuTagOptions,`sessionStorage`);return Array.isArray(e)?e.filter(e=>typeof e?.fullPath==`string`):[]},w9=(e,t)=>{let{getMenuOptions:n}=F9(),r=typeof e==`string`?e:e?.fullPath;if(!r)return;let i=A9(n.value,r);i&&(i.meta.extra={...i.meta.extra,...t},i.extra=C9(i))};function aYe(){return{hidden:e=>{w9(e,{show:!1})},show:(e,t)=>{w9(e,{...t,show:!0})},update:(e,t)=>{w9(e,t)}}}var oYe=()=>(e,t)=>{let n=Hn.value;typeof e==`number`?n?.scrollTo(e,t??0):n?.scrollTo(e)};Qr(((e,t,n)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(I8()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_zh_cn=r(n.dayjs)})(n,(function(e){function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`zh-cn`,weekdays:`星期日_星期一_星期二_星期三_星期四_星期五_星期六`.split(`_`),weekdaysShort:`周日_周一_周二_周三_周四_周五_周六`.split(`_`),weekdaysMin:`日_一_二_三_四_五_六`.split(`_`),months:`一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月`.split(`_`),monthsShort:`1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月`.split(`_`),ordinal:function(e,t){return t===`W`?e+`周`:e+`日`},weekStart:1,yearStart:4,formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`YYYY/MM/DD`,LL:`YYYY年M月D日`,LLL:`YYYY年M月D日Ah点mm分`,LLLL:`YYYY年M月D日ddddAh点mm分`,l:`YYYY/M/D`,ll:`YYYY年M月D日`,lll:`YYYY年M月D日 HH:mm`,llll:`YYYY年M月D日dddd HH:mm`},relativeTime:{future:`%s内`,past:`%s前`,s:`几秒`,m:`1 分钟`,mm:`%d 分钟`,h:`1 小时`,hh:`%d 小时`,d:`1 天`,dd:`%d 天`,M:`1 个月`,MM:`%d 个月`,y:`1 年`,yy:`%d 年`},meridiem:function(e,t){var n=100*e+t;return n<600?`凌晨`:n<900?`早上`:n<1100?`上午`:n<1300?`中午`:n<1800?`下午`:`晚上`}};return n.default.locale(r,null,!0),r}))}))();var T9=`YYYY-MM-DD HH:mm:ss`,sYe=(e,t,n=!1)=>{let r=t,i=e=>n?(0,L8.default)(e):(0,L8.default)(e).locale(r);return{locale:i=>{r=e[i]??t,n&&L8.default.locale(r)},getStartAndEndOfDay:e=>{let{format:t=T9}=e??{},n=i(),r=n.startOf(`day`),a=n.endOf(`day`);return{today:n,startOfDay:r,endOfDay:a,formatToday:n.format(t),formatStartOfDay:r.format(t),formatEndOfDay:a.format(t)}},format:(e,t)=>{let{format:n=T9}=t??{};return i(e).format(n)},isDayjs:e=>L8.default.isDayjs(e),daysDiff:(e,t)=>{let n=i(e);return i(t).diff(n,`days`)},isDateInRange:(e,t)=>{let{start:n,end:r}=t,a=i(e);return a.isAfter(n)&&a.isBefore(r)}}},E9=()=>sYe(Wn,zn,!0);function D9(e){let{width:t,height:n}=$i(e),r=V(()=>t.value<=(e?.media??768));return e?.observer&&Te([r,t,n],([t,n,r])=>{e.observer?.(t,{width:n,height:r})},{immediate:!0}),{width:t,height:n,isTabletOrSmaller:r}}var O9=bi(`setting`,()=>{let{locale:e}=Hb(),{locale:t}=E9(),n=hte(),r=a({primaryColorOverride:{},_appTheme:!1,appTheme:`light`,localeLanguage:Jn(),lockScreenSwitch:!1,appRootRoute:{name:`Dashboard`,path:`/dashboard`},sideBarLogo:{icon:`logo/ray`,title:`Ray Admin`,url:`/dashboard`,jumpType:`station`},...Va(i9())}),i=n=>{e(n),t(n),Bn(Fn.localeLanguage,n,`localStorage`),r.localeLanguage=n},o=(e,t=.85)=>{if(!e){r.primaryColorOverride={};return}let n=VS(e,t)||e;r.primaryColorOverride={common:{primaryColor:e,primaryColorHover:n,primaryColorPressed:e,primaryColorSuppl:n}}},s=V(()=>{let e=r._appTheme?`dark`:`light`,t=Pn(r.themeStyle),n=t===`modern`?Vn.appNaiveUIThemeOverrides[e]:Zn[t][e];return{...n,common:{...n.common,...r.primaryColorOverride.common}}}),c=()=>{r._appTheme=r.appTheme===`auto`?n.value:r.appTheme===`dark`},l=(e,t,n)=>{e===`layoutConfig`?(r.layoutConfig=a9({...r.layoutConfig,...t}),n?.()):e===`themeStyle`?(r.themeStyle=Pn(t),n?.()):eC(r,e,t,n)},u=e=>{l(`colorWeakness`,e)},d=()=>SJe(r),f=e=>{let{primaryColor:t,...n}=CJe(e);Object.assign(r,n),o(t)};return Te(()=>r.appTheme===`auto`?n.value:r.appTheme,c,{flush:`sync`}),Te(()=>r.colorWeakness,e=>BS(document.documentElement,{filter:e?`invert(100%)`:``}),{immediate:!0}),Te(()=>r.dynamicDocumentTitle?void 0:r.sideBarLogo?.title||`Ray Template`,e=>{e&&(document.title=e)},{immediate:!0}),{...h(r),themeOverrides:s,syncAppTheme:c,updateLocale:i,changePrimaryColor:o,updateSettingState:l,toggleColorWeakness:u,exportPreferences:d,importPreferences:f}},{persist:{key:Fn.appPiniaSettingStore,omit:[`lockScreenSwitch`],storage:window.localStorage,serializer:{serialize:e=>JSON.stringify({...e,menuIconSizesUpdated:!0}),deserialize:e=>{let{menuIconSizesUpdated:t,...n}=JSON.parse(e),{menuConfig:r}=n;if(!t&&r?.iconSize===16&&r.collapsedIconSize===16){let e=i9().menuConfig;r.iconSize=e.iconSize,r.collapsedIconSize=e.collapsedIconSize}return n}},afterHydrate:({store:e})=>{e.layoutConfig=a9(e.layoutConfig),e.themeStyle=Pn(e.themeStyle),e.syncAppTheme();let t=e.primaryColorOverride?.common,{primaryColor:n,primaryFadeColor:r}=Vn.appPrimaryColor,i=t?.bodyColor&&t.primaryColor===n&&t.primaryColorHover===r,a=t?.primaryColor;e.changePrimaryColor(!i&&typeof a==`string`?a:void 0),typeof e.sideBarLogo?.icon==`string`&&(e.sideBarLogo.icon=vS(e.sideBarLogo.icon))}}}),k9=bi(`signing`,()=>{let{clearRoutes:e,replace:t}=dx(),n=a({signingCallback:{}}),r=e=>new Promise((t,r)=>{jo(e)?r({code:1,message:`登陆失败`,data:null}):(n.signingCallback={role:`admin`,name:e.name,avatar:`https://avatars.githubusercontent.com/u/51957438?v=4`},t({code:0,message:`登陆成功`,data:n.signingCallback}))}),i=n=>{let{closeAll:r}=x9(),{appPiniaMenuStore:i,appPiniaSigningStore:a,token:o,signing:s,appMenuKey:c}=Fn;window.$message.info(`账号退出中...`),Kn(`__all_sessionStorage__`,`sessionStorage`),Kn(a,`localStorage`),Kn(i,`localStorage`),Kn(o,`localStorage`),Kn(s,`localStorage`),Kn(c,`localStorage`),Kn(Fn.isAppLockScreen,`localStorage`),r(),n&&(e(),t(`/`),setTimeout(()=>{window.location.reload()},0))},o=()=>{i(!0)};return{...h(n),signing:r,logout:o,clearSigningCallback:i}},{persist:{key:Fn.appPiniaSigningStore,pick:[`signingCallback`],storage:window.localStorage}}),A9=(e,t)=>{for(let n of e){if($S(n.fullPath,t))return n;let e=n.children&&A9(n.children,t);if(e)return e}},j9=bi(`menu`,()=>{let{push:e,resolve:t}=dx(),n=fx(),{t:r}=Hb(),{setKeepAliveInclude:i}=uYe(),o=a({menuKey:rYe(),options:[],collapsed:!1,menuTagOptions:iYe(),breadcrumbOptions:[],currentMenuOption:null}),s=k9(),c=new Map,l=()=>Bn(Fn.appMenuTagOptions,o.menuTagOptions.map(({name:e,key:t,path:n,show:r,meta:i,breadcrumbLabel:a,fullPath:o,closeable:s})=>({name:e,key:t,path:n,show:r,meta:i,breadcrumbLabel:a,fullPath:o,closeable:s}))),u=(e,t,n)=>{eC(o,e,t,n)},d=e=>{let{meta:t}=e,{i18nKey:n,noLocalTitle:i}=t,a=()=>n?r(n):i??e.name??e.path,o={...e,key:e.fullPath,label:()=>Dn(yp,null,{default:a}),get breadcrumbLabel(){return String(a())},icon:nYe(e),extra:C9(e)};return Object.assign(o,{show:ZJe(o)})},f=e=>{let t=[],n=c.get(String(e));for(;n;)t.unshift(n.option),n=c.get(n.parentPath);o.breadcrumbOptions=t},p=(e,t=!0)=>{let n=Array.isArray(e)?[...e]:[e];t?o.menuTagOptions.push(...n):o.menuTagOptions=n,l()},m=e=>{i(e),S9(e),e.meta.sameLevel?o.breadcrumbOptions.some(({key:t})=>t===e.key)||o.breadcrumbOptions.push(e):(o.menuTagOptions.some(({fullPath:t})=>t===e.fullPath)||(o.menuTagOptions.push(e),l()),f(e.key),o.breadcrumbOptions.length||(o.breadcrumbOptions=[e]),o.currentMenuOption=e,o.menuKey!==e.key&&(o.menuKey=e.key,Bn(Fn.appMenuKey,e.key)))},g=(t,r,i)=>{if(r.meta.windowOpen){window.open(r.meta.windowOpen,`_blank`,`noopener,noreferrer`);return}let a=String(t);if(n.fullPath===a&&!i)m(r);else return e({path:a,query:i})},_=(e,t)=>{let n=t.at(-1);if(!n||n.path===`/`||n.redirect)return;let r=n.aliasOf?.path??n.path,i=c.get(r)?.option;return i&&!r.includes(`:`)?i:d({...Io(n,Jb),fullPath:e})},v=async()=>{let e=s.signingCallback.role??``;c.clear();let r=(t,n)=>{let i=[];for(let a of t){if(!qb(a.meta,e))continue;let t=pS(n,a.path),o=a.children?.length?r(a.children,t):void 0;if(o&&!o.length)continue;let s=d({...a,fullPath:t,children:o});c.set(t,{option:s,parentPath:n}),i.push(s)}return i};o.options=r(ES(),``),o.currentMenuOption=null,o.breadcrumbOptions=[];let i=o.menuTagOptions.flatMap(({fullPath:n})=>{if(typeof n!=`string`||!n.startsWith(`/`))return[];let r=t(n),i=r.matched.at(-1);if(!i||!qb(i.meta,e))return[];let a=_(r.path,r.matched);return a&&!a.meta.sameLevel&&!a.meta.windowOpen?[a]:[]});o.menuTagOptions=i,l();let a=_(n.path,n.matched);if(!a||a.meta.sameLevel){let e=c.get(String(o.menuKey))?.option,t=e&&!e.children&&e.show!==!1&&!e.meta.windowOpen?e:$Je(o.options);t&&m(t)}a&&m(a)},y=e=>o.collapsed=e,b=(e,t=1)=>{let n=o.menuTagOptions.splice(e,t);return l(),n};return Te(()=>s.signingCallback.role,v,{immediate:!0}),Te(()=>n.path,e=>{let t=_(e,n.matched);t&&m(t)}),Te(()=>o.currentMenuOption?.breadcrumbLabel,()=>{o.currentMenuOption&&S9(o.currentMenuOption)}),{...h(o),changeMenuModelValue:g,collapsedMenu:y,spliceMenTagOptions:b,setMenuTagOptions:p,resolveOption:d,updateMenuState:u,setupAppMenu:v}},{persist:{key:Fn.appPiniaMenuStore,storage:window.localStorage,pick:[`menuKey`,`collapsed`]}}),M9=bi(`keepAlive`,()=>{let e=a({keepAliveInclude:[]}),t=t=>{let{name:n,meta:{keepAlive:r}}=t,{maxKeepAliveLength:i}=O9().keepAliveConfig;if(!r||!n||i<=0)return;let a=e.keepAliveInclude;a.at(-1)===n&&a.length<=i||(e.keepAliveInclude=[...new Set(a.filter(e=>e!==n)),n].slice(-i))},n=()=>e.keepAliveInclude;return{...h(e),setKeepAliveInclude:t,getKeepAliveInclude:n}},{persist:{key:Fn.appPiniaKeepAliveStore,storage:window.sessionStorage,pick:[`keepAliveInclude`]}}),N9=bi(`runtime`,()=>{let e=a({globalSpinning:!1,globalDrawerValue:!1,globalMainLayoutLoad:!0,layoutContentMaximize:!1,layoutContentMaximizeVersion:0,layoutContentSpinning:!1,layoutContentMaximizeStyle:{zIndex:999}}),t,n=(t,n)=>{t===`layoutContentMaximize`&&e[t]!==n&&(e.layoutContentMaximizeVersion+=1),e[t]=n},r=(n=800)=>{clearTimeout(t),e.globalMainLayoutLoad=!1,t=setTimeout(()=>{e.globalMainLayoutLoad=!0,t=void 0},n)};return c(()=>clearTimeout(t)),{...h(e),setRuntimeState:n,reloadContent:r}}),P9=bi(`lock-screen`,()=>{let e=vte(Fn.isAppLockScreen,!1,ree(`localStorage`),{mergeDefaults:!0});return{locked:e,setLocked:t=>{e.value=t}}}),F9=()=>{let e=j9();return{getMenuOptions:V(()=>e.options),getBreadcrumbOptions:V(()=>e.breadcrumbOptions),getMenuKey:V(()=>e.menuKey),getMenuTagOptions:V(()=>e.menuTagOptions),getCurrentMenuOption:V(()=>e.currentMenuOption),getCollapsed:V(()=>e.collapsed)}},I9=()=>{let{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:n,setMenuTagOptions:r,resolveOption:i,updateMenuState:a,setupAppMenu:o}=j9();return{changeMenuModelValue:e,collapsedMenu:t,spliceMenTagOptions:n,setMenuTagOptions:r,resolveOption:i,updateMenuState:a,setupAppMenu:o}},L9=()=>{let e=O9(),t=V(()=>e.layoutConfig),n=V(()=>e.drawerPlacement),r=V(()=>e.themeOverrides),i=V(()=>e.primaryColorOverride.common?.primaryColor),a=V(()=>e.themeStyle),o=V(()=>e._appTheme),s=V(()=>e.appTheme);return{getLayoutConfig:t,getDrawerPlacement:n,getPrimaryColorOverride:r,getCustomPrimaryColor:i,getThemeStyle:a,getAppTheme:o,getMenuTagSwitch:V(()=>e.menuTagSwitch),getBreadcrumbSwitch:V(()=>e.breadcrumbSwitch),getLocaleLanguage:V(()=>e.localeLanguage),getLockScreenSwitch:V(()=>e.lockScreenSwitch),getCopyrightSwitch:V(()=>e.copyrightSwitch),getContentTransition:V(()=>e.contentTransition),getWatermarkSwitch:V(()=>e.watermarkSwitch),getWatermarkConfig:V(()=>e.watermarkConfig),getAppRootRoute:V(()=>e.appRootRoute),getSideBarLogo:V(()=>e.sideBarLogo),getKeepAliveConfig:V(()=>e.keepAliveConfig),getMenuConfig:V(()=>e.menuConfig),getAppThemeStr:s,getColorWeakness:V(()=>e.colorWeakness),getDynamicDocumentTitle:V(()=>e.dynamicDocumentTitle)}},R9=()=>{let{updateLocale:e,changePrimaryColor:t,updateSettingState:n,toggleColorWeakness:r,exportPreferences:i,importPreferences:a}=O9();return{updateLocale:e,changePrimaryColor:t,updateSettingState:n,toggleColorWeakness:r,exportPreferences:i,importPreferences:a}},cYe=()=>{let e=k9();return{getSigningCallback:V(()=>e.signingCallback)}},z9=()=>{let{signing:e,logout:t,clearSigningCallback:n}=k9();return{signing:e,logout:t,clearSigningCallback:n}},lYe=()=>{let e=M9();return{getKeepAliveInclude:V(()=>e.keepAliveInclude)}},uYe=()=>{let{setKeepAliveInclude:e,getKeepAliveInclude:t}=M9();return{setKeepAliveInclude:e,getKeepAliveInclude:t}},B9=()=>{let e=Wee(N9());return{globalSpinning:l(e.globalSpinning),globalDrawerValue:l(e.globalDrawerValue),globalMainLayoutLoad:l(e.globalMainLayoutLoad),layoutContentMaximize:l(e.layoutContentMaximize),layoutContentMaximizeVersion:l(e.layoutContentMaximizeVersion),layoutContentSpinning:l(e.layoutContentSpinning),layoutContentMaximizeStyle:l(e.layoutContentMaximizeStyle)}},V9=()=>{let{setRuntimeState:e,reloadContent:t}=N9();return{setRuntimeState:e,reloadContent:t}},dYe=()=>{let e=P9();return{getLocked:V(()=>e.locked)}},fYe=()=>{let{setLocked:e}=P9();return{setLocked:e}},pYe=e=>{let t=di();e.use(t),t.use(Yee),e.onUnmount(()=>Ree(t))},mYe=Y({name:`GlobalProvider`,setup(e,{expose:t}){let{getPrimaryColorOverride:n,getAppTheme:r,getLocaleLanguage:i}=L9(),a=V(()=>{let{locale:e,dateLocal:t}=Hge(i.value);return{theme:r.value?B_:null,themeOverrides:n.value,locale:e,dateLocale:t}}),{message:o,notification:s,dialog:l,loadingBar:u,unmount:d}=vpe([`message`,`dialog`,`notification`,`loadingBar`],{configProviderProps:a});return window.$dialog=l,window.$message=o,window.$loadingBar=u,window.$notification=s,c(d),t(),{configProviderProps:a}},render(){return J(bf,this.configProviderProps,{default:()=>[J(gh,null,{default:()=>[J(Sh,Nn,{default:()=>[J(dh,null,{default:()=>[J(Ch,null,{default:()=>[J(Ah,null,{default:()=>[J(Gme,null,null),this.$slots.default?.()]})]})]})]})]})]})}}),hYe=Y({name:`AppStyleProvider`,setup(){let{getAppTheme:e,getPrimaryColorOverride:t}=L9(),{height:n,width:r}=$i(),i=R_(),a=document.documentElement,{darkClassName:o,lightClassName:s,htmlHeight:c,htmlWidth:l}=eee;return ot(()=>{a.classList.toggle(o,e.value),a.classList.toggle(s,!e.value);let n=Ln(i.value,t.value);for(let[e,t]of Object.entries(n))a.style.setProperty(e,t)}),ot(()=>{a.style.setProperty(c,`${n.value}px`),a.style.setProperty(l,`${r.value}px`)}),()=>null}}),gYe=Y({name:`AppWatermarkProvider`,setup(){let{getWatermarkSwitch:e,getWatermarkConfig:t}=L9();return{getWatermarkSwitch:e,getWatermarkConfig:t}},render(){let{getWatermarkConfig:e,getWatermarkSwitch:t}=this;return t?J(Rge,I(e,{fullscreen:!0}),null):null}}),_Ye=()=>{let e=qn(Fn.appPiniaSettingStore,`localStorage`),t=Wn[e?.localeLanguage]||`zh-cn`;L8.default.locale(t)},vYe=Qr(((e,t,n)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.ClipboardJS=r():n.ClipboardJS=r()})(n,function(){return(function(){var e={686:(function(e,t,n){n.d(t,{default:function(){return O}});var r=n(279),i=n.n(r),a=n(370),o=n.n(a),s=n(817),c=n.n(s);function l(e){try{return document.execCommand(e)}catch{return!1}}var u=function(e){var t=c()(e);return l(`cut`),t};function d(e){var t=document.documentElement.getAttribute(`dir`)===`rtl`,n=document.createElement(`textarea`);n.style.fontSize=`12pt`,n.style.border=`0`,n.style.padding=`0`,n.style.margin=`0`,n.style.position=`absolute`,n.style[t?`right`:`left`]=`-9999px`;var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top=`${r}px`,n.setAttribute(`readonly`,``),n.value=e,n}var f=function(e,t){var n=d(e);t.container.appendChild(n);var r=c()(n);return l(`copy`),n.remove(),r},p=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},n=``;return typeof e==`string`?n=f(e,t):e instanceof HTMLInputElement&&![`text`,`search`,`url`,`tel`,`password`].includes(e?.type)?n=f(e.value,t):(n=c()(e),l(`copy`)),n};function m(e){"@babel/helpers - typeof";return m=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},m(e)}var h=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.action,n=t===void 0?`copy`:t,r=e.container,i=e.target,a=e.text;if(n!==`copy`&&n!==`cut`)throw Error(`Invalid "action" value, use either "copy" or "cut"`);if(i!==void 0){if(i&&m(i)===`object`&&i.nodeType===1){if(n===`copy`&&i.hasAttribute(`disabled`))throw Error(`Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute`);if(n===`cut`&&(i.hasAttribute(`readonly`)||i.hasAttribute(`disabled`)))throw Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw Error(`Invalid "target" value, use a valid Element`)}if(a)return p(a,{container:r});if(i)return n===`cut`?u(i):p(i,{container:r})};function g(e){"@babel/helpers - typeof";return g=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},g(e)}function _(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}function b(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}function x(e,t){return x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},x(e,t)}function S(e){var t=T();return function(){var n=E(e),r;if(t){var i=E(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return C(this,r)}}function C(e,t){return t&&(g(t)===`object`||typeof t==`function`)?t:w(e)}function w(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function T(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function D(e,t){var n=`data-clipboard-${e}`;if(t.hasAttribute(n))return t.getAttribute(n)}var O=function(e){b(n,e);var t=S(n);function n(e,r){var i;return _(this,n),i=t.call(this),i.resolveOptions(r),i.listenClick(e),i}return y(n,[{key:`resolveOptions`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof e.action==`function`?e.action:this.defaultAction,this.target=typeof e.target==`function`?e.target:this.defaultTarget,this.text=typeof e.text==`function`?e.text:this.defaultText,this.container=g(e.container)===`object`?e.container:document.body}},{key:`listenClick`,value:function(e){var t=this;this.listener=o()(e,`click`,function(e){return t.onClick(e)})}},{key:`onClick`,value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||`copy`,r=h({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(r?`success`:`error`,{action:n,text:r,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:`defaultAction`,value:function(e){return D(`action`,e)}},{key:`defaultTarget`,value:function(e){var t=D(`target`,e);if(t)return document.querySelector(t)}},{key:`defaultText`,value:function(e){return D(`text`,e)}},{key:`destroy`,value:function(){this.listener.destroy()}}],[{key:`copy`,value:function(e){return p(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body})}},{key:`cut`,value:function(e){return u(e)}},{key:`isSupported`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[`copy`,`cut`],t=typeof e==`string`?[e]:e,n=!!document.queryCommandSupported;return t.forEach(function(e){n&&=!!document.queryCommandSupported(e)}),n}}]),n}(i())}),828:(function(e){if(typeof Element<`u`&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}function n(e,t){for(;e&&e.nodeType!==9;){if(typeof e.matches==`function`&&e.matches(t))return e;e=e.parentNode}}e.exports=n}),438:(function(e,t,n){var r=n(828);function i(e,t,n,r,i){var a=o.apply(this,arguments);return e.addEventListener(n,a,i),{destroy:function(){e.removeEventListener(n,a,i)}}}function a(e,t,n,r,a){return typeof e.addEventListener==`function`?i.apply(null,arguments):typeof n==`function`?i.bind(null,document).apply(null,arguments):(typeof e==`string`&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return i(e,t,n,r,a)}))}function o(e,t,n,i){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&i.call(e,n)}}e.exports=a}),879:(function(e,t){t.node=function(e){return e!==void 0&&e instanceof HTMLElement&&e.nodeType===1},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return e!==void 0&&(n===`[object NodeList]`||n===`[object HTMLCollection]`)&&`length`in e&&(e.length===0||t.node(e[0]))},t.string=function(e){return typeof e==`string`||e instanceof String},t.fn=function(e){return Object.prototype.toString.call(e)===`[object Function]`}}),370:(function(e,t,n){var r=n(879),i=n(438);function a(e,t,n){if(!e&&!t&&!n)throw Error(`Missing required arguments`);if(!r.string(t))throw TypeError(`Second argument must be a String`);if(!r.fn(n))throw TypeError(`Third argument must be a Function`);if(r.node(e))return o(e,t,n);if(r.nodeList(e))return s(e,t,n);if(r.string(e))return c(e,t,n);throw TypeError(`First argument must be a String, HTMLElement, HTMLCollection, or NodeList`)}function o(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}function s(e,t,n){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}}}function c(e,t,n){return i(document.body,e,t,n)}e.exports=a}),817:(function(e){function t(e){var t;if(e.nodeName===`SELECT`)e.focus(),t=e.value;else if(e.nodeName===`INPUT`||e.nodeName===`TEXTAREA`){var n=e.hasAttribute(`readonly`);n||e.setAttribute(`readonly`,``),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute(`readonly`),t=e.value}else{e.hasAttribute(`contenteditable`)&&e.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}return t}e.exports=t}),279:(function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||={};return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||={})[e]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||={},r=n[e],i=[];if(r&&t)for(var a=0,o=r.length;a<o;a++)r[a].fn!==t&&r[a].fn._!==t&&i.push(r[a]);return i.length?n[e]=i:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t})},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}return(function(){n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t}})(),(function(){n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}})(),(function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}})(),n(686)})().default})})),yYe=$r({createCopyDirective:()=>U9,default:()=>xYe}),bYe=ei(vYe(),1),H9=(e,t,n)=>{e.$$clipboard=new bYe.default(e,{text:()=>t}),e.$$clipboard.on(`success`,()=>{n?.(!0)}),e.$$clipboard.on(`error`,()=>{n?.(!1)})},U9=e=>({mounted:(t,{value:n})=>{H9(t,n,e)},updated:(t,{value:n,oldValue:r})=>{n!==r&&(t.$$clipboard?.destroy(),H9(t,n,e))},beforeUnmount:e=>{e.$$clipboard&&=(e.$$clipboard?.destroy(),null)}}),xYe=()=>U9(),SYe=$r({default:()=>CYe}),CYe=()=>{let e=new WeakMap;return{beforeMount:(t,{value:n})=>{let{func:r,trigger:i=`click`,wait:a=500,options:o}=n;if(typeof r!=`function`)throw TypeError(`debounce directive value must be a function`);let s=oo(r,a,o),c=zi(t,i,s);e.set(t,()=>{s.cancel(),c()})},beforeUnmount(t){e.get(t)?.(),e.delete(t)}}},wYe=$r({default:()=>TYe}),W9=(e,t)=>{if(e){let n=`r-template__directive--disabled`;t?(e.setAttribute(`disabled`,`disabled`),LS(e,n)):(e.removeAttribute(`disabled`),RS(e,n)),e?.setAttribute(`disabled`,t?`disabled`:``)}},TYe=()=>({mounted:(e,{value:t})=>{W9(e,t)},updated:(e,{value:t,oldValue:n})=>{t!==n&&W9(e,t)}}),EYe=$r({default:()=>DYe}),G9=(e,t)=>{let{line:n=1,type:r=`block`,width:i,popoverText:a}=t;i!=null&&(a&&e.textContent&&e.setAttribute(`title`,e.textContent),r===`line`?BS(e,{display:`-webkit-box`,"-webkit-box-orient":`vertical`,"-webkit-line-clamp":n,overflow:`hidden`,width:US(i)}):BS(e,{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,width:US(i)}))},DYe=()=>({mounted:(e,{value:t})=>{G9(e,t)},updated:(e,{value:t})=>{G9(e,t)}}),K9={vRippleAnimationEnter:`v-ripple__animation--enter`,vRippleAnimationVisible:`v-ripple__animation--visible`,vRippleAnimationIn:`v-ripple__animation--in`,vRippleAnimationOut:`v-ripple__animation--out`,vRippleAnimation:`v-ripple__animation`},OYe=`v-ripple__container`;function q9(e,t){e.style.transform=t}function J9(e){let t={},n=e.currentTarget;n?.__d_ripple__&&!n.__d_ripple__.touched&&(t.center=n.__d_ripple__.centered,n.__d_ripple__.class&&(t.class=n.__d_ripple__.class),X9.show(e,n,t))}function Y9(e){let t=e.currentTarget;t?.__d_ripple__&&(setTimeout(()=>{t.__d_ripple__&&(t.__d_ripple__.touched=!1)}),X9.hide(t))}var kYe=(e,t,n={})=>{let r=t.getBoundingClientRect(),i=e.clientX-r.left,a=e.clientY-r.top,o,s=.3;t.__d_ripple__?.circle?(s=.15,o=t.clientWidth/2,o=n.center?o:o+Math.sqrt((i-o)**2+(a-o)**2)/4):o=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;let c=`${(t.clientWidth-o*2)/2}px`,l=`${(t.clientHeight-o*2)/2}px`,u=n.center?c:`${i-o}px`,d=n.center?l:`${a-o}px`;return{radius:o,scale:s,x:u,y:d,centerX:c,centerY:l}},X9={show(e,t,n={}){if(!t?.__d_ripple__?.enabled)return;let r=document.createElement(`span`),i=document.createElement(`span`);r.appendChild(i),r.className=OYe,n.class&&(r.className+=` ${n.class}`);let{radius:a,scale:o,x:s,y:c,centerX:l,centerY:u}=kYe(e,t,n),d=`${a*2}px`;i.className=K9.vRippleAnimation,i.style.width=d,i.style.height=d,t.appendChild(r);let f=window.getComputedStyle(t);f&&f.position===`static`&&(t.style.position=`relative`,t.dataset.previousPosition=`static`),i.classList.add(K9.vRippleAnimationEnter),i.classList.add(K9.vRippleAnimationVisible),q9(i,`translate(${s}, ${c}) scale3d(${o},${o},${o})`),i.dataset.activated=String(performance.now()),setTimeout(()=>{i.classList.remove(K9.vRippleAnimationEnter),i.classList.add(K9.vRippleAnimationIn),q9(i,`translate(${l}, ${u}) scale3d(1,1,1)`)},0)},hide(e){if(!e?.__d_ripple__?.enabled)return;let t=e.getElementsByClassName(K9.vRippleAnimation);if(t.length===0)return;let n=t[t.length-1];if(n.dataset.isHiding)return;n.dataset.isHiding=`true`;let r=performance.now()-Number(n.dataset.activated),i=Math.max(250-r,0);setTimeout(()=>{n.classList.remove(K9.vRippleAnimationIn),n.classList.add(K9.vRippleAnimationOut),setTimeout(()=>{e.getElementsByClassName(K9.vRippleAnimation).length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),n.parentNode?.parentNode===e&&e.removeChild(n.parentNode)},300)},i)}};function Z9(e){return e===void 0||!!e}function Q9(e){e.removeEventListener(`pointerdown`,J9),e.removeEventListener(`pointerup`,Y9)}function $9(e,t,n){let{value:r,modifiers:i}=t,a=Z9(r);a||X9.hide(e),e.__d_ripple__=e.__d_ripple__??{},e.__d_ripple__.enabled=a,e.__d_ripple__.centered=i.center,e.__d_ripple__.circle=i.circle,qS(r,`Object`)&&r.class&&(e.__d_ripple__.class=r.class),a&&!n?(e.addEventListener(`pointerdown`,J9),e.addEventListener(`pointerup`,Y9)):!a&&n&&Q9(e)}var AYe=$r({default:()=>jYe}),jYe=()=>({mounted:(e,t)=>{$9(e,t,!1)},beforeUnmount:e=>{delete e.__d_ripple__,Q9(e)},updated:(e,t)=>{t.value!==t.oldValue&&$9(e,t,Z9(t.oldValue))}}),MYe=$r({default:()=>NYe}),NYe=()=>{let e=new WeakMap;return{beforeMount:(t,{value:n})=>{let{func:r,trigger:i=`click`,wait:a=500,options:o}=n;if(typeof r!=`function`)throw TypeError(`throttle directive value must be a function`);let s=Ro(r,a,o),c=zi(t,i,s);e.set(t,()=>{s.cancel(),c()})},beforeUnmount(t){e.get(t)?.(),e.delete(t)}}},PYe=e=>Object.keys(e).reduce((t,n)=>{let r=e[n]?.default;if(typeof r==`function`)return t[n]=r,t;throw TypeError(`directiveModules: ${n} is not function`)},{}),FYe=(e,t={})=>{let n=PYe(Object.assign({"./modules/copy/index.ts":yYe,"./modules/debounce/index.ts":SYe,"./modules/disabled/index.ts":wYe,"./modules/ellipsis/index.ts":EYe,"./modules/ripple/index.ts":AYe,"./modules/throttle/index.ts":MYe})),r=/(?<=modules\/).*(?=\/index\.ts)/,i=/^([^-]+-)*[^-]+$/;yo(n,(n,a)=>{let o=a.match(r)?.[0];typeof o==`string`&&i.test(o)&&e.directive(o,t[o]??n())})};function IYe(e){FYe(e,{copy:U9(e=>{e?window.$message?.success(`复制成功`):window.$message?.error(`复制失败`)})})}export{RJ as $,dte as $n,Gb as $t,RGe as A,Kf as An,MS as At,eWe as B,Yc as Bn,mS as Bt,h9 as C,Vm as Cn,RS as Ct,P8 as D,dp as Dn,FS as Dt,F8 as E,fp as En,BS as Et,j8 as F,Bl as Fn,CS as Ft,NLe as G,Hs as Gn,Nye as Gt,iZ as H,Wc as Hn,ibe as Ht,oGe as I,nl as In,TS as It,XY as J,cie as Jn,Jx as Jt,lLe as K,Ls as Kn,Pye as Kt,y8 as L,Qc as Ln,SS as Lt,LGe as M,Cf as Mn,AS as Mt,IGe as N,Kd as Nn,kS as Nt,FGe as O,cp as On,NS as Ot,NGe as P,Rd as Pn,dbe as Pt,rIe as Q,Fo as Qn,Yb as Qt,_8 as R,Zc as Rn,xS as Rt,g9 as S,Um as Sn,HS as St,dJe as T,mp as Tn,LS as Tt,nZ as U,Rc as Un,pS as Ut,wRe as V,Jc as Vn,rbe as Vt,tZ as W,Lc as Wn,nbe as Wt,YY as X,zo as Xn,fx as Xt,sIe as Y,Bo as Yn,Qx as Yt,iIe as Z,Lo as Zn,dx as Zt,x9 as _,Wme as _n,WS as _t,mYe as a,R_ as an,xbe as at,eYe as b,Jh as bn,US as bt,z9 as c,g_ as cn,ZS as ct,F9 as d,a_ as dn,_be as dt,Wb as en,zi as er,KFe as et,D9 as f,i_ as fn,vbe as ft,tYe as g,xg as gn,GS as gt,aYe as h,Tg as hn,gbe as ht,hYe as i,Sve as in,$S as it,PGe as j,Mf as jn,jS as jt,zGe as k,up as kn,PS as kt,R9 as l,d_ as ln,bbe as lt,oYe as m,t_ as mn,JS as mt,_Ye as n,wve as nn,di as nr,tC as nt,pYe as o,I_ as on,XS as ot,E9 as p,n_ as pn,qS as pt,ZY as q,ds as qn,jye as qt,gYe as r,Hb as rn,$r as rr,eC as rt,B9 as s,M_ as sn,YS as st,IYe as t,Kb as tn,cte as tr,nC as tt,L9 as u,c_ as un,ybe as ut,y9 as v,bg as vn,pbe as vt,o9 as w,jp as wn,mbe as wt,JJe as x,Hh as xn,fbe as xt,_9 as y,ig as yn,VS as yt,z6 as z,Xc as zn,obe as zt};